WAX

iredeemcards

合约

此合约定义的数据结构。

  • cls中的操作参数

    {
      "name": "cls",
      "base": "",
      "fields": []
    }
  • lootredeems 的表格行类型

    {
      "name": "lootredeem",
      "base": "",
      "fields": [
        {
          "name": "redeem_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "proxied",
          "type": "bool"
        }
      ]
    }
  • lootcards 的表格行类型

    {
      "name": "lootreward",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "token_reward",
          "type": "extended_asset"
        },
        {
          "name": "commission",
          "type": "uint8"
        }
      ]
    }
  • rmlootcard中的操作参数

    {
      "name": "rmlootcard",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint32"
        }
      ]
    }
  • setlootcard中的操作参数

    {
      "name": "setlootcard",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "commission",
          "type": "uint8"
        }
      ]
    }