WAX

make.facings

合约

此合约定义的数据结构。

  • addcraftsdone中的操作参数

    {
      "name": "addcraftsdone",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "crafts_done",
          "type": "int32"
        }
      ]
    }
  • addoutcome中的操作参数

    {
      "name": "addoutcome",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "outcome_id",
          "type": "int64"
        },
        {
          "name": "weight",
          "type": "uint32"
        },
        {
          "name": "outcome_type",
          "type": "uint8"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "craft_cap",
          "type": "int32"
        }
      ]
    }
  • addrecipe中的操作参数

    {
      "name": "addrecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "collection",
          "type": "name"
        },
        {
          "name": "descriptor",
          "type": "string[]"
        },
        {
          "name": "user_cap",
          "type": "int32"
        },
        {
          "name": "reset_user_cap_ts",
          "type": "uint32"
        },
        {
          "name": "mechanic",
          "type": "uint8"
        },
        {
          "name": "component",
          "type": "int32[]"
        },
        {
          "name": "expiring_time",
          "type": "time_point[]"
        }
      ]
    }
  • clearprepool中的操作参数

    {
      "name": "clearprepool",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "receiver",
          "type": "name"
        },
        {
          "name": "number_assets",
          "type": "uint32"
        }
      ]
    }
  • clearrecipe中的操作参数

    {
      "name": "clearrecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "receiver",
          "type": "name"
        }
      ]
    }
  • config 的表格行类型

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "contract_version",
          "type": "string"
        },
        {
          "name": "managers",
          "type": "name[]"
        },
        {
          "name": "max_outcomes",
          "type": "uint8"
        }
      ]
    }
  • craftjobs 的表格行类型

    {
      "name": "craftjob",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "components",
          "type": "uint64[]"
        },
        {
          "name": "craft_time",
          "type": "time_point"
        },
        {
          "name": "crafter",
          "type": "name"
        }
      ]
    }
  • deloutcome中的操作参数

    {
      "name": "deloutcome",
      "base": "",
      "fields": [
        {
          "name": "outcome_id",
          "type": "uint64"
        },
        {
          "name": "recipe_id",
          "type": "int32"
        }
      ]
    }
  • delrecipe中的操作参数

    {
      "name": "delrecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        }
      ]
    }
  • delusercraft中的操作参数

    {
      "name": "delusercraft",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "count",
          "type": "uint16"
        }
      ]
    }
  • endrecipe中的操作参数

    {
      "name": "endrecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        }
      ]
    }
  • init中的操作参数

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "managers",
          "type": "name[]"
        }
      ]
    }
  • lockedassets 的表格行类型

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

    {
      "name": "logcraft",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "recipe_id",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    }
  • outcomes 的表格行类型

    {
      "name": "outcome",
      "base": "",
      "fields": [
        {
          "name": "outcome_id",
          "type": "uint64"
        },
        {
          "name": "outcome_type",
          "type": "uint8"
        },
        {
          "name": "weight",
          "type": "uint16"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "supply",
          "type": "int32"
        },
        {
          "name": "craft_cap",
          "type": "int32"
        },
        {
          "name": "crafts_done",
          "type": "int32"
        }
      ]
    }
  • pools 的表格行类型

    {
      "name": "pool",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "locked_assets",
          "type": "uint32"
        },
        {
          "name": "assets",
          "type": "uint32"
        }
      ]
    }
  • poolassets 的表格行类型

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

    {
      "name": "preprecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "max_rows",
          "type": "int32"
        }
      ]
    }
  • receiverand中的操作参数

    {
      "name": "receiverand",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "random_value",
          "type": "checksum256"
        }
      ]
    }
  • recipes 的表格行类型

    {
      "name": "recipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        },
        {
          "name": "descriptor",
          "type": "string[]"
        },
        {
          "name": "collection",
          "type": "name"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "expiring_time",
          "type": "time_point[]"
        },
        {
          "name": "user_cap",
          "type": "int32"
        },
        {
          "name": "reset_user_cap_ts",
          "type": "int32"
        },
        {
          "name": "component",
          "type": "int32[]"
        },
        {
          "name": "mechanic",
          "type": "uint8"
        },
        {
          "name": "total_craft_cap",
          "type": "int32"
        },
        {
          "name": "crafts_done",
          "type": "uint32"
        },
        {
          "name": "c_weight",
          "type": "uint64"
        },
        {
          "name": "c_weight_left",
          "type": "uint64"
        }
      ]
    }
  • rejob中的操作参数

    {
      "name": "rejob",
      "base": "",
      "fields": []
    }
  • setmanagers中的操作参数

    {
      "name": "setmanagers",
      "base": "",
      "fields": [
        {
          "name": "new_managers",
          "type": "name[]"
        }
      ]
    }
  • setoutcomes中的操作参数

    {
      "name": "setoutcomes",
      "base": "",
      "fields": [
        {
          "name": "number_outcomes",
          "type": "uint8"
        }
      ]
    }
  • setversion中的操作参数

    {
      "name": "setversion",
      "base": "",
      "fields": [
        {
          "name": "new_version",
          "type": "string"
        }
      ]
    }
  • startrecipe中的操作参数

    {
      "name": "startrecipe",
      "base": "",
      "fields": [
        {
          "name": "recipe_id",
          "type": "int32"
        }
      ]
    }
  • usercrafts 的表格行类型

    {
      "name": "usercraft",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "crafts",
          "type": "int32"
        },
        {
          "name": "reset_crafts_after_ts",
          "type": "time_point_sec[]"
        }
      ]
    }