forked from darwinia-network/subql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
440 lines (440 loc) · 11.4 KB
/
project.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
---
dataSources:
- kind: substrate/Runtime
mapping:
handlers:
- handler: handleBlock
kind: substrate/BlockHandler
- filter:
method: Deposit
module: balances
handler: handleEvent
kind: substrate/EventHandler
- handler: handleCall
kind: substrate/CallHandler
name: main
startBlock: 4500000
description: ''
network:
endpoint: wss://rpc.darwinia.network/
types:
AccountData:
feeFrozen: Balance
free: Balance
reserved: Balance
freeKton: Balance
reservedKton: Balance
miscFrozen: Balance
AccountInfo:
nonce: Index
refcount: RefCount
data: AccountData
AccountSigner: MultiSigner
AddressT: '[u8; 20; AddressT]'
AncestryProof: ()
Announcement: ProxyAnnouncement
AuthorityId: '[u8;32]'
AuthoritySet:
authorities: AuthorityList
set_id: SetId
AuthoritySignature: '[u8;64]'
BSCHeader:
parentHash: H256
uncleHash: H256
coinbase: EthereumAddress
stateRoot: H256
transactionsRoot: H256
receiptsRoot: H256
logBloom: Bloom
difficulty: U256
number: u64
gasLimit: U256
gasUsed: U256
timestamp: u64
extraData: Bytes
mixDigest: H256
nonce: Bytes
BabeEpochConfiguration: 'Null'
BalanceInfo: '{}'
BalanceLock:
id: LockIdentifier
lockFor: LockFor
reasons: Reasons
BlockNumberFor: BlockNumber
Bloom: '[u8; 256; Bloom]'
BridgedBlockHash: MillauBlockHash
BridgedBlockNumber: MillauBlockNumber
BridgedHeader: MillauHeader
BridgedOpaqueCall: Vec<u8>
CallOrigin:
_enum:
SourceRoot: ()
TargetAccount: (SourceAccountId, MultiSigner, MultiSignature)
SourceAccount: SourceAccountId
ChainId: Id
ChainProperties:
ss58Format: Option<u8>
tokenDecimals: Option<Vec<u32>>
tokenSymbol: Option<Vec<Text>>
Commit:
target_hash: BridgedBlockHash
target_number: BridgedBlockNumber
precommits: Vec<SignedPrecommit>
Common:
amount: Balance
CompactAssignments: CompactAssignmentsWith16
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'
EthereumNetworkType:
_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: MillauBalance
GrandpaJustification:
round: u64
commit: Commit
votes_ancestries: Vec<BridgedHeader>
H128: '[u8; 16; H128]'
Id: '[u8; 4]'
ImportedHeader:
header: BridgedHeader
requires_justification: bool
is_finalized: bool
signal_hash: Option<BridgedBlockHash>
InboundLaneData:
relayers: Vec<(MessageNonce, MessageNonce, RelayerId)>
last_confirmed_nonce: MessageNonce
InboundRelayer: AccountId
IndividualExposure:
who: AccountId
ringBalance: Compact<Balance>
ktonBalance: Compact<Balance>
power: Power
InitializationData:
authority_list: AuthorityList
header: Header
is_halted: bool
set_id: SetId
KtonBalance: Balance
LaneId: Id
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
MessageData:
payload: MessagePayload
fee: Fee
MessageFeeData:
lane_id: LaneId
payload: OutboundPayload
MessageId: (Id, MessageNonce)
MessageKey:
laneId: LaneId
nonce: MessageNonce
MessageNonce: u64
MessagePayload: Vec<u8>
MessagesDeliveryProofOf:
bridged_header_hash: BridgedBlockHash
storage_proof: Vec<StorageProofItem>
lane: LaneId
MessagesProofOf:
bridged_header_hash: BridgedBlockHash
storage_proof: Vec<StorageProofItem>
lane: LaneId
nonces_start: MessageNonce
nonces_end: MessageNonce
MillauBalance: u64
MillauBlockHash: H512
MillauBlockNumber: u64
MillauDigest:
logs: Vec<MillauDigestItem>
MillauDigestItem:
_enum:
Other: Vec<u8>
AuthoritiesChange: Vec<AuthorityId>
ChangesTrieRoot: MillauBlockHash
SealV0: SealV0
Consensus: Consensus
Seal: Seal
PreRuntime: PreRuntime
MillauHeader:
parent_Hash: MillauBlockHash
number: Compact<MillauBlockNumber>
state_root: MillauBlockHash
extrinsics_root: MillauBlockHash
digest: MillauDigest
MmrNodesPruningConfiguration:
step: NodeIndex
progress: NodeIndex
lastPosition: NodeIndex
MmrRootToSign:
mmrRoot: Hash
signatures: Vec<(EthereumAddress, EcdsaSignature)>
MultiSigner:
_enum:
Ed25519: H256
Sr25519: H256
Ecdsa: '[u8;33]'
NodeIndex: u64
OpCode: '[u8; 4; OpCode]'
OtherAddress:
_enum:
Eth: EthereumAddress
Tron: TronAddress
OtherSignature:
_enum:
Eth: EcdsaSignature
Tron: EcdsaSignature
OutboundLaneData:
latest_generated_nonce: MessageNonce
latest_received_nonce: MessageNonce
oldest_unpruned_nonce: MessageNonce
OutboundMessageFee: Fee
OutboundPayload:
spec_version: SpecVersion
weight: Weight
origin: CallOrigin
call: BridgedOpaqueCall
PalletId: LockIdentifier
Parameter:
_enum:
MillauToRialtoConversionRate: u128
Power: u32
PowerOf:
power: Power
Precommit:
target_hash: BridgedBlockHash
target_number: BridgedBlockNumber
ProxyAnnouncement:
real: AccountId
callHash: Hash
height: BlockNumber
ProxyDefinition:
delegate: AccountId
proxyType: ProxyType
delay: BlockNumber
ProxyType:
_enum:
Any: 'Null'
NonTransfer: 'Null'
Governance: 'Null'
Staking: 'Null'
IdentityJudgement: 'Null'
EthereumBridge: 'Null'
RKT:
r: Balance
k: Balance
RawSolution: RawSolutionWith16
Reasons:
_enum:
- Fee
- Misc
- All
RedeemFor:
_enum:
Token: 'Null'
Deposit: 'Null'
RelayAffirmationId:
relayHeaderId: EthereumBlockNumber
round: u32
index: u32
RelayAffirmationT:
relayer: AccountId
relayHeaderParcels: EthereumRelayHeaderParcel
bond: Balance
maybeExtendedRelayAffirmationId: Option<RelayAffirmationId>
verified: bool
RelayAuthorityMessage: EcdsaMessage
RelayAuthoritySignature: EcdsaSignature
RelayAuthoritySigner: EcdsaAddress
RelayAuthorityT:
accountId: AccountId
signer: EthereumAddress
stake: Balance
term: BlockNumber
RelayHeaderId: EthereumBlockNumber
RelayHeaderParcel: EthereumRelayHeaderParcel
RelayProofs: EthereumRelayProofs
RelayVotingState:
ayes: Vec<AccountId>
nays: Vec<AccountId>
RelayerId: AccountId
RingBalance: Balance
ScheduledAuthoritiesChangeT:
nextAuthorities: Vec<RelayAuthorityT>
deadline: BlockNumber
SignedPrecommit:
precommit: Precommit
signature: AuthoritySignature
id: AuthorityId
Signer: EthereumAddress
SourceAccountId: AccountId
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'
StorageProofItem: Vec<u8>
Term: BlockNumber
TimeDepositItem:
value: Compact<Balance>
startTime: Compact<TsInMs>
expireTime: Compact<TsInMs>
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
UnrewardedRelayersState:
unrewarded_relayer_entries: MessageNonce
messages_in_oldest_entry: MessageNonce
total_messages: MessageNonce
UsableBalance:
usableBalance: Balance
ValidatorPrefs: ValidatorPrefsWithBlocked
typesBundle:
spec:
Darwinia:
types:
- minmax:
- 0
- 22
types:
Address: AccountId
LookupSource: AccountId
- minmax:
- 23
- 24
types:
AccountInfo: AccountInfoWithTripleRefCount
AccountInfoWithTripleRefCount:
consumers: RefCount
data: AccountData
nonce: Index
providers: RefCount
Address: MultiAddress
LookupSource: MultiAddress
MultiAddress: GenericMultiAddress
- minmax:
- 25
types:
AccountInfo: AccountInfoWithTripleRefCount
AccountInfoWithTripleRefCount:
consumers: RefCount
data: AccountData
nonce: Index
providers: RefCount
sufficients: RefCount
Address: MultiAddress
LookupSource: MultiAddress
MultiAddress: GenericMultiAddress
repository: ''
schema: ./schema.graphql
specVersion: 0.0.1