WAX

farminggames

合约

此合约定义的数据结构。

  • adminpaycbit中的操作参数

    {
      "name": "adminpaycbit",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "ext_asset",
          "type": "extended_asset"
        }
      ]
    }
  • animal 的表格行类型

    {
      "name": "animal_table",
      "base": "",
      "fields": [
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "building_asset_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "last_harvest",
          "type": "uint32"
        }
      ]
    }
  • buildout 的表格行类型

    {
      "name": "build_out_table",
      "base": "",
      "fields": [
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "farm_id",
          "type": "uint32"
        },
        {
          "name": "last_harvest",
          "type": "uint32"
        }
      ]
    }
  • building 的表格行类型

    {
      "name": "building_table",
      "base": "",
      "fields": [
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "farm_id",
          "type": "uint32"
        },
        {
          "name": "x",
          "type": "float32"
        },
        {
          "name": "y",
          "type": "float32"
        },
        {
          "name": "rotation",
          "type": "uint32"
        }
      ]
    }
  • buyonmarket中的操作参数

    {
      "name": "buyonmarket",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • confanimsest中的操作参数

    {
      "name": "confanimsest",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        }
      ]
    }
  • confanimal 的表格行类型

    {
      "name": "config_animal_table",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "string"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "food",
          "type": "uint32"
        }
      ]
    }
  • {
      "name": "config_build_out_table",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "string"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "food",
          "type": "uint32"
        },
        {
          "name": "water",
          "type": "uint32"
        }
      ]
    }
  • confbuilding 的表格行类型

    {
      "name": "config_building_table",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "animal_templates",
          "type": "uint64[]"
        },
        {
          "name": "slots",
          "type": "uint8"
        },
        {
          "name": "type",
          "type": "uint16"
        },
        {
          "name": "width",
          "type": "float32"
        },
        {
          "name": "height",
          "type": "float32"
        }
      ]
    }
  • confdrop 的表格行类型

    {
      "name": "config_drop_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "collection_name",
          "type": "string"
        },
        {
          "name": "schema_name",
          "type": "string"
        },
        {
          "name": "cost",
          "type": "uint64"
        },
        {
          "name": "limit",
          "type": "int32"
        },
        {
          "name": "sold",
          "type": "uint64"
        },
        {
          "name": "start",
          "type": "uint32"
        },
        {
          "name": "end",
          "type": "uint32"
        },
        {
          "name": "wl_accounts",
          "type": "name[]"
        },
        {
          "name": "wl_templates",
          "type": "uint32[]"
        },
        {
          "name": "wl_templates_or",
          "type": "bool"
        }
      ]
    }
  • conffarm 的表格行类型

    {
      "name": "config_farm_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "width",
          "type": "float32"
        },
        {
          "name": "height",
          "type": "float32"
        }
      ]
    }
  • confflower 的表格行类型

    {
      "name": "config_flower_table",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "cbit_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        }
      ]
    }
  • confhvst 的表格行类型

    {
      "name": "config_harvest_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "water_unit_cost",
          "type": "uint64"
        },
        {
          "name": "food_unit_cost",
          "type": "uint64"
        },
        {
          "name": "service_cost",
          "type": "uint64"
        }
      ]
    }
  • confplant 的表格行类型

    {
      "name": "config_plant_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "string"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "water",
          "type": "uint32"
        }
      ]
    }
  • {
      "name": "config_resources_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "base_water",
          "type": "uint32"
        },
        {
          "name": "base_food",
          "type": "uint32"
        },
        {
          "name": "water_refill_cost",
          "type": "uint32"
        },
        {
          "name": "food_refill_cost",
          "type": "uint32"
        }
      ]
    }
  • confwallet 的表格行类型

    {
      "name": "config_wallet_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "withdraw_fees",
          "type": "pair_string_float32[]"
        },
        {
          "name": "withdraw_mins",
          "type": "pair_string_uint32[]"
        }
      ]
    }
  • dropclaimer 的表格行类型

    {
      "name": "drop_claimer_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "drop_id",
          "type": "uint64"
        }
      ]
    }
  • flower 的表格行类型

    {
      "name": "flower_table",
      "base": "",
      "fields": [
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "farm_id",
          "type": "uint32"
        },
        {
          "name": "last_harvest",
          "type": "uint32"
        }
      ]
    }
  • harvestanim中的操作参数

    {
      "name": "harvestanim",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • harvestbuild中的操作参数

    {
      "name": "harvestbuild",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • harvestmulti2中的操作参数

    {
      "name": "harvestmulti2",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "anim_asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "plant_asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "build_asset_ids",
          "type": "uint64[]"
        }
      ]
    }
  • harvestplant中的操作参数

    {
      "name": "harvestplant",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "plant_id",
          "type": "uint64"
        }
      ]
    }
  • hvstflower中的操作参数

    {
      "name": "hvstflower",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • marketplace 的表格行类型

    {
      "name": "items_table",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "string"
        },
        {
          "name": "schema_name",
          "type": "string"
        },
        {
          "name": "cost",
          "type": "uint64"
        }
      ]
    }
  • logdeposit中的操作参数

    {
      "name": "logdeposit",
      "base": "",
      "fields": [
        {
          "name": "deposit",
          "type": "asset"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        }
      ]
    }
  • logstake中的操作参数

    {
      "name": "logstake",
      "base": "",
      "fields": [
        {
          "name": "deposit",
          "type": "asset"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        }
      ]
    }
  • 的结构体属性 config_wallet_table

    的结构体属性 setconfwallt

    {
      "name": "pair_string_float32",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "string"
        },
        {
          "name": "value",
          "type": "float32"
        }
      ]
    }
  • 的结构体属性 config_wallet_table

    的结构体属性 setconfwallt

    {
      "name": "pair_string_uint32",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "string"
        },
        {
          "name": "value",
          "type": "uint32"
        }
      ]
    }
  • 的结构体属性 wallet_table

    {
      "name": "pair_string_uint64",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "string"
        },
        {
          "name": "value",
          "type": "uint64"
        }
      ]
    }
  • plant 的表格行类型

    {
      "name": "plant_table",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "building_asset_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "plant_id",
          "type": "uint32"
        },
        {
          "name": "last_harvest",
          "type": "uint32"
        }
      ]
    }
  • refillfood中的操作参数

    {
      "name": "refillfood",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        }
      ]
    }
  • refillwater中的操作参数

    {
      "name": "refillwater",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        }
      ]
    }
  • resources 的表格行类型

    {
      "name": "resources_table",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "water",
          "type": "uint32"
        },
        {
          "name": "food",
          "type": "uint32"
        },
        {
          "name": "water_max",
          "type": "uint32"
        },
        {
          "name": "food_max",
          "type": "uint32"
        },
        {
          "name": "water_tower_id",
          "type": "uint64"
        },
        {
          "name": "water_template_id",
          "type": "uint64"
        },
        {
          "name": "silo_id",
          "type": "uint64"
        },
        {
          "name": "silo_template_id",
          "type": "uint64"
        }
      ]
    }
  • rmvanimal中的操作参数

    {
      "name": "rmvanimal",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • rmvbuild中的操作参数

    {
      "name": "rmvbuild",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • rmvconfanim中的操作参数

    {
      "name": "rmvconfanim",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • rmvconfbuild中的操作参数

    {
      "name": "rmvconfbuild",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • rmvconfdrop中的操作参数

    {
      "name": "rmvconfdrop",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • rmvconfout中的操作参数

    {
      "name": "rmvconfout",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • rmvconfplant中的操作参数

    {
      "name": "rmvconfplant",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • rmvflower中的操作参数

    {
      "name": "rmvflower",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • rmvitem中的操作参数

    {
      "name": "rmvitem",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • setcdropsold中的操作参数

    {
      "name": "setcdropsold",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "sold",
          "type": "uint64"
        }
      ]
    }
  • setconfanim中的操作参数

    {
      "name": "setconfanim",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "name"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "food",
          "type": "uint32"
        }
      ]
    }
  • setconfbuild中的操作参数

    {
      "name": "setconfbuild",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "animal_templates",
          "type": "uint64[]"
        },
        {
          "name": "slots",
          "type": "uint8"
        },
        {
          "name": "type",
          "type": "uint16"
        },
        {
          "name": "width",
          "type": "float32"
        },
        {
          "name": "height",
          "type": "float32"
        }
      ]
    }
  • setconfdrop中的操作参数

    {
      "name": "setconfdrop",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "collection_name",
          "type": "string"
        },
        {
          "name": "schema_name",
          "type": "string"
        },
        {
          "name": "cost",
          "type": "uint64"
        },
        {
          "name": "limit",
          "type": "int32"
        },
        {
          "name": "sold",
          "type": "uint64"
        },
        {
          "name": "start",
          "type": "uint32"
        },
        {
          "name": "end",
          "type": "uint32"
        },
        {
          "name": "wl_accounts",
          "type": "name[]"
        },
        {
          "name": "wl_templates",
          "type": "uint32[]"
        },
        {
          "name": "wl_templates_or",
          "type": "bool"
        }
      ]
    }
  • setconfflwr中的操作参数

    {
      "name": "setconfflwr",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "cbit_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        }
      ]
    }
  • setconfhvst中的操作参数

    {
      "name": "setconfhvst",
      "base": "",
      "fields": [
        {
          "name": "water_unit_cost",
          "type": "uint64"
        },
        {
          "name": "food_unit_cost",
          "type": "uint64"
        },
        {
          "name": "service_cost",
          "type": "uint64"
        }
      ]
    }
  • setconfout中的操作参数

    {
      "name": "setconfout",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "name"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "food",
          "type": "uint32"
        },
        {
          "name": "water",
          "type": "uint32"
        }
      ]
    }
  • setconfplant中的操作参数

    {
      "name": "setconfplant",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "label",
          "type": "string"
        },
        {
          "name": "resource_type",
          "type": "name"
        },
        {
          "name": "resource_count",
          "type": "uint16"
        },
        {
          "name": "sest_amount",
          "type": "uint32"
        },
        {
          "name": "cooldown",
          "type": "uint32"
        },
        {
          "name": "water",
          "type": "uint32"
        }
      ]
    }
  • setconfres中的操作参数

    {
      "name": "setconfres",
      "base": "",
      "fields": [
        {
          "name": "base_water",
          "type": "uint32"
        },
        {
          "name": "base_food",
          "type": "uint32"
        },
        {
          "name": "water_refill_cost",
          "type": "uint32"
        },
        {
          "name": "food_refill_cost",
          "type": "uint32"
        }
      ]
    }
  • setconfwallt中的操作参数

    {
      "name": "setconfwallt",
      "base": "",
      "fields": [
        {
          "name": "withdraw_fees",
          "type": "pair_string_float32[]"
        },
        {
          "name": "withdraw_mins",
          "type": "pair_string_uint32[]"
        }
      ]
    }
  • setitem中的操作参数

    {
      "name": "setitem",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "cost",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "string"
        },
        {
          "name": "schema_name",
          "type": "string"
        }
      ]
    }
  • setitemcost中的操作参数

    {
      "name": "setitemcost",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "cost",
          "type": "uint64"
        }
      ]
    }
  • stakeanimal中的操作参数

    {
      "name": "stakeanimal",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "building_id",
          "type": "uint64"
        }
      ]
    }
  • stakebuild中的操作参数

    {
      "name": "stakebuild",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "x",
          "type": "float32"
        },
        {
          "name": "y",
          "type": "float32"
        },
        {
          "name": "rotation",
          "type": "uint32"
        }
      ]
    }
  • stakeflower中的操作参数

    {
      "name": "stakeflower",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • stakesest中的操作参数

    {
      "name": "stakesest",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "value",
          "type": "asset"
        },
        {
          "name": "target",
          "type": "name"
        }
      ]
    }
  • wallet 的表格行类型

    {
      "name": "wallet_table",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "balances",
          "type": "pair_string_uint64[]"
        }
      ]
    }
  • withdraw中的操作参数

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "value",
          "type": "asset"
        }
      ]
    }