-
Notifications
You must be signed in to change notification settings - Fork 10
/
polkadot-types.json
120 lines (120 loc) · 2.57 KB
/
polkadot-types.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"Address": "AccountId",
"LookupSource": "AccountId",
"Keys": "SessionKeys2",
"Did": "[u8;32]",
"Bytes32": {
"value": "[u8;32]"
},
"Bytes33": {
"value": "[u8;33]"
},
"Bytes64": {
"value": "[u8;64]"
},
"Bytes65": {
"value": "[u8;65]"
},
"PublicKey": {
"_enum": {
"Sr25519": "Bytes32",
"Ed25519": "Bytes32",
"Secp256k1": "Bytes33"
}
},
"DidSignature": {
"_enum": {
"Sr25519": "Bytes64",
"Ed25519": "Bytes64",
"Secp256k1": "Bytes65"
}
},
"KeyDetail": {
"controller": "Did",
"public_key": "PublicKey"
},
"KeyUpdate": {
"did": "Did",
"public_key": "PublicKey",
"controller": "Option<Did>",
"last_modified_in_block": "BlockNumber"
},
"DidRemoval": {
"did": "Did",
"last_modified_in_block": "BlockNumber"
},
"RegistryId": "[u8;32]",
"RevokeId": "[u8;32]",
"Registry": {
"policy": "Policy",
"add_only": "bool"
},
"Revoke": {
"registry_id": "RegistryId",
"revoke_ids": "BTreeSet<RevokeId>",
"last_modified": "BlockNumber"
},
"UnRevoke": {
"registry_id": "RegistryId",
"revoke_ids": "BTreeSet<RevokeId>",
"last_modified": "BlockNumber"
},
"RemoveRegistry": {
"registry_id": "RegistryId",
"last_modified": "BlockNumber"
},
"PAuth": "BTreeMap<Did, DidSignature>",
"Policy": {
"_enum": {
"OneOf": "BTreeSet<Did>"
}
},
"BlobId": "[u8;32]",
"Blob": {
"id": "BlobId",
"blob": "Vec<u8>",
"author": "Did"
},
"EpochNo": "u32",
"EpochLen": "u32",
"SlotNo": "u64",
"Balance": "u64",
"BlockNumber": "u32",
"EpochDetail": {
"validator_count": "u8",
"starting_slot": "SlotNo",
"expected_ending_slot": "SlotNo",
"ending_slot": "Option<SlotNo>",
"emission_for_validators": "Option<Balance>",
"emission_for_treasury": "Option<Balance>"
},
"ValidatorStatsPerEpoch": {
"block_count": "EpochLen",
"locked_reward": "Option<Balance>",
"unlocked_reward": "Option<Balance>"
},
"Bonus": {
"swap_bonuses": "Vec<(Balance, BlockNumber)>",
"vesting_bonuses": "Vec<(Balance, Balance, BlockNumber)>"
},
"Payload": {
"proposal": "Vec<u8>",
"round_no": "u64"
},
"Membership": {
"members": "BTreeSet<Did>",
"vote_requirement": "u64"
},
"PMAuth": "BTreeMap<Did, DidSignature>",
"StateChange": {
"_enum": {
"KeyUpdate": "KeyUpdate",
"DidRemoval": "DidRemoval",
"Revoke": "Revoke",
"UnRevoke": "UnRevoke",
"RemoveRegistry": "RemoveRegistry",
"Blob": "Blob",
"MasterVote": "Payload"
}
}
}