WAX

twap.waxdao

合约

此合约定义的数据结构。

  • config 的表格行类型

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "ID",
          "type": "uint64"
        },
        {
          "name": "authorizers",
          "type": "name[]"
        },
        {
          "name": "wax_per_waxdao",
          "type": "float64"
        },
        {
          "name": "current_discount",
          "type": "float64"
        },
        {
          "name": "next_push",
          "type": "uint64"
        }
      ]
    }
  • datapoints 的表格行类型

    {
      "name": "datapoints",
      "base": "",
      "fields": [
        {
          "name": "time",
          "type": "uint64"
        },
        {
          "name": "wax_per_waxdao",
          "type": "float64"
        }
      ]
    }
  • initconfig中的操作参数

    {
      "name": "initconfig",
      "base": "",
      "fields": []
    }
  • pushprice中的操作参数

    {
      "name": "pushprice",
      "base": "",
      "fields": [
        {
          "name": "signer",
          "type": "name"
        },
        {
          "name": "wax_per_waxdao",
          "type": "float64"
        }
      ]
    }
  • setdiscount中的操作参数

    {
      "name": "setdiscount",
      "base": "",
      "fields": [
        {
          "name": "signer",
          "type": "name"
        },
        {
          "name": "discount",
          "type": "float64"
        }
      ]
    }