
此合约定义的数据结构。
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" } ] } -
{ "name": "AttributeMinMax", "base": "", "fields": [ { "name": "attribute", "type": "string" }, { "name": "min", "type": "float64" }, { "name": "max", "type": "float64" } ] } -
{ "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" } ] } 的结构体属性 FusionLimit
{ "name": "BoostCount", "base": "", "fields": [ { "name": "rarity", "type": "string" }, { "name": "count", "type": "uint16" } ] }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[]" } ] }-
{ "name": "Chance", "base": "", "fields": [ { "name": "key", "type": "string" }, { "name": "odds", "type": "uint32" } ] } -
{ "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" } ] } craftlinks 的表格行类型
{ "name": "CraftLink", "base": "", "fields": [ { "name": "assoc_id", "type": "uint64" }, { "name": "user", "type": "name" }, { "name": "craft_type", "type": "name" } ] }-
{ "name": "CraftLog", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "first_craft", "type": "uint32" }, { "name": "current_craft", "type": "Craft" }, { "name": "totals", "type": "CraftTotals" } ] } 的结构体属性 CraftLog
{ "name": "CraftTotals", "base": "", "fields": [ { "name": "component_crafts", "type": "uint16" }, { "name": "first_component_craft_cost", "type": "asset" }, { "name": "figure_crafts", "type": "FigureCraft[]" } ] }的结构体属性 CraftTotals
{ "name": "FigureCraft", "base": "", "fields": [ { "name": "rarity", "type": "string" }, { "name": "crafts", "type": "uint16" }, { "name": "first_craft_cost", "type": "asset" } ] }-
{ "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" } ] } -
{ "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" } ] } 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[]" } ] }-
{ "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" } ] } 的结构体属性 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[]" } ] }-
{ "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" } ] } 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[]" } ] }-
{ "name": "RarityCost", "base": "", "fields": [ { "name": "rarity", "type": "string" }, { "name": "cost", "type": "asset" } ] } 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[]" } ] }abandoncraft中的操作参数
{ "name": "abandoncraft", "base": "", "fields": [ { "name": "user", "type": "name" } ] }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" } ] }-
{ "name": "addranges", "base": "", "fields": [ { "name": "totem", "type": "string" }, { "name": "rarity", "type": "string" }, { "name": "attribute_ranges", "type": "AttributeMinMax[]" } ] } assettotem中的操作参数
{ "name": "assettotem", "base": "", "fields": [ { "name": "template_id", "type": "uint64" }, { "name": "totem", "type": "string" } ] }-
{ "name": "attempt", "base": "", "fields": [ { "name": "user", "type": "name" } ] } -
{ "name": "boost", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "asset_ids", "type": "uint64[]" } ] } -
{ "name": "claim", "base": "", "fields": [ { "name": "user", "type": "name" } ] } claimboost中的操作参数
{ "name": "claimboost", "base": "", "fields": [ { "name": "user", "type": "name" } ] }claimfission中的操作参数
{ "name": "claimfission", "base": "", "fields": [ { "name": "user", "type": "name" } ] }claimfusion中的操作参数
{ "name": "claimfusion", "base": "", "fields": [ { "name": "scope", "type": "name" }, { "name": "user", "type": "name" } ] }cleancrafts中的操作参数
{ "name": "cleancrafts", "base": "", "fields": [] }cleanflimits中的操作参数
{ "name": "cleanflimits", "base": "", "fields": [] }-
{ "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[]" } ] } -
{ "name": "craft", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "asset_ids", "type": "uint64[]" } ] } -
{ "name": "delconfig", "base": "", "fields": [] } -
{ "name": "disable", "base": "", "fields": [] } 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[]" } ] }-
{ "name": "enable", "base": "", "fields": [] } -
{ "name": "gpboost", "base": "", "fields": [ { "name": "user", "type": "name" } ] } -
{ "name": "gpfuse", "base": "", "fields": [ { "name": "user", "type": "name" } ] } -
{ "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" } ] } -
{ "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" } ] } 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" } ] }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[]" } ] }-
{ "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" } ] } orbfission中的操作参数
{ "name": "orbfission", "base": "", "fields": [ { "name": "user", "type": "name" } ] }-
{ "name": "orbfuse", "base": "", "fields": [ { "name": "user", "type": "name" } ] } -
{ "name": "pair_string_AttemptChances", "base": "", "fields": [ { "name": "first", "type": "string" }, { "name": "second", "type": "AttemptChances" } ] } -
{ "name": "pair_string_uint16", "base": "", "fields": [ { "name": "first", "type": "string" }, { "name": "second", "type": "uint16" } ] } -
{ "name": "pair_string_uint32", "base": "", "fields": [ { "name": "first", "type": "string" }, { "name": "second", "type": "uint32" } ] } -
{ "name": "pair_string_uint64", "base": "", "fields": [ { "name": "first", "type": "string" }, { "name": "second", "type": "uint64" } ] } paycooldown中的操作参数
{ "name": "paycooldown", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "asset_id", "type": "uint64" } ] }raritychance中的操作参数
{ "name": "raritychance", "base": "", "fields": [ { "name": "rarities", "type": "string[]" }, { "name": "chances", "type": "Chance[]" }, { "name": "total_odds", "type": "uint32" } ] }receiverand中的操作参数
{ "name": "receiverand", "base": "", "fields": [ { "name": "assoc_id", "type": "uint64" }, { "name": "random_value", "type": "checksum256" } ] }-
{ "name": "setlimits", "base": "", "fields": [ { "name": "gp_fusions", "type": "int32" }, { "name": "orb_fusions", "type": "int32" } ] } -
{ "name": "setup", "base": "", "fields": [] } 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" } ] }totemchance中的操作参数
{ "name": "totemchance", "base": "", "fields": [ { "name": "totems", "type": "string[]" }, { "name": "chances", "type": "Chance[]" }, { "name": "total_odds", "type": "uint32" } ] }-
{ "name": "turnoff", "base": "", "fields": [ { "name": "feature", "type": "string" } ] } -
{ "name": "turnon", "base": "", "fields": [ { "name": "feature", "type": "string" } ] } -
{ "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" } ] } updatefees中的操作参数
{ "name": "updatefees", "base": "", "fields": [ { "name": "feature", "type": "string" }, { "name": "fees", "type": "RarityCost[]" } ] }