@galacticcouncil/descriptors 1.2.0 → 1.3.0-pr169-c8f4f7a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common-types.d.ts +73 -13
- package/build/descriptors-K5JMSMTY.mjs +27 -0
- package/build/hydration.d.ts +37 -1
- package/build/index.js +2 -2
- package/build/index.mjs +2 -2
- package/build/metadataTypes-NPT7EASO.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +1 -1
- package/build/descriptors-I57RGDYV.mjs +0 -27
- package/build/metadataTypes-DONQGFX6.mjs +0 -6
package/build/common-types.d.ts
CHANGED
|
@@ -145,6 +145,51 @@ export type I8ikpj86u2na1q = {
|
|
|
145
145
|
"cap": bigint;
|
|
146
146
|
"tradable": number;
|
|
147
147
|
};
|
|
148
|
+
export type I5ugnv0dol8v8t = {
|
|
149
|
+
"id": number;
|
|
150
|
+
"owner": SS58String;
|
|
151
|
+
"updated_at": number;
|
|
152
|
+
"total_shares_z": bigint;
|
|
153
|
+
"accumulated_rpz": bigint;
|
|
154
|
+
"reward_currency": number;
|
|
155
|
+
"pending_rewards": bigint;
|
|
156
|
+
"accumulated_paid_rewards": bigint;
|
|
157
|
+
"yield_per_period": bigint;
|
|
158
|
+
"planned_yielding_periods": number;
|
|
159
|
+
"blocks_per_period": number;
|
|
160
|
+
"incentivized_asset": number;
|
|
161
|
+
"max_reward_per_period": bigint;
|
|
162
|
+
"min_deposit": bigint;
|
|
163
|
+
"live_yield_farms_count": number;
|
|
164
|
+
"total_yield_farms_count": number;
|
|
165
|
+
"price_adjustment": bigint;
|
|
166
|
+
"state": Anonymize<Ichuq5bidsq9a6>;
|
|
167
|
+
};
|
|
168
|
+
export type Ichuq5bidsq9a6 = AnonymousEnum<{
|
|
169
|
+
"Active": undefined;
|
|
170
|
+
"Stopped": undefined;
|
|
171
|
+
"Terminated": undefined;
|
|
172
|
+
}>;
|
|
173
|
+
export type I1ksaufim9dq1c = {
|
|
174
|
+
"id": number;
|
|
175
|
+
"updated_at": number;
|
|
176
|
+
"total_shares": bigint;
|
|
177
|
+
"total_valued_shares": bigint;
|
|
178
|
+
"accumulated_rpvs": bigint;
|
|
179
|
+
"accumulated_rpz": bigint;
|
|
180
|
+
"loyalty_curve"?: Anonymize<Ieot4d4ofvtguv>;
|
|
181
|
+
"multiplier": bigint;
|
|
182
|
+
"state": Anonymize<Ichuq5bidsq9a6>;
|
|
183
|
+
"entries_count": bigint;
|
|
184
|
+
"left_to_distribute": bigint;
|
|
185
|
+
"total_stopped": number;
|
|
186
|
+
};
|
|
187
|
+
export type Ieot4d4ofvtguv = ({
|
|
188
|
+
"initial_reward_percentage": bigint;
|
|
189
|
+
"scale_coef": number;
|
|
190
|
+
}) | undefined;
|
|
191
|
+
export type Ielgh4t8o7rcvt = FixedSizeArray<3, number>;
|
|
192
|
+
export type I9jd27rnpm8ttv = FixedSizeArray<2, number>;
|
|
148
193
|
export type Ibn3i0ad6beo5l = {
|
|
149
194
|
"asset_fee": number;
|
|
150
195
|
"protocol_fee": number;
|
|
@@ -159,7 +204,6 @@ export type I1p5pqg6bllgtl = {
|
|
|
159
204
|
"fee": number;
|
|
160
205
|
};
|
|
161
206
|
export type Icgljjb6j82uhn = Array<number>;
|
|
162
|
-
export type I9jd27rnpm8ttv = FixedSizeArray<2, number>;
|
|
163
207
|
export type I4ojmnsk1dchql = [number, bigint];
|
|
164
208
|
export type Iesq88051ch8ht = {
|
|
165
209
|
"owner": SS58String;
|
|
@@ -182,12 +226,39 @@ export type Ic02kut0350gb0 = {
|
|
|
182
226
|
"frozen": bigint;
|
|
183
227
|
};
|
|
184
228
|
export type I6ouflveob4eli = [SS58String, number];
|
|
229
|
+
export type Id32h28hjj1tch = [SS58String, number, number];
|
|
185
230
|
export type Ifn6q3equiq9qi = {
|
|
186
231
|
"parent_head": Binary;
|
|
187
232
|
"relay_parent_number": number;
|
|
188
233
|
"relay_parent_storage_root": FixedSizeBinary<32>;
|
|
189
234
|
"max_pov_size": number;
|
|
190
235
|
};
|
|
236
|
+
export type Ifmar1ir5rft6l = [{
|
|
237
|
+
"price": {
|
|
238
|
+
"n": bigint;
|
|
239
|
+
"d": bigint;
|
|
240
|
+
};
|
|
241
|
+
"volume": {
|
|
242
|
+
"a_in": bigint;
|
|
243
|
+
"b_out": bigint;
|
|
244
|
+
"a_out": bigint;
|
|
245
|
+
"b_in": bigint;
|
|
246
|
+
};
|
|
247
|
+
"liquidity": {
|
|
248
|
+
"a": bigint;
|
|
249
|
+
"b": bigint;
|
|
250
|
+
};
|
|
251
|
+
"updated_at": number;
|
|
252
|
+
}, number];
|
|
253
|
+
export type I1os9h4ivict7u = [FixedSizeBinary<8>, Anonymize<I9jd27rnpm8ttv>, Anonymize<I9m0752cdvui5o>];
|
|
254
|
+
export type I9m0752cdvui5o = AnonymousEnum<{
|
|
255
|
+
"LastBlock": undefined;
|
|
256
|
+
"Short": undefined;
|
|
257
|
+
"TenMinutes": undefined;
|
|
258
|
+
"Hour": undefined;
|
|
259
|
+
"Day": undefined;
|
|
260
|
+
"Week": undefined;
|
|
261
|
+
}>;
|
|
191
262
|
export type In7a38730s6qs = {
|
|
192
263
|
"base_block": Anonymize<I4q39t5hn830vp>;
|
|
193
264
|
"max_block": Anonymize<I4q39t5hn830vp>;
|
|
@@ -9490,10 +9561,6 @@ export type I200n1ov5tbcvr = FixedSizeArray<2, bigint>;
|
|
|
9490
9561
|
export type I9q8qmop6bko5m = {
|
|
9491
9562
|
"global_farm_id": number;
|
|
9492
9563
|
};
|
|
9493
|
-
export type Ieot4d4ofvtguv = ({
|
|
9494
|
-
"initial_reward_percentage": bigint;
|
|
9495
|
-
"scale_coef": number;
|
|
9496
|
-
}) | undefined;
|
|
9497
9564
|
export type I2k37dcoppgins = {
|
|
9498
9565
|
"deposit_id": bigint;
|
|
9499
9566
|
"yield_farm_id": number;
|
|
@@ -9534,14 +9601,7 @@ export type Iest0fomljvrb6 = {
|
|
|
9534
9601
|
};
|
|
9535
9602
|
export type Iunv22mobb368 = Array<Enum<{
|
|
9536
9603
|
"Value": Anonymize<I200n1ov5tbcvr>;
|
|
9537
|
-
"Oracle": [FixedSizeBinary<8>,
|
|
9538
|
-
"LastBlock": undefined;
|
|
9539
|
-
"Short": undefined;
|
|
9540
|
-
"TenMinutes": undefined;
|
|
9541
|
-
"Hour": undefined;
|
|
9542
|
-
"Day": undefined;
|
|
9543
|
-
"Week": undefined;
|
|
9544
|
-
}>, number];
|
|
9604
|
+
"Oracle": [FixedSizeBinary<8>, Anonymize<I9m0752cdvui5o>, number];
|
|
9545
9605
|
}>>;
|
|
9546
9606
|
export type Ionfhf9va2t31 = {
|
|
9547
9607
|
"asset_id": number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// .papi/descriptors/src/descriptors.ts
|
|
2
|
+
var [minified, commonTrees, tokens] = JSON.parse(`[{"hydration":{"storage":{"0":{"Account":0,"Number":1},"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"21":{"20":10,"AssetLocations":11},"22":0,"23":{"20":12,"HubAssetTradability":1},"24":0,"25":0,"29":{"26":16,"27":17,"28":18},"30":0,"31":0,"32":0,"33":0,"34":{"AssetFee":25},"35":0,"36":{"Pools":28,"AssetTradability":18},"37":{"37":30},"38":0,"39":{"PoolData":31},"40":{"PoolAssets":33},"41":0,"42":0,"43":{"TotalIssuance":35,"Accounts":36},"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":{"26":16,"27":38,"28":39},"51":0,"52":0,"53":{"ValidationData":43},"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":{"Oracles":44},"64":0},"tx":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":{"dispatch_as_treasury":7,"dispatch_as_aave_manager":7,"note_aave_manager":8,"dispatch_with_extra_gas":9},"21":0,"22":0,"23":{"65":14,"66":15},"24":0,"25":0,"29":0,"30":0,"31":0,"32":0,"33":{"65":21,"66":22,"sell_all":23},"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":{"schedule":41,"terminate":42},"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0},"events":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"21":0,"22":0,"23":0,"24":0,"25":0,"29":0,"30":0,"31":0,"32":0,"33":{"Executed":24},"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":{"Log":37},"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0},"constants":{"0":{"BlockWeights":2,"BlockLength":3,"BlockHashCount":1,"DbWeight":4,"Version":5,"SS58Prefix":1},"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"21":0,"22":0,"23":{"67":13,"68":13,"69":13,"HdxAssetId":1,"HubAssetId":1,"MinWithdrawalFee":1,"MinimumPoolLiquidity":13,"NFTCollectionId":13,"BurnProtocolFee":1},"24":0,"25":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":{"AssetFeeParameters":26,"ProtocolFeeParameters":26},"35":0,"36":{"70":13,"71":13,"AmplificationRange":29},"37":0,"38":0,"39":{"68":13,"69":13,"70":13,"71":13,"repay_fee":32},"40":{"68":13,"69":13,"70":13,"71":13,"72":1,"GetExchangeFee":32,"OracleSource":34},"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":{"67":13,"72":1,"MaxPriceDifferenceBetweenBlocks":1,"MaxConfigurablePriceDifferenceBetweenBlocks":1,"MaxSchedulePerBlock":1,"MaxNumberOfRetriesOnError":1,"MinimalPeriod":1,"BumpChance":1,"PolkadotNativeAssetId":1,"MinBudgetInNativeCurrency":13,"FeeReceiver":40,"NamedReserveId":34},"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":{"SlotDuration":13},"63":0,"64":0},"viewFns":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"21":0,"22":0,"23":0,"24":0,"25":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0},"apis":{"CurrenciesApi":{"account":45,"accounts":46,"free_balance":47},"DryRunApi":{"dry_run_call":48,"dry_run_xcm":49},"AaveTradeExecutor":{"pairs":50,"liquidity_depth":51,"pool":52,"pools":53}}}},[{}],["System","Balances","MultiTransactionPayment","Treasury","Utility","Preimage","Identity","Democracy","Elections","Council","TechnicalCommittee","Tips","Proxy","Multisig","Uniques","StateTrieMigration","ConvictionVoting","Referenda","Whitelist","Dispatcher","Assets","AssetRegistry","Claims","Omnipool","TransactionPause","Duster","GlobalFarm","YieldFarm","ActiveYieldFarm","OmnipoolWarehouseLM","OmnipoolLiquidityMining","OTC","CircuitBreaker","Router","DynamicFees","Staking","Stableswap","Bonds","OtcSettlements","LBP","XYK","Referrals","Liquidation","Tokens","Currencies","Vesting","EVM","Ethereum","EVMAccounts","XYKLiquidityMining","XYKWarehouseLM","DCA","Scheduler","ParachainSystem","PolkadotXcm","XcmpQueue","MessageQueue","OrmlXcm","XTokens","UnknownTokens","CollatorSelection","Session","Aura","EmaOracle","Broadcast","sell","buy","MinimumTradingLimit","MaxInRatio","MaxOutRatio","MinPoolLiquidity","MinTradingLimit","NativeAssetId"]]`);
|
|
3
|
+
var replaceTokens = (obj) => Object.fromEntries(
|
|
4
|
+
Object.entries(obj).map(([key, value]) => {
|
|
5
|
+
const unwrappedValue = typeof value === "object" ? replaceTokens(value) : value;
|
|
6
|
+
const numericKey = Number(key);
|
|
7
|
+
if (Number.isNaN(numericKey)) {
|
|
8
|
+
return [key, unwrappedValue];
|
|
9
|
+
}
|
|
10
|
+
return [tokens[numericKey], unwrappedValue];
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
var tokenizedCommonTrees = commonTrees.map(replaceTokens);
|
|
14
|
+
var unwrap = (obj, depth) => depth === 0 ? obj : Object.fromEntries(
|
|
15
|
+
Object.entries(obj).map(([key, value]) => [
|
|
16
|
+
key,
|
|
17
|
+
unwrap(
|
|
18
|
+
typeof value === "object" ? value : tokenizedCommonTrees[value],
|
|
19
|
+
depth - 1
|
|
20
|
+
)
|
|
21
|
+
])
|
|
22
|
+
);
|
|
23
|
+
var getChainDescriptors = (key) => unwrap(replaceTokens(minified[key]), 2);
|
|
24
|
+
var Hydration = getChainDescriptors("hydration");
|
|
25
|
+
export {
|
|
26
|
+
Hydration
|
|
27
|
+
};
|
package/build/hydration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
|
|
2
|
-
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q,
|
|
2
|
+
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q, I5ugnv0dol8v8t, I1ksaufim9dq1c, Ielgh4t8o7rcvt, I9jd27rnpm8ttv, Ibn3i0ad6beo5l, I1p5pqg6bllgtl, I4ojmnsk1dchql, Iesq88051ch8ht, Ic02kut0350gb0, I6ouflveob4eli, Id32h28hjj1tch, Ifn6q3equiq9qi, Ifmar1ir5rft6l, I1os9h4ivict7u, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, Ic6nglu2db2c36, Ie5fbn0f5capo3, Ia9ai1mp1viqjd, I4q47u65qosg7e, Icbccs0ug47ilf, I11jcgems8sdco, Ievca65alkkho9, I2qkf9i0e8mf1f, Ib0voua2mn0e9p, I2lu1qfhumniu5, Ii64qoo6q5lth, I2pi935s6uqbh, Ib9aiguc778ujf, If1007933akv96, Ifmc9boeeia623, Ibplkiqg5rvr3e, Icnmrtlo128skq, Icojqvn3afk41n, I4g15ko4u63fja, I8rbu1vdc38cnp, Ick2k1hvh0bm22, I4e4rvm2fqc561, XcmVersionedLocation, XcmVersionedXcm, Id2luorng6dtg7, I95g6i7ilua7lq, I35p85j063s0il, Id5qsstfl1fkb3, I3ii6nera7pkr8 } from "./common-types";
|
|
3
3
|
type AnonymousEnum<T extends {}> = T & {
|
|
4
4
|
__anonymous: true;
|
|
5
5
|
};
|
|
@@ -41,6 +41,20 @@ type IStorage = {
|
|
|
41
41
|
*/
|
|
42
42
|
HubAssetTradability: StorageDescriptor<[], number, false, never>;
|
|
43
43
|
};
|
|
44
|
+
OmnipoolWarehouseLM: {
|
|
45
|
+
/**
|
|
46
|
+
|
|
47
|
+
*/
|
|
48
|
+
GlobalFarm: StorageDescriptor<[Key: number], Anonymize<I5ugnv0dol8v8t>, true, never>;
|
|
49
|
+
/**
|
|
50
|
+
* Yield farm details.
|
|
51
|
+
*/
|
|
52
|
+
YieldFarm: StorageDescriptor<Anonymize<Ielgh4t8o7rcvt>, Anonymize<I1ksaufim9dq1c>, true, never>;
|
|
53
|
+
/**
|
|
54
|
+
* Active(farms able to receive LP shares deposits) yield farms.
|
|
55
|
+
*/
|
|
56
|
+
ActiveYieldFarm: StorageDescriptor<Anonymize<I9jd27rnpm8ttv>, number, true, never>;
|
|
57
|
+
};
|
|
44
58
|
DynamicFees: {
|
|
45
59
|
/**
|
|
46
60
|
* Stores last calculated fee of an asset and block number in which it was changed..
|
|
@@ -92,6 +106,20 @@ type IStorage = {
|
|
|
92
106
|
*/
|
|
93
107
|
Accounts: StorageDescriptor<Anonymize<I6ouflveob4eli>, Anonymize<Ic02kut0350gb0>, false, never>;
|
|
94
108
|
};
|
|
109
|
+
XYKWarehouseLM: {
|
|
110
|
+
/**
|
|
111
|
+
|
|
112
|
+
*/
|
|
113
|
+
GlobalFarm: StorageDescriptor<[Key: number], Anonymize<I5ugnv0dol8v8t>, true, never>;
|
|
114
|
+
/**
|
|
115
|
+
* Yield farm details.
|
|
116
|
+
*/
|
|
117
|
+
YieldFarm: StorageDescriptor<Anonymize<Id32h28hjj1tch>, Anonymize<I1ksaufim9dq1c>, true, never>;
|
|
118
|
+
/**
|
|
119
|
+
* Active(farms able to receive LP shares deposits) yield farms.
|
|
120
|
+
*/
|
|
121
|
+
ActiveYieldFarm: StorageDescriptor<Anonymize<I6ouflveob4eli>, number, true, never>;
|
|
122
|
+
};
|
|
95
123
|
ParachainSystem: {
|
|
96
124
|
/**
|
|
97
125
|
* The [`PersistedValidationData`] set for this block.
|
|
@@ -100,6 +128,14 @@ type IStorage = {
|
|
|
100
128
|
*/
|
|
101
129
|
ValidationData: StorageDescriptor<[], Anonymize<Ifn6q3equiq9qi>, true, never>;
|
|
102
130
|
};
|
|
131
|
+
EmaOracle: {
|
|
132
|
+
/**
|
|
133
|
+
* Oracle storage keyed by data source, involved asset ids and the period length of the oracle.
|
|
134
|
+
*
|
|
135
|
+
* Stores the data entry as well as the block number when the oracle was first initialized.
|
|
136
|
+
*/
|
|
137
|
+
Oracles: StorageDescriptor<Anonymize<I1os9h4ivict7u>, Anonymize<Ifmar1ir5rft6l>, true, never>;
|
|
138
|
+
};
|
|
103
139
|
};
|
|
104
140
|
type ICalls = {
|
|
105
141
|
Dispatcher: {
|