Skip to content

Instantly share code, notes, and snippets.

@2075
Last active June 30, 2021 11:13
Show Gist options
  • Save 2075/5010099011e7454c3db08e36a53b7f37 to your computer and use it in GitHub Desktop.
Save 2075/5010099011e7454c3db08e36a53b7f37 to your computer and use it in GitHub Desktop.
updated types for zero network 210511
{
  "Address": "MultiAddress",
  "LookupSource": "MultiAddress",
  
  "AccountInfo": "AccountInfoWithDualRefCount",
  "AccountInfoWithDualRefCount": {
    "nonce": "Index",
    "consumers": "RefCount",
    "providers": "RefCount",
    "data": "AccountData"
  },
  
  "Campaign": {
    "id": "Hash",
    "owner": "AccountId",
    "admin": "AccountId",
    "deposit": "Balance",
    "expiry": "BlockNumber",
    "cap": "Balance",
    "name": "Vec<u8>",
    "protocol": "u8",
    "governance": "u8",
    "cid": "Vec<u8>",
    "created": "Timestamp"
  },
  "Proposal": {
    "proposal_id": "Hash",
    "campaign_id": "Hash",
    "purpose": "Vec<u8>",
    "cid": "Vec<u8>",
    "amount": "Balance",
    "expiry": "BlockNumber",
    "status": "u8"
  },
  "EventMessage": "Vec<u8>",
  "Nonce": "u64",
  
  "Entity": {
    "account": "AccountId",
    "index": "u128",
    "cid": "Vec<u8>",
    "created": "BlockNumber",
    "mutated": "BlockNumber"
  },
  "EntityProperty": {
    "value": "u64",
    "mutated": "BlockNumber"
  },
  
  "Item": {
    "ItemId": "ItemId",
    "ItemInfo": "ItemInfo"
  },
  "ItemId": "Hash",
  "ItemInfo": {
    "dob": "u64",
    "dna": "Hash"
  },
  "CID": "Vec<u8>",

  "HypaspaceInfo": "Hash",
  "HypaspaceMetadata": {
    "name": "Vec<u8>"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment