Vaulta

agc.shipload

Contract

The data structures defined by this contract.

  • Action parameter in advance

    {
      "name": "advance",
      "base": "",
      "fields": [
        {
          "name": "reveal",
          "type": "string"
        },
        {
          "name": "commit",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in arrive

    {
      "name": "arrive",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in buygoods

    {
      "name": "buygoods",
      "base": "",
      "fields": [
        {
          "name": "ship_id",
          "type": "uint64"
        },
        {
          "name": "good_id",
          "type": "uint64"
        },
        {
          "name": "quantity",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in buyship

    {
      "name": "buyship",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        }
      ]
    }
  • Table row type of cargo

    {
      "name": "cargo_row",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "ship_id",
          "type": "uint64"
        },
        {
          "name": "good_id",
          "type": "uint64"
        },
        {
          "name": "paid",
          "type": "uint64"
        },
        {
          "name": "owned",
          "type": "uint32"
        },
        {
          "name": "loaded",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in cleartable

    {
      "name": "cleartable",
      "base": "",
      "fields": [
        {
          "name": "table_name",
          "type": "name"
        },
        {
          "name": "scope",
          "type": "name?"
        },
        {
          "name": "max_rows",
          "type": "uint64?"
        }
      ]
    }
  • Action parameter in commit

    {
      "name": "commit",
      "base": "",
      "fields": [
        {
          "name": "commit",
          "type": "checksum256"
        }
      ]
    }
  • Struct property of location_row

    Struct property of marketprice

    Struct property of marketprices

    Struct property of ship_row

    Struct property of travel

    Struct property of travel_plan

    Struct property of travel_summary

    Struct property of travelplan

    Struct property of traveltime

    {
      "name": "coordinates",
      "base": "",
      "fields": [
        {
          "name": "x",
          "type": "int64"
        },
        {
          "name": "y",
          "type": "int64"
        }
      ]
    }
  • Action parameter in enable

    {
      "name": "enable",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Action return type for marketprice

    Action return type for marketprices

    {
      "name": "good_price",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint16"
        },
        {
          "name": "price",
          "type": "uint64"
        },
        {
          "name": "supply",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in hash

    {
      "name": "hash",
      "base": "",
      "fields": [
        {
          "name": "value",
          "type": "string"
        }
      ]
    }
  • Action parameter in hash512

    {
      "name": "hash512",
      "base": "",
      "fields": [
        {
          "name": "value",
          "type": "string"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "seed",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in jettison

    {
      "name": "jettison",
      "base": "",
      "fields": [
        {
          "name": "ship_id",
          "type": "uint64"
        },
        {
          "name": "good_id",
          "type": "uint16"
        },
        {
          "name": "quantity",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in join

    {
      "name": "join",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        }
      ]
    }
  • Struct property of ship_row

    Struct property of travel_summary

    {
      "name": "loader_stats",
      "base": "",
      "fields": [
        {
          "name": "mass",
          "type": "uint32"
        },
        {
          "name": "quantity",
          "type": "uint16"
        },
        {
          "name": "thrust",
          "type": "uint32"
        }
      ]
    }
  • Table row type of location

    {
      "name": "location_row",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "coordinates",
          "type": "coordinates"
        },
        {
          "name": "epoch",
          "type": "uint64"
        },
        {
          "name": "good_id",
          "type": "uint16"
        },
        {
          "name": "supply",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in marketprice

    {
      "name": "marketprice",
      "base": "",
      "fields": [
        {
          "name": "location",
          "type": "coordinates"
        },
        {
          "name": "good_id",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in marketprices

    {
      "name": "marketprices",
      "base": "",
      "fields": [
        {
          "name": "location",
          "type": "coordinates"
        }
      ]
    }
  • Action parameter in payloan

    {
      "name": "payloan",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Table row type of player

    {
      "name": "player_row",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "balance",
          "type": "uint64"
        },
        {
          "name": "debt",
          "type": "uint64"
        },
        {
          "name": "networth",
          "type": "int64"
        }
      ]
    }
  • Action parameter in purgesupply

    {
      "name": "purgesupply",
      "base": "",
      "fields": [
        {
          "name": "max_rows",
          "type": "uint64?"
        }
      ]
    }
  • Action parameter in salt

    {
      "name": "salt",
      "base": "",
      "fields": [
        {
          "name": "salt",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in sellgoods

    {
      "name": "sellgoods",
      "base": "",
      "fields": [
        {
          "name": "ship_id",
          "type": "uint64"
        },
        {
          "name": "good_id",
          "type": "uint64"
        },
        {
          "name": "quantity",
          "type": "uint64"
        }
      ]
    }
  • Table row type of sequence

    {
      "name": "sequence_row",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "name"
        },
        {
          "name": "value",
          "type": "uint64"
        }
      ]
    }
  • Table row type of ship

    {
      "name": "ship_row",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "location",
          "type": "coordinates"
        },
        {
          "name": "skin",
          "type": "uint8"
        },
        {
          "name": "tier",
          "type": "uint8"
        },
        {
          "name": "state",
          "type": "ship_state"
        },
        {
          "name": "stats",
          "type": "ship_stats"
        },
        {
          "name": "loaders",
          "type": "loader_stats"
        },
        {
          "name": "travelplan",
          "type": "travel_plan?"
        }
      ]
    }
  • Struct property of ship_row

    {
      "name": "ship_state",
      "base": "",
      "fields": [
        {
          "name": "energy",
          "type": "uint32"
        }
      ]
    }
  • Struct property of ship_row

    Struct property of travel_summary

    {
      "name": "ship_stats",
      "base": "",
      "fields": [
        {
          "name": "capacity",
          "type": "uint32"
        },
        {
          "name": "drain",
          "type": "uint32"
        },
        {
          "name": "mass",
          "type": "uint64"
        },
        {
          "name": "maxmass",
          "type": "uint64"
        },
        {
          "name": "orbit",
          "type": "uint16"
        },
        {
          "name": "recharge",
          "type": "uint32"
        },
        {
          "name": "thrust",
          "type": "uint64"
        }
      ]
    }
  • Table row type of state

    {
      "name": "state_row",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        },
        {
          "name": "epoch",
          "type": "uint64"
        },
        {
          "name": "salt",
          "type": "uint64"
        },
        {
          "name": "ships",
          "type": "uint32"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "commit",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in takeloan

    {
      "name": "takeloan",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in travel

    {
      "name": "travel",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "destination",
          "type": "coordinates"
        },
        {
          "name": "recharge",
          "type": "bool"
        }
      ]
    }
  • Struct property of ship_row

    Action return type for travelplan

    {
      "name": "travel_plan",
      "base": "",
      "fields": [
        {
          "name": "departure",
          "type": "time_point"
        },
        {
          "name": "destination",
          "type": "coordinates"
        },
        {
          "name": "distance",
          "type": "uint64"
        },
        {
          "name": "flighttime",
          "type": "uint32"
        },
        {
          "name": "loadtime",
          "type": "uint32"
        },
        {
          "name": "rechargetime",
          "type": "uint32"
        },
        {
          "name": "masspenalty",
          "type": "uint32"
        },
        {
          "name": "mass",
          "type": "uint64"
        },
        {
          "name": "energyusage",
          "type": "uint32"
        }
      ]
    }
  • Action return type for traveltime

    {
      "name": "travel_summary",
      "base": "",
      "fields": [
        {
          "name": "stats",
          "type": "ship_stats"
        },
        {
          "name": "loaders",
          "type": "loader_stats"
        },
        {
          "name": "origin",
          "type": "coordinates"
        },
        {
          "name": "destination",
          "type": "coordinates"
        },
        {
          "name": "distance",
          "type": "uint64"
        },
        {
          "name": "totalmass",
          "type": "uint64"
        },
        {
          "name": "acceleration",
          "type": "float64"
        },
        {
          "name": "flighttime",
          "type": "uint32"
        },
        {
          "name": "energyusage",
          "type": "uint32"
        },
        {
          "name": "rechargetime",
          "type": "uint32"
        },
        {
          "name": "masspenalty",
          "type": "uint32"
        },
        {
          "name": "loadtime",
          "type": "uint64"
        },
        {
          "name": "time",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in travelplan

    {
      "name": "travelplan",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "origin",
          "type": "coordinates"
        },
        {
          "name": "destination",
          "type": "coordinates"
        },
        {
          "name": "recharge",
          "type": "bool"
        }
      ]
    }
  • Action parameter in traveltime

    {
      "name": "traveltime",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "destination",
          "type": "coordinates"
        }
      ]
    }
  • Action parameter in updatecredit

    {
      "name": "updatecredit",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "int64"
        }
      ]
    }
  • Action parameter in updatedebt

    {
      "name": "updatedebt",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "int64"
        }
      ]
    }
  • Action parameter in upgradeship

    {
      "name": "upgradeship",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in wipe

    {
      "name": "wipe",
      "base": "",
      "fields": []
    }
  • Action parameter in wipesequence

    {
      "name": "wipesequence",
      "base": "",
      "fields": []
    }