WAX

combo.tibs

合约

此合约定义的数据结构。

  • claimcombo中的操作参数

    {
      "name": "claim_combo",
      "base": "",
      "fields": [
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "receiver",
          "type": "name"
        }
      ]
    }
  • combos 的表格行类型

    {
      "name": "combo_data",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "asset_combo",
          "type": "pair_uint64_uint8[]"
        },
        {
          "name": "min_quantity",
          "type": "uint64"
        },
        {
          "name": "expiration_time",
          "type": "uint32"
        },
        {
          "name": "burn_combo",
          "type": "bool"
        },
        {
          "name": "claimed_accounts",
          "type": "name[]"
        }
      ]
    }
  • createcombo中的操作参数

    {
      "name": "create_combo",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "asset_combo",
          "type": "pair_uint64_uint8[]"
        },
        {
          "name": "min_quantity",
          "type": "uint64"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "burn_combo",
          "type": "bool"
        }
      ]
    }
  • 的结构体属性 combo_data

    的结构体属性 create_combo

    {
      "name": "pair_uint64_uint8",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "uint64"
        },
        {
          "name": "second",
          "type": "uint8"
        }
      ]
    }
  • removecombo中的操作参数

    {
      "name": "remove_combo",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }