Jungle 4 (Testnet)

platform.gm

合约

{
  "version": "eosio::abi/1.2",
  "types": [],
  "structs": [
    {
      "name": "cleartable",
      "base": "",
      "fields": [
        {
          "name": "table_name",
          "type": "name"
        },
        {
          "name": "scope",
          "type": "name?"
        },
        {
          "name": "max_rows",
          "type": "uint64?"
        }
      ]
    },
    {
      "name": "company_row",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        }
      ]
    },
    {
      "name": "enable",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    },
    {
      "name": "enablegame",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    },
    {
      "name": "foundcompany",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        }
      ]
    },
    {
      "name": "game_config",
      "base": "",
      "fields": [
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "epochtime",
          "type": "uint32"
        },
        {
          "name": "start",
          "type": "time_point_sec"
        },
        {
          "name": "end",
          "type": "time_point_sec"
        }
      ]
    },
    {
      "name": "game_meta",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        },
        {
          "name": "version",
          "type": "string"
        }
      ]
    },
    {
      "name": "game_row",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "config",
          "type": "game_config"
        },
        {
          "name": "meta",
          "type": "game_meta"
        },
        {
          "name": "state",
          "type": "game_state"
        }
      ]
    },
    {
      "name": "game_state",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    },
    {
      "name": "setepochtime",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "epochtime",
          "type": "uint32"
        }
      ]
    },
    {
      "name": "startgame",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "config",
          "type": "game_config"
        },
        {
          "name": "meta",
          "type": "game_meta"
        },
        {
          "name": "state",
          "type": "game_state"
        }
      ]
    },
    {
      "name": "state_row",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    },
    {
      "name": "updategame",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "meta",
          "type": "game_meta"
        }
      ]
    },
    {
      "name": "wipe",
      "base": "",
      "fields": []
    }
  ],
  "actions": [
    {
      "name": "cleartable",
      "type": "cleartable",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: cleartable\nsummary: 'DEBUG: cleartable action'\nicon: https://avatars.githubusercontent.com/u/147292861?s=400&u=3b1af66e90dd851f4d7c096ed6a2fbb4b9e190da\n\n---"
    },
    {
      "name": "enable",
      "type": "enable",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: enable\nsummary: 'Enable/disable platform'\nicon: https://avatars.githubusercontent.com/u/158113782#d3bf290fddeddbb7d32aa897e9f7e9e13a2ae44956142e23eb47b77096a2ea8d\n\n---\n\nEnable or disable the platform contract."
    },
    {
      "name": "enablegame",
      "type": "enablegame",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: enablegame\nsummary: 'Enable/disbable a game'\nicon: https://avatars.githubusercontent.com/u/158113782#d3bf290fddeddbb7d32aa897e9f7e9e13a2ae44956142e23eb47b77096a2ea8d\n\n---\n\nEnable or disable the specified game contract."
    },
    {
      "name": "foundcompany",
      "type": "foundcompany",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: foundcompany\nsummary: 'Found a new company'\nicon: https://avatars.githubusercontent.com/u/158113782#d3bf290fddeddbb7d32aa897e9f7e9e13a2ae44956142e23eb47b77096a2ea8d\n\n---\n\nFound a new company in the Shipload platform contract."
    },
    {
      "name": "setepochtime",
      "type": "setepochtime",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: setepochtime\nsummary: 'DEBUG: override a game''s epoch time'\nicon: https://avatars.githubusercontent.com/u/147292861?s=400&u=3b1af66e90dd851f4d7c096ed6a2fbb4b9e190da\n\n---\n\nOverride the epoch duration in the configuration of the specified game contract. Requires platform contract authority."
    },
    {
      "name": "startgame",
      "type": "startgame",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: startgame\nsummary: 'Start a new game'\nicon: https://avatars.githubusercontent.com/u/158113782#d3bf290fddeddbb7d32aa897e9f7e9e13a2ae44956142e23eb47b77096a2ea8d\n\n---\n\nStart a new game of Shipload deployed to a new contract."
    },
    {
      "name": "updategame",
      "type": "updategame",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: updategame\nsummary: 'Update game information'\nicon: https://avatars.githubusercontent.com/u/158113782#d3bf290fddeddbb7d32aa897e9f7e9e13a2ae44956142e23eb47b77096a2ea8d\n\n---\n\nUpdate the information about the specified game contract.\n\n---"
    },
    {
      "name": "wipe",
      "type": "wipe",
      "ricardian_contract": "---\n\nspec_version: \"0.2.0\"\ntitle: wipe\nsummary: 'DEBUG: wipe action'\nicon: https://avatars.githubusercontent.com/u/147292861?s=400&u=3b1af66e90dd851f4d7c096ed6a2fbb4b9e190da\n\n---"
    }
  ],
  "tables": [
    {
      "name": "company",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "company_row"
    },
    {
      "name": "games",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "game_row"
    },
    {
      "name": "state",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "state_row"
    }
  ],
  "ricardian_clauses": [
    {
      "id": "Shipload (Platform)",
      "body": "Shipload (Platform)"
    }
  ],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}