-
Notifications
You must be signed in to change notification settings - Fork 5
/
types_crab.yaml
309 lines (309 loc) · 7.43 KB
/
types_crab.yaml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
types:
AccountData:
feeFrozen: Balance
free: Balance
reserved: Balance
freeKton: Balance
reservedKton: Balance
miscFrozen: Balance
AccountInfo: AccountInfoWithTripleRefCount
AccountInfoWithTripleRefCount:
consumers: RefCount
data: AccountData
nonce: Index
providers: RefCount
sufficients: RefCount
Announcement: ProxyAnnouncement
AuthorityId: '[u8;32]'
AuthoritySignature: '[u8;64]'
BabeEpochConfiguration: 'Null'
BalanceInfo: '{}'
BalanceLock:
id: LockIdentifier
lockFor: LockFor
reasons: Reasons
Bloom: '[u8; 256; Bloom]'
BridgeMessageId: '(LaneId, MessageNonce)'
ChainProperties:
ss58Format: Option<u8>
tokenDecimals: Option<Vec<u32>>
tokenSymbol: Option<Vec<Text>>
Common:
amount: Balance
DepositId: U256
EcdsaAddress: EthereumAddress
EcdsaMessage: H256
EcdsaSignature: '[u8; 65; EcdsaSignature]'
ElectionCompute:
_enum:
- OnChain
- Signed
- Authority
ElectionResultT:
electedStashes: Vec<AccountId>
exposures: Vec<(AccountId, ExposureT)>
compute: ElectionCompute
EthashProof:
dagNodes: (H512, H512)
proof: Vec<H128>
EthereumAddress: H160
EthereumBlockNumber: u64
EthereumHeader:
parentHash: H256
timestamp: u64
number: EthereumBlockNumber
author: EthereumAddress
transactionsRoot: H256
unclesHash: H256
extraData: Bytes
stateRoot: H256
receiptsRoot: H256
logBloom: Bloom
gasUsed: U256
gasLimit: U256
difficulty: U256
seal: Vec<Bytes>
baseFeePerGas: Option<U256>
blockHash: Option<H256>
EthereumNetwork:
_enum:
Mainnet: 'Null'
Ropsten: 'Null'
EthereumReceipt:
gasUsed: U256
logBloom: Bloom
logs: Vec<LogEntry>
outcome: TransactionOutcome
EthereumReceiptProof:
index: u64
proof: Bytes
headerHash: H256
EthereumReceiptProofThing: (EthereumHeader, EthereumReceiptProof, MMRProof)
EthereumRelayHeaderParcel:
header: EthereumHeader
parentMmrRoot: H256
EthereumRelayProofs:
ethashProof: Vec<EthashProof>
mmrProof: Vec<H256>
EthereumTransactionIndex: (H256, u64)
Exposure: ExposureT
ExposureT:
ownRingBalance: Compact<Balance>
ownKtonBalance: Compact<Balance>
ownPower: Power
totalPower: Power
others: Vec<IndividualExposure>
Fee:
amount: Balance
H128: '[u8; 16; H128]'
IndividualExposure:
who: AccountId
ringBalance: Compact<Balance>
ktonBalance: Compact<Balance>
power: Power
InProcessOrders:
orders: Vec<LaneId, MessageNonce>
KtonBalance: Balance
LockFor:
_enum:
Common: Common
Staking: StakingLock
LogEntry: '{}'
MMRProof:
memberLeafIndex: u64
lastLeafIndex: u64
proof: Vec<H256>
MMRProofResult:
mmrSize: u64
proof: Text
MMRRoot: Hash
MappedRing: u128
MerkleMountainRangeRootLog:
prefix: '[u8; 4; Prefix]'
ParentMmrRoot: Hash
MessageId: (LaneId, MessageNonce)
MmrNodesPruningConfiguration:
step: NodeIndex
progress: NodeIndex
lastPosition: NodeIndex
MmrRootToSign:
mmrRoot: Hash
signatures: Vec<(AccountId, EcdsaSignature)>
NodeIndex: u64
OpCode: '[u8; 4; OpCode]'
Order:
lane: LaneId
message: MessageNonce
sent_time: BlockNumber
confirm_time: BlockNumber
assigned_relayers: Vec<PriorRelayer>
sentTime: BlockNumber
confirmTime: BlockNumber
lockedCollateral: Balance
assignedRelayers: Vec<PriorRelayer>
OutboundLaneData:
oldestUnprunedNonce: MessageNonce
latestGeneratedNonce: MessageNonce
latestReceivedNonce: MessageNonce
PalletId: LockIdentifier
Power: u32
PowerOf:
power: Power
PriorRelayer:
id: AccountId
fee: Balance
valid_range: BlockNumber
ProxyType:
_enum:
Any: 'Null'
NonTransfer: 'Null'
Governance: 'Null'
Staking: 'Null'
IdentityJudgement: 'Null'
EthereumBridge: 'Null'
RKT:
r: Balance
k: Balance
Reasons:
_enum:
- Fee
- Misc
- All
RedeemFor:
_enum:
Token: 'Null'
Deposit: 'Null'
Relayer:
id: AccountId
collateral: Balance
fee: Balance
RelayAffirmationId:
relayHeaderId: EthereumBlockNumber
round: u32
index: u32
RelayAffirmationT:
relayer: AccountId
relayHeaderParcels: EthereumRelayHeaderParcel
bond: Balance
maybeExtendedRelayAffirmationId: Option<RelayAffirmationId>
verified: bool
RelayAuthorityMessage: EcdsaMessage
RelayAuthoritySignature: EcdsaSignature
RelayAuthoritySigner: EthereumAddress
OtherSignature:
_enum:
Eth: '[u8; 20; EthereumAddress]'
Tron: '[u8; 20; TronAddress]'
OtherAddress:
_enum:
Eth: '[u8; 20; EthereumAddress]'
Tron: TronAddress
AddressT: '[u8; 20; AddressT]'
RelayAuthorityT:
accountId: AccountId
signer: Signer
stake: Balance
term: BlockNumber
RelayHeaderId: EthereumBlockNumber
RelayHeaderParcel: EthereumRelayHeaderParcel
RelayProofs: EthereumRelayProofs
RelayVotingState:
ayes: Vec<AccountId>
nays: Vec<AccountId>
RingBalance: Balance
ScheduledAuthoritiesChangeT:
nextAuthorities: Vec<RelayAuthorityT>
deadline: BlockNumber
SpanRecord:
slashed: RKT
paidOut: RKT
SpecVersion: u32
StakingBalanceT:
_enum:
RingBalance: Balance
KtonBalance: Balance
StakingLedgerT:
stash: AccountId
activeRing: Compact<Balance>
activeDepositRing: Compact<Balance>
activeKton: Compact<Balance>
depositItems: Vec<TimeDepositItem>
ringStakingLock: StakingLock
ktonStakingLock: StakingLock
claimedRewards: Vec<EraIndex>
StakingLock:
stakingAmount: Balance
unbondings: Vec<Unbonding>
Status:
_enum:
Free: 'Null'
Reserved: 'Null'
Term: BlockNumber
TimeDepositItem:
value: Compact<Balance>
startTime: Compact<TsInMs>
expireTime: Compact<TsInMs>
TokenMessageId: '[u8; 16; TokenMessageId]'
TransactionOutcome: '{}'
TreasuryProposal:
proposer: AccountId
beneficiary: AccountId
ringValue: Balance
ringBond: Balance
ktonValue: Balance
ktonBond: Balance
TronAddress: EthereumAddress
TsInMs: u64
UnappliedSlash:
validator: AccountId
own: RKT
others: Vec<(AccountId, RKT)>
reporters: Vec<AccountId>
payout: RKT
Unbonding:
amount: Balance
moment: BlockNumber
UsableBalance:
usableBalance: Balance
ValidatorPrefs: ValidatorPrefsWithBlocked
# typesBundle:
# spec:
# Darwinia:
# types:
# - minmax:
# - 0
# - 2690
# types:
# TokenInfo:
# address: H160
# value: Option<U256>
# option: Option<TokenOption>
# Token:
# _enum:
# InvalidToken: null
# Native: TokenInfo
# Erc20: TokenInfo
# TokenOption:
# name: Vec<u8>
# symbol: Vec<u8>
# decimal: u8
# - minmax:
# - 2690
# - 26100
# types:
# TokenMetadata:
# tokenType: u32
# address: H160
# name: Vec<u8>
# symbol: Vec<u8>
# decimal: u8
# - minmax:
# - 26100
# types:
# Order:
# lane: LaneId
# message: MessageNonce
# sentTime: BlockNumber
# confirmTime: BlockNumber
# lockedCollateral: Balance
# assignedRelayers: Vec<PriorRelayer>