WAX

unbox.nft

Contract

The data structures defined by this contract.

  • Struct property of rules

    {
      "name": "RuleItem",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "schema_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "weight",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in boxaddrule

    {
      "name": "boxaddrule",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint32"
        },
        {
          "name": "rule_name",
          "type": "name"
        }
      ]
    }
  • Action parameter in boxdel

    {
      "name": "boxdel",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in boxdelrule

    {
      "name": "boxdelrule",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint32"
        },
        {
          "name": "rule_name",
          "type": "name"
        }
      ]
    }
  • Table row type of boxes

    {
      "name": "boxes",
      "base": "",
      "fields": [
        {
          "name": "box_id",
          "type": "uint32"
        },
        {
          "name": "start_ms",
          "type": "uint64"
        },
        {
          "name": "end_ms",
          "type": "uint64"
        },
        {
          "name": "price",
          "type": "asset"
        },
        {
          "name": "payment_contract",
          "type": "name"
        },
        {
          "name": "rules",
          "type": "name[]"
        }
      ]
    }
  • Action parameter in boxset

    {
      "name": "boxset",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint32"
        },
        {
          "name": "start_ms",
          "type": "uint64"
        },
        {
          "name": "end_ms",
          "type": "uint64"
        },
        {
          "name": "price",
          "type": "asset"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "assoc_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of deposits

    {
      "name": "deposits",
      "base": "",
      "fields": [
        {
          "name": "assetid",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "schema",
          "type": "name"
        },
        {
          "name": "collection",
          "type": "name"
        },
        {
          "name": "owner",
          "type": "name"
        }
      ]
    }
  • Action parameter in logtest

    {
      "name": "logtest",
      "base": "",
      "fields": [
        {
          "name": "seed",
          "type": "uint64"
        },
        {
          "name": "weight",
          "type": "uint64"
        },
        {
          "name": "rands",
          "type": "uint64[]"
        },
        {
          "name": "tickets",
          "type": "uint64[]"
        },
        {
          "name": "seeds",
          "type": "uint64[]"
        }
      ]
    }
  • Action parameter in logunbox

    {
      "name": "logunbox",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "unboxer",
          "type": "name"
        }
      ]
    }
  • Table row type of pending

    {
      "name": "pending",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "box_id",
          "type": "uint32"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "unboxer",
          "type": "name"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "item_ids",
          "type": "uint32[]"
        }
      ]
    }
  • Action parameter in purge

    {
      "name": "purge",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in receiverand

    {
      "name": "receiverand",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "random_value",
          "type": "checksum256"
        }
      ]
    }
  • Table row type of rng.assocs

    {
      "name": "rng_assocs",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "name"
        }
      ]
    }
  • Action parameter in ruleadd

    {
      "name": "ruleadd",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "rule_display",
          "type": "string"
        }
      ]
    }
  • Action parameter in ruleadditem

    {
      "name": "ruleadditem",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "item_id",
          "type": "uint32"
        },
        {
          "name": "weight",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in ruleaddrule

    {
      "name": "ruleaddrule",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "rule_to_add",
          "type": "name"
        },
        {
          "name": "weight",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in ruledel

    {
      "name": "ruledel",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        }
      ]
    }
  • Action parameter in ruledelitem

    {
      "name": "ruledelitem",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "item_id",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in ruledelrule

    {
      "name": "ruledelrule",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "rule_to_delete_name",
          "type": "name"
        }
      ]
    }
  • Table row type of rules

    {
      "name": "rules",
      "base": "",
      "fields": [
        {
          "name": "rule_name",
          "type": "name"
        },
        {
          "name": "rule_display",
          "type": "string"
        },
        {
          "name": "rules",
          "type": "RuleItem[]"
        },
        {
          "name": "total_weight",
          "type": "uint64"
        }
      ]
    }
  • Table row type of cmintpending

    {
      "name": "template_mint_count",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in test

    {
      "name": "test",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint64"
        },
        {
          "name": "random_value",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in testclear

    {
      "name": "testclear",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        }
      ]
    }
  • Table row type of tests

    {
      "name": "tests",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "box_id",
          "type": "uint64"
        },
        {
          "name": "rng_seed",
          "type": "uint64"
        },
        {
          "name": "template_ids",
          "type": "uint64[]"
        },
        {
          "name": "test_data",
          "type": "string"
        }
      ]
    }
  • Action parameter in testunbox

    {
      "name": "testunbox",
      "base": "",
      "fields": [
        {
          "name": "seed",
          "type": "uint64"
        },
        {
          "name": "weight",
          "type": "uint64"
        },
        {
          "name": "numTickets",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in unbox

    {
      "name": "unbox",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "box_id",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in undounbox

    {
      "name": "undounbox",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "assoc_id",
          "type": "uint64"
        }
      ]
    }