WAX

reward.tibs

Contract

The data structures defined by this contract.

  • Action parameter in 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"
        }
      ]
    }
  • Action parameter in 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"
        }
      ]
    }
  • Action parameter in 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[]"
        }
      ]
    }
  • Action parameter in 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"
        }
      ]
    }
  • Table row type of 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[]"
        }
      ]
    }