-
Notifications
You must be signed in to change notification settings - Fork 5
/
types.json
138 lines (138 loc) · 3.91 KB
/
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"AccountInfo": "AccountInfoWithProviders",
"Address": "AccountId",
"AddressInfo": "Vec<u8>",
"LookupSource": "AccountId",
"EraBenefits": {
"total_fee_reduction_quota": "Compact<Balance>",
"total_market_active_funds": "Compact<Balance>",
"used_fee_reduction_quota": "Compact<Balance>",
"active_era": "Compact<EraIndex>"
},
"FundsType": {
"_enum": [
"SWORK",
"MARKET"
]
},
"FundsUnlockChunk": {
"value": "Compact<Balance>",
"era": "Compact<EraIndex>"
},
"MarketBenefit": {
"total_funds": "Compact<Balance>",
"active_funds": "Compact<Balance>",
"used_fee_reduction_quota": "Compact<Balance>",
"file_reward": "Compact<Balance>",
"refreshed_at": "Compact<EraIndex>",
"unlocking_funds": "Vec<FundsUnlockChunk<Balance>>"
},
"SworkBenefit": {
"total_funds": "Compact<Balance>",
"active_funds": "Compact<Balance>",
"total_fee_reduction_count": "u32",
"used_fee_reduction_count": "u32",
"refreshed_at": "Compact<EraIndex>",
"unlocking_funds": "Vec<FundsUnlockChunk<Balance>>"
},
"BridgeChainId": "u8",
"ChainId": "u8",
"ResourceId": "H256",
"DepositNonce": "u64",
"ProposalStatus": {
"_enum": [
"Initiated",
"Approved",
"Rejected"
]
},
"ProposalVotes": {
"votes_for": "Vec<AccountId>",
"votes_against": "Vec<AccountId>",
"status": "ProposalStatus",
"expiry": "BlockNumber"
},
"Erc721Token": {
"id": "TokenId",
"metadata": "Vec<u8>"
},
"TokenId": "U256",
"ETHAddress": "Vec<u8>",
"EthereumTxHash": "H256",
"Lock": {
"total": "Compact<Balance>",
"last_unlock_at": "BlockNumber",
"lock_type": "LockType"
},
"LockType": {
"delay": "BlockNumber",
"lock_period": "u32"
},
"FileInfo": {
"file_size": "u64",
"spower": "u64",
"expired_at": "BlockNumber",
"calculated_at": "BlockNumber",
"amount": "Compact<Balance>",
"prepaid": "Compact<Balance>",
"reported_replica_count": "u32",
"replicas": "Vec<Replica<AccountId>>"
},
"FileInfoV2": {
"file_size": "u64",
"spower": "u64",
"expired_at": "BlockNumber",
"calculated_at": "BlockNumber",
"amount": "Compact<Balance>",
"prepaid": "Compact<Balance>",
"reported_replica_count": "u32",
"remaining_paid_count": "u32",
"replicas": "BTreeMap<AccountId, Replica<AccountId>>"
},
"Replica": {
"who": "AccountId",
"valid_at": "BlockNumber",
"anchor": "SworkerAnchor",
"is_reported": "bool",
"created_at": "Option<BlockNumber>"
},
"Guarantee": {
"targets": "Vec<IndividualExposure<AccountId, Balance>>",
"total": "Compact<Balance>",
"submitted_in": "EraIndex",
"suppressed": "bool"
},
"ValidatorPrefs": {
"guarantee_fee": "Compact<Perbill>"
},
"Group": {
"members": "BTreeSet<AccountId>",
"allowlist": "BTreeSet<AccountId>"
},
"IASSig": "Vec<u8>",
"Identity": {
"anchor": "SworkerAnchor",
"punishment_deadline": "u64",
"group": "Option<AccountId>"
},
"ISVBody": "Vec<u8>",
"MerkleRoot": "Vec<u8>",
"ReportSlot": "u64",
"PKInfo": {
"code": "SworkerCode",
"anchor": "Option<SworkerAnchor>"
},
"SworkerAnchor": "Vec<u8>",
"SworkerCert": "Vec<u8>",
"SworkerCode": "Vec<u8>",
"SworkerPubKey": "Vec<u8>",
"SworkerSignature": "Vec<u8>",
"WorkReport": {
"report_slot": "u64",
"spower": "u64",
"free": "u64",
"reported_files_size": "u64",
"reported_srd_root": "MerkleRoot",
"reported_files_root": "MerkleRoot"
}
}