Skip to content

Instantly share code, notes, and snippets.

@qalqi
Created March 11, 2021 15:33
Show Gist options
  • Save qalqi/19582dcfe28853492477205615ef512d to your computer and use it in GitHub Desktop.
Save qalqi/19582dcfe28853492477205615ef512d to your computer and use it in GitHub Desktop.
customtypes
{
"AttributeTransaction": {
"signature": "Signature",
"name": "Vec<u8>",
"value": "Vec<u8>",
"validity": "u32",
"signer": "AccountId",
"identity": "AccountId"
},
"Attribute": {
"name": "Vec<u8>",
"value": "Vec<u8>",
"validity": "BlockNumber",
"creation": "Moment",
"nonce": "u64"
},
"TokenId": "u64",
"SwapId": "u64",
"TokenBalance": "u64",
"Swap": {
"token_id": "TokenId",
"swap_token": "TokenId",
"account": "AccountId"
},
"MissionId": "u32",
"MissionTokenId": "u32",
"MissionTokenBalance": "u128",
"RegistrarIndex": "u32",
"Judgement": {
"_enum": [
"Requested",
"Approved"
]
},
"JudgementItem": "(RegistrarIndex, Judgement)",
"Registration": {
"judgements": "Vec<JudgementItem>",
"account_id": "AccountId"
},
"Bloom": "H256",
"Log": {
"address": "H160",
"topics": "Vec<H256>",
"data": "Bytes"
},
"Receipt": {
"state_root": "H256",
"used_gas": "U256",
"logs_bloom": "Bloom",
"logs": "Vec<Log>"
},
"TransactionAction": {
"_enum": {
"Call": "H160",
"Create": "Null"
}
},
"TransactionRecoveryId": "u64",
"TransactionSignature": {
"v": "TransactionRecoveryId",
"r": "H256",
"s": "H256"
},
"Transaction": {
"nonce": "U256",
"gas_price": "U256",
"gas_limit": "U256",
"action": "TransactionAction",
"value": "U256",
"input": "Bytes",
"signature": "TransactionSignature"
},
"TransactionStatus": {
"transaction_hash": "H256",
"transaction_index": "u32",
"from": "H160",
"to": "Option<H160>",
"contract_address": "Option<H160>",
"logs": "Vec<Log>",
"logs_bloom": "Bloom"
},
"Id": "AuthorityId"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment