forked from AcalaNetwork/acala-subql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
346 lines (346 loc) · 8.44 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
specVersion: 0.0.2
description: ""
repository: ""
schema: ./schema.graphql
network:
endpoint: wss://mandala6.laminar.codes
types:
CallOf: Call
DispatchTime:
_enum:
At: BlockNumber
After: BlockNumber
ScheduleTaskIndex: u32
DelayedOrigin:
delay: BlockNumber
origin: PalletsOrigin
StorageValue: Vec<u8>
GraduallyUpdate:
key: StorageKey
targetValue: StorageValue
perBlock: StorageValue
StorageKeyBytes: Vec<u8>
StorageValueBytes: Vec<u8>
RpcDataProviderId: Text
DataProviderId:
_enum:
- Aggregated
- Acala
- Band
TimestampedValue:
value: OracleValue
timestamp: Moment
TimestampedValueOf: TimestampedValue
OrderedSet: Vec<AccountId>
OrmlAccountData:
free: Balance
frozen: Balance
reserved: Balance
OrmlBalanceLock:
amount: Balance
id: LockIdentifier
AuctionInfo:
bid: Option<(AccountId, Balance)>
start: BlockNumber
end: Option<BlockNumber>
DelayedDispatchTime:
_enum:
At: BlockNumber
After: BlockNumber
DispatchId: u32
Price: FixedU128
OrmlVestingSchedule:
start: BlockNumber
period: BlockNumber
periodCount: u32
perPeriod: Compact<Balance>
VestingScheduleOf: OrmlVestingSchedule
PoolInfo:
totalShares: Compact<Share>
totalRewards: Compact<Balance>
totalWithdrawnRewards: Compact<Balance>
Share: u128
ChainId:
_enum:
RelayChain: "Null"
ParaChain: ParaId
XCurrencyId:
chainId: ChainId
currencyId: Vec<u8>
OracleValue: Price
PalletBalanceOf: Balance
CollateralAuctionItem:
refundRecipient: AccountId
currencyId: CurrencyId
initialAmount: Compact<Balance>
amount: Compact<Balance>
target: Compact<Balance>
startTime: BlockNumber
DebitAuctionItem:
initialAmount: Compact<Balance>
amount: Compact<Balance>
fix: Compact<Balance>
startTime: BlockNumber
SurplusAuctionItem:
amount: Compact<Balance>
startTime: BlockNumber
LiquidationStrategy:
_enum:
- Auction
- Exchange
OptionRate: Option<Rate>
OptionRatio: Option<Ratio>
ChangeOptionRate:
_enum:
NoChange: "Null"
NewValue: OptionRate
ChangeOptionRatio:
_enum:
NoChange: "Null"
NewValue: OptionRatio
ChangeBalance:
_enum:
NoChange: "Null"
NewValue: Balance
RiskManagementParams:
maximumTotalDebitValue: Balance
stabilityFee: Option<Rate>
liquidationRatio: Option<Rate>
liquidationPenalty: Option<Rate>
requiredCollateralRatio: Option<Rate>
TradingPairProvisionParameters:
minContribution: (Balance, Balance)
targetProvision: (Balance, Balance)
accumulatedProvision: (Balance, Balance)
notBefore: BlockNumber
BalanceWrapper:
amount: Balance
BalanceRequest:
amount: Balance
TradingPairStatus:
_enum:
NotEnabled: "Null"
Provisioning: TradingPairProvisionParameters
Enabled: "Null"
EvmAccountInfo:
nonce: Index
contractInfo: Option<EvmContractInfo>
developerDeposit: Option<Balance>
CodeInfo:
codeSize: u32
refCount: u32
EvmContractInfo:
codeHash: H256
maintainer: H160
deployed: bool
EvmAddress: H160
CallRequest:
from: Option<H160>
to: Option<H160>
gasLimit: Option<u32>
storageLimit: Option<u32>
value: Option<U128>
data: Option<Bytes>
RedeemStrategy:
_enum:
Immediately: "Null"
Target: EraIndex
WaitForUnbonding: "Null"
PoolId:
_enum:
Loans: CurrencyId
DexIncentive: CurrencyId
DexSaving: CurrencyId
Homa: "Null"
Position:
collateral: Balance
debit: Balance
CID: Vec<u8>
ClassId: u32
ClassIdOf: ClassId
TokenId: u64
TokenIdOf: TokenId
ClassInfoOf:
metadata: CID
totalIssuance: TokenId
owner: AccountId
data: ClassData
TokenInfoOf:
metadata: CID
owner: AccountId
data: TokenData
ClassData:
deposit: Balance
properties: Properties
TokenData:
deposit: Balance
Properties:
_set:
_bitLength: 8
Transferable: 1
Burnable: 2
HomaUnlockChunk:
value: Compact<Balance>
era: Compact<EraIndex>
BondingLedger:
total: Compact<Balance>
active: Compact<Balance>
unlocking: Vec<UnlockChunk>
Amount: i128
AmountOf: Amount
AuctionId: u32
AuctionIdOf: AuctionId
TokenSymbol:
_enum:
ACA: 0
AUSD: 1
DOT: 2
LDOT: 3
XBTC: 4
RENBTC: 5
POLKABTC: 6
PLM: 7
PHA: 8
HDT: 9
KAR: 128
KUSD: 129
KSM: 130
LKSM: 131
SDN: 135
CurrencyId:
_enum:
Token: TokenSymbol
DEXShare: (TokenSymbol, TokenSymbol)
ERC20: EvmAddress
CurrencyIdOf: CurrencyId
AirDropCurrencyId:
_enum:
- KAR
- ACA
AuthoritysOriginId:
_enum:
- Root
- AcalaTreasury
- HonzonTreasury
- HomaTreasury
- DSWF
TradingPair: (CurrencyId, CurrencyId)
NFTBalance: u128
OracleKey: CurrencyId
AsOriginId: AuthoritysOriginId
SubAccountStatus:
bonded: Balance
available: Balance
unbonding: Vec<(EraIndex,Balance)>
mockRewardRate: Rate
Params:
targetMaxFreeUnbondedRatio: Ratio
targetMinFreeUnbondedRatio: Ratio
targetUnbondingToFreeRatio: Ratio
unbondingToFreeAdjustment: Ratio
baseFeeRate: Rate
Ledger:
bonded: Balance
unbondingToFree: Balance
freePool: Balance
toUnbondNextEra: (Balance, Balance)
ChangeRate:
_enum:
NoChange: "Null"
NewValue: Rate
ChangeRatio:
_enum:
NoChange: "Null"
NewValue: Ratio
BalanceInfo:
amount: Balance
PolkadotAccountId: AccountId
PolkadotAccountIdOf: PolkadotAccountId
ExchangeRate: FixedU128
Rate: FixedU128
Ratio: FixedU128
PublicKey: "[u8; 20]"
DestAddress: Vec<u8>
Keys: SessionKeys2
PalletsOrigin:
_enum:
System: SystemOrigin
Timestamp: "Null"
RandomnessCollectiveFlip: "Null"
Balances: "Null"
Accounts: "Null"
Currencies: "Null"
Tokens: "Null"
Vesting: "Null"
AcalaTreasury: "Null"
Utility: "Null"
Multisig: "Null"
Recovery: "Null"
Proxy: "Null"
Scheduler: "Null"
Indices: "Null"
GraduallyUpdate: "Null"
Authorship: "Null"
Babe: "Null"
Grandpa: "Null"
Staking: "Null"
Session: "Null"
Historical: "Null"
GeneralCouncil: CollectiveOrigin
GeneralCouncilMembership: "Null"
HonzonCouncil: CollectiveOrigin
HonzonCouncilMembership: "Null"
HomaCouncil: CollectiveOrigin
HomaCouncilMembership: "Null"
TechnicalCommittee: CollectiveOrigin
TechnicalCommitteeMembership: "Null"
Authority: DelayedOrigin
ElectionsPhragmen: "Null"
AcalaOracle: "Null"
BandOracle: "Null"
OperatorMembershipAcala: "Null"
OperatorMembershipBand: "Null"
Auction: "Null"
Rewards: "Null"
OrmlNFT: "Null"
Prices: "Null"
Dex: "Null"
AuctionManager: "Null"
Loans: "Null"
Honzon: "Null"
CdpTreasury: "Null"
CdpEngine: "Null"
EmergencyShutdown: "Null"
Homa: "Null"
NomineesElection: "Null"
StakingPool: "Null"
PolkadotBridge: "Null"
Incentives: "Null"
AirDrop: "Null"
NFT: "Null"
RenVmBridge: "Null"
Contracts: "Null"
EVM: "Null"
Sudo: "Null"
TransactionPayment: "Null"
typesAlias:
tokens:
AccountData: OrmlAccountData
BalanceLock: OrmlBalanceLock
evm:
AccountInfo: EvmAccountInfo
ContractInfo: EvmContractInfo
nomineesElection:
UnlockChunk: HomaUnlockChunk
dataSources:
- name: main
kind: substrate/Runtime
startBlock: 261173
mapping:
handlers:
- handler: handleBlock
kind: substrate/BlockHandler
- handler: handleEvent
kind: substrate/EventHandler
- handler: handleCall
kind: substrate/CallHandler