WAX

crafting.gr

Contract

The data structures defined by this contract.

  • Table row type of assettotem

    {
      "name": "AssetTotem",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "totem",
          "type": "string"
        }
      ]
    }
  • {
      "name": "AttemptChance",
      "base": "",
      "fields": [
        {
          "name": "attempt_num",
          "type": "uint16"
        },
        {
          "name": "fail_chance",
          "type": "uint32"
        }
      ]
    }
  • Struct property of BoostRange

    Struct property of addranges

    {
      "name": "AttributeMinMax",
      "base": "",
      "fields": [
        {
          "name": "attribute",
          "type": "string"
        },
        {
          "name": "min",
          "type": "float64"
        },
        {
          "name": "max",
          "type": "float64"
        }
      ]
    }
  • Struct property of Craft

    Struct property of GPBoost

    Struct property of Outcome

    Struct property of addoutcome

    Struct property of logboost

    {
      "name": "Attributes",
      "base": "",
      "fields": [
        {
          "name": "strength",
          "type": "float64"
        },
        {
          "name": "resilience",
          "type": "float64"
        },
        {
          "name": "agility",
          "type": "float64"
        },
        {
          "name": "speed",
          "type": "float64"
        },
        {
          "name": "intellect",
          "type": "float64"
        },
        {
          "name": "luck",
          "type": "float64"
        }
      ]
    }
  • Struct property of FusionLimit

    {
      "name": "BoostCount",
      "base": "",
      "fields": [
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "count",
          "type": "uint16"
        }
      ]
    }
  • Table row type of boostranges

    {
      "name": "BoostRange",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "lookup_hash",
          "type": "checksum256"
        },
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "attribute_ranges",
          "type": "AttributeMinMax[]"
        }
      ]
    }
  • Struct property of RarityChance

    Struct property of TotemChance

    Struct property of raritychance

    Struct property of totemchance

    {
      "name": "Chance",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "string"
        },
        {
          "name": "odds",
          "type": "uint32"
        }
      ]
    }
  • Struct property of CraftLog

    {
      "name": "Craft",
      "base": "",
      "fields": [
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "boost_asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "aux_slot",
          "type": "uint64[]"
        },
        {
          "name": "spu_fee",
          "type": "asset"
        },
        {
          "name": "spu_fee_paid",
          "type": "bool"
        },
        {
          "name": "craft_fee",
          "type": "asset"
        },
        {
          "name": "craft_fee_paid",
          "type": "bool"
        },
        {
          "name": "totem_chance_id",
          "type": "uint64"
        },
        {
          "name": "rarity_chance_id",
          "type": "uint64"
        },
        {
          "name": "fail_chance",
          "type": "uint32"
        },
        {
          "name": "outcome",
          "type": "uint64"
        },
        {
          "name": "attributes",
          "type": "Attributes"
        },
        {
          "name": "claimed",
          "type": "bool"
        },
        {
          "name": "crafted",
          "type": "bool"
        }
      ]
    }
  • Table row type of craftlinks

    {
      "name": "CraftLink",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "craft_type",
          "type": "name"
        }
      ]
    }
  • Table row type of craftlogs

    {
      "name": "CraftLog",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "first_craft",
          "type": "uint32"
        },
        {
          "name": "current_craft",
          "type": "Craft"
        },
        {
          "name": "totals",
          "type": "CraftTotals"
        }
      ]
    }
  • Struct property of CraftLog

    {
      "name": "CraftTotals",
      "base": "",
      "fields": [
        {
          "name": "component_crafts",
          "type": "uint16"
        },
        {
          "name": "first_component_craft_cost",
          "type": "asset"
        },
        {
          "name": "figure_crafts",
          "type": "FigureCraft[]"
        }
      ]
    }
  • Struct property of CraftTotals

    {
      "name": "FigureCraft",
      "base": "",
      "fields": [
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "crafts",
          "type": "uint16"
        },
        {
          "name": "first_craft_cost",
          "type": "asset"
        }
      ]
    }
  • Table row type of fissions

    {
      "name": "Fission",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "orb_asset_id",
          "type": "uint64"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "outcomes",
          "type": "string[]"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "paid",
          "type": "bool"
        },
        {
          "name": "status",
          "type": "name"
        }
      ]
    }
  • Table row type of fusions

    {
      "name": "Fusion",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "outcome",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "paid",
          "type": "bool"
        }
      ]
    }
  • Table row type of fusionlimits

    {
      "name": "FusionLimit",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "limit_start",
          "type": "uint32"
        },
        {
          "name": "gp_fusions",
          "type": "uint32"
        },
        {
          "name": "orb_fusions",
          "type": "uint32"
        },
        {
          "name": "boost_counts",
          "type": "BoostCount[]"
        }
      ]
    }
  • Table row type of gpboosts

    {
      "name": "GPBoost",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "greenprint",
          "type": "uint64"
        },
        {
          "name": "orb",
          "type": "uint64"
        },
        {
          "name": "outcome",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "paid",
          "type": "bool"
        },
        {
          "name": "old_attributes",
          "type": "Attributes"
        },
        {
          "name": "new_attributes",
          "type": "Attributes"
        }
      ]
    }
  • Struct property of config

    {
      "name": "GreenprintCraftConfig",
      "base": "",
      "fields": [
        {
          "name": "active_after",
          "type": "uint64"
        },
        {
          "name": "four_component_attempt_chances",
          "type": "AttemptChances"
        },
        {
          "name": "figure_attempt_chances",
          "type": "pair_string_AttemptChances[]"
        },
        {
          "name": "max_four_component_crafts",
          "type": "uint32"
        },
        {
          "name": "figure_max_crafts",
          "type": "pair_string_uint32[]"
        }
      ]
    }
  • Table row type of outcomes

    {
      "name": "Outcome",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "lookup_hash",
          "type": "checksum256"
        },
        {
          "name": "ipfs_hash",
          "type": "string"
        },
        {
          "name": "base_attributes",
          "type": "Attributes"
        }
      ]
    }
  • Table row type of raritychance

    {
      "name": "RarityChance",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "lookup_hash",
          "type": "checksum256"
        },
        {
          "name": "chances",
          "type": "Chance[]"
        },
        {
          "name": "total_odds",
          "type": "uint32"
        },
        {
          "name": "rarities",
          "type": "string[]"
        }
      ]
    }
  • Struct property of config

    Struct property of updatefees

    {
      "name": "RarityCost",
      "base": "",
      "fields": [
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "cost",
          "type": "asset"
        }
      ]
    }
  • Table row type of totemchance

    {
      "name": "TotemChance",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "lookup_hash",
          "type": "checksum256"
        },
        {
          "name": "chances",
          "type": "Chance[]"
        },
        {
          "name": "total_odds",
          "type": "uint32"
        },
        {
          "name": "totems",
          "type": "string[]"
        }
      ]
    }
  • Action parameter in abandoncraft

    {
      "name": "abandoncraft",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in addoutcome

    {
      "name": "addoutcome",
      "base": "",
      "fields": [
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "ipfs_hash",
          "type": "string"
        },
        {
          "name": "base_attributes",
          "type": "Attributes"
        }
      ]
    }
  • Action parameter in addranges

    {
      "name": "addranges",
      "base": "",
      "fields": [
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "attribute_ranges",
          "type": "AttributeMinMax[]"
        }
      ]
    }
  • Action parameter in assettotem

    {
      "name": "assettotem",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "totem",
          "type": "string"
        }
      ]
    }
  • Action parameter in attempt

    {
      "name": "attempt",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in boost

    {
      "name": "boost",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in claimboost

    {
      "name": "claimboost",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in claimfission

    {
      "name": "claimfission",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in claimfusion

    {
      "name": "claimfusion",
      "base": "",
      "fields": [
        {
          "name": "scope",
          "type": "name"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in cleancrafts

    {
      "name": "cleancrafts",
      "base": "",
      "fields": []
    }
  • Action parameter in cleanflimits

    {
      "name": "cleanflimits",
      "base": "",
      "fields": []
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "crafting_active",
          "type": "bool"
        },
        {
          "name": "gp_fusion_active",
          "type": "bool"
        },
        {
          "name": "orb_fusion_active",
          "type": "bool"
        },
        {
          "name": "orb_fission_active",
          "type": "bool"
        },
        {
          "name": "gp_boost_active",
          "type": "bool"
        },
        {
          "name": "max_daily_gp_fusions",
          "type": "int32"
        },
        {
          "name": "max_daily_orb_fusions",
          "type": "int32"
        },
        {
          "name": "gp_fusion_fees",
          "type": "RarityCost[]"
        },
        {
          "name": "orb_fusion_fees",
          "type": "RarityCost[]"
        },
        {
          "name": "orb_fission_fees",
          "type": "RarityCost[]"
        },
        {
          "name": "gp_boost_fees",
          "type": "RarityCost[]"
        },
        {
          "name": "craft_attempt_chances",
          "type": "GreenprintCraftConfig[]"
        },
        {
          "name": "four_component_base_costs",
          "type": "pair_string_uint64[]"
        },
        {
          "name": "figure_base_costs",
          "type": "pair_string_uint64[]"
        },
        {
          "name": "four_component_spu_multipliers",
          "type": "pair_string_uint16[]"
        },
        {
          "name": "figure_spu_multipliers",
          "type": "pair_string_uint16[]"
        }
      ]
    }
  • Action parameter in craft

    {
      "name": "craft",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    }
  • Action parameter in delconfig

    {
      "name": "delconfig",
      "base": "",
      "fields": []
    }
  • Action parameter in disable

    {
      "name": "disable",
      "base": "",
      "fields": []
    }
  • Action parameter in editgpcosts

    {
      "name": "editgpcosts",
      "base": "",
      "fields": [
        {
          "name": "four_component_base_costs",
          "type": "pair_string_uint64[]"
        },
        {
          "name": "figure_base_costs",
          "type": "pair_string_uint64[]"
        },
        {
          "name": "four_component_spu_multipliers",
          "type": "pair_string_uint16[]"
        },
        {
          "name": "figure_spu_multipliers",
          "type": "pair_string_uint16[]"
        }
      ]
    }
  • Action parameter in enable

    {
      "name": "enable",
      "base": "",
      "fields": []
    }
  • Action parameter in gpboost

    {
      "name": "gpboost",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in gpfuse

    {
      "name": "gpfuse",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in logboost

    {
      "name": "logboost",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "greenprint",
          "type": "uint64"
        },
        {
          "name": "orb",
          "type": "uint64"
        },
        {
          "name": "outcome",
          "type": "name"
        },
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "rarity",
          "type": "string"
        },
        {
          "name": "old_attributes",
          "type": "Attributes"
        },
        {
          "name": "new_attributes",
          "type": "Attributes"
        },
        {
          "name": "boost_count",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in logcraft

    {
      "name": "logcraft",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "action",
          "type": "string"
        },
        {
          "name": "sub_action",
          "type": "string"
        },
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "type",
          "type": "string"
        }
      ]
    }
  • Action parameter in logcraftfail

    {
      "name": "logcraftfail",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "action",
          "type": "string"
        },
        {
          "name": "sub_action",
          "type": "string"
        },
        {
          "name": "totem",
          "type": "string"
        },
        {
          "name": "type",
          "type": "string"
        }
      ]
    }
  • Action parameter in logfission

    {
      "name": "logfission",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "input_asset_id",
          "type": "uint64"
        },
        {
          "name": "input_rarity",
          "type": "string"
        },
        {
          "name": "outcomes",
          "type": "string[]"
        }
      ]
    }
  • Action parameter in logfusion

    {
      "name": "logfusion",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "cost",
          "type": "asset"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "fusion_type",
          "type": "string"
        },
        {
          "name": "outcome",
          "type": "name"
        },
        {
          "name": "rarity",
          "type": "string"
        }
      ]
    }
  • Action parameter in orbfission

    {
      "name": "orbfission",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in orbfuse

    {
      "name": "orbfuse",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • {
      "name": "pair_string_AttemptChances",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "string"
        },
        {
          "name": "second",
          "type": "AttemptChances"
        }
      ]
    }
  • Struct property of config

    Struct property of editgpcosts

    {
      "name": "pair_string_uint16",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "string"
        },
        {
          "name": "second",
          "type": "uint16"
        }
      ]
    }
  • Struct property of GreenprintCraftConfig

    Struct property of update_attempt_chances

    {
      "name": "pair_string_uint32",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "string"
        },
        {
          "name": "second",
          "type": "uint32"
        }
      ]
    }
  • Struct property of config

    Struct property of editgpcosts

    {
      "name": "pair_string_uint64",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "string"
        },
        {
          "name": "second",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in paycooldown

    {
      "name": "paycooldown",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in raritychance

    {
      "name": "raritychance",
      "base": "",
      "fields": [
        {
          "name": "rarities",
          "type": "string[]"
        },
        {
          "name": "chances",
          "type": "Chance[]"
        },
        {
          "name": "total_odds",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in receiverand

    {
      "name": "receiverand",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "random_value",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in setlimits

    {
      "name": "setlimits",
      "base": "",
      "fields": [
        {
          "name": "gp_fusions",
          "type": "int32"
        },
        {
          "name": "orb_fusions",
          "type": "int32"
        }
      ]
    }
  • Action parameter in setup

    {
      "name": "setup",
      "base": "",
      "fields": []
    }
  • Action parameter in timecapmint

    {
      "name": "timecapmint",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "named",
          "type": "string"
        },
        {
          "name": "message",
          "type": "string"
        },
        {
          "name": "template_id",
          "type": "uint32"
        },
        {
          "name": "schema_name",
          "type": "name"
        }
      ]
    }
  • Action parameter in totemchance

    {
      "name": "totemchance",
      "base": "",
      "fields": [
        {
          "name": "totems",
          "type": "string[]"
        },
        {
          "name": "chances",
          "type": "Chance[]"
        },
        {
          "name": "total_odds",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in turnoff

    {
      "name": "turnoff",
      "base": "",
      "fields": [
        {
          "name": "feature",
          "type": "string"
        }
      ]
    }
  • Action parameter in turnon

    {
      "name": "turnon",
      "base": "",
      "fields": [
        {
          "name": "feature",
          "type": "string"
        }
      ]
    }
  • Action parameter in updatchances

    {
      "name": "update_attempt_chances",
      "base": "",
      "fields": [
        {
          "name": "active_after",
          "type": "uint32"
        },
        {
          "name": "four_component_attempt_chances",
          "type": "AttemptChances"
        },
        {
          "name": "figure_attempt_chances",
          "type": "pair_string_AttemptChances[]"
        },
        {
          "name": "max_four_component_crafts",
          "type": "uint32"
        },
        {
          "name": "figure_max_crafts",
          "type": "pair_string_uint32[]"
        },
        {
          "name": "remove_outdated",
          "type": "bool"
        }
      ]
    }
  • Action parameter in updatefees

    {
      "name": "updatefees",
      "base": "",
      "fields": [
        {
          "name": "feature",
          "type": "string"
        },
        {
          "name": "fees",
          "type": "RarityCost[]"
        }
      ]
    }