@galacticcouncil/descriptors 1.6.0 → 1.8.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 +21329 -9377
- package/build/descriptors-XM6FUHC6.mjs +29 -0
- package/build/descriptors.d.ts +1 -0
- package/build/hub.d.ts +3443 -0
- package/build/hub_metadata-VJMVMCZ3.mjs +6 -0
- package/build/hub_metadata.d.ts +2 -0
- package/build/hydration.d.ts +766 -8858
- package/build/hydration_metadata-KGTJ7Y2K.mjs +6 -0
- package/build/index.d.ts +11 -2
- package/build/index.js +111 -44
- package/build/index.mjs +94 -43
- package/build/metadataTypes-FWGCMXKE.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +3 -3
- package/build/descriptors-J36P3GQP.mjs +0 -27
- package/build/hydration_metadata-BPAEI6BG.mjs +0 -6
- package/build/metadataTypes-SFKXNHQG.mjs +0 -6
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// .papi/descriptors/src/descriptors.ts
|
|
2
|
+
var [minified, commonTrees, tokens] = JSON.parse(`[{"hydration":{"91":{"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":0,"89":{"Accumulator":107,"Oracles":108,"WhitelistedAssets":109},"90":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":{"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":{"92":41,"93":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":{"92":54,"93":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":{"94":97,"95":98,"96":98,"97":99,"98":100,"99":101,"100":102,"101":102,"102":103,"103":103,"104":104,"105":103,"106":105,"107":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,"90":0},"109":{"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,"90":0},"124":{"18":{"110":13,"111":14,"112":1,"113":15,"114":16,"115":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":{"116":32,"117":32,"118":32,"119":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":{"119":32,"120":66,"121":1,"PeriodLength":1,"MinStake":32,"TimePointsWeight":1,"ActionPointsWeight":1,"TimePointsPerPeriod":1,"UnclaimablePeriods":32,"CurrentStakeWeight":1,"MaxVotes":1},"57":{"122":32,"123":32,"AmplificationRange":71},"58":0,"59":0,"60":{"117":32,"118":32,"122":32,"123":32,"repay_fee":76},"62":{"117":32,"118":32,"121":1,"122":32,"123":32,"GetExchangeFee":76,"OracleSource":66},"63":0,"64":0,"65":{"120":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":{"116":32,"121":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,"90":0},"125":{"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,"90":0},"135":{"131":{"127":131,"128":132,"129":133,"130":134},"134":{"132":135,"133":136},"CurrenciesApi":{"account":110,"accounts":111,"free_balance":112,"minimum_balance":113},"EthereumRuntimeRPCApi":{"126":121,"chain_id":114,"account_basic":115,"gas_price":116,"account_code_at":117,"author":118,"storage_at":119,"call":120,"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":{"91":{"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,"21":0,"22":0,"23":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"35":{"0":157,"36":1,"138":156,"139":158,"140":159},"38":0,"56":0,"61":0,"68":0,"75":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"136":0,"137":0,"141":0,"142":{"0":181,"36":184,"138":180,"139":182,"140":183},"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0},"108":{"18":0,"19":0,"21":0,"22":0,"23":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"35":{"126":160,"force_create":161,"start_destroy":162,"destroy_accounts":162,"destroy_approvals":162,"finish_destroy":162,"mint":163,"burn":164,"transfer":165,"transfer_keep_alive":165,"force_transfer":166,"freeze":167,"thaw":167,"freeze_asset":162,"thaw_asset":162,"transfer_ownership":168,"set_team":169,"set_metadata":170,"clear_metadata":162,"force_set_metadata":171,"force_clear_metadata":162,"force_asset_status":172,"approve_transfer":173,"cancel_approval":174,"force_cancel_approval":175,"transfer_approved":176,"touch":162,"refund":177,"set_min_balance":178,"touch_other":167,"refund_other":167,"block":167,"transfer_all":179},"38":0,"56":0,"61":0,"68":0,"75":0,"76":0,"77":{"94":144,"95":145,"96":145,"97":146,"98":147,"99":101,"100":148,"101":148,"102":149,"103":149,"104":104,"105":149,"106":150,"107":151,"add_authorized_alias":152,"remove_authorized_alias":153,"remove_all_authorized_aliases":154},"78":0,"79":0,"83":0,"84":0,"136":0,"137":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0},"109":{"18":0,"19":0,"21":0,"22":0,"23":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"35":0,"38":0,"56":0,"61":0,"68":0,"75":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"136":0,"137":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0},"124":{"18":{"110":13,"111":14,"112":1,"113":15,"114":143,"115":1},"19":0,"21":0,"22":0,"23":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"35":0,"38":0,"56":0,"61":0,"68":0,"75":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"136":0,"137":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0},"125":{"18":0,"19":0,"21":0,"22":0,"23":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"35":0,"38":0,"56":0,"61":0,"68":0,"75":0,"76":0,"77":0,"78":0,"79":0,"83":0,"84":0,"136":0,"137":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0},"135":{"131":{"127":187,"128":188,"129":189,"130":190},"134":{"132":191,"133":192},"AssetConversionApi":{"quote_price_tokens_for_exact_tokens":193,"quote_price_exact_tokens_for_tokens":193,"get_reserves":194}}}},[{}],["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","IsmpParachain","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","create","query_acceptable_payment_assets","query_xcm_weight","query_weight_to_asset_fee","query_delivery_fees","XcmPaymentApi","dry_run_call","dry_run_xcm","DryRunApi","apis","SnowbridgeSystemFrontend","Indices","Asset","Approvals","Metadata","Nfts","ForeignAssets","AssetConversion","Bounties","ChildBounties","AssetRate","NominationPools","VoterList","DelegatedStaking","MultiBlockElection","MultiBlockElectionSigned","AhOps","AhMigrator"]]`);
|
|
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
|
+
};
|
package/build/descriptors.d.ts
CHANGED