WAX

reward.tibs

合约

此合约定义的数据结构。

  • claimreward中的操作参数

    {
      "name": "claim_reward",
      "base": "",
      "fields": [
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "receiver",
          "type": "name"
        },
        {
          "name": "claim_data",
          "type": "string"
        },
        {
          "name": "sig",
          "type": "signature"
        }
      ]
    }
  • createreward中的操作参数

    {
      "name": "create_reward",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "verification_key",
          "type": "public_key"
        },
        {
          "name": "duration",
          "type": "uint32"
        }
      ]
    }
  • insclaimdata中的操作参数

    {
      "name": "insert_claim_data",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "claim_data_list",
          "type": "string[]"
        }
      ]
    }
  • removereward中的操作参数

    {
      "name": "remove_reward",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • rewards 的表格行类型

    {
      "name": "reward",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "verification_key",
          "type": "public_key"
        },
        {
          "name": "expiration_time",
          "type": "uint32"
        },
        {
          "name": "claim_data_list",
          "type": "string[]"
        }
      ]
    }