@galacticcouncil/descriptors 1.0.0 → 1.1.0
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 +12142 -6295
- package/build/descriptors-KCHREEK7.mjs +27 -0
- package/build/hydration.d.ts +2850 -5
- package/build/hydration_metadata-GU77SOMT.mjs +6 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +22 -4
- package/build/index.mjs +22 -4
- package/build/metadataTypes-NV6UZQCC.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +2 -2
- package/build/descriptors-4VWMSC3A.mjs +0 -27
- package/build/hydration_metadata-DO4ISWNV.mjs +0 -6
- package/build/metadataTypes-KXIFXX2S.mjs +0 -6
|
@@ -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,"20":{"19":7,"AssetLocations":8},"21":0,"22":{"19":9,"HubAssetTradability":1},"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":{"AssetFee":17},"31":0,"32":{"Pools":20,"AssetTradability":21},"33":{"33":23},"34":0,"35":{"PoolData":24},"36":{"PoolAssets":26},"37":0,"38":0,"39":{"TotalIssuance":28,"Accounts":29},"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":{"ValidationData":31},"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":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,"20":0,"21":0,"22":{"60":11,"61":12},"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":{"60":15,"61":16},"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},"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,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":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":{"Log":30},"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},"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,"20":0,"21":0,"22":{"62":10,"63":10,"HdxAssetId":1,"HubAssetId":1,"MinWithdrawalFee":1,"MinimumTradingLimit":10,"MinimumPoolLiquidity":10,"NFTCollectionId":10,"BurnProtocolFee":1},"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":{"AssetFeeParameters":18,"ProtocolFeeParameters":18},"31":0,"32":{"64":10,"65":10,"AmplificationRange":22},"33":0,"34":0,"35":{"62":10,"63":10,"64":10,"65":10,"repay_fee":25},"36":{"62":10,"63":10,"64":10,"65":10,"NativeAssetId":1,"GetExchangeFee":25,"OracleSource":27},"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},"apis":{"CurrenciesApi":{"account":32,"accounts":33,"free_balance":34},"DryRunApi":{"dry_run_call":35,"dry_run_xcm":36}}}},[{}],["System","Balances","MultiTransactionPayment","Treasury","Utility","Preimage","Identity","Democracy","Elections","Council","TechnicalCommittee","Tips","Proxy","Multisig","Uniques","StateTrieMigration","ConvictionVoting","Referenda","Whitelist","Assets","AssetRegistry","Claims","Omnipool","TransactionPause","Duster","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","EmaOracle","Broadcast","sell","buy","MaxInRatio","MaxOutRatio","MinPoolLiquidity","MinTradingLimit"]]`);
|
|
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
|
+
};
|