@galacticcouncil/descriptors 1.5.1 → 1.7.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.
@@ -0,0 +1,29 @@
1
+ // .papi/descriptors/src/descriptors.ts
2
+ var [minified, commonTrees, tokens] = JSON.parse(`[{"hydration":{"90":{"18":{"0":0,"1":1,"2":2,"3":3,"4":1,"5":4,"6":5,"7":1,"8":6,"9":7,"10":8,"11":1,"12":9,"13":10,"14":2,"15":2,"16":11,"17":12},"19":0,"20":{"AccountCurrencyMap":18,"AcceptedCurrencies":19,"AcceptedCurrencyPrice":19,"TransactionCurrencyOverride":18},"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":{"0":20},"30":0,"31":0,"32":{"ReferendumCount":1,"ReferendumInfoFor":21,"TrackQueue":22,"DecidingCount":23,"MetadataOf":4},"33":0,"34":0,"37":{"35":27,"36":1,"AssetIds":28,"AssetLocations":29,"BannedAssets":30,"LocationAssets":31,"ExistentialDepositCounter":32},"38":0,"41":{"35":33,"39":34,"40":32,"HubAssetTradability":1},"42":0,"43":0,"50":{"44":1,"45":32,"46":48,"47":49,"48":50,"49":51},"51":0,"52":0,"53":0,"54":0,"55":{"AssetFee":59,"AssetFeeConfiguration":60},"56":{"39":63,"40":32,"56":62,"Votes":64,"VotesRewarded":65,"PositionVotes":64,"ProcessedVotes":65,"SixSecBlocksSince":1},"57":{"Pools":68,"PoolPegs":69,"AssetTradability":51,"PoolSnapshots":70},"58":{"58":73,"BondIds":72},"59":0,"60":{"PoolData":74,"FeeCollectorWithAsset":75},"62":{"61":78,"ShareToken":18,"TotalLiquidity":77},"63":0,"64":0,"65":{"Collaterals":79,"HollarAmountReceived":19,"FlashMinter":80},"66":{"TotalIssuance":19,"Locks":81,"Accounts":82,"Reserves":81},"67":0,"68":0,"69":0,"70":{"5":88,"Pending":84,"CounterForPending":1,"CurrentBlock":85,"CurrentReceipts":86,"CurrentTransactionStatuses":87},"71":0,"72":0,"73":{"44":1,"45":32,"46":48,"47":89,"48":90,"49":91},"74":0,"75":0,"76":{"ValidationData":96},"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":{"Accumulator":107,"Oracles":108,"WhitelistedAssets":109},"89":0},"107":{"18":0,"19":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":{"dispatch_as_treasury":24,"dispatch_as_aave_manager":24,"note_aave_manager":25,"dispatch_with_extra_gas":26,"dispatch_evm_call":24},"37":0,"38":0,"41":{"91":41,"92":42,"add_token":35,"add_liquidity":36,"add_liquidity_with_limit":37,"remove_liquidity":38,"remove_liquidity_with_limit":39,"sacrifice_position":40,"set_asset_tradable_state":43,"refund_refused_asset":44,"set_asset_weight_cap":45,"withdraw_protocol_liquidity":46,"remove_token":47},"42":0,"43":0,"50":0,"51":0,"52":0,"53":0,"54":{"91":54,"92":55,"set_route":56,"force_insert_route":56,"sell_all":57},"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":{"schedule":93,"terminate":94,"unlock_reserves":95},"75":0,"76":0,"77":{"93":97,"94":98,"95":98,"96":99,"97":100,"98":101,"99":102,"100":102,"101":103,"102":103,"103":104,"104":103,"105":105,"106":106},"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0},"108":{"18":0,"19":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,"37":0,"38":0,"41":0,"42":0,"43":0,"50":0,"51":0,"52":0,"53":0,"54":{"Executed":58},"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":{"Log":83},"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0},"123":{"18":{"109":13,"110":14,"111":1,"112":15,"113":16,"114":1},"19":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,"37":0,"38":0,"41":{"115":32,"116":32,"117":32,"118":32,"HdxAssetId":1,"HubAssetId":1,"MinWithdrawalFee":1,"MinimumPoolLiquidity":32,"BurnProtocolFee":1},"42":0,"43":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":{"AssetFeeParameters":61,"ProtocolFeeParameters":61},"56":{"118":32,"119":66,"120":1,"PeriodLength":1,"MinStake":32,"TimePointsWeight":1,"ActionPointsWeight":1,"TimePointsPerPeriod":1,"UnclaimablePeriods":32,"CurrentStakeWeight":1,"MaxVotes":1},"57":{"121":32,"122":32,"AmplificationRange":71},"58":0,"59":0,"60":{"116":32,"117":32,"121":32,"122":32,"repay_fee":76},"62":{"116":32,"117":32,"120":1,"121":32,"122":32,"GetExchangeFee":76,"OracleSource":66},"63":0,"64":0,"65":{"119":66,"HollarId":1,"MinArbitrageAmount":32,"FlashLoanReceiver":80,"GasLimit":32},"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":{"115":32,"120":1,"MaxPriceDifferenceBetweenBlocks":1,"MaxConfigurablePriceDifferenceBetweenBlocks":1,"MaxSchedulePerBlock":1,"MaxNumberOfRetriesOnError":1,"MinimalPeriod":1,"BumpChance":1,"PolkadotNativeAssetId":1,"MinBudgetInNativeCurrency":32,"FeeReceiver":92,"NamedReserveId":66},"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":{"SlotDuration":32},"86":0,"87":0,"88":0,"89":0},"124":{"18":0,"19":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,"37":0,"38":0,"41":0,"42":0,"43":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0},"133":{"129":{"125":131,"126":132,"127":133,"128":134},"132":{"130":135,"131":136},"CurrenciesApi":{"account":110,"accounts":111,"free_balance":112,"minimum_balance":113},"EthereumRuntimeRPCApi":{"chain_id":114,"account_basic":115,"gas_price":116,"account_code_at":117,"author":118,"storage_at":119,"call":120,"create":121,"current_block":122,"current_receipts":123,"current_transaction_statuses":124,"current_all":125,"extrinsic_filter":126,"elasticity":127,"gas_limit_multiplier_support":128,"pending_block":129,"initialize_pending_block":130},"AaveTradeExecutor":{"pairs":137,"liquidity_depth":138,"pool":139,"pools":140}}},"hub":{"90":{"18":{"0":0,"1":1,"2":2,"3":3,"4":1,"5":4,"6":5,"7":1,"8":6,"9":7,"10":141,"11":1,"12":9,"13":10,"14":2,"15":2,"16":11,"17":12,"ExtrinsicWeightReclaimed":142},"19":0,"22":0,"27":0,"28":0,"29":0,"30":0,"35":{"0":156,"36":1,"134":155,"135":157,"136":158},"61":0,"68":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"137":0,"138":{"0":160,"36":163,"134":159,"135":161,"136":162},"139":0},"107":{"18":0,"19":0,"22":0,"27":0,"28":0,"29":0,"30":0,"35":0,"61":0,"68":0,"76":0,"77":{"93":144,"94":145,"95":145,"96":146,"97":147,"98":101,"99":148,"100":148,"101":149,"102":149,"103":104,"104":149,"105":150,"106":151,"add_authorized_alias":152,"remove_authorized_alias":153,"remove_all_authorized_aliases":154},"78":0,"79":0,"83":0,"84":0,"137":0,"138":0,"139":0},"108":{"18":0,"19":0,"22":0,"27":0,"28":0,"29":0,"30":0,"35":0,"61":0,"68":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"137":0,"138":0,"139":0},"123":{"18":{"109":13,"110":14,"111":1,"112":15,"113":143,"114":1},"19":0,"22":0,"27":0,"28":0,"29":0,"30":0,"35":0,"61":0,"68":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"137":0,"138":0,"139":0},"124":{"18":0,"19":0,"22":0,"27":0,"28":0,"29":0,"30":0,"35":0,"61":0,"68":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"137":0,"138":0,"139":0},"133":{"129":{"125":164,"126":165,"127":166,"128":167},"132":{"130":168,"131":169},"AssetConversionApi":{"quote_price_tokens_for_exact_tokens":170,"quote_price_exact_tokens_for_tokens":170,"get_reserves":171}}}},[{}],["Account","ExtrinsicCount","InherentsApplied","BlockWeight","AllExtrinsicsLen","BlockHash","ExtrinsicData","Number","ParentHash","Digest","Events","EventCount","EventTopics","LastRuntimeUpgrade","UpgradedToU32RefCount","UpgradedToTripleRefCount","ExecutionPhase","AuthorizedUpgrade","System","Balances","MultiTransactionPayment","Treasury","Utility","Preimage","Identity","Democracy","TechnicalCommittee","Proxy","Multisig","Uniques","StateTrieMigration","ConvictionVoting","Referenda","Whitelist","Dispatcher","Assets","NextAssetId","AssetRegistry","Claims","Positions","NextPositionId","Omnipool","TransactionPause","Duster","FarmSequencer","DepositSequencer","GlobalFarm","YieldFarm","Deposit","ActiveYieldFarm","OmnipoolWarehouseLM","OmnipoolLiquidityMining","OTC","CircuitBreaker","Router","DynamicFees","Staking","Stableswap","Bonds","OtcSettlements","LBP","PoolAssets","XYK","Referrals","Liquidation","HSM","Tokens","Currencies","Vesting","EVM","Ethereum","EVMAccounts","XYKLiquidityMining","XYKWarehouseLM","DCA","Scheduler","ParachainSystem","PolkadotXcm","XcmpQueue","MessageQueue","OrmlXcm","XTokens","UnknownTokens","CollatorSelection","Session","Aura","Ismp","TokenGateway","EmaOracle","Broadcast","storage","sell","buy","send","teleport_assets","reserve_transfer_assets","execute","force_xcm_version","force_default_xcm_version","force_subscribe_version_notify","force_unsubscribe_version_notify","limited_reserve_transfer_assets","limited_teleport_assets","force_suspension","transfer_assets","claim_assets","transfer_assets_using_type_and_then","tx","events","BlockWeights","BlockLength","BlockHashCount","DbWeight","Version","SS58Prefix","MinimumTradingLimit","MaxInRatio","MaxOutRatio","NFTCollectionId","PalletId","NativeAssetId","MinPoolLiquidity","MinTradingLimit","constants","viewFns","query_acceptable_payment_assets","query_xcm_weight","query_weight_to_asset_fee","query_delivery_fees","XcmPaymentApi","dry_run_call","dry_run_xcm","DryRunApi","apis","Asset","Approvals","Metadata","Nfts","ForeignAssets","AssetConversion"]]`);
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
+ var Hub = getChainDescriptors("hub");
26
+ export {
27
+ Hub,
28
+ Hydration
29
+ };
@@ -1 +1,2 @@
1
1
  export declare const Hydration: Record<string, object>;
2
+ export declare const Hub: Record<string, object>;