diff --git a/html/DevModeWeb.bundle/site/index.html b/html/DevModeWeb.bundle/site/index.html index 5d002ebd4..762335ab8 100644 --- a/html/DevModeWeb.bundle/site/index.html +++ b/html/DevModeWeb.bundle/site/index.html @@ -1 +1 @@ -SubWallet
SubWallet
\ No newline at end of file +SubWallet
SubWallet
\ No newline at end of file diff --git a/html/DevModeWeb.bundle/site/web-runner-7e39a642b200fcd7f0d8.js b/html/DevModeWeb.bundle/site/web-runner-e3836fbe8eb063db5a88.js similarity index 55% rename from html/DevModeWeb.bundle/site/web-runner-7e39a642b200fcd7f0d8.js rename to html/DevModeWeb.bundle/site/web-runner-e3836fbe8eb063db5a88.js index 1f9231c86..acdde1efe 100644 --- a/html/DevModeWeb.bundle/site/web-runner-7e39a642b200fcd7f0d8.js +++ b/html/DevModeWeb.bundle/site/web-runner-e3836fbe8eb063db5a88.js @@ -1,2 +1,2 @@ -/*! For license information please see web-runner-7e39a642b200fcd7f0d8.js.LICENSE.txt */ -(()=>{var __webpack_modules__={8596:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(13756);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},13756:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.pool=function(e,t){return(0,s.memo)(e,((e,n)=>{const a=function(e,t){return[e,t].sort(((e,t)=>o[e.asToken.toString()]-o[t.asToken.toString()]))}(e,n);return t.query.dex.liquidityPool(a).pipe((0,r.map)((t=>{const[r,i]=t;return e.eq(a[0])&&n.eq(a[1])?[r,i]:[i,r]})))}))};var r=n(69419),i=a(n(88227)),s=n(10448);const o=i.default.types.TokenSymbol._enum},32531:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(31536);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},31536:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.stakingPool=function(e,t){return(0,o.memo)(e,(()=>{const e=function(e){return{defaultExchangeRate:e.consts.stakingPool.defaultExchangeRate,bondingDuration:e.consts.polkadotBridge.bondingDuration,eraLength:e.consts.polkadotBridge.eraLength,stakingCurrency:e.consts.stakingPool.stakingCurrencyId,liquidCurrency:e.consts.stakingPool.liquidCurrencyId}}(t);return(0,i.combineLatest)([t.query.stakingPool.currentEra(),t.query.stakingPool.stakingPoolLedger(),t.query.stakingPool.stakingPoolParams(),t.query.tokens.totalIssuance(e.liquidCurrency)]).pipe((0,s.map)((t=>{const[n,a,i,s]=t;return function(e){for(var t=1;t{"use strict";t.__esModule=!0;var a={derive:!0};t.derive=void 0;var r=u(n(11213)),i=u(n(8596)),s=u(n(32531)),o=n(8484);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=e[i]}return a.default=e,n&&n.set(e,a),a}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));const l={loan:r,dex:i,homa:s};t.derive=l},11213:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(27535);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var r=n(55004);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},55004:(e,t,n)=>{"use strict";t.__esModule=!0,t.allLoanOverviews=function(e,t){return(0,i.memo)(e,(()=>{const n=c(e,t);return(0,s.getAllCollateralCurrencyIds)(t).pipe((0,r.switchMap)((e=>(0,a.combineLatest)(e.map((e=>n(e)))))))}))},t.allLoanTypes=function(e,t){return(0,i.memo)(e,(()=>{const n=o(e,t);return(0,s.getAllCollateralCurrencyIds)(t).pipe((0,r.switchMap)((e=>(0,a.combineLatest)(e.map((e=>n(e)))))))}))},t.loanOverview=c,t.loanType=o;var a=n(48813),r=n(69419),i=n(10448),s=n(12352);function o(e,t){return(0,i.memo)(e,(e=>(0,a.combineLatest)([t.query.cdpEngine.debitExchangeRate(e),t.query.cdpEngine.collateralParams(e)]).pipe((0,r.map)((n=>{const a=function(e){return{minimumDebitValue:e.consts.cdpEngine.minimumDebitValue,defaultDebitExchangeRate:e.consts.cdpEngine.defaultDebitExchangeRate,defaultLiquidationRatio:e.consts.cdpEngine.defaultLiquidationRatio,defaultLiquidationPenalty:e.consts.cdpEngine.defaultLiquidationPenalty}}(t),[r]=n,i=Reflect.has(n[1],"unwrapOrDefault")?n[1].unwrapOrDefault():n[1];return{currency:e,debitExchangeRate:r.isEmpty?a.defaultDebitExchangeRate:r,liquidationPenalty:i.liquidationPenalty.isEmpty?a.defaultLiquidationPenalty:i.liquidationPenalty,liquidationRatio:i.liquidationRatio.isEmpty?a.defaultLiquidationRatio:i.liquidationRatio,requiredCollateralRatio:i.requiredCollateralRatio,interestRatePerSec:i.interestRatePerSec,maximumTotalDebitValue:i.maximumTotalDebitValue,minimumDebitValue:a.minimumDebitValue}})))))}function c(e,t){return(0,i.memo)(e,(e=>t.query.loans.totalPositions(e).pipe((0,r.map)((t=>{const{collateral:n,debit:a}=t;return{currency:e,totalDebit:a,totalCollateral:n}})))))}},27535:(e,t,n)=>{"use strict";t.__esModule=!0,t.allLoans=function(e,t){return(0,i.memo)(e,(n=>{const i=o(e,t);return(0,s.getAllCollateralCurrencyIds)(t).pipe((0,r.switchMap)((e=>(0,a.combineLatest)(e.map((e=>i(n,e)))))))}))},t.loan=o;var a=n(48813),r=n(69419),i=n(10448),s=n(12352);function o(e,t){return(0,i.memo)(e,((e,n)=>t.query.loans.positions(n,e).pipe((0,r.map)((t=>{const{debit:a,collateral:r}=t;return{account:e,currency:n,debit:a,collateral:r}})))))}},87380:()=>{},84221:()=>{},8484:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(87380);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var r=n(84221);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var i=n(51620);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var s=n(92079);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}))},51620:()=>{},92079:()=>{},12352:(e,t,n)=>{"use strict";t.__esModule=!0,t.getAllCollateralCurrencyIds=function(e){return e.query.cdpEngine.collateralParams.keys().pipe((0,a.map)((e=>e.map((e=>e.args[0])))))};var a=n(69419)},62050:(e,t,n)=>{"use strict";var a=n(4293);t.fF=void 0;var r=a(n(58212)),i=a(n(67996)),s=n(71006),o=n(72198),c=n(46055),u=n(42662);const l=["types","rpc","typesAlias","typesBundle","runtime","signedExtensions"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t{"use strict";t.__esModule=!0,t.runtime=void 0,t.runtime={EVMRuntimeRPCApi:[{version:2,methods:{call:{description:"call evm contract",params:[{name:"from",type:"H160"},{name:"to",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"Balance"},{name:"gas_limit",type:"u64"},{name:"storage_limit",type:"u32"},{name:"access_list",type:"Option>"},{name:"estimate",type:"bool"}],type:"Result"},create:{description:"create evm contract",params:[{name:"from",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"Balance"},{name:"gas_limit",type:"u64"},{name:"storage_limit",type:"u32"},{name:"access_list",type:"Option>"},{name:"estimate",type:"bool"}],type:"Result"}}}]}},88227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{},types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128"},typesAlias:{rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}}},24620:(e,t,n)=>{"use strict";n(18070)},83143:(e,t,n)=>{"use strict";n(86265)},51609:(e,t,n)=>{"use strict";n(57755)},68882:(e,t,n)=>{"use strict";n(77969)},26177:(e,t,n)=>{"use strict";n(32693)},60918:(e,t,n)=>{"use strict";n(86073)},63564:(e,t,n)=>{"use strict";n(73292)},76163:(e,t,n)=>{"use strict";n(24620),n(83143),n(51609),n(68882),n(63564),n(26177),n(60918)},46055:(e,t,n)=>{"use strict";t.__esModule=!0,t.typesBundle=t.typesAlias=t.types=t.signedExtensions=t.rpc=t.lookupTypes=void 0;var a=n(23914);n(76163),n(90083);var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=r?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(a,s,o):a[s]=e[s]}return a.default=e,n&&n.set(e,a),a}(n(14465));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.lookupTypes=r;const s=a.types;t.types=s;const o=a.rpc;t.rpc=o;const c=a.typesAlias;t.typesAlias=c;const u=a.typesBundle;t.typesBundle=u;const l=a.signedExtensions;t.signedExtensions=l},72782:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={FrameSystemAccountInfo:{nonce:"u32",consumers:"u32",providers:"u32",sufficients:"u32",data:"PalletBalancesAccountData"},PalletBalancesAccountData:{free:"u128",reserved:"u128",miscFrozen:"u128",feeFrozen:"u128"},FrameSupportWeightsPerDispatchClassU64:{normal:"u64",operational:"u64",mandatory:"u64"},SpRuntimeDigest:{logs:"Vec"},SpRuntimeDigestDigestItem:{_enum:{Other:"Bytes",__Unused1:"Null",__Unused2:"Null",__Unused3:"Null",Consensus:"([u8;4],Bytes)",Seal:"([u8;4],Bytes)",PreRuntime:"([u8;4],Bytes)",__Unused7:"Null",RuntimeEnvironmentUpdated:"Null"}},FrameSystemEventRecord:{phase:"FrameSystemPhase",event:"Event",topics:"Vec"},FrameSystemEvent:{_enum:{ExtrinsicSuccess:{dispatchInfo:"FrameSupportWeightsDispatchInfo"},ExtrinsicFailed:{dispatchError:"SpRuntimeDispatchError",dispatchInfo:"FrameSupportWeightsDispatchInfo"},CodeUpdated:"Null",NewAccount:{account:"AccountId32"},KilledAccount:{account:"AccountId32"},Remarked:{_alias:{hash_:"hash"},sender:"AccountId32",hash_:"H256"}}},FrameSupportWeightsDispatchInfo:{weight:"u64",class:"FrameSupportWeightsDispatchClass",paysFee:"FrameSupportWeightsPays"},FrameSupportWeightsDispatchClass:{_enum:["Normal","Operational","Mandatory"]},FrameSupportWeightsPays:{_enum:["Yes","No"]},SpRuntimeDispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"SpRuntimeModuleError",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"SpRuntimeTokenError",Arithmetic:"SpRuntimeArithmeticError",Transactional:"SpRuntimeTransactionalError"}},SpRuntimeModuleError:{index:"u8",error:"[u8;4]"},SpRuntimeTokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported"]},SpRuntimeArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},SpRuntimeTransactionalError:{_enum:["LimitReached","NoLayer"]},PalletSchedulerEvent:{_enum:{Scheduled:{when:"u32",index:"u32"},Canceled:{when:"u32",index:"u32"},Dispatched:{task:"(u32,u32)",id:"Option",result:"Result"},CallLookupFailed:{task:"(u32,u32)",id:"Option",error:"FrameSupportScheduleLookupError"}}},FrameSupportScheduleLookupError:{_enum:["Unknown","BadFormat"]},PalletUtilityEvent:{_enum:{BatchInterrupted:{index:"u32",error:"SpRuntimeDispatchError"},BatchCompleted:"Null",BatchCompletedWithErrors:"Null",ItemCompleted:"Null",ItemFailed:{error:"SpRuntimeDispatchError"},DispatchedAs:{result:"Result"}}},PalletMultisigEvent:{_enum:{NewMultisig:{approving:"AccountId32",multisig:"AccountId32",callHash:"[u8;32]"},MultisigApproval:{approving:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]"},MultisigExecuted:{approving:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]",result:"Result"},MultisigCancelled:{cancelling:"AccountId32",timepoint:"PalletMultisigTimepoint",multisig:"AccountId32",callHash:"[u8;32]"}}},PalletMultisigTimepoint:{height:"u32",index:"u32"},PalletProxyEvent:{_enum:{ProxyExecuted:{result:"Result"},AnonymousCreated:{anonymous:"AccountId32",who:"AccountId32",proxyType:"RuntimeCommonProxyType",disambiguationIndex:"u16"},Announced:{real:"AccountId32",proxy:"AccountId32",callHash:"H256"},ProxyAdded:{delegator:"AccountId32",delegatee:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},ProxyRemoved:{delegator:"AccountId32",delegatee:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"}}},RuntimeCommonProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan","DexLiquidity","StableAssetSwap","StableAssetLiquidity","Homa"]},ModuleTransactionPauseModuleEvent:{_enum:{TransactionPaused:{palletNameBytes:"Bytes",functionNameBytes:"Bytes"},TransactionUnpaused:{palletNameBytes:"Bytes",functionNameBytes:"Bytes"},EvmPrecompilePaused:{address:"H160"},EvmPrecompileUnpaused:{address:"H160"}}},ModuleIdleSchedulerModuleEvent:{_enum:{TaskDispatched:{taskId:"u32",result:"Result"},TaskAdded:{taskId:"u32",task:"AcalaRuntimeScheduledTasks"}}},AcalaRuntimeScheduledTasks:{_enum:{EvmTask:"ModuleEvmEvmTask"}},ModuleEvmEvmTask:{_enum:{Schedule:{from:"H160",target:"H160",input:"Bytes",value:"u128",gasLimit:"u64",storageLimit:"u32"},Remove:{caller:"H160",contract:"H160",maintainer:"H160"}}},AcalaRuntimeRuntime:"Null",PalletPreimageEvent:{_enum:{Noted:{_alias:{hash_:"hash"},hash_:"H256"},Requested:{_alias:{hash_:"hash"},hash_:"H256"},Cleared:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletBalancesEvent:{_enum:{Endowed:{account:"AccountId32",freeBalance:"u128"},DustLost:{account:"AccountId32",amount:"u128"},Transfer:{from:"AccountId32",to:"AccountId32",amount:"u128"},BalanceSet:{who:"AccountId32",free:"u128",reserved:"u128"},Reserved:{who:"AccountId32",amount:"u128"},Unreserved:{who:"AccountId32",amount:"u128"},ReserveRepatriated:{from:"AccountId32",to:"AccountId32",amount:"u128",destinationStatus:"FrameSupportTokensMiscBalanceStatus"},Deposit:{who:"AccountId32",amount:"u128"},Withdraw:{who:"AccountId32",amount:"u128"},Slashed:{who:"AccountId32",amount:"u128"}}},FrameSupportTokensMiscBalanceStatus:{_enum:["Free","Reserved"]},OrmlTokensModuleEvent:{_enum:{Endowed:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},DustLost:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Transfer:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128"},Reserved:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Unreserved:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},ReserveRepatriated:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128",status:"FrameSupportTokensMiscBalanceStatus"},BalanceSet:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",free:"u128",reserved:"u128"},TotalIssuanceSet:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128"},Withdrawn:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Slashed:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",freeAmount:"u128",reservedAmount:"u128"},Deposited:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},LockSet:{lockId:"[u8;8]",currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},LockRemoved:{lockId:"[u8;8]",currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32"}}},AcalaPrimitivesCurrencyCurrencyId:{_enum:{Token:"AcalaPrimitivesCurrencyTokenSymbol",DexShare:"(AcalaPrimitivesCurrencyDexShare,AcalaPrimitivesCurrencyDexShare)",Erc20:"H160",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u16"}},AcalaPrimitivesCurrencyTokenSymbol:{_enum:["ACA","AUSD","DOT","LDOT","TAP","__Unused5","__Unused6","__Unused7","__Unused8","__Unused9","__Unused10","__Unused11","__Unused12","__Unused13","__Unused14","__Unused15","__Unused16","__Unused17","__Unused18","__Unused19","RENBTC","CASH","__Unused22","__Unused23","__Unused24","__Unused25","__Unused26","__Unused27","__Unused28","__Unused29","__Unused30","__Unused31","__Unused32","__Unused33","__Unused34","__Unused35","__Unused36","__Unused37","__Unused38","__Unused39","__Unused40","__Unused41","__Unused42","__Unused43","__Unused44","__Unused45","__Unused46","__Unused47","__Unused48","__Unused49","__Unused50","__Unused51","__Unused52","__Unused53","__Unused54","__Unused55","__Unused56","__Unused57","__Unused58","__Unused59","__Unused60","__Unused61","__Unused62","__Unused63","__Unused64","__Unused65","__Unused66","__Unused67","__Unused68","__Unused69","__Unused70","__Unused71","__Unused72","__Unused73","__Unused74","__Unused75","__Unused76","__Unused77","__Unused78","__Unused79","__Unused80","__Unused81","__Unused82","__Unused83","__Unused84","__Unused85","__Unused86","__Unused87","__Unused88","__Unused89","__Unused90","__Unused91","__Unused92","__Unused93","__Unused94","__Unused95","__Unused96","__Unused97","__Unused98","__Unused99","__Unused100","__Unused101","__Unused102","__Unused103","__Unused104","__Unused105","__Unused106","__Unused107","__Unused108","__Unused109","__Unused110","__Unused111","__Unused112","__Unused113","__Unused114","__Unused115","__Unused116","__Unused117","__Unused118","__Unused119","__Unused120","__Unused121","__Unused122","__Unused123","__Unused124","__Unused125","__Unused126","__Unused127","KAR","KUSD","KSM","LKSM","TAI","__Unused133","__Unused134","__Unused135","__Unused136","__Unused137","__Unused138","__Unused139","__Unused140","__Unused141","__Unused142","__Unused143","__Unused144","__Unused145","__Unused146","__Unused147","__Unused148","__Unused149","__Unused150","__Unused151","__Unused152","__Unused153","__Unused154","__Unused155","__Unused156","__Unused157","__Unused158","__Unused159","__Unused160","__Unused161","__Unused162","__Unused163","__Unused164","__Unused165","__Unused166","__Unused167","BNC","VSKSM","PHA","KINT","KBTC"]},AcalaPrimitivesCurrencyDexShare:{_enum:{Token:"AcalaPrimitivesCurrencyTokenSymbol",Erc20:"H160",LiquidCrowdloan:"u32",ForeignAsset:"u16",StableAssetPoolToken:"u32"}},ModuleCurrenciesModuleEvent:{_enum:{Transferred:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"AccountId32",to:"AccountId32",amount:"u128"},Withdrawn:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},Deposited:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"},DustSwept:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"AccountId32",amount:"u128"}}},OrmlVestingModuleEvent:{_enum:{VestingScheduleAdded:{from:"AccountId32",to:"AccountId32",vestingSchedule:"OrmlVestingVestingSchedule"},Claimed:{who:"AccountId32",amount:"u128"},VestingSchedulesUpdated:{who:"AccountId32"}}},OrmlVestingVestingSchedule:{start:"u32",period:"u32",periodCount:"u32",perPeriod:"Compact"},ModuleTransactionPaymentModuleEvent:{_enum:{ChargeFeePoolEnabled:{subAccount:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId",exchangeRate:"u128",poolSize:"u128",swapThreshold:"u128"},ChargeFeePoolSwapped:{subAccount:"AccountId32",supplyCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",oldExchangeRate:"u128",swapExchangeRate:"u128",newExchangeRate:"u128",newPoolSize:"u128"},ChargeFeePoolDisabled:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",foreignAmount:"u128",nativeAmount:"u128"},TransactionFeePaid:{who:"AccountId32",actualFee:"u128",actualTip:"u128",actualSurplus:"u128"}}},PalletTreasuryEvent:{_enum:{Proposed:{proposalIndex:"u32"},Spending:{budgetRemaining:"u128"},Awarded:{proposalIndex:"u32",award:"u128",account:"AccountId32"},Rejected:{proposalIndex:"u32",slashed:"u128"},Burnt:{burntFunds:"u128"},Rollover:{rolloverBalance:"u128"},Deposit:{value:"u128"},SpendApproved:{proposalIndex:"u32",amount:"u128",beneficiary:"AccountId32"}}},PalletBountiesEvent:{_enum:{BountyProposed:{index:"u32"},BountyRejected:{index:"u32",bond:"u128"},BountyBecameActive:{index:"u32"},BountyAwarded:{index:"u32",beneficiary:"AccountId32"},BountyClaimed:{index:"u32",payout:"u128",beneficiary:"AccountId32"},BountyCanceled:{index:"u32"},BountyExtended:{index:"u32"}}},PalletTipsEvent:{_enum:{NewTip:{tipHash:"H256"},TipClosing:{tipHash:"H256"},TipClosed:{tipHash:"H256",who:"AccountId32",payout:"u128"},TipRetracted:{tipHash:"H256"},TipSlashed:{tipHash:"H256",finder:"AccountId32",deposit:"u128"}}},ModuleCollatorSelectionEvent:{_enum:{NewInvulnerables:{newInvulnerables:"Vec"},NewDesiredCandidates:{newDesiredCandidates:"u32"},NewCandidacyBond:{newCandidacyBond:"u128"},CandidateAdded:{who:"AccountId32",bond:"u128"},CandidateRemoved:{who:"AccountId32"}}},PalletSessionEvent:{_enum:{NewSession:{sessionIndex:"u32"}}},ModuleSessionManagerModuleEvent:{_enum:{ScheduledSessionDuration:{blockNumber:"u32",sessionIndex:"u32",sessionDuration:"u32"}}},CumulusPalletXcmpQueueEvent:{_enum:{Success:{messageHash:"Option",weight:"u64"},Fail:{messageHash:"Option",error:"XcmV2TraitsError",weight:"u64"},BadVersion:{messageHash:"Option"},BadFormat:{messageHash:"Option"},UpwardMessageSent:{messageHash:"Option"},XcmpMessageSent:{messageHash:"Option"},OverweightEnqueued:{sender:"u32",sentAt:"u32",index:"u64",required:"u64"},OverweightServiced:{index:"u64",used:"u64"}}},XcmV2TraitsError:{_enum:{Overflow:"Null",Unimplemented:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",MultiLocationFull:"Null",MultiLocationNotInvertible:"Null",BadOrigin:"Null",InvalidLocation:"Null",AssetNotFound:"Null",FailedToTransactAsset:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",ExceedsMaxMessageSize:"Null",DestinationUnsupported:"Null",Transport:"Null",Unroutable:"Null",UnknownClaim:"Null",FailedToDecode:"Null",MaxWeightInvalid:"Null",NotHoldingFees:"Null",TooExpensive:"Null",Trap:"u64",UnhandledXcmVersion:"Null",WeightLimitReached:"u64",Barrier:"Null",WeightNotComputable:"Null"}},PalletXcmEvent:{_enum:{Attempted:"XcmV2TraitsOutcome",Sent:"(XcmV1MultiLocation,XcmV1MultiLocation,XcmV2Xcm)",UnexpectedResponse:"(XcmV1MultiLocation,u64)",ResponseReady:"(u64,XcmV2Response)",Notified:"(u64,u8,u8)",NotifyOverweight:"(u64,u8,u8,u64,u64)",NotifyDispatchError:"(u64,u8,u8)",NotifyDecodeFailed:"(u64,u8,u8)",InvalidResponder:"(XcmV1MultiLocation,u64,Option)",InvalidResponderVersion:"(XcmV1MultiLocation,u64)",ResponseTaken:"u64",AssetsTrapped:"(H256,XcmV1MultiLocation,XcmVersionedMultiAssets)",VersionChangeNotified:"(XcmV1MultiLocation,u32)",SupportedVersionChanged:"(XcmV1MultiLocation,u32)",NotifyTargetSendFail:"(XcmV1MultiLocation,u64,XcmV2TraitsError)",NotifyTargetMigrationFail:"(XcmVersionedMultiLocation,u64)"}},XcmV2TraitsOutcome:{_enum:{Complete:"u64",Incomplete:"(u64,XcmV2TraitsError)",Error:"XcmV2TraitsError"}},XcmV1MultiLocation:{parents:"u8",interior:"XcmV1MultilocationJunctions"},XcmV1MultilocationJunctions:{_enum:{Here:"Null",X1:"XcmV1Junction",X2:"(XcmV1Junction,XcmV1Junction)",X3:"(XcmV1Junction,XcmV1Junction,XcmV1Junction)",X4:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X5:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X6:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X7:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)",X8:"(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)"}},XcmV1Junction:{_enum:{Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmV0JunctionNetworkId:{_enum:{Any:"Null",Named:"Bytes",Polkadot:"Null",Kusama:"Null"}},XcmV0JunctionBodyId:{_enum:{Unit:"Null",Named:"Bytes",Index:"Compact",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},XcmV0JunctionBodyPart:{_enum:{Voice:"Null",Members:{count:"Compact"},Fraction:{nom:"Compact",denom:"Compact"},AtLeastProportion:{nom:"Compact",denom:"Compact"},MoreThanProportion:{nom:"Compact",denom:"Compact"}}},XcmV2Xcm:"Vec",XcmV2Instruction:{_enum:{WithdrawAsset:"XcmV1MultiassetMultiAssets",ReserveAssetDeposited:"XcmV1MultiassetMultiAssets",ReceiveTeleportedAsset:"XcmV1MultiassetMultiAssets",QueryResponse:{queryId:"Compact",response:"XcmV2Response",maxWeight:"Compact"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"Compact",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},ClearOrigin:"Null",DescendOrigin:"XcmV1MultilocationJunctions",ReportError:{queryId:"Compact",dest:"XcmV1MultiLocation",maxResponseWeight:"Compact"},DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"Compact",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",xcm:"XcmV2Xcm"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter",maxResponseWeight:"Compact"},BuyExecution:{fees:"XcmV1MultiAsset",weightLimit:"XcmV2WeightLimit"},RefundSurplus:"Null",SetErrorHandler:"XcmV2Xcm",SetAppendix:"XcmV2Xcm",ClearError:"Null",ClaimAsset:{assets:"XcmV1MultiassetMultiAssets",ticket:"XcmV1MultiLocation"},Trap:"Compact",SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV1MultiassetMultiAssets:"Vec",XcmV1MultiAsset:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetFungibility"},XcmV1MultiassetAssetId:{_enum:{Concrete:"XcmV1MultiLocation",Abstract:"Bytes"}},XcmV1MultiassetFungibility:{_enum:{Fungible:"Compact",NonFungible:"XcmV1MultiassetAssetInstance"}},XcmV1MultiassetAssetInstance:{_enum:{Undefined:"Null",Index:"Compact",Array4:"[u8;4]",Array8:"[u8;8]",Array16:"[u8;16]",Array32:"[u8;32]",Blob:"Bytes"}},XcmV2Response:{_enum:{Null:"Null",Assets:"XcmV1MultiassetMultiAssets",ExecutionResult:"Option<(u32,XcmV2TraitsError)>",Version:"u32"}},XcmV0OriginKind:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},XcmDoubleEncoded:{encoded:"Bytes"},XcmV1MultiassetMultiAssetFilter:{_enum:{Definite:"XcmV1MultiassetMultiAssets",Wild:"XcmV1MultiassetWildMultiAsset"}},XcmV1MultiassetWildMultiAsset:{_enum:{All:"Null",AllOf:{id:"XcmV1MultiassetAssetId",fun:"XcmV1MultiassetWildFungibility"}}},XcmV1MultiassetWildFungibility:{_enum:["Fungible","NonFungible"]},XcmV2WeightLimit:{_enum:{Unlimited:"Null",Limited:"Compact"}},XcmVersionedMultiAssets:{_enum:{V0:"Vec",V1:"XcmV1MultiassetMultiAssets"}},XcmV0MultiAsset:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:{id:"Bytes"},AllAbstractNonFungible:{class:"Bytes"},AllConcreteFungible:{id:"XcmV0MultiLocation"},AllConcreteNonFungible:{class:"XcmV0MultiLocation"},AbstractFungible:{id:"Bytes",amount:"Compact"},AbstractNonFungible:{class:"Bytes",instance:"XcmV1MultiassetAssetInstance"},ConcreteFungible:{id:"XcmV0MultiLocation",amount:"Compact"},ConcreteNonFungible:{class:"XcmV0MultiLocation",instance:"XcmV1MultiassetAssetInstance"}}},XcmV0MultiLocation:{_enum:{Null:"Null",X1:"XcmV0Junction",X2:"(XcmV0Junction,XcmV0Junction)",X3:"(XcmV0Junction,XcmV0Junction,XcmV0Junction)",X4:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X5:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X6:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X7:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)",X8:"(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)"}},XcmV0Junction:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:{network:"XcmV0JunctionNetworkId",id:"[u8;32]"},AccountIndex64:{network:"XcmV0JunctionNetworkId",index:"Compact"},AccountKey20:{network:"XcmV0JunctionNetworkId",key:"[u8;20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Bytes",OnlyChild:"Null",Plurality:{id:"XcmV0JunctionBodyId",part:"XcmV0JunctionBodyPart"}}},XcmVersionedMultiLocation:{_enum:{V0:"XcmV0MultiLocation",V1:"XcmV1MultiLocation"}},CumulusPalletXcmEvent:{_enum:{InvalidFormat:"[u8;8]",UnsupportedVersion:"[u8;8]",ExecutedDownward:"([u8;8],XcmV2TraitsOutcome)"}},CumulusPalletDmpQueueEvent:{_enum:{InvalidFormat:{messageId:"[u8;32]"},UnsupportedVersion:{messageId:"[u8;32]"},ExecutedDownward:{messageId:"[u8;32]",outcome:"XcmV2TraitsOutcome"},WeightExhausted:{messageId:"[u8;32]",remainingWeight:"u64",requiredWeight:"u64"},OverweightEnqueued:{messageId:"[u8;32]",overweightIndex:"u64",requiredWeight:"u64"},OverweightServiced:{overweightIndex:"u64",weightUsed:"u64"}}},OrmlXtokensModuleEvent:{_enum:{TransferredMultiAssets:{sender:"AccountId32",assets:"XcmV1MultiassetMultiAssets",fee:"XcmV1MultiAsset",dest:"XcmV1MultiLocation"}}},OrmlUnknownTokensModuleEvent:{_enum:{Deposited:{asset:"XcmV1MultiAsset",who:"XcmV1MultiLocation"},Withdrawn:{asset:"XcmV1MultiAsset",who:"XcmV1MultiLocation"}}},OrmlXcmModuleEvent:{_enum:{Sent:{to:"XcmV1MultiLocation",message:"XcmV2Xcm"}}},OrmlAuthorityModuleEvent:{_enum:{Dispatched:{result:"Result"},Scheduled:{origin:"AcalaRuntimeOriginCaller",index:"u32"},FastTracked:{origin:"AcalaRuntimeOriginCaller",index:"u32",when:"u32"},Delayed:{origin:"AcalaRuntimeOriginCaller",index:"u32",when:"u32"},Cancelled:{origin:"AcalaRuntimeOriginCaller",index:"u32"},AuthorizedCall:{_alias:{hash_:"hash"},hash_:"H256",caller:"Option"},RemovedAuthorizedCall:{_alias:{hash_:"hash"},hash_:"H256"},TriggeredCallBy:{_alias:{hash_:"hash"},hash_:"H256",caller:"AccountId32"}}},AcalaRuntimeOriginCaller:{_enum:{system:"FrameSupportDispatchRawOrigin",__Unused1:"Null",__Unused2:"Null",__Unused3:"Null",__Unused4:"Null",__Unused5:"Null",__Unused6:"Null",__Unused7:"Null",Void:"SpCoreVoid",__Unused9:"Null",__Unused10:"Null",__Unused11:"Null",__Unused12:"Null",__Unused13:"Null",__Unused14:"Null",__Unused15:"Null",__Unused16:"Null",__Unused17:"Null",__Unused18:"Null",__Unused19:"Null",__Unused20:"Null",__Unused21:"Null",__Unused22:"Null",__Unused23:"Null",__Unused24:"Null",__Unused25:"Null",__Unused26:"Null",__Unused27:"Null",__Unused28:"Null",__Unused29:"Null",__Unused30:"Null",__Unused31:"Null",__Unused32:"Null",__Unused33:"Null",__Unused34:"Null",__Unused35:"Null",__Unused36:"Null",__Unused37:"Null",__Unused38:"Null",__Unused39:"Null",__Unused40:"Null",__Unused41:"Null",__Unused42:"Null",__Unused43:"Null",__Unused44:"Null",__Unused45:"Null",__Unused46:"Null",__Unused47:"Null",__Unused48:"Null",__Unused49:"Null",__Unused50:"Null",PolkadotXcm:"PalletXcmOrigin",CumulusXcm:"CumulusPalletXcmOrigin",__Unused53:"Null",__Unused54:"Null",__Unused55:"Null",__Unused56:"Null",__Unused57:"Null",__Unused58:"Null",__Unused59:"Null",Authority:"OrmlAuthorityDelayedOrigin",GeneralCouncil:"PalletCollectiveRawOrigin",__Unused62:"Null",FinancialCouncil:"PalletCollectiveRawOrigin",__Unused64:"Null",HomaCouncil:"PalletCollectiveRawOrigin",__Unused66:"Null",TechnicalCommittee:"PalletCollectiveRawOrigin"}},FrameSupportDispatchRawOrigin:{_enum:{Root:"Null",Signed:"AccountId32",None:"Null"}},PalletXcmOrigin:{_enum:{Xcm:"XcmV1MultiLocation",Response:"XcmV1MultiLocation"}},CumulusPalletXcmOrigin:{_enum:{Relay:"Null",SiblingParachain:"u32"}},OrmlAuthorityDelayedOrigin:{delay:"u32",origin:"AcalaRuntimeOriginCaller"},PalletCollectiveRawOrigin:{_enum:{Members:"(u32,u32)",Member:"AccountId32",_Phantom:"Null"}},SpCoreVoid:"Null",PalletCollectiveEvent:{_enum:{Proposed:{account:"AccountId32",proposalIndex:"u32",proposalHash:"H256",threshold:"u32"},Voted:{account:"AccountId32",proposalHash:"H256",voted:"bool",yes:"u32",no:"u32"},Approved:{proposalHash:"H256"},Disapproved:{proposalHash:"H256"},Executed:{proposalHash:"H256",result:"Result"},MemberExecuted:{proposalHash:"H256",result:"Result"},Closed:{proposalHash:"H256",yes:"u32",no:"u32"}}},PalletMembershipEvent:{_enum:["MemberAdded","MemberRemoved","MembersSwapped","MembersReset","KeyChanged","Dummy"]},PalletDemocracyEvent:{_enum:{Proposed:{proposalIndex:"u32",deposit:"u128"},Tabled:{proposalIndex:"u32",deposit:"u128",depositors:"Vec"},ExternalTabled:"Null",Started:{refIndex:"u32",threshold:"PalletDemocracyVoteThreshold"},Passed:{refIndex:"u32"},NotPassed:{refIndex:"u32"},Cancelled:{refIndex:"u32"},Executed:{refIndex:"u32",result:"Result"},Delegated:{who:"AccountId32",target:"AccountId32"},Undelegated:{account:"AccountId32"},Vetoed:{who:"AccountId32",proposalHash:"H256",until:"u32"},PreimageNoted:{proposalHash:"H256",who:"AccountId32",deposit:"u128"},PreimageUsed:{proposalHash:"H256",provider:"AccountId32",deposit:"u128"},PreimageInvalid:{proposalHash:"H256",refIndex:"u32"},PreimageMissing:{proposalHash:"H256",refIndex:"u32"},PreimageReaped:{proposalHash:"H256",provider:"AccountId32",deposit:"u128",reaper:"AccountId32"},Blacklisted:{proposalHash:"H256"},Voted:{voter:"AccountId32",refIndex:"u32",vote:"PalletDemocracyVoteAccountVote"},Seconded:{seconder:"AccountId32",propIndex:"u32"},ProposalCanceled:{propIndex:"u32"}}},PalletDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},PalletDemocracyVoteAccountVote:{_enum:{Standard:{vote:"Vote",balance:"u128"},Split:{aye:"u128",nay:"u128"}}},OrmlOracleModuleEvent:{_enum:{NewFeedData:{sender:"AccountId32",values:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},OrmlAuctionModuleEvent:{_enum:{Bid:{auctionId:"u32",bidder:"AccountId32",amount:"u128"}}},ModulePricesModuleEvent:{_enum:{LockPrice:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",lockedPrice:"u128"},UnlockPrice:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexModuleEvent:{_enum:{AddProvision:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",contribution0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",contribution1:"u128"},AddLiquidity:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",pool0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",pool1:"u128",shareIncrement:"u128"},RemoveLiquidity:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",pool0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",pool1:"u128",shareDecrement:"u128"},Swap:{trader:"AccountId32",path:"Vec",liquidityChanges:"Vec"},EnableTradingPair:{tradingPair:"AcalaPrimitivesTradingPair"},ListProvisioning:{tradingPair:"AcalaPrimitivesTradingPair"},DisableTradingPair:{tradingPair:"AcalaPrimitivesTradingPair"},ProvisioningToEnabled:{tradingPair:"AcalaPrimitivesTradingPair",pool0:"u128",pool1:"u128",shareAmount:"u128"},RefundProvision:{who:"AccountId32",currency0:"AcalaPrimitivesCurrencyCurrencyId",contribution0:"u128",currency1:"AcalaPrimitivesCurrencyCurrencyId",contribution1:"u128"},ProvisioningAborted:{tradingPair:"AcalaPrimitivesTradingPair",accumulatedProvision0:"u128",accumulatedProvision1:"u128"}}},AcalaPrimitivesTradingPair:"(AcalaPrimitivesCurrencyCurrencyId,AcalaPrimitivesCurrencyCurrencyId)",ModuleAuctionManagerModuleEvent:{_enum:{NewCollateralAuction:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",targetBidPrice:"u128"},CancelAuction:{auctionId:"u32"},CollateralAuctionDealt:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",winner:"AccountId32",paymentAmount:"u128"},DEXTakeCollateralAuction:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",supplyCollateralAmount:"u128",targetStableAmount:"u128"},CollateralAuctionAborted:{auctionId:"u32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAmount:"u128",targetStableAmount:"u128",refundRecipient:"AccountId32"}}},ModuleLoansModuleEvent:{_enum:{PositionUpdated:{owner:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitAdjustment:"i128"},ConfiscateCollateralAndDebit:{owner:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId",confiscatedCollateralAmount:"u128",deductDebitAmount:"u128"},TransferLoan:{from:"AccountId32",to:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleHonzonModuleEvent:{_enum:{Authorization:{authorizer:"AccountId32",authorizee:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId"},UnAuthorization:{authorizer:"AccountId32",authorizee:"AccountId32",collateralType:"AcalaPrimitivesCurrencyCurrencyId"},UnAuthorizationAll:{authorizer:"AccountId32"},TransferDebit:{fromCurrency:"AcalaPrimitivesCurrencyCurrencyId",toCurrency:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128"}}},ModuleCdpTreasuryModuleEvent:{_enum:{ExpectedCollateralAuctionSizeUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newSize:"u128"}}},ModuleCdpEngineModuleEvent:{_enum:{LiquidateUnsafeCDP:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32",collateralAmount:"u128",badDebtValue:"u128",targetAmount:"u128"},SettleCDPInDebit:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32"},CloseCDPInDebitByDEX:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",owner:"AccountId32",soldCollateralAmount:"u128",refundCollateralAmount:"u128",debitValue:"u128"},InterestRatePerSecUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newInterestRatePerSec:"Option"},LiquidationRatioUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newLiquidationRatio:"Option"},LiquidationPenaltyUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newLiquidationPenalty:"Option"},RequiredCollateralRatioUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newRequiredCollateralRatio:"Option"},MaximumTotalDebitValueUpdated:{collateralType:"AcalaPrimitivesCurrencyCurrencyId",newTotalDebitValue:"u128"},LiquidationContractRegistered:{address:"H160"},LiquidationContractDeregistered:{address:"H160"}}},ModuleEmergencyShutdownModuleEvent:{_enum:{Shutdown:{blockNumber:"u32"},OpenRefund:{blockNumber:"u32"},Refund:{who:"AccountId32",stableCoinAmount:"u128",refundList:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},ModuleHomaModuleEvent:{_enum:{Minted:{minter:"AccountId32",stakingCurrencyAmount:"u128",liquidAmountReceived:"u128",liquidAmountAddedToVoid:"u128"},RequestedRedeem:{redeemer:"AccountId32",liquidAmount:"u128",allowFastMatch:"bool"},RedeemRequestCancelled:{redeemer:"AccountId32",cancelledLiquidAmount:"u128"},RedeemedByFastMatch:{redeemer:"AccountId32",matchedLiquidAmount:"u128",feeInLiquid:"u128",redeemedStakingAmount:"u128"},RedeemedByUnbond:{redeemer:"AccountId32",eraIndexWhenUnbond:"u32",liquidAmount:"u128",unbondingStakingAmount:"u128"},WithdrawRedemption:{redeemer:"AccountId32",redemptionAmount:"u128"},CurrentEraBumped:{newEraIndex:"u32"},CurrentEraReset:{newEraIndex:"u32"},LedgerBondedReset:{subAccountIndex:"u16",newBondedAmount:"u128"},LedgerUnlockingReset:{subAccountIndex:"u16",newUnlocking:"Vec"},SoftBondedCapPerSubAccountUpdated:{capAmount:"u128"},EstimatedRewardRatePerEraUpdated:{rewardRate:"u128"},CommissionRateUpdated:{commissionRate:"u128"},FastMatchFeeRateUpdated:{fastMatchFeeRate:"u128"},LastEraBumpedBlockUpdated:{lastEraBumpedBlock:"u32"},BumpEraFrequencyUpdated:{frequency:"u32"}}},ModuleHomaModuleUnlockChunk:{value:"Compact",era:"Compact"},ModuleXcmInterfaceModuleEvent:{_enum:{XcmDestWeightUpdated:{xcmOperation:"ModuleXcmInterfaceModuleXcmInterfaceOperation",newXcmDestWeight:"u64"},XcmFeeUpdated:{xcmOperation:"ModuleXcmInterfaceModuleXcmInterfaceOperation",newXcmDestWeight:"u128"}}},ModuleXcmInterfaceModuleXcmInterfaceOperation:{_enum:{XtokensTransfer:"Null",HomaWithdrawUnbonded:"Null",HomaBondExtra:"Null",HomaUnbond:"Null",ParachainFee:"XcmV1MultiLocation"}},ModuleIncentivesModuleEvent:{_enum:{DepositDexShare:{who:"AccountId32",dexShareType:"AcalaPrimitivesCurrencyCurrencyId",deposit:"u128"},WithdrawDexShare:{who:"AccountId32",dexShareType:"AcalaPrimitivesCurrencyCurrencyId",withdraw:"u128"},ClaimRewards:{who:"AccountId32",pool:"ModuleSupportIncentivesPoolId",rewardCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",actualAmount:"u128",deductionAmount:"u128"},IncentiveRewardAmountUpdated:{pool:"ModuleSupportIncentivesPoolId",rewardCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",rewardAmountPerPeriod:"u128"},ClaimRewardDeductionRateUpdated:{pool:"ModuleSupportIncentivesPoolId",deductionRate:"u128"}}},ModuleSupportIncentivesPoolId:{_enum:{Loans:"AcalaPrimitivesCurrencyCurrencyId",Dex:"AcalaPrimitivesCurrencyCurrencyId"}},ModuleNftModuleEvent:{_enum:{CreatedClass:{owner:"AccountId32",classId:"u32"},MintedToken:{from:"AccountId32",to:"AccountId32",classId:"u32",quantity:"u32"},TransferredToken:{from:"AccountId32",to:"AccountId32",classId:"u32",tokenId:"u64"},BurnedToken:{owner:"AccountId32",classId:"u32",tokenId:"u64"},BurnedTokenWithRemark:{owner:"AccountId32",classId:"u32",tokenId:"u64",remarkHash:"H256"},DestroyedClass:{owner:"AccountId32",classId:"u32"}}},ModuleAssetRegistryModuleEvent:{_enum:{ForeignAssetRegistered:{assetId:"u16",assetAddress:"XcmV1MultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},ForeignAssetUpdated:{assetId:"u16",assetAddress:"XcmV1MultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},AssetRegistered:{assetId:"AcalaPrimitivesCurrencyAssetIds",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},AssetUpdated:{assetId:"AcalaPrimitivesCurrencyAssetIds",metadata:"AcalaPrimitivesCurrencyAssetMetadata"}}},AcalaPrimitivesCurrencyAssetMetadata:{name:"Bytes",symbol:"Bytes",decimals:"u8",minimalBalance:"u128"},AcalaPrimitivesCurrencyAssetIds:{_enum:{Erc20:"H160",StableAssetId:"u32",ForeignAssetId:"u16",NativeAssetId:"AcalaPrimitivesCurrencyCurrencyId"}},ModuleEvmModuleEvent:{_enum:{Created:{from:"H160",contract:"H160",logs:"Vec",usedGas:"u64",usedStorage:"i32"},CreatedFailed:{from:"H160",contract:"H160",exitReason:"EvmCoreErrorExitReason",logs:"Vec",usedGas:"u64",usedStorage:"i32"},Executed:{from:"H160",contract:"H160",logs:"Vec",usedGas:"u64",usedStorage:"i32"},ExecutedFailed:{from:"H160",contract:"H160",exitReason:"EvmCoreErrorExitReason",output:"Bytes",logs:"Vec",usedGas:"u64",usedStorage:"i32"},TransferredMaintainer:{contract:"H160",newMaintainer:"H160"},ContractDevelopmentEnabled:{who:"AccountId32"},ContractDevelopmentDisabled:{who:"AccountId32"},ContractPublished:{contract:"H160"},ContractSetCode:{contract:"H160"},ContractSelfdestructed:{contract:"H160"}}},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmCoreErrorExitReason:{_enum:{Succeed:"EvmCoreErrorExitSucceed",Error:"EvmCoreErrorExitError",Revert:"EvmCoreErrorExitRevert",Fatal:"EvmCoreErrorExitFatal"}},EvmCoreErrorExitSucceed:{_enum:["Stopped","Returned","Suicided"]},EvmCoreErrorExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"Null"}},EvmCoreErrorExitRevert:{_enum:["Reverted"]},EvmCoreErrorExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"EvmCoreErrorExitError",Other:"Text"}},ModuleEvmAccountsModuleEvent:{_enum:{ClaimAccount:{accountId:"AccountId32",evmAddress:"H160"}}},NutsfinanceStableAssetEvent:{_enum:{CreatePool:{poolId:"u32",a:"u128",swapId:"AccountId32",palletId:"AccountId32"},Minted:{minter:"AccountId32",poolId:"u32",a:"u128",inputAmounts:"Vec",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmount:"u128"},TokenSwapped:{swapper:"AccountId32",poolId:"u32",a:"u128",inputAsset:"AcalaPrimitivesCurrencyCurrencyId",outputAsset:"AcalaPrimitivesCurrencyCurrencyId",inputAmount:"u128",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",outputAmount:"u128"},RedeemedProportion:{redeemer:"AccountId32",poolId:"u32",a:"u128",inputAmount:"u128",minOutputAmounts:"Vec",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmounts:"Vec"},RedeemedSingle:{redeemer:"AccountId32",poolId:"u32",a:"u128",inputAmount:"u128",outputAsset:"AcalaPrimitivesCurrencyCurrencyId",minOutputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",outputAmount:"u128"},RedeemedMulti:{redeemer:"AccountId32",poolId:"u32",a:"u128",outputAmounts:"Vec",maxInputAmount:"u128",balances:"Vec",totalSupply:"u128",feeAmount:"u128",inputAmount:"u128"},BalanceUpdated:{poolId:"u32",oldBalances:"Vec",newBalances:"Vec"},YieldCollected:{poolId:"u32",a:"u128",oldTotalSupply:"u128",newTotalSupply:"u128",who:"AccountId32",amount:"u128"},FeeCollected:{poolId:"u32",a:"u128",oldBalances:"Vec",newBalances:"Vec",oldTotalSupply:"u128",newTotalSupply:"u128",who:"AccountId32",amount:"u128"},AModified:{poolId:"u32",value:"u128",time:"u32"},FeeModified:{poolId:"u32",mintFee:"u128",swapFee:"u128",redeemFee:"u128"},RecipientModified:{poolId:"u32",feeRecipient:"AccountId32",yieldRecipient:"AccountId32"}}},CumulusPalletParachainSystemEvent:{_enum:{ValidationFunctionStored:"Null",ValidationFunctionApplied:{relayChainBlockNum:"u32"},ValidationFunctionDiscarded:"Null",UpgradeAuthorized:{codeHash:"H256"},DownwardMessagesReceived:{count:"u32"},DownwardMessagesProcessed:{weightUsed:"u64",dmqHead:"H256"}}},PalletSudoEvent:{_enum:{Sudid:{sudoResult:"Result"},KeyChanged:{oldSudoer:"Option"},SudoAsDone:{sudoResult:"Result"}}},FrameSystemPhase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},FrameSystemLastRuntimeUpgradeInfo:{specVersion:"Compact",specName:"Text"},FrameSystemCall:{_enum:{fill_block:{ratio:"Perbill"},remark:{remark:"Bytes"},set_heap_pages:{pages:"u64"},set_code:{code:"Bytes"},set_code_without_checks:{code:"Bytes"},set_storage:{items:"Vec<(Bytes,Bytes)>"},kill_storage:{_alias:{keys_:"keys"},keys_:"Vec"},kill_prefix:{prefix:"Bytes",subkeys:"u32"},remark_with_event:{remark:"Bytes"}}},FrameSystemLimitsBlockWeights:{baseBlock:"u64",maxBlock:"u64",perClass:"FrameSupportWeightsPerDispatchClassWeightsPerClass"},FrameSupportWeightsPerDispatchClassWeightsPerClass:{normal:"FrameSystemLimitsWeightsPerClass",operational:"FrameSystemLimitsWeightsPerClass",mandatory:"FrameSystemLimitsWeightsPerClass"},FrameSystemLimitsWeightsPerClass:{baseExtrinsic:"u64",maxExtrinsic:"Option",maxTotal:"Option",reserved:"Option"},FrameSystemLimitsBlockLength:{max:"FrameSupportWeightsPerDispatchClassU32"},FrameSupportWeightsPerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},FrameSupportWeightsRuntimeDbWeight:{read:"u64",write:"u64"},SpVersionRuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec<([u8;8],u32)>",transactionVersion:"u32",stateVersion:"u8"},FrameSystemError:{_enum:["InvalidSpecName","SpecVersionNeedsToIncrease","FailedToExtractRuntimeVersion","NonDefaultComposite","NonZeroRefCount","CallFiltered"]},PalletTimestampCall:{_enum:{set:{now:"Compact"}}},PalletSchedulerScheduledV3:{maybeId:"Option",priority:"u8",call:"FrameSupportScheduleMaybeHashed",maybePeriodic:"Option<(u32,u32)>",origin:"AcalaRuntimeOriginCaller"},FrameSupportScheduleMaybeHashed:{_enum:{Value:"Call",Hash:"H256"}},PalletSchedulerCall:{_enum:{schedule:{when:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},cancel:{when:"u32",index:"u32"},schedule_named:{id:"Bytes",when:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},cancel_named:{id:"Bytes"},schedule_after:{after:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"},schedule_named_after:{id:"Bytes",after:"u32",maybePeriodic:"Option<(u32,u32)>",priority:"u8",call:"FrameSupportScheduleMaybeHashed"}}},PalletUtilityCall:{_enum:{batch:{calls:"Vec"},as_derivative:{index:"u16",call:"Call"},batch_all:{calls:"Vec"},dispatch_as:{asOrigin:"AcalaRuntimeOriginCaller",call:"Call"},force_batch:{calls:"Vec"}}},PalletMultisigCall:{_enum:{as_multi_threshold_1:{otherSignatories:"Vec",call:"Call"},as_multi:{threshold:"u16",otherSignatories:"Vec",maybeTimepoint:"Option",call:"WrapperKeepOpaque",storeCall:"bool",maxWeight:"u64"},approve_as_multi:{threshold:"u16",otherSignatories:"Vec",maybeTimepoint:"Option",callHash:"[u8;32]",maxWeight:"u64"},cancel_as_multi:{threshold:"u16",otherSignatories:"Vec",timepoint:"PalletMultisigTimepoint",callHash:"[u8;32]"}}},PalletProxyCall:{_enum:{proxy:{real:"AccountId32",forceProxyType:"Option",call:"Call"},add_proxy:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},remove_proxy:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},remove_proxies:"Null",anonymous:{proxyType:"RuntimeCommonProxyType",delay:"u32",index:"u16"},kill_anonymous:{spawner:"AccountId32",proxyType:"RuntimeCommonProxyType",index:"u16",height:"Compact",extIndex:"Compact"},announce:{real:"AccountId32",callHash:"H256"},remove_announcement:{real:"AccountId32",callHash:"H256"},reject_announcement:{delegate:"AccountId32",callHash:"H256"},proxy_announced:{delegate:"AccountId32",real:"AccountId32",forceProxyType:"Option",call:"Call"}}},ModuleTransactionPauseModuleCall:{_enum:{pause_transaction:{palletName:"Bytes",functionName:"Bytes"},unpause_transaction:{palletName:"Bytes",functionName:"Bytes"},pause_evm_precompile:{address:"H160"},unpause_evm_precompile:{address:"H160"}}},ModuleIdleSchedulerModuleCall:{_enum:{schedule_task:{task:"AcalaRuntimeScheduledTasks"}}},PalletPreimageCall:{_enum:{note_preimage:{bytes:"Bytes"},unnote_preimage:{_alias:{hash_:"hash"},hash_:"H256"},request_preimage:{_alias:{hash_:"hash"},hash_:"H256"},unrequest_preimage:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletBalancesCall:{_enum:{transfer:{dest:"MultiAddress",value:"Compact"},set_balance:{who:"MultiAddress",newFree:"Compact",newReserved:"Compact"},force_transfer:{source:"MultiAddress",dest:"MultiAddress",value:"Compact"},transfer_keep_alive:{dest:"MultiAddress",value:"Compact"},transfer_all:{dest:"MultiAddress",keepAlive:"bool"},force_unreserve:{who:"MultiAddress",amount:"u128"}}},ModuleCurrenciesModuleCall:{_enum:{transfer:{dest:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},transfer_native_currency:{dest:"MultiAddress",amount:"Compact"},update_balance:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"i128"},sweep_dust:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",accounts:"Vec"},force_set_lock:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact",lockId:"[u8;8]"},force_remove_lock:{who:"MultiAddress",currencyId:"AcalaPrimitivesCurrencyCurrencyId",lockId:"[u8;8]"}}},OrmlVestingModuleCall:{_enum:{claim:"Null",vested_transfer:{dest:"MultiAddress",schedule:"OrmlVestingVestingSchedule"},update_vesting_schedules:{who:"MultiAddress",vestingSchedules:"Vec"},claim_for:{dest:"MultiAddress"}}},ModuleTransactionPaymentModuleCall:{_enum:{set_alternative_fee_swap_path:{feeSwapPath:"Option>"},enable_charge_fee_pool:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",poolSize:"u128",swapThreshold:"u128"},disable_charge_fee_pool:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"},with_fee_path:{feeSwapPath:"Vec",call:"Call"},with_fee_currency:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",call:"Call"},with_fee_paid_by:{call:"Call",payerAddr:"AccountId32",payerSig:"SpRuntimeMultiSignature"},with_fee_aggregated_path:{feeAggregatedPath:"Vec",call:"Call"}}},SpRuntimeMultiSignature:{_enum:{Ed25519:"SpCoreEd25519Signature",Sr25519:"SpCoreSr25519Signature",Ecdsa:"SpCoreEcdsaSignature"}},SpCoreEd25519Signature:"[u8;64]",SpCoreSr25519Signature:"[u8;64]",SpCoreEcdsaSignature:"[u8;65]",ModuleSupportDexAggregatedSwapPath:{_enum:{Dex:"Vec",Taiga:"(u32,u32,u32)"}},PalletTreasuryCall:{_enum:{propose_spend:{value:"Compact",beneficiary:"MultiAddress"},reject_proposal:{proposalId:"Compact"},approve_proposal:{proposalId:"Compact"},spend:{amount:"Compact",beneficiary:"MultiAddress"},remove_approval:{proposalId:"Compact"}}},PalletBountiesCall:{_enum:{propose_bounty:{value:"Compact",description:"Bytes"},approve_bounty:{bountyId:"Compact"},propose_curator:{bountyId:"Compact",curator:"MultiAddress",fee:"Compact"},unassign_curator:{bountyId:"Compact"},accept_curator:{bountyId:"Compact"},award_bounty:{bountyId:"Compact",beneficiary:"MultiAddress"},claim_bounty:{bountyId:"Compact"},close_bounty:{bountyId:"Compact"},extend_bounty_expiry:{bountyId:"Compact",remark:"Bytes"}}},PalletTipsCall:{_enum:{report_awesome:{reason:"Bytes",who:"AccountId32"},retract_tip:{_alias:{hash_:"hash"},hash_:"H256"},tip_new:{reason:"Bytes",who:"AccountId32",tipValue:"Compact"},tip:{_alias:{hash_:"hash"},hash_:"H256",tipValue:"Compact"},close_tip:{_alias:{hash_:"hash"},hash_:"H256"},slash_tip:{_alias:{hash_:"hash"},hash_:"H256"}}},PalletAuthorshipCall:{_enum:{set_uncles:{newUncles:"Vec"}}},SpRuntimeHeader:{parentHash:"H256",number:"Compact",stateRoot:"H256",extrinsicsRoot:"H256",digest:"SpRuntimeDigest"},SpRuntimeBlakeTwo256:"Null",ModuleCollatorSelectionCall:{_enum:{set_invulnerables:{_alias:{new_:"new"},new_:"Vec"},set_desired_candidates:{max:"Compact"},set_candidacy_bond:{bond:"Compact"},register_as_candidate:"Null",register_candidate:{newCandidate:"AccountId32"},leave_intent:"Null",withdraw_bond:"Null"}},PalletSessionCall:{_enum:{set_keys:{_alias:{keys_:"keys"},keys_:"AcalaRuntimeSessionKeys",proof:"Bytes"},purge_keys:"Null"}},AcalaRuntimeSessionKeys:{aura:"SpConsensusAuraSr25519AppSr25519Public"},SpConsensusAuraSr25519AppSr25519Public:"SpCoreSr25519Public",SpCoreSr25519Public:"[u8;32]",ModuleSessionManagerModuleCall:{_enum:{schedule_session_duration:{startSession:"Compact",duration:"Compact"}}},CumulusPalletXcmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"},suspend_xcm_execution:"Null",resume_xcm_execution:"Null",update_suspend_threshold:{_alias:{new_:"new"},new_:"u32"},update_drop_threshold:{_alias:{new_:"new"},new_:"u32"},update_resume_threshold:{_alias:{new_:"new"},new_:"u32"},update_threshold_weight:{_alias:{new_:"new"},new_:"u64"},update_weight_restrict_decay:{_alias:{new_:"new"},new_:"u64"},update_xcmp_max_individual_weight:{_alias:{new_:"new"},new_:"u64"}}},PalletXcmCall:{_enum:{send:{dest:"XcmVersionedMultiLocation",message:"XcmVersionedXcm"},teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32"},execute:{message:"XcmVersionedXcm",maxWeight:"u64"},force_xcm_version:{location:"XcmV1MultiLocation",xcmVersion:"u32"},force_default_xcm_version:{maybeXcmVersion:"Option"},force_subscribe_version_notify:{location:"XcmVersionedMultiLocation"},force_unsubscribe_version_notify:{location:"XcmVersionedMultiLocation"},limited_reserve_transfer_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"},limited_teleport_assets:{dest:"XcmVersionedMultiLocation",beneficiary:"XcmVersionedMultiLocation",assets:"XcmVersionedMultiAssets",feeAssetItem:"u32",weightLimit:"XcmV2WeightLimit"}}},XcmVersionedXcm:{_enum:{V0:"XcmV0Xcm",V1:"XcmV1Xcm",V2:"XcmV2Xcm"}},XcmV0Xcm:{_enum:{WithdrawAsset:{assets:"Vec",effects:"Vec"},ReserveAssetDeposit:{assets:"Vec",effects:"Vec"},TeleportAsset:{assets:"Vec",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV0Response"},TransferAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},TransferReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV0MultiLocation",message:"XcmV0Xcm"}}},XcmV0Order:{_enum:{Null:"Null",DepositAsset:{assets:"Vec",dest:"XcmV0MultiLocation"},DepositReserveAsset:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},ExchangeAsset:{give:"Vec",receive:"Vec"},InitiateReserveWithdraw:{assets:"Vec",reserve:"XcmV0MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"Vec",dest:"XcmV0MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV0MultiLocation",assets:"Vec"},BuyExecution:{fees:"XcmV0MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec"}}},XcmV0Response:{_enum:{Assets:"Vec"}},XcmV1Xcm:{_enum:{WithdrawAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReserveAssetDeposited:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},ReceiveTeleportedAsset:{assets:"XcmV1MultiassetMultiAssets",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"XcmV1Response"},TransferAsset:{assets:"XcmV1MultiassetMultiAssets",beneficiary:"XcmV1MultiLocation"},TransferReserveAsset:{assets:"XcmV1MultiassetMultiAssets",dest:"XcmV1MultiLocation",effects:"Vec"},Transact:{originType:"XcmV0OriginKind",requireWeightAtMost:"u64",call:"XcmDoubleEncoded"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"XcmV1MultilocationJunctions",message:"XcmV1Xcm"},SubscribeVersion:{queryId:"Compact",maxResponseWeight:"Compact"},UnsubscribeVersion:"Null"}},XcmV1Order:{_enum:{Noop:"Null",DepositAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",beneficiary:"XcmV1MultiLocation"},DepositReserveAsset:{assets:"XcmV1MultiassetMultiAssetFilter",maxAssets:"u32",dest:"XcmV1MultiLocation",effects:"Vec"},ExchangeAsset:{give:"XcmV1MultiassetMultiAssetFilter",receive:"XcmV1MultiassetMultiAssets"},InitiateReserveWithdraw:{assets:"XcmV1MultiassetMultiAssetFilter",reserve:"XcmV1MultiLocation",effects:"Vec"},InitiateTeleport:{assets:"XcmV1MultiassetMultiAssetFilter",dest:"XcmV1MultiLocation",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"XcmV1MultiLocation",assets:"XcmV1MultiassetMultiAssetFilter"},BuyExecution:{fees:"XcmV1MultiAsset",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec"}}},XcmV1Response:{_enum:{Assets:"XcmV1MultiassetMultiAssets",Version:"u32"}},CumulusPalletDmpQueueCall:{_enum:{service_overweight:{index:"u64",weightLimit:"u64"}}},OrmlXtokensModuleCall:{_enum:{transfer:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiasset:{asset:"XcmVersionedMultiAsset",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_with_fee:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"u128",fee:"u128",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiasset_with_fee:{asset:"XcmVersionedMultiAsset",fee:"XcmVersionedMultiAsset",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multicurrencies:{currencies:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>",feeItem:"u32",dest:"XcmVersionedMultiLocation",destWeight:"u64"},transfer_multiassets:{assets:"XcmVersionedMultiAssets",feeItem:"u32",dest:"XcmVersionedMultiLocation",destWeight:"u64"}}},XcmVersionedMultiAsset:{_enum:{V0:"XcmV0MultiAsset",V1:"XcmV1MultiAsset"}},OrmlXcmModuleCall:{_enum:{send_as_sovereign:{dest:"XcmVersionedMultiLocation",message:"XcmVersionedXcm"}}},OrmlAuthorityModuleCall:{_enum:{dispatch_as:{asOrigin:"AcalaPrimitivesAuthoritysOriginId",call:"Call"},schedule_dispatch:{when:"FrameSupportScheduleDispatchTime",priority:"u8",withDelayedOrigin:"bool",call:"Call"},fast_track_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32",when:"FrameSupportScheduleDispatchTime"},delay_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32",additionalDelay:"u32"},cancel_scheduled_dispatch:{initialOrigin:"AcalaRuntimeOriginCaller",taskId:"u32"},authorize_call:{call:"Call",caller:"Option"},remove_authorized_call:{_alias:{hash_:"hash"},hash_:"H256"},trigger_call:{_alias:{hash_:"hash"},hash_:"H256",callWeightBound:"Compact"}}},AcalaPrimitivesAuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},FrameSupportScheduleDispatchTime:{_enum:{At:"u32",After:"u32"}},PalletCollectiveCall:{_enum:{set_members:{newMembers:"Vec",prime:"Option",oldCount:"u32"},execute:{proposal:"Call",lengthBound:"Compact"},propose:{threshold:"Compact",proposal:"Call",lengthBound:"Compact"},vote:{proposal:"H256",index:"Compact",approve:"bool"},close:{proposalHash:"H256",index:"Compact",proposalWeightBound:"Compact",lengthBound:"Compact"},disapprove_proposal:{proposalHash:"H256"}}},PalletMembershipCall:{_enum:{add_member:{who:"AccountId32"},remove_member:{who:"AccountId32"},swap_member:{remove:"AccountId32",add:"AccountId32"},reset_members:{members:"Vec"},change_key:{_alias:{new_:"new"},new_:"AccountId32"},set_prime:{who:"AccountId32"},clear_prime:"Null"}},PalletDemocracyCall:{_enum:{propose:{proposalHash:"H256",value:"Compact"},second:{proposal:"Compact",secondsUpperBound:"Compact"},vote:{refIndex:"Compact",vote:"PalletDemocracyVoteAccountVote"},emergency_cancel:{refIndex:"u32"},external_propose:{proposalHash:"H256"},external_propose_majority:{proposalHash:"H256"},external_propose_default:{proposalHash:"H256"},fast_track:{proposalHash:"H256",votingPeriod:"u32",delay:"u32"},veto_external:{proposalHash:"H256"},cancel_referendum:{refIndex:"Compact"},cancel_queued:{which:"u32"},delegate:{to:"AccountId32",conviction:"PalletDemocracyConviction",balance:"u128"},undelegate:"Null",clear_public_proposals:"Null",note_preimage:{encodedProposal:"Bytes"},note_preimage_operational:{encodedProposal:"Bytes"},note_imminent_preimage:{encodedProposal:"Bytes"},note_imminent_preimage_operational:{encodedProposal:"Bytes"},reap_preimage:{proposalHash:"H256",proposalLenUpperBound:"Compact"},unlock:{target:"AccountId32"},remove_vote:{index:"u32"},remove_other_vote:{target:"AccountId32",index:"u32"},enact_proposal:{proposalHash:"H256",index:"u32"},blacklist:{proposalHash:"H256",maybeRefIndex:"Option"},cancel_proposal:{propIndex:"Compact"}}},PalletDemocracyConviction:{_enum:["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"]},OrmlOracleModuleCall:{_enum:{feed_values:{values:"Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>"}}},OrmlAuctionModuleCall:{_enum:{bid:{id:"u32",value:"Compact"}}},OrmlRewardsModuleCall:"Null",ModulePricesModuleCall:{_enum:{lock_price:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"},unlock_price:{currencyId:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexModuleCall:{_enum:{swap_with_exact_supply:{path:"Vec",supplyAmount:"Compact",minTargetAmount:"Compact"},swap_with_exact_target:{path:"Vec",targetAmount:"Compact",maxSupplyAmount:"Compact"},add_liquidity:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",maxAmountA:"Compact",maxAmountB:"Compact",minShareIncrement:"Compact",stakeIncrementShare:"bool"},add_provision:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",amountA:"Compact",amountB:"Compact"},claim_dex_share:{owner:"AccountId32",currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},remove_liquidity:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",removeShare:"Compact",minWithdrawnA:"Compact",minWithdrawnB:"Compact",byUnstake:"bool"},list_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",minContributionA:"Compact",minContributionB:"Compact",targetProvisionA:"Compact",targetProvisionB:"Compact",notBefore:"Compact"},update_provisioning_parameters:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",minContributionA:"Compact",minContributionB:"Compact",targetProvisionA:"Compact",targetProvisionB:"Compact",notBefore:"Compact"},end_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},enable_trading_pair:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},disable_trading_pair:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},refund_provision:{owner:"AccountId32",currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},abort_provisioning:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"}}},ModuleDexOracleModuleCall:{_enum:{enable_average_price:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",interval:"u64"},disable_average_price:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId"},update_average_price_interval:{currencyIdA:"AcalaPrimitivesCurrencyCurrencyId",currencyIdB:"AcalaPrimitivesCurrencyCurrencyId",newInterval:"u64"}}},ModuleAggregatedDexModuleCall:{_enum:{swap_with_exact_supply:{paths:"Vec",supplyAmount:"Compact",minTargetAmount:"Compact"},swap_with_exact_target:{paths:"Vec",targetAmount:"Compact",maxSupplyAmount:"Compact"},update_aggregated_swap_paths:{updates:"Vec<((AcalaPrimitivesCurrencyCurrencyId,AcalaPrimitivesCurrencyCurrencyId),Option>)>"}}},ModuleAuctionManagerModuleCall:{_enum:{cancel:{id:"u32"}}},ModuleLoansModuleCall:"Null",ModuleHonzonModuleCall:{_enum:{adjust_loan:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitAdjustment:"i128"},close_loan_has_debit_by_dex:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",maxCollateralAmount:"Compact"},transfer_loan_from:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",from:"MultiAddress"},authorize:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",to:"MultiAddress"},unauthorize:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",to:"MultiAddress"},unauthorize_all:"Null",expand_position_collateral:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",increaseDebitValue:"u128",minIncreaseCollateral:"u128"},shrink_position_debit:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",decreaseCollateral:"u128",minDecreaseDebitValue:"u128"},adjust_loan_by_debit_value:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",collateralAdjustment:"i128",debitValueAdjustment:"i128"},transfer_debit:{fromCurrency:"AcalaPrimitivesCurrencyCurrencyId",toCurrency:"AcalaPrimitivesCurrencyCurrencyId",debitTransfer:"u128"}}},ModuleCdpTreasuryModuleCall:{_enum:{extract_surplus_to_treasury:{amount:"Compact"},auction_collateral:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact",target:"Compact",splited:"bool"},exchange_collateral_to_stable:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",swapLimit:"ModuleSupportDexSwapLimit"},set_expected_collateral_auction_size:{_alias:{size_:"size"},currencyId:"AcalaPrimitivesCurrencyCurrencyId",size_:"Compact"}}},ModuleSupportDexSwapLimit:{_enum:{ExactSupply:"(u128,u128)",ExactTarget:"(u128,u128)"}},ModuleCdpEngineModuleCall:{_enum:{liquidate:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"MultiAddress"},settle:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",who:"MultiAddress"},set_collateral_params:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",interestRatePerSec:"OrmlTraitsChangeOption",liquidationRatio:"OrmlTraitsChangeOption",liquidationPenalty:"OrmlTraitsChangeOption",requiredCollateralRatio:"OrmlTraitsChangeOption",maximumTotalDebitValue:"OrmlTraitsChangeU128"},register_liquidation_contract:{address:"H160"},deregister_liquidation_contract:{address:"H160"}}},OrmlTraitsChangeOption:{_enum:{NoChange:"Null",NewValue:"Option"}},OrmlTraitsChangeU128:{_enum:{NoChange:"Null",NewValue:"u128"}},ModuleEmergencyShutdownModuleCall:{_enum:{emergency_shutdown:"Null",open_collateral_refund:"Null",refund_collaterals:{amount:"Compact"}}},ModuleHomaModuleCall:{_enum:{mint:{amount:"Compact"},request_redeem:{amount:"Compact",allowFastMatch:"bool"},fast_match_redeems:{redeemerList:"Vec"},claim_redemption:{redeemer:"AccountId32"},update_homa_params:{softBondedCapPerSubAccount:"Option",estimatedRewardRatePerEra:"Option",commissionRate:"Option",fastMatchFeeRate:"Option"},update_bump_era_params:{lastEraBumpedBlock:"Option",frequency:"Option"},reset_ledgers:{updates:"Vec<(u16,Option,Option>)>"},reset_current_era:{eraIndex:"u32"},force_bump_current_era:{bumpAmount:"u32"},fast_match_redeems_completely:{redeemerList:"Vec"}}},ModuleXcmInterfaceModuleCall:{_enum:{update_xcm_dest_weight_and_fee:{updates:"Vec<(ModuleXcmInterfaceModuleXcmInterfaceOperation,Option,Option)>"}}},ModuleIncentivesModuleCall:{_enum:{deposit_dex_share:{lpCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},withdraw_dex_share:{lpCurrencyId:"AcalaPrimitivesCurrencyCurrencyId",amount:"Compact"},claim_rewards:{poolId:"ModuleSupportIncentivesPoolId"},update_incentive_rewards:{updates:"Vec<(ModuleSupportIncentivesPoolId,Vec<(AcalaPrimitivesCurrencyCurrencyId,u128)>)>"},update_claim_reward_deduction_rates:{updates:"Vec<(ModuleSupportIncentivesPoolId,u128)>"}}},ModuleNftModuleCall:{_enum:{create_class:{metadata:"Bytes",properties:"u8",attributes:"BTreeMap"},mint:{to:"MultiAddress",classId:"u32",metadata:"Bytes",attributes:"BTreeMap",quantity:"Compact"},transfer:{to:"MultiAddress",token:"(u32,u64)"},burn:{token:"(u32,u64)"},burn_with_remark:{token:"(u32,u64)",remark:"Bytes"},destroy_class:{classId:"u32",dest:"MultiAddress"},update_class_properties:{classId:"u32",properties:"u8"}}},AcalaPrimitivesNftClassProperty:{_enum:["__Unused0","Transferable","Burnable","__Unused3","Mintable","__Unused5","__Unused6","__Unused7","ClassPropertiesMutable"]},ModuleAssetRegistryModuleCall:{_enum:{register_foreign_asset:{location:"XcmVersionedMultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_foreign_asset:{foreignAssetId:"u16",location:"XcmVersionedMultiLocation",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_stable_asset:{metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_stable_asset:{stableAssetId:"u32",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_erc20_asset:{contract:"H160",minimalBalance:"u128"},update_erc20_asset:{contract:"H160",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},register_native_asset:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",metadata:"AcalaPrimitivesCurrencyAssetMetadata"},update_native_asset:{currencyId:"AcalaPrimitivesCurrencyCurrencyId",metadata:"AcalaPrimitivesCurrencyAssetMetadata"}}},ModuleEvmModuleCall:{_enum:{eth_call:{action:"EthereumTransactionTransactionAction",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec",validUntil:"Compact"},call:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},scheduled_call:{from:"H160",target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create:{input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create2:{input:"Bytes",salt:"H256",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create_nft_contract:{input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},create_predeploy_contract:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"},transfer_maintainer:{contract:"H160",newMaintainer:"H160"},publish_contract:{contract:"H160"},publish_free:{contract:"H160"},enable_contract_development:"Null",disable_contract_development:"Null",set_code:{contract:"H160",code:"Bytes"},selfdestruct:{contract:"H160"},strict_call:{target:"H160",input:"Bytes",value:"Compact",gasLimit:"Compact",storageLimit:"Compact",accessList:"Vec"}}},EthereumTransactionTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthereumTransactionAccessListItem:{address:"H160",storageKeys:"Vec"},ModuleEvmAccountsModuleCall:{_enum:{claim_account:{ethAddress:"H160",ethSignature:"[u8;65]"},claim_default_account:"Null"}},NutsfinanceStableAssetCall:{_enum:{create_pool:{poolAsset:"AcalaPrimitivesCurrencyCurrencyId",assets:"Vec",precisions:"Vec",mintFee:"u128",swapFee:"u128",redeemFee:"u128",initialA:"u128",feeRecipient:"AccountId32",yieldRecipient:"AccountId32",precision:"u128"},mint:{poolId:"u32",amounts:"Vec",minMintAmount:"u128"},swap:{poolId:"u32",i:"u32",j:"u32",dx:"u128",minDy:"u128",assetLength:"u32"},redeem_proportion:{poolId:"u32",amount:"u128",minRedeemAmounts:"Vec"},redeem_single:{poolId:"u32",amount:"u128",i:"u32",minRedeemAmount:"u128",assetLength:"u32"},redeem_multi:{poolId:"u32",amounts:"Vec",maxRedeemAmount:"u128"},modify_a:{poolId:"u32",a:"u128",futureABlock:"u32"},modify_fees:{poolId:"u32",mintFee:"Option",swapFee:"Option",redeemFee:"Option"},modify_recipients:{poolId:"u32",feeRecipient:"Option",yieldRecipient:"Option"}}},CumulusPalletParachainSystemCall:{_enum:{set_validation_data:{data:"CumulusPrimitivesParachainInherentParachainInherentData"},sudo_send_upward_message:{message:"Bytes"},authorize_upgrade:{codeHash:"H256"},enact_authorized_upgrade:{code:"Bytes"}}},CumulusPrimitivesParachainInherentParachainInherentData:{validationData:"PolkadotPrimitivesV2PersistedValidationData",relayChainState:"SpTrieStorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},PolkadotPrimitivesV2PersistedValidationData:{parentHead:"Bytes",relayParentNumber:"u32",relayParentStorageRoot:"H256",maxPovSize:"u32"},SpTrieStorageProof:{trieNodes:"BTreeSet"},PolkadotCorePrimitivesInboundDownwardMessage:{sentAt:"u32",msg:"Bytes"},PolkadotCorePrimitivesInboundHrmpMessage:{sentAt:"u32",data:"Bytes"},PalletSudoCall:{_enum:{sudo:{call:"Call"},sudo_unchecked_weight:{call:"Call",weight:"u64"},set_key:{_alias:{new_:"new"},new_:"MultiAddress"},sudo_as:{who:"MultiAddress",call:"Call"}}},PalletSchedulerError:{_enum:["FailedToSchedule","NotFound","TargetBlockNumberInPast","RescheduleNoChange"]},PalletUtilityError:{_enum:["TooManyCalls"]},PalletMultisigMultisig:{when:"PalletMultisigTimepoint",deposit:"u128",depositor:"AccountId32",approvals:"Vec"},PalletMultisigError:{_enum:["MinimumThreshold","AlreadyApproved","NoApprovalsNeeded","TooFewSignatories","TooManySignatories","SignatoriesOutOfOrder","SenderInSignatories","NotFound","NotOwner","NoTimepoint","WrongTimepoint","UnexpectedTimepoint","MaxWeightTooLow","AlreadyStored"]},PalletProxyProxyDefinition:{delegate:"AccountId32",proxyType:"RuntimeCommonProxyType",delay:"u32"},PalletProxyAnnouncement:{real:"AccountId32",callHash:"H256",height:"u32"},PalletProxyError:{_enum:["TooMany","NotFound","NotProxy","Unproxyable","Duplicate","NoPermission","Unannounced","NoSelfProxy"]},ModuleTransactionPauseModuleError:{_enum:["CannotPause","InvalidCharacter"]},PalletPreimageRequestStatus:{_enum:{Unrequested:"Option<(AccountId32,u128)>",Requested:"u32"}},PalletPreimageError:{_enum:["TooLarge","AlreadyNoted","NotAuthorized","NotNoted","Requested","NotRequested"]},PalletBalancesBalanceLock:{id:"[u8;8]",amount:"u128",reasons:"PalletBalancesReasons"},PalletBalancesReasons:{_enum:["Fee","Misc","All"]},PalletBalancesReserveData:{id:"AcalaPrimitivesReserveIdentifier",amount:"u128"},AcalaPrimitivesReserveIdentifier:{_enum:["CollatorSelection","EvmStorageDeposit","EvmDeveloperDeposit","Honzon","Nft","TransactionPayment","TransactionPaymentDeposit","Count"]},PalletBalancesReleases:{_enum:["V1_0_0","V2_0_0"]},PalletBalancesError:{_enum:["VestingBalance","LiquidityRestrictions","InsufficientBalance","ExistentialDeposit","KeepAlive","ExistingVestingSchedule","DeadAccount","TooManyReserves"]},OrmlTokensBalanceLock:{id:"[u8;8]",amount:"u128"},OrmlTokensAccountData:{free:"u128",reserved:"u128",frozen:"u128"},OrmlTokensReserveData:{id:"AcalaPrimitivesReserveIdentifier",amount:"u128"},OrmlTokensModuleError:{_enum:["BalanceTooLow","AmountIntoBalanceFailed","LiquidityRestrictions","MaxLocksExceeded","KeepAlive","ExistentialDeposit","DeadAccount","TooManyReserves"]},ModuleCurrenciesModuleError:{_enum:["AmountIntoBalanceFailed","BalanceTooLow","Erc20InvalidOperation","EvmAccountNotFound","RealOriginNotFound","DepositFailed"]},OrmlVestingModuleError:{_enum:["ZeroVestingPeriod","ZeroVestingPeriodCount","InsufficientBalanceToLock","TooManyVestingSchedules","AmountLow","MaxVestingSchedulesExceeded"]},FrameSupportPalletId:"[u8;8]",ModuleTransactionPaymentModuleError:{_enum:["InvalidSwapPath","InvalidBalance","InvalidRate","InvalidToken","DexNotAvailable","ChargeFeePoolAlreadyExisted"]},PalletTreasuryProposal:{proposer:"AccountId32",value:"u128",beneficiary:"AccountId32",bond:"u128"},PalletTreasuryError:{_enum:["InsufficientProposersBalance","InvalidIndex","TooManyApprovals","InsufficientPermission","ProposalNotApproved"]},PalletBountiesBounty:{proposer:"AccountId32",value:"u128",fee:"u128",curatorDeposit:"u128",bond:"u128",status:"PalletBountiesBountyStatus"},PalletBountiesBountyStatus:{_enum:{Proposed:"Null",Approved:"Null",Funded:"Null",CuratorProposed:{curator:"AccountId32"},Active:{curator:"AccountId32",updateDue:"u32"},PendingPayout:{curator:"AccountId32",beneficiary:"AccountId32",unlockAt:"u32"}}},PalletBountiesError:{_enum:["InsufficientProposersBalance","InvalidIndex","ReasonTooBig","UnexpectedStatus","RequireCurator","InvalidValue","InvalidFee","PendingPayout","Premature","HasActiveChildBounty","TooManyQueued"]},PalletTipsOpenTip:{reason:"H256",who:"AccountId32",finder:"AccountId32",deposit:"u128",closes:"Option",tips:"Vec<(AccountId32,u128)>",findersFee:"bool"},PalletTipsError:{_enum:["ReasonTooBig","AlreadyKnown","UnknownTip","NotFinder","StillOpen","Premature"]},PalletAuthorshipUncleEntryItem:{_enum:{InclusionHeight:"u32",Uncle:"(H256,Option)"}},PalletAuthorshipError:{_enum:["InvalidUncleParent","UnclesAlreadySet","TooManyUncles","GenesisUncle","TooHighUncle","UncleAlreadyIncluded","OldUncle"]},ModuleCollatorSelectionError:{_enum:["MaxCandidatesExceeded","BelowCandidatesMin","StillLocked","Unknown","Permission","AlreadyCandidate","NotCandidate","NotNonCandidate","NothingToWithdraw","RequireSessionKey","AlreadyInvulnerable","InvalidProof","MaxInvulnerablesExceeded"]},SpCoreCryptoKeyTypeId:"[u8;4]",PalletSessionError:{_enum:["InvalidProof","NoAssociatedValidatorId","DuplicatedKey","NoKeys","NoAccount"]},ModuleSessionManagerModuleError:{_enum:["InvalidSession","InvalidDuration","EstimateNextSessionFailed"]},CumulusPalletXcmpQueueInboundChannelDetails:{sender:"u32",state:"CumulusPalletXcmpQueueInboundState",messageMetadata:"Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>"},CumulusPalletXcmpQueueInboundState:{_enum:["Ok","Suspended"]},PolkadotParachainPrimitivesXcmpMessageFormat:{_enum:["ConcatenatedVersionedXcm","ConcatenatedEncodedBlob","Signals"]},CumulusPalletXcmpQueueOutboundChannelDetails:{recipient:"u32",state:"CumulusPalletXcmpQueueOutboundState",signalsExist:"bool",firstIndex:"u16",lastIndex:"u16"},CumulusPalletXcmpQueueOutboundState:{_enum:["Ok","Suspended"]},CumulusPalletXcmpQueueQueueConfigData:{suspendThreshold:"u32",dropThreshold:"u32",resumeThreshold:"u32",thresholdWeight:"u64",weightRestrictDecay:"u64",xcmpMaxIndividualWeight:"u64"},CumulusPalletXcmpQueueError:{_enum:["FailedToSend","BadXcmOrigin","BadXcm","BadOverweightIndex","WeightOverLimit"]},PalletXcmQueryStatus:{_enum:{Pending:{responder:"XcmVersionedMultiLocation",maybeNotify:"Option<(u8,u8)>",timeout:"u32"},VersionNotifier:{origin:"XcmVersionedMultiLocation",isActive:"bool"},Ready:{response:"XcmVersionedResponse",at:"u32"}}},XcmVersionedResponse:{_enum:{V0:"XcmV0Response",V1:"XcmV1Response",V2:"XcmV2Response"}},PalletXcmVersionMigrationStage:{_enum:{MigrateSupportedVersion:"Null",MigrateVersionNotifiers:"Null",NotifyCurrentTargets:"Option",MigrateAndNotifyOldTargets:"Null"}},PalletXcmError:{_enum:["Unreachable","SendFailure","Filtered","UnweighableMessage","DestinationNotInvertible","Empty","CannotReanchor","TooManyAssets","InvalidOrigin","BadVersion","BadLocation","NoSubscription","AlreadySubscribed"]},CumulusPalletXcmError:"Null",CumulusPalletDmpQueueConfigData:{maxIndividual:"u64"},CumulusPalletDmpQueuePageIndexData:{beginUsed:"u32",endUsed:"u32",overweightCount:"u64"},CumulusPalletDmpQueueError:{_enum:["Unknown","OverLimit"]},OrmlXtokensModuleError:{_enum:["AssetHasNoReserve","NotCrossChainTransfer","InvalidDest","NotCrossChainTransferableCurrency","UnweighableMessage","XcmExecutionFailed","CannotReanchor","InvalidAncestry","InvalidAsset","DestinationNotInvertible","BadVersion","DistinctReserveForAssetAndFee","ZeroFee","ZeroAmount","TooManyAssetsBeingSent","AssetIndexNonExistent","FeeNotEnough","NotSupportedMultiLocation","MinXcmFeeNotDefined"]},OrmlUnknownTokensModuleError:{_enum:["BalanceTooLow","BalanceOverflow","UnhandledAsset"]},OrmlXcmModuleError:{_enum:["Unreachable","SendFailure","BadVersion"]},OrmlAuthorityModuleError:{_enum:["FailedToSchedule","FailedToCancel","FailedToFastTrack","FailedToDelay","CallNotAuthorized","TriggerCallNotPermitted","WrongCallWeightBound"]},PalletCollectiveVotes:{index:"u32",threshold:"u32",ayes:"Vec",nays:"Vec",end:"u32"},PalletCollectiveError:{_enum:["NotMember","DuplicateProposal","ProposalMissing","WrongIndex","DuplicateVote","AlreadyInitialized","TooEarly","TooManyProposals","WrongProposalWeight","WrongProposalLength"]},PalletMembershipError:{_enum:["AlreadyMember","NotMember","TooManyMembers"]},PalletDemocracyPreimageStatus:{_enum:{Missing:"u32",Available:{data:"Bytes",provider:"AccountId32",deposit:"u128",since:"u32",expiry:"Option"}}},PalletDemocracyReferendumInfo:{_enum:{Ongoing:"PalletDemocracyReferendumStatus",Finished:{approved:"bool",end:"u32"}}},PalletDemocracyReferendumStatus:{end:"u32",proposalHash:"H256",threshold:"PalletDemocracyVoteThreshold",delay:"u32",tally:"PalletDemocracyTally"},PalletDemocracyTally:{ayes:"u128",nays:"u128",turnout:"u128"},PalletDemocracyVoteVoting:{_enum:{Direct:{votes:"Vec<(u32,PalletDemocracyVoteAccountVote)>",delegations:"PalletDemocracyDelegations",prior:"PalletDemocracyVotePriorLock"},Delegating:{balance:"u128",target:"AccountId32",conviction:"PalletDemocracyConviction",delegations:"PalletDemocracyDelegations",prior:"PalletDemocracyVotePriorLock"}}},PalletDemocracyDelegations:{votes:"u128",capital:"u128"},PalletDemocracyVotePriorLock:"(u32,u128)",PalletDemocracyReleases:{_enum:["V1"]},PalletDemocracyError:{_enum:["ValueLow","ProposalMissing","AlreadyCanceled","DuplicateProposal","ProposalBlacklisted","NotSimpleMajority","InvalidHash","NoProposal","AlreadyVetoed","DuplicatePreimage","NotImminent","TooEarly","Imminent","PreimageMissing","ReferendumInvalid","PreimageInvalid","NoneWaiting","NotVoter","NoPermission","AlreadyDelegating","InsufficientFunds","NotDelegating","VotesExist","InstantNotAllowed","Nonsense","WrongUpperBound","MaxVotesReached","TooManyProposals","VotingPeriodLow"]},OrmlOracleModuleTimestampedValue:{value:"u128",timestamp:"u64"},OrmlUtilitiesOrderedSet:"Vec",OrmlOracleModuleError:{_enum:["NoPermission","AlreadyFeeded"]},OrmlTraitsAuctionAuctionInfo:{bid:"Option<(AccountId32,u128)>",start:"u32",end:"Option"},OrmlAuctionModuleError:{_enum:["AuctionNotExist","AuctionNotStarted","BidNotAccepted","InvalidBidPrice","NoAvailableAuctionId"]},OrmlRewardsPoolInfo:{totalShares:"u128",rewards:"BTreeMap"},OrmlRewardsModuleError:{_enum:["PoolDoesNotExist","ShareDoesNotExist","CanSplitOnlyLessThanShare"]},OrmlNftClassInfo:{metadata:"Bytes",totalIssuance:"u64",owner:"AccountId32",data:"ModuleNftClassData"},ModuleNftClassData:{deposit:"u128",properties:"u8",attributes:"BTreeMap"},OrmlNftTokenInfo:{metadata:"Bytes",owner:"AccountId32",data:"ModuleNftTokenData"},ModuleNftTokenData:{deposit:"u128",attributes:"BTreeMap"},OrmlNftModuleError:{_enum:["NoAvailableClassId","NoAvailableTokenId","TokenNotFound","ClassNotFound","NoPermission","CannotDestroyClass","MaxMetadataExceeded"]},ModulePricesModuleError:{_enum:["AccessPriceFailed","NoLockedPrice"]},ModuleDexTradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"ModuleDexProvisioningParameters",Enabled:"Null"}},ModuleDexProvisioningParameters:{minContribution:"(u128,u128)",targetProvision:"(u128,u128)",accumulatedProvision:"(u128,u128)",notBefore:"u32"},ModuleDexModuleError:{_enum:["AlreadyEnabled","MustBeEnabled","MustBeProvisioning","MustBeDisabled","NotAllowedList","InvalidContributionIncrement","InvalidLiquidityIncrement","InvalidCurrencyId","InvalidTradingPathLength","InsufficientTargetAmount","ExcessiveSupplyAmount","InsufficientLiquidity","ZeroSupplyAmount","ZeroTargetAmount","UnacceptableShareIncrement","UnacceptableLiquidityWithdrawn","InvariantCheckFailed","UnqualifiedProvision","StillProvisioning","AssetUnregistered","InvalidTradingPath","NotAllowedRefund","CannotSwap"]},ModuleDexOracleModuleError:{_enum:["AveragePriceAlreadyEnabled","AveragePriceMustBeEnabled","InvalidPool","InvalidCurrencyId","IntervalIsZero"]},ModuleAggregatedDexModuleError:{_enum:["CannotSwap","InvalidPoolId","InvalidTokenIndex","InvalidSwapPath"]},ModuleAuctionManagerCollateralAuctionItem:{refundRecipient:"AccountId32",currencyId:"AcalaPrimitivesCurrencyCurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"u32"},ModuleAuctionManagerModuleError:{_enum:["AuctionNotExists","InReverseStage","InvalidFeedPrice","MustAfterShutdown","InvalidBidPrice","InvalidAmount"]},AcalaPrimitivesPosition:{collateral:"u128",debit:"u128"},ModuleLoansModuleError:{_enum:["AmountConvertFailed"]},ModuleHonzonModuleError:{_enum:["NoPermission","AlreadyShutdown","AuthorizationNotExists","AlreadyAuthorized"]},ModuleCdpTreasuryModuleError:{_enum:["CollateralNotEnough","SurplusPoolNotEnough","DebitPoolNotEnough","CannotSwap","NotDexShare"]},ModuleCdpEngineRiskManagementParams:{maximumTotalDebitValue:"u128",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},ModuleCdpEngineModuleError:{_enum:["ExceedDebitValueHardCap","BelowRequiredCollateralRatio","BelowLiquidationRatio","MustBeUnsafe","MustBeSafe","InvalidCollateralType","RemainDebitValueTooSmall","CollateralAmountBelowMinimum","InvalidFeedPrice","NoDebitValue","AlreadyShutdown","MustAfterShutdown","CollateralNotEnough","NotEnoughDebitDecrement","ConvertDebitBalanceFailed","LiquidationFailed","TooManyLiquidationContracts","CollateralContractNotFound"]},ModuleEmergencyShutdownModuleError:{_enum:["AlreadyShutdown","MustAfterShutdown","CanNotRefund","ExistPotentialSurplus","ExistUnhandledDebit"]},ModuleHomaModuleStakingLedger:{bonded:"Compact",unlocking:"Vec"},ModuleHomaModuleError:{_enum:["BelowMintThreshold","BelowRedeemThreshold","ExceededStakingCurrencySoftCap","InsufficientUnclaimedRedemption","OutdatedEraIndex","FastMatchIsNotAllowed","CannotCompletelyFastMatch","InvalidLastEraBumpedBlock"]},ModuleXcmInterfaceModuleError:{_enum:["XcmFailed"]},ModuleIncentivesModuleError:{_enum:["NotEnough","InvalidCurrencyId","InvalidPoolId","InvalidRate"]},ModuleNftModuleError:{_enum:["ClassIdNotFound","TokenIdNotFound","NoPermission","InvalidQuantity","NonTransferable","NonBurnable","NonMintable","CannotDestroyClass","Immutable","AttributesTooLarge","IncorrectTokenId"]},ModuleAssetRegistryModuleError:{_enum:["BadLocation","MultiLocationExisted","AssetIdNotExists","AssetIdExisted"]},ModuleEvmModuleAccountInfo:{nonce:"u32",contractInfo:"Option"},ModuleEvmModuleContractInfo:{codeHash:"H256",maintainer:"H160",published:"bool"},ModuleEvmModuleCodeInfo:{codeSize:"u32",refCount:"u32"},ModuleEvmModuleError:{_enum:["AddressNotMapped","ContractNotFound","NoPermission","ContractDevelopmentNotEnabled","ContractDevelopmentAlreadyEnabled","ContractAlreadyPublished","ContractExceedsMaxCodeSize","ContractAlreadyExisted","OutOfStorage","ChargeFeeFailed","CannotKillContract","ReserveStorageFailed","UnreserveStorageFailed","ChargeStorageFailed","InvalidDecimals","StrictCallFailed"]},ModuleEvmBridgeModuleError:{_enum:["ExecutionFail","ExecutionRevert","ExecutionFatal","ExecutionError","InvalidReturnValue"]},ModuleEvmAccountsModuleError:{_enum:["AccountIdHasMapped","EthAddressHasMapped","BadSignature","InvalidSignature","NonZeroRefCount"]},NutsfinanceStableAssetStableAssetPoolInfo:{poolAsset:"AcalaPrimitivesCurrencyCurrencyId",assets:"Vec",precisions:"Vec",mintFee:"u128",swapFee:"u128",redeemFee:"u128",totalSupply:"u128",a:"u128",aBlock:"u32",futureA:"u128",futureABlock:"u32",balances:"Vec",feeRecipient:"AccountId32",accountId:"AccountId32",yieldRecipient:"AccountId32",precision:"u128"},NutsfinanceStableAssetError:{_enum:["InconsistentStorage","InvalidPoolAsset","ArgumentsMismatch","ArgumentsError","PoolNotFound","Math","InvalidPoolValue","MintUnderMin","SwapUnderMin","RedeemUnderMin","RedeemOverMax"]},PolkadotPrimitivesV2UpgradeRestriction:{_enum:["Present"]},CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot:{dmqMqcHead:"H256",relayDispatchQueueSize:"(u32,u32)",ingressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>",egressChannels:"Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>"},PolkadotPrimitivesV2AbridgedHrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option"},PolkadotPrimitivesV2AbridgedHostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeCooldown:"u32",validationUpgradeDelay:"u32"},PolkadotCorePrimitivesOutboundHrmpMessage:{recipient:"u32",data:"Bytes"},CumulusPalletParachainSystemError:{_enum:["OverlappingUpgrades","ProhibitedByPolkadot","TooBig","ValidationDataNotAvailable","HostConfigurationNotAvailable","NotScheduled","NothingAuthorized","Unauthorized"]},PalletSudoError:{_enum:["RequireSudo"]},FrameSystemExtensionsCheckNonZeroSender:"Null",FrameSystemExtensionsCheckSpecVersion:"Null",FrameSystemExtensionsCheckTxVersion:"Null",FrameSystemExtensionsCheckGenesis:"Null",RuntimeCommonCheckNonce:{nonce:"Compact"},FrameSystemExtensionsCheckWeight:"Null",ModuleEvmSetEvmOrigin:"Null",ModuleTransactionPaymentChargeTransactionPayment:"Compact",AcalaRuntimeStorageDepositPerByte:"Null",AcalaRuntimeTxFeePerGas:"Null",AcalaPrimitivesSignatureAcalaMultiSignature:{_enum:{Ed25519:"SpCoreEd25519Signature",Sr25519:"SpCoreSr25519Signature",Ecdsa:"SpCoreEcdsaSignature",Ethereum:"[u8;65]",Eip1559:"[u8;65]",AcalaEip712:"[u8;65]"}}}},14465:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(90083);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},90083:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(72782);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},5876:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PalletBalanceOf:"Balance"}}},47812:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"}}}},88569:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"}}}},2086:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CandidateInfoOf:"CandidateInfo"}}},77351:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getSupplyAmount:{description:"Get supply amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"targetCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper"},getTargetAmount:{description:"Get target amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"supplyCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper"}},types:{TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}}}}},84320:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{call:{description:"eth call",params:[{name:"data",type:"CallRequest"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Raw"},estimateResources:{description:"eth estimateResources",params:[{name:"from",type:"H160"},{name:"unsignedExtrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"EstimateResourcesResponse"}},typesAlias:{evm:{AccountInfo:"EvmAccountInfo",ContractInfo:"EvmContractInfo"}},types:{Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"EvmCoreErrorExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"EvmCoreErrorExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmCoreErrorExitReason:{_enum:{Succeed:"EvmCoreErrorExitSucceed",Error:"EvmCoreErrorExitError",Revert:"EvmCoreErrorExitRevert",Fatal:"EvmCoreErrorExitFatal"}},EvmCoreErrorExitSucceed:{_enum:["Stopped","Returned","Suicided"]},EvmCoreErrorExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"Null"}},EvmCoreErrorExitRevert:{_enum:["Reverted"]},EvmCoreErrorExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"EvmCoreErrorExitError",Other:"Text"}}}}},63851:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"}}}},98105:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"}}}},96622:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}}}}},23914:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.typesBundleForPolkadot=t.typesBundle=t.typesAlias=t.types=t.signedExtensions=t.rpc=void 0;var r=a(n(58212)),i=n(34942),s=n(75744),o=a(n(5876)),c=a(n(47812)),u=a(n(88569)),l=a(n(77351)),d=a(n(84320)),p=a(n(63851)),h=a(n(2086)),f=a(n(98105)),m=a(n(96622)),y=a(n(53609)),g=a(n(97422)),b=a(n(20835)),v=a(n(44682)),_=a(n(12307)),A=a(n(39278)),w=n(74625),I=a(n(88760)),S=a(n(21370)),x=a(n(88014)),C=a(n(67140)),k=a(n(34064)),T=a(n(55942));function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function P(e){for(var t=1;t({minmax:e.minmax,types:P(P({},B),e.types)}))),alias:N}}t.typesAlias=N;const D={spec:{acala:M(C.default),mandala:M(k.default),karura:M(T.default)}};t.typesBundle=D;const L={spec:{acala:M(C.default),mandala:M(k.default),karura:M(T.default)}};t.typesBundleForPolkadot=L;const V=w.signedExtensions;t.signedExtensions=V},53609:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Position:{collateral:"Balance",debit:"Balance"}}}},97422:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"}},typesAligns:{nft:{ClassId:"NFTClassId",BalanceOf:"NFTBalanceOf"}}}},20835:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"}},typesAlias:{nomineesElection:{UnlockChunk:"HomaUnlockChunk"}}}},44682:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128"},typesAlias:{rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}}},12307:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PublicKey:"[u8; 20]",DestAddress:"Vec"}}},39278:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber"}}},74625:(e,t)=>{"use strict";t.__esModule=!0,t.signedExtensions=void 0,t.signedExtensions={SetEvmOrigin:{extrinsic:{},payload:{}}}},67140:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=void 0;var r=a(n(58212));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}};var h=[{minmax:[600,699],types:s(s(s(s(s({},o),c),d),{Address:"LookupSource",LookupSource:"IndicesLookupSource"}),{},{TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]}})},{minmax:[700,719],types:s(s(s(s(s({},o),c),d),u),{},{TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]}})},{minmax:[720,722],types:s(s(s(s(s(s({},o),u),c),d),l),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,XBTC:4,RENBTC:5,POLKABTC:6,PLM:7,PHA:8,HDT:9,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}}})},{minmax:[723,729],types:s(s(s(s(s(s({},o),u),c),p),l),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,XBTC:4,RENBTC:5,POLKABTC:6,PLM:7,PHA:8,HDT:9,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}}})},{minmax:[730,1007],types:s(s(s(s(s({},o),u),c),p),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:4,KAR:128,KUSD:129,KSM:130,LKSM:131,CASH:140}}})},{minmax:[1008,1008],types:s(s(s(s(s({},o),u),c),p),{},{TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131}}})},{minmax:[1008,1009],types:s(s(s(s({},o),u),c),p)},{minmax:[1010,1013],types:s(s(s({},o),u),c)},{minmax:[1014,1018],types:s(s(s({},o),u),{MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",XcmError:"XcmErrorV1",Response:"ResponseV1"})},{minmax:[1019,void 0],types:s({},u)}];t.default=h},55942:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=void 0;var r=a(n(67140)).default;t.default=r},34064:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=void 0;var r=a(n(67140)).default;t.default=r},88760:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{PoolTokenIndex:"u32",AssetId:"CurrencyId"}}},21370:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getAvailableUnbonded:{description:"Get Available Unbonded",params:[{name:"account",type:"AccountId"}],type:"BalanceInfo"},getLiquidStakingExchangeRate:{description:"get liquid staking exchange rate",params:[],type:"ExchangeRate"}},types:{SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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"},typesAlias:{stakingPool:{Phase:"StakingPoolPhase"}}}},88014:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{ExchangeRate:"FixedU128",Rate:"FixedU128",Ratio:"FixedU128",Price:"FixedU128"}}},30242:(e,t,n)=>{"use strict";var a=n(1048).Buffer,r=n(74261),i=n(74500),s=n(79688);function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=o(r);const u="Expected Private",l="Expected Point",d="Expected Tweak",p="Expected Signature",h="Expected Extra Data (32 bytes)",f="Expected Scalar";c.utils.hmacSha256Sync=(e,...t)=>i.hmac(s.sha256,e,c.utils.concatBytes(...t)),c.utils.sha256Sync=(...e)=>s.sha256(c.utils.concatBytes(...e));const m=c.utils._normalizePrivateKey,y=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65]),g=new Uint8Array(32),b=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,69,81,35,25,80,183,95,196,64,45,161,114,47,201,186,238]);function v(e,t){for(let n=0;n<32;++n)if(e[n]!==t[n])return e[n]=0)}function w(e){return e instanceof Uint8Array&&64===e.length&&v(e.subarray(0,32),y)<0&&v(e.subarray(32,64),y)<0}function I(e){return e instanceof Uint8Array&&32===e.length}function S(e){return void 0===e||e instanceof Uint8Array&&32===e.length}function x(e){if("string"!=typeof e)throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function C(e){let t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>=0)t=BigInt(e);else if("string"==typeof e){if(64!==e.length)throw new Error("Expected 32 bytes of private scalar");t=x(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private scalar");if(32!==e.length)throw new Error("Expected 32 bytes of private scalar");n=e,t=x(c.utils.bytesToHex(n))}var n;if(t<0)throw new Error("Expected private scalar >= 0");return t}const k=(e,t,n)=>{const a=c.Point.fromHex(e),r=C(t),i=c.Point.BASE.multiplyAndAddUnsafe(a,r,BigInt(1));if(!i)throw new Error("Tweaked point at infinity");return i.toRawBytes(n)};function T(e,t){return void 0===e?void 0===t||B(t):!!e}function E(e){try{return e()}catch(e){return null}}function P(e,t){if(32===e.length!==t)return!1;try{return!!c.Point.fromHex(e)}catch(e){return!1}}function O(e){return P(e,!1)}function B(e){return P(e,!1)&&33===e.length}function R(e){return c.utils.isValidPrivateKey(e)}function N(e){return P(e,!0)}function M(e){if(!O(e))throw new Error(l);return e.slice(1,33)}function D(e,t){if(!R(e))throw new Error(u);return E((()=>c.getPublicKey(e,T(t))))}t.isPoint=O,t.isPointCompressed=B,t.isPrivate=R,t.isXOnlyPoint=N,t.pointAdd=function(e,t,n){if(!O(e)||!O(t))throw new Error(l);return E((()=>{const a=c.Point.fromHex(e),r=c.Point.fromHex(t);return a.equals(r.negate())?null:a.add(r).toRawBytes(T(n,e))}))},t.pointAddScalar=function(e,t,n){if(!O(e))throw new Error(l);if(!A(t))throw new Error(d);return E((()=>k(e,t,T(n,e))))},t.pointCompress=function(e,t){if(!O(e))throw new Error(l);return c.Point.fromHex(e).toRawBytes(T(t,e))},t.pointFromScalar=D,t.pointMultiply=function(e,t,n){if(!O(e))throw new Error(l);if(!A(t))throw new Error(d);return E((()=>((e,t,n)=>{const a=c.Point.fromHex(e),r="string"==typeof t?t:c.utils.bytesToHex(t),i=BigInt(`0x${r}`);return a.multiply(i).toRawBytes(n)})(e,t,T(n,e))))},t.privateAdd=function(e,t){if(!1===R(e))throw new Error(u);if(!1===A(t))throw new Error(d);return E((()=>((e,t)=>{const n=m(e),a=C(t),r=c.utils._bigintTo32Bytes(c.utils.mod(n+a,c.CURVE.n));return c.utils.isValidPrivateKey(r)?r:null})(e,t)))},t.privateNegate=function(e){if(!1===R(e))throw new Error(u);return(e=>{const t=m(e),n=c.utils._bigintTo32Bytes(c.CURVE.n-t);return c.utils.isValidPrivateKey(n)?n:null})(e)},t.privateSub=function(e,t){if(!1===R(e))throw new Error(u);if(!1===A(t))throw new Error(d);return E((()=>((e,t)=>{const n=m(e),a=C(t),r=c.utils._bigintTo32Bytes(c.utils.mod(n-a,c.CURVE.n));return c.utils.isValidPrivateKey(r)?r:null})(e,t)))},t.recover=function(e,t,n,a){if(!I(e))throw new Error("Expected Hash");if(!w(t)||!function(e){return!(_(e.subarray(0,32))||_(e.subarray(32,64)))}(t))throw new Error(p);if(2&n&&!function(e){return e instanceof Uint8Array&&64===e.length&&v(e.subarray(0,32),b)<0}(t))throw new Error("Bad Recovery Id");if(!N(t.subarray(0,32)))throw new Error(p);return c.recoverPublicKey(e,t,n,T(a))},t.sign=function(e,t,n){if(!R(t))throw new Error(u);if(!I(e))throw new Error(f);if(!S(n))throw new Error(h);return c.signSync(e,t,{der:!1,extraEntropy:n})},t.signRecoverable=function(e,t,n){if(!R(t))throw new Error(u);if(!I(e))throw new Error(f);if(!S(n))throw new Error(h);const[a,r]=c.signSync(e,t,{der:!1,extraEntropy:n,recovered:!0});return{signature:a,recoveryId:r}},t.signSchnorr=function(e,t,n=a.alloc(32,0)){if(!R(t))throw new Error(u);if(!I(e))throw new Error(f);if(!S(n))throw new Error(h);return c.schnorr.signSync(e,t,n)},t.verify=function(e,t,n,a){if(!O(t))throw new Error(l);if(!w(n))throw new Error(p);if(!I(e))throw new Error(f);return c.verify(n,e,t,{strict:a})},t.verifySchnorr=function(e,t,n){if(!N(t))throw new Error(l);if(!w(n))throw new Error(p);if(!I(e))throw new Error(f);return c.schnorr.verifySync(n,e,t)},t.xOnlyPointAddTweak=function(e,t){if(!N(e))throw new Error(l);if(!A(t))throw new Error(d);return E((()=>{const n=k(e,t,!0);return{parity:n[0]%2==1?1:0,xOnlyPubkey:n.slice(1)}}))},t.xOnlyPointFromPoint=M,t.xOnlyPointFromScalar=function(e){if(!R(e))throw new Error(u);return M(D(e))}},99694:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{S:()=>y,SQ:()=>v,W5:()=>g,Zf:()=>b,lI:()=>r,so:()=>m}),e=n.hmd(e);let i=0,s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(a.memory.buffer)),s}let c=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const u="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(void 0===n){const n=c.encode(e),a=t(n.length,1)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a,1)>>>0;const s=o();let l=0;for(;l127)break;s[r+l]=t}if(l!==a){0!==l&&(e=e.slice(l)),r=n(r,a,a=l+3*e.length,1)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written,r=n(r,a,l,1)>>>0}return i=l,r}let d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(a.memory.buffer)),d}let h=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function f(e,t){return e>>>=0,h.decode(o().subarray(e,e+t))}function m(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.get_spot_price(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function y(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_out_given_in(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function g(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_in_given_out(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function b(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_linear_weights(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function v(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i;a.calculate_pool_trade_fee(u,d,h,t,n);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}h.decode()},1119:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{NO:()=>f,lI:()=>r}),e=n.hmd(e);let i=0,s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(a.memory.buffer)),s}let c=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const u="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(void 0===n){const n=c.encode(e),a=t(n.length,1)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a,1)>>>0;const s=o();let l=0;for(;l127)break;s[r+l]=t}if(l!==a){0!==l&&(e=e.slice(l)),r=n(r,a,a=l+3*e.length,1)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written,r=n(r,a,l,1)>>>0}return i=l,r}let d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(a.memory.buffer)),d}let h=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function f(e,t){let n,r;try{const f=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.fixed_from_rational(f,m,y,g,b);var s=p()[f/4+0],c=p()[f/4+1];return n=s,r=c,u=s,d=c,u>>>=0,h.decode(o().subarray(u,u+d))}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r,1)}var u,d}h.decode()},70459:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{$E:()=>y,Fi:()=>k,GD:()=>w,GX:()=>v,Nu:()=>g,QY:()=>A,S:()=>b,S6:()=>S,SQ:()=>P,W5:()=>_,WC:()=>m,_D:()=>x,bj:()=>T,cO:()=>E,lI:()=>r,q1:()=>I,t_:()=>C}),e=n.hmd(e);let i=0,s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(a.memory.buffer)),s}let c=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const u="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(void 0===n){const n=c.encode(e),a=t(n.length,1)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a,1)>>>0;const s=o();let l=0;for(;l127)break;s[r+l]=t}if(l!==a){0!==l&&(e=e.slice(l)),r=n(r,a,a=l+3*e.length,1)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written,r=n(r,a,l,1)>>>0}return i=l,r}let d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(a.memory.buffer)),d}let h=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function f(e,t){return e>>>=0,h.decode(o().subarray(e,e+t))}function m(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_shares(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function y(e,t,n,r,s,o,c,u){let d,h;try{const g=a.__wbindgen_add_to_stack_pointer(-16),b=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i,S=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),x=i,C=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),k=i,T=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),E=i,P=l(c,a.__wbindgen_malloc,a.__wbindgen_realloc),O=i,B=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),R=i;a.calculate_liquidity_out(g,b,v,_,A,w,I,S,x,C,k,T,E,P,O,B,R);var m=p()[g/4+0],y=p()[g/4+1];return d=m,h=y,f(m,y)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(d,h,1)}}function g(e,t,n,r,s,o,c,u){let d,h;try{const g=a.__wbindgen_add_to_stack_pointer(-16),b=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i,S=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),x=i,C=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),k=i,T=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),E=i,P=l(c,a.__wbindgen_malloc,a.__wbindgen_realloc),O=i,B=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),R=i;a.calculate_liquidity_lrna_out(g,b,v,_,A,w,I,S,x,C,k,T,E,P,O,B,R);var m=p()[g/4+0],y=p()[g/4+1];return d=m,h=y,f(m,y)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(d,h,1)}}function b(e,t,n,r,s,o,c,u,d){let h,m;try{const b=a.__wbindgen_add_to_stack_pointer(-16),v=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i,x=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),C=i,k=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),T=i,E=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),P=i,O=l(c,a.__wbindgen_malloc,a.__wbindgen_realloc),B=i,R=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),N=i,M=l(d,a.__wbindgen_malloc,a.__wbindgen_realloc),D=i;a.calculate_out_given_in(b,v,_,A,w,I,S,x,C,k,T,E,P,O,B,R,N,M,D);var y=p()[b/4+0],g=p()[b/4+1];return h=y,m=g,f(y,g)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(h,m,1)}}function v(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_out_given_lrna_in(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function _(e,t,n,r,s,o,c,u,d){let h,m;try{const b=a.__wbindgen_add_to_stack_pointer(-16),v=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i,x=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),C=i,k=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),T=i,E=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),P=i,O=l(c,a.__wbindgen_malloc,a.__wbindgen_realloc),B=i,R=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),N=i,M=l(d,a.__wbindgen_malloc,a.__wbindgen_realloc),D=i;a.calculate_in_given_out(b,v,_,A,w,I,S,x,C,k,T,E,P,O,B,R,N,M,D);var y=p()[b/4+0],g=p()[b/4+1];return h=y,m=g,f(y,g)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(h,m,1)}}function A(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_lrna_in_given_out(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function w(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_spot_price(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function I(e,t){let n,r;try{const c=a.__wbindgen_add_to_stack_pointer(-16),u=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),d=i,h=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i;a.calculate_lrna_spot_price(c,u,d,h,m);var s=p()[c/4+0],o=p()[c/4+1];return n=s,r=o,f(s,o)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r,1)}}function S(e,t,n,r){const s=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=i,c=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),u=i,d=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),p=i,h=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=i;return 0!==a.verify_asset_cap(s,o,c,u,d,p,h,f)}function x(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_liquidity_hub_in(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function C(e){return 0!==a.is_sell_allowed(e)}function k(e){return 0!==a.is_buy_allowed(e)}function T(e){return 0!==a.is_add_liquidity_allowed(e)}function E(e){return 0!==a.is_remove_liquidity_allowed(e)}function P(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i;a.calculate_pool_trade_fee(u,d,h,t,n);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}h.decode()},75302:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{M8:()=>g,NI:()=>v,NL:()=>A,S:()=>m,SQ:()=>I,W5:()=>y,WC:()=>b,Xy:()=>w,jm:()=>_,lI:()=>r}),e=n.hmd(e);let i=0,s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(a.memory.buffer)),s}let c=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const u="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(void 0===n){const n=c.encode(e),a=t(n.length,1)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a,1)>>>0;const s=o();let l=0;for(;l127)break;s[r+l]=t}if(l!==a){0!==l&&(e=e.slice(l)),r=n(r,a,a=l+3*e.length,1)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written,r=n(r,a,l,1)>>>0}return i=l,r}let d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(a.memory.buffer)),d}let h=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function f(e,t){return e>>>=0,h.decode(o().subarray(e,e+t))}function m(e,t,n,r,s,o){let c,u;try{const m=a.__wbindgen_add_to_stack_pointer(-16),y=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i;a.calculate_out_given_in(m,y,g,t,n,b,v,_,A,w,I);var d=p()[m/4+0],h=p()[m/4+1];return c=d,u=h,f(d,h)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(c,u,1)}}function y(e,t,n,r,s,o){let c,u;try{const m=a.__wbindgen_add_to_stack_pointer(-16),y=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i;a.calculate_in_given_out(m,y,g,t,n,b,v,_,A,w,I);var d=p()[m/4+0],h=p()[m/4+1];return c=d,u=h,f(d,h)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(c,u,1)}}function g(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_amplification(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function b(e,t,n,r,s){let o,c;try{const h=a.__wbindgen_add_to_stack_pointer(-16),m=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i,v=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),_=i,A=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),w=i,I=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),S=i;a.calculate_shares(h,m,y,g,b,v,_,A,w,I,S);var u=p()[h/4+0],d=p()[h/4+1];return o=u,c=d,f(u,d)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(o,c,1)}}function v(e,t,n,r,s,o){let c,u;try{const m=a.__wbindgen_add_to_stack_pointer(-16),y=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i,S=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),x=i;a.calculate_shares_for_amount(m,y,g,t,b,v,_,A,w,I,S,x);var d=p()[m/4+0],h=p()[m/4+1];return c=d,u=h,f(d,h)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(c,u,1)}}function _(e,t,n,r,s,o){let c,u;try{const m=a.__wbindgen_add_to_stack_pointer(-16),y=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i,S=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),x=i;a.calculate_add_one_asset(m,y,g,b,v,n,_,A,w,I,S,x);var d=p()[m/4+0],h=p()[m/4+1];return c=d,u=h,f(d,h)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(c,u,1)}}function A(e){try{const c=a.__wbindgen_add_to_stack_pointer(-16);a.pool_account_name(c,e);var t=p()[c/4+0],n=p()[c/4+1],r=(i=t,s=n,i>>>=0,o().subarray(i/1,i/1+s)).slice();return a.__wbindgen_free(t,1*n,1),r}finally{a.__wbindgen_add_to_stack_pointer(16)}var i,s}function w(e,t,n,r,s,o){let c,u;try{const m=a.__wbindgen_add_to_stack_pointer(-16),y=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i,w=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),I=i,S=l(o,a.__wbindgen_malloc,a.__wbindgen_realloc),x=i;a.calculate_liquidity_out_one_asset(m,y,g,b,v,n,_,A,w,I,S,x);var d=p()[m/4+0],h=p()[m/4+1];return c=d,u=h,f(d,h)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(c,u,1)}}function I(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i;a.calculate_pool_trade_fee(u,d,h,t,n);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}h.decode()},58732:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{GD:()=>y,S:()=>b,SQ:()=>S,W5:()=>v,WC:()=>A,Wu:()=>w,bd:()=>I,gJ:()=>g,lI:()=>r,s6:()=>_,so:()=>m}),e=n.hmd(e);let i=0,s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(a.memory.buffer)),s}let c=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const u="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const n=c.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(void 0===n){const n=c.encode(e),a=t(n.length,1)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a,1)>>>0;const s=o();let l=0;for(;l127)break;s[r+l]=t}if(l!==a){0!==l&&(e=e.slice(l)),r=n(r,a,a=l+3*e.length,1)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written,r=n(r,a,l,1)>>>0}return i=l,r}let d=null;function p(){return null!==d&&0!==d.byteLength||(d=new Int32Array(a.memory.buffer)),d}let h=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function f(e,t){return e>>>=0,h.decode(o().subarray(e,e+t))}function m(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i,m=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.get_spot_price(u,d,h,m,y,g,b);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}function y(e,t){let n,r;try{const c=a.__wbindgen_add_to_stack_pointer(-16),u=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),d=i,h=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i;a.calculate_spot_price(c,u,d,h,m);var s=p()[c/4+0],o=p()[c/4+1];return n=s,r=o,f(s,o)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r,1)}}function g(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_spot_price_with_fee(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function b(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i,m=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.calculate_out_given_in(u,d,h,m,y,g,b);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}function v(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i,m=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.calculate_in_given_out(u,d,h,m,y,g,b);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}function _(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i,m=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.calculate_liquidity_in(u,d,h,m,y,g,b);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}function A(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i,m=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=i,g=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),b=i;a.calculate_shares(u,d,h,m,y,g,b);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}function w(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_liquidity_out_asset_a(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function I(e,t,n,r){let s,o;try{const d=a.__wbindgen_add_to_stack_pointer(-16),h=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),m=i,y=l(t,a.__wbindgen_malloc,a.__wbindgen_realloc),g=i,b=l(n,a.__wbindgen_malloc,a.__wbindgen_realloc),v=i,_=l(r,a.__wbindgen_malloc,a.__wbindgen_realloc),A=i;a.calculate_liquidity_out_asset_b(d,h,m,y,g,b,v,_,A);var c=p()[d/4+0],u=p()[d/4+1];return s=c,o=u,f(c,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(s,o,1)}}function S(e,t,n){let r,s;try{const u=a.__wbindgen_add_to_stack_pointer(-16),d=l(e,a.__wbindgen_malloc,a.__wbindgen_realloc),h=i;a.calculate_pool_trade_fee(u,d,h,t,n);var o=p()[u/4+0],c=p()[u/4+1];return r=o,s=c,f(o,c)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(r,s,1)}}h.decode()},13937:function(e){e.exports=(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return((e,t,n)=>{n.r(t),n.d(t,{default:()=>a});const a=JSON.parse('{"types":[{"minmax":[0,null],"types":{"BalanceWrapper":{"amount":"String"},"CurrencyId":{"_enum":{"Token":"TokenSymbol","ForeignAsset":"ForeignAssetId","LendToken":"LendTokenId","LpToken":"(LpToken, LpToken)","StableLpToken":"StablePoolId"}},"LpToken":{"_enum":{"Token":"TokenSymbol","ForeignAsset":"ForeignAssetId","StableLpToken":"StablePoolId"}},"InterbtcPrimitivesCurrencyId":{"_enum":{"Token":"InterbtcPrimitivesTokenSymbol","ForeignAsset":"InterbtcForeignAssetId","LendToken":"InterbtcLendTokenId","LpToken":"(InterbtcLpToken, InterbtcLpToken)","StableLpToken":"InterbtcStablePoolId"}},"InterbtcLpToken":{"_enum":{"Token":"InterbtcPrimitivesTokenSymbol","ForeignAsset":"InterbtcForeignAssetId","StableLpToken":"InterbtcStablePoolId"}},"InterbtcForeignAssetId":"u32","ForeignAssetId":"u32","InterbtcLendTokenId":"u32","InterbtcStablePoolId":"u32","LendTokenId":"u32","StablePoolId":"u32","NumberOrHex":{"_enum":{"Number":"u64","Hex":"U256"}},"Rate":"FixedU128","Ratio":"Permill","Liquidity":"FixedU128","Shortfall":"FixedU128","FundAccountJsonRpcRequest":{"account_id":"AccountId","currency_id":"InterbtcPrimitivesCurrencyId"},"H256Le":"H256","SignedFixedPoint":"FixedU128","TokenSymbol":{"_enum":{"DOT":0,"IBTC":1,"INTR":2,"KSM":10,"KBTC":11,"KINT":12}},"InterbtcPrimitivesTokenSymbol":{"_enum":{"DOT":0,"IBTC":1,"INTR":2,"KSM":10,"KBTC":11,"KINT":12}},"UnsignedFixedPoint":"FixedU128","VaultCurrencyPair":{"collateral":"CurrencyId","wrapped":"CurrencyId"},"VaultId":{"account_id":"AccountId","currencies":"VaultCurrencyPair"}}}],"rpc":{"btcRelay":{"verifyBlockHeaderInclusion":{"description":"Verify that the block with the given hash is included","params":[{"name":"block_hash","type":"H256Le"}],"type":"void"}},"escrow":{"balanceAt":{"description":"Get a given user\'s escrowed balance","params":[{"name":"account_id","type":"AccountId"},{"name":"height","type":"Option"}],"type":"BalanceWrapper"},"totalSupply":{"description":"Get the total voting supply in the system","params":[{"name":"height","type":"Option"}],"type":"BalanceWrapper"},"freeStakable":{"description":"Amount of kint/intr that account can lock, taking into consideration the Limits.","params":[{"name":"account_id","type":"AccountId"}],"type":"BalanceWrapper"}},"loans":{"getCollateralLiquidity":{"description":"Retrieves collateral liquidity for the given user.","params":[{"name":"account","type":"AccountId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Liquidity, Shortfall)","isSubscription":false,"jsonrpc":"loans_getCollateralLiquidity","method":"getCollateralLiquidity","section":"loans"},"getLiquidationThresholdLiquidity":{"description":"Retrieves liquidation threshold liquidity for the given user.","params":[{"name":"account","type":"AccountId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Liquidity, Shortfall)","isSubscription":false,"jsonrpc":"loans_getLiquidationThresholdLiquidity","method":"getLiquidationThresholdLiquidity","section":"loans"},"getMarketStatus":{"description":"Retrieves market status data for a given asset id.","params":[{"name":"asset_id","type":"CurrencyId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)","isSubscription":false,"jsonrpc":"loans_getMarketStatus","method":"getMarketStatus","section":"loans"}},"issue":{"getIssueRequests":{"description":"Get all issue request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultIssueRequests":{"description":"Get all issue request IDs for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec"}},"oracle":{"collateralToWrapped":{"description":"Collateral to Wrapped exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"wrappedToCollateral":{"description":"Wrapped to Collateral exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"redeem":{"getRedeemRequests":{"description":"Get all redeem request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultRedeemRequests":{"description":"Get all redeem request IDs for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec"}},"refund":{"getRefundRequests":{"description":"Get all refund request IDs for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getRefundRequestsByIssueId":{"description":"Get all refund request IDs for a particular issue ID","params":[{"name":"issue_id","type":"H256"}],"type":"H256"},"getVaultRefundRequests":{"description":"Get all refund request IDs for a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"}},"replace":{"getNewVaultReplaceRequests":{"description":"Get all replace request IDs to a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getOldVaultReplaceRequests":{"description":"Get all replace request IDs from a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"}},"reward":{"estimateEscrowRewardRate":{"description":"Estimate the escrow reward rate for a given account","params":[{"name":"account_id","type":"AccountId"},{"name":"amount","type":"Option"},{"name":"lock_time","type":"Option"}],"type":"UnsignedFixedPoint"},"estimateVaultRewardRate":{"description":"Estimate the vault reward rate a given vault id","params":[{"name":"vault_id","type":"VaultId"}],"type":"UnsignedFixedPoint"},"computeEscrowReward":{"description":"Get a given user\'s rewards due","params":[{"name":"account_id","type":"AccountId"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"computeFarmingReward":{"description":"Get a given user\'s farming rewards due","params":[{"name":"account_id","type":"AccountId"},{"name":"pool_currency_id","type":"CurrencyId"},{"name":"reward_currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"computeVaultReward":{"description":"Get a given vault\'s rewards due","params":[{"name":"vault_id","type":"VaultId"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"vaultRegistry":{"getCollateralizationFromVault":{"description":"Returns the collateralization of a specific vault","params":[{"name":"vault","type":"VaultId"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getCollateralizationFromVaultAndCollateral":{"description":"Returns the collateralization of a specific vault and collateral","params":[{"name":"vault","type":"VaultId"},{"name":"collateral","type":"BalanceWrapper"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getIssueableTokensFromVault":{"description":"Get the amount of tokens a vault can issue","params":[{"name":"vault","type":"VaultId"}],"type":"BalanceWrapper"},"getPremiumRedeemVaults":{"description":"Get all vaults below the premium redeem threshold.","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"},"getRequiredCollateralForVault":{"description":"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getRequiredCollateralForWrapped":{"description":"Get the amount of collateral required to issue an amount of InterBTC","params":[{"name":"amount_btc","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"getVaultCollateral":{"description":"Get the vault\'s collateral (excluding nomination)","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getVaultTotalCollateral":{"description":"Get the vault\'s collateral (including nomination)","params":[{"name":"vault_id","type":"VaultId"}],"type":"BalanceWrapper"},"getVaultsByAccountId":{"description":"Get all vaults that are registered using the given account _id","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec"},"getVaultsWithIssuableTokens":{"description":"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"},"getVaultsWithRedeemableTokens":{"description":"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(VaultId, BalanceWrapper)>"}},"dexStable":{"getA":{"description":"Get amplification coefficient of pool","params":[{"name":"pool_id","type":"StablePoolId"},{"name":"at","type":"BlockHash","isHistoric":true,"isOptional":true}],"type":"NumberOrHex"}}},"alias":{"tokens":{"AccountData":"OrmlAccountData","BalanceLock":"OrmlBalanceLock"}},"instances":{"balances":["ksm","kbtc","kint","dot","ibtc","intr"]}}')})(0,t,e),t})()},64166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IBlockchainProvider=t.IBlockchainAuthenticator=t.IPendingRequests=void 0;const a=n(12644),r=n(27053);t.IPendingRequests=class{constructor(e){this.storage=e}};class i extends a.IEvents{constructor(e){super(),this.config=e}}t.IBlockchainAuthenticator=i;class s extends r.IJsonRpcProvider{constructor(e,t){super(e)}}t.IBlockchainProvider=s},3066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(85608);a.__exportStar(n(64166),t),a.__exportStar(n(88663),t),a.__exportStar(n(12644),t),a.__exportStar(n(37819),t),a.__exportStar(n(27053),t),a.__exportStar(n(66441),t),a.__exportStar(n(72195),t),a.__exportStar(n(99084),t)},88663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEvents=void 0,t.IEvents=class{}},37819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IMultiServiceProvider=void 0;const a=n(27053);class r extends a.IBaseJsonRpcProvider{constructor(e){super(),this.config=e}}t.IMultiServiceProvider=r},27053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IJsonRpcProvider=t.IBaseJsonRpcProvider=t.IJsonRpcConnection=void 0;const a=n(12644);class r extends a.IEvents{constructor(e){super()}}t.IJsonRpcConnection=r;class i extends a.IEvents{constructor(){super()}}t.IBaseJsonRpcProvider=i,t.IJsonRpcProvider=class extends i{constructor(e){super()}}},66441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IJsonRpcRouter=void 0,t.IJsonRpcRouter=class{constructor(e){this.routes=e}}},72195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IJsonRpcValidator=void 0,t.IJsonRpcValidator=class{constructor(e){this.schemas=e}}},8967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STANDARD_ERROR_MAP=t.SERVER_ERROR_CODE_RANGE=t.RESERVED_ERROR_CODES=t.SERVER_ERROR=t.INTERNAL_ERROR=t.INVALID_PARAMS=t.METHOD_NOT_FOUND=t.INVALID_REQUEST=t.PARSE_ERROR=void 0,t.PARSE_ERROR="PARSE_ERROR",t.INVALID_REQUEST="INVALID_REQUEST",t.METHOD_NOT_FOUND="METHOD_NOT_FOUND",t.INVALID_PARAMS="INVALID_PARAMS",t.INTERNAL_ERROR="INTERNAL_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.RESERVED_ERROR_CODES=[-32700,-32600,-32601,-32602,-32603],t.SERVER_ERROR_CODE_RANGE=[-32e3,-32099],t.STANDARD_ERROR_MAP={[t.PARSE_ERROR]:{code:-32700,message:"Parse error"},[t.INVALID_REQUEST]:{code:-32600,message:"Invalid Request"},[t.METHOD_NOT_FOUND]:{code:-32601,message:"Method not found"},[t.INVALID_PARAMS]:{code:-32602,message:"Invalid params"},[t.INTERNAL_ERROR]:{code:-32603,message:"Internal error"},[t.SERVER_ERROR]:{code:-32e3,message:"Server error"}}},11893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJs=void 0;const a=n(85608),r=n(15232);t.isNodeJs=r.isNode,a.__exportStar(n(15232),t)},8868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonRpcError=t.getErrorByCode=t.getError=t.isValidErrorCode=t.isReservedErrorCode=t.isServerErrorCode=void 0;const a=n(8967);function r(e){return a.RESERVED_ERROR_CODES.includes(e)}function i(e){return"number"==typeof e}function s(e){return Object.values(a.STANDARD_ERROR_MAP).find((t=>t.code===e))||a.STANDARD_ERROR_MAP[a.INTERNAL_ERROR]}t.isServerErrorCode=function(e){return e<=a.SERVER_ERROR_CODE_RANGE[0]&&e>=a.SERVER_ERROR_CODE_RANGE[1]},t.isReservedErrorCode=r,t.isValidErrorCode=i,t.getError=function(e){return Object.keys(a.STANDARD_ERROR_MAP).includes(e)?a.STANDARD_ERROR_MAP[e]:a.STANDARD_ERROR_MAP[a.INTERNAL_ERROR]},t.getErrorByCode=s,t.validateJsonRpcError=function(e){if(void 0===e.error.code)return{valid:!1,error:"Missing code for JSON-RPC error"};if(void 0===e.error.message)return{valid:!1,error:"Missing message for JSON-RPC error"};if(!i(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(r(e.error.code)){const t=s(e.error.code);if(t.message!==a.STANDARD_ERROR_MAP[a.INTERNAL_ERROR].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}},26999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatErrorMessage=t.formatJsonRpcError=t.formatJsonRpcResult=t.formatJsonRpcRequest=t.payloadId=void 0;const a=n(8868),r=n(8967);function i(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}function s(e){if(void 0===e)return a.getError(r.INTERNAL_ERROR);if("string"==typeof e&&(e=Object.assign(Object.assign({},a.getError(r.SERVER_ERROR)),{message:e})),a.isReservedErrorCode(e.code)&&(e=a.getErrorByCode(e.code)),!a.isServerErrorCode(e.code))throw new Error("Error code is not in server code range");return e}t.payloadId=i,t.formatJsonRpcRequest=function(e,t,n){return{id:n||i(),jsonrpc:"2.0",method:e,params:t}},t.formatJsonRpcResult=function(e,t){return{id:e,jsonrpc:"2.0",result:t}},t.formatJsonRpcError=function(e,t){return{id:e,jsonrpc:"2.0",error:s(t)}},t.formatErrorMessage=s},72502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(85608);a.__exportStar(n(8967),t),a.__exportStar(n(8868),t),a.__exportStar(n(11893),t),a.__exportStar(n(26999),t),a.__exportStar(n(30692),t),a.__exportStar(n(33131),t),a.__exportStar(n(15079),t)},30692:(e,t)=>{"use strict";function n(e){return"*"===e}function a(e){return!!n(e)||!!e.includes("*")&&2===e.split("*").length&&1===e.split("*").filter((e=>""===e.trim())).length}Object.defineProperty(t,"__esModule",{value:!0}),t.isValidTrailingWildcardRoute=t.isValidLeadingWildcardRoute=t.isValidWildcardRoute=t.isValidDefaultRoute=t.isValidRoute=void 0,t.isValidRoute=function(e){return e.includes("*")?a(e):!/\W/g.test(e)},t.isValidDefaultRoute=n,t.isValidWildcardRoute=a,t.isValidLeadingWildcardRoute=function(e){return!n(e)&&a(e)&&!e.split("*")[0].trim()},t.isValidTrailingWildcardRoute=function(e){return!n(e)&&a(e)&&!e.split("*")[1].trim()}},33131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(85608).__exportStar(n(3066),t)},15079:(e,t)=>{"use strict";function n(e){return"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function a(e){return"result"in e}function r(e){return"error"in e}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonRpcValidationInvalid=t.isJsonRpcError=t.isJsonRpcResult=t.isJsonRpcResponse=t.isJsonRpcRequest=t.isJsonRpcPayload=void 0,t.isJsonRpcPayload=n,t.isJsonRpcRequest=function(e){return n(e)&&"method"in e},t.isJsonRpcResponse=function(e){return n(e)&&(a(e)||r(e))},t.isJsonRpcResult=a,t.isJsonRpcError=r,t.isJsonRpcValidationInvalid=function(e){return"error"in e&&!1===e.valid}},31693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSingle=t.decode=t.encodePacked=t.encodeSingle=t.encode=void 0;const a=n(57270),r=n(19520),i=n(75297);t.encode=(e,t,n,a)=>{try{return(0,i.pack)({types:e,values:t,packed:n,tight:a})}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to encode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.encodeSingle=(e,n)=>(0,t.encode)([e],[n]),t.encodePacked=(e,n,a)=>(0,t.encode)(e,n,!0,a),t.decode=(e,t)=>{const n=(0,a.createBytes)(t);try{return(0,i.unpack)(e,n)}catch(e){if(e instanceof r.ParserError)throw new r.ParserError(`Unable to decode value: ${e.message}`,e);throw new r.ParserError(`An unexpected error occurred: ${(0,r.getErrorMessage)(e)}`,e)}},t.decodeSingle=(e,n)=>{const i=(0,t.decode)([e],n);return(0,a.assert)(1===i.length,new r.ParserError("Decoded value array has unexpected length.")),i[0]}},19520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParserError=t.getErrorStack=t.getErrorMessage=void 0;const a=n(57270);t.getErrorMessage=e=>"string"==typeof e?e:e instanceof Error||(0,a.isObject)(e)&&(0,a.hasProperty)(e,"message")&&"string"==typeof e.message?e.message:"Unknown error.",t.getErrorStack=e=>{if(e instanceof Error)return e.stack};class r extends Error{constructor(e,n){super(e),this.name="ParserError";const a=(0,t.getErrorStack)(n);a&&(this.stack=a)}}t.ParserError=r},88839:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(31693),t),r(n(19520),t),r(n(39693),t)},53201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterate=void 0;const a=n(57270);t.iterate=function*(e,t=32){for(let n=0;n{(0,a.assert)(e>=0,"Cannot skip a negative number of bytes."),(0,a.assert)(e%t==0,"Length must be a multiple of the size."),n+=e},i=e.subarray(n);yield{skip:r,value:i}}return{skip:()=>{},value:new Uint8Array}}},75297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpack=t.pack=t.isDynamicParser=t.getParser=void 0;const a=n(57270),r=n(19520),i=n(53201),s=n(64240),o=n(26769);t.getParser=e=>{const t={address:s.address,array:s.array,bool:s.bool,bytes:s.bytes,fixedBytes:s.fixedBytes,function:s.fn,number:s.number,string:s.string,tuple:s.tuple},n=t[e];if(n)return n;const a=Object.values(t).find((t=>t.isType(e)));if(a)return a;throw new r.ParserError(`The type "${e}" is not supported.`)},t.isDynamicParser=(e,t)=>{const{isDynamic:n}=e;return"function"==typeof n?n(t):n},t.pack=({types:e,values:n,packed:i=!1,tight:s=!1,arrayPacked:c=!1,byteArray:u=new Uint8Array})=>{(0,a.assert)(e.length===n.length,new r.ParserError(`The number of types (${e.length}) does not match the number of values (${n.length}).`));const{staticBuffer:l,dynamicBuffer:d,pointers:p}=e.reduce((({staticBuffer:e,dynamicBuffer:r,pointers:o},u,l)=>{const d=(0,t.getParser)(u),p=n[l];return i||c||!(0,t.isDynamicParser)(d,u)?{staticBuffer:d.encode({buffer:e,value:p,type:u,packed:i,tight:s}),dynamicBuffer:r,pointers:o}:{staticBuffer:(0,a.concatBytes)([e,new Uint8Array(32)]),dynamicBuffer:d.encode({buffer:r,value:p,type:u,packed:i,tight:s}),pointers:[...o,{position:e.length,pointer:r.length}]}}),{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,a.assert)(!i&&!c||0===d.length,new r.ParserError("Invalid pack state."));const h=l.length,f=p.reduce(((e,{pointer:t,position:n})=>{const r=(0,o.padStart)((0,a.numberToBytes)(h+t));return(0,o.set)(e,r,n)}),l);return(0,a.concatBytes)([u,f,d])},t.unpack=(e,n)=>{const s=(0,i.iterate)(n);return e.map((e=>{const{value:{value:i,skip:o},done:c}=s.next();(0,a.assert)(!c,new r.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${e}".`));const u=(0,t.getParser)(e);if((0,t.isDynamicParser)(u,e)){const t=(0,a.bytesToNumber)(i.subarray(0,32)),r=n.subarray(t);return u.decode({type:e,value:r,skip:o})}return u.decode({type:e,value:i,skip:o})}))}},89048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.address=t.getAddress=void 0;const a=n(57270),r=n(19520),i=n(26769);t.getAddress=e=>{const t=(0,a.createBytes)(e);return(0,a.assert)(t.length<=20,new r.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${t.length} bytes.`)),(0,i.padStart)(t,20)},t.address={isDynamic:!1,isType:e=>"address"===e,getByteLength:()=>32,encode({buffer:e,value:n,packed:r}){const s=(0,t.getAddress)(n);if(r)return(0,a.concatBytes)([e,s]);const o=(0,i.padStart)(s);return(0,a.concatBytes)([e,o])},decode:({value:e})=>(0,a.add0x)((0,a.bytesToHex)(e.slice(12,32)))}},54057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.array=t.getTupleType=t.getArrayType=t.isArrayType=void 0;const a=n(57270),r=n(19520),i=n(75297),s=n(26769),o=n(43892),c=n(44226),u=/^(?.*)\[(?\d*?)\]$/u;t.isArrayType=e=>u.test(e),t.getArrayType=e=>{const t=e.match(u);return(0,a.assert)(t?.groups?.type,new r.ParserError(`Invalid array type. Expected an array type, but received "${e}".`)),[t.groups.type,t.groups.length?parseInt(t.groups.length,10):void 0]},t.getTupleType=(e,t)=>`(${new Array(t).fill(e).join(",")})`,t.array={isDynamic(e){const[n,a]=(0,t.getArrayType)(e);return void 0===a||(0,i.isDynamicParser)((0,i.getParser)(n),n)},isType:e=>(0,t.isArrayType)(e),getByteLength(e){(0,a.assert)((0,t.isArrayType)(e),new r.ParserError(`Expected an array type, but received "${e}".`));const[n,s]=(0,t.getArrayType)(e);return(0,i.isDynamicParser)(this,e)||void 0===s?32:c.tuple.getByteLength((0,t.getTupleType)(n,s))},encode({type:e,buffer:n,value:u,packed:l,tight:d}){const[p,h]=(0,t.getArrayType)(e);if((0,a.assert)(!l||!(0,t.isArrayType)(p),new r.ParserError("Cannot pack nested arrays.")),l&&(0,i.isDynamicParser)((0,i.getParser)(p),p))return(0,i.pack)({types:new Array(u.length).fill(p),values:u,byteArray:n,packed:l,arrayPacked:!0,tight:d});if(h)return(0,a.assert)(h===u.length,new r.ParserError(`Array length does not match type length. Expected a length of ${h}, but received ${u.length}.`)),c.tuple.encode({type:(0,t.getTupleType)(p,h),buffer:n,value:u,packed:o.fixedBytes.isType(p)&&d,tight:d});if(l)return(0,i.pack)({types:new Array(u.length).fill(p),values:u,byteArray:n,packed:o.fixedBytes.isType(p)&&d,arrayPacked:!0,tight:d});const f=(0,s.padStart)((0,a.numberToBytes)(u.length));return(0,i.pack)({types:new Array(u.length).fill(p),values:u,byteArray:(0,a.concatBytes)([n,f]),packed:l,tight:d})},decode({type:e,value:n,...s}){const[o,u]=(0,t.getArrayType)(e);if(u){const e=c.tuple.decode({type:(0,t.getTupleType)(o,u),value:n,...s});return(0,a.assert)(e.length===u,new r.ParserError(`Array length does not match type length. Expected a length of ${u}, but received ${e.length}.`)),e}const l=(0,a.bytesToNumber)(n.subarray(0,32));return(0,i.unpack)(new Array(l).fill(o),n.subarray(32))}}},86966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bool=t.getBooleanValue=void 0;const a=n(87093),r=n(57270),i=n(19520),s=n(20367),o=(0,a.coerce)((0,a.boolean)(),(0,a.union)([(0,a.literal)("true"),(0,a.literal)("false")]),(e=>"true"===e));t.getBooleanValue=e=>{try{return(0,a.create)(e,o)?BigInt(1):BigInt(0)}catch{throw new i.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${e}".`)}},t.bool={isDynamic:!1,isType:e=>"bool"===e,getByteLength:()=>32,encode({buffer:e,value:n,packed:a,tight:i}){const o=(0,t.getBooleanValue)(n);return a?(0,r.concatBytes)([e,(0,r.bigIntToBytes)(o)]):s.number.encode({type:"uint256",buffer:e,value:o,packed:a,tight:i})},decode:e=>s.number.decode({...e,type:"uint256"})===BigInt(1)}},36771:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=void 0;const a=n(57270),r=n(26769);t.bytes={isDynamic:!0,isType:e=>"bytes"===e,getByteLength:()=>32,encode({buffer:e,value:t,packed:n}){const i=(0,a.createBytes)(t);if(n)return(0,a.concatBytes)([e,i]);const s=32*Math.ceil(i.byteLength/32);return(0,a.concatBytes)([e,(0,r.padStart)((0,a.numberToBytes)(i.byteLength)),(0,r.padEnd)(i,s)])},decode({value:e}){const t=e.subarray(0,32),n=(0,a.bytesToNumber)(t);return e.slice(32,32+n)}}},43892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixedBytes=t.getByteLength=void 0;const a=n(57270),r=n(19520),i=n(26769),s=/^bytes([0-9]{1,2})$/u;t.getByteLength=e=>{const t=e.match(s)?.[1];(0,a.assert)(t,`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`);const n=Number(t);return(0,a.assert)(n>0&&n<=32,new r.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${e}".`)),n},t.fixedBytes={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:n,value:s,packed:o}){const c=(0,t.getByteLength)(e),u=(0,a.createBytes)(s);return(0,a.assert)(u.length<=c,new r.ParserError(`Expected a value of length ${c}, but received a value of length ${u.length}.`)),o?(0,a.concatBytes)([n,(0,i.padEnd)(u,c)]):(0,a.concatBytes)([n,(0,i.padEnd)(u)])},decode({type:e,value:n}){const a=(0,t.getByteLength)(e);return n.slice(0,a)}}},95810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fn=t.getFunction=void 0;const a=n(87093),r=n(57270),i=n(19520),s=n(43892),o=(0,a.coerce)((0,a.object)({address:r.StrictHexStruct,selector:r.StrictHexStruct}),(0,a.union)([r.StrictHexStruct,(0,a.instance)(Uint8Array)]),(e=>{const t=(0,r.createBytes)(e);return(0,r.assert)(24===t.length,new i.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${t.length} bytes.`)),{address:(0,r.bytesToHex)(t.subarray(0,20)),selector:(0,r.bytesToHex)(t.subarray(20,24))}}));t.getFunction=e=>{const t=(0,a.create)(e,o);return(0,r.concatBytes)([(0,r.hexToBytes)(t.address),(0,r.hexToBytes)(t.selector)])},t.fn={isDynamic:!1,isType:e=>"function"===e,getByteLength:()=>32,encode({buffer:e,value:n,packed:a,tight:r}){const i=(0,t.getFunction)(n);return s.fixedBytes.encode({type:"bytes24",buffer:e,value:i,packed:a,tight:r})},decode:({value:e})=>({address:(0,r.bytesToHex)(e.slice(0,20)),selector:(0,r.bytesToHex)(e.slice(20,24))})}},64240:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(89048),t),r(n(54057),t),r(n(86966),t),r(n(36771),t),r(n(43892),t),r(n(95810),t),r(n(20367),t),r(n(45845),t),r(n(14015),t),r(n(44226),t)},20367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.number=t.getBigInt=t.assertNumberLength=t.getLength=t.isSigned=void 0;const a=n(57270),r=n(19520),i=n(26769),s=/^u?int(?[0-9]*)?$/u;t.isSigned=e=>!e.startsWith("u"),t.getLength=e=>{if("int"===e||"uint"===e)return 256;const t=e.match(s);(0,a.assert)(t?.groups?.length,new r.ParserError(`Invalid number type. Expected a number type, but received "${e}".`));const n=parseInt(t.groups.length,10);return(0,a.assert)(n>=8&&n<=256,new r.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${e}".`)),(0,a.assert)(n%8==0,new r.ParserError(`Invalid number length. Expected a multiple of 8, but received "${e}".`)),n},t.assertNumberLength=(e,n)=>{const i=(0,t.getLength)(n),s=BigInt(2)**BigInt(i-((0,t.isSigned)(n)?1:0))-BigInt(1);(0,t.isSigned)(n)?(0,a.assert)(e>=-(s+BigInt(1))&&e<=s,new r.ParserError(`Number "${e}" is out of range for type "${n}".`)):(0,a.assert)(e<=s,new r.ParserError(`Number "${e}" is out of range for type "${n}".`))},t.getBigInt=e=>{try{return(0,a.createBigInt)(e)}catch{throw new r.ParserError(`Invalid number. Expected a valid number value, but received "${e}".`)}},t.number={isDynamic:!1,isType:e=>s.test(e),getByteLength:()=>32,encode({type:e,buffer:n,value:r,packed:s}){const o=(0,t.getBigInt)(r);if((0,t.assertNumberLength)(o,e),(0,t.isSigned)(e)){if(s){const r=(0,t.getLength)(e)/8;return(0,a.concatBytes)([n,(0,a.signedBigIntToBytes)(o,r)])}return(0,a.concatBytes)([n,(0,i.padStart)((0,a.signedBigIntToBytes)(o,32))])}if(s){const r=(0,t.getLength)(e)/8;return(0,a.concatBytes)([n,(0,i.padStart)((0,a.bigIntToBytes)(o),r)])}return(0,a.concatBytes)([n,(0,i.padStart)((0,a.bigIntToBytes)(o))])},decode({type:e,value:n}){const r=n.subarray(0,32);if((0,t.isSigned)(e)){const n=(0,a.bytesToSignedBigInt)(r);return(0,t.assertNumberLength)(n,e),n}const i=(0,a.bytesToBigInt)(r);return(0,t.assertNumberLength)(i,e),i}}},45845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14015:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=void 0;const a=n(57270),r=n(36771);t.string={isDynamic:!0,isType:e=>"string"===e,getByteLength:()=>32,encode:({buffer:e,value:t,packed:n,tight:i})=>r.bytes.encode({type:"bytes",buffer:e,value:(0,a.stringToBytes)(t),packed:n,tight:i}),decode:e=>(0,a.bytesToString)(r.bytes.decode(e))}},44226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tuple=t.getTupleElements=void 0;const a=n(57270),r=n(19520),i=n(75297),s=/^\((.+)\)$/u;t.getTupleElements=e=>{(0,a.assert)(e.startsWith("(")&&e.endsWith(")"),new r.ParserError(`Invalid tuple type. Expected tuple type, but received "${e}".`));const t=[];let n="",i=0;for(let a=1;a(0,t.getTupleElements)(e).some((e=>{const t=(0,i.getParser)(e);return(0,i.isDynamicParser)(t,e)})),isType:e=>(e=>s.test(e))(e),getByteLength(e){return(0,i.isDynamicParser)(this,e)?32:(0,t.getTupleElements)(e).reduce(((e,t)=>e+(0,i.getParser)(t).getByteLength(t)),0)},encode({type:e,buffer:n,value:a,packed:r,tight:s}){const o=(0,t.getTupleElements)(e);return(0,i.pack)({types:o,values:a,byteArray:n,packed:r,tight:s})},decode({type:e,value:n,skip:a}){const r=(0,t.getTupleElements)(e);return a(this.getByteLength(e)-32),(0,i.unpack)(r,n)}}},53363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39693:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(53363),t)},15939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padEnd=t.padStart=t.set=void 0;const a=n(57270);t.set=(e,t,n)=>(0,a.concatBytes)([e.subarray(0,n),t,e.subarray(n+t.length)]),t.padStart=(e,t=32)=>{const n=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,a.concatBytes)([n,e])},t.padEnd=(e,t=32)=>{const n=new Uint8Array(Math.max(t-e.length,0)).fill(0);return(0,a.concatBytes)([e,n])}},26769:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(15939),t)},34234:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptionPublicKey=t.decryptSafely=t.decrypt=t.encryptSafely=t.encrypt=void 0;const o=n(56710),c=s(n(82926)),u=n(61854);function l({publicKey:e,data:t,version:n}){if((0,u.isNullish)(e))throw new Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw new Error("Missing data parameter");if((0,u.isNullish)(n))throw new Error("Missing version parameter");if("x25519-xsalsa20-poly1305"===n){if("string"!=typeof t)throw new Error("Message data must be given as a string");const n=c.box.keyPair();let a;try{a=o.base64.decode(e)}catch(e){throw new Error("Bad public key")}const r=o.utf8.decode(t),i=c.randomBytes(c.box.nonceLength),s=c.box(r,i,a,n.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:o.base64.encode(i),ephemPublicKey:o.base64.encode(n.publicKey),ciphertext:o.base64.encode(s)}}throw new Error("Encryption type/version not supported")}function d({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw new Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw new Error("Missing privateKey parameter");if("x25519-xsalsa20-poly1305"===e.version){const n=a.from(t,"hex"),r=c.box.keyPair.fromSecretKey(n).secretKey,i=o.base64.decode(e.nonce),s=o.base64.decode(e.ciphertext),u=o.base64.decode(e.ephemPublicKey),l=c.box.open(s,i,u,r);try{if(!l)throw new Error;const e=o.utf8.encode(l);if(!e)throw new Error;return e}catch(e){if(e&&"string"==typeof e.message&&e.message.length)throw new Error(`Decryption failed: ${e.message}`);throw new Error("Decryption failed.")}}throw new Error("Encryption type/version not supported.")}t.encrypt=l,t.encryptSafely=function({publicKey:e,data:t,version:n}){if((0,u.isNullish)(e))throw new Error("Missing publicKey parameter");if((0,u.isNullish)(t))throw new Error("Missing data parameter");if((0,u.isNullish)(n))throw new Error("Missing version parameter");if("object"==typeof t&&t&&"toJSON"in t)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");const r={data:t,padding:""},i=a.byteLength(JSON.stringify(r),"utf-8")%2048;let s=0;return i>0&&(s=2048-i-16),r.padding="0".repeat(s),l({publicKey:e,data:JSON.stringify(r),version:n})},t.decrypt=d,t.decryptSafely=function({encryptedData:e,privateKey:t}){if((0,u.isNullish)(e))throw new Error("Missing encryptedData parameter");if((0,u.isNullish)(t))throw new Error("Missing privateKey parameter");return JSON.parse(d({encryptedData:e,privateKey:t})).data},t.getEncryptionPublicKey=function(e){const t=a.from(e,"hex"),n=c.box.keyPair.fromSecretKey(t).publicKey;return o.base64.encode(n)}},64291:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,r(n(2229),t),r(n(44052),t),r(n(34234),t);var i=n(61854);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return i.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}})},2229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;const a=n(98634),r=n(61854);function i(e,t){const n=(0,a.hashPersonalMessage)((0,r.legacyToBuffer)(e));return(0,r.recoverPublicKey)(n,t)}t.personalSign=function({privateKey:e,data:t}){if((0,r.isNullish)(t))throw new Error("Missing data parameter");if((0,r.isNullish)(e))throw new Error("Missing privateKey parameter");const n=(0,r.legacyToBuffer)(t),i=(0,a.hashPersonalMessage)(n),s=(0,a.ecsign)(i,e);return(0,r.concatSig)((0,a.toBuffer)(s.v),s.r,s.s)},t.recoverPersonalSignature=function({data:e,signature:t}){if((0,r.isNullish)(e))throw new Error("Missing data parameter");if((0,r.isNullish)(t))throw new Error("Missing signature parameter");const n=i(e,t),s=(0,a.publicToAddress)(n);return(0,a.bufferToHex)(s)},t.extractPublicKey=function({data:e,signature:t}){if((0,r.isNullish)(e))throw new Error("Missing data parameter");if((0,r.isNullish)(t))throw new Error("Missing signature parameter");return`0x${i(e,t).toString("hex")}`}},44052:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;const a=n(98634),r=n(88839),i=n(64240),s=n(26769),o=n(57270),c=n(16008),u=n(61854);var l;function d(e,t){if(!Object.keys(l).includes(e))throw new Error(`Invalid version: '${e}'`);if(t&&!t.includes(e))throw new Error(`SignTypedDataVersion not allowed: '${e}'. Allowed versions are: ${t.join(", ")}`)}function p(e,t){(0,o.assert)(null!==t,`Unable to encode value: Invalid number. Expected a valid number value, but received "${t}".`);const n=BigInt(t),a=(0,i.getLength)(e),r=BigInt(2)**BigInt(a)-BigInt(1);return(0,o.assert)(n>=-r&&n<=r,`Unable to encode value: Number "${t}" is out of range for type "${e}".`),n}function h(e){let t=BigInt(0);for(let n=0;n=49?a-BigInt(49)+BigInt(10):a>=17?a-BigInt(17)+BigInt(10):a}return(0,s.padStart)((0,o.bigIntToBytes)(t),20)}function f(e,t,n,i,u){if(d(u,[l.V3,l.V4]),void 0!==e[n])return["bytes32",u===l.V4&&null==i?"0x0000000000000000000000000000000000000000000000000000000000000000":(0,a.arrToBufArr)((0,c.keccak256)(m(n,i,e,u)))];if("function"===n)throw new Error('Unsupported or invalid type: "function"');if(void 0===i)throw new Error(`missing value for field ${t} of type ${n}`);if("address"===n){if("number"==typeof i)return["address",(0,s.padStart)((0,o.numberToBytes)(i),20)];if((0,o.isStrictHexString)(i))return["address",(0,o.add0x)(i)];if("string"==typeof i)return["address",h(i).subarray(0,20)]}if("bool"===n)return["bool",Boolean(i)];if("bytes"===n)return"number"==typeof i?i=(0,o.numberToBytes)(i):(0,o.isStrictHexString)(i)||"0x"===i?i=(0,o.hexToBytes)(i):"string"==typeof i&&(i=(0,o.stringToBytes)(i)),["bytes32",(0,a.arrToBufArr)((0,c.keccak256)(i))];if(n.startsWith("bytes")&&"bytes"!==n&&!n.includes("["))return"number"==typeof i?i<0?["bytes32",new Uint8Array(32)]:["bytes32",(0,o.bigIntToBytes)(BigInt(i))]:(0,o.isStrictHexString)(i)?["bytes32",(0,o.hexToBytes)(i)]:["bytes32",i];if(n.startsWith("int")&&!n.includes("[")){const e=p(n,i);return e>=BigInt(0)?["uint256",e]:["int256",e]}if("string"===n)return i="number"==typeof i?(0,o.numberToBytes)(i):(0,o.stringToBytes)(null!=i?i:""),["bytes32",(0,a.arrToBufArr)((0,c.keccak256)(i))];if(n.endsWith("]")){if(u===l.V3)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");const s=n.slice(0,n.lastIndexOf("[")),o=i.map((n=>f(e,t,s,n,u)));return["bytes32",(0,a.arrToBufArr)((0,c.keccak256)((0,r.encode)(o.map((([e])=>e)),o.map((([,e])=>e)))))]}return[n,i]}function m(e,t,n,i){d(i,[l.V3,l.V4]);const s=["bytes32"],o=[v(e,n)];for(const a of n[e]){if(i===l.V3&&void 0===t[a.name])continue;const[e,r]=f(n,a.name,a.type,t[a.name],i);s.push(e),o.push(r)}return(0,a.arrToBufArr)((0,r.encode)(s,o))}function y(e,t){let n="";const a=g(e,t);a.delete(e);const r=[e,...Array.from(a).sort()];for(const e of r){if(!t[e])throw new Error(`No type definition specified: ${e}`);n+=`${e}(${t[e].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`}return n}function g(e,t,n=new Set){if("string"!=typeof e)throw new Error(`Invalid findTypeDependencies input ${JSON.stringify(e)}`);const a=e.match(/^\w*/u);if([e]=a,n.has(e)||void 0===t[e])return n;n.add(e);for(const a of t[e])g(a.type,t,n);return n}function b(e,t,n,r){d(r,[l.V3,l.V4]);const i=m(e,t,n,r),s=(0,c.keccak256)(i);return(0,a.arrToBufArr)(s)}function v(e,t){const n=(0,o.stringToBytes)(y(e,t));return(0,a.arrToBufArr)((0,c.keccak256)(n))}function _(e){const n={};for(const a in t.TYPED_MESSAGE_SCHEMA.properties)e[a]&&(n[a]=e[a]);return"types"in n&&(n.types=Object.assign({EIP712Domain:[]},n.types)),n}function A(e,t){d(t,[l.V3,l.V4]);const n=_(e),{domain:a}=n;return b("EIP712Domain",a,{EIP712Domain:n.types.EIP712Domain},t)}function w(e,t){if((0,i.isArrayType)(e)&&Array.isArray(t)){const[n]=(0,i.getArrayType)(e);return t.map((e=>w(n,e)))}if("address"===e){if("number"==typeof t)return(0,s.padStart)((0,o.numberToBytes)(t),20);if((0,o.isStrictHexString)(t))return(0,s.padStart)((0,o.hexToBytes)(t).subarray(0,20),20);if(t instanceof Uint8Array)return(0,s.padStart)(t.subarray(0,20),20)}if("bool"===e)return Boolean(t);if(e.startsWith("bytes")&&"bytes"!==e){const n=(0,i.getByteLength)(e);if("number"==typeof t)return t<0?new Uint8Array:(0,o.numberToBytes)(t).subarray(0,n);if((0,o.isStrictHexString)(t))return(0,o.hexToBytes)(t).subarray(0,n);if(t instanceof Uint8Array)return t.subarray(0,n)}if(e.startsWith("uint")&&"number"==typeof t)return Math.abs(t);if(e.startsWith("int")&&"number"==typeof t){const n=(0,i.getLength)(e);return BigInt.asIntN(n,BigInt(t))}return t}function I(e,t){return t.map((t=>{if("string"==typeof t||"number"==typeof t||"bigint"==typeof t){const n=p(e,t);if(n>=BigInt(0))return(0,s.padStart)((0,o.bigIntToBytes)(n),32);const a=(0,i.getLength)(e),r=BigInt.asIntN(a,n);return(0,o.signedBigIntToBytes)(r,32)}return t}))}function S(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;const n=e.map((({name:e,type:t,value:n})=>{if("address[]"===t)return{name:e,type:"bytes32[]",value:(a=n,a.map((e=>"number"==typeof e?(0,s.padStart)((0,o.numberToBytes)(e),32):(0,o.isStrictHexString)(e)?(0,s.padStart)((0,o.hexToBytes)(e).subarray(0,32),32):e instanceof Uint8Array?(0,s.padStart)(e.subarray(0,32),32):e)))};var a;if(t.startsWith("int")&&(0,i.isArrayType)(t)){const[a,r]=(0,i.getArrayType)(t);return{name:e,type:`bytes32[${null!=r?r:""}]`,value:I(a,n)}}return{name:e,type:t,value:w(t,n)}})),l=n.map((e=>"bytes"!==e.type?e.value:(0,u.legacyToBuffer)(e.value))),d=n.map((e=>{if("function"===e.type)throw new Error('Unsupported or invalid type: "function"');return e.type})),p=e.map((e=>{if(!e.name)throw t;return`${e.type} ${e.name}`}));return(0,a.arrToBufArr)((0,c.keccak256)((0,r.encodePacked)(["bytes32","bytes32"],[(0,c.keccak256)((0,r.encodePacked)(["string[]"],[p],!0)),(0,c.keccak256)((0,r.encodePacked)(d,l,!0))])))}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(l=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:m,encodeType:y,findTypeDependencies:g,hashStruct:b,hashType:v,sanitizeData:_,eip712Hash:function(e,t){d(t,[l.V3,l.V4]);const n=_(e),r=[(0,o.hexToBytes)("1901")];return r.push(A(e,t)),"EIP712Domain"!==n.primaryType&&r.push(b(n.primaryType,n.message,n.types,t)),(0,a.arrToBufArr)((0,c.keccak256)((0,o.concatBytes)(r)))},eip712DomainHash:A},t.typedSignatureHash=function(e){const t=S(e);return(0,o.bytesToHex)(t)},t.signTypedData=function({privateKey:e,data:n,version:r}){if(d(r),(0,u.isNullish)(n))throw new Error("Missing data parameter");if((0,u.isNullish)(e))throw new Error("Missing private key parameter");const i=r===l.V1?S(n):t.TypedDataUtils.eip712Hash(n,r),s=(0,a.ecsign)(i,e);return(0,u.concatSig)((0,a.arrToBufArr)((0,o.bigIntToBytes)(s.v)),s.r,s.s)},t.recoverTypedSignature=function({data:e,signature:n,version:r}){if(d(r),(0,u.isNullish)(e))throw new Error("Missing data parameter");if((0,u.isNullish)(n))throw new Error("Missing signature parameter");const i=r===l.V1?S(e):t.TypedDataUtils.eip712Hash(e,r),s=(0,u.recoverPublicKey)(i,n),c=(0,a.publicToAddress)(s);return(0,o.bytesToHex)(c)}},61854:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;const r=n(98634),i=n(57270);function s(e,t){if(""!==e&&!/^[a-f0-9]+$/iu.test(e))throw new Error(`Expected an unprefixed hex string. Received: ${e}`);if(t<0)throw new Error(`Expected a non-negative integer target length. Received: ${t}`);return String.prototype.padStart.call(e,t,"0")}function o(e){return null==e}t.padWithZeroes=s,t.isNullish=o,t.legacyToBuffer=function(e){return"string"!=typeof e||(0,r.isHexString)(e)?(0,r.toBuffer)(e):a.from(e)},t.concatSig=function(e,t,n){const a=(0,r.fromSigned)(t),o=(0,r.fromSigned)(n),c=(0,r.bufferToInt)(e),u=s((0,r.toUnsigned)(a).toString("hex"),64),l=s((0,r.toUnsigned)(o).toString("hex"),64),d=(0,i.remove0x)((0,i.numberToHex)(c));return(0,i.add0x)(u.concat(l,d))},t.recoverPublicKey=function(e,t){const n=(0,r.fromRpcSig)(t);return(0,r.ecrecover)(e,n.v,n.r,n.s)},t.normalize=function(e){if(!o(e)){if("number"==typeof e){if(e<0)return"0x";const t=(0,i.numberToBytes)(e);e=(0,i.bytesToHex)(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw t+=` received ${typeof e}: ${e}`,new Error(t)}return(0,i.add0x)(e.toLowerCase())}}},45450:(e,t)=>{"use strict";function n(e){if(Array.isArray(e)){const t=[];let a=0;for(let r=0;re.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,n)}function r(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return l(u(e))}function i(e,t){if(e<56)return Uint8Array.from([e+t]);const n=f(e),a=f(t+55+n.length/2);return Uint8Array.from(d(a+n))}function s(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const n=o(y(e));if(t)return n;if(0!==n.remainder.length)throw new Error("invalid RLP: remainder must be zero");return n.data}function o(e){let t,n,i,s,c;const u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,i=128===l?Uint8Array.from([]):a(e,1,t),2===t&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}if(l<=191){if(n=l-182,e.length-1e.length)throw new Error("invalid RLP: total length is larger than the data");for(s=a(e,n,i);s.length;)c=o(s),u.push(c.data),s=c.remainder;return{data:u,remainder:e.slice(i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.RLP=t.utils=t.decode=t.encode=void 0,t.encode=n,t.decode=s;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){let t="";for(let n=0;ne+t.length),0),n=new Uint8Array(t);for(let t=0,a=0;t=2&&"0"===e[0]&&"x"===e[1]}function y(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return m(e)?d((t="string"!=typeof(n=e)?n:m(n)?n.slice(2):n).length%2?`0${t}`:t):h(e);var t,n;if("number"==typeof e||"bigint"==typeof e)return e?d(f(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:u,concatBytes:p,hexToBytes:d,utf8ToBytes:h},t.RLP={encode:n,decode:s}},81633:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;const r=n(45450),i=n(75799),s=n(11325),o=n(74892),c=n(11614),u=n(66299),l=n(9051),d=n(27909),p=BigInt(0);class h{constructor(e=p,t=p,n=u.KECCAK256_RLP,a=u.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=n,this.codeHash=a,this._validate()}static fromAccountData(e){const{nonce:t,balance:n,storageRoot:a,codeHash:r}=e;return new h(void 0!==t?(0,c.bufferToBigInt)((0,c.toBuffer)(t)):void 0,void 0!==n?(0,c.bufferToBigInt)((0,c.toBuffer)(n)):void 0,void 0!==a?(0,c.toBuffer)(a):void 0,void 0!==r?(0,c.toBuffer)(r):void 0)}static fromRlpSerializedAccount(e){const t=(0,c.arrToBufArr)(r.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,n,a,r]=e;return new h((0,c.bufferToBigInt)(t),(0,c.bufferToBigInt)(n),a,r)}_validate(){if(this.nonce=8?p+=n[e].toUpperCase():p+=n[e];return p},t.isValidChecksumAddress=function(e,n){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,n)===e},t.generateAddress=function(e,t){return(0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,c.bufferToBigInt)(t)===BigInt(0)?a.from((0,i.keccak256)(r.RLP.encode((0,c.bufArrToArr)([e,null])))).slice(-20):a.from((0,i.keccak256)(r.RLP.encode((0,c.bufArrToArr)([e,t])))).slice(-20)},t.generateAddress2=function(e,t,n){if((0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,l.assertIsBuffer)(n),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==t.length)throw new Error("Expected salt to be of length 32");const r=(0,i.keccak256)(a.concat([a.from("ff","hex"),e,t,(0,i.keccak256)(n)]));return(0,c.toBuffer)(r).slice(-20)},t.isValidPrivate=function(e){return s.secp256k1.utils.isValidPrivateKey(e)},t.isValidPublic=function(e,t=!1){if((0,l.assertIsBuffer)(e),64===e.length)try{return s.secp256k1.ProjectivePoint.fromHex(a.concat([a.from([4]),e])),!0}catch(e){return!1}if(!t)return!1;try{return s.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}},t.pubToAddress=function(e,t=!1){if((0,l.assertIsBuffer)(e),t&&64!==e.length&&(e=a.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return a.from((0,i.keccak256)(e)).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,l.assertIsBuffer)(e),a.from(s.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,l.assertIsBuffer)(e),64!==e.length&&(e=a.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e},t.zeroAddress=function(){const e=(0,c.zeros)(20);return(0,c.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e},t.accountBodyFromSlim=f;const m=new Uint8Array(0);t.accountBodyToSlim=function(e){const[t,n,a,r]=e;return[t,n,(0,c.arrToBufArr)(a).equals(u.KECCAK256_RLP)?m:a,(0,c.arrToBufArr)(r).equals(u.KECCAK256_NULL)?m:r]},t.accountBodyToRLP=function(e,t=!0){const n=t?f(e):e;return(0,c.arrToBufArr)(r.RLP.encode(n))}},91186:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;const r=n(81633),i=n(11614);class s{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new s((0,i.zeros)(20))}static fromString(e){if(!(0,r.isValidAddress)(e))throw new Error("Invalid address");return new s((0,i.toBuffer)(e))}static fromPublicKey(e){if(!a.isBuffer(e))throw new Error("Public key should be Buffer");const t=(0,r.pubToAddress)(e);return new s(t)}static fromPrivateKey(e){if(!a.isBuffer(e))throw new Error("Private key should be Buffer");const t=(0,r.privateToAddress)(e);return new s(t)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new s((0,r.generateAddress)(e.buf,(0,i.bigIntToBuffer)(t)))}static generate2(e,t,n){if(!a.isBuffer(t))throw new Error("Expected salt to be a Buffer");if(!a.isBuffer(n))throw new Error("Expected initCode to be a Buffer");return new s((0,r.generateAddress2)(e.buf,t,n))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(s.zero())}isPrecompileOrSystemAddress(){const e=(0,i.bufferToBigInt)(this.buf),t=BigInt(0),n=BigInt("0xffff");return e>=t&&e<=n}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return a.from(this.buf)}}t.Address=s},26324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=void 0;const a=n(50046);class r extends a.EventEmitter{emit(e,...t){let[n,a]=t;const r=this;let i=r._events[e]??[];return void 0===a&&"function"==typeof n&&(a=n,n=void 0),"newListener"!==e&&"removeListener"!==e||(n={event:n,fn:a},a=void 0),i=Array.isArray(i)?i:[i],async function(e,t,n){let a;for await(const r of t)try{r.length<2?r.call(e,n):await new Promise(((t,a)=>{r.call(e,n,(e=>{e?a(e):t()}))}))}catch(e){a=e}if(a)throw a}(r,i.slice(),n).then(a).catch(a),r.listenerCount(e)>0}once(e,t){const n=this;let a;if("function"!=typeof t)throw new TypeError("listener must be a function");return a=t.length>=2?function(r,i){n.removeListener(e,a),t(r,i)}:function(r){n.removeListener(e,a),t(r,a)},n.on(e,a),n}first(e,t){let n=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(n)||(this._events[e]=n=[n]),n.unshift(t),this}before(e,t,n){return this.beforeOrAfter(e,t,n)}after(e,t,n){return this.beforeOrAfter(e,t,n,"after")}beforeOrAfter(e,t,n,a){let r,i,s=this._events[e]??[];const o="after"===a?1:0;if("function"!=typeof n)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),i=s.length,r=s.length;r--;)if(s[r]===t){i=r+o;break}return s.splice(i,0,n),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}t.AsyncEventEmitter=r},11614:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;const r=n(9051),i=n(27909);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},t.intToBuffer=function(e){const n=(0,t.intToHex)(e);return a.from((0,i.padToEven)(n.slice(2)),"hex")},t.zeros=function(e){return a.allocUnsafe(e).fill(0)};const s=function(e,n,a){const r=(0,t.zeros)(n);return a?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};function c(e){const n=(0,t.bufferToHex)(e);return"0x"===n?BigInt(0):BigInt(n)}function u(e){return(0,t.toBuffer)("0x"+e.toString(16))}t.unpadBuffer=function(e){return(0,r.assertIsBuffer)(e),o(e)},t.unpadArray=function(e){return(0,r.assertIsArray)(e),o(e)},t.unpadHexString=function(e){return(0,r.assertIsHexString)(e),e=(0,i.stripHexPrefix)(e),"0x"+o(e)},t.toBuffer=function(e){if(null==e)return a.allocUnsafe(0);if(a.isBuffer(e))return a.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return a.from(e);if("string"==typeof e){if(!(0,i.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return a.from((0,i.padToEven)((0,i.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if("bigint"==typeof e){if(e0&&0===n[0])throw new Error(`${t} cannot have leading zeroes, received: ${n.toString("hex")}`)},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):a.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Uint8Array.from(t??[])},t.bigIntToHex=e=>"0x"+e.toString(16),t.bigIntToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)(u(e))},t.intToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)((0,t.intToBuffer)(e))}},66299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;const a=n(1048),r=n(11325);t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=r.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=r.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=a.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=a.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=a.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=a.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16},78813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0,t.hasTerminator=e=>e.length>0&&16===e[e.length-1],t.nibblesToBytes=(e,t)=>{for(let n=0,a=0;a{let n=0;(0,t.hasTerminator)(e)&&(n=1,e=e.subarray(0,e.length-1));const a=new Uint8Array(e.length/2+1);return a[0]=n<<5,1&~e.length||(a[0]|=16,a[0]|=e[0],e=e.subarray(1)),(0,t.nibblesToBytes)(e,a.subarray(1)),a},t.bytesToNibbles=e=>{const t=2*e.length+1,n=new Uint8Array(t);for(let t=0;t{if(0===e.length)return e;let n=(0,t.bytesToNibbles)(e);n[0]<2&&(n=n.subarray(0,n.length-1));const a=2-(1&n[0]);return n.subarray(a)}},9051:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;const r=n(27909);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)},t.assertIsBuffer=function(e){if(!a.isBuffer(e))throw new Error(`This method only supports Buffer but input was: ${e}`)},t.assertIsArray=function(e){if(!Array.isArray(e))throw new Error(`This method only supports number arrays but input was: ${e}`)},t.assertIsString=function(e){if("string"!=typeof e)throw new Error(`This method only supports strings but input was: ${e}`)}},98634:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,r(n(66299),t),r(n(53729),t),r(n(81633),t),r(n(91186),t),r(n(27587),t),r(n(55116),t),r(n(11614),t),r(n(70599),t),r(n(78813),t),r(n(26324),t);var i=n(27909);Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),r(n(68859),t),r(n(83805),t)},27909:(e,t,n)=>{"use strict";var a=n(1048).Buffer;function r(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}function i(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=r,t.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return r(e)?e.slice(2):e},t.padToEven=i,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof e);return a.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,n){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===n?"some":"every"]((t=>e.indexOf(t)>=0))},t.toAscii=function(e){let t="",n=0;const a=e.length;for("0x"===e.substring(0,2)&&(n=2);n0&&e.length!==2+2*t)}},68859:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lock=void 0,t.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((e=>this.promiseResolverQueue.push(e)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}},83805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=t.fetchFromProvider=void 0;const a=n(94220);t.fetchFromProvider=async(e,t)=>(await(0,a.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result,t.getProvider=e=>{if("string"==typeof e)return e;if(void 0!==e?.connection?.url)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},55116:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;const r=n(75799),i=n(11325),s=n(11614),o=n(66299),c=n(9051);function u(e,t){return e===BigInt(0)||e===BigInt(1)?e:void 0===t?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function l(e){return e===BigInt(0)||e===BigInt(1)}t.ecsign=function(e,t,n){const r=i.secp256k1.sign(e,t),s=r.toCompactRawBytes();return{r:a.from(s.slice(0,32)),s:a.from(s.slice(32,64)),v:void 0===n?BigInt(r.recovery+27):BigInt(r.recovery+35)+BigInt(n)*BigInt(2)}},t.ecrecover=function(e,t,n,r,o){const c=a.concat([(0,s.setLengthLeft)(n,32),(0,s.setLengthLeft)(r,32)],64),d=u(t,o);if(!l(d))throw new Error("Invalid signature v value");const p=i.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(d)).recoverPublicKey(e);return a.from(p.toRawBytes(!1).slice(1))},t.toRpcSig=function(e,t,n,r){if(!l(u(e,r)))throw new Error("Invalid signature v value");return(0,s.bufferToHex)(a.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(n,32),(0,s.toBuffer)(e)]))},t.toCompactSig=function(e,t,n,r){if(!l(u(e,r)))throw new Error("Invalid signature v value");let i=n;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(i=a.from(n),i[0]|=128),(0,s.bufferToHex)(a.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(i,32)]))},t.fromRpcSig=function(e){const t=(0,s.toBuffer)(e);let n,a,r;if(t.length>=65)n=t.slice(0,32),a=t.slice(32,64),r=(0,s.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");n=t.slice(0,32),a=t.slice(32,64),r=BigInt((0,s.bufferToInt)(t.slice(32,33))>>7),a[0]&=127}return r<27&&(r+=BigInt(27)),{v:r,r:n,s:a}},t.isValidSignature=function(e,t,n,a=!0,r){if(32!==t.length||32!==n.length)return!1;if(!l(u(e,r)))return!1;const i=(0,s.bufferToBigInt)(t),c=(0,s.bufferToBigInt)(n);return!(i===BigInt(0)||i>=o.SECP256K1_ORDER||c===BigInt(0)||c>=o.SECP256K1_ORDER||a&&c>=o.SECP256K1_ORDER_DIV_2)},t.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);const t=a.from(`Ethereum Signed Message:\n${e.length}`,"utf-8");return a.from((0,r.keccak256)(a.concat([t,e])))}},70599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;const a=n(11614),r=n(27909);var i;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(i=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0===e)return;if("string"==typeof e&&!(0,r.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const n=(0,a.toBuffer)(e);switch(t){case i.Buffer:return n;case i.BigInt:return(0,a.bufferToBigInt)(n);case i.Number:{const e=(0,a.bufferToBigInt)(n);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case i.PrefixedHexString:return(0,a.bufferToHex)(n);default:throw new Error("unknown outputType")}}},53729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},27587:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;const r=n(91186),i=n(11614),s=n(70599);class o{constructor(e,t,n,a){this.index=e,this.validatorIndex=t,this.address=n,this.amount=a}static fromWithdrawalData(e){const{index:t,validatorIndex:n,address:a,amount:i}=e,c=(0,s.toType)(t,s.TypeOutput.BigInt),u=(0,s.toType)(n,s.TypeOutput.BigInt),l=new r.Address((0,s.toType)(a,s.TypeOutput.Buffer)),d=(0,s.toType)(i,s.TypeOutput.BigInt);return new o(c,u,l,d)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,n,a,r]=e;return o.fromWithdrawalData({index:t,validatorIndex:n,address:a,amount:r})}static toBufferArray(e){const{index:t,validatorIndex:n,address:i,amount:o}=e,c=(0,s.toType)(t,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(t,s.TypeOutput.Buffer),u=(0,s.toType)(n,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(n,s.TypeOutput.Buffer);let l;return l=i instanceof r.Address?i.buf:(0,s.toType)(i,s.TypeOutput.Buffer),[c,u,l,(0,s.toType)(o,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(o,s.TypeOutput.Buffer)]}raw(){return o.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,i.bigIntToHex)(this.amount)}}}t.Withdrawal=o},75799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const a=n(70448),r=n(74892);t.keccak224=(0,r.wrapHash)(a.keccak_224),t.keccak256=(()=>{const e=(0,r.wrapHash)(a.keccak_256);return e.create=a.keccak_256.create,e})(),t.keccak384=(0,r.wrapHash)(a.keccak_384),t.keccak512=(0,r.wrapHash)(a.keccak_512)},11325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var a=n(34207);Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return a.secp256k1}})},74892:function(e,t,n){"use strict";e=n.nmd(e);var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,i.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n(r.default.bytes(t),e(t))};const r=a(n(98460)),i=n(49074),s=r.default.bool;t.assertBool=s;const o=r.default.bytes;t.assertBytes=o;var c=n(49074);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.crypto=(()=>{const t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,n="function"==typeof e.require&&e.require.bind(e);return{node:n&&!t?n("crypto"):void 0,web:t}})()},72715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=s,t.createCurve=function(e,t){const n=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...n(t),create:n})};const a=n(74500),r=n(49074),i=n(47758);function s(e){return{hash:e,hmac:(t,...n)=>(0,a.hmac)(e,t,(0,r.concatBytes)(...n)),randomBytes:r.randomBytes}}},17389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},a=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let a=e.ZERO,r=t;for(;n>i;)n&s&&(a=a.add(r)),r=r.double(),n>>=s;return a},precomputeWindow(e,t){const{windows:n,windowSize:r}=a(t),i=[];let s=e,o=s;for(let e=0;e>=h,a>c&&(a-=p,i+=s);const o=t,f=t+Math.abs(a)-1,m=e%2!=0,y=a<0;0===a?l=l.add(n(m,r[o])):u=u.add(n(y,r[f]))}return{p:u,f:l}},wNAFCached(e,t,n,a){const r=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,r),1!==r&&t.set(e,a(i))),this.wNAF(r,i,n)}}},t.validateBasic=function(e){return(0,a.validateField)(e.Fp),(0,r.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,a.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const a=n(14240),r=n(93563),i=BigInt(0),s=BigInt(1)},93386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=l,t.hash_to_field=d,t.isogenyMap=function(e,t){const n=t.map((e=>Array.from(e).reverse()));return(t,a)=>{const[r,i,s,o]=n.map((n=>n.reduce(((n,a)=>e.add(e.mul(n,t),a)))));return t=e.div(r,i),a=e.mul(a,e.div(s,o)),{x:t,y:a}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(a,r){const i=d(a,2,{...n,DST:n.DST,...r}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(a,r){const i=d(a,1,{...n,DST:n.encodeDST,...r}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s},mapToCurve(n){if(!Array.isArray(n))throw new Error("mapToCurve: expected array of bigints");for(const e of n)if("bigint"!=typeof e)throw new Error(`mapToCurve: expected array of bigints, got ${e} in array`);const a=e.fromAffine(t(n)).clearCofactor();return a.assertValidity(),a}}};const a=n(14240),r=n(93563),i=r.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let a=t-1;a>=0;a--)n[a]=255&e,e>>>=8;return new Uint8Array(n)}function o(e,t){const n=new Uint8Array(e.length);for(let a=0;a255&&(t=a((0,r.concatBytes)((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:u}=a,l=Math.ceil(n/i);if(l>255)throw new Error("Invalid xmd length");const d=(0,r.concatBytes)(t,s(t.length,1)),p=s(0,u),h=s(n,2),f=new Array(l),m=a((0,r.concatBytes)(p,e,h,s(0,1),d));f[0]=a((0,r.concatBytes)(m,s(1,1),d));for(let e=1;e<=l;e++){const t=[o(m,f[e-1]),s(e+1,1),d];f[e]=a((0,r.concatBytes)(...t))}return(0,r.concatBytes)(...f).slice(0,n)}function l(e,t,n,a,i){if((0,r.abytes)(e),(0,r.abytes)(t),c(n),t.length>255){const e=Math.ceil(2*a/8);t=i.create({dkLen:e}).update((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,r.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:o,m:d,hash:p,expand:h,DST:f}=n;(0,r.abytes)(e),c(t);const m="string"==typeof f?(0,r.utf8ToBytes)(f):f,y=s.toString(2).length,g=Math.ceil((y+o)/8),b=t*d*g;let v;if("xmd"===h)v=u(e,m,b,p);else if("xof"===h)v=l(e,m,b,o,p);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const _=new Array(t);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=p,t.pow2=function(e,t,n){let a=e;for(;t-- >r;)a*=a,a%=n;return a},t.invert=h,t.tonelliShanks=f,t.FpSqrt=m,t.validateField=function(e){const t=y.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,a.validateObject)(e,t)},t.FpPow=g,t.FpInvertBatch=b,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?h(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-i)/s;return n=>{const a=e.pow(n,t);return e.eql(a,e.ZERO)||e.eql(a,e.ONE)}},t.nLength=v,t.Field=function(e,t,n=!1,s={}){if(e<=r)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=m(e),l=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,a.bitMask)(o),ZERO:r,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return r<=t&&te===r,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>g(l,e,t),div:(t,n)=>d(t*h(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,a.numberToBytesLE)(e,c):(0,a.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return n?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const r=(e=(0,a.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||r1024)throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${r}`);return d(n?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=_,t.getMinHashLength=A,t.mapHashToField=function(e,t,n=!1){const r=e.length,s=_(t),o=A(t);if(r<16||r1024)throw new Error(`expected ${o}-1024 bytes of input, got ${r}`);const c=d(n?(0,a.bytesToNumberBE)(e):(0,a.bytesToNumberLE)(e),t-i)+i;return n?(0,a.numberToBytesLE)(c,s):(0,a.numberToBytesBE)(c,s)};const a=n(93563),r=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);function d(e,t){const n=e%t;return n>=r?n:t+n}function p(e,t,n){if(n<=r||t 0");if(n===i)return r;let a=i;for(;t>r;)t&i&&(a=a*e%n),e=e*e%n,t>>=i;return a}function h(e,t){if(e===r||t<=r)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=d(e,t),a=t,s=r,o=i,c=i,u=r;for(;n!==r;){const e=a/n,t=a%n,r=s-c*e,i=o-u*e;a=n,n=t,s=c,o=u,c=r,u=i}if(a!==i)throw new Error("invert: does not exist");return d(s,t)}function f(e){const t=(e-i)/s;let n,a,o;for(n=e-i,a=0;n%s===r;n/=s,a++);for(o=s;o(d(e,t)&i)===i;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(e,t,n){if(n 0");if(n===r)return e.ONE;if(n===i)return t;let a=e.ONE,s=t;for(;n>r;)n&i&&(a=e.mul(a,s)),s=e.sqr(s),n>>=i;return a}function b(e,t){const n=new Array(t.length),a=t.reduce(((t,a,r)=>e.is0(a)?t:(n[r]=t,e.mul(t,a))),e.ONE),r=e.inv(a);return t.reduceRight(((t,a,r)=>e.is0(a)?t:(n[r]=e.mul(t,n[r]),e.mul(t,a))),r),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function _(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=_(e);return t+Math.ceil(t/2)}},93563:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitMask=void 0,t.isBytes=i,t.abytes=s,t.bytesToHex=c,t.numberToHexUnpadded=u,t.hexToNumber=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return l(c(e))},t.bytesToNumberLE=function(e){return s(e),l(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=f,t.numberToBytesLE=function(e,t){return f(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(u(e))},t.ensureBytes=function(e,t,n){let a;if("string"==typeof t)try{a=h(t)}catch(n){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);a=Uint8Array.from(t)}const r=a.length;if("number"==typeof n&&r!==n)throw new Error(`${e} expected ${n} bytes, got ${r}`);return a},t.concatBytes=m,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let a=0;an;e>>=a,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&a},t.bitSet=function(e,t,r){return e|(r?a:n)<{a.fill(1),r.fill(0),i=0},o=(...e)=>n(r,a,...e),c=(e=y())=>{r=o(g([0]),e),a=o(),0!==e.length&&(r=o(g([1]),e),a=o())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e{let n;for(s(),c(e);!(n=t(u()));)c();return s(),n}},t.validateObject=function(e,t,n={}){const a=(t,n,a)=>{const r=b[n];if("function"!=typeof r)throw new Error(`Invalid validator "${n}", expected function`);const i=e[t];if(!(a&&void 0===i||r(i,e)))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${n}`)};for(const[e,n]of Object.entries(t))a(e,n,!1);for(const[e,t]of Object.entries(n))a(e,t,!0);return e};const n=BigInt(0),a=BigInt(1),r=BigInt(2);function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e){if(!i(e))throw new Error("Uint8Array expected")}const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){s(e);let t="";for(let n=0;n=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(n);for(let t=0,r=0;t(r<new Uint8Array(e),g=e=>Uint8Array.from(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},47758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=f,t.weierstrass=function(e){const n=function(e){const t=(0,a.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=n,d=o.BYTES+1,p=2*o.BYTES+1;function h(e){return r.mod(e,c)}function m(e){return r.invert(e,c)}const{ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:b,isWithinCurveOrder:v}=f({...n,toBytes(e,t,n){const a=t.toAffine(),r=o.toBytes(a.x),s=i.concatBytes;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),r):s(Uint8Array.from([4]),r,o.toBytes(a.y))},fromBytes(e){const t=e.length,n=e[0],a=e.subarray(1);if(t!==d||2!==n&&3!==n){if(t===p&&4===n)return{x:o.fromBytes(a.subarray(0,o.BYTES)),y:o.fromBytes(a.subarray(o.BYTES,2*o.BYTES))};throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${p} uncompressed bytes`)}{const e=i.bytesToNumberBE(a);if(!(u<(r=e)&&ri.bytesToHex(i.numberToBytesBE(e,n.nByteLength));function A(e){return e>c>>l}const w=(e,t,n)=>i.bytesToNumberBE(e.slice(t,n));class I{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,s.ensureBytes)("compactSignature",e,2*t),new I(w(e,0,t),w(e,t,2*t))}static fromDER(e){const{r:n,s:a}=t.DER.toSig((0,s.ensureBytes)("DER",e));return new I(n,a)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new I(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:a,recovery:r}=this,i=k((0,s.ensureBytes)("msgHash",e));if(null==r||![0,1,2,3].includes(r))throw new Error("recovery id invalid");const c=2===r||3===r?t+n.n:t;if(c>=o.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&r?"03":"02",l=y.fromHex(u+_(c)),d=m(c),p=h(-i*d),f=h(a*d),g=y.BASE.multiplyAndAddUnsafe(l,p,f);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new I(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return _(this.r)+_(this.s)}}const S={isValidPrivateKey(e){try{return g(e),!0}catch(e){return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute:(e=8,t=y.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function x(e){const t=i.isBytes(e),n="string"==typeof e,a=(t||n)&&e.length;return t?a===d||a===p:n?a===2*d||a===2*p:e instanceof y}const C=n.bits2int||function(e){const t=i.bytesToNumberBE(e),a=8*e.length-n.nBitLength;return a>0?t>>BigInt(a):t},k=n.bits2int_modN||function(e){return h(C(e))},T=i.bitMask(n.nBitLength);function E(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&ee in a)))throw new Error("sign() legacy options not supported");const{hash:r,randomBytes:c}=n;let{lowS:d,prehash:p,extraEntropy:f}=a;null==d&&(d=!0),e=(0,s.ensureBytes)("msgHash",e),p&&(e=(0,s.ensureBytes)("prehashed msgHash",r(e)));const b=k(e),_=g(t),w=[E(_),E(b)];if(null!=f&&!1!==f){const e=!0===f?c(o.BYTES):f;w.push((0,s.ensureBytes)("extraEntropy",e))}const S=i.concatBytes(...w),x=b;return{seed:S,k2sig:function(e){const t=C(e);if(!v(t))return;const n=m(t),a=y.BASE.multiply(t).toAffine(),r=h(a.x);if(r===u)return;const i=h(n*h(x+r*_));if(i===u)return;let s=(a.x===r?0:2)|Number(a.y&l),o=i;return d&&A(i)&&(o=function(e){return A(e)?h(-e):e}(i),s^=1),new I(r,o,s)}}}(e,t,a),d=n;return i.createHmacDrbg(d.hash.outputLen,d.nByteLength,d.hmac)(r,c)},verify:function(e,a,r,o=O){const c=e;if(a=(0,s.ensureBytes)("msgHash",a),r=(0,s.ensureBytes)("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:l}=o;let d,p;try{if("string"==typeof c||i.isBytes(c))try{d=I.fromDER(c)}catch(e){if(!(e instanceof t.DER.Err))throw e;d=I.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new I(e,t)}}p=y.fromHex(r)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&d.hasHighS())return!1;l&&(a=n.hash(a));const{r:f,s:g}=d,b=k(a),v=m(g),_=h(b*v),A=h(f*v),w=y.BASE.multiplyAndAddUnsafe(p,_,A)?.toAffine();return!!w&&h(w.x)===f},ProjectivePoint:y,Signature:I,utils:S}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=m(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return a=>{let r,i,s,o,c,u,l,d;r=e.sqr(a),r=e.mul(r,t.Z),i=e.sqr(r),i=e.add(i,r),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),u=e.sqr(o),c=e.mul(u,t.A),i=e.add(i,c),i=e.mul(i,s),u=e.mul(u,o),c=e.mul(u,t.B),i=e.add(i,c),l=e.mul(r,s);const{isValid:p,value:h}=n(i,u);d=e.mul(r,a),d=e.mul(d,h),l=e.cmov(l,s,p),d=e.cmov(d,h,p);const f=e.isOdd(a)===e.isOdd(d);return d=e.cmov(e.neg(d),d,f),l=e.div(l,o),{x:l,y:d}}};const a=n(17389),r=n(14240),i=n(93563),s=n(93563),{bytesToNumberBE:o,hexToBytes:c}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const a=e[1],r=e.subarray(2,a+2);if(!a||r.length!==a)throw new n("Invalid signature integer: wrong length");if(128&r[0])throw new n("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:o(r),l:e.subarray(a+2)}},toSig(e){const{Err:n}=t.DER,a="string"==typeof e?c(e):e;i.abytes(a);let r=a.length;if(r<2||48!=a[0])throw new n("Invalid signature tag");if(a[1]!==r-2)throw new n("Invalid signature: incorrect length");const{d:s,l:o}=t.DER._parseInt(a.subarray(2)),{d:u,l}=t.DER._parseInt(o);if(l.length)throw new n("Invalid signature: left bytes after parsing");return{r:s,s:u}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},a=t(n(e.s)),r=t(n(e.r)),i=a.length/2,s=r.length/2,o=n(i),c=n(s);return`30${n(s+i+4)}02${c}${r}02${o}${a}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),p=BigInt(3),h=BigInt(4);function f(e){const t=function(e){const t=(0,a.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:s}=t;if(n){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,o=t.toBytes||((e,t,a)=>{const r=t.toAffine();return i.concatBytes(Uint8Array.from([4]),n.toBytes(r.x),n.toBytes(r.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function d(e){const{a,b:r}=t,i=n.sqr(e),s=n.mul(i,e);return n.add(n.add(s,n.mul(e,a)),r)}if(!n.eql(n.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&un.eql(e,n.ZERO);return r(t)&&r(a)?b.ZERO:new b(t,a,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,s.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,y.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:a}=this.toAffine();if(!n.isValid(e)||!n.isValid(a))throw new Error("bad point: x or y not FE");const r=n.sqr(a),i=d(e);if(!n.eql(r,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){g(e);const{px:t,py:a,pz:r}=this,{px:i,py:s,pz:o}=e,c=n.eql(n.mul(t,o),n.mul(i,r)),u=n.eql(n.mul(a,o),n.mul(s,r));return c&&u}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:a}=t,r=n.mul(a,p),{px:i,py:s,pz:o}=this;let c=n.ZERO,u=n.ZERO,l=n.ZERO,d=n.mul(i,i),h=n.mul(s,s),f=n.mul(o,o),m=n.mul(i,s);return m=n.add(m,m),l=n.mul(i,o),l=n.add(l,l),c=n.mul(e,l),u=n.mul(r,f),u=n.add(c,u),c=n.sub(h,u),u=n.add(h,u),u=n.mul(c,u),c=n.mul(m,c),l=n.mul(r,l),f=n.mul(e,f),m=n.sub(d,f),m=n.mul(e,m),m=n.add(m,l),l=n.add(d,d),d=n.add(l,d),d=n.add(d,f),d=n.mul(d,m),u=n.add(u,d),f=n.mul(s,o),f=n.add(f,f),d=n.mul(f,m),c=n.sub(c,d),l=n.mul(f,h),l=n.add(l,l),l=n.add(l,l),new b(c,u,l)}add(e){g(e);const{px:a,py:r,pz:i}=this,{px:s,py:o,pz:c}=e;let u=n.ZERO,l=n.ZERO,d=n.ZERO;const h=t.a,f=n.mul(t.b,p);let m=n.mul(a,s),y=n.mul(r,o),v=n.mul(i,c),_=n.add(a,r),A=n.add(s,o);_=n.mul(_,A),A=n.add(m,y),_=n.sub(_,A),A=n.add(a,i);let w=n.add(s,c);return A=n.mul(A,w),w=n.add(m,v),A=n.sub(A,w),w=n.add(r,i),u=n.add(o,c),w=n.mul(w,u),u=n.add(y,v),w=n.sub(w,u),d=n.mul(h,A),u=n.mul(f,v),d=n.add(u,d),u=n.sub(y,d),d=n.add(y,d),l=n.mul(u,d),y=n.add(m,m),y=n.add(y,m),v=n.mul(h,v),A=n.mul(f,A),y=n.add(y,v),v=n.sub(m,v),v=n.mul(h,v),A=n.add(A,v),m=n.mul(y,A),l=n.add(l,m),m=n.mul(w,A),u=n.mul(_,u),u=n.sub(u,m),m=n.mul(_,y),d=n.mul(w,d),d=n.add(d,m),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return _.wNAFCached(this,y,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}))}multiplyUnsafe(e){const a=b.ZERO;if(e===u)return a;if(f(e),e===l)return this;const{endo:r}=t;if(!r)return _.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=r.splitScalar(e),d=a,p=a,h=this;for(;s>u||c>u;)s&l&&(d=d.add(h)),c&l&&(p=p.add(h)),h=h.double(),s>>=l,c>>=l;return i&&(d=d.negate()),o&&(p=p.negate()),p=new b(n.mul(p.px,r.beta),p.py,p.pz),d.add(p)}multiply(e){f(e);let a,r,i=e;const{endo:s}=t;if(s){const{k1neg:e,k1:t,k2neg:o,k2:c}=s.splitScalar(i);let{p:u,f:l}=this.wNAF(t),{p:d,f:p}=this.wNAF(c);u=_.constTimeNegate(e,u),d=_.constTimeNegate(o,d),d=new b(n.mul(d.px,s.beta),d.py,d.pz),a=u.add(d),r=l.add(p)}else{const{p:e,f:t}=this.wNAF(i);a=e,r=t}return b.normalizeZ([a,r])[0]}multiplyAndAddUnsafe(e,t,n){const a=b.BASE,r=(e,t)=>t!==u&&t!==l&&e.equals(a)?e.multiply(t):e.multiplyUnsafe(t),i=r(this,t).add(r(e,n));return i.is0()?void 0:i}toAffine(e){const{px:t,py:a,pz:r}=this,i=this.is0();null==e&&(e=i?n.ONE:n.inv(r));const s=n.mul(t,e),o=n.mul(a,e),c=n.mul(r,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw new Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===l)return!0;if(n)return n(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===l?this:n?n(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(b,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,_=(0,a.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:h}}function m(e,t){const n=e.ORDER;let a=u;for(let e=n-l;e%d===u;e/=d)a+=l;const r=a,i=d<{let a=y,i=e.pow(n,f),s=e.sqr(i);s=e.mul(s,n);let o=e.mul(t,s);o=e.pow(o,c),o=e.mul(o,i),i=e.mul(o,n),s=e.mul(o,t);let u=e.mul(s,i);o=e.pow(u,m);let p=e.eql(o,e.ONE);i=e.mul(s,g),o=e.mul(u,a),s=e.cmov(i,s,p),u=e.cmov(o,u,p);for(let t=r;t>l;t--){let n=t-d;n=d<{let i=e.sqr(r);const s=e.mul(t,r);i=e.mul(i,s);let o=e.pow(i,n);o=e.mul(o,s);const c=e.mul(o,a),u=e.mul(e.sqr(o),r),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,o,l)}}}return b}},34207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const a=n(79688),r=n(49074),i=n(72715),s=n(93386),o=n(14240),c=n(93563),u=n(47758),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),h=BigInt(2),f=(e,t)=>(e+t/h)/t;function m(e){const t=l,n=BigInt(3),a=BigInt(6),r=BigInt(11),i=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,p=d*d*e%t,f=(0,o.pow2)(p,n,t)*p%t,m=(0,o.pow2)(f,n,t)*p%t,g=(0,o.pow2)(m,h,t)*d%t,b=(0,o.pow2)(g,r,t)*g%t,v=(0,o.pow2)(b,i,t)*b%t,_=(0,o.pow2)(v,c,t)*v%t,A=(0,o.pow2)(_,u,t)*_%t,w=(0,o.pow2)(A,c,t)*v%t,I=(0,o.pow2)(w,n,t)*p%t,S=(0,o.pow2)(I,s,t)*b%t,x=(0,o.pow2)(S,a,t)*d%t,C=(0,o.pow2)(x,h,t);if(!y.eql(y.sqr(C),e))throw new Error("Cannot find square root");return C}const y=(0,o.Field)(l,void 0,void 0,{sqrt:m});t.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),c=f(i*e,t),u=f(-a*e,t);let l=(0,o.mod)(e-c*n-u*r,t),h=(0,o.mod)(-c*a-u*i,t);const m=l>s,y=h>s;if(m&&(l=t-l),y&&(h=t-h),l>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:m,k1:l,k2neg:y,k2:h}}}},a.sha256);const g=BigInt(0),b=e=>"bigint"==typeof e&&g"bigint"==typeof e&&ge.charCodeAt(0))));n=(0,c.concatBytes)(t,t),_[e]=n}return(0,a.sha256)((0,c.concatBytes)(n,...t))}const w=e=>e.toRawBytes(!0).slice(1),I=e=>(0,c.numberToBytesBE)(e,32),S=e=>(0,o.mod)(e,l),x=e=>(0,o.mod)(e,d),C=t.secp256k1.ProjectivePoint,k=(e,t,n)=>C.BASE.multiplyAndAddUnsafe(e,t,n);function T(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),a=C.fromPrivateKey(n);return{scalar:a.hasEvenY()?n:x(-n),bytes:w(a)}}function E(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=S(e*e);let n=m(S(t*e+BigInt(7)));n%h!==g&&(n=S(-n));const a=new C(e,n,p);return a.assertValidity(),a}function P(...e){return x((0,c.bytesToNumberBE)(A("BIP0340/challenge",...e)))}function O(e,t,n){const a=(0,c.ensureBytes)("signature",e,64),r=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",n,32);try{const e=E((0,c.bytesToNumberBE)(i)),t=(0,c.bytesToNumberBE)(a.subarray(0,32));if(!b(t))return!1;const n=(0,c.bytesToNumberBE)(a.subarray(32,64));if(!v(n))return!1;const s=P(I(t),w(e),r),o=k(e,n,x(-s));return!(!o||!o.hasEvenY()||o.toAffine().x!==t)}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return T(e).bytes},sign:function(e,t,n=(0,r.randomBytes)(32)){const a=(0,c.ensureBytes)("message",e),{bytes:i,scalar:s}=T(t),o=(0,c.ensureBytes)("auxRand",n,32),u=I(s^(0,c.bytesToNumberBE)(A("BIP0340/aux",o))),l=A("BIP0340/nonce",u,i,a),d=x((0,c.bytesToNumberBE)(l));if(d===g)throw new Error("sign failed: k is zero");const{bytes:p,scalar:h}=T(d),f=P(p,i,a),m=new Uint8Array(64);if(m.set(p,0),m.set(I(x(h+f*s)),32),!O(m,a,i))throw new Error("sign: Invalid signature produced");return m},verify:O,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:E,pointToBytes:w,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:A,mod:o.mod}};const B=(()=>(0,s.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),R=(()=>(0,u.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}))(),N=(()=>(0,s.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=R(y.create(e[0]));return B(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:a.sha256}))();t.hashToCurve=N.hashToCurve,t.encodeToCurve=N.encodeToCurve},65633:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58803);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a(r).default}})},58803:function(e,t,n){"use strict";var a,r,i,s,o=n(1048).Buffer,c=this&&this.__classPrivateFieldSet||function(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n},u=this&&this.__classPrivateFieldGet||function(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const d=n(39276),p=n(64291),h=n(95844),f=n(16008),m=l(n(22644)),y="Simple Key Pair";class g{constructor(e=[]){a.add(this),r.set(this,void 0),this.type=y,c(this,r,[],"f"),this.deserialize(e).catch((e=>{throw new Error(`Problem deserializing SimpleKeyring ${e.message}`)}))}async serialize(){return u(this,r,"f").map((e=>e.privateKey.toString("hex")))}async deserialize(e=[]){c(this,r,e.map((e=>{const t=(0,d.stripHexPrefix)(e),n=o.from(t,"hex");return{privateKey:n,publicKey:(0,d.privateToPublic)(n)}})),"f")}async addAccounts(e=1){const t=[];for(let n=0;n(0,h.add0x)((0,d.bufferToHex)((0,d.publicToAddress)(e)))))}async getAccounts(){return u(this,r,"f").map((({publicKey:e})=>(0,h.add0x)((0,d.bufferToHex)((0,d.publicToAddress)(e)))))}async signTransaction(e,t,n={}){const r=u(this,a,"m",i).call(this,e,n),s=t.sign(r);return void 0===s?t:s}async signMessage(e,t,n={withAppKeyOrigin:"",validateMessage:!0}){const r=(0,d.stripHexPrefix)(t);if(n.validateMessage&&(0===r.length||!r.match(/^[a-fA-F0-9]*$/u)))throw new Error("Cannot sign invalid message");const s=u(this,a,"m",i).call(this,e,n),c=(0,d.ecsign)(o.from(r,"hex"),s);return(0,p.concatSig)((0,d.toBuffer)(c.v),c.r,c.s)}async signPersonalMessage(e,t,n={withAppKeyOrigin:""}){const r=u(this,a,"m",i).call(this,e,n);return(0,p.personalSign)({privateKey:r,data:t})}async decryptMessage(e,t){const n=u(this,a,"m",s).call(this,e).privateKey.toString("hex");return(0,p.decrypt)({privateKey:n,encryptedData:t})}async signTypedData(e,t,n={version:p.SignTypedDataVersion.V1}){let r=p.SignTypedDataVersion.V1;n.version&&function(e){return e in p.SignTypedDataVersion}(n.version)&&(r=p.SignTypedDataVersion[n.version]);const s=u(this,a,"m",i).call(this,e,n);return(0,p.signTypedData)({privateKey:s,data:t,version:r})}async getEncryptionPublicKey(e,t){const n=u(this,a,"m",i).call(this,e,t);return(0,p.getEncryptionPublicKey)(n.toString("hex"))}async getAppKeyAddress(e,t){if(!t||"string"!=typeof t)throw new Error("'origin' must be a non-empty string");const n=u(this,a,"m",s).call(this,e,{withAppKeyOrigin:t});return(0,h.add0x)((0,d.bufferToHex)((0,d.publicToAddress)(n.publicKey)))}async exportAccount(e,t={withAppKeyOrigin:""}){return u(this,a,"m",s).call(this,e,t).privateKey.toString("hex")}removeAccount(e){if(!u(this,r,"f").map((({publicKey:e})=>(0,d.bufferToHex)((0,d.publicToAddress)(e)).toLowerCase())).includes(e.toLowerCase()))throw new Error(`Address ${e} not found in this keyring`);c(this,r,u(this,r,"f").filter((({publicKey:t})=>(0,d.bufferToHex)((0,d.publicToAddress)(t)).toLowerCase()!==e.toLowerCase())),"f")}}function b(){const e=(0,m.default)(32);if(!(0,d.isValidPrivate)(e))throw new Error("Private key does not satisfy the curve requirements (ie. it is invalid)");return e}t.default=g,r=new WeakMap,a=new WeakSet,i=function(e,t={withAppKeyOrigin:""}){if(!e)throw new Error("Must specify address.");return u(this,a,"m",s).call(this,e,t).privateKey},s=function(e,t={}){const n=(0,p.normalize)(e);let a=u(this,r,"f").find((({publicKey:e})=>(0,d.bufferToHex)((0,d.publicToAddress)(e))===n));if(!a)throw new Error("Simple Keyring - Unable to find matching address.");if(t.withAppKeyOrigin){const{privateKey:e}=a,n=o.from(t.withAppKeyOrigin,"utf8"),r=o.concat([e,n]),i=(0,d.arrToBufArr)((0,f.keccak256)(r));a={privateKey:i,publicKey:(0,d.privateToPublic)(i)}}return a},g.type=y},17212:(e,t)=>{"use strict";function n(e){if(Array.isArray(e)){const t=[];let a=0;for(let r=0;re.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,n)}function r(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return l(u(e))}function i(e,t){if(e<56)return Uint8Array.from([e+t]);const n=f(e),a=f(t+55+n.length/2);return Uint8Array.from(d(a+n))}function s(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const n=o(y(e));if(t)return n;if(0!==n.remainder.length)throw new Error("invalid RLP: remainder must be zero");return n.data}function o(e){let t,n,i,s,c;const u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,i=128===l?Uint8Array.from([]):a(e,1,t),2===t&&i[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:i,remainder:e.slice(t)}}if(l<=191){if(n=l-182,e.length-1e.length)throw new Error("invalid RLP: total length is larger than the data");for(s=a(e,n,i);s.length;)c=o(s),u.push(c.data),s=c.remainder;return{data:u,remainder:e.slice(i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.RLP=t.utils=t.decode=t.encode=void 0,t.encode=n,t.decode=s;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function u(e){let t="";for(let n=0;ne+t.length),0),n=new Uint8Array(t);for(let t=0,a=0;t=2&&"0"===e[0]&&"x"===e[1]}function y(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return m(e)?d((t="string"!=typeof(n=e)?n:m(n)?n.slice(2):n).length%2?`0${t}`:t):h(e);var t,n;if("number"==typeof e||"bigint"==typeof e)return e?d(f(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:u,concatBytes:p,hexToBytes:d,utf8ToBytes:h},t.RLP={encode:n,decode:s}},41519:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;const r=n(17212),i=n(14189),s=n(6787),o=n(69922),c=n(34615),u=n(38129),l=n(33065),d=n(87323),p=BigInt(0);class h{constructor(e=p,t=p,n=u.KECCAK256_RLP,a=u.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=n,this.codeHash=a,this._validate()}static fromAccountData(e){const{nonce:t,balance:n,storageRoot:a,codeHash:r}=e;return new h(void 0!==t?(0,c.bufferToBigInt)((0,c.toBuffer)(t)):void 0,void 0!==n?(0,c.bufferToBigInt)((0,c.toBuffer)(n)):void 0,void 0!==a?(0,c.toBuffer)(a):void 0,void 0!==r?(0,c.toBuffer)(r):void 0)}static fromRlpSerializedAccount(e){const t=(0,c.arrToBufArr)(r.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,n,a,r]=e;return new h((0,c.bufferToBigInt)(t),(0,c.bufferToBigInt)(n),a,r)}_validate(){if(this.nonce=8?p+=n[e].toUpperCase():p+=n[e];return p},t.isValidChecksumAddress=function(e,n){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,n)===e},t.generateAddress=function(e,t){return(0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,c.bufferToBigInt)(t)===BigInt(0)?a.from((0,i.keccak256)(r.RLP.encode((0,c.bufArrToArr)([e,null])))).slice(-20):a.from((0,i.keccak256)(r.RLP.encode((0,c.bufArrToArr)([e,t])))).slice(-20)},t.generateAddress2=function(e,t,n){if((0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,l.assertIsBuffer)(n),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==t.length)throw new Error("Expected salt to be of length 32");const r=(0,i.keccak256)(a.concat([a.from("ff","hex"),e,t,(0,i.keccak256)(n)]));return(0,c.toBuffer)(r).slice(-20)},t.isValidPrivate=function(e){return s.secp256k1.utils.isValidPrivateKey(e)},t.isValidPublic=function(e,t=!1){if((0,l.assertIsBuffer)(e),64===e.length)try{return s.secp256k1.ProjectivePoint.fromHex(a.concat([a.from([4]),e])),!0}catch(e){return!1}if(!t)return!1;try{return s.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}},t.pubToAddress=function(e,t=!1){if((0,l.assertIsBuffer)(e),t&&64!==e.length&&(e=a.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return a.from((0,i.keccak256)(e)).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,l.assertIsBuffer)(e),a.from(s.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,l.assertIsBuffer)(e),64!==e.length&&(e=a.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e},t.zeroAddress=function(){const e=(0,c.zeros)(20);return(0,c.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e},t.accountBodyFromSlim=f;const m=new Uint8Array(0);t.accountBodyToSlim=function(e){const[t,n,a,r]=e;return[t,n,(0,c.arrToBufArr)(a).equals(u.KECCAK256_RLP)?m:a,(0,c.arrToBufArr)(r).equals(u.KECCAK256_NULL)?m:r]},t.accountBodyToRLP=function(e,t=!0){const n=t?f(e):e;return(0,c.arrToBufArr)(r.RLP.encode(n))}},55636:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;const r=n(41519),i=n(34615);class s{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new s((0,i.zeros)(20))}static fromString(e){if(!(0,r.isValidAddress)(e))throw new Error("Invalid address");return new s((0,i.toBuffer)(e))}static fromPublicKey(e){if(!a.isBuffer(e))throw new Error("Public key should be Buffer");const t=(0,r.pubToAddress)(e);return new s(t)}static fromPrivateKey(e){if(!a.isBuffer(e))throw new Error("Private key should be Buffer");const t=(0,r.privateToAddress)(e);return new s(t)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new s((0,r.generateAddress)(e.buf,(0,i.bigIntToBuffer)(t)))}static generate2(e,t,n){if(!a.isBuffer(t))throw new Error("Expected salt to be a Buffer");if(!a.isBuffer(n))throw new Error("Expected initCode to be a Buffer");return new s((0,r.generateAddress2)(e.buf,t,n))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(s.zero())}isPrecompileOrSystemAddress(){const e=(0,i.bufferToBigInt)(this.buf),t=BigInt(0),n=BigInt("0xffff");return e>=t&&e<=n}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return a.from(this.buf)}}t.Address=s},14770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=void 0;const a=n(50046);class r extends a.EventEmitter{emit(e,...t){let[n,a]=t;const r=this;let i=r._events[e]??[];return void 0===a&&"function"==typeof n&&(a=n,n=void 0),"newListener"!==e&&"removeListener"!==e||(n={event:n,fn:a},a=void 0),i=Array.isArray(i)?i:[i],async function(e,t,n){let a;for await(const r of t)try{r.length<2?r.call(e,n):await new Promise(((t,a)=>{r.call(e,n,(e=>{e?a(e):t()}))}))}catch(e){a=e}if(a)throw a}(r,i.slice(),n).then(a).catch(a),r.listenerCount(e)>0}once(e,t){const n=this;let a;if("function"!=typeof t)throw new TypeError("listener must be a function");return a=t.length>=2?function(r,i){n.removeListener(e,a),t(r,i)}:function(r){n.removeListener(e,a),t(r,a)},n.on(e,a),n}first(e,t){let n=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(n)||(this._events[e]=n=[n]),n.unshift(t),this}before(e,t,n){return this.beforeOrAfter(e,t,n)}after(e,t,n){return this.beforeOrAfter(e,t,n,"after")}beforeOrAfter(e,t,n,a){let r,i,s=this._events[e]??[];const o="after"===a?1:0;if("function"!=typeof n)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),i=s.length,r=s.length;r--;)if(s[r]===t){i=r+o;break}return s.splice(i,0,n),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}t.AsyncEventEmitter=r},34615:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;const r=n(33065),i=n(87323);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},t.intToBuffer=function(e){const n=(0,t.intToHex)(e);return a.from((0,i.padToEven)(n.slice(2)),"hex")},t.zeros=function(e){return a.allocUnsafe(e).fill(0)};const s=function(e,n,a){const r=(0,t.zeros)(n);return a?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};function c(e){const n=(0,t.bufferToHex)(e);return"0x"===n?BigInt(0):BigInt(n)}function u(e){return(0,t.toBuffer)("0x"+e.toString(16))}t.unpadBuffer=function(e){return(0,r.assertIsBuffer)(e),o(e)},t.unpadArray=function(e){return(0,r.assertIsArray)(e),o(e)},t.unpadHexString=function(e){return(0,r.assertIsHexString)(e),e=(0,i.stripHexPrefix)(e),"0x"+o(e)},t.toBuffer=function(e){if(null==e)return a.allocUnsafe(0);if(a.isBuffer(e))return a.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return a.from(e);if("string"==typeof e){if(!(0,i.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return a.from((0,i.padToEven)((0,i.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if("bigint"==typeof e){if(e0&&0===n[0])throw new Error(`${t} cannot have leading zeroes, received: ${n.toString("hex")}`)},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):a.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Uint8Array.from(t??[])},t.bigIntToHex=e=>"0x"+e.toString(16),t.bigIntToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)(u(e))},t.intToUnpaddedBuffer=function(e){return(0,t.unpadBuffer)((0,t.intToBuffer)(e))}},38129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;const a=n(1048),r=n(6787);t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=r.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=r.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=a.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=a.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=a.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=a.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16},40779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0,t.hasTerminator=e=>e.length>0&&16===e[e.length-1],t.nibblesToBytes=(e,t)=>{for(let n=0,a=0;a{let n=0;(0,t.hasTerminator)(e)&&(n=1,e=e.subarray(0,e.length-1));const a=new Uint8Array(e.length/2+1);return a[0]=n<<5,1&~e.length||(a[0]|=16,a[0]|=e[0],e=e.subarray(1)),(0,t.nibblesToBytes)(e,a.subarray(1)),a},t.bytesToNibbles=e=>{const t=2*e.length+1,n=new Uint8Array(t);for(let t=0;t{if(0===e.length)return e;let n=(0,t.bytesToNibbles)(e);n[0]<2&&(n=n.subarray(0,n.length-1));const a=2-(1&n[0]);return n.subarray(a)}},33065:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;const r=n(87323);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)},t.assertIsBuffer=function(e){if(!a.isBuffer(e))throw new Error(`This method only supports Buffer but input was: ${e}`)},t.assertIsArray=function(e){if(!Array.isArray(e))throw new Error(`This method only supports number arrays but input was: ${e}`)},t.assertIsString=function(e){if("string"!=typeof e)throw new Error(`This method only supports strings but input was: ${e}`)}},39276:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,r(n(38129),t),r(n(77519),t),r(n(41519),t),r(n(55636),t),r(n(90361),t),r(n(71226),t),r(n(34615),t),r(n(20201),t),r(n(40779),t),r(n(14770),t);var i=n(87323);Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),r(n(42481),t),r(n(71855),t)},87323:(e,t,n)=>{"use strict";var a=n(1048).Buffer;function r(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}function i(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=r,t.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return r(e)?e.slice(2):e},t.padToEven=i,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof e);return a.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,n){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===n?"some":"every"]((t=>e.indexOf(t)>=0))},t.toAscii=function(e){let t="",n=0;const a=e.length;for("0x"===e.substring(0,2)&&(n=2);n0&&e.length!==2+2*t)}},42481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lock=void 0,t.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((e=>this.promiseResolverQueue.push(e)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}},71855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=t.fetchFromProvider=void 0;const a=n(94220);t.fetchFromProvider=async(e,t)=>(await(0,a.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result,t.getProvider=e=>{if("string"==typeof e)return e;if(void 0!==e?.connection?.url)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},71226:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;const r=n(14189),i=n(6787),s=n(34615),o=n(38129),c=n(33065);function u(e,t){return e===BigInt(0)||e===BigInt(1)?e:void 0===t?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function l(e){return e===BigInt(0)||e===BigInt(1)}t.ecsign=function(e,t,n){const r=i.secp256k1.sign(e,t),s=r.toCompactRawBytes();return{r:a.from(s.slice(0,32)),s:a.from(s.slice(32,64)),v:void 0===n?BigInt(r.recovery+27):BigInt(r.recovery+35)+BigInt(n)*BigInt(2)}},t.ecrecover=function(e,t,n,r,o){const c=a.concat([(0,s.setLengthLeft)(n,32),(0,s.setLengthLeft)(r,32)],64),d=u(t,o);if(!l(d))throw new Error("Invalid signature v value");const p=i.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(d)).recoverPublicKey(e);return a.from(p.toRawBytes(!1).slice(1))},t.toRpcSig=function(e,t,n,r){if(!l(u(e,r)))throw new Error("Invalid signature v value");return(0,s.bufferToHex)(a.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(n,32),(0,s.toBuffer)(e)]))},t.toCompactSig=function(e,t,n,r){if(!l(u(e,r)))throw new Error("Invalid signature v value");let i=n;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(i=a.from(n),i[0]|=128),(0,s.bufferToHex)(a.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(i,32)]))},t.fromRpcSig=function(e){const t=(0,s.toBuffer)(e);let n,a,r;if(t.length>=65)n=t.slice(0,32),a=t.slice(32,64),r=(0,s.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");n=t.slice(0,32),a=t.slice(32,64),r=BigInt((0,s.bufferToInt)(t.slice(32,33))>>7),a[0]&=127}return r<27&&(r+=BigInt(27)),{v:r,r:n,s:a}},t.isValidSignature=function(e,t,n,a=!0,r){if(32!==t.length||32!==n.length)return!1;if(!l(u(e,r)))return!1;const i=(0,s.bufferToBigInt)(t),c=(0,s.bufferToBigInt)(n);return!(i===BigInt(0)||i>=o.SECP256K1_ORDER||c===BigInt(0)||c>=o.SECP256K1_ORDER||a&&c>=o.SECP256K1_ORDER_DIV_2)},t.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);const t=a.from(`Ethereum Signed Message:\n${e.length}`,"utf-8");return a.from((0,r.keccak256)(a.concat([t,e])))}},20201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;const a=n(34615),r=n(87323);var i;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(i=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0===e)return;if("string"==typeof e&&!(0,r.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const n=(0,a.toBuffer)(e);switch(t){case i.Buffer:return n;case i.BigInt:return(0,a.bufferToBigInt)(n);case i.Number:{const e=(0,a.bufferToBigInt)(n);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case i.PrefixedHexString:return(0,a.bufferToHex)(n);default:throw new Error("unknown outputType")}}},77519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},90361:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;const r=n(55636),i=n(34615),s=n(20201);class o{constructor(e,t,n,a){this.index=e,this.validatorIndex=t,this.address=n,this.amount=a}static fromWithdrawalData(e){const{index:t,validatorIndex:n,address:a,amount:i}=e,c=(0,s.toType)(t,s.TypeOutput.BigInt),u=(0,s.toType)(n,s.TypeOutput.BigInt),l=new r.Address((0,s.toType)(a,s.TypeOutput.Buffer)),d=(0,s.toType)(i,s.TypeOutput.BigInt);return new o(c,u,l,d)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,n,a,r]=e;return o.fromWithdrawalData({index:t,validatorIndex:n,address:a,amount:r})}static toBufferArray(e){const{index:t,validatorIndex:n,address:i,amount:o}=e,c=(0,s.toType)(t,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(t,s.TypeOutput.Buffer),u=(0,s.toType)(n,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(n,s.TypeOutput.Buffer);let l;return l=i instanceof r.Address?i.buf:(0,s.toType)(i,s.TypeOutput.Buffer),[c,u,l,(0,s.toType)(o,s.TypeOutput.BigInt)===BigInt(0)?a.alloc(0):(0,s.toType)(o,s.TypeOutput.Buffer)]}raw(){return o.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,i.bigIntToHex)(this.amount)}}}t.Withdrawal=o},14189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;const a=n(70448),r=n(69922);t.keccak224=(0,r.wrapHash)(a.keccak_224),t.keccak256=(()=>{const e=(0,r.wrapHash)(a.keccak_256);return e.create=a.keccak_256.create,e})(),t.keccak384=(0,r.wrapHash)(a.keccak_384),t.keccak512=(0,r.wrapHash)(a.keccak_512)},6787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var a=n(17673);Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return a.secp256k1}})},69922:function(e,t,n){"use strict";e=n.nmd(e);var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0,t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,i.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n(r.default.bytes(t),e(t))};const r=a(n(98460)),i=n(49074),s=r.default.bool;t.assertBool=s;const o=r.default.bytes;t.assertBytes=o;var c=n(49074);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.crypto=(()=>{const t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,n="function"==typeof e.require&&e.require.bind(e);return{node:n&&!t?n("crypto"):void 0,web:t}})()},9621:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=s,t.createCurve=function(e,t){const n=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...n(t),create:n})};const a=n(74500),r=n(49074),i=n(76316);function s(e){return{hash:e,hmac:(t,...n)=>(0,a.hmac)(e,t,(0,r.concatBytes)(...n)),randomBytes:r.randomBytes}}},84007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},a=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let a=e.ZERO,r=t;for(;n>i;)n&s&&(a=a.add(r)),r=r.double(),n>>=s;return a},precomputeWindow(e,t){const{windows:n,windowSize:r}=a(t),i=[];let s=e,o=s;for(let e=0;e>=h,a>c&&(a-=p,i+=s);const o=t,f=t+Math.abs(a)-1,m=e%2!=0,y=a<0;0===a?l=l.add(n(m,r[o])):u=u.add(n(y,r[f]))}return{p:u,f:l}},wNAFCached(e,t,n,a){const r=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,r),1!==r&&t.set(e,a(i))),this.wNAF(r,i,n)}}},t.validateBasic=function(e){return(0,a.validateField)(e.Fp),(0,r.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,a.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const a=n(81534),r=n(133),i=BigInt(0),s=BigInt(1)},32940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=l,t.hash_to_field=d,t.isogenyMap=function(e,t){const n=t.map((e=>Array.from(e).reverse()));return(t,a)=>{const[r,i,s,o]=n.map((n=>n.reduce(((n,a)=>e.add(e.mul(n,t),a)))));return t=e.div(r,i),a=e.mul(a,e.div(s,o)),{x:t,y:a}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(a,r){const i=d(a,2,{...n,DST:n.DST,...r}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(a,r){const i=d(a,1,{...n,DST:n.encodeDST,...r}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s},mapToCurve(n){if(!Array.isArray(n))throw new Error("mapToCurve: expected array of bigints");for(const e of n)if("bigint"!=typeof e)throw new Error(`mapToCurve: expected array of bigints, got ${e} in array`);const a=e.fromAffine(t(n)).clearCofactor();return a.assertValidity(),a}}};const a=n(81534),r=n(133),i=r.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let a=t-1;a>=0;a--)n[a]=255&e,e>>>=8;return new Uint8Array(n)}function o(e,t){const n=new Uint8Array(e.length);for(let a=0;a255&&(t=a((0,r.concatBytes)((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:u}=a,l=Math.ceil(n/i);if(l>255)throw new Error("Invalid xmd length");const d=(0,r.concatBytes)(t,s(t.length,1)),p=s(0,u),h=s(n,2),f=new Array(l),m=a((0,r.concatBytes)(p,e,h,s(0,1),d));f[0]=a((0,r.concatBytes)(m,s(1,1),d));for(let e=1;e<=l;e++){const t=[o(m,f[e-1]),s(e+1,1),d];f[e]=a((0,r.concatBytes)(...t))}return(0,r.concatBytes)(...f).slice(0,n)}function l(e,t,n,a,i){if((0,r.abytes)(e),(0,r.abytes)(t),c(n),t.length>255){const e=Math.ceil(2*a/8);t=i.create({dkLen:e}).update((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,r.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:o,m:d,hash:p,expand:h,DST:f}=n;(0,r.abytes)(e),c(t);const m="string"==typeof f?(0,r.utf8ToBytes)(f):f,y=s.toString(2).length,g=Math.ceil((y+o)/8),b=t*d*g;let v;if("xmd"===h)v=u(e,m,b,p);else if("xof"===h)v=l(e,m,b,o,p);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');v=e}const _=new Array(t);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=p,t.pow2=function(e,t,n){let a=e;for(;t-- >r;)a*=a,a%=n;return a},t.invert=h,t.tonelliShanks=f,t.FpSqrt=m,t.validateField=function(e){const t=y.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,a.validateObject)(e,t)},t.FpPow=g,t.FpInvertBatch=b,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?h(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-i)/s;return n=>{const a=e.pow(n,t);return e.eql(a,e.ZERO)||e.eql(a,e.ONE)}},t.nLength=v,t.Field=function(e,t,n=!1,s={}){if(e<=r)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=m(e),l=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,a.bitMask)(o),ZERO:r,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return r<=t&&te===r,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>g(l,e,t),div:(t,n)=>d(t*h(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>u(l,e)),invertBatch:e=>b(l,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,a.numberToBytesLE)(e,c):(0,a.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return n?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const r=(e=(0,a.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||r1024)throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${r}`);return d(n?(0,a.bytesToNumberLE)(e):(0,a.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=_,t.getMinHashLength=A,t.mapHashToField=function(e,t,n=!1){const r=e.length,s=_(t),o=A(t);if(r<16||r1024)throw new Error(`expected ${o}-1024 bytes of input, got ${r}`);const c=d(n?(0,a.bytesToNumberBE)(e):(0,a.bytesToNumberLE)(e),t-i)+i;return n?(0,a.numberToBytesLE)(c,s):(0,a.numberToBytesBE)(c,s)};const a=n(133),r=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);function d(e,t){const n=e%t;return n>=r?n:t+n}function p(e,t,n){if(n<=r||t 0");if(n===i)return r;let a=i;for(;t>r;)t&i&&(a=a*e%n),e=e*e%n,t>>=i;return a}function h(e,t){if(e===r||t<=r)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=d(e,t),a=t,s=r,o=i,c=i,u=r;for(;n!==r;){const e=a/n,t=a%n,r=s-c*e,i=o-u*e;a=n,n=t,s=c,o=u,c=r,u=i}if(a!==i)throw new Error("invert: does not exist");return d(s,t)}function f(e){const t=(e-i)/s;let n,a,o;for(n=e-i,a=0;n%s===r;n/=s,a++);for(o=s;o(d(e,t)&i)===i;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(e,t,n){if(n 0");if(n===r)return e.ONE;if(n===i)return t;let a=e.ONE,s=t;for(;n>r;)n&i&&(a=e.mul(a,s)),s=e.sqr(s),n>>=i;return a}function b(e,t){const n=new Array(t.length),a=t.reduce(((t,a,r)=>e.is0(a)?t:(n[r]=t,e.mul(t,a))),e.ONE),r=e.inv(a);return t.reduceRight(((t,a,r)=>e.is0(a)?t:(n[r]=e.mul(t,n[r]),e.mul(t,a))),r),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function _(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=_(e);return t+Math.ceil(t/2)}},133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitMask=void 0,t.isBytes=i,t.abytes=s,t.bytesToHex=c,t.numberToHexUnpadded=u,t.hexToNumber=l,t.hexToBytes=h,t.bytesToNumberBE=function(e){return l(c(e))},t.bytesToNumberLE=function(e){return s(e),l(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=f,t.numberToBytesLE=function(e,t){return f(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(u(e))},t.ensureBytes=function(e,t,n){let a;if("string"==typeof t)try{a=h(t)}catch(n){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);a=Uint8Array.from(t)}const r=a.length;if("number"==typeof n&&r!==n)throw new Error(`${e} expected ${n} bytes, got ${r}`);return a},t.concatBytes=m,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let a=0;an;e>>=a,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&a},t.bitSet=function(e,t,r){return e|(r?a:n)<{a.fill(1),r.fill(0),i=0},o=(...e)=>n(r,a,...e),c=(e=y())=>{r=o(g([0]),e),a=o(),0!==e.length&&(r=o(g([1]),e),a=o())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e{let n;for(s(),c(e);!(n=t(u()));)c();return s(),n}},t.validateObject=function(e,t,n={}){const a=(t,n,a)=>{const r=b[n];if("function"!=typeof r)throw new Error(`Invalid validator "${n}", expected function`);const i=e[t];if(!(a&&void 0===i||r(i,e)))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${n}`)};for(const[e,n]of Object.entries(t))a(e,n,!1);for(const[e,t]of Object.entries(n))a(e,t,!0);return e};const n=BigInt(0),a=BigInt(1),r=BigInt(2);function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e){if(!i(e))throw new Error("Uint8Array expected")}const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){s(e);let t="";for(let n=0;n=d._0&&e<=d._9?e-d._0:e>=d._A&&e<=d._F?e-(d._A-10):e>=d._a&&e<=d._f?e-(d._a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(n);for(let t=0,r=0;t(r<new Uint8Array(e),g=e=>Uint8Array.from(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},76316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=void 0,t.weierstrassPoints=f,t.weierstrass=function(e){const n=function(e){const t=(0,a.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=n,d=o.BYTES+1,p=2*o.BYTES+1;function h(e){return r.mod(e,c)}function m(e){return r.invert(e,c)}const{ProjectivePoint:y,normPrivateKeyToScalar:g,weierstrassEquation:b,isWithinCurveOrder:v}=f({...n,toBytes(e,t,n){const a=t.toAffine(),r=o.toBytes(a.x),s=i.concatBytes;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),r):s(Uint8Array.from([4]),r,o.toBytes(a.y))},fromBytes(e){const t=e.length,n=e[0],a=e.subarray(1);if(t!==d||2!==n&&3!==n){if(t===p&&4===n)return{x:o.fromBytes(a.subarray(0,o.BYTES)),y:o.fromBytes(a.subarray(o.BYTES,2*o.BYTES))};throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${p} uncompressed bytes`)}{const e=i.bytesToNumberBE(a);if(!(u<(r=e)&&ri.bytesToHex(i.numberToBytesBE(e,n.nByteLength));function A(e){return e>c>>l}const w=(e,t,n)=>i.bytesToNumberBE(e.slice(t,n));class I{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,s.ensureBytes)("compactSignature",e,2*t),new I(w(e,0,t),w(e,t,2*t))}static fromDER(e){const{r:n,s:a}=t.DER.toSig((0,s.ensureBytes)("DER",e));return new I(n,a)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new I(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:a,recovery:r}=this,i=k((0,s.ensureBytes)("msgHash",e));if(null==r||![0,1,2,3].includes(r))throw new Error("recovery id invalid");const c=2===r||3===r?t+n.n:t;if(c>=o.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&r?"03":"02",l=y.fromHex(u+_(c)),d=m(c),p=h(-i*d),f=h(a*d),g=y.BASE.multiplyAndAddUnsafe(l,p,f);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new I(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return _(this.r)+_(this.s)}}const S={isValidPrivateKey(e){try{return g(e),!0}catch(e){return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute:(e=8,t=y.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function x(e){const t=i.isBytes(e),n="string"==typeof e,a=(t||n)&&e.length;return t?a===d||a===p:n?a===2*d||a===2*p:e instanceof y}const C=n.bits2int||function(e){const t=i.bytesToNumberBE(e),a=8*e.length-n.nBitLength;return a>0?t>>BigInt(a):t},k=n.bits2int_modN||function(e){return h(C(e))},T=i.bitMask(n.nBitLength);function E(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(u<=e&&ee in a)))throw new Error("sign() legacy options not supported");const{hash:r,randomBytes:c}=n;let{lowS:d,prehash:p,extraEntropy:f}=a;null==d&&(d=!0),e=(0,s.ensureBytes)("msgHash",e),p&&(e=(0,s.ensureBytes)("prehashed msgHash",r(e)));const b=k(e),_=g(t),w=[E(_),E(b)];if(null!=f&&!1!==f){const e=!0===f?c(o.BYTES):f;w.push((0,s.ensureBytes)("extraEntropy",e))}const S=i.concatBytes(...w),x=b;return{seed:S,k2sig:function(e){const t=C(e);if(!v(t))return;const n=m(t),a=y.BASE.multiply(t).toAffine(),r=h(a.x);if(r===u)return;const i=h(n*h(x+r*_));if(i===u)return;let s=(a.x===r?0:2)|Number(a.y&l),o=i;return d&&A(i)&&(o=function(e){return A(e)?h(-e):e}(i),s^=1),new I(r,o,s)}}}(e,t,a),d=n;return i.createHmacDrbg(d.hash.outputLen,d.nByteLength,d.hmac)(r,c)},verify:function(e,a,r,o=O){const c=e;if(a=(0,s.ensureBytes)("msgHash",a),r=(0,s.ensureBytes)("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:l}=o;let d,p;try{if("string"==typeof c||i.isBytes(c))try{d=I.fromDER(c)}catch(e){if(!(e instanceof t.DER.Err))throw e;d=I.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new I(e,t)}}p=y.fromHex(r)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&d.hasHighS())return!1;l&&(a=n.hash(a));const{r:f,s:g}=d,b=k(a),v=m(g),_=h(b*v),A=h(f*v),w=y.BASE.multiplyAndAddUnsafe(p,_,A)?.toAffine();return!!w&&h(w.x)===f},ProjectivePoint:y,Signature:I,utils:S}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=m(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return a=>{let r,i,s,o,c,u,l,d;r=e.sqr(a),r=e.mul(r,t.Z),i=e.sqr(r),i=e.add(i,r),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),u=e.sqr(o),c=e.mul(u,t.A),i=e.add(i,c),i=e.mul(i,s),u=e.mul(u,o),c=e.mul(u,t.B),i=e.add(i,c),l=e.mul(r,s);const{isValid:p,value:h}=n(i,u);d=e.mul(r,a),d=e.mul(d,h),l=e.cmov(l,s,p),d=e.cmov(d,h,p);const f=e.isOdd(a)===e.isOdd(d);return d=e.cmov(e.neg(d),d,f),l=e.div(l,o),{x:l,y:d}}};const a=n(84007),r=n(81534),i=n(133),s=n(133),{bytesToNumberBE:o,hexToBytes:c}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const a=e[1],r=e.subarray(2,a+2);if(!a||r.length!==a)throw new n("Invalid signature integer: wrong length");if(128&r[0])throw new n("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:o(r),l:e.subarray(a+2)}},toSig(e){const{Err:n}=t.DER,a="string"==typeof e?c(e):e;i.abytes(a);let r=a.length;if(r<2||48!=a[0])throw new n("Invalid signature tag");if(a[1]!==r-2)throw new n("Invalid signature: incorrect length");const{d:s,l:o}=t.DER._parseInt(a.subarray(2)),{d:u,l}=t.DER._parseInt(o);if(l.length)throw new n("Invalid signature: left bytes after parsing");return{r:s,s:u}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},a=t(n(e.s)),r=t(n(e.r)),i=a.length/2,s=r.length/2,o=n(i),c=n(s);return`30${n(s+i+4)}02${c}${r}02${o}${a}`}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),p=BigInt(3),h=BigInt(4);function f(e){const t=function(e){const t=(0,a.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:s}=t;if(n){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,o=t.toBytes||((e,t,a)=>{const r=t.toAffine();return i.concatBytes(Uint8Array.from([4]),n.toBytes(r.x),n.toBytes(r.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function d(e){const{a,b:r}=t,i=n.sqr(e),s=n.mul(i,e);return n.add(n.add(s,n.mul(e,a)),r)}if(!n.eql(n.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&un.eql(e,n.ZERO);return r(t)&&r(a)?b.ZERO:new b(t,a,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,s.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,y.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:a}=this.toAffine();if(!n.isValid(e)||!n.isValid(a))throw new Error("bad point: x or y not FE");const r=n.sqr(a),i=d(e);if(!n.eql(r,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){g(e);const{px:t,py:a,pz:r}=this,{px:i,py:s,pz:o}=e,c=n.eql(n.mul(t,o),n.mul(i,r)),u=n.eql(n.mul(a,o),n.mul(s,r));return c&&u}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:a}=t,r=n.mul(a,p),{px:i,py:s,pz:o}=this;let c=n.ZERO,u=n.ZERO,l=n.ZERO,d=n.mul(i,i),h=n.mul(s,s),f=n.mul(o,o),m=n.mul(i,s);return m=n.add(m,m),l=n.mul(i,o),l=n.add(l,l),c=n.mul(e,l),u=n.mul(r,f),u=n.add(c,u),c=n.sub(h,u),u=n.add(h,u),u=n.mul(c,u),c=n.mul(m,c),l=n.mul(r,l),f=n.mul(e,f),m=n.sub(d,f),m=n.mul(e,m),m=n.add(m,l),l=n.add(d,d),d=n.add(l,d),d=n.add(d,f),d=n.mul(d,m),u=n.add(u,d),f=n.mul(s,o),f=n.add(f,f),d=n.mul(f,m),c=n.sub(c,d),l=n.mul(f,h),l=n.add(l,l),l=n.add(l,l),new b(c,u,l)}add(e){g(e);const{px:a,py:r,pz:i}=this,{px:s,py:o,pz:c}=e;let u=n.ZERO,l=n.ZERO,d=n.ZERO;const h=t.a,f=n.mul(t.b,p);let m=n.mul(a,s),y=n.mul(r,o),v=n.mul(i,c),_=n.add(a,r),A=n.add(s,o);_=n.mul(_,A),A=n.add(m,y),_=n.sub(_,A),A=n.add(a,i);let w=n.add(s,c);return A=n.mul(A,w),w=n.add(m,v),A=n.sub(A,w),w=n.add(r,i),u=n.add(o,c),w=n.mul(w,u),u=n.add(y,v),w=n.sub(w,u),d=n.mul(h,A),u=n.mul(f,v),d=n.add(u,d),u=n.sub(y,d),d=n.add(y,d),l=n.mul(u,d),y=n.add(m,m),y=n.add(y,m),v=n.mul(h,v),A=n.mul(f,A),y=n.add(y,v),v=n.sub(m,v),v=n.mul(h,v),A=n.add(A,v),m=n.mul(y,A),l=n.add(l,m),m=n.mul(w,A),u=n.mul(_,u),u=n.sub(u,m),m=n.mul(_,y),d=n.mul(w,d),d=n.add(d,m),new b(u,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return _.wNAFCached(this,y,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}))}multiplyUnsafe(e){const a=b.ZERO;if(e===u)return a;if(f(e),e===l)return this;const{endo:r}=t;if(!r)return _.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=r.splitScalar(e),d=a,p=a,h=this;for(;s>u||c>u;)s&l&&(d=d.add(h)),c&l&&(p=p.add(h)),h=h.double(),s>>=l,c>>=l;return i&&(d=d.negate()),o&&(p=p.negate()),p=new b(n.mul(p.px,r.beta),p.py,p.pz),d.add(p)}multiply(e){f(e);let a,r,i=e;const{endo:s}=t;if(s){const{k1neg:e,k1:t,k2neg:o,k2:c}=s.splitScalar(i);let{p:u,f:l}=this.wNAF(t),{p:d,f:p}=this.wNAF(c);u=_.constTimeNegate(e,u),d=_.constTimeNegate(o,d),d=new b(n.mul(d.px,s.beta),d.py,d.pz),a=u.add(d),r=l.add(p)}else{const{p:e,f:t}=this.wNAF(i);a=e,r=t}return b.normalizeZ([a,r])[0]}multiplyAndAddUnsafe(e,t,n){const a=b.BASE,r=(e,t)=>t!==u&&t!==l&&e.equals(a)?e.multiply(t):e.multiplyUnsafe(t),i=r(this,t).add(r(e,n));return i.is0()?void 0:i}toAffine(e){const{px:t,py:a,pz:r}=this,i=this.is0();null==e&&(e=i?n.ONE:n.inv(r));const s=n.mul(t,e),o=n.mul(a,e),c=n.mul(r,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw new Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===l)return!0;if(n)return n(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===l?this:n?n(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(b,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,_=(0,a.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:h}}function m(e,t){const n=e.ORDER;let a=u;for(let e=n-l;e%d===u;e/=d)a+=l;const r=a,i=d<{let a=y,i=e.pow(n,f),s=e.sqr(i);s=e.mul(s,n);let o=e.mul(t,s);o=e.pow(o,c),o=e.mul(o,i),i=e.mul(o,n),s=e.mul(o,t);let u=e.mul(s,i);o=e.pow(u,m);let p=e.eql(o,e.ONE);i=e.mul(s,g),o=e.mul(u,a),s=e.cmov(i,s,p),u=e.cmov(o,u,p);for(let t=r;t>l;t--){let n=t-d;n=d<{let i=e.sqr(r);const s=e.mul(t,r);i=e.mul(i,s);let o=e.pow(i,n);o=e.mul(o,s);const c=e.mul(o,a),u=e.mul(e.sqr(o),r),l=e.eql(u,t);return{isValid:l,value:e.cmov(c,o,l)}}}return b}},17673:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const a=n(79688),r=n(49074),i=n(9621),s=n(32940),o=n(81534),c=n(133),u=n(76316),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),h=BigInt(2),f=(e,t)=>(e+t/h)/t;function m(e){const t=l,n=BigInt(3),a=BigInt(6),r=BigInt(11),i=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%t,p=d*d*e%t,f=(0,o.pow2)(p,n,t)*p%t,m=(0,o.pow2)(f,n,t)*p%t,g=(0,o.pow2)(m,h,t)*d%t,b=(0,o.pow2)(g,r,t)*g%t,v=(0,o.pow2)(b,i,t)*b%t,_=(0,o.pow2)(v,c,t)*v%t,A=(0,o.pow2)(_,u,t)*_%t,w=(0,o.pow2)(A,c,t)*v%t,I=(0,o.pow2)(w,n,t)*p%t,S=(0,o.pow2)(I,s,t)*b%t,x=(0,o.pow2)(S,a,t)*d%t,C=(0,o.pow2)(x,h,t);if(!y.eql(y.sqr(C),e))throw new Error("Cannot find square root");return C}const y=(0,o.Field)(l,void 0,void 0,{sqrt:m});t.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),c=f(i*e,t),u=f(-a*e,t);let l=(0,o.mod)(e-c*n-u*r,t),h=(0,o.mod)(-c*a-u*i,t);const m=l>s,y=h>s;if(m&&(l=t-l),y&&(h=t-h),l>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:m,k1:l,k2neg:y,k2:h}}}},a.sha256);const g=BigInt(0),b=e=>"bigint"==typeof e&&g"bigint"==typeof e&&ge.charCodeAt(0))));n=(0,c.concatBytes)(t,t),_[e]=n}return(0,a.sha256)((0,c.concatBytes)(n,...t))}const w=e=>e.toRawBytes(!0).slice(1),I=e=>(0,c.numberToBytesBE)(e,32),S=e=>(0,o.mod)(e,l),x=e=>(0,o.mod)(e,d),C=t.secp256k1.ProjectivePoint,k=(e,t,n)=>C.BASE.multiplyAndAddUnsafe(e,t,n);function T(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),a=C.fromPrivateKey(n);return{scalar:a.hasEvenY()?n:x(-n),bytes:w(a)}}function E(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=S(e*e);let n=m(S(t*e+BigInt(7)));n%h!==g&&(n=S(-n));const a=new C(e,n,p);return a.assertValidity(),a}function P(...e){return x((0,c.bytesToNumberBE)(A("BIP0340/challenge",...e)))}function O(e,t,n){const a=(0,c.ensureBytes)("signature",e,64),r=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",n,32);try{const e=E((0,c.bytesToNumberBE)(i)),t=(0,c.bytesToNumberBE)(a.subarray(0,32));if(!b(t))return!1;const n=(0,c.bytesToNumberBE)(a.subarray(32,64));if(!v(n))return!1;const s=P(I(t),w(e),r),o=k(e,n,x(-s));return!(!o||!o.hasEvenY()||o.toAffine().x!==t)}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return T(e).bytes},sign:function(e,t,n=(0,r.randomBytes)(32)){const a=(0,c.ensureBytes)("message",e),{bytes:i,scalar:s}=T(t),o=(0,c.ensureBytes)("auxRand",n,32),u=I(s^(0,c.bytesToNumberBE)(A("BIP0340/aux",o))),l=A("BIP0340/nonce",u,i,a),d=x((0,c.bytesToNumberBE)(l));if(d===g)throw new Error("sign failed: k is zero");const{bytes:p,scalar:h}=T(d),f=P(p,i,a),m=new Uint8Array(64);if(m.set(p,0),m.set(I(x(h+f*s)),32),!O(m,a,i))throw new Error("sign: Invalid signature produced");return m},verify:O,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:E,pointToBytes:w,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:A,mod:o.mod}};const B=(()=>(0,s.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),R=(()=>(0,u.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}))(),N=(()=>(0,s.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=R(y.create(e[0]));return B(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:a.sha256}))();t.hashToCurve=N.hashToCurve,t.encodeToCurve=N.encodeToCurve},71147:(e,t,n)=>{const a=Symbol("SemVer ANY");class r{static get ANY(){return a}constructor(e,t){if(t=i(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===a?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[o.COMPARATORLOOSE]:s[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=a}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===a||e===a)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=r;const i=n(73772),{safeRe:s,t:o}=n(91527),c=n(42926),u=n(18639),l=n(24675),d=n(15206)},15206:(e,t,n)=>{const a=/\s+/g;class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(a," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&y))+":"+e,n=i.get(t);if(n)return n;const a=this.options.loose,r=a?l[d.HYPHENRANGELOOSE]:l[d.HYPHENRANGE];e=e.replace(r,P(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[d.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(l[d.TILDETRIM],h),c("tilde trim",e),e=e.replace(l[d.CARETTRIM],f),c("caret trim",e);let s=e.split(" ").map((e=>_(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));a&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[d.COMPARATORLOOSE]))))),c("range list",s);const u=new Map,b=s.map((e=>new o(e,this.options)));for(const e of b){if(g(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const v=[...u.values()];return i.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,b=e=>""===e.value,v=(e,t)=>{let n=!0;const a=e.slice();let r=a.pop();for(;n&&a.length;)n=a.every((e=>r.intersects(e,t))),r=a.pop();return n},_=(e,t)=>(c("comp",e,t),e=S(e,t),c("caret",e),e=w(e,t),c("tildes",e),e=C(e,t),c("xrange",e),e=T(e,t),c("stars",e),e),A=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{const n=t.loose?l[d.TILDELOOSE]:l[d.TILDE];return e.replace(n,((t,n,a,r,i)=>{let s;return c("tilde",e,t,n,a,r,i),A(n)?s="":A(a)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:A(r)?s=`>=${n}.${a}.0 <${n}.${+a+1}.0-0`:i?(c("replaceTilde pr",i),s=`>=${n}.${a}.${r}-${i} <${n}.${+a+1}.0-0`):s=`>=${n}.${a}.${r} <${n}.${+a+1}.0-0`,c("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{c("caret",e,t);const n=t.loose?l[d.CARETLOOSE]:l[d.CARET],a=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,i,s)=>{let o;return c("caret",e,t,n,r,i,s),A(n)?o="":A(r)?o=`>=${n}.0.0${a} <${+n+1}.0.0-0`:A(i)?o="0"===n?`>=${n}.${r}.0${a} <${n}.${+r+1}.0-0`:`>=${n}.${r}.0${a} <${+n+1}.0.0-0`:s?(c("replaceCaret pr",s),o="0"===n?"0"===r?`>=${n}.${r}.${i}-${s} <${n}.${r}.${+i+1}-0`:`>=${n}.${r}.${i}-${s} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${i}-${s} <${+n+1}.0.0-0`):(c("no pr"),o="0"===n?"0"===r?`>=${n}.${r}.${i}${a} <${n}.${r}.${+i+1}-0`:`>=${n}.${r}.${i}${a} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${i} <${+n+1}.0.0-0`),c("caret return",o),o}))},C=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[d.XRANGELOOSE]:l[d.XRANGE];return e.replace(n,((n,a,r,i,s,o)=>{c("xRange",e,n,a,r,i,s,o);const u=A(r),l=u||A(i),d=l||A(s),p=d;return"="===a&&p&&(a=""),o=t.includePrerelease?"-0":"",u?n=">"===a||"<"===a?"<0.0.0-0":"*":a&&p?(l&&(i=0),s=0,">"===a?(a=">=",l?(r=+r+1,i=0,s=0):(i=+i+1,s=0)):"<="===a&&(a="<",l?r=+r+1:i=+i+1),"<"===a&&(o="-0"),n=`${a+r}.${i}.${s}${o}`):l?n=`>=${r}.0.0${o} <${+r+1}.0.0-0`:d&&(n=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),c("xRange return",n),n}))},T=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[d.STAR],"")),E=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),P=e=>(t,n,a,r,i,s,o,c,u,l,d,p)=>`${n=A(a)?"":A(r)?`>=${a}.0.0${e?"-0":""}`:A(i)?`>=${a}.${r}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=A(u)?"":A(l)?`<${+u+1}.0.0-0`:A(d)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${d}-${p}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),O=(e,t,n)=>{for(let n=0;n0){const a=e[n].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}},24675:(e,t,n)=>{const a=n(18639),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=n(46789),{safeRe:s,t:o}=n(91527),c=n(73772),{compareIdentifiers:u}=n(39788);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);a("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);if(-1===a){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let a=[t,e];!1===n&&(a=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},15071:(e,t,n)=>{const a=n(90681);e.exports=(e,t)=>{const n=a(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},42926:(e,t,n)=>{const a=n(46962),r=n(80502),i=n(58847),s=n(67980),o=n(33848),c=n(15669);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return a(e,n,u);case"!=":return r(e,n,u);case">":return i(e,n,u);case">=":return s(e,n,u);case"<":return o(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},78769:(e,t,n)=>{const a=n(24675),r=n(90681),{safeRe:i,t:s}=n(91527);e.exports=(e,t)=>{if(e instanceof a)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const a=t.includePrerelease?i[s.COERCERTLFULL]:i[s.COERCERTL];let r;for(;(r=a.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),a.lastIndex=r.index+r[1].length+r[2].length;a.lastIndex=-1}else n=e.match(t.includePrerelease?i[s.COERCEFULL]:i[s.COERCE]);if(null===n)return null;const o=n[2],c=n[3]||"0",u=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return r(`${o}.${c}.${u}${l}${d}`,t)}},18808:(e,t,n)=>{const a=n(24675);e.exports=(e,t,n)=>{const r=new a(e,n),i=new a(t,n);return r.compare(i)||r.compareBuild(i)}},35074:(e,t,n)=>{const a=n(3677);e.exports=(e,t)=>a(e,t,!0)},3677:(e,t,n)=>{const a=n(24675);e.exports=(e,t,n)=>new a(e,n).compare(new a(t,n))},42748:(e,t,n)=>{const a=n(90681);e.exports=(e,t)=>{const n=a(e,null,!0),r=a(t,null,!0),i=n.compare(r);if(0===i)return null;const s=i>0,o=s?n:r,c=s?r:n,u=!!o.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?o.patch?"patch":o.minor?"minor":"major":"major";const l=u?"pre":"";return n.major!==r.major?l+"major":n.minor!==r.minor?l+"minor":n.patch!==r.patch?l+"patch":"prerelease"}},46962:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>0===a(e,t,n)},58847:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>a(e,t,n)>0},67980:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>a(e,t,n)>=0},12730:(e,t,n)=>{const a=n(24675);e.exports=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new a(e instanceof a?e.version:e,n).inc(t,r,i).version}catch(e){return null}}},33848:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>a(e,t,n)<0},15669:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>a(e,t,n)<=0},93223:(e,t,n)=>{const a=n(24675);e.exports=(e,t)=>new a(e,t).major},13587:(e,t,n)=>{const a=n(24675);e.exports=(e,t)=>new a(e,t).minor},80502:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>0!==a(e,t,n)},90681:(e,t,n)=>{const a=n(24675);e.exports=(e,t,n=!1)=>{if(e instanceof a)return e;try{return new a(e,t)}catch(e){if(!n)return null;throw e}}},48892:(e,t,n)=>{const a=n(24675);e.exports=(e,t)=>new a(e,t).patch},28250:(e,t,n)=>{const a=n(90681);e.exports=(e,t)=>{const n=a(e,t);return n&&n.prerelease.length?n.prerelease:null}},87157:(e,t,n)=>{const a=n(3677);e.exports=(e,t,n)=>a(t,e,n)},60896:(e,t,n)=>{const a=n(18808);e.exports=(e,t)=>e.sort(((e,n)=>a(n,e,t)))},62467:(e,t,n)=>{const a=n(15206);e.exports=(e,t,n)=>{try{t=new a(t,n)}catch(e){return!1}return t.test(e)}},56168:(e,t,n)=>{const a=n(18808);e.exports=(e,t)=>e.sort(((e,n)=>a(e,n,t)))},52468:(e,t,n)=>{const a=n(90681);e.exports=(e,t)=>{const n=a(e,t);return n?n.version:null}},70752:(e,t,n)=>{const a=n(91527),r=n(46789),i=n(24675),s=n(39788),o=n(90681),c=n(52468),u=n(15071),l=n(12730),d=n(42748),p=n(93223),h=n(13587),f=n(48892),m=n(28250),y=n(3677),g=n(87157),b=n(35074),v=n(18808),_=n(56168),A=n(60896),w=n(58847),I=n(33848),S=n(46962),x=n(80502),C=n(67980),k=n(15669),T=n(42926),E=n(78769),P=n(71147),O=n(15206),B=n(62467),R=n(35926),N=n(29857),M=n(23899),D=n(24354),L=n(27673),V=n(54368),U=n(84556),H=n(29077),F=n(30289),K=n(452),j=n(80281);e.exports={parse:o,valid:c,clean:u,inc:l,diff:d,major:p,minor:h,patch:f,prerelease:m,compare:y,rcompare:g,compareLoose:b,compareBuild:v,sort:_,rsort:A,gt:w,lt:I,eq:S,neq:x,gte:C,lte:k,cmp:T,coerce:E,Comparator:P,Range:O,satisfies:B,toComparators:R,maxSatisfying:N,minSatisfying:M,minVersion:D,validRange:L,outside:V,gtr:U,ltr:H,intersects:F,simplifyRange:K,subset:j,SemVer:i,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},46789:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},18639:(e,t,n)=>{const a="object"==typeof n(39907)&&{NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},39788:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const a=t.test(e),r=t.test(n);return a&&r&&(e=+e,n=+n),e===n?0:a&&!r?-1:r&&!a?1:en(t,e)}},34431:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},73772:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},91527:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=n(46789),s=n(18639),o=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],f=(e,t,n)=>{const a=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),r=d++;s(e,r,t),l[e]=r,u[r]=t,o[r]=new RegExp(t,n?"g":void 0),c[r]=new RegExp(a,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),f("FULL",`^${u[l.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),f("LOOSE",`^${u[l.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),f("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),f("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",u[l.COERCE],!0),f("COERCERTLFULL",u[l.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},84556:(e,t,n)=>{const a=n(54368);e.exports=(e,t,n)=>a(e,t,">",n)},30289:(e,t,n)=>{const a=n(15206);e.exports=(e,t,n)=>(e=new a(e,n),t=new a(t,n),e.intersects(t,n))},29077:(e,t,n)=>{const a=n(54368);e.exports=(e,t,n)=>a(e,t,"<",n)},29857:(e,t,n)=>{const a=n(24675),r=n(15206);e.exports=(e,t,n)=>{let i=null,s=null,o=null;try{o=new r(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new a(i,n)))})),i}},23899:(e,t,n)=>{const a=n(24675),r=n(15206);e.exports=(e,t,n)=>{let i=null,s=null,o=null;try{o=new r(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new a(i,n)))})),i}},24354:(e,t,n)=>{const a=n(24675),r=n(15206),i=n(58847);e.exports=(e,t)=>{e=new r(e,t);let n=new a("0.0.0");if(e.test(n))return n;if(n=new a("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new a(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!i(n,s)||(n=s)}return n&&e.test(n)?n:null}},54368:(e,t,n)=>{const a=n(24675),r=n(71147),{ANY:i}=r,s=n(15206),o=n(62467),c=n(58847),u=n(33848),l=n(15669),d=n(67980);e.exports=(e,t,n,p)=>{let h,f,m,y,g;switch(e=new a(e,p),t=new s(t,p),n){case">":h=c,f=l,m=u,y=">",g=">=";break;case"<":h=u,f=d,m=c,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n{e.semver===i&&(e=new r(">=0.0.0")),s=s||e,o=o||e,h(e.semver,s.semver,p)?s=e:m(e.semver,o.semver,p)&&(o=e)})),s.operator===y||s.operator===g)return!1;if((!o.operator||o.operator===y)&&f(e,o.semver))return!1;if(o.operator===g&&m(e,o.semver))return!1}return!0}},452:(e,t,n)=>{const a=n(62467),r=n(3677);e.exports=(e,t,n)=>{const i=[];let s=null,o=null;const c=e.sort(((e,t)=>r(e,t,n)));for(const e of c)a(e,t,n)?(o=e,s||(s=e)):(o&&i.push([s,o]),o=null,s=null);s&&i.push([s,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length{const a=n(15206),r=n(71147),{ANY:i}=r,s=n(62467),o=n(3677),c=[new r(">=0.0.0-0")],u=[new r(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===i){if(n.includePrerelease)return!0;t=u}const a=new Set;let r,l,h,f,m,y,g;for(const t of e)">"===t.operator||">="===t.operator?r=d(r,t,n):"<"===t.operator||"<="===t.operator?l=p(l,t,n):a.add(t.semver);if(a.size>1)return null;if(r&&l){if(h=o(r.semver,l.semver,n),h>0)return null;if(0===h&&(">="!==r.operator||"<="!==l.operator))return null}for(const e of a){if(r&&!s(e,String(r),n))return null;if(l&&!s(e,String(l),n))return null;for(const a of t)if(!s(e,String(a),n))return!1;return!0}let b=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!r||n.includePrerelease||!r.semver.prerelease.length)&&r.semver;b&&1===b.prerelease.length&&"<"===l.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,y=y||"<"===e.operator||"<="===e.operator,r)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=d(r,e,n),f===e&&f!==r)return!1}else if(">="===r.operator&&!s(r.semver,String(e),n))return!1;if(l)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=p(l,e,n),m===e&&m!==l)return!1}else if("<="===l.operator&&!s(l.semver,String(e),n))return!1;if(!e.operator&&(l||r)&&0!==h)return!1}return!(r&&y&&!l&&0!==h||l&&g&&!r&&0!==h||v||b)},d=(e,t,n)=>{if(!e)return t;const a=o(e.semver,t.semver,n);return a>0?e:a<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const a=o(e.semver,t.semver,n);return a<0?e:a>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new a(e,n),t=new a(t,n);let r=!1;e:for(const a of e.set){for(const e of t.set){const t=l(a,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0}},35926:(e,t,n)=>{const a=n(15206);e.exports=(e,t)=>new a(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},27673:(e,t,n)=>{const a=n(15206);e.exports=(e,t)=>{try{return new a(e,t).range||"*"}catch(e){return null}}},52052:(e,t,n)=>{const a=Symbol("SemVer ANY");class r{static get ANY(){return a}constructor(e,t){if(t=i(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===a?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[o.COMPARATORLOOSE]:s[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=a}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===a||e===a)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=r;const i=n(20375),{safeRe:s,t:o}=n(49042),c=n(53523),u=n(44164),l=n(51944),d=n(71803)},71803:(e,t,n)=>{const a=/\s+/g;class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(a," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&y))+":"+e,n=i.get(t);if(n)return n;const a=this.options.loose,r=a?l[d.HYPHENRANGELOOSE]:l[d.HYPHENRANGE];e=e.replace(r,P(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[d.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(l[d.TILDETRIM],h),c("tilde trim",e),e=e.replace(l[d.CARETTRIM],f),c("caret trim",e);let s=e.split(" ").map((e=>_(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));a&&(s=s.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[d.COMPARATORLOOSE]))))),c("range list",s);const u=new Map,b=s.map((e=>new o(e,this.options)));for(const e of b){if(g(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const v=[...u.values()];return i.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,b=e=>""===e.value,v=(e,t)=>{let n=!0;const a=e.slice();let r=a.pop();for(;n&&a.length;)n=a.every((e=>r.intersects(e,t))),r=a.pop();return n},_=(e,t)=>(c("comp",e,t),e=S(e,t),c("caret",e),e=w(e,t),c("tildes",e),e=C(e,t),c("xrange",e),e=T(e,t),c("stars",e),e),A=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{const n=t.loose?l[d.TILDELOOSE]:l[d.TILDE];return e.replace(n,((t,n,a,r,i)=>{let s;return c("tilde",e,t,n,a,r,i),A(n)?s="":A(a)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:A(r)?s=`>=${n}.${a}.0 <${n}.${+a+1}.0-0`:i?(c("replaceTilde pr",i),s=`>=${n}.${a}.${r}-${i} <${n}.${+a+1}.0-0`):s=`>=${n}.${a}.${r} <${n}.${+a+1}.0-0`,c("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{c("caret",e,t);const n=t.loose?l[d.CARETLOOSE]:l[d.CARET],a=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,i,s)=>{let o;return c("caret",e,t,n,r,i,s),A(n)?o="":A(r)?o=`>=${n}.0.0${a} <${+n+1}.0.0-0`:A(i)?o="0"===n?`>=${n}.${r}.0${a} <${n}.${+r+1}.0-0`:`>=${n}.${r}.0${a} <${+n+1}.0.0-0`:s?(c("replaceCaret pr",s),o="0"===n?"0"===r?`>=${n}.${r}.${i}-${s} <${n}.${r}.${+i+1}-0`:`>=${n}.${r}.${i}-${s} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${i}-${s} <${+n+1}.0.0-0`):(c("no pr"),o="0"===n?"0"===r?`>=${n}.${r}.${i}${a} <${n}.${r}.${+i+1}-0`:`>=${n}.${r}.${i}${a} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${i} <${+n+1}.0.0-0`),c("caret return",o),o}))},C=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[d.XRANGELOOSE]:l[d.XRANGE];return e.replace(n,((n,a,r,i,s,o)=>{c("xRange",e,n,a,r,i,s,o);const u=A(r),l=u||A(i),d=l||A(s),p=d;return"="===a&&p&&(a=""),o=t.includePrerelease?"-0":"",u?n=">"===a||"<"===a?"<0.0.0-0":"*":a&&p?(l&&(i=0),s=0,">"===a?(a=">=",l?(r=+r+1,i=0,s=0):(i=+i+1,s=0)):"<="===a&&(a="<",l?r=+r+1:i=+i+1),"<"===a&&(o="-0"),n=`${a+r}.${i}.${s}${o}`):l?n=`>=${r}.0.0${o} <${+r+1}.0.0-0`:d&&(n=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),c("xRange return",n),n}))},T=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[d.STAR],"")),E=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),P=e=>(t,n,a,r,i,s,o,c,u,l,d,p)=>`${n=A(a)?"":A(r)?`>=${a}.0.0${e?"-0":""}`:A(i)?`>=${a}.${r}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=A(u)?"":A(l)?`<${+u+1}.0.0-0`:A(d)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${d}-${p}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),O=(e,t,n)=>{for(let n=0;n0){const a=e[n].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}},51944:(e,t,n)=>{const a=n(44164),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=n(26046),{safeRe:s,t:o}=n(49042),c=n(20375),{compareIdentifiers:u}=n(15999);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);a("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);if(-1===a){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let a=[t,e];!1===n&&(a=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},6458:(e,t,n)=>{const a=n(39684);e.exports=(e,t)=>{const n=a(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},53523:(e,t,n)=>{const a=n(57213),r=n(44011),i=n(10944),s=n(46989),o=n(8375),c=n(51572);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return a(e,n,u);case"!=":return r(e,n,u);case">":return i(e,n,u);case">=":return s(e,n,u);case"<":return o(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},42342:(e,t,n)=>{const a=n(51944),r=n(39684),{safeRe:i,t:s}=n(49042);e.exports=(e,t)=>{if(e instanceof a)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const a=t.includePrerelease?i[s.COERCERTLFULL]:i[s.COERCERTL];let r;for(;(r=a.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),a.lastIndex=r.index+r[1].length+r[2].length;a.lastIndex=-1}else n=e.match(t.includePrerelease?i[s.COERCEFULL]:i[s.COERCE]);if(null===n)return null;const o=n[2],c=n[3]||"0",u=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return r(`${o}.${c}.${u}${l}${d}`,t)}},82881:(e,t,n)=>{const a=n(51944);e.exports=(e,t,n)=>{const r=new a(e,n),i=new a(t,n);return r.compare(i)||r.compareBuild(i)}},75919:(e,t,n)=>{const a=n(29124);e.exports=(e,t)=>a(e,t,!0)},29124:(e,t,n)=>{const a=n(51944);e.exports=(e,t,n)=>new a(e,n).compare(new a(t,n))},74596:(e,t,n)=>{const a=n(39684);e.exports=(e,t)=>{const n=a(e,null,!0),r=a(t,null,!0),i=n.compare(r);if(0===i)return null;const s=i>0,o=s?n:r,c=s?r:n,u=!!o.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?o.patch?"patch":o.minor?"minor":"major":"major";const l=u?"pre":"";return n.major!==r.major?l+"major":n.minor!==r.minor?l+"minor":n.patch!==r.patch?l+"patch":"prerelease"}},57213:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>0===a(e,t,n)},10944:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>a(e,t,n)>0},46989:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>a(e,t,n)>=0},43651:(e,t,n)=>{const a=n(51944);e.exports=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new a(e instanceof a?e.version:e,n).inc(t,r,i).version}catch(e){return null}}},8375:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>a(e,t,n)<0},51572:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>a(e,t,n)<=0},37094:(e,t,n)=>{const a=n(51944);e.exports=(e,t)=>new a(e,t).major},77906:(e,t,n)=>{const a=n(51944);e.exports=(e,t)=>new a(e,t).minor},44011:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>0!==a(e,t,n)},39684:(e,t,n)=>{const a=n(51944);e.exports=(e,t,n=!1)=>{if(e instanceof a)return e;try{return new a(e,t)}catch(e){if(!n)return null;throw e}}},65873:(e,t,n)=>{const a=n(51944);e.exports=(e,t)=>new a(e,t).patch},54861:(e,t,n)=>{const a=n(39684);e.exports=(e,t)=>{const n=a(e,t);return n&&n.prerelease.length?n.prerelease:null}},38430:(e,t,n)=>{const a=n(29124);e.exports=(e,t,n)=>a(t,e,n)},22385:(e,t,n)=>{const a=n(82881);e.exports=(e,t)=>e.sort(((e,n)=>a(n,e,t)))},6730:(e,t,n)=>{const a=n(71803);e.exports=(e,t,n)=>{try{t=new a(t,n)}catch(e){return!1}return t.test(e)}},5851:(e,t,n)=>{const a=n(82881);e.exports=(e,t)=>e.sort(((e,n)=>a(e,n,t)))},52077:(e,t,n)=>{const a=n(39684);e.exports=(e,t)=>{const n=a(e,t);return n?n.version:null}},43265:(e,t,n)=>{const a=n(49042),r=n(26046),i=n(51944),s=n(15999),o=n(39684),c=n(52077),u=n(6458),l=n(43651),d=n(74596),p=n(37094),h=n(77906),f=n(65873),m=n(54861),y=n(29124),g=n(38430),b=n(75919),v=n(82881),_=n(5851),A=n(22385),w=n(10944),I=n(8375),S=n(57213),x=n(44011),C=n(46989),k=n(51572),T=n(53523),E=n(42342),P=n(52052),O=n(71803),B=n(6730),R=n(52619),N=n(65168),M=n(72170),D=n(13873),L=n(36166),V=n(37543),U=n(19599),H=n(39786),F=n(45864),K=n(39689),j=n(71396);e.exports={parse:o,valid:c,clean:u,inc:l,diff:d,major:p,minor:h,patch:f,prerelease:m,compare:y,rcompare:g,compareLoose:b,compareBuild:v,sort:_,rsort:A,gt:w,lt:I,eq:S,neq:x,gte:C,lte:k,cmp:T,coerce:E,Comparator:P,Range:O,satisfies:B,toComparators:R,maxSatisfying:N,minSatisfying:M,minVersion:D,validRange:L,outside:V,gtr:U,ltr:H,intersects:F,simplifyRange:K,subset:j,SemVer:i,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},26046:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},44164:(e,t,n)=>{const a="object"==typeof n(39907)&&{NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},15999:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const a=t.test(e),r=t.test(n);return a&&r&&(e=+e,n=+n),e===n?0:a&&!r?-1:r&&!a?1:en(t,e)}},72166:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},20375:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},49042:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=n(26046),s=n(44164),o=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],f=(e,t,n)=>{const a=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),r=d++;s(e,r,t),l[e]=r,u[r]=t,o[r]=new RegExp(t,n?"g":void 0),c[r]=new RegExp(a,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),f("FULL",`^${u[l.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),f("LOOSE",`^${u[l.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),f("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),f("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",u[l.COERCE],!0),f("COERCERTLFULL",u[l.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},19599:(e,t,n)=>{const a=n(37543);e.exports=(e,t,n)=>a(e,t,">",n)},45864:(e,t,n)=>{const a=n(71803);e.exports=(e,t,n)=>(e=new a(e,n),t=new a(t,n),e.intersects(t,n))},39786:(e,t,n)=>{const a=n(37543);e.exports=(e,t,n)=>a(e,t,"<",n)},65168:(e,t,n)=>{const a=n(51944),r=n(71803);e.exports=(e,t,n)=>{let i=null,s=null,o=null;try{o=new r(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new a(i,n)))})),i}},72170:(e,t,n)=>{const a=n(51944),r=n(71803);e.exports=(e,t,n)=>{let i=null,s=null,o=null;try{o=new r(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new a(i,n)))})),i}},13873:(e,t,n)=>{const a=n(51944),r=n(71803),i=n(10944);e.exports=(e,t)=>{e=new r(e,t);let n=new a("0.0.0");if(e.test(n))return n;if(n=new a("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new a(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!i(n,s)||(n=s)}return n&&e.test(n)?n:null}},37543:(e,t,n)=>{const a=n(51944),r=n(52052),{ANY:i}=r,s=n(71803),o=n(6730),c=n(10944),u=n(8375),l=n(51572),d=n(46989);e.exports=(e,t,n,p)=>{let h,f,m,y,g;switch(e=new a(e,p),t=new s(t,p),n){case">":h=c,f=l,m=u,y=">",g=">=";break;case"<":h=u,f=d,m=c,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n{e.semver===i&&(e=new r(">=0.0.0")),s=s||e,o=o||e,h(e.semver,s.semver,p)?s=e:m(e.semver,o.semver,p)&&(o=e)})),s.operator===y||s.operator===g)return!1;if((!o.operator||o.operator===y)&&f(e,o.semver))return!1;if(o.operator===g&&m(e,o.semver))return!1}return!0}},39689:(e,t,n)=>{const a=n(6730),r=n(29124);e.exports=(e,t,n)=>{const i=[];let s=null,o=null;const c=e.sort(((e,t)=>r(e,t,n)));for(const e of c)a(e,t,n)?(o=e,s||(s=e)):(o&&i.push([s,o]),o=null,s=null);s&&i.push([s,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length{const a=n(71803),r=n(52052),{ANY:i}=r,s=n(6730),o=n(29124),c=[new r(">=0.0.0-0")],u=[new r(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===i){if(n.includePrerelease)return!0;t=u}const a=new Set;let r,l,h,f,m,y,g;for(const t of e)">"===t.operator||">="===t.operator?r=d(r,t,n):"<"===t.operator||"<="===t.operator?l=p(l,t,n):a.add(t.semver);if(a.size>1)return null;if(r&&l){if(h=o(r.semver,l.semver,n),h>0)return null;if(0===h&&(">="!==r.operator||"<="!==l.operator))return null}for(const e of a){if(r&&!s(e,String(r),n))return null;if(l&&!s(e,String(l),n))return null;for(const a of t)if(!s(e,String(a),n))return!1;return!0}let b=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!r||n.includePrerelease||!r.semver.prerelease.length)&&r.semver;b&&1===b.prerelease.length&&"<"===l.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,y=y||"<"===e.operator||"<="===e.operator,r)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(f=d(r,e,n),f===e&&f!==r)return!1}else if(">="===r.operator&&!s(r.semver,String(e),n))return!1;if(l)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=p(l,e,n),m===e&&m!==l)return!1}else if("<="===l.operator&&!s(l.semver,String(e),n))return!1;if(!e.operator&&(l||r)&&0!==h)return!1}return!(r&&y&&!l&&0!==h||l&&g&&!r&&0!==h||v||b)},d=(e,t,n)=>{if(!e)return t;const a=o(e.semver,t.semver,n);return a>0?e:a<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const a=o(e.semver,t.semver,n);return a<0?e:a>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new a(e,n),t=new a(t,n);let r=!1;e:for(const a of e.set){for(const e of t.set){const t=l(a,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0}},52619:(e,t,n)=>{const a=n(71803);e.exports=(e,t)=>new a(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},36166:(e,t,n)=>{const a=n(71803);e.exports=(e,t)=>{try{return new a(e,t).range||"*"}catch(e){return null}}},98460:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function a(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function r(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function i(e,...t){if(!r(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function c(e,t){i(e);const n=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const a=n(98460),r=n(49074);t.Chi=(e,t,n)=>e&t^~e&n,t.Maj=(e,t,n)=>e&t^e&n^t&n;class i extends r.Hash{constructor(e,t,n,a){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,r.createView)(this.buffer)}update(e){(0,a.exists)(this);const{view:t,buffer:n,blockLen:i}=this,s=(e=(0,r.toBytes)(e)).length;for(let a=0;ai-o&&(this.process(n,0),o=0);for(let e=o;e>r&i),o=Number(n&i),c=a?4:0,u=a?0:4;e.setUint32(t+c,s,a),e.setUint32(t+u,o,a)}(n,i-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),a=BigInt(32);function r(e,t=!1){return t?{h:Number(e&n),l:Number(e>>a&n)}:{h:0|Number(e>>a&n),l:0|Number(e&n)}}function i(e,t=!1){let n=new Uint32Array(e.length),a=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);t.toBig=s;const o=(e,t,n)=>e>>>n;t.shrSH=o;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const u=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=u;const l=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=l;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const p=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=p;const h=(e,t)=>t;t.rotr32H=h;const f=(e,t)=>e;t.rotr32L=f;const m=(e,t,n)=>e<>>32-n;t.rotlSH=m;const y=(e,t,n)=>t<>>32-n;t.rotlSL=y;const g=(e,t,n)=>t<>>64-n;t.rotlBH=g;const b=(e,t,n)=>e<>>64-n;function v(e,t,n,a){const r=(t>>>0)+(a>>>0);return{h:e+n+(r/2**32|0)|0,l:0|r}}t.rotlBL=b,t.add=v;const _=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=_;const A=(e,t,n,a)=>t+n+a+(e/2**32|0)|0;t.add3H=A;const w=(e,t,n,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(a>>>0);t.add4L=w;const I=(e,t,n,a,r)=>t+n+a+r+(e/2**32|0)|0;t.add4H=I;const S=(e,t,n,a,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(a>>>0)+(r>>>0);t.add5L=S;const x=(e,t,n,a,r,i)=>t+n+a+r+i+(e/2**32|0)|0;t.add5H=x;const C={fromBig:r,split:i,toBig:s,shrSH:o,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:p,rotr32H:h,rotr32L:f,rotlSH:m,rotlSL:y,rotlBH:g,rotlBL:b,add:v,add3L:_,add3H:A,add4L:w,add4H:I,add5H:x,add5L:S};t.default=C},76910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},74500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const a=n(98460),r=n(49074);class i extends r.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,a.hash)(e);const n=(0,r.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(n.length>i?e.create().update(n).digest():n);for(let e=0;enew i(e,t).update(n).digest(),t.hmac.create=(e,t)=>new i(e,t)},79688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const a=n(76423),r=n(49074),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class c extends a.HashMD{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:a,E:r,F:i,G:s,H:o}=this;return[e,t,n,a,r,i,s,o]}set(e,t,n,a,r,i,s,o){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|a,this.E=0|r,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=o[e-15],n=o[e-2],a=(0,r.rotr)(t,7)^(0,r.rotr)(t,18)^t>>>3,i=(0,r.rotr)(n,17)^(0,r.rotr)(n,19)^n>>>10;o[e]=i+o[e-7]+a+o[e-16]|0}let{A:n,B:s,C:c,D:u,E:l,F:d,G:p,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,r.rotr)(l,6)^(0,r.rotr)(l,11)^(0,r.rotr)(l,25))+(0,a.Chi)(l,d,p)+i[e]+o[e]|0,f=((0,r.rotr)(n,2)^(0,r.rotr)(n,13)^(0,r.rotr)(n,22))+(0,a.Maj)(n,s,c)|0;h=p,p=d,d=l,l=u+t|0,u=c,c=s,s=n,n=t+f|0}n=n+this.A|0,s=s+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,p=p+this.G|0,h=h+this.H|0,this.set(n,s,c,u,l,d,p,h)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,r.wrapConstructor)((()=>new c)),t.sha224=(0,r.wrapConstructor)((()=>new u))},70448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const a=n(98460),r=n(98081),i=n(49074),s=[],o=[],c=[],u=BigInt(0),l=BigInt(1),d=BigInt(2),p=BigInt(7),h=BigInt(256),f=BigInt(113);for(let e=0,t=l,n=1,a=0;e<24;e++){[n,a]=[a,(2*n+3*a)%5],s.push(2*(5*a+n)),o.push((e+1)*(e+2)/2%64);let r=u;for(let e=0;e<7;e++)t=(t<>p)*f)%h,t&d&&(r^=l<<(l<n>32?(0,r.rotlBH)(e,t,n):(0,r.rotlSH)(e,t,n),b=(e,t,n)=>n>32?(0,r.rotlBL)(e,t,n):(0,r.rotlSL)(e,t,n);function v(e,t=24){const n=new Uint32Array(10);for(let a=24-t;a<24;a++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const a=(t+8)%10,r=(t+2)%10,i=n[r],s=n[r+1],o=g(i,s,1)^n[a],c=b(i,s,1)^n[a+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=c}let t=e[2],r=e[3];for(let n=0;n<24;n++){const a=o[n],i=g(t,r,a),c=b(t,r,a),u=s[n];t=e[u],r=e[u+1],e[u]=i,e[u+1]=c}for(let t=0;t<50;t+=10){for(let a=0;a<10;a++)n[a]=e[t+a];for(let a=0;a<10;a++)e[t+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=m[a],e[1]^=y[a]}n.fill(0)}t.keccakP=v;class _ extends i.Hash{constructor(e,t,n,r=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),v(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,a.exists)(this);const{blockLen:t,state:n}=this,r=(e=(0,i.toBytes)(e)).length;for(let a=0;a=n&&this.keccak();const i=Math.min(n-this.posOut,r-a);e.set(t.subarray(this.posOut,this.posOut+i),a),this.posOut+=i,a+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,a.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,a.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:a,rounds:r,enableXOF:i}=this;return e||(e=new _(t,n,a,i,r)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=r,e.suffix=n,e.outputLen=a,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=_;const A=(e,t,n)=>(0,i.wrapConstructor)((()=>new _(t,e,n)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const w=(e,t,n)=>(0,i.wrapXOFConstructorWithOpts)(((a={})=>new _(t,e,void 0===a.dkLen?n:a.dkLen,!0)));t.shake128=w(31,168,16),t.shake256=w(31,136,32)},49074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const a=n(76910),r=n(98460);t.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name},t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.rotl=(e,t)=>e<>>32-t>>>0,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=function(e){for(let n=0;nt.toString(16).padStart(2,"0")));t.bytesToHex=function(e){(0,r.bytes)(e);let t="";for(let n=0;n=s&&e<=o?e-s:e>=c&&e<=u?e-(c-10):e>=l&&e<=d?e-(l-10):void 0}function h(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function f(e){return"string"==typeof e&&(e=h(e)),(0,r.bytes)(e),e}t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const a=new Uint8Array(n);for(let t=0,r=0;t{},t.asyncLoop=async function(e,n,a){let r=Date.now();for(let i=0;i=0&&ee().update(f(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(f(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(f(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(a.crypto&&"function"==typeof a.crypto.getRandomValues)return a.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},74261:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const a=n(22028),r=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(8),u=Object.freeze({a:r,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:i,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});t.CURVE=u;const l=(e,t)=>(e+t/s)/t,d={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(e){const{n:t}=u,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-i*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,o=BigInt("0x100000000000000000000000000000000"),c=l(s*e,t),d=l(-a*e,t);let p=U(e-c*n-d*r,t),h=U(-c*a-d*s,t);const f=p>o,m=h>o;if(f&&(p=t-p),m&&(h=t-h),p>o||h>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:f,k1:p,k2neg:m,k2:h}}},p=32,h=32,f=p+1,m=2*p+1;function y(e){const{a:t,b:n}=u,a=U(e*e),r=U(a*e);return U(r+t*e+n)}const g=u.a===r;class b extends Error{constructor(e){super(e)}}function v(e){if(!(e instanceof _))throw new TypeError("JacobianPoint expected")}class _{constructor(e,t,n){this.x=e,this.y=t,this.z=n}static fromAffine(e){if(!(e instanceof I))throw new TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(I.ZERO)?_.ZERO:new _(e.x,e.y,i)}static toAffineBatch(e){const t=function(e,t=u.P){const n=new Array(e.length),a=F(e.reduce(((e,a,i)=>a===r?e:(n[i]=e,U(e*a,t))),i),t);return e.reduceRight(((e,a,i)=>a===r?e:(n[i]=U(e*n[i],t),U(e*a,t))),a),n}(e.map((e=>e.z)));return e.map(((e,n)=>e.toAffine(t[n])))}static normalizeZ(e){return _.toAffineBatch(e).map(_.fromAffine)}equals(e){v(e);const{x:t,y:n,z:a}=this,{x:r,y:i,z:s}=e,o=U(a*a),c=U(s*s),u=U(t*c),l=U(r*o),d=U(U(n*s)*c),p=U(U(i*a)*o);return u===l&&d===p}negate(){return new _(this.x,U(-this.y),this.z)}double(){const{x:e,y:t,z:n}=this,a=U(e*e),r=U(t*t),i=U(r*r),u=e+r,l=U(s*(U(u*u)-a-i)),d=U(o*a),p=U(d*d),h=U(p-s*l),f=U(d*(l-h)-c*i),m=U(s*t*n);return new _(h,f,m)}add(e){v(e);const{x:t,y:n,z:a}=this,{x:i,y:o,z:c}=e;if(i===r||o===r)return this;if(t===r||n===r)return e;const u=U(a*a),l=U(c*c),d=U(t*l),p=U(i*u),h=U(U(n*c)*l),f=U(U(o*a)*u),m=U(p-d),y=U(f-h);if(m===r)return y===r?this.double():_.ZERO;const g=U(m*m),b=U(m*g),A=U(d*g),w=U(y*y-b-s*A),I=U(y*(A-w)-h*b),S=U(a*c*m);return new _(w,I,S)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){const t=_.ZERO;if("bigint"==typeof e&&e===r)return t;let n=V(e);if(n===i)return this;if(!g){let e=t,a=this;for(;n>r;)n&i&&(e=e.add(a)),a=a.double(),n>>=i;return e}let{k1neg:a,k1:s,k2neg:o,k2:c}=d.splitScalar(n),u=t,l=t,p=this;for(;s>r||c>r;)s&i&&(u=u.add(p)),c&i&&(l=l.add(p)),p=p.double(),s>>=i,c>>=i;return a&&(u=u.negate()),o&&(l=l.negate()),l=new _(U(l.x*d.beta),l.y,l.z),u.add(l)}precomputeWindow(e){const t=g?128/e+1:256/e+1,n=[];let a=this,r=a;for(let i=0;i>=d,o>c&&(o-=l,e+=i);const p=n,h=n+Math.abs(o)-1,f=t%2!=0,m=o<0;0===o?s=s.add(A(f,a[p])):r=r.add(A(m,a[h]))}return{p:r,f:s}}multiply(e,t){let n,a,r=V(e);if(g){const{k1neg:e,k1:i,k2neg:s,k2:o}=d.splitScalar(r);let{p:c,f:u}=this.wNAF(i,t),{p:l,f:p}=this.wNAF(o,t);c=A(e,c),l=A(s,l),l=new _(U(l.x*d.beta),l.y,l.z),n=c.add(l),a=u.add(p)}else{const{p:e,f:i}=this.wNAF(r,t);n=e,a=i}return _.normalizeZ([n,a])[0]}toAffine(e){const{x:t,y:n,z:a}=this,r=this.equals(_.ZERO);null==e&&(e=r?c:F(a));const s=e,o=U(s*s),u=U(o*s),l=U(t*o),d=U(n*u),p=U(a*s);if(r)return I.ZERO;if(p!==i)throw new Error("invZ was invalid");return new I(l,d)}}function A(e,t){const n=t.negate();return e?n:t}_.BASE=new _(u.Gx,u.Gy,i),_.ZERO=new _(r,i,r);const w=new WeakMap;class I{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,w.delete(this)}hasEvenY(){return this.y%s===r}static fromCompressedHex(e){const t=32===e.length,n=D(t?e:e.subarray(1));if(!W(n))throw new Error("Point is not on curve");let a=function(e){const{P:t}=u,n=BigInt(6),a=BigInt(11),r=BigInt(22),i=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=H(p,o)*p%t,f=H(h,o)*p%t,m=H(f,s)*d%t,y=H(m,a)*m%t,g=H(y,r)*y%t,b=H(g,c)*g%t,v=H(b,l)*b%t,_=H(v,c)*g%t,A=H(_,o)*p%t,w=H(A,i)*y%t,I=H(w,n)*d%t,S=H(I,s);if(S*S%t!==e)throw new Error("Cannot find square root");return S}(y(n));const r=(a&i)===i;t?r&&(a=U(-a)):!(1&~e[0])!==r&&(a=U(-a));const c=new I(n,a);return c.assertValidity(),c}static fromUncompressedHex(e){const t=D(e.subarray(1,p+1)),n=D(e.subarray(p+1,2*p+1)),a=new I(t,n);return a.assertValidity(),a}static fromHex(e){const t=L(e),n=t.length,a=t[0];if(n===p)return this.fromCompressedHex(t);if(n===f&&(2===a||3===a))return this.fromCompressedHex(t);if(n===m&&4===a)return this.fromUncompressedHex(t);throw new Error(`Point.fromHex: received invalid point. Expected 32-${f} compressed bytes or ${m} uncompressed bytes, not ${n}`)}static fromPrivateKey(e){return I.BASE.multiply(Z(e))}static fromSignature(e,t,n){const{r:a,s:r}=Y(t);if(![0,1,2,3].includes(n))throw new Error("Cannot recover: invalid recovery bit");const i=K(L(e)),{n:s}=u,o=2===n||3===n?a+s:a,c=F(o,s),l=U(-i*c,s),d=U(r*c,s),p=1&n?"03":"02",h=I.fromHex(p+O(o)),f=I.BASE.multiplyAndAddUnsafe(h,l,d);if(!f)throw new Error("Cannot recover signature: point at infinify");return f.assertValidity(),f}toRawBytes(e=!1){return M(this.toHex(e))}toHex(e=!1){const t=O(this.x);return e?`${this.hasEvenY()?"02":"03"}${t}`:`04${t}${O(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const e="Point is not on elliptic curve",{x:t,y:n}=this;if(!W(t)||!W(n))throw new Error(e);const a=U(n*n);if(U(a-y(t))!==r)throw new Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new I(this.x,U(-this.y))}double(){return _.fromAffine(this).double().toAffine()}add(e){return _.fromAffine(this).add(_.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return _.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,t,n){const a=_.fromAffine(this),s=t===r||t===i||this!==I.BASE?a.multiplyUnsafe(t):a.multiply(t),o=_.fromAffine(e).multiplyUnsafe(n),c=s.add(o);return c.equals(_.ZERO)?void 0:c.toAffine()}}function S(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function x(e){if(e.length<2||2!==e[0])throw new Error(`Invalid signature integer tag: ${E(e)}`);const t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:D(n),left:e.subarray(t+2)}}t.Point=I,I.BASE=new I(u.Gx,u.Gy),I.ZERO=new I(r,r);class C{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromCompact(e){const t=e instanceof Uint8Array,n="Signature.fromCompact";if("string"!=typeof e&&!t)throw new TypeError(`${n}: Expected string or Uint8Array`);const a=t?E(e):e;if(128!==a.length)throw new Error(`${n}: Expected 64-byte hex`);return new C(N(a.slice(0,64)),N(a.slice(64,128)))}static fromDER(e){const t=e instanceof Uint8Array;if("string"!=typeof e&&!t)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s:a}=function(e){if(e.length<2||48!=e[0])throw new Error(`Invalid signature tag: ${E(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:n}=x(e.subarray(2)),{data:a,left:r}=x(n);if(r.length)throw new Error(`Invalid signature: left bytes after parsing: ${E(r)}`);return{r:t,s:a}}(t?e:M(e));return new C(n,a)}static fromHex(e){return this.fromDER(e)}assertValidity(){const{r:e,s:t}=this;if(!G(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!G(t))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const e=u.n>>i;return this.s>e}normalizeS(){return this.hasHighS()?new C(this.r,U(-this.s,u.n)):this}toDERRawBytes(){return M(this.toDERHex())}toDERHex(){const e=S(R(this.s)),t=S(R(this.r)),n=e.length/2,a=t.length/2,r=R(n),i=R(a);return`30${R(a+n+4)}02${i}${t}02${r}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return M(this.toCompactHex())}toCompactHex(){return O(this.r)+O(this.s)}}function k(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);for(let t=0,a=0;tt.toString(16).padStart(2,"0")));function E(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let n=0;n0)return BigInt(e);if("bigint"==typeof e&&G(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function U(e,t=u.P){const n=e%t;return n>=r?n:t+n}function H(e,t){const{P:n}=u;let a=e;for(;t-- >r;)a*=a,a%=n;return a}function F(e,t=u.P){if(e===r||t<=r)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=U(e,t),a=t,s=r,o=i,c=i,l=r;for(;n!==r;){const e=a/n,t=a%n,r=s-c*e,i=o-l*e;a=n,n=t,s=c,o=l,c=r,l=i}if(a!==i)throw new Error("invert: does not exist");return U(s,t)}function K(e,t=!1){const n=function(e){const t=8*e.length-8*h,n=D(e);return t>0?n>>BigInt(t):n}(e);if(t)return n;const{n:a}=u;return n>=a?n-a:n}let j,q;class z{constructor(e,t){if(this.hashLen=e,this.qByteLen=t,"number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(e).fill(1),this.k=new Uint8Array(e).fill(0),this.counter=0}hmac(...e){return t.utils.hmacSha256(this.k,...e)}hmacSync(...e){return q(this.k,...e)}checkSync(){if("function"!=typeof q)throw new b("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),0!==e.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){this.incr();let e=0;const t=[];for(;e0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*h)throw new Error("Expected 32 bytes of private key");t=N(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==h)throw new Error("Expected 32 bytes of private key");t=D(e)}if(!G(t))throw new Error("Expected private key: 0 < key < n");return t}function J(e){return e instanceof I?(e.assertValidity(),e):I.fromHex(e)}function Y(e){if(e instanceof C)return e.assertValidity(),e;try{return C.fromDER(e)}catch(t){return C.fromCompact(e)}}function Q(e){const t=e instanceof Uint8Array,n="string"==typeof e,a=(t||n)&&e.length;return t?a===f||a===m:n?a===2*f||a===2*m:e instanceof I}function $(e){return D(e.length>p?e.slice(0,p):e)}function ee(e){const t=$(e),n=U(t,u.n);return te(n{e=L(e);const t=h+8;if(e.length1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return B(U(D(e),u.n-i)+i)},randomBytes:(e=32)=>{if(pe.web)return pe.web.getRandomValues(new Uint8Array(e));if(pe.node){const{randomBytes:t}=pe.node;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>t.utils.hashToPrivateKey(t.utils.randomBytes(h+8)),precompute(e=8,t=I.BASE){const n=t===I.BASE?t:new I(t.x,t.y);return n._setWindowSize(e),n.multiply(o),n},sha256:async(...e)=>{if(pe.web){const t=await pe.web.subtle.digest("SHA-256",k(...e));return new Uint8Array(t)}if(pe.node){const{createHash:t}=pe.node,n=t("sha256");return e.forEach((e=>n.update(e))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(pe.web){const n=await pe.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),a=k(...t),r=await pe.web.subtle.sign("HMAC",n,a);return new Uint8Array(r)}if(pe.node){const{createHmac:n}=pe.node,a=n("sha256",e);return t.forEach((e=>a.update(e))),Uint8Array.from(a.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...n)=>{let a=fe[e];if(void 0===a){const n=await t.utils.sha256(Uint8Array.from(e,(e=>e.charCodeAt(0))));a=k(n,n),fe[e]=a}return t.utils.sha256(a,...n)},taggedHashSync:(e,...t)=>{if("function"!=typeof j)throw new b("sha256Sync is undefined, you need to set it");let n=fe[e];if(void 0===n){const t=j(Uint8Array.from(e,(e=>e.charCodeAt(0))));n=k(t,t),fe[e]=n}return j(n,...t)},_JacobianPoint:_},Object.defineProperties(t.utils,{sha256Sync:{configurable:!1,get:()=>j,set(e){j||(j=e)}},hmacSha256Sync:{configurable:!1,get:()=>q,set(e){q||(q=e)}}})},79003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{generateTaskId:{description:"Getting task ID given account ID and provided ID",params:[{name:"accountId",type:"AccountId"},{name:"providedId",type:"Text"}],type:"Hash"},getTimeAutomationFees:{description:"Retrieve automation fees",params:[{name:"action",type:"AutomationAction"},{name:"executions",type:"u32"}],type:"Balance"},calculateOptimalAutostaking:{description:"Calculate the optimal period to restake",params:[{name:"principal",type:"i128"},{name:"collator",type:"AccountId"}],type:"AutostakingResult"},getAutoCompoundDelegatedStakeTaskIds:{description:"Return autocompounding tasks by account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},types:{AutomationAction:{_enum:["Notify","NativeTransfer","XCMP","AutoCompoundDelegatedStake"]},AutostakingResult:{period:"i32",apy:"f64"}}}},37209:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.types=t.definitions=void 0;const s=n(52504),o=i(n(79003)),c=i(n(25437));r(n(79003),t),r(n(25437),t),t.definitions={automationTime:o.default,xcmpHandler:c.default},t.types=(0,s.typesFromDefs)(t.definitions),t.rpc=(0,s.jsonrpcFromDefs)(t.definitions)},52504:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var r=a(n(52625));t.jsonrpcFromDefs=r.default;var i=a(n(97097));t.typesAliasFromDefs=i.default;var s=a(n(30693));t.typesFromDefs=s.default},52625:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.keys(e).filter((t=>{var n;return 0!==Object.keys((null===(n=e[t])||void 0===n?void 0:n.rpc)||{}).length})).forEach((n=>{t[n]={},Object.entries(e[n].rpc).forEach((e=>{let[a,r]=e;const i=!!r.pubsub;t[n][a]=s(s({},r),{},{isSubscription:i,jsonrpc:`${n}_${a}`,method:a,section:n})}))})),t};var r=a(n(58212));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{typesAlias:n}=t;return(0,r.default)({},n,e)}),t)};var r=a(n(98089))},30693:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{types:n}=t;return s(s({},e),n)}),t)};var r=a(n(58212));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rpc:{crossChainAccount:{description:"Find xcmp account id",params:[{name:"accountId",type:"AccountId32"}],type:"AccountId32"},fees:{description:"Determine fees for a scheduled xcmp task",params:[{name:"encodedXt",type:"Bytes"}],type:"u64"}},types:{}}},95248:(e,t,n)=>{"use strict";t.__esModule=!0,t.balance=void 0;var a=n(10448),r=n(69419);t.balance=(e,t)=>(0,a.memo)(e,((e,n)=>t.rpc.system.properties().pipe((0,r.mergeMap)((a=>{const i=t.registry.createType("CurrencyId",n),s=a.tokenSymbol.unwrapOrDefault()[0].toString(),o=t.registry.createType("CurrencyId",(t.registry.getDefinition("CurrencyId")||"").includes('"Token":"TokenSymbol"')?{Token:s}:s);if(i.eq(o))return t.query.system.account(e).pipe((0,r.map)((e=>e.data.free)));const c=t.query.tokens.accounts.creator.meta.type.asMap.key,[u]=t.registry.lookup.getSiType(c).def.asTuple,l="CurrencyId"===t.registry.lookup.getTypeDef(u).type?[n,e]:[e,n];return t.query.tokens.accounts(...l).pipe((0,r.map)((e=>e.free)))})))))},12496:(e,t,n)=>{"use strict";t.__esModule=!0;var a=n(95248);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},71006:(e,t,n)=>{"use strict";t.__esModule=!0,t.derive=void 0;const a={currencies:{balance:n(12496).balance}};t.derive=a},89256:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin"}}},42100:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec"}}},34942:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.typesAlias=t.types=t.rpc=void 0;var r=a(n(89256)),i=a(n(42100)),s=a(n(45207)),o=a(n(12237)),c=a(n(75133)),u=a(n(79683)),l=a(n(45476)),d=n(75744),p=a(n(73547));const h={authority:r.default,graduallyUpdates:i.default,oracle:s.default,tokens:u.default,traits:l.default,vesting:p.default,rewards:o.default,runtime:c.default},f=(0,d.typesFromDefs)(h);t.types=f;const m=(0,d.jsonrpcFromDefs)(h);t.rpc=m;const y=(0,d.typesAliasFromDefs)(h);t.typesAlias=y},45207:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>"}},types:{RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec"}}},12237:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlCurrencyId:"u8",PoolInfo:{totalShares:"Share",rewards:"BTreeMap"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128"}}},75133:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OracleValue:"FixedU128"}}},79683:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{queryExistentialDeposit:{description:"Query Existential Deposit for a given currency.",params:[{name:"currencyId",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}},types:{OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"}},typesAlias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}}},45476:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128"}}},75744:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.typesFromDefs=t.typesAliasFromDefs=t.jsonrpcFromDefs=void 0;var r=a(n(39026));t.jsonrpcFromDefs=r.default;var i=a(n(82204));t.typesAliasFromDefs=i.default;var s=a(n(61738));t.typesFromDefs=s.default},39026:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.keys(e).filter((t=>{var n;return 0!==Object.keys((null===(n=e[t])||void 0===n?void 0:n.rpc)||{}).length})).forEach((n=>{t[n]={},Object.entries(e[n].rpc).forEach((e=>{let[a,r]=e;const i=!!r.pubsub;t[n][a]=s(s({},r),{},{isSubscription:i,jsonrpc:`${n}_${a}`,method:a,section:n})}))})),t};var r=a(n(58212));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{typesAlias:n}=t;return(0,r.default)({},n,e)}),t)};var r=a(n(98089))},61738:(e,t,n)=>{"use strict";var a=n(4293);t.__esModule=!0,t.default=function(e,t){return void 0===t&&(t={}),Object.values(e).reduce(((e,t)=>{let{types:n}=t;return s(s({},e),n)}),t)};var r=a(n(58212));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule"}}},87167:(e,t,n)=>{"use strict";function a(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function r(){const e=a();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=a,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!a()&&!!r()}},7339:(e,t,n)=>{"use strict";var a=n(39907);function r(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return void 0!==a&&void 0!==a.versions&&void 0!==a.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=r,t.isNode=i,t.isBrowser=function(){return!r()&&!i()}},15232:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(87167),t),r(n(7339),t)},95502:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,s){if("function"!=typeof a)throw new TypeError("The listener must be a function");var o=new r(a,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function o(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,s=new Array(i);r{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,s){if("function"!=typeof a)throw new TypeError("The listener must be a function");var o=new r(a,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function o(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,s=new Array(i);r{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,s){if("function"!=typeof a)throw new TypeError("The listener must be a function");var o=new r(a,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function o(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,s=new Array(i);r{"use strict";function n(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function a(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function r(...e){const t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map((e=>e.encode)).reduceRight(n,t),decode:e.map((e=>e.decode)).reduce(n,t)}}function i(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(n(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const n=e.indexOf(t);if(-1===n)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}}function s(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function o(e,t="="){if(n(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let a=n.length;if(a*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;a>0&&n[a-1]===t;a--)if(!((a-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,a)}}}function c(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function u(e,t,a){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(a<2)throw new Error(`convertRadix: wrong to=${a}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const i=[],s=Array.from(e);for(s.forEach((e=>{if(n(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,n=!0;for(let i=r;it?l(t,e%t):e,d=(e,t)=>e+(t-l(e,t));function p(e,t,a,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(a<=0||a>32)throw new Error(`convertRadix2: wrong to=${a}`);if(d(t,a)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${a} carryBits=${d(t,a)}`);let i=0,s=0;const o=2**a-1,c=[];for(const r of e){if(n(r),r>=2**t)throw new Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${t}`);for(s+=t;s>=a;s-=a)c.push((i>>s-a&o)>>>0);i&=2**s-1}if(i=i<=t)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&s>0&&c.push(i>>>0),c}function h(e){return n(e),{encode:t=>{if(!a(t))throw new Error("radix.encode input should be Uint8Array");return u(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(u(t,e,256))}}}function f(e,t=!1){if(n(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(d(8,e)>32||d(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!a(n))throw new Error("radix2.encode input should be Uint8Array");return p(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(p(n,e,8,t))}}}function m(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function y(e,t){if(n(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(n){if(!a(n))throw new Error("checksum.encode: input should be Uint8Array");const r=t(n).slice(0,e),i=new Uint8Array(n.length+e);return i.set(n),i.set(r,n.length),i},decode(n){if(!a(n))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-e),i=t(r).slice(0,e),s=n.slice(-e);for(let t=0;te.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),t.base64=r(f(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),o(6),s("")),t.base64nopad=r(f(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),s("")),t.base64url=r(f(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),o(6),s("")),t.base64urlnopad=r(f(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),s(""));const g=e=>r(h(58),i(e),s(""));t.base58=g("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=g("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=g("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const b=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let n="";for(let a=0;ar(y(4,(t=>e(e(t)))),t.base58),t.base58check=t.createBase58check;const v=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),s("")),_=[996825010,642813549,513874426,1027748829,705979059];function A(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e<_.length;e++)1==(t>>e&1)&&(n^=_[e]);return n}function w(e,t,n=1){const a=e.length;let r=1;for(let t=0;t126)throw new Error(`Invalid prefix (${e})`);r=A(r)^n>>5}r=A(r);for(let t=0;tn)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${n})`);const a=e.toLowerCase();if(e!==a&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const r=a.lastIndexOf("1");if(0===r||-1===r)throw new Error('Letter "1" must be present between prefix and data only');const i=a.slice(0,r),s=a.slice(r+1);if(s.length<6)throw new Error("Data must be at least 6 characters long");const o=v.decode(s).slice(0,-6),c=w(i,o,t);if(!s.endsWith(c))throw new Error(`Invalid checksum in ${e}: expected "${c}"`);return{prefix:i,words:o}}return{encode:function(e,n,a=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof n);if(0===e.length)throw new TypeError(`Invalid prefix length ${e.length}`);const r=e.length+7+n.length;if(!1!==a&&r>a)throw new TypeError(`Length ${r} exceeds limit ${a}`);const i=e.toLowerCase(),s=w(i,n,t);return`${i}1${v.encode(n)}${s}`},decode:s,decodeToBytes:function(e){const{prefix:t,words:n}=s(e,!1);return{prefix:t,words:n,bytes:a(n)}},decodeUnsafe:m(s),fromWords:a,fromWordsUnsafe:i,toWords:r}}t.bech32=I("bech32"),t.bech32m=I("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},t.hex=r(f(4),i("0123456789abcdef"),s(""),c((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const S={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},x="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!S.hasOwnProperty(e))throw new TypeError(x);if(!a(t))throw new TypeError("bytesToString() expects Uint8Array");return S[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=(e,t)=>{if(!S.hasOwnProperty(e))throw new TypeError(x);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return S[e].decode(t)},t.bytes=t.stringToBytes},63447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(96411);function r(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function s(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function o(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function u(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e/4294967296>>>0,t,n),l(e>>>0,t,n+4),t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=r,t.writeInt16BE=r,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=s,t.readUint32BE=o,t.readInt32LE=c,t.readUint32LE=u,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=s(e,t),a=s(e,t+4);return 4294967296*n+a-4294967296*(a>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*o(e,t)+o(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=u(e,t);return 4294967296*u(e,t+4)+n},t.writeUint64BE=p,t.writeInt64BE=p,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var a=0,r=1,i=e/8+n-1;i>=n;i--)a+=t[i]*r,r*=256;return a},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var a=0,r=1,i=n;i=r;s--)n[s]=t/i&255,i*=256;return n},t.writeUintLE=function(e,t,n,r){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===r&&(r=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!a.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,s=r;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(63447),r=n(38767),i=20;function s(e,t,n){for(var r=1634760805,s=857760878,o=2036477234,c=1797285236,u=n[3]<<24|n[2]<<16|n[1]<<8|n[0],l=n[7]<<24|n[6]<<16|n[5]<<8|n[4],d=n[11]<<24|n[10]<<16|n[9]<<8|n[8],p=n[15]<<24|n[14]<<16|n[13]<<8|n[12],h=n[19]<<24|n[18]<<16|n[17]<<8|n[16],f=n[23]<<24|n[22]<<16|n[21]<<8|n[20],m=n[27]<<24|n[26]<<16|n[25]<<8|n[24],y=n[31]<<24|n[30]<<16|n[29]<<8|n[28],g=t[3]<<24|t[2]<<16|t[1]<<8|t[0],b=t[7]<<24|t[6]<<16|t[5]<<8|t[4],v=t[11]<<24|t[10]<<16|t[9]<<8|t[8],_=t[15]<<24|t[14]<<16|t[13]<<8|t[12],A=r,w=s,I=o,S=c,x=u,C=l,k=d,T=p,E=h,P=f,O=m,B=y,R=g,N=b,M=v,D=_,L=0;L>>16|R<<16)|0)>>>20|x<<12,C=(C^=P=P+(N=(N^=w=w+C|0)>>>16|N<<16)|0)>>>20|C<<12,k=(k^=O=O+(M=(M^=I=I+k|0)>>>16|M<<16)|0)>>>20|k<<12,T=(T^=B=B+(D=(D^=S=S+T|0)>>>16|D<<16)|0)>>>20|T<<12,k=(k^=O=O+(M=(M^=I=I+k|0)>>>24|M<<8)|0)>>>25|k<<7,T=(T^=B=B+(D=(D^=S=S+T|0)>>>24|D<<8)|0)>>>25|T<<7,C=(C^=P=P+(N=(N^=w=w+C|0)>>>24|N<<8)|0)>>>25|C<<7,x=(x^=E=E+(R=(R^=A=A+x|0)>>>24|R<<8)|0)>>>25|x<<7,C=(C^=O=O+(D=(D^=A=A+C|0)>>>16|D<<16)|0)>>>20|C<<12,k=(k^=B=B+(R=(R^=w=w+k|0)>>>16|R<<16)|0)>>>20|k<<12,T=(T^=E=E+(N=(N^=I=I+T|0)>>>16|N<<16)|0)>>>20|T<<12,x=(x^=P=P+(M=(M^=S=S+x|0)>>>16|M<<16)|0)>>>20|x<<12,T=(T^=E=E+(N=(N^=I=I+T|0)>>>24|N<<8)|0)>>>25|T<<7,x=(x^=P=P+(M=(M^=S=S+x|0)>>>24|M<<8)|0)>>>25|x<<7,k=(k^=B=B+(R=(R^=w=w+k|0)>>>24|R<<8)|0)>>>25|k<<7,C=(C^=O=O+(D=(D^=A=A+C|0)>>>24|D<<8)|0)>>>25|C<<7;a.writeUint32LE(A+r|0,e,0),a.writeUint32LE(w+s|0,e,4),a.writeUint32LE(I+o|0,e,8),a.writeUint32LE(S+c|0,e,12),a.writeUint32LE(x+u|0,e,16),a.writeUint32LE(C+l|0,e,20),a.writeUint32LE(k+d|0,e,24),a.writeUint32LE(T+p|0,e,28),a.writeUint32LE(E+h|0,e,32),a.writeUint32LE(P+f|0,e,36),a.writeUint32LE(O+m|0,e,40),a.writeUint32LE(B+y|0,e,44),a.writeUint32LE(R+g|0,e,48),a.writeUint32LE(N+b|0,e,52),a.writeUint32LE(M+v|0,e,56),a.writeUint32LE(D+_|0,e,60)}function o(e,t,n,a,i){if(void 0===i&&(i=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(a.length>>=8,t++;if(a>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=o,t.stream=function(e,t,n,a){return void 0===a&&(a=0),r.wipe(n),o(e,t,n,n,a)}},21663:(e,t,n)=>{"use strict";var a=n(47209),r=n(47591),i=n(38767),s=n(63447),o=n(2591);t.J4=32,t.PX=12,t.iW=16;var c=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,r){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var s=new Uint8Array(16);s.set(e,s.length-e.length);var o=new Uint8Array(32);a.stream(this._key,s,o,4);var c,u=t.length+this.tagLength;if(r){if(r.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");c=r}else c=new Uint8Array(u);return a.streamXOR(this._key,s,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),o,c.subarray(0,c.length-this.tagLength),n),i.wipe(s),c},e.prototype.open=function(e,t,n,r){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&o.update(c.subarray(a.length%16))),o.update(n),n.length%16>0&&o.update(c.subarray(n.length%16));var u=new Uint8Array(8);a&&s.writeUint64LE(a.length,u),o.update(u),s.writeUint64LE(n.length,u),o.update(u);for(var l=o.digest(),d=0;d{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,a=0;a>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},17379:(e,t,n)=>{"use strict";t._S=t.K=t.TP=t.wE=t.Ee=void 0;n(27687);const a=n(75121);n(38767);function r(e){const t=new Float64Array(16);if(e)for(let n=0;n>16&1),n[e-1]&=65535;n[15]=a[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,p(a,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&a[t],e[2*t+1]=a[t]>>8}function f(e){const t=new Uint8Array(32);return h(t,e),1&t[0]}function m(e,t,n){for(let a=0;a<16;a++)e[a]=t[a]+n[a]}function y(e,t,n){for(let a=0;a<16;a++)e[a]=t[a]-n[a]}function g(e,t,n){let a,r,i=0,s=0,o=0,c=0,u=0,l=0,d=0,p=0,h=0,f=0,m=0,y=0,g=0,b=0,v=0,_=0,A=0,w=0,I=0,S=0,x=0,C=0,k=0,T=0,E=0,P=0,O=0,B=0,R=0,N=0,M=0,D=n[0],L=n[1],V=n[2],U=n[3],H=n[4],F=n[5],K=n[6],j=n[7],q=n[8],z=n[9],G=n[10],W=n[11],X=n[12],Z=n[13],J=n[14],Y=n[15];a=t[0],i+=a*D,s+=a*L,o+=a*V,c+=a*U,u+=a*H,l+=a*F,d+=a*K,p+=a*j,h+=a*q,f+=a*z,m+=a*G,y+=a*W,g+=a*X,b+=a*Z,v+=a*J,_+=a*Y,a=t[1],s+=a*D,o+=a*L,c+=a*V,u+=a*U,l+=a*H,d+=a*F,p+=a*K,h+=a*j,f+=a*q,m+=a*z,y+=a*G,g+=a*W,b+=a*X,v+=a*Z,_+=a*J,A+=a*Y,a=t[2],o+=a*D,c+=a*L,u+=a*V,l+=a*U,d+=a*H,p+=a*F,h+=a*K,f+=a*j,m+=a*q,y+=a*z,g+=a*G,b+=a*W,v+=a*X,_+=a*Z,A+=a*J,w+=a*Y,a=t[3],c+=a*D,u+=a*L,l+=a*V,d+=a*U,p+=a*H,h+=a*F,f+=a*K,m+=a*j,y+=a*q,g+=a*z,b+=a*G,v+=a*W,_+=a*X,A+=a*Z,w+=a*J,I+=a*Y,a=t[4],u+=a*D,l+=a*L,d+=a*V,p+=a*U,h+=a*H,f+=a*F,m+=a*K,y+=a*j,g+=a*q,b+=a*z,v+=a*G,_+=a*W,A+=a*X,w+=a*Z,I+=a*J,S+=a*Y,a=t[5],l+=a*D,d+=a*L,p+=a*V,h+=a*U,f+=a*H,m+=a*F,y+=a*K,g+=a*j,b+=a*q,v+=a*z,_+=a*G,A+=a*W,w+=a*X,I+=a*Z,S+=a*J,x+=a*Y,a=t[6],d+=a*D,p+=a*L,h+=a*V,f+=a*U,m+=a*H,y+=a*F,g+=a*K,b+=a*j,v+=a*q,_+=a*z,A+=a*G,w+=a*W,I+=a*X,S+=a*Z,x+=a*J,C+=a*Y,a=t[7],p+=a*D,h+=a*L,f+=a*V,m+=a*U,y+=a*H,g+=a*F,b+=a*K,v+=a*j,_+=a*q,A+=a*z,w+=a*G,I+=a*W,S+=a*X,x+=a*Z,C+=a*J,k+=a*Y,a=t[8],h+=a*D,f+=a*L,m+=a*V,y+=a*U,g+=a*H,b+=a*F,v+=a*K,_+=a*j,A+=a*q,w+=a*z,I+=a*G,S+=a*W,x+=a*X,C+=a*Z,k+=a*J,T+=a*Y,a=t[9],f+=a*D,m+=a*L,y+=a*V,g+=a*U,b+=a*H,v+=a*F,_+=a*K,A+=a*j,w+=a*q,I+=a*z,S+=a*G,x+=a*W,C+=a*X,k+=a*Z,T+=a*J,E+=a*Y,a=t[10],m+=a*D,y+=a*L,g+=a*V,b+=a*U,v+=a*H,_+=a*F,A+=a*K,w+=a*j,I+=a*q,S+=a*z,x+=a*G,C+=a*W,k+=a*X,T+=a*Z,E+=a*J,P+=a*Y,a=t[11],y+=a*D,g+=a*L,b+=a*V,v+=a*U,_+=a*H,A+=a*F,w+=a*K,I+=a*j,S+=a*q,x+=a*z,C+=a*G,k+=a*W,T+=a*X,E+=a*Z,P+=a*J,O+=a*Y,a=t[12],g+=a*D,b+=a*L,v+=a*V,_+=a*U,A+=a*H,w+=a*F,I+=a*K,S+=a*j,x+=a*q,C+=a*z,k+=a*G,T+=a*W,E+=a*X,P+=a*Z,O+=a*J,B+=a*Y,a=t[13],b+=a*D,v+=a*L,_+=a*V,A+=a*U,w+=a*H,I+=a*F,S+=a*K,x+=a*j,C+=a*q,k+=a*z,T+=a*G,E+=a*W,P+=a*X,O+=a*Z,B+=a*J,R+=a*Y,a=t[14],v+=a*D,_+=a*L,A+=a*V,w+=a*U,I+=a*H,S+=a*F,x+=a*K,C+=a*j,k+=a*q,T+=a*z,E+=a*G,P+=a*W,O+=a*X,B+=a*Z,R+=a*J,N+=a*Y,a=t[15],_+=a*D,A+=a*L,w+=a*V,I+=a*U,S+=a*H,x+=a*F,C+=a*K,k+=a*j,T+=a*q,E+=a*z,P+=a*G,O+=a*W,B+=a*X,R+=a*Z,N+=a*J,M+=a*Y,i+=38*A,s+=38*w,o+=38*I,c+=38*S,u+=38*x,l+=38*C,d+=38*k,p+=38*T,h+=38*E,f+=38*P,m+=38*O,y+=38*B,g+=38*R,b+=38*N,v+=38*M,r=1,a=i+r+65535,r=Math.floor(a/65536),i=a-65536*r,a=s+r+65535,r=Math.floor(a/65536),s=a-65536*r,a=o+r+65535,r=Math.floor(a/65536),o=a-65536*r,a=c+r+65535,r=Math.floor(a/65536),c=a-65536*r,a=u+r+65535,r=Math.floor(a/65536),u=a-65536*r,a=l+r+65535,r=Math.floor(a/65536),l=a-65536*r,a=d+r+65535,r=Math.floor(a/65536),d=a-65536*r,a=p+r+65535,r=Math.floor(a/65536),p=a-65536*r,a=h+r+65535,r=Math.floor(a/65536),h=a-65536*r,a=f+r+65535,r=Math.floor(a/65536),f=a-65536*r,a=m+r+65535,r=Math.floor(a/65536),m=a-65536*r,a=y+r+65535,r=Math.floor(a/65536),y=a-65536*r,a=g+r+65535,r=Math.floor(a/65536),g=a-65536*r,a=b+r+65535,r=Math.floor(a/65536),b=a-65536*r,a=v+r+65535,r=Math.floor(a/65536),v=a-65536*r,a=_+r+65535,r=Math.floor(a/65536),_=a-65536*r,i+=r-1+37*(r-1),r=1,a=i+r+65535,r=Math.floor(a/65536),i=a-65536*r,a=s+r+65535,r=Math.floor(a/65536),s=a-65536*r,a=o+r+65535,r=Math.floor(a/65536),o=a-65536*r,a=c+r+65535,r=Math.floor(a/65536),c=a-65536*r,a=u+r+65535,r=Math.floor(a/65536),u=a-65536*r,a=l+r+65535,r=Math.floor(a/65536),l=a-65536*r,a=d+r+65535,r=Math.floor(a/65536),d=a-65536*r,a=p+r+65535,r=Math.floor(a/65536),p=a-65536*r,a=h+r+65535,r=Math.floor(a/65536),h=a-65536*r,a=f+r+65535,r=Math.floor(a/65536),f=a-65536*r,a=m+r+65535,r=Math.floor(a/65536),m=a-65536*r,a=y+r+65535,r=Math.floor(a/65536),y=a-65536*r,a=g+r+65535,r=Math.floor(a/65536),g=a-65536*r,a=b+r+65535,r=Math.floor(a/65536),b=a-65536*r,a=v+r+65535,r=Math.floor(a/65536),v=a-65536*r,a=_+r+65535,r=Math.floor(a/65536),_=a-65536*r,i+=r-1+37*(r-1),e[0]=i,e[1]=s,e[2]=o,e[3]=c,e[4]=u,e[5]=l,e[6]=d,e[7]=p,e[8]=h,e[9]=f,e[10]=m,e[11]=y,e[12]=g,e[13]=b,e[14]=v,e[15]=_}function b(e,t){g(e,t,t)}function v(e,t){const n=r(),a=r(),i=r(),s=r(),c=r(),u=r(),l=r(),d=r(),p=r();y(n,e[1],e[0]),y(p,t[1],t[0]),g(n,n,p),m(a,e[0],e[1]),m(p,t[0],t[1]),g(a,a,p),g(i,e[3],t[3]),g(i,i,o),g(s,e[2],t[2]),m(s,s,s),y(c,a,n),y(u,s,i),m(l,s,i),m(d,a,n),g(e[0],c,u),g(e[1],d,l),g(e[2],l,u),g(e[3],c,d)}function _(e,t,n){for(let a=0;a<4;a++)p(e[a],t[a],n)}function A(e,t){const n=r(),a=r(),i=r();(function(e,t){const n=r();let a;for(a=0;a<16;a++)n[a]=t[a];for(a=253;a>=0;a--)b(n,n),2!==a&&4!==a&&g(n,n,t);for(a=0;a<16;a++)e[a]=n[a]})(i,t[2]),g(n,t[0],i),g(a,t[1],i),h(e,a),e[31]^=f(n)<<7}function w(e,t){const n=[r(),r(),r(),r()];l(n[0],c),l(n[1],u),l(n[2],s),g(n[3],c,u),function(e,t,n){l(e[0],i),l(e[1],s),l(e[2],s),l(e[3],i);for(let a=255;a>=0;--a){const r=n[a/8|0]>>(7&a)&1;_(e,t,r),v(t,e),v(e,e),_(e,t,r)}}(e,n,t)}t.K=function(e){if(e.length!==t.TP)throw new Error(`ed25519: seed must be ${t.TP} bytes`);const n=(0,a.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const i=new Uint8Array(32),s=[r(),r(),r(),r()];w(s,n),A(i,s);const o=new Uint8Array(64);return o.set(e),o.set(i,32),{publicKey:i,secretKey:o}};const I=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function S(e,t){let n,a,r,i;for(a=63;a>=32;--a){for(n=0,r=a-32,i=a-12;r>4)*I[r],n=t[r]>>8,t[r]&=255;for(r=0;r<32;r++)t[r]-=n*I[r];for(a=0;a<32;a++)t[a+1]+=t[a]>>8,e[a]=255&t[a]}function x(e){const t=new Float64Array(64);for(let n=0;n<64;n++)t[n]=e[n];for(let t=0;t<64;t++)e[t]=0;S(e,t)}t._S=function(e,t){const n=new Float64Array(64),i=[r(),r(),r(),r()],s=(0,a.hash)(e.subarray(0,32));s[0]&=248,s[31]&=127,s[31]|=64;const o=new Uint8Array(64);o.set(s.subarray(32),32);const c=new a.SHA512;c.update(o.subarray(32)),c.update(t);const u=c.digest();c.clean(),x(u),w(i,u),A(o,i),c.reset(),c.update(o.subarray(0,32)),c.update(e.subarray(32)),c.update(t);const l=c.digest();x(l);for(let e=0;e<32;e++)n[e]=u[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)n[e+t]+=l[e]*s[t];return S(o.subarray(32),n),o}},88605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},1427:(e,t,n)=>{"use strict";var a=n(55663),r=n(38767),i=function(){function e(e,t,n,r){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=r;var i=a.hmac(this._hash,n,t);this._hmac=new a.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(88605),r=n(2591),i=n(38767),s=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,a=65535&t;return n*a+((e>>>16&65535)*a+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},47591:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2591),r=n(38767);t.DIGEST_LENGTH=16;var i=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var a=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|a<<3);var r=e[4]|e[5]<<8;this._r[2]=7939&(a>>>10|r<<6);var i=e[6]|e[7]<<8;this._r[3]=8191&(r>>>7|i<<9);var s=e[8]|e[9]<<8;this._r[4]=255&(i>>>4|s<<12),this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=8191&(s>>>14|o<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(o>>>11|c<<5);var u=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|u<<8),this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,r=this._h[0],i=this._h[1],s=this._h[2],o=this._h[3],c=this._h[4],u=this._h[5],l=this._h[6],d=this._h[7],p=this._h[8],h=this._h[9],f=this._r[0],m=this._r[1],y=this._r[2],g=this._r[3],b=this._r[4],v=this._r[5],_=this._r[6],A=this._r[7],w=this._r[8],I=this._r[9];n>=16;){var S=e[t+0]|e[t+1]<<8;r+=8191&S;var x=e[t+2]|e[t+3]<<8;i+=8191&(S>>>13|x<<3);var C=e[t+4]|e[t+5]<<8;s+=8191&(x>>>10|C<<6);var k=e[t+6]|e[t+7]<<8;o+=8191&(C>>>7|k<<9);var T=e[t+8]|e[t+9]<<8;c+=8191&(k>>>4|T<<12),u+=T>>>1&8191;var E=e[t+10]|e[t+11]<<8;l+=8191&(T>>>14|E<<2);var P=e[t+12]|e[t+13]<<8;d+=8191&(E>>>11|P<<5);var O=e[t+14]|e[t+15]<<8,B=0,R=B;R+=r*f,R+=i*(5*I),R+=s*(5*w),R+=o*(5*A),B=(R+=c*(5*_))>>>13,R&=8191,R+=u*(5*v),R+=l*(5*b),R+=d*(5*g),R+=(p+=8191&(P>>>8|O<<8))*(5*y);var N=B+=(R+=(h+=O>>>5|a)*(5*m))>>>13;N+=r*m,N+=i*f,N+=s*(5*I),N+=o*(5*w),B=(N+=c*(5*A))>>>13,N&=8191,N+=u*(5*_),N+=l*(5*v),N+=d*(5*b),N+=p*(5*g),B+=(N+=h*(5*y))>>>13,N&=8191;var M=B;M+=r*y,M+=i*m,M+=s*f,M+=o*(5*I),B=(M+=c*(5*w))>>>13,M&=8191,M+=u*(5*A),M+=l*(5*_),M+=d*(5*v),M+=p*(5*b);var D=B+=(M+=h*(5*g))>>>13;D+=r*g,D+=i*y,D+=s*m,D+=o*f,B=(D+=c*(5*I))>>>13,D&=8191,D+=u*(5*w),D+=l*(5*A),D+=d*(5*_),D+=p*(5*v);var L=B+=(D+=h*(5*b))>>>13;L+=r*b,L+=i*g,L+=s*y,L+=o*m,B=(L+=c*f)>>>13,L&=8191,L+=u*(5*I),L+=l*(5*w),L+=d*(5*A),L+=p*(5*_);var V=B+=(L+=h*(5*v))>>>13;V+=r*v,V+=i*b,V+=s*g,V+=o*y,B=(V+=c*m)>>>13,V&=8191,V+=u*f,V+=l*(5*I),V+=d*(5*w),V+=p*(5*A);var U=B+=(V+=h*(5*_))>>>13;U+=r*_,U+=i*v,U+=s*b,U+=o*g,B=(U+=c*y)>>>13,U&=8191,U+=u*m,U+=l*f,U+=d*(5*I),U+=p*(5*w);var H=B+=(U+=h*(5*A))>>>13;H+=r*A,H+=i*_,H+=s*v,H+=o*b,B=(H+=c*g)>>>13,H&=8191,H+=u*y,H+=l*m,H+=d*f,H+=p*(5*I);var F=B+=(H+=h*(5*w))>>>13;F+=r*w,F+=i*A,F+=s*_,F+=o*v,B=(F+=c*b)>>>13,F&=8191,F+=u*g,F+=l*y,F+=d*m,F+=p*f;var K=B+=(F+=h*(5*I))>>>13;K+=r*I,K+=i*w,K+=s*A,K+=o*_,B=(K+=c*v)>>>13,K&=8191,K+=u*b,K+=l*g,K+=d*y,K+=p*m,r=R=8191&(B=(B=((B+=(K+=h*f)>>>13)<<2)+B|0)+(R&=8191)|0),i=N+=B>>>=13,s=M&=8191,o=D&=8191,c=L&=8191,u=V&=8191,l=U&=8191,d=H&=8191,p=F&=8191,h=K&=8191,t+=16,n-=16}this._h[0]=r,this._h[1]=i,this._h[2]=s,this._h[3]=o,this._h[4]=c,this._h[5]=u,this._h[6]=l,this._h[7]=d,this._h[8]=p,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,a,r,i,s=new Uint16Array(10);if(this._leftover){for(i=this._leftover,this._buffer[i++]=1;i<16;i++)this._buffer[i]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,i=2;i<10;i++)this._h[i]+=n,n=this._h[i]>>>13,this._h[i]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,s[0]=this._h[0]+5,n=s[0]>>>13,s[0]&=8191,i=1;i<10;i++)s[i]=this._h[i]+n,n=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,a=(1^n)-1,i=0;i<10;i++)s[i]&=a;for(a=~a,i=0;i<10;i++)this._h[i]=this._h[i]&a|s[i];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),r=this._h[0]+this._pad[0],this._h[0]=65535&r,i=1;i<8;i++)r=(this._h[i]+this._pad[i]|0)+(r>>>16)|0,this._h[i]=65535&r;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,a=e.length;if(this._leftover){(t=16-this._leftover)>a&&(t=a);for(var r=0;r=16&&(t=a-a%16,this._blocks(e,n,t),n+=t,a-=t),a){for(r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const a=n(7841),r=n(63447),i=n(38767);function s(e,n=t.defaultRandomSource){return n.randomBytes(e)}t.defaultRandomSource=new a.SystemRandomSource,t.randomBytes=s,t.randomUint32=function(e=t.defaultRandomSource){const n=s(4,e),a=(0,r.readUint32LE)(n);return(0,i.wipe)(n),a};const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,n=o,a=t.defaultRandomSource){if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let r="";const c=n.length,u=256-256%c;for(;e>0;){const t=s(Math.ceil(256*e/u),a);for(let a=0;a0;a++){const i=t[a];i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0,t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const a=n(38767);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(45423);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const a=n(14262),r=n(61052);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new a.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new r.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},91311:(e,t,n)=>{"use strict";var a=n(63447),r=n(38767);t.On=32,t.cS=64;var i=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(o(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=o(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,r=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var c=n+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){r.wipe(e.state),e.buffer&&r.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.aD=i;var s=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function o(e,t,n,r,i){for(;i>=64;){for(var o=t[0],c=t[1],u=t[2],l=t[3],d=t[4],p=t[5],h=t[6],f=t[7],m=0;m<16;m++){var y=r+4*m;e[m]=a.readUint32BE(n,y)}for(m=16;m<64;m++){var g=e[m-2],b=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,v=((g=e[m-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(m=0;m<64;m++)b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&h)|0)+(f+(s[m]+e[m]|0)|0)|0,v=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&c^o&u^c&u)|0,f=h,h=p,p=d,d=l+b|0,l=u,u=c,c=o,o=b+v|0;t[0]+=o,t[1]+=c,t[2]+=u,t[3]+=l,t[4]+=d,t[5]+=p,t[6]+=h,t[7]+=f,r+=64,i-=64}return r}t.tW=function(e){var t=new i;t.update(e);var n=t.digest();return t.clean(),n}},75121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(63447),r=n(38767);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var i=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,n){if(void 0===n&&(n=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var a=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[a++],n--;this._bufferLength===this.blockSize&&(o(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(a=o(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,a,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=e[a++],n--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,r=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var c=n+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){r.wipe(e.stateHi),r.wipe(e.stateLo),e.buffer&&r.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=i;var s=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function o(e,t,n,r,i,o,c){for(var u,l,d,p,h,f,m,y,g=n[0],b=n[1],v=n[2],_=n[3],A=n[4],w=n[5],I=n[6],S=n[7],x=r[0],C=r[1],k=r[2],T=r[3],E=r[4],P=r[5],O=r[6],B=r[7];c>=128;){for(var R=0;R<16;R++){var N=8*R+o;e[R]=a.readUint32BE(i,N),t[R]=a.readUint32BE(i,N+4)}for(R=0;R<80;R++){var M,D,L=g,V=b,U=v,H=_,F=A,K=w,j=I,q=x,z=C,G=k,W=T,X=E,Z=P,J=O;if(h=65535&(l=B),f=l>>>16,m=65535&(u=S),y=u>>>16,h+=65535&(l=(E>>>14|A<<18)^(E>>>18|A<<14)^(A>>>9|E<<23)),f+=l>>>16,m+=65535&(u=(A>>>14|E<<18)^(A>>>18|E<<14)^(E>>>9|A<<23)),y+=u>>>16,h+=65535&(l=E&P^~E&O),f+=l>>>16,m+=65535&(u=A&w^~A&I),y+=u>>>16,u=s[2*R],h+=65535&(l=s[2*R+1]),f+=l>>>16,m+=65535&u,y+=u>>>16,u=e[R%16],f+=(l=t[R%16])>>>16,m+=65535&u,y+=u>>>16,m+=(f+=(h+=65535&l)>>>16)>>>16,h=65535&(l=p=65535&h|f<<16),f=l>>>16,m=65535&(u=d=65535&m|(y+=m>>>16)<<16),y=u>>>16,h+=65535&(l=(x>>>28|g<<4)^(g>>>2|x<<30)^(g>>>7|x<<25)),f+=l>>>16,m+=65535&(u=(g>>>28|x<<4)^(x>>>2|g<<30)^(x>>>7|g<<25)),y+=u>>>16,f+=(l=x&C^x&k^C&k)>>>16,m+=65535&(u=g&b^g&v^b&v),y+=u>>>16,M=65535&(m+=(f+=(h+=65535&l)>>>16)>>>16)|(y+=m>>>16)<<16,D=65535&h|f<<16,h=65535&(l=W),f=l>>>16,m=65535&(u=H),y=u>>>16,f+=(l=p)>>>16,m+=65535&(u=d),y+=u>>>16,b=L,v=V,_=U,A=H=65535&(m+=(f+=(h+=65535&l)>>>16)>>>16)|(y+=m>>>16)<<16,w=F,I=K,S=j,g=M,C=q,k=z,T=G,E=W=65535&h|f<<16,P=X,O=Z,B=J,x=D,R%16==15)for(N=0;N<16;N++)u=e[N],h=65535&(l=t[N]),f=l>>>16,m=65535&u,y=u>>>16,u=e[(N+9)%16],h+=65535&(l=t[(N+9)%16]),f+=l>>>16,m+=65535&u,y+=u>>>16,d=e[(N+1)%16],h+=65535&(l=((p=t[(N+1)%16])>>>1|d<<31)^(p>>>8|d<<24)^(p>>>7|d<<25)),f+=l>>>16,m+=65535&(u=(d>>>1|p<<31)^(d>>>8|p<<24)^d>>>7),y+=u>>>16,d=e[(N+14)%16],f+=(l=((p=t[(N+14)%16])>>>19|d<<13)^(d>>>29|p<<3)^(p>>>6|d<<26))>>>16,m+=65535&(u=(d>>>19|p<<13)^(p>>>29|d<<3)^d>>>6),y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,e[N]=65535&m|y<<16,t[N]=65535&h|f<<16}h=65535&(l=x),f=l>>>16,m=65535&(u=g),y=u>>>16,u=n[0],f+=(l=r[0])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[0]=g=65535&m|y<<16,r[0]=x=65535&h|f<<16,h=65535&(l=C),f=l>>>16,m=65535&(u=b),y=u>>>16,u=n[1],f+=(l=r[1])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[1]=b=65535&m|y<<16,r[1]=C=65535&h|f<<16,h=65535&(l=k),f=l>>>16,m=65535&(u=v),y=u>>>16,u=n[2],f+=(l=r[2])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[2]=v=65535&m|y<<16,r[2]=k=65535&h|f<<16,h=65535&(l=T),f=l>>>16,m=65535&(u=_),y=u>>>16,u=n[3],f+=(l=r[3])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[3]=_=65535&m|y<<16,r[3]=T=65535&h|f<<16,h=65535&(l=E),f=l>>>16,m=65535&(u=A),y=u>>>16,u=n[4],f+=(l=r[4])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[4]=A=65535&m|y<<16,r[4]=E=65535&h|f<<16,h=65535&(l=P),f=l>>>16,m=65535&(u=w),y=u>>>16,u=n[5],f+=(l=r[5])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[5]=w=65535&m|y<<16,r[5]=P=65535&h|f<<16,h=65535&(l=O),f=l>>>16,m=65535&(u=I),y=u>>>16,u=n[6],f+=(l=r[6])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[6]=I=65535&m|y<<16,r[6]=O=65535&h|f<<16,h=65535&(l=B),f=l>>>16,m=65535&(u=S),y=u>>>16,u=n[7],f+=(l=r[7])>>>16,m+=65535&u,y+=u>>>16,y+=(m+=(f+=(h+=65535&l)>>>16)>>>16)>>>16,n[7]=S=65535&m|y<<16,r[7]=B=65535&h|f<<16,o+=128,c-=128}return o}t.hash=function(e){var t=new i;t.update(e);var n=t.digest();return t.clean(),n}},38767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;const a=n(27687),r=n(38767);function i(e){const t=new Float64Array(16);if(e)for(let n=0;n=0;--e){const t=n[e>>>3]>>>(7&e)&1;u(r,s,t),u(f,m,t),l(y,r,f),d(r,r,f),l(f,s,m),d(s,s,m),h(m,y),h(g,r),p(r,f,r),p(f,s,y),l(y,r,f),d(r,r,f),h(s,r),d(f,m,g),p(r,f,o),l(r,r,m),p(f,f,r),p(r,m,g),p(m,s,a),h(s,y),u(r,s,t),u(f,m,t)}for(let e=0;e<16;e++)a[e+16]=r[e],a[e+32]=f[e],a[e+48]=s[e],a[e+64]=m[e];const b=a.subarray(32),v=a.subarray(16);!function(e,t){const n=i();for(let e=0;e<16;e++)n[e]=t[e];for(let e=253;e>=0;e--)h(n,n),2!==e&&4!==e&&p(n,n,t);for(let t=0;t<16;t++)e[t]=n[t]}(b,b),p(v,v,b);const _=new Uint8Array(32);return function(e,t){const n=i(),a=i();for(let e=0;e<16;e++)a[e]=t[e];c(a),c(a),c(a);for(let e=0;e<2;e++){n[0]=a[0]-65517;for(let e=1;e<15;e++)n[e]=a[e]-65535-(n[e-1]>>16&1),n[e-1]&=65535;n[15]=a[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,u(a,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&a[t],e[2*t+1]=a[t]>>8}(_,v),_}t.TZ=function(e){const n=(0,a.randomBytes)(32,e),i=function(e){if(e.length!==t.wE)throw new Error(`x25519: seed must be ${t.wE} bytes`);const n=new Uint8Array(e);return{publicKey:(a=n,f(a,s)),secretKey:n};var a}(n);return(0,r.wipe)(n),i},t.Tc=function(e,n,a=!1){if(e.length!==t.Xx)throw new Error("X25519: incorrect secret key length");if(n.length!==t.Xx)throw new Error("X25519: incorrect public key length");const r=f(e,n);if(a){let e=0;for(let t=0;tthis.address.toString("hex").toUpperCase(),this.toString=()=>{let e=r.concat([r.from([45]),this.address]),t=(0,c.crc16)(e);return e=r.concat([e,t]),(0,o.base32Encode)(e).slice(1)},this[a]=()=>this.toString(),32!==e.length)throw Error("Invalid address");this.address=e}equals(e){return this.address.equals(e.address)}}t.ADNLAddress=u,a=s.default},26575:function(e,t,n){"use strict";var a,r=n(1048).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.address=t.Address=void 0;const s=i(n(64700)),o=n(60431);function c(e){if("string"==typeof e&&!u.isFriendly(e))throw new Error("Unknown address type");const t=r.isBuffer(e)?e:r.from(e,"base64");if(36!==t.length)throw new Error("Unknown address type: byte length is not equal to 36");const n=t.subarray(0,34),a=t.subarray(34,36),i=(0,o.crc16)(n);if(i[0]!==a[0]||i[1]!==a[1])throw new Error("Invalid checksum: "+e);let s=n[0],c=!1,l=!1;if(128&s&&(c=!0,s^=128),17!==s&&81!==s)throw"Unknown address tag";l=17===s;let d=null;return d=255===n[1]?-1:n[1],{isTestOnly:c,isBounceable:l,workchain:d,hashPart:n.subarray(2,34)}}class u{static isAddress(e){return e instanceof u}static isFriendly(e){return 48===e.length&&!!/[A-Za-z0-9+/_-]+/.test(e)}static isRaw(e){if(-1===e.indexOf(":"))return!1;let[t,n]=e.split(":");return!!Number.isInteger(parseFloat(t))&&!!/[a-f0-9]+/.test(n.toLowerCase())&&64===n.length}static normalize(e){return"string"==typeof e?u.parse(e).toString():e.toString()}static parse(e){if(u.isFriendly(e))return this.parseFriendly(e).address;if(u.isRaw(e))return this.parseRaw(e);throw new Error("Unknown address type: "+e)}static parseRaw(e){let t=parseInt(e.split(":")[0]),n=r.from(e.split(":")[1],"hex");return new u(t,n)}static parseFriendly(e){if(r.isBuffer(e)){let t=c(e);return{isBounceable:t.isBounceable,isTestOnly:t.isTestOnly,address:new u(t.workchain,t.hashPart)}}{let t=c(e.replace(/\-/g,"+").replace(/_/g,"/"));return{isBounceable:t.isBounceable,isTestOnly:t.isTestOnly,address:new u(t.workchain,t.hashPart)}}}constructor(e,t){if(this.toRawString=()=>this.workChain+":"+this.hash.toString("hex"),this.toRaw=()=>{const e=r.alloc(36);return e.set(this.hash),e.set([this.workChain,this.workChain,this.workChain,this.workChain],32),e},this.toStringBuffer=e=>{let t=!(!e||void 0===e.testOnly)&&e.testOnly,n=!e||void 0===e.bounceable||e.bounceable?17:81;t&&(n|=128);const a=r.alloc(34);a[0]=n,a[1]=this.workChain,a.set(this.hash,2);const i=r.alloc(36);return i.set(a),i.set((0,o.crc16)(a),34),i},this.toString=e=>{let t=!e||void 0===e.urlSafe||e.urlSafe,n=this.toStringBuffer(e);return t?n.toString("base64").replace(/\+/g,"-").replace(/\//g,"_"):n.toString("base64")},this[a]=()=>this.toString(),32!==t.length)throw new Error("Invalid address hash length: "+t.length);this.workChain=e,this.hash=t,Object.freeze(this)}equals(e){return e.workChain===this.workChain&&e.hash.equals(this.hash)}}t.Address=u,a=s.default,t.address=function(e){return u.parse(e)}},58366:function(e,t,n){"use strict";var a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalAddress=void 0;const i=r(n(64700));class s{static isAddress(e){return e instanceof s}constructor(e,t){this[a]=()=>this.toString(),this.value=e,this.bits=t}toString(){return`External<${this.bits}:${this.value}>`}}t.ExternalAddress=s,a=i.default},41837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contractAddress=void 0;const a=n(77856),r=n(63545),i=n(26575);t.contractAddress=function(e,t){let n=(0,a.beginCell)().store((0,r.storeStateInit)(t)).endCell().hash();return new i.Address(e,n)}},18889:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.BitBuilder=void 0;const r=n(26575),i=n(58366),s=n(48261);t.BitBuilder=class{constructor(e=1023){this._buffer=a.alloc(Math.ceil(e/8)),this._length=0}get length(){return this._length}writeBit(e){let t=this._length;if(t>8*this._buffer.length)throw new Error("BitBuilder overflow");("boolean"==typeof e&&!0===e||"number"==typeof e&&e>0)&&(this._buffer[t/8|0]|=1<<7-t%8),this._length++}writeBits(e){for(let t=0;t8*this._buffer.length)throw new Error("BitBuilder overflow");e.copy(this._buffer,this._length/8),this._length+=8*e.length}else for(let t=0;t=a)throw Error(`bitLength is too small for a value ${e}. Got ${t}`);if(this._length+t>8*this._buffer.length)throw new Error("BitBuilder overflow");const r=8-this._length%8;if(r>0){const e=Math.floor(this._length/8);if(t>BigInt(t-r));this._buffer[e]|=a,this._length+=r}}for(t-=r;t>0;)t>=8?(this._buffer[this._length/8]=Number(n>>BigInt(t-8)&0xffn),this._length+=8,t-=8):(this._buffer[this._length/8]=Number(n<=a)throw Error(`value is out of range for ${t} bits. Got ${e}`);n<0?(this.writeBit(!0),n=a+n):this.writeBit(!1),this.writeUint(n,t-1)}writeVarUint(e,t){let n=BigInt(e);if(t<0||!Number.isSafeInteger(t))throw Error(`invalid bit length. Got ${t}`);if(n<0)throw Error(`value is negative. Got ${e}`);if(0n===n)return void this.writeUint(0,t);const a=Math.ceil(n.toString(2).length/8),r=8*a;this.writeUint(a,t),this.writeUint(n,r)}writeVarInt(e,t){let n=BigInt(e);if(t<0||!Number.isSafeInteger(t))throw Error(`invalid bit length. Got ${t}`);if(0n===n)return void this.writeUint(0,t);let a=n>0?n:-n;const r=1+Math.ceil(a.toString(2).length/8),i=8*r;this.writeUint(r,t),this.writeInt(n,i)}writeCoins(e){this.writeVarUint(e,4)}writeAddress(e){if(null!=e){if(r.Address.isAddress(e))return this.writeUint(2,2),this.writeUint(0,1),this.writeInt(e.workChain,8),void this.writeBuffer(e.hash);if(i.ExternalAddress.isAddress(e))return this.writeUint(1,2),this.writeUint(e.bits,9),void this.writeUint(e.value,e.bits);throw Error(`Invalid address. Got ${e}`)}this.writeUint(0,2)}build(){return new s.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!=0)throw new Error("BitBuilder buffer is not byte aligned");return this._buffer.subarray(0,this._length/8)}}},12391:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.BitReader=void 0;const r=n(26575),i=n(58366);class s{constructor(e,t=0){this._checkpoints=[],this._bits=e,this._offset=t}get offset(){return this._offset}get remaining(){return this._bits.length-this._offset}skip(e){if(e<0||this._offset+e>this._bits.length)throw new Error(`Index ${this._offset+e} is out of bounds`);this._offset+=e}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let e=this._bits.at(this._offset);return this._offset++,e}preloadBit(){return this._bits.at(this._offset)}loadBits(e){let t=this._bits.substring(this._offset,e);return this._offset+=e,t}preloadBits(e){return this._bits.substring(this._offset,e)}loadBuffer(e){let t=this._preloadBuffer(e,this._offset);return this._offset+=8*e,t}preloadBuffer(e){return this._preloadBuffer(e,this._offset)}loadUint(e){return Number(this.loadUintBig(e))}loadUintBig(e){let t=this.preloadUintBig(e);return this._offset+=e,t}preloadUint(e){return Number(this._preloadUint(e,this._offset))}preloadUintBig(e){return this._preloadUint(e,this._offset)}loadInt(e){let t=this._preloadInt(e,this._offset);return this._offset+=e,Number(t)}loadIntBig(e){let t=this._preloadInt(e,this._offset);return this._offset+=e,t}preloadInt(e){return Number(this._preloadInt(e,this._offset))}preloadIntBig(e){return this._preloadInt(e,this._offset)}loadVarUint(e){let t=Number(this.loadUint(e));return Number(this.loadUintBig(8*t))}loadVarUintBig(e){let t=Number(this.loadUint(e));return this.loadUintBig(8*t)}preloadVarUint(e){let t=Number(this._preloadUint(e,this._offset));return Number(this._preloadUint(8*t,this._offset+e))}preloadVarUintBig(e){let t=Number(this._preloadUint(e,this._offset));return this._preloadUint(8*t,this._offset+e)}loadVarInt(e){let t=Number(this.loadUint(e));return Number(this.loadIntBig(8*t))}loadVarIntBig(e){let t=Number(this.loadUint(e));return this.loadIntBig(8*t)}preloadVarInt(e){let t=Number(this._preloadUint(e,this._offset));return Number(this._preloadInt(8*t,this._offset+e))}preloadVarIntBig(e){let t=Number(this._preloadUint(e,this._offset));return this._preloadInt(8*t,this._offset+e)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let e=Number(this._preloadUint(2,this._offset));if(2===e)return this._loadInternalAddress();throw new Error("Invalid address: "+e)}loadMaybeAddress(){let e=Number(this._preloadUint(2,this._offset));if(0===e)return this._offset+=2,null;if(2===e)return this._loadInternalAddress();throw new Error("Invalid address")}loadExternalAddress(){if(1===Number(this._preloadUint(2,this._offset)))return this._loadExternalAddress();throw new Error("Invalid address")}loadMaybeExternalAddress(){let e=Number(this._preloadUint(2,this._offset));if(0===e)return this._offset+=2,null;if(1===e)return this._loadExternalAddress();throw new Error("Invalid address")}loadAddressAny(){let e=Number(this._preloadUint(2,this._offset));if(0===e)return this._offset+=2,null;if(2===e)return this._loadInternalAddress();if(1===e)return this._loadExternalAddress();throw 3===e?Error("Unsupported"):Error("Unreachable")}loadPaddedBits(e){if(e%8!=0)throw new Error("Invalid number of bits");let t=e;for(;;){if(this._bits.at(this._offset+t-1)){t--;break}t--}let n=this._bits.substring(this._offset,t);return this._offset+=e,n}clone(){return new s(this._bits,this._offset)}_preloadInt(e,t){if(0==e)return 0n;let n=this._bits.at(t),a=0n;for(let n=0;nthis.toString(),n<0)throw new Error(`Length ${n} is out of bounds`);this._length=n,this._data=e,this._offset=t}get length(){return this._length}at(e){if(e>=this._length)throw new Error(`Index ${e} > ${this._length} is out of bounds`);if(e<0)throw new Error(`Index ${e} < 0 is out of bounds`);let t=this._offset+e>>3,n=7-(this._offset+e)%8;return!!(this._data[t]&1<this._length)throw new Error(`Offset(${e}) > ${this._length} is out of bounds`);if(e<0)throw new Error(`Offset(${e}) < 0 is out of bounds`);if(0===t)return c.EMPTY;if(e+t>this._length)throw new Error(`Offset ${e} + Length ${t} > ${this._length} is out of bounds`);return new c(this._data,this._offset+e,t)}subbuffer(e,t){if(e>this._length)throw new Error(`Offset ${e} is out of bounds`);if(e<0)throw new Error(`Offset ${e} is out of bounds`);if(e+t>this._length)throw new Error(`Offset + Lenght = ${e+t} is out of bounds`);if(t%8!=0)return null;if((this._offset+e)%8!=0)return null;let n=this._offset+e>>3,a=n+(t>>3);return this._data.subarray(n,a)}equals(e){if(this._length!==e._length)return!1;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=t.beginCell=void 0;const a=n(18889),r=n(69567),i=n(63279);function s(){return new o}t.beginCell=s;class o{constructor(){this._bits=new a.BitBuilder,this._refs=[]}get bits(){return this._bits.length}get refs(){return this._refs.length}get availableBits(){return 1023-this.bits}get availableRefs(){return 4-this.refs}storeBit(e){return this._bits.writeBit(e),this}storeBits(e){return this._bits.writeBits(e),this}storeBuffer(e,t){if(null!=t&&e.length!==t)throw Error(`Buffer length ${e.length} is not equal to ${t}`);return this._bits.writeBuffer(e),this}storeMaybeBuffer(e,t){return null!==e?(this.storeBit(1),this.storeBuffer(e,t)):this.storeBit(0),this}storeUint(e,t){return this._bits.writeUint(e,t),this}storeMaybeUint(e,t){return null!=e?(this.storeBit(1),this.storeUint(e,t)):this.storeBit(0),this}storeInt(e,t){return this._bits.writeInt(e,t),this}storeMaybeInt(e,t){return null!=e?(this.storeBit(1),this.storeInt(e,t)):this.storeBit(0),this}storeVarUint(e,t){return this._bits.writeVarUint(e,t),this}storeMaybeVarUint(e,t){return null!=e?(this.storeBit(1),this.storeVarUint(e,t)):this.storeBit(0),this}storeVarInt(e,t){return this._bits.writeVarInt(e,t),this}storeMaybeVarInt(e,t){return null!=e?(this.storeBit(1),this.storeVarInt(e,t)):this.storeBit(0),this}storeCoins(e){return this._bits.writeCoins(e),this}storeMaybeCoins(e){return null!=e?(this.storeBit(1),this.storeCoins(e)):this.storeBit(0),this}storeAddress(e){return this._bits.writeAddress(e),this}storeRef(e){if(this._refs.length>=4)throw new Error("Too many references");if(e instanceof r.Cell)this._refs.push(e);else{if(!(e instanceof o))throw new Error("Invalid argument");this._refs.push(e.endCell())}return this}storeMaybeRef(e){return e?(this.storeBit(1),this.storeRef(e)):this.storeBit(0),this}storeSlice(e){let t=e.clone();for(t.remainingBits>0&&this.storeBits(t.loadBits(t.remainingBits));t.remainingRefs>0;)this.storeRef(t.loadRef());return this}storeMaybeSlice(e){return e?(this.storeBit(1),this.storeSlice(e)):this.storeBit(0),this}storeBuilder(e){return this.storeSlice(e.endCell().beginParse())}storeMaybeBuilder(e){return e?(this.storeBit(1),this.storeBuilder(e)):this.storeBit(0),this}storeWritable(e){return"object"==typeof e?e.writeTo(this):e(this),this}storeMaybeWritable(e){return e?(this.storeBit(1),this.storeWritable(e)):this.storeBit(0),this}store(e){return this.storeWritable(e),this}storeStringTail(e){return(0,i.writeString)(e,this),this}storeMaybeStringTail(e){return null!=e?(this.storeBit(1),(0,i.writeString)(e,this)):this.storeBit(0),this}storeStringRefTail(e){return this.storeRef(s().storeStringTail(e)),this}storeMaybeStringRefTail(e){return null!=e?(this.storeBit(1),this.storeStringRefTail(e)):this.storeBit(0),this}storeDict(e,t,n){return e?e.store(this,t,n):this.storeBit(0),this}storeDictDirect(e,t,n){return e.storeDirect(this,t,n),this}endCell(e){return new r.Cell({bits:this._bits.build(),refs:this._refs,exotic:e?.exotic})}asCell(){return this.endCell()}asSlice(){return this.endCell().beginParse()}}t.Builder=o},69567:function(e,t,n){"use strict";var a,r=n(1048).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Cell=void 0;const s=i(n(64700)),o=n(48261),c=n(97623),u=n(17681),l=n(66390),d=n(62173),p=n(63860),h=n(12391),f=n(77856);class m{static fromBoc(e){return(0,p.deserializeBoc)(e)}static fromBase64(e){let t=m.fromBoc(r.from(e,"base64"));if(1!==t.length)throw new Error("Deserialized more than one cell");return t[0]}constructor(e){this._hashes=[],this._depths=[],this.beginParse=(e=!1)=>{if(this.isExotic&&!e)throw new Error("Exotic cells cannot be parsed");return new u.Slice(new h.BitReader(this.bits),this.refs)},this.hash=(e=3)=>this._hashes[Math.min(this._hashes.length-1,e)],this.depth=(e=3)=>this._depths[Math.min(this._depths.length-1,e)],this.level=()=>this.mask.level,this.equals=e=>this.hash().equals(e.hash()),this[a]=()=>this.toString();let t=o.BitString.EMPTY;e&&e.bits&&(t=e.bits);let n,r,i,s=[];e&&e.refs&&(s=[...e.refs]);let p=c.CellType.Ordinary;if(e&&e.exotic){let e=(0,l.resolveExotic)(t,s),a=(0,d.wonderCalculator)(e.type,t,s);i=a.mask,r=a.depths,n=a.hashes,p=e.type}else{if(s.length>4)throw new Error("Invalid number of references");if(t.length>1023)throw new Error(`Bits overflow: ${t.length} > 1023`);let e=(0,d.wonderCalculator)(c.CellType.Ordinary,t,s);i=e.mask,r=e.depths,n=e.hashes,p=c.CellType.Ordinary}this.type=p,this.bits=t,this.refs=s,this.mask=i,this._depths=r,this._hashes=n,Object.freeze(this),Object.freeze(this.refs),Object.freeze(this.bits),Object.freeze(this.mask),Object.freeze(this._depths),Object.freeze(this._hashes)}get isExotic(){return this.type!==c.CellType.Ordinary}toBoc(e){let t=!(!e||null===e.idx||void 0===e.idx)&&e.idx,n=!e||null===e.crc32||void 0===e.crc32||e.crc32;return(0,p.serializeBoc)(this,{idx:t,crc32:n})}toString(e){let t=e||"",n="x";this.isExotic&&(this.type===c.CellType.MerkleProof?n="p":this.type===c.CellType.MerkleUpdate?n="u":this.type===c.CellType.PrunedBranch&&(n="p"));let a=t+(this.isExotic?n:"x")+"{"+this.bits.toString()+"}";for(let e in this.refs)a+="\n"+this.refs[e].toString(t+" ");return a}asSlice(){return this.beginParse()}asBuilder(){return(0,f.beginCell)().storeSlice(this.asSlice())}}t.Cell=m,a=s.default,m.EMPTY=new m},97623:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CellType=void 0,function(e){e[e.Ordinary=-1]="Ordinary",e[e.PrunedBranch=1]="PrunedBranch",e[e.Library=2]="Library",e[e.MerkleProof=3]="MerkleProof",e[e.MerkleUpdate=4]="MerkleUpdate"}(n||(t.CellType=n={}))},17681:function(e,t,n){"use strict";var a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Slice=void 0;const i=r(n(64700)),s=n(35189),o=n(77856),c=n(63279);class u{constructor(e,t){this[a]=()=>this.toString(),this._reader=e.clone(),this._refs=[...t],this._refsOffset=0}get remainingBits(){return this._reader.remaining}get offsetBits(){return this._reader.offset}get remainingRefs(){return this._refs.length-this._refsOffset}get offsetRefs(){return this._refsOffset}skip(e){return this._reader.skip(e),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(e){return this._reader.loadBits(e)}preloadBits(e){return this._reader.preloadBits(e)}loadUint(e){return this._reader.loadUint(e)}loadUintBig(e){return this._reader.loadUintBig(e)}preloadUint(e){return this._reader.preloadUint(e)}preloadUintBig(e){return this._reader.preloadUintBig(e)}loadMaybeUint(e){return this.loadBit()?this.loadUint(e):null}loadMaybeUintBig(e){return this.loadBit()?this.loadUintBig(e):null}loadInt(e){return this._reader.loadInt(e)}loadIntBig(e){return this._reader.loadIntBig(e)}preloadInt(e){return this._reader.preloadInt(e)}preloadIntBig(e){return this._reader.preloadIntBig(e)}loadMaybeInt(e){return this.loadBit()?this.loadInt(e):null}loadMaybeIntBig(e){return this.loadBit()?this.loadIntBig(e):null}loadVarUint(e){return this._reader.loadVarUint(e)}loadVarUintBig(e){return this._reader.loadVarUintBig(e)}preloadVarUint(e){return this._reader.preloadVarUint(e)}preloadVarUintBig(e){return this._reader.preloadVarUintBig(e)}loadVarInt(e){return this._reader.loadVarInt(e)}loadVarIntBig(e){return this._reader.loadVarIntBig(e)}preloadVarInt(e){return this._reader.preloadVarInt(e)}preloadVarIntBig(e){return this._reader.preloadVarIntBig(e)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset++]}preloadRef(){if(this._refsOffset>=this._refs.length)throw new Error("No more references");return this._refs[this._refsOffset]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(e){return this._reader.loadBuffer(e)}preloadBuffer(e){return this._reader.preloadBuffer(e)}loadStringTail(){return(0,c.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,c.readString)(this):null}loadStringRefTail(){return(0,c.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){const e=this.loadMaybeRef();return e?(0,c.readString)(e.beginParse()):null}loadDict(e,t){return s.Dictionary.load(e,t,this)}loadDictDirect(e,t){return s.Dictionary.loadDirect(e,t,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error("Slice is not empty")}asCell(){return(0,o.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,o.beginCell)().storeSlice(this)}clone(e=!1){if(e){let e=this._reader.clone();return e.reset(),new u(e,this._refs)}{let e=new u(this._reader,this._refs);return e._refsOffset=this._refsOffset,e}}toString(){return this.asCell().toString()}}t.Slice=u,a=i.default},16282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LevelMask=void 0;class n{constructor(e=0){var t;this._mask=0,this._mask=e,this._hashIndex=(t=this._mask,16843009*((t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135)>>24),this._hashCount=this._hashIndex+1}get value(){return this._mask}get level(){return 32-Math.clz32(this._mask)}get hashIndex(){return this._hashIndex}get hashCount(){return this._hashCount}apply(e){return new n(this._mask&(1<>e-1)%2!=0}}t.LevelMask=n},20311:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.getRepr=t.getBitsDescriptor=t.getRefsDescriptor=void 0;const r=n(97623),i=n(20355);function s(e,t,n){return e.length+8*(n!==r.CellType.Ordinary?1:0)+32*t}function o(e){let t=e.length;return Math.ceil(t/8)+Math.floor(t/8)}t.getRefsDescriptor=s,t.getBitsDescriptor=o,t.getRepr=function(e,t,n,c,u,l){const d=Math.ceil(t.length/8),p=a.alloc(2+d+34*n.length);let h=0;p[h++]=s(n,u,l),p[h++]=o(e),(0,i.bitsToPaddedBuffer)(t).copy(p,h),h+=d;for(const e of n){let t;t=l==r.CellType.MerkleProof||l==r.CellType.MerkleUpdate?e.depth(c+1):e.depth(c),p[h++]=Math.floor(t/256),p[h++]=t%256}for(const e of n){let t;t=l==r.CellType.MerkleProof||l==r.CellType.MerkleUpdate?e.hash(c+1):e.hash(c),t.copy(p,h),h+=32}return p}},7389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exoticLibrary=void 0;const a=n(12391);t.exoticLibrary=function(e,t){const n=new a.BitReader(e);if(264!==e.length)throw new Error(`Library cell must have exactly (8 + 256) bits, got "${e.length}"`);let r=n.loadUint(8);if(2!==r)throw new Error(`Library cell must have type 2, got "${r}"`);return{}}},92294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exoticMerkleProof=void 0;const a=n(12391);t.exoticMerkleProof=function(e,t){const n=new a.BitReader(e);if(280!==e.length)throw new Error(`Merkle Proof cell must have exactly (8 + 256 + 16) bits, got "${e.length}"`);if(1!==t.length)throw new Error(`Merkle Proof cell must have exactly 1 ref, got "${t.length}"`);let r=n.loadUint(8);if(3!==r)throw new Error(`Merkle Proof cell must have type 3, got "${r}"`);const i=n.loadBuffer(32),s=n.loadUint(16),o=t[0].hash(0),c=t[0].depth(0);if(s!==c)throw new Error(`Merkle Proof cell ref depth must be exactly "${s}", got "${c}"`);if(!i.equals(o))throw new Error(`Merkle Proof cell ref hash must be exactly "${i.toString("hex")}", got "${o.toString("hex")}"`);return{proofDepth:s,proofHash:i}}},82319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exoticMerkleUpdate=void 0;const a=n(12391);t.exoticMerkleUpdate=function(e,t){const n=new a.BitReader(e);if(552!==e.length)throw new Error(`Merkle Update cell must have exactly (8 + (2 * (256 + 16))) bits, got "${e.length}"`);if(2!==t.length)throw new Error(`Merkle Update cell must have exactly 2 refs, got "${t.length}"`);let r=n.loadUint(8);if(4!==r)throw new Error(`Merkle Update cell type must be exactly 4, got "${r}"`);const i=n.loadBuffer(32),s=n.loadBuffer(32),o=n.loadUint(16),c=n.loadUint(16);if(o!==t[0].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly "${o}", got "${t[0].depth(0)}"`);if(!i.equals(t[0].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly "${i.toString("hex")}", got "${t[0].hash(0).toString("hex")}"`);if(c!==t[1].depth(0))throw new Error(`Merkle Update cell ref depth must be exactly "${c}", got "${t[1].depth(0)}"`);if(!s.equals(t[1].hash(0)))throw new Error(`Merkle Update cell ref hash must be exactly "${s.toString("hex")}", got "${t[1].hash(0).toString("hex")}"`);return{proofDepth1:o,proofDepth2:c,proofHash1:i,proofHash2:s}}},45488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exoticPruned=void 0;const a=n(12391),r=n(16282);t.exoticPruned=function(e,t){let n,i=new a.BitReader(e),s=i.loadUint(8);if(1!==s)throw new Error(`Pruned branch cell must have type 1, got "${s}"`);if(0!==t.length)throw new Error(`Pruned Branch cell can't has refs, got "${t.length}"`);if(280===e.length)n=new r.LevelMask(1);else{if(n=new r.LevelMask(i.loadUint(8)),n.level<1||n.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got "${n.level}/${n.value}"`);const t=16+272*n.apply(n.level-1).hashCount;if(e.length!==t)throw new Error(`Pruned branch cell must have exactly ${t} bits, got "${e.length}"`)}let o=[],c=[],u=[];for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveExotic=void 0;const a=n(12391),r=n(97623),i=n(7389),s=n(92294),o=n(82319),c=n(45488),u=n(16282);t.resolveExotic=function(e,t){let n=new a.BitReader(e).preloadUint(8);if(1===n)return function(e,t){let n=(0,c.exoticPruned)(e,t),a=[],i=[],s=new u.LevelMask(n.mask);for(let e=0;e>1);return{type:r.CellType.MerkleProof,depths:[],hashes:[],mask:n}}(e,t);if(4===n)return function(e,t){(0,o.exoticMerkleUpdate)(e,t);let n=new u.LevelMask((t[0].level()|t[1].level())>>1);return{type:r.CellType.MerkleUpdate,depths:[],hashes:[],mask:n}}(e,t);throw Error("Invalid exotic cell type: "+n)}},63860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeBoc=t.deserializeBoc=t.parseBoc=void 0;const a=n(12391),r=n(48261),i=n(69567),s=n(13281),o=n(40224),c=n(18889),u=n(20311),l=n(20355),d=n(82444);function p(e){return function(e){let t=0;for(let n=0;n<3;n++)t+=1&e,e>>=1;return t+1}(7&e)}function h(e,t){const n=e.loadUint(8),a=n%8,i=!!(8&n),s=e.loadUint(8),o=Math.ceil(s/2),c=!!(s%2),u=n>>5,l=!!(16&n),d=l?32*p(u):0,h=l?2*p(u):0;e.skip(8*d),e.skip(8*h);let f=r.BitString.EMPTY;o>0&&(f=c?e.loadPaddedBits(8*o):e.loadBits(8*o));let m=[];for(let n=0;n=0;e--){if(s[e].result)throw Error("Impossible");let t=[];for(let n of s[e].refs){if(!s[n].result)throw Error("Invalid BOC file");t.push(s[n].result)}s[e].result=new i.Cell({bits:s[e].bits,refs:t,exotic:s[e].exotic})}let o=[];for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.topologicalSort=void 0,t.topologicalSort=function(e){let t=[e],n=new Map,a=new Set,r=[];for(;t.length>0;){const e=[...t];t=[];for(let r of e){const e=r.hash().toString("hex");if(!n.has(e)){a.add(e),n.set(e,{cell:r,refs:r.refs.map((e=>e.hash().toString("hex")))});for(let e of r.refs)t.push(e)}}}let i=new Set;function s(e){if(!a.has(e))return;if(i.has(e))throw Error("Not a DAG");i.add(e);let t=n.get(e).refs;for(let e=t.length-1;e>=0;e--)s(t[e]);r.push(e),i.delete(e),a.delete(e)}for(;a.size>0;)s(Array.from(a)[0]);let o=new Map;for(let e=0;e=0;e--){let t=r[e];const a=n.get(t);c.push({cell:a.cell,refs:a.refs.map((e=>o.get(e)))})}return c}},62173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wonderCalculator=void 0;const a=n(48261),r=n(97623),i=n(16282),s=n(45488),o=n(92294),c=n(20311),u=n(43022),l=n(82319),d=n(7389);t.wonderCalculator=function(e,t,n){let p,h=null;if(e===r.CellType.Ordinary){let e=0;for(let t of n)e|=t.mask.value;p=new i.LevelMask(e)}else if(e===r.CellType.PrunedBranch)h=(0,s.exoticPruned)(t,n),p=new i.LevelMask(h.mask);else if(e===r.CellType.MerkleProof)(0,o.exoticMerkleProof)(t,n),p=new i.LevelMask(n[0].mask.value>>1);else if(e===r.CellType.MerkleUpdate)(0,l.exoticMerkleUpdate)(t,n),p=new i.LevelMask((n[0].mask.value|n[1].mask.value)>>1);else{if(e!==r.CellType.Library)throw new Error("Unsupported exotic type");(0,d.exoticLibrary)(t,n),p=new i.LevelMask}let f=[],m=[],y=e===r.CellType.PrunedBranch?1:p.hashCount,g=p.hashCount-y;for(let i=0,s=0;i<=p.level;i++){if(!p.isSignificant(i))continue;if(s0&&l++;let d=(0,c.getRepr)(t,o,n,i,p.apply(i).value,e),h=(0,u.sha256_sync)(d),y=s-g;f[y]=l,m[y]=h,s++}let b=[],v=[];if(h)for(let e=0;e<4;e++){const{hashIndex:t}=p.apply(e),{hashIndex:n}=p;t!==n?(b.push(h.pruned[t].hash),v.push(h.pruned[t].depth)):(b.push(m[0]),v.push(f[0]))}else for(let e=0;e<4;e++)b.push(m[p.apply(e).hashIndex]),v.push(f[p.apply(e).hashIndex]);return{mask:p,hashes:b,depths:v}}},20355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paddedBufferToBits=t.bitsToPaddedBuffer=void 0;const a=n(18889),r=n(48261);t.bitsToPaddedBuffer=function(e){let t=new a.BitBuilder(8*Math.ceil(e.length/8));t.writeBits(e);let n=8*Math.ceil(e.length/8)-e.length;for(let e=0;e=0;n--)if(0!==e[n]){const a=e[n];let r=a&-a;1&r||(r=Math.log2(r)+1),n>0&&(t=n<<3),t+=8-r;break}return new r.BitString(e,0,t)}},63279:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.writeString=t.stringToCell=t.readString=void 0;const r=n(77856);function i(e){if(e.remainingBits%8!=0)throw new Error(`Invalid string length: ${e.remainingBits}`);if(0!==e.remainingRefs&&1!==e.remainingRefs)throw new Error(`invalid number of refs: ${e.remainingRefs}`);let t;return t=0===e.remainingBits?a.alloc(0):e.loadBuffer(e.remainingBits/8),1===e.remainingRefs&&(t=a.concat([t,i(e.loadRef().beginParse())])),t}function s(e,t){if(e.length>0){let n=Math.floor(t.availableBits/8);if(e.length>n){let a=e.subarray(0,n),i=e.subarray(n);t=t.storeBuffer(a);let o=(0,r.beginCell)();s(i,o),t=t.storeRef(o.endCell())}else t=t.storeBuffer(e)}}t.readString=function(e){return i(e).toString()},t.stringToCell=function(e){let t=(0,r.beginCell)();return s(a.from(e),t),t.endCell()},t.writeString=function(e,t){s(a.from(e),t)}},88342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeError=void 0;class n extends Error{constructor(e,t,a){super(e),this.exitCode=t,this.debugLogs=a&&a.debugLogs?a.debugLogs:null,this.logs=a&&a.logs?a.logs:null,Object.setPrototypeOf(this,n.prototype)}}t.ComputeError=n},24693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openContract=void 0;const a=n(26575),r=n(69567);t.openContract=function(e,t){let n,i=null;if(!a.Address.isAddress(e.address))throw Error("Invalid address");if(n=e.address,e.init){if(!(e.init.code instanceof r.Cell))throw Error("Invalid init.code");if(!(e.init.data instanceof r.Cell))throw Error("Invalid init.data");i=e.init}let s=t({address:n,init:i});return new Proxy(e,{get(e,t){const n=e[t];return"string"==typeof t&&(t.startsWith("get")||t.startsWith("send"))&&"function"==typeof n?(...t)=>n.apply(e,[s,...t]):n}})}},93790:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.safeSignVerify=t.safeSign=void 0;const r=n(43022);function i(e,t){let n=a.from(t);if(n.length>64)throw Error("Seed can\t be longer than 64 bytes");if(n.length<8)throw Error("Seed must be at least 8 bytes");return(0,r.sha256_sync)(a.concat([a.from([255,255]),n,e.hash()]))}t.safeSign=function(e,t,n="ton-safe-sign-magic"){return(0,r.sign)(i(e,n),t)},t.safeSignVerify=function(e,t,n,a="ton-safe-sign-magic"){return(0,r.signVerify)(i(e,a),t,n)}},35189:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Dictionary=void 0;const r=n(26575),i=n(77856),s=n(69567),o=n(48261),c=n(98520),u=n(39389),l=n(89558),d=n(32323),p=n(24719);class h{static empty(e,t){return e&&t?new h(new Map,e,t):new h(new Map,null,null)}static load(e,t,n){let a;if(n instanceof s.Cell){if(n.isExotic)return h.empty(e,t);a=n.beginParse()}else a=n;let r=a.loadMaybeRef();return r&&!r.isExotic?h.loadDirect(e,t,r.beginParse()):h.empty(e,t)}static loadDirect(e,t,n){if(!n)return h.empty(e,t);let a;a=n instanceof s.Cell?n.beginParse():n;let r=(0,l.parseDict)(a,e.bits,t.parse),i=new Map;for(let[t,n]of r)i.set((0,p.serializeInternalKey)(e.parse(t)),n);return new h(i,e,t)}constructor(e,t,n){this._key=t,this._value=n,this._map=e}get size(){return this._map.size}get(e){return this._map.get((0,p.serializeInternalKey)(e))}has(e){return this._map.has((0,p.serializeInternalKey)(e))}set(e,t){return this._map.set((0,p.serializeInternalKey)(e),t),this}delete(e){const t=(0,p.serializeInternalKey)(e);return this._map.delete(t)}clear(){this._map.clear()}*[Symbol.iterator](){for(const[e,t]of this._map){const n=(0,p.deserializeInternalKey)(e);yield[n,t]}}keys(){return Array.from(this._map.keys()).map((e=>(0,p.deserializeInternalKey)(e)))}values(){return Array.from(this._map.values())}store(e,t,n){if(0===this._map.size)e.storeBit(0);else{let a=this._key;null!=t&&(a=t);let r=this._value;if(null!=n&&(r=n),!a)throw Error("Key serializer is not defined");if(!r)throw Error("Value serializer is not defined");let s=new Map;for(const[e,t]of this._map)s.set(a.serialize((0,p.deserializeInternalKey)(e)),t);e.storeBit(1);let o=(0,i.beginCell)();(0,d.serializeDict)(s,a.bits,r.serialize,o),e.storeRef(o.endCell())}}storeDirect(e,t,n){if(0===this._map.size)throw Error("Cannot store empty dictionary directly");let a=this._key;null!=t&&(a=t);let r=this._value;if(null!=n&&(r=n),!a)throw Error("Key serializer is not defined");if(!r)throw Error("Value serializer is not defined");let i=new Map;for(const[e,t]of this._map)i.set(a.serialize((0,p.deserializeInternalKey)(e)),t);(0,d.serializeDict)(i,a.bits,r.serialize,e)}generateMerkleProof(e){return(0,c.generateMerkleProof)(this,e,this._key)}generateMerkleUpdate(e,t){return(0,u.generateMerkleUpdate)(this,e,this._key,t)}}t.Dictionary=h,h.Keys={Address:()=>({bits:267,serialize:e=>{if(!r.Address.isAddress(e))throw Error("Key is not an address");return(0,i.beginCell)().storeAddress(e).endCell().beginParse().preloadUintBig(267)},parse:e=>(0,i.beginCell)().storeUint(e,267).endCell().beginParse().loadAddress()}),BigInt:e=>function(e){return{bits:e,serialize:t=>{if("bigint"!=typeof t)throw Error("Key is not a bigint");return(0,i.beginCell)().storeInt(t,e).endCell().beginParse().loadUintBig(e)},parse:t=>(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadIntBig(e)}}(e),Int:e=>function(e){return{bits:e,serialize:t=>{if("number"!=typeof t)throw Error("Key is not a number");if(!Number.isSafeInteger(t))throw Error("Key is not a safe integer: "+t);return(0,i.beginCell)().storeInt(t,e).endCell().beginParse().loadUintBig(e)},parse:t=>(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadInt(e)}}(e),BigUint:e=>function(e){return{bits:e,serialize:t=>{if("bigint"!=typeof t)throw Error("Key is not a bigint");if(t<0)throw Error("Key is negative: "+t);return(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadUintBig(e)},parse:t=>(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadUintBig(e)}}(e),Uint:e=>function(e){return{bits:e,serialize:t=>{if("number"!=typeof t)throw Error("Key is not a number");if(!Number.isSafeInteger(t))throw Error("Key is not a safe integer: "+t);if(t<0)throw Error("Key is negative: "+t);return(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadUintBig(e)},parse:t=>Number((0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadUint(e))}}(e),Buffer:e=>function(e){return{bits:8*e,serialize:t=>{if(!a.isBuffer(t))throw Error("Key is not a buffer");return(0,i.beginCell)().storeBuffer(t).endCell().beginParse().loadUintBig(8*e)},parse:t=>(0,i.beginCell)().storeUint(t,8*e).endCell().beginParse().loadBuffer(e)}}(e),BitString:e=>function(e){return{bits:e,serialize:t=>{if(!o.BitString.isBitString(t))throw Error("Key is not a BitString");return(0,i.beginCell)().storeBits(t).endCell().beginParse().loadUintBig(e)},parse:t=>(0,i.beginCell)().storeUint(t,e).endCell().beginParse().loadBits(e)}}(e)},h.Values={BigInt:e=>function(e){return{serialize:(t,n)=>{n.storeInt(t,e)},parse:t=>t.loadIntBig(e)}}(e),Int:e=>function(e){return{serialize:(t,n)=>{n.storeInt(t,e)},parse:t=>t.loadInt(e)}}(e),BigVarInt:e=>function(e){return{serialize:(t,n)=>{n.storeVarInt(t,e)},parse:t=>t.loadVarIntBig(e)}}(e),BigUint:e=>function(e){return{serialize:(t,n)=>{n.storeUint(t,e)},parse:t=>t.loadUintBig(e)}}(e),Uint:e=>function(e){return{serialize:(t,n)=>{n.storeUint(t,e)},parse:t=>t.loadUint(e)}}(e),BigVarUint:e=>function(e){return{serialize:(t,n)=>{n.storeVarUint(t,e)},parse:t=>t.loadVarUintBig(e)}}(e),Bool:()=>({serialize:(e,t)=>{t.storeBit(e)},parse:e=>e.loadBit()}),Address:()=>({serialize:(e,t)=>{t.storeAddress(e)},parse:e=>e.loadAddress()}),Cell:()=>({serialize:(e,t)=>{t.storeRef(e)},parse:e=>e.loadRef()}),Buffer:e=>{return t=e,{serialize:(e,n)=>{if(e.length!==t)throw Error("Invalid buffer size");n.storeBuffer(e)},parse:e=>e.loadBuffer(t)};var t},BitString:e=>function(e){return{serialize:(t,n)=>{if(t.length!==e)throw Error("Invalid BitString size");n.storeBits(t)},parse:t=>t.loadBits(e)}}(e),Dictionary:(e,t)=>function(e,t){return{serialize:(e,t)=>{e.store(t)},parse:n=>h.load(e,t,n)}}(e,t)}},98520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateMerkleProof=void 0;const a=n(77856),r=n(96156);function i(e){return(0,a.beginCell)().storeUint(1,8).storeUint(1,8).storeBuffer(e.hash(0)).storeUint(e.depth(0),16).endCell({exotic:!0})}function s(e,t,n,o){const c=t.asCell();let u=0,l=e;if(0==(t.loadBit()?1:0)){u=(0,r.readUnaryLength)(t);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateMerkleUpdate=void 0;const a=n(77856),r=n(98520);t.generateMerkleUpdate=function(e,t,n,i){const s=(0,r.generateMerkleProof)(e,t,n).refs[0];e.set(t,i);return o=s,c=(0,r.generateMerkleProof)(e,t,n).refs[0],(0,a.beginCell)().storeUint(4,8).storeBuffer(o.hash(0)).storeBuffer(c.hash(0)).storeUint(o.depth(0),16).storeUint(c.depth(0),16).storeRef(o).storeRef(c).endCell({exotic:!0});var o,c}},89558:(e,t)=>{"use strict";function n(e,t,a,r,i){let s=0,o=e;if(0==(t.loadBit()?1:0)){s=function(e){let t=0;for(;e.loadBit();)t++;return t}(t);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeDict=t.detectLabelType=t.writeLabelSame=t.writeLabelLong=t.writeLabelShort=t.buildTree=void 0;const a=n(77856),r=n(28605);function i(e,t){for(;e.length0&&t.storeUint(BigInt("0b"+e),e.length),t}function l(e,t,n){n.storeBit(1),n.storeBit(0);let a=Math.ceil(Math.log2(t+1));return n.storeUint(e.length,a),e.length>0&&n.storeUint(BigInt("0b"+e),e.length),n}function d(e,t,n,a){a.storeBit(1),a.storeBit(1),a.storeBit(e);let r=Math.ceil(Math.log2(n+1));a.storeUint(t,r)}function p(e,t){let n="short",a=function(e){return 1+e.length+1+e.length}(e),r=function(e,t){return 2+Math.ceil(Math.log2(t+1))+e.length}(e,t);if(r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findCommonPrefix=void 0,t.findCommonPrefix=function(e,t=0){if(0===e.length)return"";let n=e[0].slice(t);for(let a=1;a{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeInternalKey=t.serializeInternalKey=void 0;const r=n(26575),i=n(48261),s=n(20355);t.serializeInternalKey=function(e){if("number"==typeof e){if(!Number.isSafeInteger(e))throw Error("Invalid key type: not a safe integer: "+e);return"n:"+e.toString(10)}if("bigint"==typeof e)return"b:"+e.toString(10);if(r.Address.isAddress(e))return"a:"+e.toString();if(a.isBuffer(e))return"f:"+e.toString("hex");if(i.BitString.isBitString(e))return"B:"+e.toString();throw Error("Invalid key type")},t.deserializeInternalKey=function(e){let t=e.slice(0,2),n=e.slice(2);if("n:"===t)return parseInt(n,10);if("b:"===t)return BigInt(n);if("a:"===t)return r.Address.parse(n);if("f:"===t)return a.from(n,"hex");if("B:"===t){const e="_"==n.slice(-1);if(e||n.length%2!=0){let t=e?n.length-1:n.length;const r=n.substr(0,t)+"0";return!e&&1&t?new i.BitString(a.from(r,"hex"),0,t<<2):(0,s.paddedBufferToBits)(a.from(r,"hex"))}return new i.BitString(a.from(n,"hex"),0,n.length<<2)}throw Error("Invalid key type: "+t)}},96156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readUnaryLength=void 0,t.readUnaryLength=function(e){let t=0;for(;e.loadBit();)t++;return t}},6900:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.safeSignVerify=t.safeSign=t.getMethodId=t.base32Encode=t.base32Decode=t.crc32c=t.crc16=t.fromNano=t.toNano=t.ComputeError=t.openContract=t.TupleBuilder=t.TupleReader=t.serializeTuple=t.parseTuple=t.generateMerkleUpdate=t.generateMerkleProof=t.exoticPruned=t.exoticMerkleUpdate=t.exoticMerkleProof=t.Dictionary=t.Cell=t.CellType=t.Slice=t.beginCell=t.Builder=t.BitBuilder=t.BitReader=t.BitString=t.contractAddress=t.ADNLAddress=t.ExternalAddress=t.address=t.Address=void 0;var i=n(26575);Object.defineProperty(t,"Address",{enumerable:!0,get:function(){return i.Address}}),Object.defineProperty(t,"address",{enumerable:!0,get:function(){return i.address}});var s=n(58366);Object.defineProperty(t,"ExternalAddress",{enumerable:!0,get:function(){return s.ExternalAddress}});var o=n(51470);Object.defineProperty(t,"ADNLAddress",{enumerable:!0,get:function(){return o.ADNLAddress}});var c=n(41837);Object.defineProperty(t,"contractAddress",{enumerable:!0,get:function(){return c.contractAddress}});var u=n(48261);Object.defineProperty(t,"BitString",{enumerable:!0,get:function(){return u.BitString}});var l=n(12391);Object.defineProperty(t,"BitReader",{enumerable:!0,get:function(){return l.BitReader}});var d=n(18889);Object.defineProperty(t,"BitBuilder",{enumerable:!0,get:function(){return d.BitBuilder}});var p=n(77856);Object.defineProperty(t,"Builder",{enumerable:!0,get:function(){return p.Builder}}),Object.defineProperty(t,"beginCell",{enumerable:!0,get:function(){return p.beginCell}});var h=n(17681);Object.defineProperty(t,"Slice",{enumerable:!0,get:function(){return h.Slice}});var f=n(97623);Object.defineProperty(t,"CellType",{enumerable:!0,get:function(){return f.CellType}});var m=n(69567);Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return m.Cell}});var y=n(35189);Object.defineProperty(t,"Dictionary",{enumerable:!0,get:function(){return y.Dictionary}});var g=n(92294);Object.defineProperty(t,"exoticMerkleProof",{enumerable:!0,get:function(){return g.exoticMerkleProof}});var b=n(82319);Object.defineProperty(t,"exoticMerkleUpdate",{enumerable:!0,get:function(){return b.exoticMerkleUpdate}});var v=n(45488);Object.defineProperty(t,"exoticPruned",{enumerable:!0,get:function(){return v.exoticPruned}});var _=n(98520);Object.defineProperty(t,"generateMerkleProof",{enumerable:!0,get:function(){return _.generateMerkleProof}});var A=n(39389);Object.defineProperty(t,"generateMerkleUpdate",{enumerable:!0,get:function(){return A.generateMerkleUpdate}});var w=n(76983);Object.defineProperty(t,"parseTuple",{enumerable:!0,get:function(){return w.parseTuple}}),Object.defineProperty(t,"serializeTuple",{enumerable:!0,get:function(){return w.serializeTuple}});var I=n(39626);Object.defineProperty(t,"TupleReader",{enumerable:!0,get:function(){return I.TupleReader}});var S=n(52954);Object.defineProperty(t,"TupleBuilder",{enumerable:!0,get:function(){return S.TupleBuilder}}),r(n(56341),t);var x=n(24693);Object.defineProperty(t,"openContract",{enumerable:!0,get:function(){return x.openContract}});var C=n(88342);Object.defineProperty(t,"ComputeError",{enumerable:!0,get:function(){return C.ComputeError}});var k=n(24429);Object.defineProperty(t,"toNano",{enumerable:!0,get:function(){return k.toNano}}),Object.defineProperty(t,"fromNano",{enumerable:!0,get:function(){return k.fromNano}});var T=n(60431);Object.defineProperty(t,"crc16",{enumerable:!0,get:function(){return T.crc16}});var E=n(82444);Object.defineProperty(t,"crc32c",{enumerable:!0,get:function(){return E.crc32c}});var P=n(47040);Object.defineProperty(t,"base32Decode",{enumerable:!0,get:function(){return P.base32Decode}}),Object.defineProperty(t,"base32Encode",{enumerable:!0,get:function(){return P.base32Encode}});var O=n(39578);Object.defineProperty(t,"getMethodId",{enumerable:!0,get:function(){return O.getMethodId}});var B=n(93790);Object.defineProperty(t,"safeSign",{enumerable:!0,get:function(){return B.safeSign}}),Object.defineProperty(t,"safeSignVerify",{enumerable:!0,get:function(){return B.safeSignVerify}})},52954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleBuilder=void 0;const a=n(77856),r=n(69567),i=n(17681);t.TupleBuilder=class{constructor(){this._tuple=[]}writeNumber(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"int",value:BigInt(e)})}writeBoolean(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"int",value:e?-1n:0n})}writeBuffer(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,a.beginCell)().storeBuffer(e).endCell()})}writeString(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,a.beginCell)().storeStringTail(e).endCell()})}writeCell(e){null==e?this._tuple.push({type:"null"}):e instanceof r.Cell?this._tuple.push({type:"cell",cell:e}):e instanceof i.Slice&&this._tuple.push({type:"cell",cell:e.asCell()})}writeSlice(e){null==e?this._tuple.push({type:"null"}):e instanceof r.Cell?this._tuple.push({type:"slice",cell:e}):e instanceof i.Slice&&this._tuple.push({type:"slice",cell:e.asCell()})}writeBuilder(e){null==e?this._tuple.push({type:"null"}):e instanceof r.Cell?this._tuple.push({type:"builder",cell:e}):e instanceof i.Slice&&this._tuple.push({type:"builder",cell:e.asCell()})}writeTuple(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"tuple",items:e})}writeAddress(e){null==e?this._tuple.push({type:"null"}):this._tuple.push({type:"slice",cell:(0,a.beginCell)().storeAddress(e).endCell()})}build(){return[...this._tuple]}}},39626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleReader=void 0;class n{constructor(e){this.items=[...e]}get remaining(){return this.items.length}peek(){if(0===this.items.length)throw Error("EOF");return this.items[0]}pop(){if(0===this.items.length)throw Error("EOF");let e=this.items[0];return this.items.splice(0,1),e}skip(e=1){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTuple=t.serializeTuple=void 0;const a=n(77856),r=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807");function s(e,t){if("null"===e.type)t.storeUint(0,8);else if("int"===e.type)e.value<=i&&e.value>=r?(t.storeUint(1,8),t.storeInt(e.value,64)):(t.storeUint(256,15),t.storeInt(e.value,257));else if("nan"===e.type)t.storeInt(767,16);else if("cell"===e.type)t.storeUint(3,8),t.storeRef(e.cell);else if("slice"===e.type)t.storeUint(4,8),t.storeUint(0,10),t.storeUint(e.cell.bits.length,10),t.storeUint(0,3),t.storeUint(e.cell.refs.length,3),t.storeRef(e.cell);else if("builder"===e.type)t.storeUint(5,8),t.storeRef(e.cell);else{if("tuple"!==e.type)throw Error("Invalid value");{let n=null,r=null;for(let t=0;t1&&(n=(0,a.beginCell)().storeRef(r).storeRef(n).endCell());let o=(0,a.beginCell)();s(e.items[t],o),r=o.endCell()}t.storeUint(7,8),t.storeUint(e.items.length,16),n&&t.storeRef(n),r&&t.storeRef(r)}}}function o(e){let t=e.loadUint(8);if(0===t)return{type:"null"};if(1===t)return{type:"int",value:e.loadIntBig(64)};if(2===t)return 0===e.loadUint(7)?{type:"int",value:e.loadIntBig(257)}:(e.loadBit(),{type:"nan"});if(3===t)return{type:"cell",cell:e.loadRef()};if(4===t){let t=e.loadUint(10),n=e.loadUint(10),r=e.loadUint(3),i=e.loadUint(3),s=e.loadRef().beginParse();s.skip(t);let o=s.loadBits(n-t),c=(0,a.beginCell)().storeBits(o);if(r1){let a=e.loadRef().beginParse(),r=e.loadRef().beginParse();n.unshift(o(r));for(let e=0;e0){let n=(0,a.beginCell)();c(e.slice(0,e.length-1),n),t.storeRef(n.endCell()),s(e[e.length-1],t)}}t.serializeTuple=function(e){let t=(0,a.beginCell)();return t.storeUint(e.length,24),c([...e],t),t.endCell()},t.parseTuple=function(e){let t=[],n=e.beginParse(),a=n.loadUint(24);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeAccount=t.loadAccount=void 0;const a=n(39904),r=n(49573);t.loadAccount=function(e){return{addr:e.loadAddress(),storageStats:(0,r.loadStorageInfo)(e),storage:(0,a.loadAccountStorage)(e)}},t.storeAccount=function(e){return t=>{t.storeAddress(e.addr),t.store((0,r.storeStorageInfo)(e.storageStats)),t.store((0,a.storeAccountStorage)(e.storage))}}},14368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeAccountState=t.loadAccountState=void 0;const a=n(63545);t.loadAccountState=function(e){return e.loadBit()?{type:"active",state:(0,a.loadStateInit)(e)}:e.loadBit()?{type:"frozen",stateHash:e.loadUintBig(256)}:{type:"uninit"}},t.storeAccountState=function(e){return t=>{"active"===e.type?(t.storeBit(!0),t.store((0,a.storeStateInit)(e.state))):"frozen"===e.type?(t.storeBit(!1),t.storeBit(!0),t.storeUint(e.stateHash,256)):"uninit"===e.type&&(t.storeBit(!1),t.storeBit(!1))}}},18287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeAccountStatus=t.loadAccountStatus=void 0,t.loadAccountStatus=function(e){const t=e.loadUint(2);if(0===t)return"uninitialized";if(1===t)return"frozen";if(2===t)return"active";if(3===t)return"non-existing";throw Error("Invalid data")},t.storeAccountStatus=function(e){return t=>{if("uninitialized"===e)t.storeUint(0,2);else if("frozen"===e)t.storeUint(1,2);else if("active"===e)t.storeUint(2,2);else{if("non-existing"!==e)throw Error("Invalid data");t.storeUint(3,2)}return t}}},40991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeAccountStatusChange=t.loadAccountStatusChange=void 0,t.loadAccountStatusChange=function(e){return e.loadBit()?e.loadBit()?"deleted":"frozen":"unchanged"},t.storeAccountStatusChange=function(e){return t=>{if("unchanged"==e)t.storeBit(0);else if("frozen"===e)t.storeBit(1),t.storeBit(0);else{if("deleted"!==e)throw Error("Invalid account status change");t.storeBit(1),t.storeBit(1)}}}},39904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeAccountStorage=t.loadAccountStorage=void 0;const a=n(14368),r=n(95467);t.loadAccountStorage=function(e){return{lastTransLt:e.loadUintBig(64),balance:(0,r.loadCurrencyCollection)(e),state:(0,a.loadAccountState)(e)}},t.storeAccountStorage=function(e){return t=>{t.storeUint(e.lastTransLt,64),t.store((0,r.storeCurrencyCollection)(e.balance)),t.store((0,a.storeAccountState)(e.state))}}},80426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeCommonMessageInfo=t.loadCommonMessageInfo=void 0;const a=n(95467);t.loadCommonMessageInfo=function(e){return e.loadBit()?e.loadBit()?{type:"external-out",src:e.loadAddress(),dest:e.loadMaybeExternalAddress(),createdLt:e.loadUintBig(64),createdAt:e.loadUint(32)}:{type:"external-in",src:e.loadMaybeExternalAddress(),dest:e.loadAddress(),importFee:e.loadCoins()}:{type:"internal",ihrDisabled:e.loadBit(),bounce:e.loadBit(),bounced:e.loadBit(),src:e.loadAddress(),dest:e.loadAddress(),value:(0,a.loadCurrencyCollection)(e),ihrFee:e.loadCoins(),forwardFee:e.loadCoins(),createdLt:e.loadUintBig(64),createdAt:e.loadUint(32)}},t.storeCommonMessageInfo=function(e){return t=>{if("internal"===e.type)t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,a.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else if("external-in"===e.type)t.storeBit(1),t.storeBit(0),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeCoins(e.importFee);else{if("external-out"!==e.type)throw new Error("Unknown CommonMessageInfo type");t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32)}}}},53335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeCommonMessageInfoRelaxed=t.loadCommonMessageInfoRelaxed=void 0;const a=n(95467);t.loadCommonMessageInfoRelaxed=function(e){if(!e.loadBit())return{type:"internal",ihrDisabled:e.loadBit(),bounce:e.loadBit(),bounced:e.loadBit(),src:e.loadMaybeAddress(),dest:e.loadAddress(),value:(0,a.loadCurrencyCollection)(e),ihrFee:e.loadCoins(),forwardFee:e.loadCoins(),createdLt:e.loadUintBig(64),createdAt:e.loadUint(32)};if(!e.loadBit())throw Error("External In message is not possible for CommonMessageInfoRelaxed");return{type:"external-out",src:e.loadMaybeAddress(),dest:e.loadMaybeExternalAddress(),createdLt:e.loadUintBig(64),createdAt:e.loadUint(32)}},t.storeCommonMessageInfoRelaxed=function(e){return t=>{if("internal"===e.type)t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,a.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else{if("external-out"!==e.type)throw new Error("Unknown CommonMessageInfo type");t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32)}}}},26372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeComputeSkipReason=t.loadComputeSkipReason=void 0,t.loadComputeSkipReason=function(e){let t=e.loadUint(2);if(0===t)return"no-state";if(1===t)return"bad-state";if(2===t)return"no-gas";throw new Error(`Unknown ComputeSkipReason: ${t}`)},t.storeComputeSkipReason=function(e){return t=>{if("no-state"===e)t.storeUint(0,2);else if("bad-state"===e)t.storeUint(1,2);else{if("no-gas"!==e)throw new Error(`Unknown ComputeSkipReason: ${e}`);t.storeUint(2,2)}}}},95467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeCurrencyCollection=t.loadCurrencyCollection=void 0;const a=n(35189);t.loadCurrencyCollection=function(e){const t=e.loadCoins(),n=e.loadDict(a.Dictionary.Keys.Uint(32),a.Dictionary.Values.BigVarUint(5));return 0===n.size?{coins:t}:{other:n,coins:t}},t.storeCurrencyCollection=function(e){return t=>{t.storeCoins(e.coins),e.other?t.storeDict(e.other):t.storeBit(0)}}},10883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeDepthBalanceInfo=t.loadDepthBalanceInfo=void 0;const a=n(95467);t.loadDepthBalanceInfo=function(e){return{splitDepth:e.loadUint(5),balance:(0,a.loadCurrencyCollection)(e)}},t.storeDepthBalanceInfo=function(e){return t=>{t.storeUint(e.splitDepth,5),t.store((0,a.storeCurrencyCollection)(e.balance))}}},27661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeHashUpdate=t.loadHashUpdate=void 0,t.loadHashUpdate=function(e){if(114!==e.loadUint(8))throw Error("Invalid data");return{oldHash:e.loadBuffer(32),newHash:e.loadBuffer(32)}},t.storeHashUpdate=function(e){return t=>{t.storeUint(114,8),t.storeBuffer(e.oldHash),t.storeBuffer(e.newHash)}}},69672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadMasterchainStateExtra=void 0;const a=n(35189),r=n(95467);t.loadMasterchainStateExtra=function(e){if(52262!==e.loadUint(16))throw Error("Invalid data");e.loadBit()&&e.loadRef();let t=e.loadUintBig(256);return{config:a.Dictionary.load(a.Dictionary.Keys.Int(32),a.Dictionary.Values.Cell(),e),configAddress:t,globalBalance:(0,r.loadCurrencyCollection)(e)}}},56781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageValue=t.storeMessage=t.loadMessage=void 0;const a=n(77856),r=n(80426),i=n(63545);function s(e){const t=(0,r.loadCommonMessageInfo)(e);let n=null;return e.loadBit()&&(n=e.loadBit()?(0,i.loadStateInit)(e.loadRef().beginParse()):(0,i.loadStateInit)(e)),{info:t,init:n,body:e.loadBit()?e.loadRef():e.asCell()}}function o(e,t){return n=>{if(n.store((0,r.storeCommonMessageInfo)(e.info)),e.init){n.storeBit(!0);let r=(0,a.beginCell)().store((0,i.storeStateInit)(e.init)),s=!1;s=!(!t||!t.forceRef)||n.availableBits-24,s?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}t.loadMessage=s,t.storeMessage=o,t.MessageValue={serialize(e,t){t.storeRef((0,a.beginCell)().store(o(e)))},parse:e=>s(e.loadRef().beginParse())}},1914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeMessageRelaxed=t.loadMessageRelaxed=void 0;const a=n(77856),r=n(53335),i=n(63545);t.loadMessageRelaxed=function(e){const t=(0,r.loadCommonMessageInfoRelaxed)(e);let n=null;return e.loadBit()&&(n=e.loadBit()?(0,i.loadStateInit)(e.loadRef().beginParse()):(0,i.loadStateInit)(e)),{info:t,init:n,body:e.loadBit()?e.loadRef():e.asCell()}},t.storeMessageRelaxed=function(e,t){return n=>{if(n.store((0,r.storeCommonMessageInfoRelaxed)(e.info)),e.init){n.storeBit(!0);let r=(0,a.beginCell)().store((0,i.storeStateInit)(e.init)),s=!1;s=!((!t||!t.forceRef)&&n.availableBits-2>=r.bits),s?(n.storeBit(!0),n.storeRef(r)):(n.storeBit(!1),n.storeBuilder(r))}else n.storeBit(!1);let s=!1;s=!(!t||!t.forceRef)||!(n.availableBits-1>=e.body.bits.length&&n.refs+e.body.refs.length<=4&&!e.body.isExotic),s?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}},42114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadOutList=t.storeOutList=t.loadOutAction=t.storeOutAction=void 0;const a=n(1914),r=n(77856);function i(e){switch(e.type){case"sendMsg":return function(e){return t=>{t.storeUint(s,32).storeUint(e.mode,8).storeRef((0,r.beginCell)().store((0,a.storeMessageRelaxed)(e.outMsg)).endCell())}}(e);case"setCode":return function(e){return t=>{t.storeUint(o,32).storeRef(e.newCode)}}(e);default:throw new Error(`Unknown action type ${e.type}`)}}t.storeOutAction=i;const s=247711853,o=2907562126;function c(e){const t=e.loadUint(32);if(t===s)return{type:"sendMsg",mode:e.loadUint(8),outMsg:(0,a.loadMessageRelaxed)(e.loadRef().beginParse())};if(t===o)return{type:"setCode",newCode:e.loadRef()};throw new Error(`Unknown out action tag 0x${t.toString(16)}`)}t.loadOutAction=c,t.storeOutList=function(e){const t=e.reduce(((e,t)=>(0,r.beginCell)().storeRef(e).store(i(t)).endCell()),(0,r.beginCell)().endCell());return e=>{e.storeSlice(t.beginParse())}},t.loadOutList=function(e){const t=[];for(;e.remainingRefs;){const n=e.loadRef();t.push(c(e)),e=n.beginParse()}return t.reverse()}},13269:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SendMode=void 0,function(e){e[e.CARRY_ALL_REMAINING_BALANCE=128]="CARRY_ALL_REMAINING_BALANCE",e[e.CARRY_ALL_REMAINING_INCOMING_VALUE=64]="CARRY_ALL_REMAINING_INCOMING_VALUE",e[e.DESTROY_ACCOUNT_IF_ZERO=32]="DESTROY_ACCOUNT_IF_ZERO",e[e.PAY_GAS_SEPARATELY=1]="PAY_GAS_SEPARATELY",e[e.IGNORE_ERRORS=2]="IGNORE_ERRORS",e[e.NONE=0]="NONE"}(n||(t.SendMode=n={}))},27163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeShardAccount=t.loadShardAccount=void 0;const a=n(77856),r=n(66721);t.loadShardAccount=function(e){let t,n=e.loadRef();if(!n.isExotic){let e=n.beginParse();e.loadBit()&&(t=(0,r.loadAccount)(e))}return{account:t,lastTransactionHash:e.loadUintBig(256),lastTransactionLt:e.loadUintBig(64)}},t.storeShardAccount=function(e){return t=>{e.account?t.storeRef((0,a.beginCell)().storeBit(!0).store((0,r.storeAccount)(e.account))):t.storeRef((0,a.beginCell)().storeBit(!1)),t.storeUint(e.lastTransactionHash,256),t.storeUint(e.lastTransactionLt,64)}}},59598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeShardAccounts=t.loadShardAccounts=t.ShardAccountRefValue=void 0;const a=n(35189),r=n(10883),i=n(27163);t.ShardAccountRefValue={parse:e=>({depthBalanceInfo:(0,r.loadDepthBalanceInfo)(e),shardAccount:(0,i.loadShardAccount)(e)}),serialize(e,t){t.store((0,r.storeDepthBalanceInfo)(e.depthBalanceInfo)),t.store((0,i.storeShardAccount)(e.shardAccount))}},t.loadShardAccounts=function(e){return a.Dictionary.load(a.Dictionary.Keys.BigUint(256),t.ShardAccountRefValue,e)},t.storeShardAccounts=function(e){return t=>{t.storeDict(e)}}},75198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeShardIdent=t.loadShardIdent=void 0,t.loadShardIdent=function(e){if(0!==e.loadUint(2))throw Error("Invalid data");return{shardPrefixBits:e.loadUint(6),workchainId:e.loadInt(32),shardPrefix:e.loadUintBig(64)}},t.storeShardIdent=function(e){return t=>{t.storeUint(0,2),t.storeUint(e.shardPrefixBits,6),t.storeInt(e.workchainId,32),t.storeUint(e.shardPrefix,64)}}},99680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadShardStateUnsplit=void 0;const a=n(69672),r=n(59598),i=n(75198);t.loadShardStateUnsplit=function(e){if(2418257890!==e.loadUint(32))throw Error("Invalid data");let t=e.loadInt(32),n=(0,i.loadShardIdent)(e),s=e.loadUint(32),o=e.loadUint(32),c=e.loadUint(32),u=e.loadUintBig(64),l=e.loadUint(32);e.loadRef();let d,p=e.loadBit(),h=e.loadRef();h.isExotic||(d=(0,r.loadShardAccounts)(h.beginParse())),e.loadRef();let f=null;if(e.loadBit()){let t=e.loadRef();t.isExotic||(f=(0,a.loadMasterchainStateExtra)(t.beginParse()))}return{globalId:t,shardId:n,seqno:s,vertSeqNo:o,genUtime:c,genLt:u,minRefMcSeqno:l,beforeSplit:p,accounts:d,extras:f}}},91891:(e,t)=>{"use strict";function n(e){return{public:e.loadBit(),root:e.loadRef()}}function a(e){return t=>{t.storeBit(e.public),t.storeRef(e.root)}}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLibraryValue=t.storeSimpleLibrary=t.loadSimpleLibrary=void 0,t.loadSimpleLibrary=n,t.storeSimpleLibrary=a,t.SimpleLibraryValue={serialize(e,t){a(e)(t)},parse:e=>n(e)}},12004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeSplitMergeInfo=t.loadSplitMergeInfo=void 0,t.loadSplitMergeInfo=function(e){return{currentShardPrefixLength:e.loadUint(6),accountSplitDepth:e.loadUint(6),thisAddress:e.loadUintBig(256),siblingAddress:e.loadUintBig(256)}},t.storeSplitMergeInfo=function(e){return t=>{t.storeUint(e.currentShardPrefixLength,6),t.storeUint(e.accountSplitDepth,6),t.storeUint(e.thisAddress,256),t.storeUint(e.siblingAddress,256)}}},63545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeStateInit=t.loadStateInit=void 0;const a=n(35189),r=n(91891),i=n(44286);t.loadStateInit=function(e){let t,n;e.loadBit()&&(t=e.loadUint(5)),e.loadBit()&&(n=(0,i.loadTickTock)(e));let s=e.loadMaybeRef(),o=e.loadMaybeRef(),c=e.loadDict(a.Dictionary.Keys.BigUint(256),r.SimpleLibraryValue);return 0===c.size&&(c=void 0),{splitDepth:t,special:n,code:s,data:o,libraries:c}},t.storeStateInit=function(e){return t=>{null!==e.splitDepth&&void 0!==e.splitDepth?(t.storeBit(!0),t.storeUint(e.splitDepth,5)):t.storeBit(!1),null!==e.special&&void 0!==e.special?(t.storeBit(!0),t.store((0,i.storeTickTock)(e.special))):t.storeBit(!1),t.storeMaybeRef(e.code),t.storeMaybeRef(e.data),t.storeDict(e.libraries)}}},49573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeStorageInfo=t.loadStorageInfo=void 0;const a=n(47486);t.loadStorageInfo=function(e){return{used:(0,a.loadStorageUsed)(e),lastPaid:e.loadUint(32),duePayment:e.loadMaybeCoins()}},t.storeStorageInfo=function(e){return t=>{t.store((0,a.storeStorageUsed)(e.used)),t.storeUint(e.lastPaid,32),t.storeMaybeCoins(e.duePayment)}}},47486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeStorageUsed=t.loadStorageUsed=void 0,t.loadStorageUsed=function(e){return{cells:e.loadVarUintBig(3),bits:e.loadVarUintBig(3),publicCells:e.loadVarUintBig(3)}},t.storeStorageUsed=function(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3),t.storeVarUint(e.publicCells,3)}}},96694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeStorageUsedShort=t.loadStorageUsedShort=void 0,t.loadStorageUsedShort=function(e){return{cells:e.loadVarUintBig(3),bits:e.loadVarUintBig(3)}},t.storeStorageUsedShort=function(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3)}}},44286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTickTock=t.loadTickTock=void 0,t.loadTickTock=function(e){return{tick:e.loadBit(),tock:e.loadBit()}},t.storeTickTock=function(e){return t=>{t.storeBit(e.tick),t.storeBit(e.tock)}}},40718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransaction=t.loadTransaction=void 0;const a=n(77856),r=n(35189),i=n(18287),s=n(95467),o=n(27661),c=n(56781),u=n(95754);t.loadTransaction=function(e){let t=e.asCell();if(7!==e.loadUint(4))throw Error("Invalid data");let n=e.loadUintBig(256),a=e.loadUintBig(64),l=e.loadUintBig(256),d=e.loadUintBig(64),p=e.loadUint(32),h=e.loadUint(15),f=(0,i.loadAccountStatus)(e),m=(0,i.loadAccountStatus)(e),y=e.loadRef().beginParse(),g=y.loadBit()?(0,c.loadMessage)(y.loadRef().beginParse()):void 0,b=y.loadDict(r.Dictionary.Keys.Uint(15),c.MessageValue);return y.endParse(),{address:n,lt:a,prevTransactionHash:l,prevTransactionLt:d,now:p,outMessagesCount:h,oldStatus:f,endStatus:m,inMessage:g,outMessages:b,totalFees:(0,s.loadCurrencyCollection)(e),stateUpdate:(0,o.loadHashUpdate)(e.loadRef().beginParse()),description:(0,u.loadTransactionDescription)(e.loadRef().beginParse()),raw:t,hash:()=>t.hash()}},t.storeTransaction=function(e){return t=>{t.storeUint(7,4),t.storeUint(e.address,256),t.storeUint(e.lt,64),t.storeUint(e.prevTransactionHash,256),t.storeUint(e.prevTransactionLt,64),t.storeUint(e.now,32),t.storeUint(e.outMessagesCount,15),t.store((0,i.storeAccountStatus)(e.oldStatus)),t.store((0,i.storeAccountStatus)(e.endStatus));let n=(0,a.beginCell)();e.inMessage?(n.storeBit(!0),n.storeRef((0,a.beginCell)().store((0,c.storeMessage)(e.inMessage)))):n.storeBit(!1),n.storeDict(e.outMessages),t.storeRef(n),t.store((0,s.storeCurrencyCollection)(e.totalFees)),t.storeRef((0,a.beginCell)().store((0,o.storeHashUpdate)(e.stateUpdate))),t.storeRef((0,a.beginCell)().store((0,u.storeTransactionDescription)(e.description)))}}},5197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionActionPhase=t.loadTransactionActionPhase=void 0;const a=n(40991),r=n(96694);t.loadTransactionActionPhase=function(e){return{success:e.loadBit(),valid:e.loadBit(),noFunds:e.loadBit(),statusChange:(0,a.loadAccountStatusChange)(e),totalFwdFees:e.loadBit()?e.loadCoins():void 0,totalActionFees:e.loadBit()?e.loadCoins():void 0,resultCode:e.loadInt(32),resultArg:e.loadBit()?e.loadInt(32):void 0,totalActions:e.loadUint(16),specActions:e.loadUint(16),skippedActions:e.loadUint(16),messagesCreated:e.loadUint(16),actionListHash:e.loadUintBig(256),totalMessageSize:(0,r.loadStorageUsedShort)(e)}},t.storeTransactionActionPhase=function(e){return t=>{t.storeBit(e.success),t.storeBit(e.valid),t.storeBit(e.noFunds),t.store((0,a.storeAccountStatusChange)(e.statusChange)),t.storeMaybeCoins(e.totalFwdFees),t.storeMaybeCoins(e.totalActionFees),t.storeInt(e.resultCode,32),t.storeMaybeInt(e.resultArg,32),t.storeUint(e.totalActions,16),t.storeUint(e.specActions,16),t.storeUint(e.skippedActions,16),t.storeUint(e.messagesCreated,16),t.storeUint(e.actionListHash,256),t.store((0,r.storeStorageUsedShort)(e.totalMessageSize))}}},79239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionBouncePhase=t.loadTransactionBouncePhase=void 0;const a=n(96694);t.loadTransactionBouncePhase=function(e){return e.loadBit()?{type:"ok",messageSize:(0,a.loadStorageUsedShort)(e),messageFees:e.loadCoins(),forwardFees:e.loadCoins()}:e.loadBit()?{type:"no-funds",messageSize:(0,a.loadStorageUsedShort)(e),requiredForwardFees:e.loadCoins()}:{type:"negative-funds"}},t.storeTransactionBouncePhase=function(e){return t=>{if("ok"===e.type)t.storeBit(!0),t.store((0,a.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.messageFees),t.storeCoins(e.forwardFees);else if("negative-funds"===e.type)t.storeBit(!1),t.storeBit(!1);else{if("no-funds"!==e.type)throw new Error("Invalid TransactionBouncePhase type");t.storeBit(!1),t.storeBit(!0),t.store((0,a.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.requiredForwardFees)}}}},28018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionComputePhase=t.loadTransactionComputePhase=void 0;const a=n(77856),r=n(26372);t.loadTransactionComputePhase=function(e){if(!e.loadBit())return{type:"skipped",reason:(0,r.loadComputeSkipReason)(e)};let t=e.loadBit(),n=e.loadBit(),a=e.loadBit(),i=e.loadCoins();const s=e.loadRef().beginParse();return{type:"vm",success:t,messageStateUsed:n,accountActivated:a,gasFees:i,gasUsed:s.loadVarUintBig(3),gasLimit:s.loadVarUintBig(3),gasCredit:s.loadBit()?s.loadVarUintBig(2):void 0,mode:s.loadUint(8),exitCode:s.loadInt(32),exitArg:s.loadBit()?s.loadInt(32):void 0,vmSteps:s.loadUint(32),vmInitStateHash:s.loadUintBig(256),vmFinalStateHash:s.loadUintBig(256)}},t.storeTransactionComputePhase=function(e){return t=>{if("skipped"===e.type)return t.storeBit(0),void t.store((0,r.storeComputeSkipReason)(e.reason));t.storeBit(1),t.storeBit(e.success),t.storeBit(e.messageStateUsed),t.storeBit(e.accountActivated),t.storeCoins(e.gasFees),t.storeRef((0,a.beginCell)().storeVarUint(e.gasUsed,3).storeVarUint(e.gasLimit,3).store((t=>void 0!==e.gasCredit&&null!==e.gasCredit?t.storeBit(1).storeVarUint(e.gasCredit,2):t.storeBit(0))).storeUint(e.mode,8).storeInt(e.exitCode,32).store((t=>void 0!==e.exitArg&&null!==e.exitArg?t.storeBit(1).storeInt(e.exitArg,32):t.storeBit(0))).storeUint(e.vmSteps,32).storeUint(e.vmInitStateHash,256).storeUint(e.vmFinalStateHash,256).endCell())}}},52352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionCreditPhase=t.loadTransactionCreditPhase=void 0;const a=n(95467);t.loadTransactionCreditPhase=function(e){return{dueFeesColelcted:e.loadBit()?e.loadCoins():void 0,credit:(0,a.loadCurrencyCollection)(e)}},t.storeTransactionCreditPhase=function(e){return t=>{null===e.dueFeesColelcted||void 0===e.dueFeesColelcted?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.dueFeesColelcted)),t.store((0,a.storeCurrencyCollection)(e.credit))}}},95754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionDescription=t.loadTransactionDescription=void 0;const a=n(77856),r=n(12004),i=n(40718),s=n(5197),o=n(79239),c=n(28018),u=n(52352),l=n(91774);t.loadTransactionDescription=function(e){let t=e.loadUint(4);if(0===t){const t=e.loadBit();let n,a;e.loadBit()&&(n=(0,l.loadTransactionStoragePhase)(e)),e.loadBit()&&(a=(0,u.loadTransactionCreditPhase)(e));let r,i=(0,c.loadTransactionComputePhase)(e);e.loadBit()&&(r=(0,s.loadTransactionActionPhase)(e.loadRef().beginParse()));let d,p=e.loadBit();return e.loadBit()&&(d=(0,o.loadTransactionBouncePhase)(e)),{type:"generic",creditFirst:t,storagePhase:n,creditPhase:a,computePhase:i,actionPhase:r,bouncePhase:d,aborted:p,destroyed:e.loadBit()}}if(1===t)return{type:"storage",storagePhase:(0,l.loadTransactionStoragePhase)(e)};if(2===t||3===t){const n=3===t;let a,r=(0,l.loadTransactionStoragePhase)(e),i=(0,c.loadTransactionComputePhase)(e);return e.loadBit()&&(a=(0,s.loadTransactionActionPhase)(e.loadRef().beginParse())),{type:"tick-tock",isTock:n,storagePhase:r,computePhase:i,actionPhase:a,aborted:e.loadBit(),destroyed:e.loadBit()}}if(4===t){let t,n=(0,r.loadSplitMergeInfo)(e);e.loadBit()&&(t=(0,l.loadTransactionStoragePhase)(e));let a,i=(0,c.loadTransactionComputePhase)(e);return e.loadBit()&&(a=(0,s.loadTransactionActionPhase)(e.loadRef().beginParse())),{type:"split-prepare",splitInfo:n,storagePhase:t,computePhase:i,actionPhase:a,aborted:e.loadBit(),destroyed:e.loadBit()}}if(5===t)return{type:"split-install",splitInfo:(0,r.loadSplitMergeInfo)(e),prepareTransaction:(0,i.loadTransaction)(e.loadRef().beginParse()),installed:e.loadBit()};throw Error(`Unsupported transaction description type ${t}`)},t.storeTransactionDescription=function(e){return t=>{if("generic"===e.type)t.storeUint(0,4),t.storeBit(e.creditFirst),e.storagePhase?(t.storeBit(!0),t.store((0,l.storeTransactionsStoragePhase)(e.storagePhase))):t.storeBit(!1),e.creditPhase?(t.storeBit(!0),t.store((0,u.storeTransactionCreditPhase)(e.creditPhase))):t.storeBit(!1),t.store((0,c.storeTransactionComputePhase)(e.computePhase)),e.actionPhase?(t.storeBit(!0),t.storeRef((0,a.beginCell)().store((0,s.storeTransactionActionPhase)(e.actionPhase)))):t.storeBit(!1),t.storeBit(e.aborted),e.bouncePhase?(t.storeBit(!0),t.store((0,o.storeTransactionBouncePhase)(e.bouncePhase))):t.storeBit(!1),t.storeBit(e.destroyed);else if("storage"===e.type)t.storeUint(1,4),t.store((0,l.storeTransactionsStoragePhase)(e.storagePhase));else if("tick-tock"===e.type)t.storeUint(e.isTock?3:2,4),t.store((0,l.storeTransactionsStoragePhase)(e.storagePhase)),t.store((0,c.storeTransactionComputePhase)(e.computePhase)),e.actionPhase?(t.storeBit(!0),t.storeRef((0,a.beginCell)().store((0,s.storeTransactionActionPhase)(e.actionPhase)))):t.storeBit(!1),t.storeBit(e.aborted),t.storeBit(e.destroyed);else if("split-prepare"===e.type)t.storeUint(4,4),t.store((0,r.storeSplitMergeInfo)(e.splitInfo)),e.storagePhase?(t.storeBit(!0),t.store((0,l.storeTransactionsStoragePhase)(e.storagePhase))):t.storeBit(!1),t.store((0,c.storeTransactionComputePhase)(e.computePhase)),e.actionPhase?(t.storeBit(!0),t.store((0,s.storeTransactionActionPhase)(e.actionPhase))):t.storeBit(!1),t.storeBit(e.aborted),t.storeBit(e.destroyed);else{if("split-install"!==e.type)throw Error(`Unsupported transaction description type ${e.type}`);t.storeUint(5,4),t.store((0,r.storeSplitMergeInfo)(e.splitInfo)),t.storeRef((0,a.beginCell)().store((0,i.storeTransaction)(e.prepareTransaction))),t.storeBit(e.installed)}}}},91774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeTransactionsStoragePhase=t.loadTransactionStoragePhase=void 0;const a=n(40991);t.loadTransactionStoragePhase=function(e){const t=e.loadCoins();let n;return e.loadBit()&&(n=e.loadCoins()),{storageFeesCollected:t,storageFeesDue:n,statusChange:(0,a.loadAccountStatusChange)(e)}},t.storeTransactionsStoragePhase=function(e){return t=>{t.storeCoins(e.storageFeesCollected),null===e.storageFeesDue||void 0===e.storageFeesDue?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.storageFeesDue)),t.store((0,a.storeAccountStatusChange)(e.statusChange))}}},56341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadStorageInfo=t.storeStateInit=t.loadStateInit=t.storeSplitMergeInfo=t.loadSplitMergeInfo=t.storeSimpleLibrary=t.loadSimpleLibrary=t.loadShardStateUnsplit=t.storeShardIdent=t.loadShardIdent=t.storeShardAccounts=t.loadShardAccounts=t.ShardAccountRefValue=t.storeShardAccount=t.loadShardAccount=t.SendMode=t.storeMessageRelaxed=t.loadMessageRelaxed=t.storeMessage=t.loadMessage=t.loadMasterchainStateExtra=t.storeHashUpdate=t.loadHashUpdate=t.storeDepthBalanceInfo=t.loadDepthBalanceInfo=t.storeCurrencyCollection=t.loadCurrencyCollection=t.storeComputeSkipReason=t.loadComputeSkipReason=t.storeCommonMessageInfoRelaxed=t.loadCommonMessageInfoRelaxed=t.storeCommonMessageInfo=t.loadCommonMessageInfo=t.storeOutList=t.loadOutList=t.storeOutAction=t.loadOutAction=t.storeAccountStorage=t.loadAccountStorage=t.storeAccountStatusChange=t.loadAccountStatusChange=t.storeAccountStatus=t.loadAccountStatus=t.storeAccountState=t.loadAccountState=t.storeAccount=t.loadAccount=t.comment=t.external=t.internal=void 0,t.storeTransactionsStoragePhase=t.loadTransactionStoragePhase=t.storeTransactionDescription=t.loadTransactionDescription=t.storeTransactionCreditPhase=t.loadTransactionCreditPhase=t.storeTransactionComputePhase=t.loadTransactionComputePhase=t.storeTransactionBouncePhase=t.loadTransactionBouncePhase=t.storeTransactionActionPhase=t.loadTransactionActionPhase=t.storeTransaction=t.loadTransaction=t.storeTickTock=t.loadTickTock=t.storeStorageUsedShort=t.loadStorageUsedShort=t.storeStorageUsed=t.loadStorageUsed=t.storeStorageInfo=void 0;var a=n(22534);Object.defineProperty(t,"internal",{enumerable:!0,get:function(){return a.internal}}),Object.defineProperty(t,"external",{enumerable:!0,get:function(){return a.external}}),Object.defineProperty(t,"comment",{enumerable:!0,get:function(){return a.comment}});var r=n(66721);Object.defineProperty(t,"loadAccount",{enumerable:!0,get:function(){return r.loadAccount}}),Object.defineProperty(t,"storeAccount",{enumerable:!0,get:function(){return r.storeAccount}});var i=n(14368);Object.defineProperty(t,"loadAccountState",{enumerable:!0,get:function(){return i.loadAccountState}}),Object.defineProperty(t,"storeAccountState",{enumerable:!0,get:function(){return i.storeAccountState}});var s=n(18287);Object.defineProperty(t,"loadAccountStatus",{enumerable:!0,get:function(){return s.loadAccountStatus}}),Object.defineProperty(t,"storeAccountStatus",{enumerable:!0,get:function(){return s.storeAccountStatus}});var o=n(40991);Object.defineProperty(t,"loadAccountStatusChange",{enumerable:!0,get:function(){return o.loadAccountStatusChange}}),Object.defineProperty(t,"storeAccountStatusChange",{enumerable:!0,get:function(){return o.storeAccountStatusChange}});var c=n(39904);Object.defineProperty(t,"loadAccountStorage",{enumerable:!0,get:function(){return c.loadAccountStorage}}),Object.defineProperty(t,"storeAccountStorage",{enumerable:!0,get:function(){return c.storeAccountStorage}});var u=n(42114);Object.defineProperty(t,"loadOutAction",{enumerable:!0,get:function(){return u.loadOutAction}}),Object.defineProperty(t,"storeOutAction",{enumerable:!0,get:function(){return u.storeOutAction}}),Object.defineProperty(t,"loadOutList",{enumerable:!0,get:function(){return u.loadOutList}}),Object.defineProperty(t,"storeOutList",{enumerable:!0,get:function(){return u.storeOutList}});var l=n(80426);Object.defineProperty(t,"loadCommonMessageInfo",{enumerable:!0,get:function(){return l.loadCommonMessageInfo}}),Object.defineProperty(t,"storeCommonMessageInfo",{enumerable:!0,get:function(){return l.storeCommonMessageInfo}});var d=n(53335);Object.defineProperty(t,"loadCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return d.loadCommonMessageInfoRelaxed}}),Object.defineProperty(t,"storeCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return d.storeCommonMessageInfoRelaxed}});var p=n(26372);Object.defineProperty(t,"loadComputeSkipReason",{enumerable:!0,get:function(){return p.loadComputeSkipReason}}),Object.defineProperty(t,"storeComputeSkipReason",{enumerable:!0,get:function(){return p.storeComputeSkipReason}});var h=n(95467);Object.defineProperty(t,"loadCurrencyCollection",{enumerable:!0,get:function(){return h.loadCurrencyCollection}}),Object.defineProperty(t,"storeCurrencyCollection",{enumerable:!0,get:function(){return h.storeCurrencyCollection}});var f=n(10883);Object.defineProperty(t,"loadDepthBalanceInfo",{enumerable:!0,get:function(){return f.loadDepthBalanceInfo}}),Object.defineProperty(t,"storeDepthBalanceInfo",{enumerable:!0,get:function(){return f.storeDepthBalanceInfo}});var m=n(27661);Object.defineProperty(t,"loadHashUpdate",{enumerable:!0,get:function(){return m.loadHashUpdate}}),Object.defineProperty(t,"storeHashUpdate",{enumerable:!0,get:function(){return m.storeHashUpdate}});var y=n(69672);Object.defineProperty(t,"loadMasterchainStateExtra",{enumerable:!0,get:function(){return y.loadMasterchainStateExtra}});var g=n(56781);Object.defineProperty(t,"loadMessage",{enumerable:!0,get:function(){return g.loadMessage}}),Object.defineProperty(t,"storeMessage",{enumerable:!0,get:function(){return g.storeMessage}});var b=n(1914);Object.defineProperty(t,"loadMessageRelaxed",{enumerable:!0,get:function(){return b.loadMessageRelaxed}}),Object.defineProperty(t,"storeMessageRelaxed",{enumerable:!0,get:function(){return b.storeMessageRelaxed}});var v=n(13269);Object.defineProperty(t,"SendMode",{enumerable:!0,get:function(){return v.SendMode}});var _=n(27163);Object.defineProperty(t,"loadShardAccount",{enumerable:!0,get:function(){return _.loadShardAccount}}),Object.defineProperty(t,"storeShardAccount",{enumerable:!0,get:function(){return _.storeShardAccount}});var A=n(59598);Object.defineProperty(t,"ShardAccountRefValue",{enumerable:!0,get:function(){return A.ShardAccountRefValue}}),Object.defineProperty(t,"loadShardAccounts",{enumerable:!0,get:function(){return A.loadShardAccounts}}),Object.defineProperty(t,"storeShardAccounts",{enumerable:!0,get:function(){return A.storeShardAccounts}});var w=n(75198);Object.defineProperty(t,"loadShardIdent",{enumerable:!0,get:function(){return w.loadShardIdent}}),Object.defineProperty(t,"storeShardIdent",{enumerable:!0,get:function(){return w.storeShardIdent}});var I=n(99680);Object.defineProperty(t,"loadShardStateUnsplit",{enumerable:!0,get:function(){return I.loadShardStateUnsplit}});var S=n(91891);Object.defineProperty(t,"loadSimpleLibrary",{enumerable:!0,get:function(){return S.loadSimpleLibrary}}),Object.defineProperty(t,"storeSimpleLibrary",{enumerable:!0,get:function(){return S.storeSimpleLibrary}});var x=n(12004);Object.defineProperty(t,"loadSplitMergeInfo",{enumerable:!0,get:function(){return x.loadSplitMergeInfo}}),Object.defineProperty(t,"storeSplitMergeInfo",{enumerable:!0,get:function(){return x.storeSplitMergeInfo}});var C=n(63545);Object.defineProperty(t,"loadStateInit",{enumerable:!0,get:function(){return C.loadStateInit}}),Object.defineProperty(t,"storeStateInit",{enumerable:!0,get:function(){return C.storeStateInit}});var k=n(49573);Object.defineProperty(t,"loadStorageInfo",{enumerable:!0,get:function(){return k.loadStorageInfo}}),Object.defineProperty(t,"storeStorageInfo",{enumerable:!0,get:function(){return k.storeStorageInfo}});var T=n(47486);Object.defineProperty(t,"loadStorageUsed",{enumerable:!0,get:function(){return T.loadStorageUsed}}),Object.defineProperty(t,"storeStorageUsed",{enumerable:!0,get:function(){return T.storeStorageUsed}});var E=n(96694);Object.defineProperty(t,"loadStorageUsedShort",{enumerable:!0,get:function(){return E.loadStorageUsedShort}}),Object.defineProperty(t,"storeStorageUsedShort",{enumerable:!0,get:function(){return E.storeStorageUsedShort}});var P=n(44286);Object.defineProperty(t,"loadTickTock",{enumerable:!0,get:function(){return P.loadTickTock}}),Object.defineProperty(t,"storeTickTock",{enumerable:!0,get:function(){return P.storeTickTock}});var O=n(40718);Object.defineProperty(t,"loadTransaction",{enumerable:!0,get:function(){return O.loadTransaction}}),Object.defineProperty(t,"storeTransaction",{enumerable:!0,get:function(){return O.storeTransaction}});var B=n(5197);Object.defineProperty(t,"loadTransactionActionPhase",{enumerable:!0,get:function(){return B.loadTransactionActionPhase}}),Object.defineProperty(t,"storeTransactionActionPhase",{enumerable:!0,get:function(){return B.storeTransactionActionPhase}});var R=n(79239);Object.defineProperty(t,"loadTransactionBouncePhase",{enumerable:!0,get:function(){return R.loadTransactionBouncePhase}}),Object.defineProperty(t,"storeTransactionBouncePhase",{enumerable:!0,get:function(){return R.storeTransactionBouncePhase}});var N=n(28018);Object.defineProperty(t,"loadTransactionComputePhase",{enumerable:!0,get:function(){return N.loadTransactionComputePhase}}),Object.defineProperty(t,"storeTransactionComputePhase",{enumerable:!0,get:function(){return N.storeTransactionComputePhase}});var M=n(52352);Object.defineProperty(t,"loadTransactionCreditPhase",{enumerable:!0,get:function(){return M.loadTransactionCreditPhase}}),Object.defineProperty(t,"storeTransactionCreditPhase",{enumerable:!0,get:function(){return M.storeTransactionCreditPhase}});var D=n(95754);Object.defineProperty(t,"loadTransactionDescription",{enumerable:!0,get:function(){return D.loadTransactionDescription}}),Object.defineProperty(t,"storeTransactionDescription",{enumerable:!0,get:function(){return D.storeTransactionDescription}});var L=n(91774);Object.defineProperty(t,"loadTransactionStoragePhase",{enumerable:!0,get:function(){return L.loadTransactionStoragePhase}}),Object.defineProperty(t,"storeTransactionsStoragePhase",{enumerable:!0,get:function(){return L.storeTransactionsStoragePhase}})},22534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.comment=t.external=t.internal=void 0;const a=n(26575),r=n(69567),i=n(77856),s=n(24429);t.internal=function(e){let t,n,o=!0;if(null!==e.bounce&&void 0!==e.bounce&&(o=e.bounce),"string"==typeof e.to)t=a.Address.parse(e.to);else{if(!a.Address.isAddress(e.to))throw new Error(`Invalid address ${e.to}`);t=e.to}n="string"==typeof e.value?(0,s.toNano)(e.value):e.value;let c=r.Cell.EMPTY;return"string"==typeof e.body?c=(0,i.beginCell)().storeUint(0,32).storeStringTail(e.body).endCell():e.body&&(c=e.body),{info:{type:"internal",dest:t,value:{coins:n},bounce:o,ihrDisabled:!0,bounced:!1,ihrFee:0n,forwardFee:0n,createdAt:0,createdLt:0n},init:e.init??void 0,body:c}},t.external=function(e){let t;if("string"==typeof e.to)t=a.Address.parse(e.to);else{if(!a.Address.isAddress(e.to))throw new Error(`Invalid address ${e.to}`);t=e.to}return{info:{type:"external-in",dest:t,importFee:0n},init:e.init??void 0,body:e.body||r.Cell.EMPTY}},t.comment=function(e){return(0,i.beginCell)().storeUint(0,32).storeStringTail(e).endCell()}},47040:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.base32Decode=t.base32Encode=void 0;const r="abcdefghijklmnopqrstuvwxyz234567";function i(e,t){const n=e.indexOf(t);if(-1===n)throw new Error("Invalid character found: "+t);return n}t.base32Encode=function(e){const t=e.byteLength;let n=0,a=0,i="";for(let s=0;s=5;)i+=r[a>>>n-5&31],n-=5;return n>0&&(i+=r[a<<5-n&31]),i},t.base32Decode=function(e){let t;t=e.toLowerCase();const{length:n}=t;let s=0,o=0,c=0;const u=a.alloc(5*n/8|0);for(let e=0;e=8&&(u[c++]=o>>>s-8&255,s-=8);return u}},40224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitsForNumber=void 0,t.bitsForNumber=function(e,t){let n=BigInt(e);if("int"===t)return 0n===n||-1n===n?1:(n>0?n:-n).toString(2).length+1;if("uint"===t){if(n<0)throw Error(`value is negative. Got ${e}`);return n.toString(2).length}throw Error(`invalid mode. Got ${t}`)}},24429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromNano=t.toNano=void 0,t.toNano=function(e){if("bigint"==typeof e)return 1000000000n*e;{if("number"==typeof e){if(!Number.isFinite(e))throw Error("Invalid number");if(Math.log10(e)<=6)e=e.toLocaleString("en",{minimumFractionDigits:9,useGrouping:!1});else{if(e-Math.trunc(e)!=0)throw Error("Not enough precision for a number value. Use string value instead");e=e.toLocaleString("en",{maximumFractionDigits:0,useGrouping:!1})}}let t=!1;for(;e.startsWith("-");)t=!t,e=e.slice(1);if("."===e)throw Error("Invalid number");let n=e.split(".");if(n.length>2)throw Error("Invalid number");let a=n[0],r=n[1];if(a||(a="0"),r||(r="0"),r.length>9)throw Error("Invalid number");for(;r.length<9;)r+="0";let i=1000000000n*BigInt(a)+BigInt(r);return t&&(i=-i),i}},t.fromNano=function(e){let t=BigInt(e),n=!1;t<0&&(n=!0,t=-t);let a=(t%1000000000n).toString();for(;a.length<9;)a="0"+a;a=a.match(/^([0-9]*[1-9]|0)(0*)/)[1];let r=`${(t/1000000000n).toString()}${"0"===a?"":`.${a}`}`;return n&&(r="-"+r),r}},60431:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.crc16=void 0,t.crc16=function(e){let t=0;const n=a.alloc(e.length+2);n.set(e);for(let e of n){let n=128;for(;n>0;)t<<=1,e&n&&(t+=1),n>>=1,t>65535&&(t&=65535,t^=4129)}return a.from([Math.floor(t/256),t%256])}},82444:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.crc32c=void 0;const r=2197175160;t.crc32c=function(e){let t=-1;for(let n=0;n>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1,t=1&t?t>>>1^r:t>>>1;t^=4294967295;let n=a.alloc(4);return n.writeInt32LE(t),n}},39578:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.getMethodId=void 0;const r=new Int16Array([0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920]);t.getMethodId=function(e){return 65535&function(e){e instanceof a||(e=a.from(e));let t=0;for(let n=0;n>8^a)]^t<<8)}return t}(e)|65536}},85763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=t.pbkdf2_sha512=t.hmac_sha512=t.getSecureRandomWords=t.getSecureRandomBytes=void 0;var a=n(98046);Object.defineProperty(t,"getSecureRandomBytes",{enumerable:!0,get:function(){return a.getSecureRandomBytes}}),Object.defineProperty(t,"getSecureRandomWords",{enumerable:!0,get:function(){return a.getSecureRandomWords}});var r=n(95818);Object.defineProperty(t,"hmac_sha512",{enumerable:!0,get:function(){return r.hmac_sha512}});var i=n(48276);Object.defineProperty(t,"pbkdf2_sha512",{enumerable:!0,get:function(){return i.pbkdf2_sha512}});var s=n(70089);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return s.sha256}});var o=n(28140);Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return o.sha512}})},98046:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.getSecureRandomWords=t.getSecureRandomBytes=void 0,t.getSecureRandomBytes=function(e){return a.from(window.crypto.getRandomValues(new Uint8Array(e)))},t.getSecureRandomWords=function(e){return window.crypto.getRandomValues(new Uint16Array(e))}},95818:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac_sha512=void 0,t.hmac_sha512=async function(e,t){let n="string"==typeof e?a.from(e,"utf-8"):e,r="string"==typeof t?a.from(t,"utf-8"):t;const i={name:"HMAC",hash:"SHA-512"},s=await window.crypto.subtle.importKey("raw",n,i,!1,["sign"]);return a.from(await crypto.subtle.sign(i,s,r))}},48276:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2_sha512=void 0,t.pbkdf2_sha512=async function(e,t,n,r){const i="string"==typeof e?a.from(e,"utf-8"):e,s="string"==typeof t?a.from(t,"utf-8"):t,o=await window.crypto.subtle.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits"]),c=await window.crypto.subtle.deriveBits({name:"PBKDF2",hash:"SHA-512",salt:s,iterations:n},o,8*r);return a.from(c)}},70089:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0,t.sha256=async function(e){return"string"==typeof e?a.from(await crypto.subtle.digest("SHA-256",a.from(e,"utf-8"))):a.from(await crypto.subtle.digest("SHA-256",e))}},28140:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=void 0,t.sha512=async function(e){return"string"==typeof e?a.from(await crypto.subtle.digest("SHA-512",a.from(e,"utf-8"))):a.from(await crypto.subtle.digest("SHA-512",e))}},57098:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveEd25519Path=t.deriveED25519HardenedKey=t.getED25519MasterKeyFromSeed=void 0;const r=n(34299),i=2147483648;async function s(e){const t=await(0,r.hmac_sha512)("ed25519 seed",e);return{key:t.slice(0,32),chainCode:t.slice(32)}}async function o(e,t){if(t>=i)throw Error("Key index must be less than offset");const n=a.alloc(4);n.writeUInt32BE(t+i,0);const s=a.concat([a.alloc(1,0),e.key,n]),o=await(0,r.hmac_sha512)(e.chainCode,s);return{key:o.slice(0,32),chainCode:o.slice(32)}}t.getED25519MasterKeyFromSeed=s,t.deriveED25519HardenedKey=o,t.deriveEd25519Path=async function(e,t){let n=await s(e),a=[...t];for(;a.length>0;){let e=a[0];a=a.slice(1),n=await o(n,e)}return n.key}},12326:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveMnemonicsPath=t.deriveMnemonicHardenedKey=t.getMnemonicsMasterKeyFromSeed=void 0;const r=n(82099),i=n(34299),s=2147483648;async function o(e){const t=await(0,i.hmac_sha512)("TON Mnemonics HD seed",e);return{key:t.slice(0,32),chainCode:t.slice(32)}}async function c(e,t){if(t>=s)throw Error("Key index must be less than offset");const n=a.alloc(4);n.writeUInt32BE(t+s,0);const r=a.concat([a.alloc(1,0),e.key,n]),o=await(0,i.hmac_sha512)(e.chainCode,r);return{key:o.slice(0,32),chainCode:o.slice(32)}}t.getMnemonicsMasterKeyFromSeed=o,t.deriveMnemonicHardenedKey=c,t.deriveMnemonicsPath=async function(e,t,n=24,a){let i=await o(e),s=[...t];for(;s.length>0;){let e=s[0];s=s.slice(1),i=await c(i,e)}return await(0,r.mnemonicFromRandomSeed)(i.key,n,a)}},17628:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveSymmetricPath=t.deriveSymmetricHardenedKey=t.getSymmetricMasterKeyFromSeed=void 0;const r=n(34299);async function i(e){const t=await(0,r.hmac_sha512)("Symmetric key seed",e);return{key:t.slice(32),chainCode:t.slice(0,32)}}async function s(e,t){const n=a.concat([a.alloc(1,0),a.from(t)]),i=await(0,r.hmac_sha512)(e.chainCode,n);return{key:i.slice(32),chainCode:i.slice(0,32)}}t.getSymmetricMasterKeyFromSeed=i,t.deriveSymmetricHardenedKey=s,t.deriveSymmetricPath=async function(e,t){let n=await i(e),a=[...t];for(;a.length>0;){let e=a[0];a=a.slice(1),n=await s(n,e)}return n.key}},43022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMnemonicsMasterKeyFromSeed=t.deriveMnemonicHardenedKey=t.deriveMnemonicsPath=t.deriveSymmetricPath=t.deriveSymmetricHardenedKey=t.getSymmetricMasterKeyFromSeed=t.deriveEd25519Path=t.deriveED25519HardenedKey=t.getED25519MasterKeyFromSeed=t.signVerify=t.sign=t.keyPairFromSecretKey=t.keyPairFromSeed=t.openBox=t.sealBox=t.mnemonicWordList=t.mnemonicToHDSeed=t.mnemonicToSeed=t.mnemonicToWalletKey=t.mnemonicToPrivateKey=t.mnemonicValidate=t.mnemonicNew=t.newSecurePassphrase=t.newSecureWords=t.getSecureRandomNumber=t.getSecureRandomWords=t.getSecureRandomBytes=t.hmac_sha512=t.pbkdf2_sha512=t.sha512_sync=t.sha512=t.sha256_sync=t.sha256=void 0;var a=n(99690);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return a.sha256}}),Object.defineProperty(t,"sha256_sync",{enumerable:!0,get:function(){return a.sha256_sync}});var r=n(76915);Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return r.sha512}}),Object.defineProperty(t,"sha512_sync",{enumerable:!0,get:function(){return r.sha512_sync}});var i=n(46829);Object.defineProperty(t,"pbkdf2_sha512",{enumerable:!0,get:function(){return i.pbkdf2_sha512}});var s=n(34299);Object.defineProperty(t,"hmac_sha512",{enumerable:!0,get:function(){return s.hmac_sha512}});var o=n(81495);Object.defineProperty(t,"getSecureRandomBytes",{enumerable:!0,get:function(){return o.getSecureRandomBytes}}),Object.defineProperty(t,"getSecureRandomWords",{enumerable:!0,get:function(){return o.getSecureRandomWords}}),Object.defineProperty(t,"getSecureRandomNumber",{enumerable:!0,get:function(){return o.getSecureRandomNumber}});var c=n(51979);Object.defineProperty(t,"newSecureWords",{enumerable:!0,get:function(){return c.newSecureWords}});var u=n(71936);Object.defineProperty(t,"newSecurePassphrase",{enumerable:!0,get:function(){return u.newSecurePassphrase}});var l=n(82099);Object.defineProperty(t,"mnemonicNew",{enumerable:!0,get:function(){return l.mnemonicNew}}),Object.defineProperty(t,"mnemonicValidate",{enumerable:!0,get:function(){return l.mnemonicValidate}}),Object.defineProperty(t,"mnemonicToPrivateKey",{enumerable:!0,get:function(){return l.mnemonicToPrivateKey}}),Object.defineProperty(t,"mnemonicToWalletKey",{enumerable:!0,get:function(){return l.mnemonicToWalletKey}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return l.mnemonicToSeed}}),Object.defineProperty(t,"mnemonicToHDSeed",{enumerable:!0,get:function(){return l.mnemonicToHDSeed}});var d=n(94067);Object.defineProperty(t,"mnemonicWordList",{enumerable:!0,get:function(){return d.wordlist}});var p=n(67091);Object.defineProperty(t,"sealBox",{enumerable:!0,get:function(){return p.sealBox}}),Object.defineProperty(t,"openBox",{enumerable:!0,get:function(){return p.openBox}});var h=n(67091);Object.defineProperty(t,"keyPairFromSeed",{enumerable:!0,get:function(){return h.keyPairFromSeed}}),Object.defineProperty(t,"keyPairFromSecretKey",{enumerable:!0,get:function(){return h.keyPairFromSecretKey}}),Object.defineProperty(t,"sign",{enumerable:!0,get:function(){return h.sign}}),Object.defineProperty(t,"signVerify",{enumerable:!0,get:function(){return h.signVerify}});var f=n(57098);Object.defineProperty(t,"getED25519MasterKeyFromSeed",{enumerable:!0,get:function(){return f.getED25519MasterKeyFromSeed}}),Object.defineProperty(t,"deriveED25519HardenedKey",{enumerable:!0,get:function(){return f.deriveED25519HardenedKey}}),Object.defineProperty(t,"deriveEd25519Path",{enumerable:!0,get:function(){return f.deriveEd25519Path}});var m=n(17628);Object.defineProperty(t,"getSymmetricMasterKeyFromSeed",{enumerable:!0,get:function(){return m.getSymmetricMasterKeyFromSeed}}),Object.defineProperty(t,"deriveSymmetricHardenedKey",{enumerable:!0,get:function(){return m.deriveSymmetricHardenedKey}}),Object.defineProperty(t,"deriveSymmetricPath",{enumerable:!0,get:function(){return m.deriveSymmetricPath}});var y=n(12326);Object.defineProperty(t,"deriveMnemonicsPath",{enumerable:!0,get:function(){return y.deriveMnemonicsPath}}),Object.defineProperty(t,"deriveMnemonicHardenedKey",{enumerable:!0,get:function(){return y.deriveMnemonicHardenedKey}}),Object.defineProperty(t,"getMnemonicsMasterKeyFromSeed",{enumerable:!0,get:function(){return y.getMnemonicsMasterKeyFromSeed}})},82099:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mnemonicFromRandomSeed=t.mnemonicIndexesToBytes=t.bytesToMnemonics=t.bytesToMnemonicIndexes=t.mnemonicNew=t.mnemonicValidate=t.mnemonicToHDSeed=t.mnemonicToWalletKey=t.mnemonicToPrivateKey=t.mnemonicToSeed=t.mnemonicToEntropy=void 0;const i=r(n(82926)),s=n(81495),o=n(34299),c=n(46829),u=n(71763),l=n(94067),d=1e5;async function p(e){const t=await m(e);return await async function(e){return 1==(await(0,c.pbkdf2_sha512)(e,"TON fast seed version",1,64))[0]}(t)&&!await f(t)}function h(e){return e.map((e=>e.toLowerCase().trim()))}async function f(e){return 0==(await(0,c.pbkdf2_sha512)(e,"TON seed version",Math.max(1,Math.floor(d/256)),64))[0]}async function m(e,t){return await(0,o.hmac_sha512)(e.join(" "),t&&t.length>0?t:"")}async function y(e,t,n){const a=await m(e,n);return await(0,c.pbkdf2_sha512)(a,t,d,64)}async function g(e,t){e=h(e);const n=await y(e,"TON default seed",t);let r=i.default.sign.keyPair.fromSeed(n.slice(0,32));return{publicKey:a.from(r.publicKey),secretKey:a.from(r.secretKey)}}async function b(e,t){e=h(e);for(let t of e)if(l.wordlist.indexOf(t)<0)return!1;return!(t&&t.length>0&&!await p(e))&&await f(await m(e,t))}function v(e,t){let n=(0,u.bytesToBits)(e),a=[];for(let e=0;e0)||await p(n))&&await f(await m(n,t)))break}return n},t.bytesToMnemonicIndexes=v,t.bytesToMnemonics=_,t.mnemonicIndexesToBytes=function(e){let t="";for(let n of e){if(!Number.isSafeInteger(n))throw Error("Invalid input");if(n<0||n>=2028)throw Error("Invalid input");t+=(0,u.lpad)(n.toString(2),"0",11)}for(;t.length%8!=0;)t+="0";return(0,u.bitsToBytes)(t)},t.mnemonicFromRandomSeed=async function(e,t=24,n){const a=Math.ceil(11*t/8);let r=e;for(;;){let e=await(0,c.pbkdf2_sha512)(r,"TON mnemonic seed",Math.max(1,Math.floor(d/256)),a),i=_(e,t);if(await b(i,n))return i;r=e}}},94067:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlist=void 0,t.wordlist=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},71936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newSecurePassphrase=void 0;const a=n(43022);t.newSecurePassphrase=async function(e=6){return(await(0,a.newSecureWords)(e)).join("-")}},51979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newSecureWords=void 0;const a=n(81495),r=n(27431);t.newSecureWords=async function(e=6){let t=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlist=void 0,t.wordlist=["abacus","abdomen","abdominal","abide","abiding","ability","ablaze","able","abnormal","abrasion","abrasive","abreast","abridge","abroad","abruptly","absence","absentee","absently","absinthe","absolute","absolve","abstain","abstract","absurd","accent","acclaim","acclimate","accompany","account","accuracy","accurate","accustom","acetone","achiness","aching","acid","acorn","acquaint","acquire","acre","acrobat","acronym","acting","action","activate","activator","active","activism","activist","activity","actress","acts","acutely","acuteness","aeration","aerobics","aerosol","aerospace","afar","affair","affected","affecting","affection","affidavit","affiliate","affirm","affix","afflicted","affluent","afford","affront","aflame","afloat","aflutter","afoot","afraid","afterglow","afterlife","aftermath","aftermost","afternoon","aged","ageless","agency","agenda","agent","aggregate","aghast","agile","agility","aging","agnostic","agonize","agonizing","agony","agreeable","agreeably","agreed","agreeing","agreement","aground","ahead","ahoy","aide","aids","aim","ajar","alabaster","alarm","albatross","album","alfalfa","algebra","algorithm","alias","alibi","alienable","alienate","aliens","alike","alive","alkaline","alkalize","almanac","almighty","almost","aloe","aloft","aloha","alone","alongside","aloof","alphabet","alright","although","altitude","alto","aluminum","alumni","always","amaretto","amaze","amazingly","amber","ambiance","ambiguity","ambiguous","ambition","ambitious","ambulance","ambush","amendable","amendment","amends","amenity","amiable","amicably","amid","amigo","amino","amiss","ammonia","ammonium","amnesty","amniotic","among","amount","amperage","ample","amplifier","amplify","amply","amuck","amulet","amusable","amused","amusement","amuser","amusing","anaconda","anaerobic","anagram","anatomist","anatomy","anchor","anchovy","ancient","android","anemia","anemic","aneurism","anew","angelfish","angelic","anger","angled","angler","angles","angling","angrily","angriness","anguished","angular","animal","animate","animating","animation","animator","anime","animosity","ankle","annex","annotate","announcer","annoying","annually","annuity","anointer","another","answering","antacid","antarctic","anteater","antelope","antennae","anthem","anthill","anthology","antibody","antics","antidote","antihero","antiquely","antiques","antiquity","antirust","antitoxic","antitrust","antiviral","antivirus","antler","antonym","antsy","anvil","anybody","anyhow","anymore","anyone","anyplace","anything","anytime","anyway","anywhere","aorta","apache","apostle","appealing","appear","appease","appeasing","appendage","appendix","appetite","appetizer","applaud","applause","apple","appliance","applicant","applied","apply","appointee","appraisal","appraiser","apprehend","approach","approval","approve","apricot","april","apron","aptitude","aptly","aqua","aqueduct","arbitrary","arbitrate","ardently","area","arena","arguable","arguably","argue","arise","armadillo","armband","armchair","armed","armful","armhole","arming","armless","armoire","armored","armory","armrest","army","aroma","arose","around","arousal","arrange","array","arrest","arrival","arrive","arrogance","arrogant","arson","art","ascend","ascension","ascent","ascertain","ashamed","ashen","ashes","ashy","aside","askew","asleep","asparagus","aspect","aspirate","aspire","aspirin","astonish","astound","astride","astrology","astronaut","astronomy","astute","atlantic","atlas","atom","atonable","atop","atrium","atrocious","atrophy","attach","attain","attempt","attendant","attendee","attention","attentive","attest","attic","attire","attitude","attractor","attribute","atypical","auction","audacious","audacity","audible","audibly","audience","audio","audition","augmented","august","authentic","author","autism","autistic","autograph","automaker","automated","automatic","autopilot","available","avalanche","avatar","avenge","avenging","avenue","average","aversion","avert","aviation","aviator","avid","avoid","await","awaken","award","aware","awhile","awkward","awning","awoke","awry","axis","babble","babbling","babied","baboon","backache","backboard","backboned","backdrop","backed","backer","backfield","backfire","backhand","backing","backlands","backlash","backless","backlight","backlit","backlog","backpack","backpedal","backrest","backroom","backshift","backside","backslid","backspace","backspin","backstab","backstage","backtalk","backtrack","backup","backward","backwash","backwater","backyard","bacon","bacteria","bacterium","badass","badge","badland","badly","badness","baffle","baffling","bagel","bagful","baggage","bagged","baggie","bagginess","bagging","baggy","bagpipe","baguette","baked","bakery","bakeshop","baking","balance","balancing","balcony","balmy","balsamic","bamboo","banana","banish","banister","banjo","bankable","bankbook","banked","banker","banking","banknote","bankroll","banner","bannister","banshee","banter","barbecue","barbed","barbell","barber","barcode","barge","bargraph","barista","baritone","barley","barmaid","barman","barn","barometer","barrack","barracuda","barrel","barrette","barricade","barrier","barstool","bartender","barterer","bash","basically","basics","basil","basin","basis","basket","batboy","batch","bath","baton","bats","battalion","battered","battering","battery","batting","battle","bauble","bazooka","blabber","bladder","blade","blah","blame","blaming","blanching","blandness","blank","blaspheme","blasphemy","blast","blatancy","blatantly","blazer","blazing","bleach","bleak","bleep","blemish","blend","bless","blighted","blimp","bling","blinked","blinker","blinking","blinks","blip","blissful","blitz","blizzard","bloated","bloating","blob","blog","bloomers","blooming","blooper","blot","blouse","blubber","bluff","bluish","blunderer","blunt","blurb","blurred","blurry","blurt","blush","blustery","boaster","boastful","boasting","boat","bobbed","bobbing","bobble","bobcat","bobsled","bobtail","bodacious","body","bogged","boggle","bogus","boil","bok","bolster","bolt","bonanza","bonded","bonding","bondless","boned","bonehead","boneless","bonelike","boney","bonfire","bonnet","bonsai","bonus","bony","boogeyman","boogieman","book","boondocks","booted","booth","bootie","booting","bootlace","bootleg","boots","boozy","borax","boring","borough","borrower","borrowing","boss","botanical","botanist","botany","botch","both","bottle","bottling","bottom","bounce","bouncing","bouncy","bounding","boundless","bountiful","bovine","boxcar","boxer","boxing","boxlike","boxy","breach","breath","breeches","breeching","breeder","breeding","breeze","breezy","brethren","brewery","brewing","briar","bribe","brick","bride","bridged","brigade","bright","brilliant","brim","bring","brink","brisket","briskly","briskness","bristle","brittle","broadband","broadcast","broaden","broadly","broadness","broadside","broadways","broiler","broiling","broken","broker","bronchial","bronco","bronze","bronzing","brook","broom","brought","browbeat","brownnose","browse","browsing","bruising","brunch","brunette","brunt","brush","brussels","brute","brutishly","bubble","bubbling","bubbly","buccaneer","bucked","bucket","buckle","buckshot","buckskin","bucktooth","buckwheat","buddhism","buddhist","budding","buddy","budget","buffalo","buffed","buffer","buffing","buffoon","buggy","bulb","bulge","bulginess","bulgur","bulk","bulldog","bulldozer","bullfight","bullfrog","bullhorn","bullion","bullish","bullpen","bullring","bullseye","bullwhip","bully","bunch","bundle","bungee","bunion","bunkbed","bunkhouse","bunkmate","bunny","bunt","busboy","bush","busily","busload","bust","busybody","buzz","cabana","cabbage","cabbie","cabdriver","cable","caboose","cache","cackle","cacti","cactus","caddie","caddy","cadet","cadillac","cadmium","cage","cahoots","cake","calamari","calamity","calcium","calculate","calculus","caliber","calibrate","calm","caloric","calorie","calzone","camcorder","cameo","camera","camisole","camper","campfire","camping","campsite","campus","canal","canary","cancel","candied","candle","candy","cane","canine","canister","cannabis","canned","canning","cannon","cannot","canola","canon","canopener","canopy","canteen","canyon","capable","capably","capacity","cape","capillary","capital","capitol","capped","capricorn","capsize","capsule","caption","captivate","captive","captivity","capture","caramel","carat","caravan","carbon","cardboard","carded","cardiac","cardigan","cardinal","cardstock","carefully","caregiver","careless","caress","caretaker","cargo","caring","carless","carload","carmaker","carnage","carnation","carnival","carnivore","carol","carpenter","carpentry","carpool","carport","carried","carrot","carrousel","carry","cartel","cartload","carton","cartoon","cartridge","cartwheel","carve","carving","carwash","cascade","case","cash","casing","casino","casket","cassette","casually","casualty","catacomb","catalog","catalyst","catalyze","catapult","cataract","catatonic","catcall","catchable","catcher","catching","catchy","caterer","catering","catfight","catfish","cathedral","cathouse","catlike","catnap","catnip","catsup","cattail","cattishly","cattle","catty","catwalk","caucasian","caucus","causal","causation","cause","causing","cauterize","caution","cautious","cavalier","cavalry","caviar","cavity","cedar","celery","celestial","celibacy","celibate","celtic","cement","census","ceramics","ceremony","certainly","certainty","certified","certify","cesarean","cesspool","chafe","chaffing","chain","chair","chalice","challenge","chamber","chamomile","champion","chance","change","channel","chant","chaos","chaperone","chaplain","chapped","chaps","chapter","character","charbroil","charcoal","charger","charging","chariot","charity","charm","charred","charter","charting","chase","chasing","chaste","chastise","chastity","chatroom","chatter","chatting","chatty","cheating","cheddar","cheek","cheer","cheese","cheesy","chef","chemicals","chemist","chemo","cherisher","cherub","chess","chest","chevron","chevy","chewable","chewer","chewing","chewy","chief","chihuahua","childcare","childhood","childish","childless","childlike","chili","chill","chimp","chip","chirping","chirpy","chitchat","chivalry","chive","chloride","chlorine","choice","chokehold","choking","chomp","chooser","choosing","choosy","chop","chosen","chowder","chowtime","chrome","chubby","chuck","chug","chummy","chump","chunk","churn","chute","cider","cilantro","cinch","cinema","cinnamon","circle","circling","circular","circulate","circus","citable","citadel","citation","citizen","citric","citrus","city","civic","civil","clad","claim","clambake","clammy","clamor","clamp","clamshell","clang","clanking","clapped","clapper","clapping","clarify","clarinet","clarity","clash","clasp","class","clatter","clause","clavicle","claw","clay","clean","clear","cleat","cleaver","cleft","clench","clergyman","clerical","clerk","clever","clicker","client","climate","climatic","cling","clinic","clinking","clip","clique","cloak","clobber","clock","clone","cloning","closable","closure","clothes","clothing","cloud","clover","clubbed","clubbing","clubhouse","clump","clumsily","clumsy","clunky","clustered","clutch","clutter","coach","coagulant","coastal","coaster","coasting","coastland","coastline","coat","coauthor","cobalt","cobbler","cobweb","cocoa","coconut","cod","coeditor","coerce","coexist","coffee","cofounder","cognition","cognitive","cogwheel","coherence","coherent","cohesive","coil","coke","cola","cold","coleslaw","coliseum","collage","collapse","collar","collected","collector","collide","collie","collision","colonial","colonist","colonize","colony","colossal","colt","coma","come","comfort","comfy","comic","coming","comma","commence","commend","comment","commerce","commode","commodity","commodore","common","commotion","commute","commuting","compacted","compacter","compactly","compactor","companion","company","compare","compel","compile","comply","component","composed","composer","composite","compost","composure","compound","compress","comprised","computer","computing","comrade","concave","conceal","conceded","concept","concerned","concert","conch","concierge","concise","conclude","concrete","concur","condense","condiment","condition","condone","conducive","conductor","conduit","cone","confess","confetti","confidant","confident","confider","confiding","configure","confined","confining","confirm","conflict","conform","confound","confront","confused","confusing","confusion","congenial","congested","congrats","congress","conical","conjoined","conjure","conjuror","connected","connector","consensus","consent","console","consoling","consonant","constable","constant","constrain","constrict","construct","consult","consumer","consuming","contact","container","contempt","contend","contented","contently","contents","contest","context","contort","contour","contrite","control","contusion","convene","convent","copartner","cope","copied","copier","copilot","coping","copious","copper","copy","coral","cork","cornball","cornbread","corncob","cornea","corned","corner","cornfield","cornflake","cornhusk","cornmeal","cornstalk","corny","coronary","coroner","corporal","corporate","corral","correct","corridor","corrode","corroding","corrosive","corsage","corset","cortex","cosigner","cosmetics","cosmic","cosmos","cosponsor","cost","cottage","cotton","couch","cough","could","countable","countdown","counting","countless","country","county","courier","covenant","cover","coveted","coveting","coyness","cozily","coziness","cozy","crabbing","crabgrass","crablike","crabmeat","cradle","cradling","crafter","craftily","craftsman","craftwork","crafty","cramp","cranberry","crane","cranial","cranium","crank","crate","crave","craving","crawfish","crawlers","crawling","crayfish","crayon","crazed","crazily","craziness","crazy","creamed","creamer","creamlike","crease","creasing","creatable","create","creation","creative","creature","credible","credibly","credit","creed","creme","creole","crepe","crept","crescent","crested","cresting","crestless","crevice","crewless","crewman","crewmate","crib","cricket","cried","crier","crimp","crimson","cringe","cringing","crinkle","crinkly","crisped","crisping","crisply","crispness","crispy","criteria","critter","croak","crock","crook","croon","crop","cross","crouch","crouton","crowbar","crowd","crown","crucial","crudely","crudeness","cruelly","cruelness","cruelty","crumb","crummiest","crummy","crumpet","crumpled","cruncher","crunching","crunchy","crusader","crushable","crushed","crusher","crushing","crust","crux","crying","cryptic","crystal","cubbyhole","cube","cubical","cubicle","cucumber","cuddle","cuddly","cufflink","culinary","culminate","culpable","culprit","cultivate","cultural","culture","cupbearer","cupcake","cupid","cupped","cupping","curable","curator","curdle","cure","curfew","curing","curled","curler","curliness","curling","curly","curry","curse","cursive","cursor","curtain","curtly","curtsy","curvature","curve","curvy","cushy","cusp","cussed","custard","custodian","custody","customary","customer","customize","customs","cut","cycle","cyclic","cycling","cyclist","cylinder","cymbal","cytoplasm","cytoplast","dab","dad","daffodil","dagger","daily","daintily","dainty","dairy","daisy","dallying","dance","dancing","dandelion","dander","dandruff","dandy","danger","dangle","dangling","daredevil","dares","daringly","darkened","darkening","darkish","darkness","darkroom","darling","darn","dart","darwinism","dash","dastardly","data","datebook","dating","daughter","daunting","dawdler","dawn","daybed","daybreak","daycare","daydream","daylight","daylong","dayroom","daytime","dazzler","dazzling","deacon","deafening","deafness","dealer","dealing","dealmaker","dealt","dean","debatable","debate","debating","debit","debrief","debtless","debtor","debug","debunk","decade","decaf","decal","decathlon","decay","deceased","deceit","deceiver","deceiving","december","decency","decent","deception","deceptive","decibel","decidable","decimal","decimeter","decipher","deck","declared","decline","decode","decompose","decorated","decorator","decoy","decrease","decree","dedicate","dedicator","deduce","deduct","deed","deem","deepen","deeply","deepness","deface","defacing","defame","default","defeat","defection","defective","defendant","defender","defense","defensive","deferral","deferred","defiance","defiant","defile","defiling","define","definite","deflate","deflation","deflator","deflected","deflector","defog","deforest","defraud","defrost","deftly","defuse","defy","degraded","degrading","degrease","degree","dehydrate","deity","dejected","delay","delegate","delegator","delete","deletion","delicacy","delicate","delicious","delighted","delirious","delirium","deliverer","delivery","delouse","delta","deluge","delusion","deluxe","demanding","demeaning","demeanor","demise","democracy","democrat","demote","demotion","demystify","denatured","deniable","denial","denim","denote","dense","density","dental","dentist","denture","deny","deodorant","deodorize","departed","departure","depict","deplete","depletion","deplored","deploy","deport","depose","depraved","depravity","deprecate","depress","deprive","depth","deputize","deputy","derail","deranged","derby","derived","desecrate","deserve","deserving","designate","designed","designer","designing","deskbound","desktop","deskwork","desolate","despair","despise","despite","destiny","destitute","destruct","detached","detail","detection","detective","detector","detention","detergent","detest","detonate","detonator","detoxify","detract","deuce","devalue","deviancy","deviant","deviate","deviation","deviator","device","devious","devotedly","devotee","devotion","devourer","devouring","devoutly","dexterity","dexterous","diabetes","diabetic","diabolic","diagnoses","diagnosis","diagram","dial","diameter","diaper","diaphragm","diary","dice","dicing","dictate","dictation","dictator","difficult","diffused","diffuser","diffusion","diffusive","dig","dilation","diligence","diligent","dill","dilute","dime","diminish","dimly","dimmed","dimmer","dimness","dimple","diner","dingbat","dinghy","dinginess","dingo","dingy","dining","dinner","diocese","dioxide","diploma","dipped","dipper","dipping","directed","direction","directive","directly","directory","direness","dirtiness","disabled","disagree","disallow","disarm","disarray","disaster","disband","disbelief","disburse","discard","discern","discharge","disclose","discolor","discount","discourse","discover","discuss","disdain","disengage","disfigure","disgrace","dish","disinfect","disjoin","disk","dislike","disliking","dislocate","dislodge","disloyal","dismantle","dismay","dismiss","dismount","disobey","disorder","disown","disparate","disparity","dispatch","dispense","dispersal","dispersed","disperser","displace","display","displease","disposal","dispose","disprove","dispute","disregard","disrupt","dissuade","distance","distant","distaste","distill","distinct","distort","distract","distress","district","distrust","ditch","ditto","ditzy","dividable","divided","dividend","dividers","dividing","divinely","diving","divinity","divisible","divisibly","division","divisive","divorcee","dizziness","dizzy","doable","docile","dock","doctrine","document","dodge","dodgy","doily","doing","dole","dollar","dollhouse","dollop","dolly","dolphin","domain","domelike","domestic","dominion","dominoes","donated","donation","donator","donor","donut","doodle","doorbell","doorframe","doorknob","doorman","doormat","doornail","doorpost","doorstep","doorstop","doorway","doozy","dork","dormitory","dorsal","dosage","dose","dotted","doubling","douche","dove","down","dowry","doze","drab","dragging","dragonfly","dragonish","dragster","drainable","drainage","drained","drainer","drainpipe","dramatic","dramatize","drank","drapery","drastic","draw","dreaded","dreadful","dreadlock","dreamboat","dreamily","dreamland","dreamless","dreamlike","dreamt","dreamy","drearily","dreary","drench","dress","drew","dribble","dried","drier","drift","driller","drilling","drinkable","drinking","dripping","drippy","drivable","driven","driver","driveway","driving","drizzle","drizzly","drone","drool","droop","drop-down","dropbox","dropkick","droplet","dropout","dropper","drove","drown","drowsily","drudge","drum","dry","dubbed","dubiously","duchess","duckbill","ducking","duckling","ducktail","ducky","duct","dude","duffel","dugout","duh","duke","duller","dullness","duly","dumping","dumpling","dumpster","duo","dupe","duplex","duplicate","duplicity","durable","durably","duration","duress","during","dusk","dust","dutiful","duty","duvet","dwarf","dweeb","dwelled","dweller","dwelling","dwindle","dwindling","dynamic","dynamite","dynasty","dyslexia","dyslexic","each","eagle","earache","eardrum","earflap","earful","earlobe","early","earmark","earmuff","earphone","earpiece","earplugs","earring","earshot","earthen","earthlike","earthling","earthly","earthworm","earthy","earwig","easeful","easel","easiest","easily","easiness","easing","eastbound","eastcoast","easter","eastward","eatable","eaten","eatery","eating","eats","ebay","ebony","ebook","ecard","eccentric","echo","eclair","eclipse","ecologist","ecology","economic","economist","economy","ecosphere","ecosystem","edge","edginess","edging","edgy","edition","editor","educated","education","educator","eel","effective","effects","efficient","effort","eggbeater","egging","eggnog","eggplant","eggshell","egomaniac","egotism","egotistic","either","eject","elaborate","elastic","elated","elbow","eldercare","elderly","eldest","electable","election","elective","elephant","elevate","elevating","elevation","elevator","eleven","elf","eligible","eligibly","eliminate","elite","elitism","elixir","elk","ellipse","elliptic","elm","elongated","elope","eloquence","eloquent","elsewhere","elude","elusive","elves","email","embargo","embark","embassy","embattled","embellish","ember","embezzle","emblaze","emblem","embody","embolism","emboss","embroider","emcee","emerald","emergency","emission","emit","emote","emoticon","emotion","empathic","empathy","emperor","emphases","emphasis","emphasize","emphatic","empirical","employed","employee","employer","emporium","empower","emptier","emptiness","empty","emu","enable","enactment","enamel","enchanted","enchilada","encircle","enclose","enclosure","encode","encore","encounter","encourage","encroach","encrust","encrypt","endanger","endeared","endearing","ended","ending","endless","endnote","endocrine","endorphin","endorse","endowment","endpoint","endurable","endurance","enduring","energetic","energize","energy","enforced","enforcer","engaged","engaging","engine","engorge","engraved","engraver","engraving","engross","engulf","enhance","enigmatic","enjoyable","enjoyably","enjoyer","enjoying","enjoyment","enlarged","enlarging","enlighten","enlisted","enquirer","enrage","enrich","enroll","enslave","ensnare","ensure","entail","entangled","entering","entertain","enticing","entire","entitle","entity","entomb","entourage","entrap","entree","entrench","entrust","entryway","entwine","enunciate","envelope","enviable","enviably","envious","envision","envoy","envy","enzyme","epic","epidemic","epidermal","epidermis","epidural","epilepsy","epileptic","epilogue","epiphany","episode","equal","equate","equation","equator","equinox","equipment","equity","equivocal","eradicate","erasable","erased","eraser","erasure","ergonomic","errand","errant","erratic","error","erupt","escalate","escalator","escapable","escapade","escapist","escargot","eskimo","esophagus","espionage","espresso","esquire","essay","essence","essential","establish","estate","esteemed","estimate","estimator","estranged","estrogen","etching","eternal","eternity","ethanol","ether","ethically","ethics","euphemism","evacuate","evacuee","evade","evaluate","evaluator","evaporate","evasion","evasive","even","everglade","evergreen","everybody","everyday","everyone","evict","evidence","evident","evil","evoke","evolution","evolve","exact","exalted","example","excavate","excavator","exceeding","exception","excess","exchange","excitable","exciting","exclaim","exclude","excluding","exclusion","exclusive","excretion","excretory","excursion","excusable","excusably","excuse","exemplary","exemplify","exemption","exerciser","exert","exes","exfoliate","exhale","exhaust","exhume","exile","existing","exit","exodus","exonerate","exorcism","exorcist","expand","expanse","expansion","expansive","expectant","expedited","expediter","expel","expend","expenses","expensive","expert","expire","expiring","explain","expletive","explicit","explode","exploit","explore","exploring","exponent","exporter","exposable","expose","exposure","express","expulsion","exquisite","extended","extending","extent","extenuate","exterior","external","extinct","extortion","extradite","extras","extrovert","extrude","extruding","exuberant","fable","fabric","fabulous","facebook","facecloth","facedown","faceless","facelift","faceplate","faceted","facial","facility","facing","facsimile","faction","factoid","factor","factsheet","factual","faculty","fade","fading","failing","falcon","fall","false","falsify","fame","familiar","family","famine","famished","fanatic","fancied","fanciness","fancy","fanfare","fang","fanning","fantasize","fantastic","fantasy","fascism","fastball","faster","fasting","fastness","faucet","favorable","favorably","favored","favoring","favorite","fax","feast","federal","fedora","feeble","feed","feel","feisty","feline","felt-tip","feminine","feminism","feminist","feminize","femur","fence","fencing","fender","ferment","fernlike","ferocious","ferocity","ferret","ferris","ferry","fervor","fester","festival","festive","festivity","fetal","fetch","fever","fiber","fiction","fiddle","fiddling","fidelity","fidgeting","fidgety","fifteen","fifth","fiftieth","fifty","figment","figure","figurine","filing","filled","filler","filling","film","filter","filth","filtrate","finale","finalist","finalize","finally","finance","financial","finch","fineness","finer","finicky","finished","finisher","finishing","finite","finless","finlike","fiscally","fit","five","flaccid","flagman","flagpole","flagship","flagstick","flagstone","flail","flakily","flaky","flame","flammable","flanked","flanking","flannels","flap","flaring","flashback","flashbulb","flashcard","flashily","flashing","flashy","flask","flatbed","flatfoot","flatly","flatness","flatten","flattered","flatterer","flattery","flattop","flatware","flatworm","flavored","flavorful","flavoring","flaxseed","fled","fleshed","fleshy","flick","flier","flight","flinch","fling","flint","flip","flirt","float","flock","flogging","flop","floral","florist","floss","flounder","flyable","flyaway","flyer","flying","flyover","flypaper","foam","foe","fog","foil","folic","folk","follicle","follow","fondling","fondly","fondness","fondue","font","food","fool","footage","football","footbath","footboard","footer","footgear","foothill","foothold","footing","footless","footman","footnote","footpad","footpath","footprint","footrest","footsie","footsore","footwear","footwork","fossil","foster","founder","founding","fountain","fox","foyer","fraction","fracture","fragile","fragility","fragment","fragrance","fragrant","frail","frame","framing","frantic","fraternal","frayed","fraying","frays","freckled","freckles","freebase","freebee","freebie","freedom","freefall","freehand","freeing","freeload","freely","freemason","freeness","freestyle","freeware","freeway","freewill","freezable","freezing","freight","french","frenzied","frenzy","frequency","frequent","fresh","fretful","fretted","friction","friday","fridge","fried","friend","frighten","frightful","frigidity","frigidly","frill","fringe","frisbee","frisk","fritter","frivolous","frolic","from","front","frostbite","frosted","frostily","frosting","frostlike","frosty","froth","frown","frozen","fructose","frugality","frugally","fruit","frustrate","frying","gab","gaffe","gag","gainfully","gaining","gains","gala","gallantly","galleria","gallery","galley","gallon","gallows","gallstone","galore","galvanize","gambling","game","gaming","gamma","gander","gangly","gangrene","gangway","gap","garage","garbage","garden","gargle","garland","garlic","garment","garnet","garnish","garter","gas","gatherer","gathering","gating","gauging","gauntlet","gauze","gave","gawk","gazing","gear","gecko","geek","geiger","gem","gender","generic","generous","genetics","genre","gentile","gentleman","gently","gents","geography","geologic","geologist","geology","geometric","geometry","geranium","gerbil","geriatric","germicide","germinate","germless","germproof","gestate","gestation","gesture","getaway","getting","getup","giant","gibberish","giblet","giddily","giddiness","giddy","gift","gigabyte","gigahertz","gigantic","giggle","giggling","giggly","gigolo","gilled","gills","gimmick","girdle","giveaway","given","giver","giving","gizmo","gizzard","glacial","glacier","glade","gladiator","gladly","glamorous","glamour","glance","glancing","glandular","glare","glaring","glass","glaucoma","glazing","gleaming","gleeful","glider","gliding","glimmer","glimpse","glisten","glitch","glitter","glitzy","gloater","gloating","gloomily","gloomy","glorified","glorifier","glorify","glorious","glory","gloss","glove","glowing","glowworm","glucose","glue","gluten","glutinous","glutton","gnarly","gnat","goal","goatskin","goes","goggles","going","goldfish","goldmine","goldsmith","golf","goliath","gonad","gondola","gone","gong","good","gooey","goofball","goofiness","goofy","google","goon","gopher","gore","gorged","gorgeous","gory","gosling","gossip","gothic","gotten","gout","gown","grab","graceful","graceless","gracious","gradation","graded","grader","gradient","grading","gradually","graduate","graffiti","grafted","grafting","grain","granddad","grandkid","grandly","grandma","grandpa","grandson","granite","granny","granola","grant","granular","grape","graph","grapple","grappling","grasp","grass","gratified","gratify","grating","gratitude","gratuity","gravel","graveness","graves","graveyard","gravitate","gravity","gravy","gray","grazing","greasily","greedily","greedless","greedy","green","greeter","greeting","grew","greyhound","grid","grief","grievance","grieving","grievous","grill","grimace","grimacing","grime","griminess","grimy","grinch","grinning","grip","gristle","grit","groggily","groggy","groin","groom","groove","grooving","groovy","grope","ground","grouped","grout","grove","grower","growing","growl","grub","grudge","grudging","grueling","gruffly","grumble","grumbling","grumbly","grumpily","grunge","grunt","guacamole","guidable","guidance","guide","guiding","guileless","guise","gulf","gullible","gully","gulp","gumball","gumdrop","gumminess","gumming","gummy","gurgle","gurgling","guru","gush","gusto","gusty","gutless","guts","gutter","guy","guzzler","gyration","habitable","habitant","habitat","habitual","hacked","hacker","hacking","hacksaw","had","haggler","haiku","half","halogen","halt","halved","halves","hamburger","hamlet","hammock","hamper","hamster","hamstring","handbag","handball","handbook","handbrake","handcart","handclap","handclasp","handcraft","handcuff","handed","handful","handgrip","handgun","handheld","handiness","handiwork","handlebar","handled","handler","handling","handmade","handoff","handpick","handprint","handrail","handsaw","handset","handsfree","handshake","handstand","handwash","handwork","handwoven","handwrite","handyman","hangnail","hangout","hangover","hangup","hankering","hankie","hanky","haphazard","happening","happier","happiest","happily","happiness","happy","harbor","hardcopy","hardcore","hardcover","harddisk","hardened","hardener","hardening","hardhat","hardhead","hardiness","hardly","hardness","hardship","hardware","hardwired","hardwood","hardy","harmful","harmless","harmonica","harmonics","harmonize","harmony","harness","harpist","harsh","harvest","hash","hassle","haste","hastily","hastiness","hasty","hatbox","hatchback","hatchery","hatchet","hatching","hatchling","hate","hatless","hatred","haunt","haven","hazard","hazelnut","hazily","haziness","hazing","hazy","headache","headband","headboard","headcount","headdress","headed","header","headfirst","headgear","heading","headlamp","headless","headlock","headphone","headpiece","headrest","headroom","headscarf","headset","headsman","headstand","headstone","headway","headwear","heap","heat","heave","heavily","heaviness","heaving","hedge","hedging","heftiness","hefty","helium","helmet","helper","helpful","helping","helpless","helpline","hemlock","hemstitch","hence","henchman","henna","herald","herbal","herbicide","herbs","heritage","hermit","heroics","heroism","herring","herself","hertz","hesitancy","hesitant","hesitate","hexagon","hexagram","hubcap","huddle","huddling","huff","hug","hula","hulk","hull","human","humble","humbling","humbly","humid","humiliate","humility","humming","hummus","humongous","humorist","humorless","humorous","humpback","humped","humvee","hunchback","hundredth","hunger","hungrily","hungry","hunk","hunter","hunting","huntress","huntsman","hurdle","hurled","hurler","hurling","hurray","hurricane","hurried","hurry","hurt","husband","hush","husked","huskiness","hut","hybrid","hydrant","hydrated","hydration","hydrogen","hydroxide","hyperlink","hypertext","hyphen","hypnoses","hypnosis","hypnotic","hypnotism","hypnotist","hypnotize","hypocrisy","hypocrite","ibuprofen","ice","iciness","icing","icky","icon","icy","idealism","idealist","idealize","ideally","idealness","identical","identify","identity","ideology","idiocy","idiom","idly","igloo","ignition","ignore","iguana","illicitly","illusion","illusive","image","imaginary","imagines","imaging","imbecile","imitate","imitation","immature","immerse","immersion","imminent","immobile","immodest","immorally","immortal","immovable","immovably","immunity","immunize","impaired","impale","impart","impatient","impeach","impeding","impending","imperfect","imperial","impish","implant","implement","implicate","implicit","implode","implosion","implosive","imply","impolite","important","importer","impose","imposing","impotence","impotency","impotent","impound","imprecise","imprint","imprison","impromptu","improper","improve","improving","improvise","imprudent","impulse","impulsive","impure","impurity","iodine","iodize","ion","ipad","iphone","ipod","irate","irk","iron","irregular","irrigate","irritable","irritably","irritant","irritate","islamic","islamist","isolated","isolating","isolation","isotope","issue","issuing","italicize","italics","item","itinerary","itunes","ivory","ivy","jab","jackal","jacket","jackknife","jackpot","jailbird","jailbreak","jailer","jailhouse","jalapeno","jam","janitor","january","jargon","jarring","jasmine","jaundice","jaunt","java","jawed","jawless","jawline","jaws","jaybird","jaywalker","jazz","jeep","jeeringly","jellied","jelly","jersey","jester","jet","jiffy","jigsaw","jimmy","jingle","jingling","jinx","jitters","jittery","job","jockey","jockstrap","jogger","jogging","john","joining","jokester","jokingly","jolliness","jolly","jolt","jot","jovial","joyfully","joylessly","joyous","joyride","joystick","jubilance","jubilant","judge","judgingly","judicial","judiciary","judo","juggle","juggling","jugular","juice","juiciness","juicy","jujitsu","jukebox","july","jumble","jumbo","jump","junction","juncture","june","junior","juniper","junkie","junkman","junkyard","jurist","juror","jury","justice","justifier","justify","justly","justness","juvenile","kabob","kangaroo","karaoke","karate","karma","kebab","keenly","keenness","keep","keg","kelp","kennel","kept","kerchief","kerosene","kettle","kick","kiln","kilobyte","kilogram","kilometer","kilowatt","kilt","kimono","kindle","kindling","kindly","kindness","kindred","kinetic","kinfolk","king","kinship","kinsman","kinswoman","kissable","kisser","kissing","kitchen","kite","kitten","kitty","kiwi","kleenex","knapsack","knee","knelt","knickers","knoll","koala","kooky","kosher","krypton","kudos","kung","labored","laborer","laboring","laborious","labrador","ladder","ladies","ladle","ladybug","ladylike","lagged","lagging","lagoon","lair","lake","lance","landed","landfall","landfill","landing","landlady","landless","landline","landlord","landmark","landmass","landmine","landowner","landscape","landside","landslide","language","lankiness","lanky","lantern","lapdog","lapel","lapped","lapping","laptop","lard","large","lark","lash","lasso","last","latch","late","lather","latitude","latrine","latter","latticed","launch","launder","laundry","laurel","lavender","lavish","laxative","lazily","laziness","lazy","lecturer","left","legacy","legal","legend","legged","leggings","legible","legibly","legislate","lego","legroom","legume","legwarmer","legwork","lemon","lend","length","lens","lent","leotard","lesser","letdown","lethargic","lethargy","letter","lettuce","level","leverage","levers","levitate","levitator","liability","liable","liberty","librarian","library","licking","licorice","lid","life","lifter","lifting","liftoff","ligament","likely","likeness","likewise","liking","lilac","lilly","lily","limb","limeade","limelight","limes","limit","limping","limpness","line","lingo","linguini","linguist","lining","linked","linoleum","linseed","lint","lion","lip","liquefy","liqueur","liquid","lisp","list","litigate","litigator","litmus","litter","little","livable","lived","lively","liver","livestock","lividly","living","lizard","lubricant","lubricate","lucid","luckily","luckiness","luckless","lucrative","ludicrous","lugged","lukewarm","lullaby","lumber","luminance","luminous","lumpiness","lumping","lumpish","lunacy","lunar","lunchbox","luncheon","lunchroom","lunchtime","lung","lurch","lure","luridness","lurk","lushly","lushness","luster","lustfully","lustily","lustiness","lustrous","lusty","luxurious","luxury","lying","lyrically","lyricism","lyricist","lyrics","macarena","macaroni","macaw","mace","machine","machinist","magazine","magenta","maggot","magical","magician","magma","magnesium","magnetic","magnetism","magnetize","magnifier","magnify","magnitude","magnolia","mahogany","maimed","majestic","majesty","majorette","majority","makeover","maker","makeshift","making","malformed","malt","mama","mammal","mammary","mammogram","manager","managing","manatee","mandarin","mandate","mandatory","mandolin","manger","mangle","mango","mangy","manhandle","manhole","manhood","manhunt","manicotti","manicure","manifesto","manila","mankind","manlike","manliness","manly","manmade","manned","mannish","manor","manpower","mantis","mantra","manual","many","map","marathon","marauding","marbled","marbles","marbling","march","mardi","margarine","margarita","margin","marigold","marina","marine","marital","maritime","marlin","marmalade","maroon","married","marrow","marry","marshland","marshy","marsupial","marvelous","marxism","mascot","masculine","mashed","mashing","massager","masses","massive","mastiff","matador","matchbook","matchbox","matcher","matching","matchless","material","maternal","maternity","math","mating","matriarch","matrimony","matrix","matron","matted","matter","maturely","maturing","maturity","mauve","maverick","maximize","maximum","maybe","mayday","mayflower","moaner","moaning","mobile","mobility","mobilize","mobster","mocha","mocker","mockup","modified","modify","modular","modulator","module","moisten","moistness","moisture","molar","molasses","mold","molecular","molecule","molehill","mollusk","mom","monastery","monday","monetary","monetize","moneybags","moneyless","moneywise","mongoose","mongrel","monitor","monkhood","monogamy","monogram","monologue","monopoly","monorail","monotone","monotype","monoxide","monsieur","monsoon","monstrous","monthly","monument","moocher","moodiness","moody","mooing","moonbeam","mooned","moonlight","moonlike","moonlit","moonrise","moonscape","moonshine","moonstone","moonwalk","mop","morale","morality","morally","morbidity","morbidly","morphine","morphing","morse","mortality","mortally","mortician","mortified","mortify","mortuary","mosaic","mossy","most","mothball","mothproof","motion","motivate","motivator","motive","motocross","motor","motto","mountable","mountain","mounted","mounting","mourner","mournful","mouse","mousiness","moustache","mousy","mouth","movable","move","movie","moving","mower","mowing","much","muck","mud","mug","mulberry","mulch","mule","mulled","mullets","multiple","multiply","multitask","multitude","mumble","mumbling","mumbo","mummified","mummify","mummy","mumps","munchkin","mundane","municipal","muppet","mural","murkiness","murky","murmuring","muscular","museum","mushily","mushiness","mushroom","mushy","music","musket","muskiness","musky","mustang","mustard","muster","mustiness","musty","mutable","mutate","mutation","mute","mutilated","mutilator","mutiny","mutt","mutual","muzzle","myself","myspace","mystified","mystify","myth","nacho","nag","nail","name","naming","nanny","nanometer","nape","napkin","napped","napping","nappy","narrow","nastily","nastiness","national","native","nativity","natural","nature","naturist","nautical","navigate","navigator","navy","nearby","nearest","nearly","nearness","neatly","neatness","nebula","nebulizer","nectar","negate","negation","negative","neglector","negligee","negligent","negotiate","nemeses","nemesis","neon","nephew","nerd","nervous","nervy","nest","net","neurology","neuron","neurosis","neurotic","neuter","neutron","never","next","nibble","nickname","nicotine","niece","nifty","nimble","nimbly","nineteen","ninetieth","ninja","nintendo","ninth","nuclear","nuclei","nucleus","nugget","nullify","number","numbing","numbly","numbness","numeral","numerate","numerator","numeric","numerous","nuptials","nursery","nursing","nurture","nutcase","nutlike","nutmeg","nutrient","nutshell","nuttiness","nutty","nuzzle","nylon","oaf","oak","oasis","oat","obedience","obedient","obituary","object","obligate","obliged","oblivion","oblivious","oblong","obnoxious","oboe","obscure","obscurity","observant","observer","observing","obsessed","obsession","obsessive","obsolete","obstacle","obstinate","obstruct","obtain","obtrusive","obtuse","obvious","occultist","occupancy","occupant","occupier","occupy","ocean","ocelot","octagon","octane","october","octopus","ogle","oil","oink","ointment","okay","old","olive","olympics","omega","omen","ominous","omission","omit","omnivore","onboard","oncoming","ongoing","onion","online","onlooker","only","onscreen","onset","onshore","onslaught","onstage","onto","onward","onyx","oops","ooze","oozy","opacity","opal","open","operable","operate","operating","operation","operative","operator","opium","opossum","opponent","oppose","opposing","opposite","oppressed","oppressor","opt","opulently","osmosis","other","otter","ouch","ought","ounce","outage","outback","outbid","outboard","outbound","outbreak","outburst","outcast","outclass","outcome","outdated","outdoors","outer","outfield","outfit","outflank","outgoing","outgrow","outhouse","outing","outlast","outlet","outline","outlook","outlying","outmatch","outmost","outnumber","outplayed","outpost","outpour","output","outrage","outrank","outreach","outright","outscore","outsell","outshine","outshoot","outsider","outskirts","outsmart","outsource","outspoken","outtakes","outthink","outward","outweigh","outwit","oval","ovary","oven","overact","overall","overarch","overbid","overbill","overbite","overblown","overboard","overbook","overbuilt","overcast","overcoat","overcome","overcook","overcrowd","overdraft","overdrawn","overdress","overdrive","overdue","overeager","overeater","overexert","overfed","overfeed","overfill","overflow","overfull","overgrown","overhand","overhang","overhaul","overhead","overhear","overheat","overhung","overjoyed","overkill","overlabor","overlaid","overlap","overlay","overload","overlook","overlord","overlying","overnight","overpass","overpay","overplant","overplay","overpower","overprice","overrate","overreach","overreact","override","overripe","overrule","overrun","overshoot","overshot","oversight","oversized","oversleep","oversold","overspend","overstate","overstay","overstep","overstock","overstuff","oversweet","overtake","overthrow","overtime","overtly","overtone","overture","overturn","overuse","overvalue","overview","overwrite","owl","oxford","oxidant","oxidation","oxidize","oxidizing","oxygen","oxymoron","oyster","ozone","paced","pacemaker","pacific","pacifier","pacifism","pacifist","pacify","padded","padding","paddle","paddling","padlock","pagan","pager","paging","pajamas","palace","palatable","palm","palpable","palpitate","paltry","pampered","pamperer","pampers","pamphlet","panama","pancake","pancreas","panda","pandemic","pang","panhandle","panic","panning","panorama","panoramic","panther","pantomime","pantry","pants","pantyhose","paparazzi","papaya","paper","paprika","papyrus","parabola","parachute","parade","paradox","paragraph","parakeet","paralegal","paralyses","paralysis","paralyze","paramedic","parameter","paramount","parasail","parasite","parasitic","parcel","parched","parchment","pardon","parish","parka","parking","parkway","parlor","parmesan","parole","parrot","parsley","parsnip","partake","parted","parting","partition","partly","partner","partridge","party","passable","passably","passage","passcode","passenger","passerby","passing","passion","passive","passivism","passover","passport","password","pasta","pasted","pastel","pastime","pastor","pastrami","pasture","pasty","patchwork","patchy","paternal","paternity","path","patience","patient","patio","patriarch","patriot","patrol","patronage","patronize","pauper","pavement","paver","pavestone","pavilion","paving","pawing","payable","payback","paycheck","payday","payee","payer","paying","payment","payphone","payroll","pebble","pebbly","pecan","pectin","peculiar","peddling","pediatric","pedicure","pedigree","pedometer","pegboard","pelican","pellet","pelt","pelvis","penalize","penalty","pencil","pendant","pending","penholder","penknife","pennant","penniless","penny","penpal","pension","pentagon","pentagram","pep","perceive","percent","perch","percolate","perennial","perfected","perfectly","perfume","periscope","perish","perjurer","perjury","perkiness","perky","perm","peroxide","perpetual","perplexed","persecute","persevere","persuaded","persuader","pesky","peso","pessimism","pessimist","pester","pesticide","petal","petite","petition","petri","petroleum","petted","petticoat","pettiness","petty","petunia","phantom","phobia","phoenix","phonebook","phoney","phonics","phoniness","phony","phosphate","photo","phrase","phrasing","placard","placate","placidly","plank","planner","plant","plasma","plaster","plastic","plated","platform","plating","platinum","platonic","platter","platypus","plausible","plausibly","playable","playback","player","playful","playgroup","playhouse","playing","playlist","playmaker","playmate","playoff","playpen","playroom","playset","plaything","playtime","plaza","pleading","pleat","pledge","plentiful","plenty","plethora","plexiglas","pliable","plod","plop","plot","plow","ploy","pluck","plug","plunder","plunging","plural","plus","plutonium","plywood","poach","pod","poem","poet","pogo","pointed","pointer","pointing","pointless","pointy","poise","poison","poker","poking","polar","police","policy","polio","polish","politely","polka","polo","polyester","polygon","polygraph","polymer","poncho","pond","pony","popcorn","pope","poplar","popper","poppy","popsicle","populace","popular","populate","porcupine","pork","porous","porridge","portable","portal","portfolio","porthole","portion","portly","portside","poser","posh","posing","possible","possibly","possum","postage","postal","postbox","postcard","posted","poster","posting","postnasal","posture","postwar","pouch","pounce","pouncing","pound","pouring","pout","powdered","powdering","powdery","power","powwow","pox","praising","prance","prancing","pranker","prankish","prankster","prayer","praying","preacher","preaching","preachy","preamble","precinct","precise","precision","precook","precut","predator","predefine","predict","preface","prefix","preflight","preformed","pregame","pregnancy","pregnant","preheated","prelaunch","prelaw","prelude","premiere","premises","premium","prenatal","preoccupy","preorder","prepaid","prepay","preplan","preppy","preschool","prescribe","preseason","preset","preshow","president","presoak","press","presume","presuming","preteen","pretended","pretender","pretense","pretext","pretty","pretzel","prevail","prevalent","prevent","preview","previous","prewar","prewashed","prideful","pried","primal","primarily","primary","primate","primer","primp","princess","print","prior","prism","prison","prissy","pristine","privacy","private","privatize","prize","proactive","probable","probably","probation","probe","probing","probiotic","problem","procedure","process","proclaim","procreate","procurer","prodigal","prodigy","produce","product","profane","profanity","professed","professor","profile","profound","profusely","progeny","prognosis","program","progress","projector","prologue","prolonged","promenade","prominent","promoter","promotion","prompter","promptly","prone","prong","pronounce","pronto","proofing","proofread","proofs","propeller","properly","property","proponent","proposal","propose","props","prorate","protector","protegee","proton","prototype","protozoan","protract","protrude","proud","provable","proved","proven","provided","provider","providing","province","proving","provoke","provoking","provolone","prowess","prowler","prowling","proximity","proxy","prozac","prude","prudishly","prune","pruning","pry","psychic","public","publisher","pucker","pueblo","pug","pull","pulmonary","pulp","pulsate","pulse","pulverize","puma","pumice","pummel","punch","punctual","punctuate","punctured","pungent","punisher","punk","pupil","puppet","puppy","purchase","pureblood","purebred","purely","pureness","purgatory","purge","purging","purifier","purify","purist","puritan","purity","purple","purplish","purposely","purr","purse","pursuable","pursuant","pursuit","purveyor","pushcart","pushchair","pusher","pushiness","pushing","pushover","pushpin","pushup","pushy","putdown","putt","puzzle","puzzling","pyramid","pyromania","python","quack","quadrant","quail","quaintly","quake","quaking","qualified","qualifier","qualify","quality","qualm","quantum","quarrel","quarry","quartered","quarterly","quarters","quartet","quench","query","quicken","quickly","quickness","quicksand","quickstep","quiet","quill","quilt","quintet","quintuple","quirk","quit","quiver","quizzical","quotable","quotation","quote","rabid","race","racing","racism","rack","racoon","radar","radial","radiance","radiantly","radiated","radiation","radiator","radio","radish","raffle","raft","rage","ragged","raging","ragweed","raider","railcar","railing","railroad","railway","raisin","rake","raking","rally","ramble","rambling","ramp","ramrod","ranch","rancidity","random","ranged","ranger","ranging","ranked","ranking","ransack","ranting","rants","rare","rarity","rascal","rash","rasping","ravage","raven","ravine","raving","ravioli","ravishing","reabsorb","reach","reacquire","reaction","reactive","reactor","reaffirm","ream","reanalyze","reappear","reapply","reappoint","reapprove","rearrange","rearview","reason","reassign","reassure","reattach","reawake","rebalance","rebate","rebel","rebirth","reboot","reborn","rebound","rebuff","rebuild","rebuilt","reburial","rebuttal","recall","recant","recapture","recast","recede","recent","recess","recharger","recipient","recital","recite","reckless","reclaim","recliner","reclining","recluse","reclusive","recognize","recoil","recollect","recolor","reconcile","reconfirm","reconvene","recopy","record","recount","recoup","recovery","recreate","rectal","rectangle","rectified","rectify","recycled","recycler","recycling","reemerge","reenact","reenter","reentry","reexamine","referable","referee","reference","refill","refinance","refined","refinery","refining","refinish","reflected","reflector","reflex","reflux","refocus","refold","reforest","reformat","reformed","reformer","reformist","refract","refrain","refreeze","refresh","refried","refueling","refund","refurbish","refurnish","refusal","refuse","refusing","refutable","refute","regain","regalia","regally","reggae","regime","region","register","registrar","registry","regress","regretful","regroup","regular","regulate","regulator","rehab","reheat","rehire","rehydrate","reimburse","reissue","reiterate","rejoice","rejoicing","rejoin","rekindle","relapse","relapsing","relatable","related","relation","relative","relax","relay","relearn","release","relenting","reliable","reliably","reliance","reliant","relic","relieve","relieving","relight","relish","relive","reload","relocate","relock","reluctant","rely","remake","remark","remarry","rematch","remedial","remedy","remember","reminder","remindful","remission","remix","remnant","remodeler","remold","remorse","remote","removable","removal","removed","remover","removing","rename","renderer","rendering","rendition","renegade","renewable","renewably","renewal","renewed","renounce","renovate","renovator","rentable","rental","rented","renter","reoccupy","reoccur","reopen","reorder","repackage","repacking","repaint","repair","repave","repaying","repayment","repeal","repeated","repeater","repent","rephrase","replace","replay","replica","reply","reporter","repose","repossess","repost","repressed","reprimand","reprint","reprise","reproach","reprocess","reproduce","reprogram","reps","reptile","reptilian","repugnant","repulsion","repulsive","repurpose","reputable","reputably","request","require","requisite","reroute","rerun","resale","resample","rescuer","reseal","research","reselect","reseller","resemble","resend","resent","reset","reshape","reshoot","reshuffle","residence","residency","resident","residual","residue","resigned","resilient","resistant","resisting","resize","resolute","resolved","resonant","resonate","resort","resource","respect","resubmit","result","resume","resupply","resurface","resurrect","retail","retainer","retaining","retake","retaliate","retention","rethink","retinal","retired","retiree","retiring","retold","retool","retorted","retouch","retrace","retract","retrain","retread","retreat","retrial","retrieval","retriever","retry","return","retying","retype","reunion","reunite","reusable","reuse","reveal","reveler","revenge","revenue","reverb","revered","reverence","reverend","reversal","reverse","reversing","reversion","revert","revisable","revise","revision","revisit","revivable","revival","reviver","reviving","revocable","revoke","revolt","revolver","revolving","reward","rewash","rewind","rewire","reword","rework","rewrap","rewrite","rhyme","ribbon","ribcage","rice","riches","richly","richness","rickety","ricotta","riddance","ridden","ride","riding","rifling","rift","rigging","rigid","rigor","rimless","rimmed","rind","rink","rinse","rinsing","riot","ripcord","ripeness","ripening","ripping","ripple","rippling","riptide","rise","rising","risk","risotto","ritalin","ritzy","rival","riverbank","riverbed","riverboat","riverside","riveter","riveting","roamer","roaming","roast","robbing","robe","robin","robotics","robust","rockband","rocker","rocket","rockfish","rockiness","rocking","rocklike","rockslide","rockstar","rocky","rogue","roman","romp","rope","roping","roster","rosy","rotten","rotting","rotunda","roulette","rounding","roundish","roundness","roundup","roundworm","routine","routing","rover","roving","royal","rubbed","rubber","rubbing","rubble","rubdown","ruby","ruckus","rudder","rug","ruined","rule","rumble","rumbling","rummage","rumor","runaround","rundown","runner","running","runny","runt","runway","rupture","rural","ruse","rush","rust","rut","sabbath","sabotage","sacrament","sacred","sacrifice","sadden","saddlebag","saddled","saddling","sadly","sadness","safari","safeguard","safehouse","safely","safeness","saffron","saga","sage","sagging","saggy","said","saint","sake","salad","salami","salaried","salary","saline","salon","saloon","salsa","salt","salutary","salute","salvage","salvaging","salvation","same","sample","sampling","sanction","sanctity","sanctuary","sandal","sandbag","sandbank","sandbar","sandblast","sandbox","sanded","sandfish","sanding","sandlot","sandpaper","sandpit","sandstone","sandstorm","sandworm","sandy","sanitary","sanitizer","sank","santa","sapling","sappiness","sappy","sarcasm","sarcastic","sardine","sash","sasquatch","sassy","satchel","satiable","satin","satirical","satisfied","satisfy","saturate","saturday","sauciness","saucy","sauna","savage","savanna","saved","savings","savior","savor","saxophone","say","scabbed","scabby","scalded","scalding","scale","scaling","scallion","scallop","scalping","scam","scandal","scanner","scanning","scant","scapegoat","scarce","scarcity","scarecrow","scared","scarf","scarily","scariness","scarring","scary","scavenger","scenic","schedule","schematic","scheme","scheming","schilling","schnapps","scholar","science","scientist","scion","scoff","scolding","scone","scoop","scooter","scope","scorch","scorebook","scorecard","scored","scoreless","scorer","scoring","scorn","scorpion","scotch","scoundrel","scoured","scouring","scouting","scouts","scowling","scrabble","scraggly","scrambled","scrambler","scrap","scratch","scrawny","screen","scribble","scribe","scribing","scrimmage","script","scroll","scrooge","scrounger","scrubbed","scrubber","scruffy","scrunch","scrutiny","scuba","scuff","sculptor","sculpture","scurvy","scuttle","secluded","secluding","seclusion","second","secrecy","secret","sectional","sector","secular","securely","security","sedan","sedate","sedation","sedative","sediment","seduce","seducing","segment","seismic","seizing","seldom","selected","selection","selective","selector","self","seltzer","semantic","semester","semicolon","semifinal","seminar","semisoft","semisweet","senate","senator","send","senior","senorita","sensation","sensitive","sensitize","sensually","sensuous","sepia","september","septic","septum","sequel","sequence","sequester","series","sermon","serotonin","serpent","serrated","serve","service","serving","sesame","sessions","setback","setting","settle","settling","setup","sevenfold","seventeen","seventh","seventy","severity","shabby","shack","shaded","shadily","shadiness","shading","shadow","shady","shaft","shakable","shakily","shakiness","shaking","shaky","shale","shallot","shallow","shame","shampoo","shamrock","shank","shanty","shape","shaping","share","sharpener","sharper","sharpie","sharply","sharpness","shawl","sheath","shed","sheep","sheet","shelf","shell","shelter","shelve","shelving","sherry","shield","shifter","shifting","shiftless","shifty","shimmer","shimmy","shindig","shine","shingle","shininess","shining","shiny","ship","shirt","shivering","shock","shone","shoplift","shopper","shopping","shoptalk","shore","shortage","shortcake","shortcut","shorten","shorter","shorthand","shortlist","shortly","shortness","shorts","shortwave","shorty","shout","shove","showbiz","showcase","showdown","shower","showgirl","showing","showman","shown","showoff","showpiece","showplace","showroom","showy","shrank","shrapnel","shredder","shredding","shrewdly","shriek","shrill","shrimp","shrine","shrink","shrivel","shrouded","shrubbery","shrubs","shrug","shrunk","shucking","shudder","shuffle","shuffling","shun","shush","shut","shy","siamese","siberian","sibling","siding","sierra","siesta","sift","sighing","silenced","silencer","silent","silica","silicon","silk","silliness","silly","silo","silt","silver","similarly","simile","simmering","simple","simplify","simply","sincere","sincerity","singer","singing","single","singular","sinister","sinless","sinner","sinuous","sip","siren","sister","sitcom","sitter","sitting","situated","situation","sixfold","sixteen","sixth","sixties","sixtieth","sixtyfold","sizable","sizably","size","sizing","sizzle","sizzling","skater","skating","skedaddle","skeletal","skeleton","skeptic","sketch","skewed","skewer","skid","skied","skier","skies","skiing","skilled","skillet","skillful","skimmed","skimmer","skimming","skimpily","skincare","skinhead","skinless","skinning","skinny","skintight","skipper","skipping","skirmish","skirt","skittle","skydiver","skylight","skyline","skype","skyrocket","skyward","slab","slacked","slacker","slacking","slackness","slacks","slain","slam","slander","slang","slapping","slapstick","slashed","slashing","slate","slather","slaw","sled","sleek","sleep","sleet","sleeve","slept","sliceable","sliced","slicer","slicing","slick","slider","slideshow","sliding","slighted","slighting","slightly","slimness","slimy","slinging","slingshot","slinky","slip","slit","sliver","slobbery","slogan","sloped","sloping","sloppily","sloppy","slot","slouching","slouchy","sludge","slug","slum","slurp","slush","sly","small","smartly","smartness","smasher","smashing","smashup","smell","smelting","smile","smilingly","smirk","smite","smith","smitten","smock","smog","smoked","smokeless","smokiness","smoking","smoky","smolder","smooth","smother","smudge","smudgy","smuggler","smuggling","smugly","smugness","snack","snagged","snaking","snap","snare","snarl","snazzy","sneak","sneer","sneeze","sneezing","snide","sniff","snippet","snipping","snitch","snooper","snooze","snore","snoring","snorkel","snort","snout","snowbird","snowboard","snowbound","snowcap","snowdrift","snowdrop","snowfall","snowfield","snowflake","snowiness","snowless","snowman","snowplow","snowshoe","snowstorm","snowsuit","snowy","snub","snuff","snuggle","snugly","snugness","speak","spearfish","spearhead","spearman","spearmint","species","specimen","specked","speckled","specks","spectacle","spectator","spectrum","speculate","speech","speed","spellbind","speller","spelling","spendable","spender","spending","spent","spew","sphere","spherical","sphinx","spider","spied","spiffy","spill","spilt","spinach","spinal","spindle","spinner","spinning","spinout","spinster","spiny","spiral","spirited","spiritism","spirits","spiritual","splashed","splashing","splashy","splatter","spleen","splendid","splendor","splice","splicing","splinter","splotchy","splurge","spoilage","spoiled","spoiler","spoiling","spoils","spoken","spokesman","sponge","spongy","sponsor","spoof","spookily","spooky","spool","spoon","spore","sporting","sports","sporty","spotless","spotlight","spotted","spotter","spotting","spotty","spousal","spouse","spout","sprain","sprang","sprawl","spray","spree","sprig","spring","sprinkled","sprinkler","sprint","sprite","sprout","spruce","sprung","spry","spud","spur","sputter","spyglass","squabble","squad","squall","squander","squash","squatted","squatter","squatting","squeak","squealer","squealing","squeamish","squeegee","squeeze","squeezing","squid","squiggle","squiggly","squint","squire","squirt","squishier","squishy","stability","stabilize","stable","stack","stadium","staff","stage","staging","stagnant","stagnate","stainable","stained","staining","stainless","stalemate","staleness","stalling","stallion","stamina","stammer","stamp","stand","stank","staple","stapling","starboard","starch","stardom","stardust","starfish","stargazer","staring","stark","starless","starlet","starlight","starlit","starring","starry","starship","starter","starting","startle","startling","startup","starved","starving","stash","state","static","statistic","statue","stature","status","statute","statutory","staunch","stays","steadfast","steadier","steadily","steadying","steam","steed","steep","steerable","steering","steersman","stegosaur","stellar","stem","stench","stencil","step","stereo","sterile","sterility","sterilize","sterling","sternness","sternum","stew","stick","stiffen","stiffly","stiffness","stifle","stifling","stillness","stilt","stimulant","stimulate","stimuli","stimulus","stinger","stingily","stinging","stingray","stingy","stinking","stinky","stipend","stipulate","stir","stitch","stock","stoic","stoke","stole","stomp","stonewall","stoneware","stonework","stoning","stony","stood","stooge","stool","stoop","stoplight","stoppable","stoppage","stopped","stopper","stopping","stopwatch","storable","storage","storeroom","storewide","storm","stout","stove","stowaway","stowing","straddle","straggler","strained","strainer","straining","strangely","stranger","strangle","strategic","strategy","stratus","straw","stray","streak","stream","street","strength","strenuous","strep","stress","stretch","strewn","stricken","strict","stride","strife","strike","striking","strive","striving","strobe","strode","stroller","strongbox","strongly","strongman","struck","structure","strudel","struggle","strum","strung","strut","stubbed","stubble","stubbly","stubborn","stucco","stuck","student","studied","studio","study","stuffed","stuffing","stuffy","stumble","stumbling","stump","stung","stunned","stunner","stunning","stunt","stupor","sturdily","sturdy","styling","stylishly","stylist","stylized","stylus","suave","subarctic","subatomic","subdivide","subdued","subduing","subfloor","subgroup","subheader","subject","sublease","sublet","sublevel","sublime","submarine","submerge","submersed","submitter","subpanel","subpar","subplot","subprime","subscribe","subscript","subsector","subside","subsiding","subsidize","subsidy","subsoil","subsonic","substance","subsystem","subtext","subtitle","subtly","subtotal","subtract","subtype","suburb","subway","subwoofer","subzero","succulent","such","suction","sudden","sudoku","suds","sufferer","suffering","suffice","suffix","suffocate","suffrage","sugar","suggest","suing","suitable","suitably","suitcase","suitor","sulfate","sulfide","sulfite","sulfur","sulk","sullen","sulphate","sulphuric","sultry","superbowl","superglue","superhero","superior","superjet","superman","supermom","supernova","supervise","supper","supplier","supply","support","supremacy","supreme","surcharge","surely","sureness","surface","surfacing","surfboard","surfer","surgery","surgical","surging","surname","surpass","surplus","surprise","surreal","surrender","surrogate","surround","survey","survival","survive","surviving","survivor","sushi","suspect","suspend","suspense","sustained","sustainer","swab","swaddling","swagger","swampland","swan","swapping","swarm","sway","swear","sweat","sweep","swell","swept","swerve","swifter","swiftly","swiftness","swimmable","swimmer","swimming","swimsuit","swimwear","swinger","swinging","swipe","swirl","switch","swivel","swizzle","swooned","swoop","swoosh","swore","sworn","swung","sycamore","sympathy","symphonic","symphony","symptom","synapse","syndrome","synergy","synopses","synopsis","synthesis","synthetic","syrup","system","t-shirt","tabasco","tabby","tableful","tables","tablet","tableware","tabloid","tackiness","tacking","tackle","tackling","tacky","taco","tactful","tactical","tactics","tactile","tactless","tadpole","taekwondo","tag","tainted","take","taking","talcum","talisman","tall","talon","tamale","tameness","tamer","tamper","tank","tanned","tannery","tanning","tantrum","tapeless","tapered","tapering","tapestry","tapioca","tapping","taps","tarantula","target","tarmac","tarnish","tarot","tartar","tartly","tartness","task","tassel","taste","tastiness","tasting","tasty","tattered","tattle","tattling","tattoo","taunt","tavern","thank","that","thaw","theater","theatrics","thee","theft","theme","theology","theorize","thermal","thermos","thesaurus","these","thesis","thespian","thicken","thicket","thickness","thieving","thievish","thigh","thimble","thing","think","thinly","thinner","thinness","thinning","thirstily","thirsting","thirsty","thirteen","thirty","thong","thorn","those","thousand","thrash","thread","threaten","threefold","thrift","thrill","thrive","thriving","throat","throbbing","throng","throttle","throwaway","throwback","thrower","throwing","thud","thumb","thumping","thursday","thus","thwarting","thyself","tiara","tibia","tidal","tidbit","tidiness","tidings","tidy","tiger","tighten","tightly","tightness","tightrope","tightwad","tigress","tile","tiling","till","tilt","timid","timing","timothy","tinderbox","tinfoil","tingle","tingling","tingly","tinker","tinkling","tinsel","tinsmith","tint","tinwork","tiny","tipoff","tipped","tipper","tipping","tiptoeing","tiptop","tiring","tissue","trace","tracing","track","traction","tractor","trade","trading","tradition","traffic","tragedy","trailing","trailside","train","traitor","trance","tranquil","transfer","transform","translate","transpire","transport","transpose","trapdoor","trapeze","trapezoid","trapped","trapper","trapping","traps","trash","travel","traverse","travesty","tray","treachery","treading","treadmill","treason","treat","treble","tree","trekker","tremble","trembling","tremor","trench","trend","trespass","triage","trial","triangle","tribesman","tribunal","tribune","tributary","tribute","triceps","trickery","trickily","tricking","trickle","trickster","tricky","tricolor","tricycle","trident","tried","trifle","trifocals","trillion","trilogy","trimester","trimmer","trimming","trimness","trinity","trio","tripod","tripping","triumph","trivial","trodden","trolling","trombone","trophy","tropical","tropics","trouble","troubling","trough","trousers","trout","trowel","truce","truck","truffle","trump","trunks","trustable","trustee","trustful","trusting","trustless","truth","try","tubby","tubeless","tubular","tucking","tuesday","tug","tuition","tulip","tumble","tumbling","tummy","turban","turbine","turbofan","turbojet","turbulent","turf","turkey","turmoil","turret","turtle","tusk","tutor","tutu","tux","tweak","tweed","tweet","tweezers","twelve","twentieth","twenty","twerp","twice","twiddle","twiddling","twig","twilight","twine","twins","twirl","twistable","twisted","twister","twisting","twisty","twitch","twitter","tycoon","tying","tyke","udder","ultimate","ultimatum","ultra","umbilical","umbrella","umpire","unabashed","unable","unadorned","unadvised","unafraid","unaired","unaligned","unaltered","unarmored","unashamed","unaudited","unawake","unaware","unbaked","unbalance","unbeaten","unbend","unbent","unbiased","unbitten","unblended","unblessed","unblock","unbolted","unbounded","unboxed","unbraided","unbridle","unbroken","unbuckled","unbundle","unburned","unbutton","uncanny","uncapped","uncaring","uncertain","unchain","unchanged","uncharted","uncheck","uncivil","unclad","unclaimed","unclamped","unclasp","uncle","unclip","uncloak","unclog","unclothed","uncoated","uncoiled","uncolored","uncombed","uncommon","uncooked","uncork","uncorrupt","uncounted","uncouple","uncouth","uncover","uncross","uncrown","uncrushed","uncured","uncurious","uncurled","uncut","undamaged","undated","undaunted","undead","undecided","undefined","underage","underarm","undercoat","undercook","undercut","underdog","underdone","underfed","underfeed","underfoot","undergo","undergrad","underhand","underline","underling","undermine","undermost","underpaid","underpass","underpay","underrate","undertake","undertone","undertook","undertow","underuse","underwear","underwent","underwire","undesired","undiluted","undivided","undocked","undoing","undone","undrafted","undress","undrilled","undusted","undying","unearned","unearth","unease","uneasily","uneasy","uneatable","uneaten","unedited","unelected","unending","unengaged","unenvied","unequal","unethical","uneven","unexpired","unexposed","unfailing","unfair","unfasten","unfazed","unfeeling","unfiled","unfilled","unfitted","unfitting","unfixable","unfixed","unflawed","unfocused","unfold","unfounded","unframed","unfreeze","unfrosted","unfrozen","unfunded","unglazed","ungloved","unglue","ungodly","ungraded","ungreased","unguarded","unguided","unhappily","unhappy","unharmed","unhealthy","unheard","unhearing","unheated","unhelpful","unhidden","unhinge","unhitched","unholy","unhook","unicorn","unicycle","unified","unifier","uniformed","uniformly","unify","unimpeded","uninjured","uninstall","uninsured","uninvited","union","uniquely","unisexual","unison","unissued","unit","universal","universe","unjustly","unkempt","unkind","unknotted","unknowing","unknown","unlaced","unlatch","unlawful","unleaded","unlearned","unleash","unless","unleveled","unlighted","unlikable","unlimited","unlined","unlinked","unlisted","unlit","unlivable","unloaded","unloader","unlocked","unlocking","unlovable","unloved","unlovely","unloving","unluckily","unlucky","unmade","unmanaged","unmanned","unmapped","unmarked","unmasked","unmasking","unmatched","unmindful","unmixable","unmixed","unmolded","unmoral","unmovable","unmoved","unmoving","unnamable","unnamed","unnatural","unneeded","unnerve","unnerving","unnoticed","unopened","unopposed","unpack","unpadded","unpaid","unpainted","unpaired","unpaved","unpeeled","unpicked","unpiloted","unpinned","unplanned","unplanted","unpleased","unpledged","unplowed","unplug","unpopular","unproven","unquote","unranked","unrated","unraveled","unreached","unread","unreal","unreeling","unrefined","unrelated","unrented","unrest","unretired","unrevised","unrigged","unripe","unrivaled","unroasted","unrobed","unroll","unruffled","unruly","unrushed","unsaddle","unsafe","unsaid","unsalted","unsaved","unsavory","unscathed","unscented","unscrew","unsealed","unseated","unsecured","unseeing","unseemly","unseen","unselect","unselfish","unsent","unsettled","unshackle","unshaken","unshaved","unshaven","unsheathe","unshipped","unsightly","unsigned","unskilled","unsliced","unsmooth","unsnap","unsocial","unsoiled","unsold","unsolved","unsorted","unspoiled","unspoken","unstable","unstaffed","unstamped","unsteady","unsterile","unstirred","unstitch","unstopped","unstuck","unstuffed","unstylish","unsubtle","unsubtly","unsuited","unsure","unsworn","untagged","untainted","untaken","untamed","untangled","untapped","untaxed","unthawed","unthread","untidy","untie","until","untimed","untimely","untitled","untoasted","untold","untouched","untracked","untrained","untreated","untried","untrimmed","untrue","untruth","unturned","untwist","untying","unusable","unused","unusual","unvalued","unvaried","unvarying","unveiled","unveiling","unvented","unviable","unvisited","unvocal","unwanted","unwarlike","unwary","unwashed","unwatched","unweave","unwed","unwelcome","unwell","unwieldy","unwilling","unwind","unwired","unwitting","unwomanly","unworldly","unworn","unworried","unworthy","unwound","unwoven","unwrapped","unwritten","unzip","upbeat","upchuck","upcoming","upcountry","update","upfront","upgrade","upheaval","upheld","uphill","uphold","uplifted","uplifting","upload","upon","upper","upright","uprising","upriver","uproar","uproot","upscale","upside","upstage","upstairs","upstart","upstate","upstream","upstroke","upswing","uptake","uptight","uptown","upturned","upward","upwind","uranium","urban","urchin","urethane","urgency","urgent","urging","urologist","urology","usable","usage","useable","used","uselessly","user","usher","usual","utensil","utility","utilize","utmost","utopia","utter","vacancy","vacant","vacate","vacation","vagabond","vagrancy","vagrantly","vaguely","vagueness","valiant","valid","valium","valley","valuables","value","vanilla","vanish","vanity","vanquish","vantage","vaporizer","variable","variably","varied","variety","various","varmint","varnish","varsity","varying","vascular","vaseline","vastly","vastness","veal","vegan","veggie","vehicular","velcro","velocity","velvet","vendetta","vending","vendor","veneering","vengeful","venomous","ventricle","venture","venue","venus","verbalize","verbally","verbose","verdict","verify","verse","version","versus","vertebrae","vertical","vertigo","very","vessel","vest","veteran","veto","vexingly","viability","viable","vibes","vice","vicinity","victory","video","viewable","viewer","viewing","viewless","viewpoint","vigorous","village","villain","vindicate","vineyard","vintage","violate","violation","violator","violet","violin","viper","viral","virtual","virtuous","virus","visa","viscosity","viscous","viselike","visible","visibly","vision","visiting","visitor","visor","vista","vitality","vitalize","vitally","vitamins","vivacious","vividly","vividness","vixen","vocalist","vocalize","vocally","vocation","voice","voicing","void","volatile","volley","voltage","volumes","voter","voting","voucher","vowed","vowel","voyage","wackiness","wad","wafer","waffle","waged","wager","wages","waggle","wagon","wake","waking","walk","walmart","walnut","walrus","waltz","wand","wannabe","wanted","wanting","wasabi","washable","washbasin","washboard","washbowl","washcloth","washday","washed","washer","washhouse","washing","washout","washroom","washstand","washtub","wasp","wasting","watch","water","waviness","waving","wavy","whacking","whacky","wham","wharf","wheat","whenever","whiff","whimsical","whinny","whiny","whisking","whoever","whole","whomever","whoopee","whooping","whoops","why","wick","widely","widen","widget","widow","width","wieldable","wielder","wife","wifi","wikipedia","wildcard","wildcat","wilder","wildfire","wildfowl","wildland","wildlife","wildly","wildness","willed","willfully","willing","willow","willpower","wilt","wimp","wince","wincing","wind","wing","winking","winner","winnings","winter","wipe","wired","wireless","wiring","wiry","wisdom","wise","wish","wisplike","wispy","wistful","wizard","wobble","wobbling","wobbly","wok","wolf","wolverine","womanhood","womankind","womanless","womanlike","womanly","womb","woof","wooing","wool","woozy","word","work","worried","worrier","worrisome","worry","worsening","worshiper","worst","wound","woven","wow","wrangle","wrath","wreath","wreckage","wrecker","wrecking","wrench","wriggle","wriggly","wrinkle","wrinkly","wrist","writing","written","wrongdoer","wronged","wrongful","wrongly","wrongness","wrought","xbox","xerox","yahoo","yam","yanking","yapping","yard","yarn","yeah","yearbook","yearling","yearly","yearning","yeast","yelling","yelp","yen","yesterday","yiddish","yield","yin","yippee","yo-yo","yodel","yoga","yogurt","yonder","yoyo","yummy","zap","zealous","zebra","zen","zeppelin","zero","zestfully","zesty","zigzagged","zipfile","zipping","zippy","zips","zit","zodiac","zombie","zone","zoning","zookeeper","zoologist","zoology","zoom"]},81495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSecureRandomNumber=t.getSecureRandomWords=t.getSecureRandomBytes=void 0;const a=n(85763);async function r(e){return(0,a.getSecureRandomBytes)(e)}t.getSecureRandomBytes=r,t.getSecureRandomWords=async function e(t){return e(t)},t.getSecureRandomNumber=async function(e,t){let n=t-e;var a=Math.ceil(Math.log2(n));if(a>53)throw new Error("Range is too large");for(var i=Math.ceil(a/8),s=Math.pow(2,a)-1;;){let t=await r(a),c=8*(i-1),u=0;for(var o=0;o=n))return e+u}}},34299:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hmac_sha512=t.hmac_sha512_fallback=void 0;const i=r(n(95548)),s=n(85763);t.hmac_sha512_fallback=async function(e,t){let n="string"==typeof e?a.from(e,"utf-8"):e,r="string"==typeof t?a.from(t,"utf-8"):t;const s=new i.default("SHA-512","HEX",{hmacKey:{value:n.toString("hex"),format:"HEX"}});s.update(r.toString("hex"));const o=s.getHash("HEX");return a.from(o,"hex")},t.hmac_sha512=function(e,t){return(0,s.hmac_sha512)(e,t)}},67091:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.openBox=t.sealBox=t.signVerify=t.sign=t.keyPairFromSeed=t.keyPairFromSecretKey=void 0;const i=r(n(82926));t.keyPairFromSecretKey=function(e){let t=i.default.sign.keyPair.fromSecretKey(new Uint8Array(e));return{publicKey:a.from(t.publicKey),secretKey:a.from(t.secretKey)}},t.keyPairFromSeed=function(e){let t=i.default.sign.keyPair.fromSeed(new Uint8Array(e));return{publicKey:a.from(t.publicKey),secretKey:a.from(t.secretKey)}},t.sign=function(e,t){return a.from(i.default.sign.detached(new Uint8Array(e),new Uint8Array(t)))},t.signVerify=function(e,t,n){return i.default.sign.detached.verify(new Uint8Array(e),new Uint8Array(t),new Uint8Array(n))},t.sealBox=function(e,t,n){return a.from(i.default.secretbox(e,t,n))},t.openBox=function(e,t,n){let r=i.default.secretbox.open(e,t,n);return r?a.from(r):null}},46829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2_sha512=void 0;const a=n(85763);t.pbkdf2_sha512=function(e,t,n,r){return(0,a.pbkdf2_sha512)(e,t,n,r)}},99690:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=t.sha256_fallback=t.sha256_sync=void 0;const i=r(n(95548)),s=n(85763);function o(e){let t;t="string"==typeof e?a.from(e,"utf-8").toString("hex"):e.toString("hex");let n=new i.default("SHA-256","HEX");n.update(t);let r=n.getHash("HEX");return a.from(r,"hex")}t.sha256_sync=o,t.sha256_fallback=async function(e){return o(e)},t.sha256=function(e){return(0,s.sha256)(e)}},76915:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha512_fallback=t.sha512_sync=void 0;const i=r(n(95548)),s=n(85763);function o(e){let t;t="string"==typeof e?a.from(e,"utf-8").toString("hex"):e.toString("hex");let n=new i.default("SHA-512","HEX");n.update(t);let r=n.getHash("HEX");return a.from(r,"hex")}t.sha512_sync=o,t.sha512_fallback=async function(e){return o(e)},t.sha512=async function(e){return(0,s.sha512)(e)}},71763:(e,t,n)=>{"use strict";var a=n(1048).Buffer;function r(e,t,n){for(;e.length0;)t.push(parseInt(e.slice(0,8),2)),e=e.slice(8);return a.from(t)}},65562:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.TonClient=void 0;const r=n(18723),i=n(6900);function s(e){const t=e["@type"];switch(t){case"tvm.list":case"tvm.tuple":return e.elements.map(s);case"tvm.cell":case"tvm.slice":return i.Cell.fromBoc(a.from(e.bytes,"base64"))[0];case"tvm.stackEntryCell":return s(e.cell);case"tvm.stackEntrySlice":return s(e.slice);case"tvm.stackEntryTuple":return s(e.tuple);case"tvm.stackEntryList":return s(e.list);case"tvm.stackEntryNumber":return s(e.number);case"tvm.numberDecimal":return BigInt(e.number);default:throw Error("Unsupported item type: "+t)}}function o(e){if("num"===e[0]){let t=e[1];return t.startsWith("-")?{type:"int",value:-BigInt(t.slice(1))}:{type:"int",value:BigInt(t)}}if("null"===e[0])return{type:"null"};if("cell"===e[0])return{type:"cell",cell:i.Cell.fromBoc(a.from(e[1].bytes,"base64"))[0]};if("slice"===e[0])return{type:"slice",cell:i.Cell.fromBoc(a.from(e[1].bytes,"base64"))[0]};if("builder"===e[0])return{type:"builder",cell:i.Cell.fromBoc(a.from(e[1].bytes,"base64"))[0]};if("tuple"===e[0]||"list"===e[0])return 0===e[1].elements.length?{type:"null"}:{type:"tuple",items:e[1].elements.map(s)};throw Error("Unsupported stack item type: "+e[0])}function c(e){let t=[];for(let n of e)t.push(o(n));return new i.TupleReader(t)}function u(e,t,n){return{async getState(){let n,r=await e.getContractState(t),i=r.balance,s=r.lastTransaction?{lt:BigInt(r.lastTransaction.lt),hash:a.from(r.lastTransaction.hash,"base64")}:null;if("active"===r.state)n={type:"active",code:r.code?r.code:null,data:r.data?r.data:null};else if("uninitialized"===r.state)n={type:"uninit"};else{if("frozen"!==r.state)throw Error("Unsupported state");n={type:"frozen",stateHash:a.alloc(0)}}return{balance:i,last:s,state:n}},get:async(n,a)=>({stack:(await e.callGetMethod(t,n,a)).stack}),async external(a){let r=null;n&&!await e.isContractDeployed(t)&&(r=n);const s=(0,i.external)({to:t,init:r,body:a});let o=(0,i.beginCell)().store((0,i.storeMessage)(s)).endCell().toBoc();await e.sendFile(o)},async internal(a,r){let s=null;n&&!await e.isContractDeployed(t)&&(s=n);let o,c=!0;null!==r.bounce&&void 0!==r.bounce&&(c=r.bounce),o="string"==typeof r.value?(0,i.toNano)(r.value):r.value;let u=null;"string"==typeof r.body?u=(0,i.comment)(r.body):r.body&&(u=r.body),await a.send({to:t,value:o,bounce:c,sendMode:r.sendMode,init:s,body:u})},open:t=>(0,i.openContract)(t,(t=>u(e,t.address,t.init??null))),getTransactions:(t,n,a,r)=>e.getTransactions(t,{limit:r??100,lt:n.toString(),hash:a.toString("base64"),inclusive:!0})}}t.TonClient=class{constructor(e){this.parameters={endpoint:e.endpoint},this.api=new r.HttpApi(this.parameters.endpoint,{timeout:e.timeout,apiKey:e.apiKey,adapter:e.httpAdapter})}async getBalance(e){return(await this.getContractState(e)).balance}async runMethod(e,t,n=[]){let a=await this.api.callGetMethod(e,t,n);if(0!==a.exit_code)throw Error("Unable to execute get method. Got exit_code: "+a.exit_code);return{gas_used:a.gas_used,stack:c(a.stack)}}async callGetMethod(e,t,n=[]){return this.runMethod(e,t,n)}async runMethodWithError(e,t,n=[]){let a=await this.api.callGetMethod(e,t,n);return{gas_used:a.gas_used,stack:c(a.stack),exit_code:a.exit_code}}async callGetMethodWithError(e,t,n=[]){return this.runMethodWithError(e,t,n)}async getTransactions(e,t){let n=await this.api.getTransactions(e,t),r=[];for(let e of n)r.push((0,i.loadTransaction)(i.Cell.fromBoc(a.from(e.data,"base64"))[0].beginParse()));return r}async getTransaction(e,t,n){let r=await this.api.getTransaction(e,t,n);return r?(0,i.loadTransaction)(i.Cell.fromBoc(a.from(r.data,"base64"))[0].beginParse()):null}async tryLocateResultTx(e,t,n){let a=await this.api.tryLocateResultTx(e,t,n);return(0,i.loadTransaction)(i.Cell.fromBase64(a.data).beginParse())}async tryLocateSourceTx(e,t,n){let a=await this.api.tryLocateSourceTx(e,t,n);return(0,i.loadTransaction)(i.Cell.fromBase64(a.data).beginParse())}async getMasterchainInfo(){let e=await this.api.getMasterchainInfo();return{workchain:e.init.workchain,shard:e.last.shard,initSeqno:e.init.seqno,latestSeqno:e.last.seqno}}async getWorkchainShards(e){return(await this.api.getShards(e)).map((e=>({workchain:e.workchain,shard:e.shard,seqno:e.seqno})))}async getShardTransactions(e,t,n){let a=await this.api.getBlockTransactions(e,t,n);if(a.incomplete)throw Error("Unsupported");return a.transactions.map((e=>({account:i.Address.parseRaw(e.account),lt:e.lt,hash:e.hash})))}async sendMessage(e){const t=(0,i.beginCell)().store((0,i.storeMessage)(e)).endCell().toBoc();await this.api.sendBoc(t)}async sendFile(e){await this.api.sendBoc(e)}async estimateExternalMessageFee(e,t){return await this.api.estimateFee(e,{body:t.body,initCode:t.initCode,initData:t.initData,ignoreSignature:t.ignoreSignature})}async sendExternalMessage(e,t){if(await this.isContractDeployed(e.address)||!e.init){const n=(0,i.external)({to:e.address,body:t});await this.sendMessage(n)}else{const n=(0,i.external)({to:e.address,init:e.init,body:t});await this.sendMessage(n)}}async isContractDeployed(e){return"active"===(await this.getContractState(e)).state}async getContractState(e){let t=await this.api.getAddressInformation(e);return{balance:BigInt(t.balance),state:t.state,code:""!==t.code?a.from(t.code,"base64"):null,data:""!==t.data?a.from(t.data,"base64"):null,lastTransaction:"0"!==t.last_transaction_id.lt?{lt:t.last_transaction_id.lt,hash:t.last_transaction_id.hash}:null,blockId:{workchain:t.block_id.workchain,shard:t.block_id.shard,seqno:t.block_id.seqno},timestampt:t.sync_utime}}open(e){return(0,i.openContract)(e,(e=>u(this,e.address,e.init)))}provider(e,t){return u(this,e,t??null)}}},16380:function(e,t,n){"use strict";var a,r,i,s,o=n(1048).Buffer,c=this&&this.__classPrivateFieldSet||function(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n},u=this&&this.__classPrivateFieldGet||function(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TonClient4=void 0;const d=l(n(41541)),p=n(6900),h=n(12819),f=n(75995);function m(e,t,n,a){return{async getState(){let a=t;null===a&&(a=(await e.getLastBlock()).last.seqno);let r,i=await e.getAccount(a,n),s=i.account.last?{lt:BigInt(i.account.last.lt),hash:o.from(i.account.last.hash,"base64")}:null;if("active"===i.account.state.type)r={type:"active",code:i.account.state.code?o.from(i.account.state.code,"base64"):null,data:i.account.state.data?o.from(i.account.state.data,"base64"):null};else if("uninit"===i.account.state.type)r={type:"uninit"};else{if("frozen"!==i.account.state.type)throw Error("Unsupported state");r={type:"frozen",stateHash:o.from(i.account.state.stateHash,"base64")}}return{balance:BigInt(i.account.balance.coins),last:s,state:r}},async get(a,r){let i=t;null===i&&(i=(await e.getLastBlock()).last.seqno);let s=await e.runMethod(i,n,a,r);if(0!==s.exitCode&&1!==s.exitCode)throw Error("Exit code: "+s.exitCode);return{stack:new p.TupleReader(s.result)}},async external(t){let r=await e.getLastBlock(),i=null;a&&"active"!==(await e.getAccountLite(r.last.seqno,n)).account.state.type&&(i=a);const s=(0,p.external)({to:n,init:i,body:t});let o=(0,p.beginCell)().store((0,p.storeMessage)(s)).endCell().toBoc();await e.sendMessage(o)},async internal(t,r){let i=await e.getLastBlock(),s=null;a&&"active"!==(await e.getAccountLite(i.last.seqno,n)).account.state.type&&(s=a);let o,c=!0;null!==r.bounce&&void 0!==r.bounce&&(c=r.bounce),o="string"==typeof r.value?(0,p.toNano)(r.value):r.value;let u=null;"string"==typeof r.body?u=(0,p.comment)(r.body):r.body&&(u=r.body),await t.send({to:n,value:o,bounce:c,sendMode:r.sendMode,init:s,body:u})},open:n=>(0,p.openContract)(n,(n=>m(e,t,n.address,n.init??null))),async getTransactions(t,n,a,r){const i="number"==typeof r;if(i&&r<=0)return[];let s=[];do{const r=await e.getAccountTransactions(t,n,a),i=r[0].tx,[o,c]=[i.lt,i.hash()];if(s.length>0&&o===n&&c.equals(a)&&r.shift(),0===r.length)break;const u=r[r.length-1].tx,[l,d]=[u.lt,u.hash()];if(l===n&&d.equals(a))break;s.push(...r.map((e=>e.tx))),n=l,a=d}while(i&&s.length0&&(n="/"+[...t].sort().join(","));let o=await u(this,s,"f").get(u(this,a,"f")+"/block/"+e+"/config"+n,{adapter:u(this,i,"f"),timeout:u(this,r,"f")}),c=I.safeParse(o.data);if(!c.success)throw Error("Mailformed response");return c.data}async runMethod(e,t,n,c){let l=c&&c.length>0?"/"+(0,h.toUrlSafe)((0,p.serializeTuple)(c).toBoc({idx:!1,crc32:!1}).toString("base64")):"",d=u(this,a,"f")+"/block/"+e+"/"+t.toString({urlSafe:!0})+"/run/"+encodeURIComponent(n)+l,f=await u(this,s,"f").get(d,{adapter:u(this,i,"f"),timeout:u(this,r,"f")}),m=w.safeParse(f.data);if(!m.success)throw Error("Mailformed response");let y=m.data.resultRaw?(0,p.parseTuple)(p.Cell.fromBoc(o.from(m.data.resultRaw,"base64"))[0]):[];return{exitCode:m.data.exitCode,result:y,resultRaw:m.data.resultRaw,block:m.data.block,shardBlock:m.data.shardBlock,reader:new p.TupleReader(y)}}async sendMessage(e){let t=await u(this,s,"f").post(u(this,a,"f")+"/send",{boc:e.toString("base64")},{adapter:u(this,i,"f"),timeout:u(this,r,"f")});if(!S.safeParse(t.data).success)throw Error("Mailformed response");return{status:t.data.status}}open(e){return(0,p.openContract)(e,(e=>m(this,null,e.address,e.init)))}openAt(e,t){return(0,p.openContract)(t,(t=>m(this,e,t.address,t.init)))}provider(e,t){return m(this,null,e,t??null)}providerAt(e,t,n){return m(this,e,t,n??null)}},a=new WeakMap,r=new WeakMap,i=new WeakMap,s=new WeakMap;const y=f.z.object({last:f.z.object({seqno:f.z.number(),shard:f.z.string(),workchain:f.z.number(),fileHash:f.z.string(),rootHash:f.z.string()}),init:f.z.object({fileHash:f.z.string(),rootHash:f.z.string()}),stateRootHash:f.z.string(),now:f.z.number()}),g=f.z.union([f.z.object({exist:f.z.literal(!1)}),f.z.object({exist:f.z.literal(!0),block:f.z.object({shards:f.z.array(f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string(),transactions:f.z.array(f.z.object({account:f.z.string(),hash:f.z.string(),lt:f.z.string()}))}))})})]),b=f.z.object({lastPaid:f.z.number(),duePayment:f.z.union([f.z.null(),f.z.string()]),used:f.z.object({bits:f.z.number(),cells:f.z.number(),publicCells:f.z.number()})}),v=f.z.object({account:f.z.object({state:f.z.union([f.z.object({type:f.z.literal("uninit")}),f.z.object({type:f.z.literal("active"),code:f.z.union([f.z.string(),f.z.null()]),data:f.z.union([f.z.string(),f.z.null()])}),f.z.object({type:f.z.literal("frozen"),stateHash:f.z.string()})]),balance:f.z.object({coins:f.z.string()}),last:f.z.union([f.z.null(),f.z.object({lt:f.z.string(),hash:f.z.string()})]),storageStat:f.z.union([f.z.null(),b])}),block:f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string()})}),_=f.z.object({account:f.z.object({state:f.z.union([f.z.object({type:f.z.literal("uninit")}),f.z.object({type:f.z.literal("active"),codeHash:f.z.string(),dataHash:f.z.string()}),f.z.object({type:f.z.literal("frozen"),stateHash:f.z.string()})]),balance:f.z.object({coins:f.z.string()}),last:f.z.union([f.z.null(),f.z.object({lt:f.z.string(),hash:f.z.string()})]),storageStat:f.z.union([f.z.null(),b])})}),A=f.z.object({changed:f.z.boolean(),block:f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string()})}),w=f.z.object({exitCode:f.z.number(),resultRaw:f.z.union([f.z.string(),f.z.null()]),block:f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string()}),shardBlock:f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string()})}),I=f.z.object({config:f.z.object({cell:f.z.string(),address:f.z.string(),globalBalance:f.z.object({coins:f.z.string()})})}),S=f.z.object({status:f.z.number()}),x=f.z.array(f.z.object({workchain:f.z.number(),seqno:f.z.number(),shard:f.z.string(),rootHash:f.z.string(),fileHash:f.z.string()})),C=f.z.object({blocks:x,boc:f.z.string()}),k=f.z.object({bits:f.z.number(),data:f.z.string()}),T=f.z.union([f.z.object({type:f.z.literal("internal"),value:f.z.string(),dest:f.z.string(),src:f.z.string(),bounced:f.z.boolean(),bounce:f.z.boolean(),ihrDisabled:f.z.boolean(),createdAt:f.z.number(),createdLt:f.z.string(),fwdFee:f.z.string(),ihrFee:f.z.string()}),f.z.object({type:f.z.literal("external-in"),dest:f.z.string(),src:f.z.union([k,f.z.null()]),importFee:f.z.string()}),f.z.object({type:f.z.literal("external-out"),dest:f.z.union([k,f.z.null()])})]),E=f.z.object({splitDepth:f.z.union([f.z.number(),f.z.null()]),code:f.z.union([f.z.string(),f.z.null()]),data:f.z.union([f.z.string(),f.z.null()]),special:f.z.union([f.z.object({tick:f.z.boolean(),tock:f.z.boolean()}),f.z.null()])}),P=f.z.object({body:f.z.string(),info:T,init:f.z.union([E,f.z.null()])}),O=f.z.union([f.z.literal("uninitialized"),f.z.literal("frozen"),f.z.literal("active"),f.z.literal("non-existing")]),B=f.z.union([f.z.object({type:f.z.literal("comment"),comment:f.z.string()}),f.z.object({type:f.z.literal("payload"),cell:f.z.string()})]),R=f.z.union([f.z.object({kind:f.z.literal("ton"),amount:f.z.string()}),f.z.object({kind:f.z.literal("token"),amount:f.z.string()})]),N=f.z.union([f.z.literal("jetton::excesses"),f.z.literal("jetton::transfer"),f.z.literal("jetton::transfer_notification"),f.z.literal("deposit"),f.z.literal("deposit::ok"),f.z.literal("withdraw"),f.z.literal("withdraw::all"),f.z.literal("withdraw::delayed"),f.z.literal("withdraw::ok"),f.z.literal("airdrop")]),M=f.z.object({type:N,options:f.z.optional(f.z.record(f.z.string()))}),D=f.z.object({address:f.z.string(),comment:f.z.optional(f.z.string()),items:f.z.array(R),op:f.z.optional(M)}),L=f.z.object({address:f.z.string(),lt:f.z.string(),hash:f.z.string(),prevTransaction:f.z.object({lt:f.z.string(),hash:f.z.string()}),time:f.z.number(),outMessagesCount:f.z.number(),oldStatus:O,newStatus:O,fees:f.z.string(),update:f.z.object({oldHash:f.z.string(),newHash:f.z.string()}),inMessage:f.z.union([P,f.z.null()]),outMessages:f.z.array(P),parsed:f.z.object({seqno:f.z.union([f.z.number(),f.z.null()]),body:f.z.union([B,f.z.null()]),status:f.z.union([f.z.literal("success"),f.z.literal("failed"),f.z.literal("pending")]),dest:f.z.union([f.z.string(),f.z.null()]),kind:f.z.union([f.z.literal("out"),f.z.literal("in")]),amount:f.z.string(),resolvedAddress:f.z.string(),bounced:f.z.boolean(),mentioned:f.z.array(f.z.string())}),operation:D}),V=f.z.object({blocks:x,transactions:f.z.array(L)})},18723:function(e,t,n){"use strict";var a=n(1048).Buffer,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HttpApi=void 0;const i=n(63978),s=r(n(25033)),o=r(n(41541)),c=n(75995),u=n(72302).rE,l=c.z.object({"@type":c.z.literal("ton.blockIdExt"),workchain:c.z.number(),shard:c.z.string(),seqno:c.z.number(),root_hash:c.z.string(),file_hash:c.z.string()}),d=c.z.object({balance:c.z.union([c.z.number(),c.z.string()]),state:c.z.union([c.z.literal("active"),c.z.literal("uninitialized"),c.z.literal("frozen")]),data:c.z.string(),code:c.z.string(),last_transaction_id:c.z.object({"@type":c.z.literal("internal.transactionId"),lt:c.z.string(),hash:c.z.string()}),block_id:l,sync_utime:c.z.number()}),p=c.z.object({"@type":c.z.literal("ok")}),h=c.z.object({"@type":c.z.literal("query.fees"),source_fees:c.z.object({"@type":c.z.literal("fees"),in_fwd_fee:c.z.number(),storage_fee:c.z.number(),gas_fee:c.z.number(),fwd_fee:c.z.number()})}),f=c.z.object({gas_used:c.z.number(),exit_code:c.z.number(),stack:c.z.array(c.z.unknown())}),m=c.z.union([c.z.object({"@type":c.z.literal("msg.dataRaw"),body:c.z.string()}),c.z.object({"@type":c.z.literal("msg.dataText"),text:c.z.string()}),c.z.object({"@type":c.z.literal("msg.dataDecryptedText"),text:c.z.string()}),c.z.object({"@type":c.z.literal("msg.dataEncryptedText"),text:c.z.string()})]),y=c.z.object({source:c.z.string(),destination:c.z.string(),value:c.z.string(),fwd_fee:c.z.string(),ihr_fee:c.z.string(),created_lt:c.z.string(),body_hash:c.z.string(),msg_data:m,message:c.z.string().optional()}),g=c.z.object({data:c.z.string(),utime:c.z.number(),transaction_id:c.z.object({lt:c.z.string(),hash:c.z.string()}),fee:c.z.string(),storage_fee:c.z.string(),other_fee:c.z.string(),in_msg:c.z.union([c.z.undefined(),y]),out_msgs:c.z.array(y)}),b=c.z.array(g),v=c.z.object({state_root_hash:c.z.string(),last:l,init:l}),_=c.z.object({shards:c.z.array(l)}),A=c.z.object({"@type":c.z.literal("blocks.shortTxId"),mode:c.z.number(),account:c.z.string(),lt:c.z.string(),hash:c.z.string()}),w=c.z.object({id:l,req_count:c.z.number(),incomplete:c.z.boolean(),transactions:c.z.array(A)});class I{constructor(e,t,n,a){this.namespace=e,this.cache=t,this.codec=n,this.keyEncoder=a}async get(e){let t=await this.cache.get(this.namespace,this.keyEncoder(e));if(t){let e=this.codec.safeParse(JSON.parse(t));if(e.success)return e.data}return null}async set(e,t){null!==t?await this.cache.set(this.namespace,this.keyEncoder(e),JSON.stringify(t)):await this.cache.set(this.namespace,this.keyEncoder(e),null)}}function S(e){let t=[];for(let n of e)if("int"===n.type)t.push(["num",n.value.toString()]);else if("cell"===n.type)t.push(["tvm.Cell",n.cell.toBoc().toString("base64")]);else if("slice"===n.type)t.push(["tvm.Slice",n.cell.toBoc().toString("base64")]);else{if("builder"!==n.type)throw Error("Unsupported stack item type: "+n.type);t.push(["tvm.Builder",n.cell.toBoc().toString("base64")])}return t}t.HttpApi=class{constructor(e,t){this.endpoint=e,this.cache=new i.InMemoryCache,this.parameters={timeout:t?.timeout||3e4,apiKey:t?.apiKey,adapter:t?.adapter},this.shardCache=new I("ton-shard",this.cache,c.z.array(l),(e=>e+"")),this.shardLoader=new s.default((async e=>await Promise.all(e.map((async e=>{const t=await this.shardCache.get(e);if(t)return t;let n=(await this.doCall("shards",{seqno:e},_)).shards;return await this.shardCache.set(e,n),n}))))),this.shardTransactionsCache=new I("ton-shard-tx",this.cache,w,(e=>e.workchain+":"+e.shard+":"+e.seqno)),this.shardTransactionsLoader=new s.default((async e=>await Promise.all(e.map((async e=>{const t=await this.shardTransactionsCache.get(e);if(t)return t;let n=await this.doCall("getBlockTransactions",{workchain:e.workchain,seqno:e.seqno,shard:e.shard},w);return await this.shardTransactionsCache.set(e,n),n})))),{cacheKeyFn:e=>e.workchain+":"+e.shard+":"+e.seqno})}getAddressInformation(e){return this.doCall("getAddressInformation",{address:e.toString()},d)}async getTransactions(e,t){const n=t.inclusive;let r;delete t.inclusive,t.hash&&(r=a.from(t.hash,"base64").toString("hex"));let i=t.limit;t.hash&&t.lt&&!0!==n&&i++;let s=await this.doCall("getTransactions",{address:e.toString(),...t,limit:i,hash:r},b);return s.length>i&&(s=s.slice(0,i)),t.hash&&t.lt&&!0!==n?(s.shift(),s):s}async getMasterchainInfo(){return await this.doCall("getMasterchainInfo",{},v)}async getShards(e){return await this.shardLoader.load(e)}async getBlockTransactions(e,t,n){return await this.shardTransactionsLoader.load({workchain:e,seqno:t,shard:n})}async getTransaction(e,t,n){let r=a.from(n,"base64").toString("hex");return(await this.doCall("getTransactions",{address:e.toString(),lt:t,hash:r,limit:1},b)).find((e=>e.transaction_id.lt===t&&e.transaction_id.hash===n))||null}async callGetMethod(e,t,n){return await this.doCall("runGetMethod",{address:e.toString(),method:t,stack:S(n)},f)}async sendBoc(e){await this.doCall("sendBoc",{boc:e.toString("base64")},p)}async estimateFee(e,t){return await this.doCall("estimateFee",{address:e.toString(),body:t.body.toBoc().toString("base64"),init_data:t.initData?t.initData.toBoc().toString("base64"):"",init_code:t.initCode?t.initCode.toBoc().toString("base64"):"",ignore_chksig:t.ignoreSignature},h)}async tryLocateResultTx(e,t,n){return await this.doCall("tryLocateResultTx",{source:e.toString(),destination:t.toString(),created_lt:n},g)}async tryLocateSourceTx(e,t,n){return await this.doCall("tryLocateSourceTx",{source:e.toString(),destination:t.toString(),created_lt:n},g)}async doCall(e,t,n){let a={"Content-Type":"application/json","X-Ton-Client-Version":u};this.parameters.apiKey&&(a["X-API-Key"]=this.parameters.apiKey);let r=await o.default.post(this.endpoint,JSON.stringify({id:"1",jsonrpc:"2.0",method:e,params:t}),{headers:a,timeout:this.parameters.timeout,adapter:this.parameters.adapter});if(200!==r.status||!r.data.ok)throw Error("Received error: "+JSON.stringify(r.data));let i=n.safeParse(r.data.result);if(i.success)return i.data;throw Error("Malformed response: "+i.error.format()._errors.join(", "))}}},63978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryCache=void 0,t.InMemoryCache=class{constructor(){this.cache=new Map,this.set=async(e,t,n)=>{null!==n?this.cache.set(e+"$$"+t,n):this.cache.delete(e+"$$"+t)},this.get=async(e,t)=>{let n=this.cache.get(e+"$$"+t);return void 0!==n?n:null}}}},26440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseFullConfig=t.loadConfigParamsAsSlice=t.loadConfigParamById=t.parseVotingSetup=t.parseProposalSetup=t.configParse29=t.configParse28=t.configParseMsgPrices=t.configParseGasLimitsPrices=t.configParseBridge=t.configParseValidatorSet=t.configParse12=t.configParseWorkchainDescriptor=t.configParse40=t.configParse8=t.configParse18=t.configParse17=t.configParse16=t.configParse15=t.configParse13=t.configParse5=t.configParseMasterAddressRequired=t.parseBridge=t.parseValidatorSet=t.configParseMasterAddress=void 0;const a=n(6900);function r(e){return e?new a.Address(-1,e.loadBuffer(32)):null}function i(e){if(2390828938!==e.loadUint(32))throw Error("Invalid config");return e.loadBuffer(32)}t.configParseMasterAddress=r;const s={serialize(e,t){throw Error("not implemented")},parse(e){const t=e.loadUint(8);if(83===t)return{publicKey:i(e),weight:e.loadUintBig(64),adnlAddress:null};if(115===t)return{publicKey:i(e),weight:e.loadUintBig(64),adnlAddress:e.loadBuffer(32)};throw Error("Invalid config")}};function o(e){const t=e.loadUint(8);return 17===t?{timeSince:e.loadUint(32),timeUntil:e.loadUint(32),total:e.loadUint(16),main:e.loadUint(16),totalWeight:null,list:e.loadDictDirect(a.Dictionary.Keys.Uint(16),s)}:18===t?{timeSince:e.loadUint(32),timeUntil:e.loadUint(32),total:e.loadUint(16),main:e.loadUint(16),totalWeight:e.loadUintBig(64),list:e.loadDict(a.Dictionary.Keys.Uint(16),s)}:void 0}function c(e){const t=new a.Address(-1,e.loadBuffer(32)),n=new a.Address(-1,e.loadBuffer(32)),r=e.loadDict(a.Dictionary.Keys.Buffer(32),a.Dictionary.Values.Buffer(32)),i=new Map;for(const[e,t]of r)i.set(new a.Address(-1,e).toString(),t);return{bridgeAddress:t,oracleMultisigAddress:n,oracles:i,externalChainAddress:e.loadBuffer(32)}}function u(e){if(!e)throw Error("Invalid config");return r(e)}function l(e){if(!e)throw Error("Invalid config");if(1===e.loadUint(8))return{blackholeAddr:e.loadBit()?new a.Address(-1,e.loadBuffer(32)):null,feeBurnNominator:e.loadUint(32),feeBurnDenominator:e.loadUint(32)};throw new Error("Invalid config")}function d(e){if(!e)throw Error("Invalid config");return{validatorsElectedFor:e.loadUint(32),electorsStartBefore:e.loadUint(32),electorsEndBefore:e.loadUint(32),stakeHeldFor:e.loadUint(32)}}function p(e){if(!e)throw Error("Invalid config");return{maxValidators:e.loadUint(16),maxMainValidators:e.loadUint(16),minValidators:e.loadUint(16)}}function h(e){if(!e)throw Error("Invalid config");return{minStake:e.loadCoins(),maxStake:e.loadCoins(),minTotalStake:e.loadCoins(),maxStakeFactor:e.loadUint(32)}}t.parseValidatorSet=o,t.parseBridge=c,t.configParseMasterAddressRequired=u,t.configParse5=l,t.configParse13=function(e){if(!e)throw Error("Invalid config");if(26===e.loadUint(8))return{deposit:e.loadCoins(),bitPrice:e.loadCoins(),cellPrice:e.loadCoins()};throw new Error("Invalid config")},t.configParse15=d,t.configParse16=p,t.configParse17=h;const f={serialize(e,t){throw Error("not implemented")},parse(e){if(204!==e.loadUint(8))throw Error("Invalid config");return{utime_since:e.loadUint(32),bit_price_ps:e.loadUintBig(64),cell_price_ps:e.loadUintBig(64),mc_bit_price_ps:e.loadUintBig(64),mc_cell_price_ps:e.loadUintBig(64)}}};function m(e){if(!e)throw Error("Invalid config");return e.loadDictDirect(a.Dictionary.Keys.Buffer(4),f).values()}function y(e){return e?{version:e.loadUint(32),capabilities:e.loadUintBig(64)}:{version:0,capabilities:0n}}function g(e){if(!e)return null;if(1!==e.loadUint(8))throw Error("Invalid config");return{defaultFlatFine:e.loadCoins(),defaultProportionaFine:e.loadCoins(),severityFlatMult:e.loadUint(16),severityProportionalMult:e.loadUint(16),unfunishableInterval:e.loadUint(16),longInterval:e.loadUint(16),longFlatMult:e.loadUint(16),longProportionalMult:e.loadUint(16),mediumInterval:e.loadUint(16),mediumFlatMult:e.loadUint(16),mediumProportionalMult:e.loadUint(16)}}t.configParse18=m,t.configParse8=y,t.configParse40=g,t.configParseWorkchainDescriptor=function(e){if(166!==e.loadUint(8))throw Error("Invalid config");const t=e.loadUint(32),n=e.loadUint(8),a=e.loadUint(8),r=e.loadUint(8),i=e.loadBit(),s=e.loadBit(),o=e.loadBit(),c=e.loadUint(13),u=e.loadBuffer(32),l=e.loadBuffer(32),d=e.loadUint(32);if(e.loadBit())throw Error("Invalid config");return{enabledSince:t,actialMinSplit:n,min_split:a,max_split:r,basic:i,active:s,accept_msgs:o,flags:c,zerostateRootHash:u,zerostateFileHash:l,version:d,format:{vmVersion:e.loadUint(32),vmMode:e.loadUintBig(64)}}};const b={serialize(e,t){throw Error("not implemented")},parse(e){if(166!==e.loadUint(8))throw Error("Invalid config");const t=e.loadUint(32),n=e.loadUint(8),a=e.loadUint(8),r=e.loadUint(8),i=e.loadBit(),s=e.loadBit(),o=e.loadBit(),c=e.loadUint(13),u=e.loadBuffer(32),l=e.loadBuffer(32),d=e.loadUint(32);if(e.loadBit())throw Error("Invalid config");return{enabledSince:t,actialMinSplit:n,min_split:a,max_split:r,basic:i,active:s,accept_msgs:o,flags:c,zerostateRootHash:u,zerostateFileHash:l,version:d,format:{vmVersion:e.loadUint(32),vmMode:e.loadUintBig(64)}}}};function v(e){if(!e)throw Error("Invalid config");const t=e.loadDict(a.Dictionary.Keys.Uint(32),b);if(t)return t;throw Error("No workchains exist")}function _(e){return e?o(e):null}function A(e){return e?c(e):null}function w(e){if(!e)throw Error("Invalid config");if(209===e.loadUint(8)){const t=e.loadUintBig(64),n=e.loadUintBig(64),a=function(e){const t=e.loadUint(8);if(222===t)return{gasPrice:e.loadUintBig(64),gasLimit:e.loadUintBig(64),specialGasLimit:e.loadUintBig(64),gasCredit:e.loadUintBig(64),blockGasLimit:e.loadUintBig(64),freezeDueLimit:e.loadUintBig(64),deleteDueLimit:e.loadUintBig(64)};if(221===t)return{gasPrice:e.loadUintBig(64),gasLimit:e.loadUintBig(64),gasCredit:e.loadUintBig(64),blockGasLimit:e.loadUintBig(64),freezeDueLimit:e.loadUintBig(64),deleteDueLimit:e.loadUintBig(64)};throw Error("Invalid config")}(e);return{flatLimit:t,flatGasPrice:n,other:a}}throw Error("Invalid config")}function I(e){if(!e)throw new Error("Invalid config");if(234!==e.loadUint(8))throw new Error("Invalid msg prices param");return{lumpPrice:e.loadUintBig(64),bitPrice:e.loadUintBig(64),cellPrice:e.loadUintBig(64),ihrPriceFactor:e.loadUint(32),firstFrac:e.loadUint(16),nextFrac:e.loadUint(16)}}function S(e){if(!e)throw new Error("Invalid config");const t=e.loadUint(8);if(193===t)return{masterCatchainLifetime:e.loadUint(32),shardCatchainLifetime:e.loadUint(32),shardValidatorsLifetime:e.loadUint(32),shardValidatorsCount:e.loadUint(32)};if(194===t)return{flags:e.loadUint(7),suffleMasterValidators:e.loadBit(),masterCatchainLifetime:e.loadUint(32),shardCatchainLifetime:e.loadUint(32),shardValidatorsLifetime:e.loadUint(32),shardValidatorsCount:e.loadUint(32)};throw new Error("Invalid config")}function x(e){if(!e)throw new Error("Invalid config");const t=e.loadUint(8);if(214===t)return{roundCandidates:e.loadUint(32),nextCandidateDelay:e.loadUint(32),consensusTimeout:e.loadUint(32),fastAttempts:e.loadUint(32),attemptDuration:e.loadUint(32),catchainMaxDeps:e.loadUint(32),maxBlockBytes:e.loadUint(32),maxColaltedBytes:e.loadUint(32)};if(215===t)return{flags:e.loadUint(7),newCatchainIds:e.loadBit(),roundCandidates:e.loadUint(8),nextCandidateDelay:e.loadUint(32),consensusTimeout:e.loadUint(32),fastAttempts:e.loadUint(32),attemptDuration:e.loadUint(32),catchainMaxDeps:e.loadUint(32),maxBlockBytes:e.loadUint(32),maxColaltedBytes:e.loadUint(32)};if(216===t)return{flags:e.loadUint(7),newCatchainIds:e.loadBit(),roundCandidates:e.loadUint(8),nextCandidateDelay:e.loadUint(32),consensusTimeout:e.loadUint(32),fastAttempts:e.loadUint(32),attemptDuration:e.loadUint(32),catchainMaxDeps:e.loadUint(32),maxBlockBytes:e.loadUint(32),maxColaltedBytes:e.loadUint(32),protoVersion:e.loadUint(16)};if(217===t)return{flags:e.loadUint(7),newCatchainIds:e.loadBit(),roundCandidates:e.loadUint(8),nextCandidateDelay:e.loadUint(32),consensusTimeout:e.loadUint(32),fastAttempts:e.loadUint(32),attemptDuration:e.loadUint(32),catchainMaxDeps:e.loadUint(32),maxBlockBytes:e.loadUint(32),maxColaltedBytes:e.loadUint(32),protoVersion:e.loadUint(16),catchainMaxBlocksCoeff:e.loadUint(32)};throw new Error("Invalid config")}function C(e){if(54!==e.loadUint(8))throw new Error("Invalid config");return{minTotalRounds:e.loadUint(8),maxTotalRounds:e.loadUint(8),minWins:e.loadUint(8),maxLoses:e.loadUint(8),minStoreSec:e.loadUint(32),maxStoreSec:e.loadUint(32),bitPrice:e.loadUint(32),cellPrice:e.loadUint(32)}}function k(e){if(!e)throw new Error("Invalid config");if(145!==e.loadUint(8))throw new Error("Invalid config");return{normalParams:C(e.loadRef().beginParse()),criticalParams:C(e.loadRef().beginParse())}}function T(e){return a.Cell.fromBase64(e).beginParse().loadDictDirect(a.Dictionary.Keys.Int(32),a.Dictionary.Values.Cell())}t.configParse12=v,t.configParseValidatorSet=_,t.configParseBridge=A,t.configParseGasLimitsPrices=w,t.configParseMsgPrices=I,t.configParse28=S,t.configParse29=x,t.parseProposalSetup=C,t.parseVotingSetup=k,t.loadConfigParamById=function(e,t){return T(e).get(t)},t.loadConfigParamsAsSlice=function(e){const t=T(e),n=new Map;for(const[e,a]of t)n.set(e,a.beginParse());return n},t.parseFullConfig=function(e){return{configAddress:u(e.get(0)),electorAddress:u(e.get(1)),minterAddress:r(e.get(2)),feeCollectorAddress:r(e.get(3)),dnsRootAddress:r(e.get(4)),burningConfig:l(e.get(5)),globalVersion:y(e.get(8)),workchains:v(e.get(12)),voting:k(e.get(11)),validators:{...d(e.get(15)),...p(e.get(16)),...h(e.get(17))},storagePrices:m(e.get(18)),gasPrices:{masterchain:w(e.get(20)),workchain:w(e.get(21))},msgPrices:{masterchain:I(e.get(24)),workchain:I(e.get(25))},validatorSets:{prevValidators:_(e.get(32)),prevTempValidators:_(e.get(33)),currentValidators:_(e.get(34)),currentTempValidators:_(e.get(35)),nextValidators:_(e.get(36)),nextTempValidators:_(e.get(37))},validatorsPunish:g(e.get(40)),bridges:{ethereum:A(e.get(71)),binance:A(e.get(72)),polygon:A(e.get(73))},catchain:S(e.get(28)),consensus:x(e.get(29))}}},87567:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ElectorContract=void 0;const r=n(6900),i={serialize(e,t){throw Error("not implemented")},parse:e=>({address:new r.Address(-1,e.loadBuffer(32)),weight:e.loadUintBig(64),stake:e.loadCoins()})},s={serialize(e,t){throw Error("not implemented")},parse(e){const t=e.loadCoins();return e.skip(64),{stake:t,address:new r.Address(-1,e.loadBuffer(32)),adnl:e.loadBuffer(32)}}};class o{static create(){return new o}constructor(){this.address=r.Address.parseRaw("-1:3333333333333333333333333333333333333333333333333333333333333333")}async getReturnedStake(e,t){if(-1!==t.workChain)throw Error("Only masterchain addresses could have stake");return(await e.get("compute_returned_stake",[{type:"int",value:BigInt("0x"+t.hash.toString("hex"))}])).stack.readBigNumber()}async getPastElectionsList(e){const t=await e.get("past_elections_list",[]),n=new r.TupleReader(t.stack.readLispList()),a=[];for(;n.remaining>0;){const e=n.readTuple(),t=e.readNumber(),r=e.readNumber();e.pop();const i=e.readNumber();a.push({id:t,unfreezeAt:r,stakeHeld:i})}return a}async getPastElections(e){const t=await e.get("past_elections",[]),n=new r.TupleReader(t.stack.readLispList()),a=[];for(;n.remaining>0;){const e=n.readTuple(),t=e.readNumber(),s=e.readNumber(),o=e.readNumber();e.pop();const c=e.readCell(),u=e.readBigNumber(),l=e.readBigNumber();let d=new Map;const p=c.beginParse().loadDictDirect(r.Dictionary.Keys.Buffer(32),i);for(const[e,t]of p)d.set(BigInt("0x"+e.toString("hex")).toString(10),{address:t.address,weight:t.weight,stake:t.stake});a.push({id:t,unfreezeAt:s,stakeHeld:o,totalStake:u,bonuses:l,frozen:d})}return a}async getElectionEntities(e){const t=await e.getState();if("active"!==t.state.type)throw Error("Unexpected error");const n=r.Cell.fromBoc(t.state.data)[0].beginParse();if(!n.loadBit())return null;const a=n.loadRef().beginParse(),i=a.loadUint(32),o=a.loadUint(32),c=a.loadCoins(),u=a.loadCoins(),l=a.loadDict(r.Dictionary.Keys.Buffer(32),s);let d=[];if(l)for(const[e,t]of l)d.push({pubkey:e,stake:t.stake,address:t.address,adnl:t.adnl});return{minStake:c,allStakes:u,endElectionsTime:o,startWorkTime:i,entities:d}}async getActiveElectionId(e){const t=(await e.get("active_election_id",[])).stack.readNumber();return t>0?t:null}async getComplaints(e,t){const n=new r.TupleBuilder;n.writeNumber(t);const i=await e.get("list_complaints",n.build());if("null"===i.stack.peek().type)return[];const s=new r.TupleReader(i.stack.readLispList()),o=[];for(;s.remaining>0;){const e=s.readTuple(),t=e.readBigNumber(),n=e.readTuple(),i=n.readTuple(),c=a.from(i.readBigNumber().toString(16),"hex"),u=(i.readCell(),i.readNumber()),l=i.readNumber(),d=new r.Address(-1,a.from(i.readBigNumber().toString(16),"hex")),p=i.readBigNumber(),h=i.readBigNumber(),f=i.readBigNumber(),m=[],y=new r.TupleReader(n.readLispList());for(;y.remaining>0;)m.push(y.readNumber());const g=n.readBigNumber(),b=n.readBigNumber();o.push({id:t,publicKey:c,createdAt:u,severity:l,paid:p,suggestedFine:h,suggestedFinePart:f,rewardAddress:d,votes:m,remainingWeight:b,vsetId:g})}return o}}t.ElectorContract=o},16330:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.computeStorageFees=t.computeMessageForwardFees=t.computeGasPrices=t.computeFwdFees=t.computeExternalMessageFees=t.loadConfigParamsAsSlice=t.loadConfigParamById=t.parseFullConfig=t.parseVotingSetup=t.parseValidatorSet=t.parseProposalSetup=t.parseBridge=t.configParseWorkchainDescriptor=t.configParseValidatorSet=t.configParseMsgPrices=t.configParseMasterAddressRequired=t.configParseMasterAddress=t.configParseGasLimitsPrices=t.configParseBridge=t.configParse40=t.configParse29=t.configParse28=t.configParse18=t.configParse17=t.configParse16=t.configParse15=t.configParse13=t.configParse12=t.configParse8=t.configParse5=t.ElectorContract=t.MultisigWallet=t.MultisigOrderBuilder=t.MultisigOrder=t.JettonWallet=t.JettonMaster=t.WalletContractV5R1=t.WalletContractV5Beta=t.WalletContractV4=t.WalletContractV3R2=t.WalletContractV3R1=t.WalletContractV2R2=t.WalletContractV2R1=t.WalletContractV1R3=t.WalletContractV1R2=t.WalletContractV1R1=t.TonClient4=t.TonClient=t.HttpApi=void 0,r(n(6900),t);var i=n(18723);Object.defineProperty(t,"HttpApi",{enumerable:!0,get:function(){return i.HttpApi}});var s=n(65562);Object.defineProperty(t,"TonClient",{enumerable:!0,get:function(){return s.TonClient}});var o=n(16380);Object.defineProperty(t,"TonClient4",{enumerable:!0,get:function(){return o.TonClient4}});var c=n(73800);Object.defineProperty(t,"WalletContractV1R1",{enumerable:!0,get:function(){return c.WalletContractV1R1}});var u=n(92545);Object.defineProperty(t,"WalletContractV1R2",{enumerable:!0,get:function(){return u.WalletContractV1R2}});var l=n(1618);Object.defineProperty(t,"WalletContractV1R3",{enumerable:!0,get:function(){return l.WalletContractV1R3}});var d=n(24389);Object.defineProperty(t,"WalletContractV2R1",{enumerable:!0,get:function(){return d.WalletContractV2R1}});var p=n(78300);Object.defineProperty(t,"WalletContractV2R2",{enumerable:!0,get:function(){return p.WalletContractV2R2}});var h=n(82874);Object.defineProperty(t,"WalletContractV3R1",{enumerable:!0,get:function(){return h.WalletContractV3R1}});var f=n(86599);Object.defineProperty(t,"WalletContractV3R2",{enumerable:!0,get:function(){return f.WalletContractV3R2}});var m=n(50650);Object.defineProperty(t,"WalletContractV4",{enumerable:!0,get:function(){return m.WalletContractV4}});var y=n(69347);Object.defineProperty(t,"WalletContractV5Beta",{enumerable:!0,get:function(){return y.WalletContractV5Beta}});var g=n(29740);Object.defineProperty(t,"WalletContractV5R1",{enumerable:!0,get:function(){return g.WalletContractV5R1}});var b=n(7849);Object.defineProperty(t,"JettonMaster",{enumerable:!0,get:function(){return b.JettonMaster}});var v=n(16414);Object.defineProperty(t,"JettonWallet",{enumerable:!0,get:function(){return v.JettonWallet}});var _=n(16187);Object.defineProperty(t,"MultisigOrder",{enumerable:!0,get:function(){return _.MultisigOrder}});var A=n(60064);Object.defineProperty(t,"MultisigOrderBuilder",{enumerable:!0,get:function(){return A.MultisigOrderBuilder}});var w=n(39754);Object.defineProperty(t,"MultisigWallet",{enumerable:!0,get:function(){return w.MultisigWallet}});var I=n(87567);Object.defineProperty(t,"ElectorContract",{enumerable:!0,get:function(){return I.ElectorContract}});var S=n(26440);Object.defineProperty(t,"configParse5",{enumerable:!0,get:function(){return S.configParse5}}),Object.defineProperty(t,"configParse8",{enumerable:!0,get:function(){return S.configParse8}}),Object.defineProperty(t,"configParse12",{enumerable:!0,get:function(){return S.configParse12}}),Object.defineProperty(t,"configParse13",{enumerable:!0,get:function(){return S.configParse13}}),Object.defineProperty(t,"configParse15",{enumerable:!0,get:function(){return S.configParse15}}),Object.defineProperty(t,"configParse16",{enumerable:!0,get:function(){return S.configParse16}}),Object.defineProperty(t,"configParse17",{enumerable:!0,get:function(){return S.configParse17}}),Object.defineProperty(t,"configParse18",{enumerable:!0,get:function(){return S.configParse18}}),Object.defineProperty(t,"configParse28",{enumerable:!0,get:function(){return S.configParse28}}),Object.defineProperty(t,"configParse29",{enumerable:!0,get:function(){return S.configParse29}}),Object.defineProperty(t,"configParse40",{enumerable:!0,get:function(){return S.configParse40}}),Object.defineProperty(t,"configParseBridge",{enumerable:!0,get:function(){return S.configParseBridge}}),Object.defineProperty(t,"configParseGasLimitsPrices",{enumerable:!0,get:function(){return S.configParseGasLimitsPrices}}),Object.defineProperty(t,"configParseMasterAddress",{enumerable:!0,get:function(){return S.configParseMasterAddress}}),Object.defineProperty(t,"configParseMasterAddressRequired",{enumerable:!0,get:function(){return S.configParseMasterAddressRequired}}),Object.defineProperty(t,"configParseMsgPrices",{enumerable:!0,get:function(){return S.configParseMsgPrices}}),Object.defineProperty(t,"configParseValidatorSet",{enumerable:!0,get:function(){return S.configParseValidatorSet}}),Object.defineProperty(t,"configParseWorkchainDescriptor",{enumerable:!0,get:function(){return S.configParseWorkchainDescriptor}}),Object.defineProperty(t,"parseBridge",{enumerable:!0,get:function(){return S.parseBridge}}),Object.defineProperty(t,"parseProposalSetup",{enumerable:!0,get:function(){return S.parseProposalSetup}}),Object.defineProperty(t,"parseValidatorSet",{enumerable:!0,get:function(){return S.parseValidatorSet}}),Object.defineProperty(t,"parseVotingSetup",{enumerable:!0,get:function(){return S.parseVotingSetup}}),Object.defineProperty(t,"parseFullConfig",{enumerable:!0,get:function(){return S.parseFullConfig}}),Object.defineProperty(t,"loadConfigParamById",{enumerable:!0,get:function(){return S.loadConfigParamById}}),Object.defineProperty(t,"loadConfigParamsAsSlice",{enumerable:!0,get:function(){return S.loadConfigParamsAsSlice}});var x=n(28035);Object.defineProperty(t,"computeExternalMessageFees",{enumerable:!0,get:function(){return x.computeExternalMessageFees}}),Object.defineProperty(t,"computeFwdFees",{enumerable:!0,get:function(){return x.computeFwdFees}}),Object.defineProperty(t,"computeGasPrices",{enumerable:!0,get:function(){return x.computeGasPrices}}),Object.defineProperty(t,"computeMessageForwardFees",{enumerable:!0,get:function(){return x.computeMessageForwardFees}}),Object.defineProperty(t,"computeStorageFees",{enumerable:!0,get:function(){return x.computeStorageFees}})},7849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JettonMaster=void 0;const a=n(6900);class r{static create(e){return new r(e)}constructor(e){this.address=e}async getWalletAddress(e,t){return(await e.get("get_wallet_address",[{type:"slice",cell:(0,a.beginCell)().storeAddress(t).endCell()}])).stack.readAddress()}async getJettonData(e){let t=await e.get("get_jetton_data",[]);return{totalSupply:t.stack.readBigNumber(),mintable:t.stack.readBoolean(),adminAddress:t.stack.readAddress(),content:t.stack.readCell(),walletCode:t.stack.readCell()}}}t.JettonMaster=r},16414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JettonWallet=void 0;class n{static create(e){return new n(e)}constructor(e){this.address=e}async getBalance(e){return"active"!==(await e.getState()).state.type?0n:(await e.get("get_wallet_data",[])).stack.readBigNumber()}}t.JettonWallet=n},16187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultisigOrder=void 0;const a=n(43022),r=n(6900);class i{constructor(e){this.signatures={},this.payload=e}static fromCell(e){let t=e.beginParse(),n=t.loadMaybeRef()?.beginParse();const a=t.asCell();let r=new i(a);if(n){for(;n.remainingBits>0;){const e=n.loadBuffer(64),t=n.loadUint(8);r.signatures[t]=e,n.remainingRefs>0?n=n.loadRef().asSlice():n.skip(1)}n.endParse()}return r}static fromPayload(e){return new i(e)}addSignature(e,t,n){const r=this.payload.hash();if(!(0,a.signVerify)(r,t,n.owners.get(e).slice(0,-1)))throw Error("invalid signature");this.signatures[e]=t}sign(e,t){const n=this.payload.hash();return this.signatures[e]=(0,a.sign)(n,t),n}unionSignatures(e){this.signatures=Object.assign({},this.signatures,e.signatures)}clearSignatures(){this.signatures={}}toCell(e){let t=(0,r.beginCell)().storeBit(0);for(const e in this.signatures){const n=this.signatures[e];t=(0,r.beginCell)().storeBit(1).storeRef((0,r.beginCell)().storeBuffer(n).storeUint(parseInt(e),8).storeBuilder(t).endCell())}return(0,r.beginCell)().storeUint(e,8).storeBuilder(t).storeBuilder(this.payload.asBuilder()).endCell()}}t.MultisigOrder=i},60064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultisigOrderBuilder=void 0;const a=n(6900),r=n(16187);t.MultisigOrderBuilder=class{constructor(e,t){this.messages=(0,a.beginCell)(),this.queryId=0n,this.walletId=e,this.queryOffset=t||7200}addMessage(e,t){if(this.messages.refs>=4)throw Error("only 4 refs are allowed");this.updateQueryId(),this.messages.storeUint(t,8),this.messages.storeRef((0,a.beginCell)().store((0,a.storeMessageRelaxed)(e)).endCell())}clearMessages(){this.messages=(0,a.beginCell)()}build(){return r.MultisigOrder.fromPayload((0,a.beginCell)().storeUint(this.walletId,32).storeUint(this.queryId,64).storeBuilder(this.messages).endCell())}updateQueryId(){const e=BigInt(Math.floor(Date.now()/1e3+this.queryOffset));this.queryId=e<<32n}}},39754:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.MultisigWallet=void 0;const r=n(43022),i=n(6900),s=i.Cell.fromBase64("te6ccgECKwEABBgAART/APSkE/S88sgLAQIBIAIDAgFIBAUE2vIgxwCOgzDbPOCDCNcYIPkBAdMH2zwiwAAToVNxePQOb6Hyn9s8VBq6+RDyoAb0BCD5AQHTH1EYuvKq0z9wUwHwCgHCCAGDCryx8mhTFYBA9A5voSCYDqQgwgryZw7f+COqH1NAufJhVCOjU04gIyEiAgLMBgcCASAMDQIBIAgJAgFmCgsAA9GEAiPymAvHoHN9CYbZ5S7Z4BPHohwhJQAtAKkItdJEqCTItdKlwLUAdAT8ArobBKAATwhbpEx4CBukTDgAdAg10rDAJrUAvALyFjPFszJ4HHXI8gBzxb0AMmACASAODwIBIBQVARW77ZbVA0cFUg2zyCoCAUgQEQIBIBITAXOxHXQgwjXGCD5AQHTB4IB1MTtQ9hTIHj0Dm+h8p/XC/9eMfkQ8qCuAfQEIW6TW3Ey4PkBWNs8AaQBgJwA9rtqA6ADoAPoCAXoCEfyAgPyA3XlP+AXkegAA54tkwAAXrhlXP8EA1WZ2oexAAgEgFhcCASAYGQFRtyVbZ4YmRmpGEAgegc30McJNhFpAADMaYeYuAFrgJhwLb+4cC3d0bhAjAYm1WZtnhqvgb+2xxsoicAgej430pBHEoFpAADHDhBACGuQkuuBk9kUWE5kAOeLKhACQCB6IYFImHFImHFImXEA2YlzNijAjAgEgGhsAF7UGtc4QQDVZnah7EAIBIBwdAgOZOB4fARGsGm2eL4G2CUAjABWt+UEAzJV2oewYQAENqTbPBVfBYCMAFa3f3CCAarM7UPYgAiDbPALyZfgAUENxQxPbPO1UIyoACtP/0wcwBKDbPC+uUyCw8mISsQKkJbNTHLmwJYEA4aojoCi8sPJpggGGoPgBBZcCERACPj4wjo0REB/bPEDXePRDEL0F4lQWW1Rz51YQU9zbPFRxClR6vCQlKCYAIO1E0NMf0wfTB9M/9AT0BNEAXgGOGjDSAAHyo9MH0wdQA9cBIPkBBfkBFbrypFAD4GwhIddKqgIi10m68qtwVCATAAwByMv/ywcE1ts87VT4D3AlblOJvrGYEG4QLVDHXwePGzBUJANQTds8UFWgRlAQSRA6SwlTuds8UFQWf+L4AAeDJaGOLCaAQPSWb6UglDBTA7neII4WODk5CNIAAZfTBzAW8AcFkTDifwgHBZJsMeKz5jAGKicoKQBgcI4pA9CDCNcY0wf0BDBTFnj0Dm+h8qXXC/9URUT5EPKmrlIgsVIDvRShI27mbCIyAH5SML6OIF8D+ACTItdKmALTB9QC+wAC6DJwyMoAQBSAQPRDAvAHjhdxyMsAFMsHEssHWM8BWM8WQBOAQPRDAeIBII6KEEUQNEMA2zztVJJfBuIqABzIyx/LB8sHyz/0APQAyQ==");class o{constructor(e,t,n,r,o){this.provider=null,this.owners=i.Dictionary.empty(),this.workchain=t,this.walletId=n,this.k=r;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeMessageForwardFees=t.computeExternalMessageFees=t.computeGasPrices=t.computeFwdFees=t.computeStorageFees=void 0;const a=n(6900);function r(e,t,n){return e.lumpPrice+s(e.bitPrice*n+e.cellPrice*t)}function i(e){let t=e.bits.length,n=1;for(let a of e.refs){let e=i(a);n+=e.cells,t+=e.bits}return{bits:t,cells:n}}function s(e){let t=e>>16n;return 0n!==e%65536n&&(t+=1n),t}t.computeStorageFees=function(e){const{lastPaid:t,now:n,storagePrices:a,storageStat:r,special:i,masterchain:o}=e;if(n<=t||0===a.length||n>16n)},t.computeExternalMessageFees=function(e,t){let n=i(t);return n.bits-=t.bits.length,n.cells-=1,r(e,BigInt(n.cells),BigInt(n.bits))},t.computeMessageForwardFees=function(e,t){let n=(0,a.loadMessageRelaxed)(t.beginParse()),s={bits:0,cells:0};if(n.init){const e=(new a.Cell).asBuilder();(0,a.storeStateInit)(n.init)(e);const t=e.endCell();let r=i(t);r.bits-=t.bits.length,r.cells-=1,s.bits+=r.bits,s.cells+=r.cells}let o=i(n.body);o.bits-=n.body.bits.length,o.cells-=1,s.bits+=o.bits,s.cells+=o.cells;let c=r(e,BigInt(s.cells),BigInt(s.bits)),u=c*BigInt(e.firstFrac)>>16n;return{fees:u,remaining:c-u}}},12819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUrlSafe=void 0,t.toUrlSafe=function(e){for(;e.indexOf("/")>=0;)e=e.replace("/","_");for(;e.indexOf("+")>=0;)e=e.replace("+","-");for(;e.indexOf("=")>=0;)e=e.replace("=","");return e}},73800:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV1R1=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey)}constructor(e,t){this.workchain=e,this.publicKey=t;let n=r.Cell.fromBoc(a.from("te6cckEBAQEARAAAhP8AIN2k8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVEH98Ik=","base64"))[0],i=(0,r.beginCell)().storeUint(0,32).storeBuffer(t).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(e,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){let t=await e.getState();return"active"===t.state.type?r.Cell.fromBoc(t.state.data)[0].beginParse().loadUint(32):0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){let t=r.SendMode.PAY_GAS_SEPARATELY;return null!==e.sendMode&&void 0!==e.sendMode&&(t=e.sendMode),(0,i.createWalletTransferV1)({seqno:e.seqno,sendMode:t,secretKey:e.secretKey,message:e.message})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,message:(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})});await this.send(e,i)}}}}t.WalletContractV1R1=s},92545:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV1R2=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey)}constructor(e,t){this.workchain=e,this.publicKey=t;let n=r.Cell.fromBoc(a.from("te6cckEBAQEAUwAAov8AIN0gggFMl7qXMO1E0NcLH+Ck8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVNDieG8=","base64"))[0],i=(0,r.beginCell)().storeUint(0,32).storeBuffer(t).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(e,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){let t=r.SendMode.PAY_GAS_SEPARATELY;return null!==e.sendMode&&void 0!==e.sendMode&&(t=e.sendMode),(0,i.createWalletTransferV1)({seqno:e.seqno,sendMode:t,secretKey:e.secretKey,message:e.message})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,message:(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})});await this.send(e,i)}}}}t.WalletContractV1R2=s},1618:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV1R3=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey)}constructor(e,t){this.workchain=e,this.publicKey=t;let n=r.Cell.fromBoc(a.from("te6cckEBAQEAXwAAuv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVLW4bkI=","base64"))[0],i=(0,r.beginCell)().storeUint(0,32).storeBuffer(t).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(e,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){let t=r.SendMode.PAY_GAS_SEPARATELY;return null!==e.sendMode&&void 0!==e.sendMode&&(t=e.sendMode),(0,i.createWalletTransferV1)({seqno:e.seqno,sendMode:t,secretKey:e.secretKey,message:e.message})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,message:(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})});await this.send(e,i)}}}}t.WalletContractV1R3=s},24389:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV2R1=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey)}constructor(e,t){this.workchain=e,this.publicKey=t;let n=r.Cell.fromBoc(a.from("te6cckEBAQEAVwAAqv8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VShNwu2","base64"))[0],i=(0,r.beginCell)().storeUint(0,32).storeBuffer(t).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(e,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){let t=r.SendMode.PAY_GAS_SEPARATELY;return null!==e.sendMode&&void 0!==e.sendMode&&(t=e.sendMode),(0,i.createWalletTransferV2)({seqno:e.seqno,sendMode:t,secretKey:e.secretKey,messages:e.messages,timeout:e.timeout})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV2R1=s},78300:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV2R2=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey)}constructor(e,t){this.workchain=e,this.publicKey=t;let n=r.Cell.fromBoc(a.from("te6cckEBAQEAYwAAwv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VQETNeh","base64"))[0],i=(0,r.beginCell)().storeUint(0,32).storeBuffer(t).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(e,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){let t=r.SendMode.PAY_GAS_SEPARATELY;return null!==e.sendMode&&void 0!==e.sendMode&&(t=e.sendMode),(0,i.createWalletTransferV2)({seqno:e.seqno,sendMode:t,secretKey:e.secretKey,messages:e.messages,timeout:e.timeout})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV2R2=s},82874:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV3R1=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey,e.walletId)}constructor(e,t,n){this.workchain=e,this.publicKey=t,this.walletId=null!=n?n:698983191+e;let i=r.Cell.fromBoc(a.from("te6cckEBAQEAYgAAwP8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVD++buA=","base64"))[0],s=(0,r.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(t).endCell();this.init={code:i,data:s},this.address=(0,r.contractAddress)(e,{code:i,data:s})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){return(0,i.createWalletTransferV3)({...e,sendMode:e.sendMode??r.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV3R1=s},86599:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV3R2=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey,e.walletId)}constructor(e,t,n){this.workchain=e,this.publicKey=t,this.walletId=null!=n?n:698983191+e;let i=r.Cell.fromBoc(a.from("te6cckEBAQEAcQAA3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVBC9ba0=","base64"))[0],s=(0,r.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(t).endCell();this.init={code:i,data:s},this.address=(0,r.contractAddress)(e,{code:i,data:s})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){return(0,i.createWalletTransferV3)({...e,sendMode:e.sendMode??r.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV3R2=s},50650:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV4=void 0;const r=n(6900),i=n(5733);class s{static create(e){return new s(e.workchain,e.publicKey,e.walletId)}constructor(e,t,n){this.workchain=e,this.publicKey=t,this.walletId=null!=n?n:698983191+e;let i=r.Cell.fromBoc(a.from("te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDjDQOkyMsfEssfy/8QERITAubQAdDTAyFxsJJfBOAi10nBIJJfBOAC0x8hghBwbHVnvSKCEGRzdHK9sJJfBeAD+kAwIPpEAcjKB8v/ydDtRNCBAUDXIfQEMFyBAQj0Cm+hMbOSXwfgBdM/yCWCEHBsdWe6kjgw4w0DghBkc3RyupJfBuMNBgcCASAICQB4AfoA9AQw+CdvIjBQCqEhvvLgUIIQcGx1Z4MesXCAGFAEywUmzxZY+gIZ9ADLaRfLH1Jgyz8gyYBA+wAGAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+ICASAKCwBZvSQrb2omhAgKBrkPoCGEcNQICEekk30pkQzmkD6f+YN4EoAbeBAUiYcVnzGEAgFYDA0AEbjJftRNDXCx+AA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYAIBIA4PABmtznaiaEAga5Drhf/AABmvHfaiaEAQa5DrhY/AAG7SB/oA1NQi+QAFyMoHFcv/ydB3dIAYyMsFywIizxZQBfoCFMtrEszMyXP7AMhAFIEBCPRR8qcCAHCBAQjXGPoA0z/IVCBHgQEI9FHyp4IQbm90ZXB0gBjIywXLAlAGzxZQBPoCFMtqEssfyz/Jc/sAAgBsgQEI1xj6ANM/MFIkgQEI9Fnyp4IQZHN0cnB0gBjIywXLAlAFzxZQA/oCE8tqyx8Syz/Jc/sAAAr0AMntVA==","base64"))[0],s=(0,r.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(this.publicKey).storeBit(0).endCell();this.init={code:i,data:s},this.address=(0,r.contractAddress)(e,{code:i,data:s})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async send(e,t){await e.external(t)}async sendTransfer(e,t){let n=this.createTransfer(t);await this.send(e,n)}createTransfer(e){return(0,i.createWalletTransferV4)({...e,sendMode:e.sendMode??r.SendMode.PAY_GAS_SEPARATELY,walletId:this.walletId})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV4=s},69347:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(56843),t),r(n(75366),t),r(n(36517),t)},29740:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(5585),t),r(n(66124),t),r(n(66379),t)},5733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletTransferV5R1=t.createWalletTransferV5Beta=t.createWalletTransferV4=t.createWalletTransferV3=t.createWalletTransferV2=t.createWalletTransferV1=void 0;const a=n(6900),r=n(43022),i=n(56843),s=n(75366),o=n(81275),c=n(5585),u=n(66124);function l(e,t){return(0,a.beginCell)().storeBuffer(e).storeBuilder(t).endCell()}function d(e,t){return(0,a.beginCell)().storeBuilder(t).storeBuffer(e).endCell()}t.createWalletTransferV1=function(e){let t=(0,a.beginCell)().storeUint(e.seqno,32);e.message&&(t.storeUint(e.sendMode,8),t.storeRef((0,a.beginCell)().store((0,a.storeMessageRelaxed)(e.message))));let n=(0,r.sign)(t.endCell().hash(),e.secretKey);return(0,a.beginCell)().storeBuffer(n).storeBuilder(t).endCell()},t.createWalletTransferV2=function(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,a.beginCell)().storeUint(e.seqno,32);if(0===e.seqno)for(let e=0;e<32;e++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);for(let n of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,a.beginCell)().store((0,a.storeMessageRelaxed)(n)));let n=(0,r.sign)(t.endCell().hash(),e.secretKey);return(0,a.beginCell)().storeBuffer(n).storeBuilder(t).endCell()},t.createWalletTransferV3=function(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,a.beginCell)().storeUint(e.walletId,32);if(0===e.seqno)for(let e=0;e<32;e++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32);for(let n of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,a.beginCell)().store((0,a.storeMessageRelaxed)(n)));return(0,o.signPayload)(e,t,l)},t.createWalletTransferV4=function(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,a.beginCell)().storeUint(e.walletId,32);if(0===e.seqno)for(let e=0;e<32;e++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32),t.storeUint(0,8);for(let n of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,a.beginCell)().store((0,a.storeMessageRelaxed)(n)));return(0,o.signPayload)(e,t,l)},t.createWalletTransferV5Beta=function(e){if(e.actions.length>255)throw Error("Maximum number of OutActions in a single request is 255");if("extension"===e.authType)return(0,a.beginCell)().storeUint(i.WalletContractV5Beta.OpCodes.auth_extension,32).store((0,s.storeOutListExtendedV5Beta)(e.actions)).endCell();const t=(0,a.beginCell)().storeUint("internal"===e.authType?i.WalletContractV5Beta.OpCodes.auth_signed_internal:i.WalletContractV5Beta.OpCodes.auth_signed_external,32).store(e.walletId);if(0===e.seqno)for(let e=0;e<32;e++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);return t.storeUint(e.seqno,32).store((0,s.storeOutListExtendedV5Beta)(e.actions)),(0,o.signPayload)(e,t,d)},t.createWalletTransferV5R1=function(e){if(e.actions.length>255)throw Error("Maximum number of OutActions in a single request is 255");if("extension"===(e={...e}).authType)return(0,a.beginCell)().storeUint(c.WalletContractV5R1.OpCodes.auth_extension,32).storeUint(e.queryId??0,64).store((0,u.storeOutListExtendedV5R1)(e.actions)).endCell();e.actions=(0,u.patchV5R1ActionsSendMode)(e.actions,e.authType);const t=(0,a.beginCell)().storeUint("internal"===e.authType?c.WalletContractV5R1.OpCodes.auth_signed_internal:c.WalletContractV5R1.OpCodes.auth_signed_external,32).store(e.walletId);if(0===e.seqno)for(let e=0;e<32;e++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);return t.storeUint(e.seqno,32).store((0,u.storeOutListExtendedV5R1)(e.actions)),(0,o.signPayload)(e,t,d)}},81275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signPayload=void 0;const a=n(43022);t.signPayload=function(e,t,n){return"secretKey"in e?n((0,a.sign)(t.endCell().hash(),e.secretKey),t):e.signer(t.endCell()).then((e=>n(e,t)))}},56843:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV5Beta=void 0;const r=n(6900),i=n(5733),s=n(36517);class o{static create(e){const t={networkGlobalId:e.walletId?.networkGlobalId??-239,workchain:e?.walletId?.workchain??0,subwalletNumber:e?.walletId?.subwalletNumber??0,walletVersion:e?.walletId?.walletVersion??"v5"};return new o(t,e.publicKey)}constructor(e,t){this.walletId=e,this.publicKey=t,this.walletId=e;let n=r.Cell.fromBoc(a.from("te6cckEBAQEAIwAIQgLkzzsvTG1qYeoPK1RH0mZ4WyavNjfbLe7mvNGqgm80Eg3NjhE=","base64"))[0],i=(0,r.beginCell)().storeInt(0,33).store((0,s.storeWalletIdV5Beta)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:n,data:i},this.address=(0,r.contractAddress)(this.walletId.workchain,{code:n,data:i})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async getExtensions(e){return"active"===(await e.getState()).state.type?(await e.get("get_extensions",[])).stack.readCellOpt():null}async getExtensionsArray(e){const t=await this.getExtensions(e);if(!t)return[];const n=r.Dictionary.loadDirect(r.Dictionary.Keys.BigUint(256),r.Dictionary.Values.BigInt(8),t);return n.keys().map((e=>{const t=n.get(e),a=e^t+1n;return r.Address.parseRaw(`${t}:${a.toString(16).padStart(64,"0")}`)}))}async getIsSecretKeyAuthEnabled(e){return 0!==(await e.get("get_is_signature_auth_allowed",[])).stack.readNumber()}async send(e,t){await e.external(t)}async sendTransfer(e,t){const n=await this.createTransfer(t);await this.send(e,n)}async sendAddExtension(e,t){const n=await this.createAddExtension(t);await this.send(e,n)}async sendRemoveExtension(e,t){const n=await this.createRemoveExtension(t);await this.send(e,n)}async sendActionsBatch(e,t){const n=await this.createRequest(t);await this.send(e,n)}createActions(e){return e.messages.map((t=>({type:"sendMsg",mode:e.sendMode,outMsg:t})))}createTransfer(e){return this.createRequest({...e,actions:this.createActions({messages:e.messages,sendMode:e.sendMode})})}createAddExtension(e){return this.createRequest({...e,actions:[{type:"addExtension",address:e.extensionAddress}]})}createRemoveExtension(e){return this.createRequest({...e,actions:[{type:"removeExtension",address:e.extensionAddress}]})}createRequest(e){return"extension"===e.authType?(0,i.createWalletTransferV5Beta)(e):(0,i.createWalletTransferV5Beta)({...e,walletId:(0,s.storeWalletIdV5Beta)(this.walletId)})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode??r.SendMode.PAY_GAS_SEPARATELY+r.SendMode.IGNORE_ERRORS,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV5Beta=o,o.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396}},75366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadOutListExtendedV5Beta=t.storeOutListExtendedV5Beta=t.loadOutActionV5BetaExtended=t.storeOutActionExtendedV5Beta=void 0;const a=n(6900),r=n(52416),i=550222170,s=474012575,o=1588524196;function c(e){switch(e.type){case"setIsPublicKeyEnabled":return function(e){return t=>{t.storeUint(i,32).storeUint(e.isEnabled?1:0,1)}}(e);case"addExtension":return function(e){return t=>{t.storeUint(s,32).storeAddress(e.address)}}(e);case"removeExtension":return function(e){return t=>{t.storeUint(o,32).storeAddress(e.address)}}(e);default:throw new Error("Unknown action type"+e?.type)}}function u(e){const t=e.loadUint(32);switch(t){case i:return{type:"setIsPublicKeyEnabled",isEnabled:!!e.loadUint(1)};case s:return{type:"addExtension",address:e.loadAddress()};case o:return{type:"removeExtension",address:e.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${t.toString(16)}`)}}t.storeOutActionExtendedV5Beta=c,t.loadOutActionV5BetaExtended=u,t.storeOutListExtendedV5Beta=function e(t){const[n,...i]=t;if(!n||!(0,r.isOutActionExtended)(n)){if(t.some(r.isOutActionExtended))throw new Error("Can't serialize actions list: all extended actions must be placed before out actions");return e=>{e.storeUint(0,1).storeRef((0,a.beginCell)().store((0,a.storeOutList)(t)).endCell())}}return t=>{t.storeUint(1,1).store(c(n)).storeRef((0,a.beginCell)().store(e(i)).endCell())}},t.loadOutListExtendedV5Beta=function(e){const t=[];for(;e.loadUint(1);){const n=u(e);t.push(n),e=e.loadRef().beginParse()}const n=(0,a.loadOutList)(e.loadRef().beginParse());if(n.some((e=>"setCode"===e.type)))throw new Error("Can't deserialize actions list: only sendMsg actions are allowed for wallet v5");return t.concat(n)}},36517:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.storeWalletIdV5Beta=t.loadWalletIdV5Beta=void 0;const r=n(6900),i={v5:0};t.loadWalletIdV5Beta=function(e){const t=new r.BitReader(new r.BitString("bigint"==typeof e?a.from(e.toString(16),"hex"):e instanceof r.Slice?e.loadBuffer(10):e,0,80)),n=t.loadInt(32),s=t.loadInt(8),o=t.loadUint(8),c=t.loadUint(32),u=Object.entries(i).find((([e,t])=>t===o))?.[0];if(void 0===u)throw new Error(`Can't deserialize walletId: unknown wallet version ${o}`);return{networkGlobalId:n,workchain:s,walletVersion:u,subwalletNumber:c}},t.storeWalletIdV5Beta=function(e){return t=>{t.storeInt(e.networkGlobalId,32),t.storeInt(e.workchain,8),t.storeUint(i[e.walletVersion],8),t.storeUint(e.subwalletNumber,32)}}},52416:(e,t)=>{"use strict";function n(e){return"setIsPublicKeyEnabled"===e.type||"addExtension"===e.type||"removeExtension"===e.type}Object.defineProperty(t,"__esModule",{value:!0}),t.isOutActionBasic=t.isOutActionExtended=void 0,t.isOutActionExtended=n,t.isOutActionBasic=function(e){return!n(e)}},5585:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletContractV5R1=void 0;const r=n(6900),i=n(5733),s=n(66379);class o{static create(e){let t=0;return"workchain"in e&&null!=e.workchain&&(t=e.workchain),e.walletId?.context&&(0,s.isWalletIdV5R1ClientContext)(e.walletId.context)&&null!=e.walletId.context.workchain&&(t=e.walletId.context.workchain),new o(t,e.publicKey,{networkGlobalId:e.walletId?.networkGlobalId??-239,context:e.walletId?.context??{workchain:0,walletVersion:"v5r1",subwalletNumber:0}})}constructor(e,t,n){this.publicKey=t,this.walletId=n,this.walletId=n;let i=r.Cell.fromBoc(a.from("b5ee9c7241021401000281000114ff00f4a413f4bcf2c80b01020120020d020148030402dcd020d749c120915b8f6320d70b1f2082106578746ebd21821073696e74bdb0925f03e082106578746eba8eb48020d72101d074d721fa4030fa44f828fa443058bd915be0ed44d0810141d721f4058307f40e6fa1319130e18040d721707fdb3ce03120d749810280b99130e070e2100f020120050c020120060902016e07080019adce76a2684020eb90eb85ffc00019af1df6a2684010eb90eb858fc00201480a0b0017b325fb51341c75c875c2c7e00011b262fb513435c280200019be5f0f6a2684080a0eb90fa02c0102f20e011e20d70b1f82107369676ebaf2e08a7f0f01e68ef0eda2edfb218308d722028308d723208020d721d31fd31fd31fed44d0d200d31f20d31fd3ffd70a000af90140ccf9109a28945f0adb31e1f2c087df02b35007b0f2d0845125baf2e0855036baf2e086f823bbf2d0882292f800de01a47fc8ca00cb1f01cf16c9ed542092f80fde70db3cd81003f6eda2edfb02f404216e926c218e4c0221d73930709421c700b38e2d01d72820761e436c20d749c008f2e09320d74ac002f2e09320d71d06c712c2005230b0f2d089d74cd7393001a4e86c128407bbf2e093d74ac000f2e093ed55e2d20001c000915be0ebd72c08142091709601d72c081c12e25210b1e30f20d74a111213009601fa4001fa44f828fa443058baf2e091ed44d0810141d718f405049d7fc8ca0040048307f453f2e08b8e14038307f45bf2e08c22d70a00216e01b3b0f2d090e2c85003cf1612f400c9ed54007230d72c08248e2d21f2e092d200ed44d0d2005113baf2d08f54503091319c01810140d721d70a00f2e08ee2c8ca0058cf16c9ed5493f2c08de20010935bdb31e1d74cd0b4d6c35e","hex"))[0],o=(0,r.beginCell)().storeUint(1,1).storeUint(0,32).store((0,s.storeWalletIdV5R1)(this.walletId)).storeBuffer(this.publicKey,32).storeBit(0).endCell();this.init={code:i,data:o},this.address=(0,r.contractAddress)(e,{code:i,data:o})}async getBalance(e){return(await e.getState()).balance}async getSeqno(e){return"active"===(await e.getState()).state.type?(await e.get("seqno",[])).stack.readNumber():0}async getExtensions(e){return"active"===(await e.getState()).state.type?(await e.get("get_extensions",[])).stack.readCellOpt():null}async getExtensionsArray(e){const t=await this.getExtensions(e);return t?r.Dictionary.loadDirect(r.Dictionary.Keys.BigUint(256),r.Dictionary.Values.BigInt(1),t).keys().map((e=>{const t=this.address.workChain;return r.Address.parseRaw(`${t}:${e.toString(16).padStart(64,"0")}`)})):[]}async getIsSecretKeyAuthEnabled(e){return(await e.get("is_signature_allowed",[])).stack.readBoolean()}async send(e,t){await e.external(t)}async sendTransfer(e,t){const n=await this.createTransfer(t);await this.send(e,n)}async sendAddExtension(e,t){const n=await this.createAddExtension(t);await this.send(e,n)}async sendRemoveExtension(e,t){const n=await this.createRemoveExtension(t);await this.send(e,n)}createActions(e){return e.messages.map((t=>({type:"sendMsg",mode:e.sendMode,outMsg:t})))}createTransfer(e){return this.createRequest({actions:this.createActions({messages:e.messages,sendMode:e.sendMode}),...e})}createAddExtension(e){return this.createRequest({actions:[{type:"addExtension",address:e.extensionAddress}],...e})}createRemoveExtension(e){return this.createRequest({actions:[{type:"removeExtension",address:e.extensionAddress}],...e})}createRequest(e){return"extension"===e.authType?(0,i.createWalletTransferV5R1)(e):(0,i.createWalletTransferV5R1)({...e,walletId:(0,s.storeWalletIdV5R1)(this.walletId)})}sender(e,t){return{send:async n=>{let a=await this.getSeqno(e),i=this.createTransfer({seqno:a,secretKey:t,sendMode:n.sendMode??r.SendMode.PAY_GAS_SEPARATELY+r.SendMode.IGNORE_ERRORS,messages:[(0,r.internal)({to:n.to,value:n.value,init:n.init,body:n.body,bounce:n.bounce})]});await this.send(e,i)}}}}t.WalletContractV5R1=o,o.OpCodes={auth_extension:1702392942,auth_signed_external:1936287598,auth_signed_internal:1936289396}},66124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patchV5R1ActionsSendMode=t.toSafeV5R1SendMode=t.loadOutListExtendedV5R1=t.storeOutListExtendedV5R1=t.loadOutActionExtendedV5R1=t.storeOutActionExtendedV5R1=void 0;const a=n(6900),r=n(52416),i=4,s=2,o=3;function c(e){switch(e.type){case"setIsPublicKeyEnabled":return function(e){return t=>{t.storeUint(i,8).storeUint(e.isEnabled?1:0,1)}}(e);case"addExtension":return function(e){return t=>{t.storeUint(s,8).storeAddress(e.address)}}(e);case"removeExtension":return function(e){return t=>{t.storeUint(o,8).storeAddress(e.address)}}(e);default:throw new Error("Unknown action type"+e?.type)}}function u(e){const t=e.loadUint(8);switch(t){case i:return{type:"setIsPublicKeyEnabled",isEnabled:!!e.loadUint(1)};case s:return{type:"addExtension",address:e.loadAddress()};case o:return{type:"removeExtension",address:e.loadAddress()};default:throw new Error(`Unknown extended out action tag 0x${t.toString(16)}`)}}function l(e){const[t,...n]=e;let r=(0,a.beginCell)().store(c(t));return n.length>0&&(r=r.storeRef(l(n))),r.endCell()}function d(e,t){return"internal"===t||"extension"===t?e:e|a.SendMode.IGNORE_ERRORS}t.storeOutActionExtendedV5R1=c,t.loadOutActionExtendedV5R1=u,t.storeOutListExtendedV5R1=function(e){const t=e.filter(r.isOutActionExtended),n=e.filter(r.isOutActionBasic);return e=>{const r=n.length?(0,a.beginCell)().store((0,a.storeOutList)(n.slice().reverse())):null;if(e.storeMaybeRef(r),0===t.length)e.storeUint(0,1);else{const[n,...a]=t;e.storeUint(1,1).store(c(n)),a.length>0&&e.storeRef(l(a))}}},t.loadOutListExtendedV5R1=function(e){const t=[],n=e.loadMaybeRef();if(n){const e=(0,a.loadOutList)(n.beginParse());if(e.some((e=>"sendMsg"!==e.type)))throw new Error("Can't deserialize actions list: only sendMsg actions are allowed for wallet v5r1");t.push(...e)}if(e.loadBoolean()){const n=u(e);t.push(n)}for(;e.remainingRefs>0;){const n=u(e=e.loadRef().beginParse());t.push(n)}return t},t.toSafeV5R1SendMode=d,t.patchV5R1ActionsSendMode=function(e,t){return e.map((e=>"sendMsg"===e.type?{...e,mode:d(e.mode,t)}:e))}},66379:(e,t,n)=>{"use strict";var a=n(1048).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.storeWalletIdV5R1=t.loadWalletIdV5R1=t.isWalletIdV5R1ClientContext=void 0;const r=n(6900);function i(e){return"number"!=typeof e}t.isWalletIdV5R1ClientContext=i;const s={v5r1:0};t.loadWalletIdV5R1=function(e,t){const n=new r.BitReader(new r.BitString("bigint"==typeof e?a.from(e.toString(16),"hex"):e instanceof r.Slice?e.loadBuffer(4):e,0,32)).loadInt(32),i=BigInt(n)^BigInt(t),o=(0,r.beginCell)().storeInt(i,32).endCell().beginParse();if(o.loadUint(1)){const e=o.loadInt(8),n=o.loadUint(8),a=o.loadUint(15),r=Object.entries(s).find((([e,t])=>t===n))?.[0];if(void 0===r)throw new Error(`Can't deserialize walletId: unknown wallet version ${n}`);return{networkGlobalId:t,context:{walletVersion:r,workchain:e,subwalletNumber:a}}}return{networkGlobalId:t,context:o.loadUint(31)}},t.storeWalletIdV5R1=function(e){return t=>{let n;return n=i(e.context)?(0,r.beginCell)().storeUint(1,1).storeInt(e.context.workchain,8).storeUint(s[e.context.walletVersion],8).storeUint(e.context.subwalletNumber,15).endCell().beginParse().loadInt(32):(0,r.beginCell)().storeUint(0,1).storeUint(e.context,31).endCell().beginParse().loadInt(32),t.storeInt(BigInt(e.networkGlobalId)^BigInt(n),32)}}},2522:(e,t,n)=>{"use strict";function a(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function r(){const e=a();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=a,t.getSubtleCrypto=r,t.isBrowserCryptoAvailable=function(){return!!a()&&!!r()}},61916:(e,t,n)=>{"use strict";var a=n(39907);function r(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return void 0!==a&&void 0!==a.versions&&void 0!==a.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=r,t.isNode=i,t.isBrowser=function(){return!r()&&!i()}},48723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(23299);a.__exportStar(n(2522),t),a.__exportStar(n(61916),t)},23299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>_,__asyncGenerator:()=>v,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>x,__classPrivateFieldSet:()=>C,__createBinding:()=>p,__decorate:()=>o,__exportStar:()=>h,__extends:()=>r,__generator:()=>d,__importDefault:()=>S,__importStar:()=>I,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>g,__values:()=>f});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function r(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;o--)(r=e[o])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,a){t(n,a,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}function d(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function y(){for(var e=[],t=0;t1||o(e,t)}))})}function o(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){o("next",e)}function u(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function _(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:b(e[a](t)),done:"return"===a}:r?r(t):t}:r}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){!function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)}(a,r,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},68679:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},99486:()=>{},91450:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Ur});var a=n(50046),r=n.n(a);const i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function c(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function u(e,t={}){if("string"!=typeof e)return e;const n=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const e=n.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!o.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(i.test(e)||s.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,c)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var l=n(1048).Buffer;function d(e,...t){try{return(n=e(...t))&&"function"==typeof n.then?n:Promise.resolve(n)}catch(e){return Promise.reject(e)}var n}function p(e){if(function(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return p(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function h(){if(void 0===typeof l)throw new TypeError("[unstorage] Buffer is not supported!")}const f="base64:";function m(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function y(...e){return m(e.join(":"))}function g(e){return(e=m(e))?e+":":""}const b=()=>{const e=new Map;return{name:"memory",options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,n){e.set(t,n)},setItemRaw(t,n){e.set(t,n)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function v(e,t,n){return e.watch?e.watch(((e,a)=>t(e,n+a))):()=>{}}async function _(e){"function"==typeof e.dispose&&await d(e.dispose)}function A(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function w(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const a=A(n);return(e,n)=>a.then((a=>n(a.transaction(t,e).objectStore(t))))}let I;function S(){return I||(I=w("keyval-store","keyval")),I}function x(e,t=S()){return t("readonly",(t=>A(t.get(e))))}const C=e=>JSON.stringify(e,((e,t)=>"bigint"==typeof t?t.toString()+"n":t)),k=e=>{const t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(t,((e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t))};function T(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return k(e)}catch(t){return e}}function E(e){return"string"==typeof e?e:C(e)||""}var P=(e={})=>{const t=e.base&&e.base.length>0?`${e.base}:`:"",n=e=>t+e;let a;return e.dbName&&e.storeName&&(a=w(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await x(n(e),a)>"u"),getItem:async e=>await x(n(e),a)??null,setItem:(e,t)=>function(e,t,n=S()){return n("readwrite",(n=>(n.put(t,e),A(n.transaction))))}(n(e),t,a),removeItem:e=>function(e,t=S()){return t("readwrite",(t=>(t.delete(e),A(t.transaction))))}(n(e),a),getKeys:()=>function(e=S()){return e("readonly",(e=>{if(e.getAllKeys)return A(e.getAllKeys());const t=[];return function(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},A(e.transaction)}(e,(e=>t.push(e.key))).then((()=>t))}))}(a),clear:()=>function(e=S()){return e("readwrite",(e=>(e.clear(),A(e.transaction))))}(a)}};class O{constructor(){this.indexedDb=function(e={}){const t={mounts:{"":e.driver||b()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=e=>{for(const n of t.mountpoints)if(e.startsWith(n))return{base:n,relativeKey:e.slice(n.length),driver:t.mounts[n]};return{base:"",relativeKey:e,driver:t.mounts[""]}},a=(e,n)=>t.mountpoints.filter((t=>t.startsWith(e)||n&&e.startsWith(t))).map((n=>({relativeBase:e.length>n.length?e.slice(n.length):void 0,mountpoint:n,driver:t.mounts[n]}))),r=(e,n)=>{if(t.watching){n=m(n);for(const a of t.watchListeners)a(e,n)}},i=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},s=(e,t,a)=>{const r=new Map,i=e=>{let t=r.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},r.set(e.base,t)),t};for(const a of e){const e="string"==typeof a,r=m(e?a:a.key),s=e?void 0:a.value,o=e||!a.options?t:{...t,...a.options},c=n(r);i(c).items.push({key:r,value:s,relativeKey:c.relativeKey,options:o})}return Promise.all([...r.values()].map((e=>a(e)))).then((e=>e.flat()))},o={hasItem(e,t={}){e=m(e);const{relativeKey:a,driver:r}=n(e);return d(r.hasItem,a,t)},getItem(e,t={}){e=m(e);const{relativeKey:a,driver:r}=n(e);return d(r.getItem,a,t).then((e=>u(e)))},getItems:(e,t)=>s(e,t,(e=>e.driver.getItems?d(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:y(e.base,t.key),value:u(t.value)}))))):Promise.all(e.items.map((t=>d(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:u(e)})))))))),getItemRaw(e,t={}){e=m(e);const{relativeKey:a,driver:r}=n(e);return r.getItemRaw?d(r.getItemRaw,a,t):d(r.getItem,a,t).then((e=>function(e){return"string"!=typeof e?e:e.startsWith(f)?(h(),l.from(e.slice(7),"base64")):e}(e)))},async setItem(e,t,a={}){if(void 0===t)return o.removeItem(e);e=m(e);const{relativeKey:i,driver:s}=n(e);s.setItem&&(await d(s.setItem,i,p(t),a),s.watch||r("update",e))},async setItems(e,t){await s(e,t,(async e=>{if(e.driver.setItems)return d(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:p(e.value),options:e.options}))),t);e.driver.setItem&&await Promise.all(e.items.map((t=>d(e.driver.setItem,t.relativeKey,p(t.value),t.options))))}))},async setItemRaw(e,t,a={}){if(void 0===t)return o.removeItem(e,a);e=m(e);const{relativeKey:i,driver:s}=n(e);if(s.setItemRaw)await d(s.setItemRaw,i,t,a);else{if(!s.setItem)return;await d(s.setItem,i,function(e){if("string"==typeof e)return e;h();const t=l.from(e).toString("base64");return f+t}(t),a)}s.watch||r("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t}),e=m(e);const{relativeKey:a,driver:i}=n(e);i.removeItem&&(await d(i.removeItem,a,t),(t.removeMeta||t.removeMata)&&await d(i.removeItem,a+"$",t),i.watch||r("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t}),e=m(e);const{relativeKey:a,driver:r}=n(e),i=Object.create(null);if(r.getMeta&&Object.assign(i,await d(r.getMeta,a,t)),!t.nativeOnly){const e=await d(r.getItem,a+"$",t).then((e=>u(e)));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(i,e))}return i},setMeta(e,t,n={}){return this.setItem(e+"$",t,n)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){e=g(e);const n=a(e,!0);let r=[];const i=[];for(const e of n){const n=(await d(e.driver.getKeys,e.relativeBase,t)).map((t=>e.mountpoint+m(t))).filter((e=>!r.some((t=>e.startsWith(t)))));i.push(...n),r=[e.mountpoint,...r.filter((t=>!t.startsWith(e.mountpoint)))]}return e?i.filter((t=>t.startsWith(e)&&!t.endsWith("$"))):i.filter((e=>!e.endsWith("$")))},async clear(e,t={}){e=g(e),await Promise.all(a(e,!1).map((async e=>{if(e.driver.clear)return d(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const n=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(n.map((n=>e.driver.removeItem(n,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>_(e))))},watch:async e=>(await(async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await v(t.mounts[e],r,e)}})(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await i()}),async unwatch(){t.watchListeners=[],await i()},mount(e,n){if((e=g(e))&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort(((e,t)=>t.length-e.length))),t.mounts[e]=n,t.watching&&Promise.resolve(v(n,r,e)).then((n=>{t.unwatch[e]=n})).catch(console.error),o},async unmount(e,n=!0){(e=g(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),n&&await _(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=m(e)+":";const t=n(e);return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>(e=m(e),a(e,t.parents).map((e=>({driver:e.driver,base:e.mountpoint}))))};return o}({driver:P({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((e=>[e.key,e.value]))}async getItem(e){const t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,E(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof n.g<"u"?n.g:typeof self<"u"?self:{},R={exports:{}};function N(e){var t;return[e[0],T(null!=(t=e[1])?t:"")]}!function(){let e;function t(){}e=t,e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){const e=this;Object.keys(e).forEach((function(t){e[t]=void 0,delete e[t]}))},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof B<"u"&&B.localStorage?R.exports=B.localStorage:typeof window<"u"&&window.localStorage?R.exports=window.localStorage:R.exports=new t}();class M{constructor(){this.localStorage=R.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(N)}async getItem(e){const t=this.localStorage.getItem(e);if(null!==t)return T(t)}async setItem(e,t){this.localStorage.setItem(e,E(t))}async removeItem(e){this.localStorage.removeItem(e)}}class D{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};const e=new M;this.storage=e;try{(async(e,t,n)=>{const a="wc_storage_version",r=await t.getItem(a);if(r&&r>=1)return void n(t);const i=await e.getKeys();if(!i.length)return void n(t);const s=[];for(;i.length;){const n=i.shift();if(!n)continue;const a=n.toLowerCase();if(a.includes("wc@")||a.includes("walletconnect")||a.includes("wc_")||a.includes("wallet_connect")){const a=await e.getItem(n);await t.setItem(n,a),s.push(n)}}await t.setItem(a,1),n(t),(async(e,t)=>{t.length&&t.forEach((async t=>{await e.removeItem(t)}))})(e,s)})(e,new O,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise((e=>{const t=setInterval((()=>{this.initialized&&(clearInterval(t),e())}),20)}))}}var L=n(91315);class V{}class U extends V{constructor(e){super()}}const H=L.FIVE_SECONDS,F="heartbeat_pulse";class K extends U{constructor(e){super(e),this.events=new a.EventEmitter,this.interval=H,this.interval=e?.interval||H}static async init(e){const t=new K(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval((()=>this.pulse()),(0,L.toMiliseconds)(this.interval))}pulse(){this.events.emit(F)}}var j=n(46713),q=n.n(j);const z="custom_context";class G{constructor(e){this.nodeValue=e,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class W{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){const t=new G(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const t=e.value;return e=e.next,{done:!1,value:t}}}}}class X{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=j.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new W(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===j.levels.values.error?console.error(e):t===j.levels.values.warn?console.warn(e):t===j.levels.values.debug?console.debug(e):t===j.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(E({timestamp:(new Date).toISOString(),log:e}));const t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new W(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const t=this.getLogArray();return t.push(E({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class Z{constructor(e,t=1024e3){this.baseChunkLogger=new X(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const t=URL.createObjectURL(this.logsToBlob(e)),n=document.createElement("a");n.href=t,n.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}}class J{constructor(e,t=1024e3){this.baseChunkLogger=new X(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var Y=Object.defineProperty,Q=Object.defineProperties,$=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ae=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||(t={}))te.call(t,n)&&ae(e,n,t[n]);if(ee)for(var n of ee(t))ne.call(t,n)&&ae(e,n,t[n]);return e},ie=(e,t)=>Q(e,$(t));function se(e){return ie(re({},e),{level:e?.level||"info"})}function oe(e,t=z){let n="";return n=typeof e.bindings>"u"?function(e,t=z){return e[t]||""}(e,t):e.bindings().context||"",n}function ce(e,t,n=z){const a=function(e,t,n=z){const a=oe(e,n);return a.trim()?`${a}/${t}`:t}(e,t,n);return function(e,t,n=z){return e[n]=t,e}(e.child({context:a}),a,n)}function ue(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?function(e){var t,n;const a=new Z(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:q()(ie(re({},e.opts),{level:"trace",browser:ie(re({},null==(n=e.opts)?void 0:n.browser),{write:e=>a.write(e)})})),chunkLoggerController:a}}(e):function(e){var t;const n=new J(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:q()(ie(re({},e.opts),{level:"trace"}),n),chunkLoggerController:n}}(e)}class le extends V{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class de extends V{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class pe{constructor(e,t){this.logger=e,this.core=t}}class he extends V{constructor(e,t){super(),this.relayer=e,this.logger=t}}class fe extends V{constructor(e){super()}}class me{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}}class ye extends V{constructor(e,t){super(),this.relayer=e,this.logger=t}}class ge extends V{constructor(e,t){super(),this.core=e,this.logger=t}}class be{constructor(e,t){this.projectId=e,this.logger=t}}class ve{constructor(e,t){this.projectId=e,this.logger=t}}r();class _e{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}a.EventEmitter;class Ae{constructor(e){this.client=e}}var we=n(17379),Ie=n(27687);const Se="base64url",xe="utf8",Ce=":",ke="did",Te="key",Ee="base58btc",Pe="z",Oe="K36";function Be(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Re(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Be(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}var Ne=n(84979);function Me(e,t,n,a){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:a}}}const De=Me("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Le=Me("ascii","a",(e=>{let t="a";for(let n=0;n{const t=Re((e=e.substring(1)).length);for(let n=0;ne+t.length),0));const n=Re(t);let a=0;for(const t of e)n.set(t,a),a+=t.length;return Be(n)}([t,e]),Ee);return[ke,Te,n].join(Ce)}function je(e=(0,Ie.randomBytes)(32)){return we.K(e)}n(99486);var qe=n(83386),ze=n(76282);const Ge="INTERNAL_ERROR",We="SERVER_ERROR",Xe=[-32700,-32600,-32601,-32602,-32603],Ze={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[Ge]:{code:-32603,message:"Internal error"},[We]:{code:-32e3,message:"Server error"}},Je=We;function Ye(e){return Object.keys(Ze).includes(e)?Ze[e]:Ze[Je]}var Qe=n(48723);function $e(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function et(e=6){return BigInt($e(e))}function tt(e,t,n){return{id:n||$e(),jsonrpc:"2.0",method:e,params:t}}function nt(e,t){return{id:e,jsonrpc:"2.0",result:t}}function at(e,t,n){return{id:e,jsonrpc:"2.0",error:rt(t,n)}}function rt(e,t){return void 0===e?Ye(Ge):("string"==typeof e&&(e=Object.assign(Object.assign({},Ye(We)),{message:e})),void 0!==t&&(e.data=t),n=e.code,Xe.includes(n)&&(e=function(e){return Object.values(Ze).find((t=>t.code===e))||Ze[Je]}(e.code)),e);var n}class it{}class st extends it{constructor(){super()}}class ot extends st{constructor(e){super()}}function ct(e){return function(e,t){const n=function(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==n&&new RegExp(t).test(n)}(e,"^wss?:")}function ut(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function lt(e){return ut(e)&&"method"in e}function dt(e){return ut(e)&&(pt(e)||ht(e))}function pt(e){return"result"in e}function ht(e){return"error"in e}class ft extends ot{constructor(e){super(e),this.events=new a.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(tt(e.method,e.params||[],e.id||et().toString()),t)}async requestStrict(e,t){return new Promise((async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(e){a(e)}this.events.on(`${e.id}`,(e=>{ht(e)?a(e.error):n(e.result)}));try{await this.connection.send(e,t)}catch(e){a(e)}}))}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),dt(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(e=>this.onPayload(e))),this.connection.on("close",(e=>this.onClose(e))),this.connection.on("error",(e=>this.events.emit("error",e))),this.connection.on("register_error",(e=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const mt=e=>e.split("?")[0],yt=typeof WebSocket<"u"?WebSocket:typeof n.g<"u"&&typeof n.g.WebSocket<"u"?n.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:n(68679);class gt{constructor(e){if(this.url=e,this.events=new a.EventEmitter,this.registering=!1,!ct(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise(((e,t)=>{typeof this.socket>"u"?t(new Error("Connection already closed")):(this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close())}))}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(E(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!ct(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise(((e,t)=>{this.events.once("register_error",(e=>{this.resetMaxListeners(),t(e)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(new Error("WebSocket connection is missing or invalid"));e(this.socket)}))}))}return this.url=e,this.registering=!0,new Promise(((t,a)=>{const r=new URLSearchParams(e).get("origin"),i=(0,Qe.isReactNative)()?{headers:{origin:r}}:{rejectUnauthorized:(o=e,!new RegExp("wss?://localhost(:d{2,5})?").test(o))},s=new yt(e,[],i);var o;typeof WebSocket<"u"||typeof n.g<"u"&&typeof n.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?s.onerror=e=>{const t=e;a(this.emitError(t.error))}:s.on("error",(e=>{a(this.emitError(e))})),s.onopen=()=>{this.onOpen(s),t(s)}}))}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const t="string"==typeof e.data?T(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const n=this.parseError(t),a=at(e,n.message||n.toString());this.events.emit("payload",a)}parseError(e,t=this.url){return function(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable WS RPC url at ${t}`):e}(e,mt(t))}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){const t=this.parseError(new Error(e?.message||`WebSocket connection failed for host: ${mt(this.url)}`));return this.events.emit("register_error",t),t}}var bt=n(18677),vt=n.n(bt),_t=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),a=0;a>>0,s=new Uint8Array(i);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,p=i-1;(0!==l||d>>0,s[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");r=d,t++}if(" "!==e[t]){for(var h=i-r;h!==i&&0===s[h];)h++;for(var f=new Uint8Array(a+(i-h)),m=a;h!==i;)f[m++]=s[h++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,a=0,r=0,i=t.length;r!==i&&0===t[r];)r++,n++;for(var s=(i-r)*l+1>>>0,u=new Uint8Array(s);r!==i;){for(var d=t[r],p=0,h=s-1;(0!==d||p>>0,u[h]=d%o>>>0,d=d/o>>>0;if(0!==d)throw new Error("Non-zero carry");a=p,r++}for(var f=s-a;f!==s&&0===u[f];)f++;for(var m=c.repeat(n);f{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class wt{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class It{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return xt(this,e)}}class St{constructor(e){this.decoders=e}or(e){return xt(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const xt=(e,t)=>new St({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class Ct{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new wt(e,t,n),this.decoder=new It(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const kt=({name:e,prefix:t,encode:n,decode:a})=>new Ct(e,t,n,a),Tt=({prefix:e,name:t,alphabet:n})=>{const{encode:a,decode:r}=_t(n,t);return kt({prefix:e,name:t,encode:a,decode:e=>At(r(e))})},Et=({name:e,prefix:t,bitsPerChar:n,alphabet:a})=>kt({prefix:t,name:e,encode:e=>((e,t,n)=>{const a="="===t[t.length-1],r=(1<n;)s-=n,i+=t[r&o>>s];if(s&&(i+=t[r&o<((e,t,n,a)=>{const r={};for(let e=0;e=8&&(o-=8,s[u++]=255&c>>o)}if(o>=n||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s})(t,a,n,e)}),Pt=kt({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var Ot=Object.freeze({__proto__:null,identity:Pt});const Bt=Et({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Rt=Object.freeze({__proto__:null,base2:Bt});const Nt=Et({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Mt=Object.freeze({__proto__:null,base8:Nt});const Dt=Tt({prefix:"9",name:"base10",alphabet:"0123456789"});var Lt=Object.freeze({__proto__:null,base10:Dt});const Vt=Et({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ut=Et({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ht=Object.freeze({__proto__:null,base16:Vt,base16upper:Ut});const Ft=Et({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Kt=Et({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jt=Et({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),qt=Et({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),zt=Et({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Gt=Et({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Wt=Et({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Xt=Et({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Zt=Et({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Jt=Object.freeze({__proto__:null,base32:Ft,base32upper:Kt,base32pad:jt,base32padupper:qt,base32hex:zt,base32hexupper:Gt,base32hexpad:Wt,base32hexpadupper:Xt,base32z:Zt});const Yt=Tt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Qt=Tt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var $t=Object.freeze({__proto__:null,base36:Yt,base36upper:Qt});const en=Tt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tn=Tt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var nn=Object.freeze({__proto__:null,base58btc:en,base58flickr:tn});const an=Et({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),rn=Et({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),sn=Et({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),on=Et({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var cn=Object.freeze({__proto__:null,base64:an,base64pad:rn,base64url:sn,base64urlpad:on});const un=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),ln=un.reduce(((e,t,n)=>(e[n]=t,e)),[]),dn=un.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]),pn=kt({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+ln[t]),"")},decode:function(e){const t=[];for(const n of e){const e=dn[n.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});var hn=Object.freeze({__proto__:null,base256emoji:pn}),fn=128,mn=-128,yn=Math.pow(2,31),gn=128,bn=127,vn=Math.pow(2,7),_n=Math.pow(2,14),An=Math.pow(2,21),wn=Math.pow(2,28),In=Math.pow(2,35),Sn=Math.pow(2,42),xn=Math.pow(2,49),Cn=Math.pow(2,56),kn=Math.pow(2,63),Tn={encode:function e(t,n,a){n=n||[];for(var r=a=a||0;t>=yn;)n[a++]=255&t|fn,t/=128;for(;t&mn;)n[a++]=255&t|fn,t>>>=7;return n[a]=0|t,e.bytes=a-r+1,n},decode:function e(t,n){var a,r=0,i=(n=n||0,0),s=n,o=t.length;do{if(s>=o)throw e.bytes=0,new RangeError("Could not decode varint");a=t[s++],r+=i<28?(a&bn)<=gn);return e.bytes=s-n,r},encodingLength:function(e){return e(En.encode(e,t,n),t),On=e=>En.encodingLength(e),Bn=(e,t)=>{const n=t.byteLength,a=On(e),r=a+On(n),i=new Uint8Array(r+n);return Pn(e,i,0),Pn(n,i,a),i.set(t,r),new Rn(e,n,t,i)};class Rn{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}const Nn=({name:e,code:t,encode:n})=>new Mn(e,t,n);class Mn{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?Bn(this.code,t):t.then((e=>Bn(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Dn=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Ln=Nn({name:"sha2-256",code:18,encode:Dn("SHA-256")}),Vn=Nn({name:"sha2-512",code:19,encode:Dn("SHA-512")});Object.freeze({__proto__:null,sha256:Ln,sha512:Vn});const Un=At,Hn={code:0,name:"identity",encode:Un,digest:e=>Bn(0,Un(e))};Object.freeze({__proto__:null,identity:Hn}),new TextEncoder,new TextDecoder;const Fn={...Ot,...Rt,...Mt,...Lt,...Ht,...Jt,...$t,...nn,...cn,...hn};function Kn(e,t,n,a){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:a}}}const jn=Kn("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),qn=Kn("ascii","a",(e=>{let t="a";for(let n=0;n{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let n=0;n{if(!this.initialized){const e=await this.getKeyChain();typeof e<"u"&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();const t=this.keychain.get(e);if(typeof t>"u"){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=ce(t,this.name)}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,qe.h0Y)(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?(0,qe.PUk)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Sa{constructor(e,t,n){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=(0,qe.two)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>(this.isInitialized(),Ke(je(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();const e=(0,qe.TZl)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();const t=je(await this.getClientSeed()),n=this.randomSessionIdentifier,a=Jn;return await async function(e,t,n,a,r=(0,L.fromMiliseconds)(Date.now())){const i={alg:"EdDSA",typ:"JWT"},s={iss:Ke(a.publicKey),sub:e,aud:t,iat:r,exp:r+n},o=He([Fe((c={header:i,payload:s}).header),Fe(c.payload)].join("."),"utf8");var c;return function(e){return[Fe(e.header),Fe(e.payload),(t=e.signature,Ue(t,Se))].join(".");var t}({header:i,payload:s,signature:we._S(a.secretKey,o)})}(n,e,a,t)},this.generateSharedKey=(e,t,n)=>{this.isInitialized();const a=this.getPrivateKey(e),r=(0,qe.ovp)(a,t);return this.setSymKey(r,n)},this.setSymKey=async(e,t)=>{this.isInitialized();const n=t||(0,qe.EN$)(e);return await this.keychain.set(n,e),n},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,n)=>{this.isInitialized();const a=(0,qe.AwN)(n),r=E(t);if((0,qe.V7m)(a)){const t=a.senderPublicKey,n=a.receiverPublicKey;e=await this.generateSharedKey(t,n)}const i=this.getSymKey(e),{type:s,senderPublicKey:o}=a;return(0,qe.wa2)({type:s,symKey:i,message:r,senderPublicKey:o})},this.decode=async(e,t,n)=>{this.isInitialized();const a=(0,qe.C5G)(t,n);if((0,qe.V7m)(a)){const t=a.receiverPublicKey,n=a.senderPublicKey;e=await this.generateSharedKey(t,n)}try{const n=this.getSymKey(e);return T((0,qe.YcA)({symKey:n,encoded:t}))}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=e=>{const t=(0,qe.iui)(e);return(0,qe.x0t)(t.type)},this.getPayloadSenderPublicKey=e=>{const t=(0,qe.iui)(e);return t.senderPublicKey?(0,ze.dI)(t.senderPublicKey,qe.bEt):void 0},this.core=e,this.logger=ce(t,this.name),this.keychain=n||new Ia(this.core,this.logger)}get context(){return oe(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(Zn)}catch{e=(0,qe.two)(),await this.keychain.set(Zn,e)}return function(e,t="utf8"){const n=zn[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):globalThis.Buffer.from(e,"utf8")}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class xa extends pe{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Wn,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const e=await this.getRelayerMessages();typeof e<"u"&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();const n=(0,qe.ALl)(t);let a=this.messages.get(e);return typeof a>"u"&&(a={}),typeof a[n]<"u"||(a[n]=t,this.messages.set(e,a),await this.persist()),n},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),typeof this.get(e)[(0,qe.ALl)(t)]<"u"),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=ce(e,this.name),this.core=t}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,qe.h0Y)(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?(0,qe.PUk)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Ca extends he{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new a.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,L.toMiliseconds)(L.ONE_MINUTE),this.failedPublishTimeout=(0,L.toMiliseconds)(L.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,n)=>{var a;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:n}});const r=n?.ttl||Yn,i=(0,qe.n6V)(n),s=n?.prompt||!1,o=n?.tag||0,c=n?.id||et().toString(),u={topic:e,message:t,opts:{ttl:r,relay:i,prompt:s,tag:o,id:c,attestation:n?.attestation}},l=`Failed to publish payload, please try again. id:${c} tag:${o}`,d=Date.now();let p,h=1;try{for(;void 0===p;){if(Date.now()-d>this.publishTimeout)throw new Error(l);this.logger.trace({id:c,attempts:h},`publisher.publish - attempt ${h}`),p=await await(0,qe.K3g)(this.rpcPublish(e,t,r,i,s,o,c,n?.attestation).catch((e=>this.logger.warn(e))),this.publishTimeout,l),h++,p||await new Promise((e=>setTimeout(e,this.failedPublishTimeout)))}this.relayer.events.emit(na,u),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:e,message:t,opts:n}})}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),null!=(a=n?.internal)&&a.throwOnFailedPublish)throw e;this.queue.set(c,u)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=ce(t,this.name),this.registerEventListeners()}get context(){return oe(this.logger)}rpcPublish(e,t,n,a,r,i,s,o){var c,u,l,d;const p={method:(0,qe.aa1)(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:r,tag:i,attestation:o},id:s};return(0,qe.b07)(null==(c=p.params)?void 0:c.prompt)&&(null==(u=p.params)||delete u.prompt),(0,qe.b07)(null==(l=p.params)?void 0:l.tag)&&(null==(d=p.params)||delete d.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:p}),this.relayer.request(p)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach((async e=>{const{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)}))}registerEventListeners(){this.relayer.core.heartbeat.on(F,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(ta);this.checkQueue()})),this.relayer.on(ea,(e=>{this.removeRequestFromQueue(e.id.toString())}))}}class ka{constructor(){this.map=new Map,this.set=(e,t)=>{const n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u")return void this.map.delete(e);if(!this.map.has(e))return;const n=this.get(e);if(!this.exists(e,t))return;const a=n.filter((e=>e!==t));a.length?this.map.set(e,a):this.map.delete(e)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Ta=Object.defineProperty,Ea=Object.defineProperties,Pa=Object.getOwnPropertyDescriptors,Oa=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,Na=(e,t,n)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ma=(e,t)=>{for(var n in t||(t={}))Ba.call(t,n)&&Na(e,n,t[n]);if(Oa)for(var n of Oa(t))Ra.call(t,n)&&Na(e,n,t[n]);return e},Da=(e,t)=>Ea(e,Pa(t));class La extends ye{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new ka,this.events=new a.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Wn,this.subscribeTimeout=(0,L.toMiliseconds)(L.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{const n=(0,qe.n6V)(t),a={topic:e,relay:n};this.pending.set(e,a);const r=await this.rpcSubscribe(e,n);return"string"==typeof r&&(this.onSubscribe(r,a),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),r}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),typeof t?.id<"u"?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;const t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise(((n,a)=>{const r=new L.Watch;r.start(t);const i=setInterval((()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(i),r.stop(t),n(!0)),r.elapsed(t)>=ua&&(clearInterval(i),r.stop(t),a(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1))},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=ce(t,this.name),this.clientId=""}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){const n=this.topicMap.get(e);await Promise.all(n.map((async n=>await this.unsubscribeById(e,n,t))))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{const a=(0,qe.n6V)(n);await this.rpcUnsubscribe(e,t,a);const r=(0,qe.Hjj)("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,r),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}async rpcSubscribe(e,t){const n={method:(0,qe.aa1)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await(0,qe.K3g)(this.relayer.request(n).catch((e=>this.logger.warn(e))),this.subscribeTimeout)?(0,qe.ALl)(e+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(ta)}return null}async rpcBatchSubscribe(e){if(!e.length)return;const t=e[0].relay,n={method:(0,qe.aa1)(t.protocol).batchSubscribe,params:{topics:e.map((e=>e.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await(0,qe.K3g)(this.relayer.request(n).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(ta)}}async rpcBatchFetchMessages(e){if(!e.length)return;const t=e[0].relay,n={method:(0,qe.aa1)(t.protocol).batchFetchMessages,params:{topics:e.map((e=>e.topic))}};let a;this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{a=await await(0,qe.K3g)(this.relayer.request(n).catch((e=>this.logger.warn(e))),this.subscribeTimeout)}catch{this.relayer.events.emit(ta)}return a}rpcUnsubscribe(e,t,n){const a={method:(0,qe.aa1)(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.request(a)}onSubscribe(e,t){this.setSubscription(e,Da(Ma({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach((e=>{this.setSubscription(e.id,Ma({},e)),this.pending.delete(e.topic)}))}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,Ma({},t)),this.topicMap.set(t.topic,e),this.events.emit(oa,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const t=this.subscriptions.get(e);if(!t){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});const n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(ca,Da(Ma({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}async reset(){if(this.cached.length){const e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){const{message:e}=(0,qe.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;const t=await this.rpcBatchSubscribe(e);(0,qe.OP1)(t)&&this.onBatchSubscribe(t.map(((t,n)=>Da(Ma({},e[n]),{id:t}))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;const e=[];this.pending.forEach((t=>{e.push(t)})),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(F,(async()=>{await this.checkPending()})),this.events.on(oa,(async e=>{const t=oa;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})),this.events.on(ca,(async e=>{const t=ca;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.restartInProgress||(clearInterval(t),e())}),this.pollingInterval)}))}}var Va=Object.defineProperty,Ua=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,Ka=(e,t,n)=>t in e?Va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class ja extends fe{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new a.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,L.toMiliseconds)(L.THIRTY_SECONDS+L.ONE_SECOND),this.request=async e=>{var t,n;this.logger.debug("Publishing Request Payload");const a=e.id||et().toString();await this.toEstablishConnection();try{const r=this.provider.request(e);this.requestsInFlight.set(a,{promise:r,request:e}),this.logger.trace({id:a,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");const i=await new Promise((async(e,t)=>{const n=()=>{t(new Error(`relayer.request - publish interrupted, id: ${a}`))};this.provider.on(ia,n);const i=await r;this.provider.off(ia,n),e(i)}));return this.logger.trace({id:a,method:e.method,topic:null==(n=e.params)?void 0:n.topic},"relayer.request - published"),i}catch(e){throw this.logger.debug(`Failed to Publish Request: ${a}`),e}finally{this.requestsInFlight.delete(a)}},this.resetPingTimeout=()=>{if((0,qe.Lln)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout((()=>{var e,t,n;null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||n.terminate()}),this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit("relayer_connect")},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit("relayer_error",e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(aa,this.onPayloadHandler),this.provider.on(ra,this.onConnectHandler),this.provider.on(ia,this.onDisconnectHandler),this.provider.on(sa,this.onProviderErrorHandler)},this.core=e.core,this.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?ce(e.logger,this.name):q()(se({level:e.logger||"error"})),this.messages=new xa(this.logger,e.core),this.subscriber=new La(this,this.logger),this.publisher=new Ca(this,this.logger),this.relayUrl=e?.relayUrl||Qn,this.projectId=e.projectId,this.bundleId=(0,qe.w47)(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),await this.transportOpen(),this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return oe(this.logger)}get connected(){var e,t,n;return 1===(null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:n.readyState)}get connecting(){var e,t,n;return 0===(null==(n=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:n.readyState)}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){var n;this.isInitialized();let a,r=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"";const i=t=>{t.topic===e&&(this.subscriber.off(oa,i),a())};return await Promise.all([new Promise((e=>{a=e,this.subscriber.on(oa,i)})),new Promise((async n=>{r=await this.subscriber.subscribe(e,t)||r,n()}))]),r}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map((e=>e.promise)))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await(0,qe.K3g)(this.provider.disconnect(),2e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise((async(e,t)=>{const n=()=>{this.provider.off(ia,n),t(new Error("Connection interrupted while trying to subscribe"))};this.provider.on(ia,n),await(0,qe.K3g)(this.provider.connect(),(0,L.toMiliseconds)(L.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch((e=>{t(e)})),this.subscriber.start().catch((e=>{this.logger.error(e),this.onDisconnectHandler()})),this.hasExperiencedNetworkDisruption=!1,e()}))}catch(e){this.logger.error(e);const t=e;if(this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(t.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await(0,qe.sc7)())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(0===e?.length)return void this.logger.trace("Batch message events is empty. Ignoring...");const t=e.sort(((e,t)=>e.publishedAt-t.publishedAt));this.logger.trace(`Batch of ${t.length} message events sorted`);for(const e of t)try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}startPingTimeout(){var e,t,n,a,r;if((0,qe.Lln)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(r=null==(a=null==(n=this.provider)?void 0:n.connection)?void 0:a.socket)||r.once("ping",(()=>{this.resetPingTimeout()}))),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some((t=>e.includes(t)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new ft(new gt((0,qe.jUZ)({sdkVersion:"2.15.1",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){const{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){const{topic:t,message:n}=e;if(!n||0===n.length)return this.logger.debug(`Ignoring invalid/empty message: ${n}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;const a=this.messages.has(t,n);return a&&this.logger.debug(`Ignoring duplicate message: ${n}`),a}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),lt(e)){if(!e.method.endsWith("_subscription"))return;const t=e.params,{topic:n,message:a,publishedAt:r,attestation:i}=t.data,s={topic:n,message:a,publishedAt:r,attestation:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((e,t)=>{for(var n in t||(t={}))Ha.call(t,n)&&Ka(e,n,t[n]);if(Ua)for(var n of Ua(t))Fa.call(t,n)&&Ka(e,n,t[n]);return e})({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}else dt(e)&&this.events.emit(ea,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit($n,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const t=nt(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(aa,this.onPayloadHandler),this.provider.off(ra,this.onConnectHandler),this.provider.off(ia,this.onDisconnectHandler),this.provider.off(sa,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await(0,qe.sc7)();(0,qe.uym)((async t=>{e!==t&&(e=t,t?await this.restartTransport().catch((e=>this.logger.error(e))):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}))}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit("relayer_disconnect"),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&setTimeout((async()=>{await this.transportOpen().catch((e=>this.logger.error(e)))}),(0,L.toMiliseconds)(.1))}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&(this.connectionAttemptInProgress&&await new Promise((e=>{const t=setInterval((()=>{this.connected&&(clearInterval(t),e())}),this.connectionStatusPollingInterval)})),await this.transportOpen())}}var qa=Object.defineProperty,za=Object.getOwnPropertySymbols,Ga=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,Xa=(e,t,n)=>t in e?qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Za=(e,t)=>{for(var n in t||(t={}))Ga.call(t,n)&&Xa(e,n,t[n]);if(za)for(var n of za(t))Wa.call(t,n)&&Xa(e,n,t[n]);return e};class Ja extends me{constructor(e,t,n,a=Wn,r=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Wn,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>{this.getKey&&null!==e&&!(0,qe.b07)(e)?this.map.set(this.getKey(e),e):(0,qe.CTo)(e)?this.map.set(e.id,e):(0,qe.mr0)(e)&&this.map.set(e.topic,e)})),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter((t=>Object.keys(e).every((n=>vt()(t[n],e[n]))))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});const n=Za(Za({},this.getData(e)),t);this.map.set(e,n),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=ce(t,this.name),this.storagePrefix=a,this.getKey=r}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),new Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:e}=(0,qe.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Ya{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(r()),this.initialized=!1,this.storagePrefix=Wn,this.ignoredPayloadTypes=[qe.Lp_],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();const t=(0,qe.two)(),n=await this.core.crypto.setSymKey(t),a=(0,qe.Xw0)(L.FIVE_MINUTES),r={protocol:"irn"},i={topic:n,expiry:a,relay:r,active:!1},s=(0,qe.QJh)({protocol:this.core.protocol,version:this.core.version,topic:n,symKey:t,relay:r,expiryTimestamp:a,methods:e?.methods});return this.core.expirer.set(n,a),await this.pairings.set(n,i),await this.core.relayer.subscribe(n),{topic:n,uri:s}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);const{topic:t,symKey:n,relay:a,expiryTimestamp:r,methods:i}=(0,qe.wYp)(e.uri);let s;if(this.pairings.keys.includes(t)&&(s=this.pairings.get(t),s.active))throw new Error(`Pairing already exists: ${t}. Please try again with a new connection URI.`);const o=r||(0,qe.Xw0)(L.FIVE_MINUTES),c={topic:t,relay:a,expiry:o,active:!1,methods:i};return this.core.expirer.set(t,o),await this.pairings.set(t,c),e.activatePairing&&await this.activate({topic:t}),this.events.emit(da,c),this.core.crypto.keychain.has(t)||await this.core.crypto.setSymKey(n,t),await this.core.relayer.subscribe(t,{relay:a}),c},this.activate=async({topic:e})=>{this.isInitialized();const t=(0,qe.Xw0)(L.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);const{topic:t}=e;if(this.pairings.keys.includes(t)){const e=await this.sendRequest(t,"wc_pairingPing",{}),{done:n,resolve:a,reject:r}=(0,qe.Wx8)();this.events.once((0,qe.hEn)("pairing_ping",e),(({error:e})=>{e?r(e):a()})),await n()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",(0,qe.Hjj)("USER_DISCONNECTED")),await this.deletePairing(t))},this.sendRequest=async(e,t,n)=>{const a=tt(t,n),r=await this.core.crypto.encode(e,a),i=la[t].req;return this.core.history.set(e,a),this.core.relayer.publish(e,r,i),a.id},this.sendResult=async(e,t,n)=>{const a=nt(e,n),r=await this.core.crypto.encode(t,a),i=await this.core.history.get(t,e),s=la[i.request.method].res;await this.core.relayer.publish(t,r,s),await this.core.history.resolve(a)},this.sendError=async(e,t,n)=>{const a=at(e,n),r=await this.core.crypto.encode(t,a),i=await this.core.history.get(t,e),s=la[i.request.method]?la[i.request.method].res:la.unregistered_method.res;await this.core.relayer.publish(t,r,s),await this.core.history.resolve(a)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,qe.Hjj)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{const e=this.pairings.getAll().filter((e=>(0,qe._dF)(e.expiry)));await Promise.all(e.map((e=>this.deletePairing(e.topic))))},this.onRelayEventRequest=e=>{const{topic:t,payload:n}=e;switch(n.method){case"wc_pairingPing":return this.onPairingPingRequest(t,n);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,n);default:return this.onUnknownRpcMethodRequest(t,n)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:n}=e,a=(await this.core.history.get(t,n.id)).request.method;return"wc_pairingPing"===a?this.onPairingPingResponse(t,n):this.onUnknownRpcMethodResponse(a)},this.onPairingPingRequest=async(e,t)=>{const{id:n}=t;try{this.isValidPing({topic:e}),await this.sendResult(n,e,!0),this.events.emit("pairing_ping",{id:n,topic:e})}catch(t){await this.sendError(n,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{const{id:n}=t;setTimeout((()=>{pt(t)?this.events.emit((0,qe.hEn)("pairing_ping",n),{}):ht(t)&&this.events.emit((0,qe.hEn)("pairing_ping",n),{error:t.error})}),500)},this.onPairingDeleteRequest=async(e,t)=>{const{id:n}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(pa,{id:n,topic:e})}catch(t){await this.sendError(n,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{const{id:n,method:a}=t;try{if(this.registeredMethods.includes(a))return;const t=(0,qe.Hjj)("WC_METHOD_UNSUPPORTED",a);await this.sendError(n,e,t),this.logger.error(t)}catch(t){await this.sendError(n,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,qe.Hjj)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{var t;if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`pair() params: ${e}`);throw new Error(t)}if(!(0,qe.AYU)(e.uri)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw new Error(t)}const n=(0,qe.wYp)(e.uri);if(null==(t=n?.relay)||!t.protocol){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(e)}if(null==n||!n.symKey){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(e)}if(null!=n&&n.expiryTimestamp&&(0,L.toMiliseconds)(n?.expiryTimestamp){if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,qe.Qhg)(e,!1)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.pairings.keys.includes(e)){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if((0,qe._dF)(this.pairings.get(e).expiry)){await this.deletePairing(e);const{message:t}=(0,qe.GuA)("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}},this.core=e,this.logger=ce(t,this.name),this.pairings=new Ja(this.core,this.logger,this.name,this.storagePrefix)}get context(){return oe(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on($n,(async e=>{const{topic:t,message:n}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const a=await this.core.crypto.decode(t,n);try{lt(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):dt(a)&&(await this.core.history.resolve(a),await this.onRelayEventResponse({topic:t,payload:a}),this.core.history.delete(t,a.id))}catch(e){this.logger.error(e)}}))}registerExpirerEvents(){this.core.expirer.on(ba,(async e=>{const{topic:t}=(0,qe.c82)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))}))}}class Qa extends de{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new a.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Wn,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.records.set(e.id,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,n)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:n}),this.records.has(t.id))return;const a={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:n,expiry:(0,qe.Xw0)(L.THIRTY_DAYS)};this.records.set(a.id,a),this.persist(),this.events.emit(ha,a)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;const t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=ht(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(fa,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach((n=>{if(n.topic===e){if(typeof t<"u"&&n.id!==t)return;this.records.delete(n.id),this.events.emit(ma,n)}})),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=ce(t,this.name)}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach((t=>{if(typeof t.response<"u")return;const n={topic:t.topic,request:tt(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)})),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const t=this.records.get(e);if(!t){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:e}=(0,qe.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(ha,(e=>{const t=ha;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(fa,(e=>{const t=fa;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.events.on(ma,(e=>{const t=ma;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})})),this.core.heartbeat.on(F,(()=>{this.cleanup()}))}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach((t=>{(0,L.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(ma,t,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class $a extends ge{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new a.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Wn,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((e=>this.expirations.set(e.target,e))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{const t=this.formatTarget(e);return typeof this.getExpiration(t)<"u"}catch{return!1}},this.set=(e,t)=>{this.isInitialized();const n=this.formatTarget(e),a={target:n,expiry:t};this.expirations.set(n,a),this.checkExpiry(n,a),this.events.emit(ya,{target:n,expiration:a})},this.get=e=>{this.isInitialized();const t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){const t=this.formatTarget(e),n=this.getExpiration(t);this.expirations.delete(t),this.events.emit(ga,{target:t,expiration:n})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=ce(t,this.name)}get context(){return oe(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return(0,qe.ADD)(e);if("number"==typeof e)return(0,qe.gOF)(e);const{message:t}=(0,qe.GuA)("UNKNOWN_TYPE","Target type: "+typeof e);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:e}=(0,qe.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),new Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const t=this.expirations.get(e);if(!t){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),new Error(t)}return t}checkExpiry(e,t){const{expiry:n}=t;(0,L.toMiliseconds)(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(ba,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((e,t)=>this.checkExpiry(t,e)))}registerEventListeners(){this.core.heartbeat.on(F,(()=>this.checkExpirations())),this.events.on(ya,(e=>{const t=ya;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(ba,(e=>{const t=ba;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})),this.events.on(ga,(e=>{const t=ga;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}}}class er extends be{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.name=va,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||(0,qe.lVv)()||!(0,qe.BdH)())return;const t=this.getVerifyUrl(e?.verifyUrl);this.verifyUrl!==t&&this.removeIframe(),this.verifyUrl=t;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e),this.verifyDisabled=!0}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{if(this.isDevEnv)return"";const t=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(e.attestationId,t)},this.fetchAttestation=async(e,t)=>{this.logger.info(`resolving attestation: ${e} from url: ${t}`);const n=this.startAbortTimer(5*L.ONE_SECOND),a=await fetch(`${t}/attestation/${e}`,{signal:this.abortController.signal});return clearTimeout(n),200===a.status?await a.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((e=>this.sendPost(e))),this.queue=[])},this.sendPost=e=>{var t;try{if(!this.iframe)return;null==(t=this.iframe.contentWindow)||t.postMessage(e,"*"),this.logger.info(`postMessage sent: ${e} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let e;const t=n=>{"verify_ready"===n.data&&(this.onInit(),window.removeEventListener("message",t),e())};await Promise.race([new Promise((n=>{const a=document.getElementById(va);if(a)return this.iframe=a,this.onInit(),n();window.addEventListener("message",t);const r=document.createElement("iframe");r.id=va,r.src=`${this.verifyUrl}/${this.projectId}`,r.style.display="none",document.body.append(r),this.iframe=r,e=n})),new Promise(((e,n)=>setTimeout((()=>{window.removeEventListener("message",t),n("verify iframe load timeout")}),(0,L.toMiliseconds)(L.FIVE_SECONDS))))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let t=e||Aa;return wa.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${Aa}`),t=Aa),t},this.logger=ce(t,this.name),this.verifyUrl=Aa,this.abortController=new AbortController,this.isDevEnv=(0,qe.Lln)()&&{NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.IS_VITEST}get context(){return oe(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,L.toMiliseconds)(e))}}class tr extends ve{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{const{clientId:t,token:n,notificationType:a,enableEncrypted:r=!1}=e,i=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:a,token:n,always_raw:r})})},this.logger=ce(t,this.context)}}var nr=Object.defineProperty,ar=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,sr=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,or=(e,t)=>{for(var n in t||(t={}))rr.call(t,n)&&sr(e,n,t[n]);if(ar)for(var n of ar(t))ir.call(t,n)&&sr(e,n,t[n]);return e};class cr extends le{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=Gn,this.events=new a.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||Qn,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const n=se({level:"string"==typeof e?.logger&&e.logger?e.logger:"error"}),{logger:r,chunkLoggerController:i}=ue({opts:n,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=i,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=ce(r,this.name),this.heartbeat=new K,this.crypto=new Sa(this,this.logger,e?.keychain),this.history=new Qa(this,this.logger),this.expirer=new $a(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new D(or(or({},Xn),e?.storageOptions)),this.relayer=new ja({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Ya(this,this.logger),this.verify=new er(this.projectId||"",this.logger),this.echoClient=new tr(this.projectId||"",this.logger)}static async init(e){const t=new cr(e);await t.initialize();const n=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",n),t}get context(){return oe(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}const ur=cr,lr="client",dr=`wc@2:${lr}:`,pr=lr,hr="WALLETCONNECT_DEEPLINK_CHOICE",fr=L.SEVEN_DAYS,mr={wc_sessionPropose:{req:{ttl:L.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:L.ONE_DAY,prompt:!1,tag:1104},res:{ttl:L.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:L.ONE_DAY,prompt:!1,tag:1106},res:{ttl:L.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:L.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:L.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:L.ONE_DAY,prompt:!1,tag:1112},res:{ttl:L.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:L.ONE_DAY,prompt:!1,tag:1114},res:{ttl:L.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:L.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:L.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:L.FIVE_MINUTES,prompt:!1,tag:1119}}},yr={min:L.FIVE_MINUTES,max:L.SEVEN_DAYS},gr="IDLE",br="ACTIVE",vr=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],_r="wc@1.5:auth:",Ar=`${_r}:PUB_KEY`;var wr=Object.defineProperty,Ir=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Tr=(e,t,n)=>t in e?wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))Cr.call(t,n)&&Tr(e,n,t[n]);if(xr)for(var n of xr(t))kr.call(t,n)&&Tr(e,n,t[n]);return e},Pr=(e,t)=>Ir(e,Sr(t));class Or extends Ae{constructor(e){super(e),this.name="engine",this.events=new(r()),this.initialized=!1,this.requestQueue={state:gr,queue:[]},this.sessionRequestQueue={state:gr,queue:[]},this.requestQueueDelay=L.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(mr)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,L.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();const t=Pr(Er({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);const{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:r,sessionProperties:i,relays:s}=t;let o,c=n,u=!1;try{c&&(u=this.client.core.pairing.pairings.get(c).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),e}if(!c||!u){const{topic:e,uri:t}=await this.client.core.pairing.create();c=e,o=t}if(!c){const{message:e}=(0,qe.GuA)("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(e)}const l=await this.client.core.crypto.generateKeyPair(),d=mr.wc_sessionPropose.req.ttl||L.FIVE_MINUTES,p=(0,qe.Xw0)(d),h=Er({requiredNamespaces:a,optionalNamespaces:r,relays:s??[{protocol:"irn"}],proposer:{publicKey:l,metadata:this.client.metadata},expiryTimestamp:p,pairingTopic:c},i&&{sessionProperties:i}),{reject:f,resolve:m,done:y}=(0,qe.Wx8)(d,"Proposal expired");this.events.once((0,qe.hEn)("session_connect"),(async({error:e,session:t})=>{if(e)f(e);else if(t){t.self.publicKey=l;const e=Pr(Er({},t),{pairingTopic:h.pairingTopic,requiredNamespaces:h.requiredNamespaces,optionalNamespaces:h.optionalNamespaces});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}}));const g=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:h,throwOnFailedPublish:!0});return await this.setProposal(g,Er({id:g},h)),{uri:o,approval:y}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{await this.isInitialized();try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),e}const{id:t,relayProtocol:n,namespaces:a,sessionProperties:r,sessionConfig:i}=e;let s;try{s=this.client.proposal.get(t)}catch(e){throw this.client.logger.error(`approve() -> proposal.get(${t}) failed`),e}const{pairingTopic:o,proposer:c,requiredNamespaces:u,optionalNamespaces:l}=s,d=await this.client.core.crypto.generateKeyPair(),p=c.publicKey,h=await this.client.core.crypto.generateSharedKey(d,p),f=Er(Er({relay:{protocol:n??"irn"},namespaces:a,controller:{publicKey:d,metadata:this.client.metadata},expiry:(0,qe.Xw0)(fr)},r&&{sessionProperties:r}),i&&{sessionConfig:i});await this.client.core.relayer.subscribe(h);const m=Pr(Er({},f),{topic:h,requiredNamespaces:u,optionalNamespaces:l,pairingTopic:o,acknowledged:!1,self:f.controller,peer:{publicKey:c.publicKey,metadata:c.metadata},controller:d});await this.client.session.set(h,m);try{await this.sendRequest({topic:h,method:"wc_sessionSettle",params:f,throwOnFailedPublish:!0}),await this.sendResult({id:t,topic:o,result:{relay:{protocol:n??"irn"},responderPublicKey:d},throwOnFailedPublish:!0})}catch(e){throw this.client.logger.error(e),this.client.session.delete(h,(0,qe.Hjj)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(h),e}return await this.client.core.pairing.updateMetadata({topic:o,metadata:c.metadata}),await this.client.proposal.delete(t,(0,qe.Hjj)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:o}),await this.setExpiry(h,(0,qe.Xw0)(fr)),{topic:h,acknowledged:()=>Promise.resolve(this.client.session.get(h))}},this.reject=async e=>{await this.isInitialized();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}const{id:t,reason:n}=e;let a;try{a=this.client.proposal.get(t).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${t}) failed`),e}a&&(await this.sendError({id:t,topic:a,error:n,rpcOpts:mr.wc_sessionPropose.reject}),await this.client.proposal.delete(t,(0,qe.Hjj)("USER_DISCONNECTED")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}const{topic:t,namespaces:n}=e,{done:a,resolve:r,reject:i}=(0,qe.Wx8)(),s=$e(),o=et().toString(),c=this.client.session.get(t).namespaces;return this.events.once((0,qe.hEn)("session_update",s),(({error:e})=>{e?i(e):r()})),await this.client.session.update(t,{namespaces:n}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:n},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:o}).catch((e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),i(e)})),{acknowledged:a}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}const{topic:t}=e,n=$e(),{done:a,resolve:r,reject:i}=(0,qe.Wx8)();return this.events.once((0,qe.hEn)("session_extend",n),(({error:e})=>{e?i(e):r()})),await this.setExpiry(t,(0,qe.Xw0)(fr)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:n,throwOnFailedPublish:!0}).catch((e=>{i(e)})),{acknowledged:a}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}const{chainId:t,request:n,topic:a,expiry:r=mr.wc_sessionRequest.req.ttl}=e,i=this.client.session.get(a),s=$e(),o=et().toString(),{done:c,resolve:u,reject:l}=(0,qe.Wx8)(r,"Request expired. Please try again.");return this.events.once((0,qe.hEn)("session_request",s),(({error:e,result:t})=>{e?l(e):u(t)})),await Promise.all([new Promise((async e=>{await this.sendRequest({clientRpcId:s,relayRpcId:o,topic:a,method:"wc_sessionRequest",params:{request:Pr(Er({},n),{expiryTimestamp:(0,qe.Xw0)(r)}),chainId:t},expiry:r,throwOnFailedPublish:!0}).catch((e=>l(e))),this.client.events.emit("session_request_sent",{topic:a,request:n,chainId:t,id:s}),e()})),new Promise((async e=>{var t;if(null==(t=i.sessionConfig)||!t.disableDeepLink){const e=await(0,qe.jTh)(this.client.core.storage,hr);(0,qe.n3s)({id:s,topic:a,wcDeepLink:e})}e()})),c()]).then((e=>e[2]))},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);const{topic:t,response:n}=e,{id:a}=n;pt(n)?await this.sendResult({id:a,topic:t,result:n.result,throwOnFailedPublish:!0}):ht(n)&&await this.sendError({id:a,topic:t,error:n.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}const{topic:t}=e;if(this.client.session.keys.includes(t)){const e=$e(),n=et().toString(),{done:a,resolve:r,reject:i}=(0,qe.Wx8)();this.events.once((0,qe.hEn)("session_ping",e),(({error:e})=>{e?i(e):r()})),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:n}),a()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);const{topic:t,event:n,chainId:a}=e,r=et().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:n,chainId:a},throwOnFailedPublish:!0,relayRpcId:r})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);const{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:(0,qe.Hjj)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else{if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=(0,qe.GuA)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw new Error(e)}await this.client.core.pairing.disconnect({topic:t})}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter((t=>(0,qe.HNf)(t,e)))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);const{chains:t,statement:n="",uri:a,domain:r,nonce:i,type:s,exp:o,nbf:c,methods:u=[],expiry:l}=e,d=[...e.resources||[]],{topic:p,uri:h}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:p,uri:h}});const f=await this.client.core.crypto.generateKeyPair(),m=(0,qe.EN$)(f);if(await Promise.all([this.client.auth.authKeys.set(Ar,{responseTopic:m,publicKey:f}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:p})]),await this.client.core.relayer.subscribe(m),this.client.logger.info(`sending request to new pairing topic: ${p}`),u.length>0){const{namespace:e}=(0,qe._Yb)(t[0]);let n=(0,qe.e8_)(e,"request",u);(0,qe.VBM)(d)&&(n=(0,qe.hVC)(n,d.pop())),d.push(n)}const y=l&&l>mr.wc_sessionAuthenticate.req.ttl?l:mr.wc_sessionAuthenticate.req.ttl,g={authPayload:{type:s??"caip122",chains:t,statement:n,aud:a,domain:r,version:"1",nonce:i,iat:(new Date).toISOString(),exp:o,nbf:c,resources:d},requester:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:(0,qe.Xw0)(y)},b={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:t,methods:[...new Set(["personal_sign",...u])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:p,proposer:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:(0,qe.Xw0)(mr.wc_sessionPropose.req.ttl)},{done:v,resolve:_,reject:A}=(0,qe.Wx8)(y,"Request expired"),w=async({error:e,session:t})=>{if(this.events.off((0,qe.hEn)("session_request",S),I),e)A(e);else if(t){t.self.publicKey=f,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),p&&await this.client.core.pairing.updateMetadata({topic:p,metadata:t.peer.metadata});const e=this.client.session.get(t.topic);await this.deleteProposal(x),_({session:e})}},I=async e=>{if(await this.deletePendingAuthRequest(S,{message:"fulfilled",code:0}),e.error){const t=(0,qe.Hjj)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off((0,qe.hEn)("session_connect"),w),A(e.error.message))}await this.deleteProposal(x),this.events.off((0,qe.hEn)("session_connect"),w);const{cacaos:t,responder:n}=e.result,a=[],r=[];for(const e of t){await(0,qe.IjX)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),A((0,qe.Hjj)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:t}=e,n=(0,qe.VBM)(t.resources),i=[(0,qe.xkc)(t.iss)],s=(0,qe.q_h)(t.iss);if(n){const e=(0,qe.sc_)(n),t=(0,qe.WWN)(n);a.push(...e),i.push(...t)}for(const e of i)r.push(`${e}:${s}`)}const i=await this.client.core.crypto.generateSharedKey(f,n.publicKey);let s;a.length>0&&(s={topic:i,acknowledged:!0,self:{publicKey:f,metadata:this.client.metadata},peer:n,controller:n.publicKey,expiry:(0,qe.Xw0)(fr),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:p,namespaces:(0,qe.Van)([...new Set(a)],[...new Set(r)])},await this.client.core.relayer.subscribe(i),await this.client.session.set(i,s),p&&await this.client.core.pairing.updateMetadata({topic:p,metadata:n.metadata}),s=this.client.session.get(i)),_({auths:t,session:s})},S=$e(),x=$e();this.events.once((0,qe.hEn)("session_connect"),w),this.events.once((0,qe.hEn)("session_request",S),I);try{await Promise.all([this.sendRequest({topic:p,method:"wc_sessionAuthenticate",params:g,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:S}),this.sendRequest({topic:p,method:"wc_sessionPropose",params:b,expiry:mr.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:x})])}catch(e){throw this.events.off((0,qe.hEn)("session_connect"),w),this.events.off((0,qe.hEn)("session_request",S),I),e}return await this.setProposal(x,Er({id:x},b)),await this.setAuthRequest(S,{request:Pr(Er({},g),{verifyContext:{}}),pairingTopic:p}),{uri:h,response:v}},this.approveSessionAuthenticate=async e=>{this.isInitialized();const{id:t,auths:n}=e,a=this.getPendingAuthRequest(t);if(!a)throw new Error(`Could not find pending auth request with id ${t}`);const r=a.requester.publicKey,i=await this.client.core.crypto.generateKeyPair(),s=(0,qe.EN$)(r),o={type:qe.Lp_,receiverPublicKey:r,senderPublicKey:i},c=[],u=[];for(const e of n){if(!await(0,qe.IjX)({cacao:e,projectId:this.client.core.projectId})){const e=(0,qe.Hjj)("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:t,topic:s,error:e,encodeOpts:o}),new Error(e.message)}const{p:n}=e,a=(0,qe.VBM)(n.resources),r=[(0,qe.xkc)(n.iss)],i=(0,qe.q_h)(n.iss);if(a){const e=(0,qe.sc_)(a),t=(0,qe.WWN)(a);c.push(...e),r.push(...t)}for(const e of r)u.push(`${e}:${i}`)}const l=await this.client.core.crypto.generateSharedKey(i,r);let d;return c?.length>0&&(d={topic:l,acknowledged:!0,self:{publicKey:i,metadata:this.client.metadata},peer:{publicKey:r,metadata:a.requester.metadata},controller:r,expiry:(0,qe.Xw0)(fr),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:a.pairingTopic,namespaces:(0,qe.Van)([...new Set(c)],[...new Set(u)])},await this.client.core.relayer.subscribe(l),await this.client.session.set(l,d),await this.client.core.pairing.updateMetadata({topic:a.pairingTopic,metadata:a.requester.metadata})),await this.sendResult({topic:s,id:t,result:{cacaos:n,responder:{publicKey:i,metadata:this.client.metadata}},encodeOpts:o,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(t,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:a.pairingTopic}),{session:d}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();const{id:t,reason:n}=e,a=this.getPendingAuthRequest(t);if(!a)throw new Error(`Could not find pending auth request with id ${t}`);const r=a.requester.publicKey,i=await this.client.core.crypto.generateKeyPair(),s=(0,qe.EN$)(r),o={type:qe.Lp_,receiverPublicKey:r,senderPublicKey:i};await this.sendError({id:t,topic:s,error:n,encodeOpts:o,rpcOpts:mr.wc_sessionAuthenticate.reject}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,(0,qe.Hjj)("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();const{request:t,iss:n}=e;return(0,qe.hwK)(t,n)},this.processRelayMessageCache=()=>{setTimeout((async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{const e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}}),50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{const t=this.client.core.pairing.pairings.get(e.pairingTopic),n=this.client.core.pairing.pairings.getAll().filter((n=>{var a,r;return(null==(a=n.peerMetadata)?void 0:a.url)&&(null==(r=n.peerMetadata)?void 0:r.url)===e.peer.metadata.url&&n.topic&&n.topic!==t.topic}));if(0===n.length)return;this.client.logger.info(`Cleaning up ${n.length} duplicate pairing(s)`),await Promise.all(n.map((e=>this.client.core.pairing.disconnect({topic:e.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var t;const{topic:n,expirerHasDeleted:a=!1,emitEvent:r=!0,id:i=0}=e,{self:s}=this.client.session.get(n);await this.client.core.relayer.unsubscribe(n),await this.client.session.delete(n,(0,qe.Hjj)("USER_DISCONNECTED")),this.addToRecentlyDeleted(n,"session"),this.client.core.crypto.keychain.has(s.publicKey)&&await this.client.core.crypto.deleteKeyPair(s.publicKey),this.client.core.crypto.keychain.has(n)&&await this.client.core.crypto.deleteSymKey(n),a||this.client.core.expirer.del(n),this.client.core.storage.removeItem(hr).catch((e=>this.client.logger.warn(e))),this.getPendingSessionRequests().forEach((e=>{e.topic===n&&this.deletePendingSessionRequest(e.id,(0,qe.Hjj)("USER_DISCONNECTED"))})),n===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=gr),r&&this.client.events.emit("session_delete",{id:i,topic:n})},this.deleteProposal=async(e,t)=>{await Promise.all([this.client.proposal.delete(e,(0,qe.Hjj)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,n=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),n?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((t=>t.id!==e)),n&&(this.sessionRequestQueue.state=gr,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,n=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),n?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,qe.Xw0)(mr.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{const{request:n,pairingTopic:a}=t;this.client.core.expirer.set(e,n.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:n.authPayload,requester:n.requester,expiryTimestamp:n.expiryTimestamp,id:e,pairingTopic:a,verifyContext:n.verifyContext})},this.setPendingSessionRequest=async e=>{const{id:t,topic:n,params:a,verifyContext:r}=e,i=a.request.expiryTimestamp||(0,qe.Xw0)(mr.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,i),await this.client.pendingRequest.set(t,{id:t,topic:n,params:a,verifyContext:r})},this.sendRequest=async e=>{const{topic:t,method:n,params:a,expiry:r,relayRpcId:i,clientRpcId:s,throwOnFailedPublish:o}=e,c=tt(n,a,s);if((0,qe.BdH)()&&vr.includes(n)){const e=(0,qe.ALl)(JSON.stringify(c));this.client.core.verify.register({attestationId:e})}let u;try{u=await this.client.core.crypto.encode(t,c)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${t} failed`),e}const l=mr[n].req;return r&&(l.ttl=r),i&&(l.id=i),this.client.core.history.set(t,c),o?(l.internal=Pr(Er({},l.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(t,u,l)):this.client.core.relayer.publish(t,u,l).catch((e=>this.client.logger.error(e))),c.id},this.sendResult=async e=>{const{id:t,topic:n,result:a,throwOnFailedPublish:r,encodeOpts:i}=e,s=nt(t,a);let o,c;try{o=await this.client.core.crypto.encode(n,s,i)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${n} failed`),e}try{c=await this.client.core.history.get(n,t)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${n}, ${t}) failed`),e}const u=mr[c.request.method].res;r?(u.internal=Pr(Er({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,o,u)):this.client.core.relayer.publish(n,o,u).catch((e=>this.client.logger.error(e))),await this.client.core.history.resolve(s)},this.sendError=async e=>{const{id:t,topic:n,error:a,encodeOpts:r,rpcOpts:i}=e,s=at(t,a);let o,c;try{o=await this.client.core.crypto.encode(n,s,r)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${n} failed`),e}try{c=await this.client.core.history.get(n,t)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${n}, ${t}) failed`),e}const u=i||mr[c.request.method].res;this.client.core.relayer.publish(n,o,u),await this.client.core.history.resolve(s)},this.cleanup=async()=>{const e=[],t=[];this.client.session.getAll().forEach((t=>{let n=!1;(0,qe._dF)(t.expiry)&&(n=!0),this.client.core.crypto.keychain.has(t.topic)||(n=!0),n&&e.push(t.topic)})),this.client.proposal.getAll().forEach((e=>{(0,qe._dF)(e.expiryTimestamp)&&t.push(e.id)})),await Promise.all([...e.map((e=>this.deleteSession({topic:e}))),...t.map((e=>this.deleteProposal(e)))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==br){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=br;const e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=gr}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=async e=>{const{topic:t,payload:n}=e,a=n.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:a}))switch(a){case"wc_sessionPropose":return await this.onSessionProposeRequest(t,n);case"wc_sessionSettle":return await this.onSessionSettleRequest(t,n);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,n);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,n);case"wc_sessionPing":return await this.onSessionPingRequest(t,n);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,n);case"wc_sessionRequest":return await this.onSessionRequest(t,n);case"wc_sessionEvent":return await this.onSessionEventRequest(t,n);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest(t,n);default:return this.client.logger.info(`Unsupported request method ${a}`)}},this.onRelayEventResponse=async e=>{const{topic:t,payload:n}=e,a=(await this.client.core.history.get(t,n.id)).request.method;switch(a){case"wc_sessionPropose":return this.onSessionProposeResponse(t,n);case"wc_sessionSettle":return this.onSessionSettleResponse(t,n);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,n);case"wc_sessionExtend":return this.onSessionExtendResponse(t,n);case"wc_sessionPing":return this.onSessionPingResponse(t,n);case"wc_sessionRequest":return this.onSessionRequestResponse(t,n);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,n);default:return this.client.logger.info(`Unsupported response method ${a}`)}},this.onRelayEventUnknownPayload=e=>{const{topic:t}=e,{message:n}=(0,qe.GuA)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw new Error(n)},this.shouldIgnorePairingRequest=e=>{const{topic:t,requestMethod:n}=e,a=this.expectedPairingMethodMap.get(t);return!(!a||a.includes(n)||!(a.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0))},this.onSessionProposeRequest=async(e,t)=>{const{params:n,id:a}=t;try{this.isValidConnect(Er({},t.params));const r=n.expiryTimestamp||(0,qe.Xw0)(mr.wc_sessionPropose.req.ttl),i=Er({id:a,pairingTopic:e,expiryTimestamp:r},n);await this.setProposal(a,i);const s=(0,qe.ALl)(JSON.stringify(t)),o=await this.getVerifyContext(s,i.proposer.metadata);this.client.events.emit("session_proposal",{id:a,params:i,verifyContext:o})}catch(t){await this.sendError({id:a,topic:e,error:t,rpcOpts:mr.wc_sessionPropose.autoReject}),this.client.logger.error(t)}},this.onSessionProposeResponse=async(e,t)=>{const{id:n}=t;if(pt(t)){const{result:a}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:a});const r=this.client.proposal.get(n);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:r});const i=r.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:i});const s=a.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});const o=await this.client.core.crypto.generateSharedKey(i,s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:o});const c=await this.client.core.relayer.subscribe(o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:e})}else if(ht(t)){await this.client.proposal.delete(n,(0,qe.Hjj)("USER_DISCONNECTED"));const e=(0,qe.hEn)("session_connect");if(0===this.events.listenerCount(e))throw new Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,qe.hEn)("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{const{id:n,params:a}=t;try{this.isValidSessionSettleRequest(a);const{relay:n,controller:r,expiry:i,namespaces:s,sessionProperties:o,sessionConfig:c}=t.params,u=Er(Er({topic:e,relay:n,expiry:i,namespaces:s,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:r.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:r.publicKey,metadata:r.metadata}},o&&{sessionProperties:o}),c&&{sessionConfig:c}),l=(0,qe.hEn)("session_connect");if(0===this.events.listenerCount(l))throw new Error(`emitting ${l} without any listeners 997`);this.events.emit((0,qe.hEn)("session_connect"),{session:u}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{const{id:n}=t;pt(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,qe.hEn)("session_approve",n),{})):ht(t)&&(await this.client.session.delete(e,(0,qe.Hjj)("USER_DISCONNECTED")),this.events.emit((0,qe.hEn)("session_approve",n),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{const{params:n,id:a}=t;try{const t=`${e}_session_update`,r=qe.nyL.get(t);if(r&&this.isRequestOutOfSync(r,a))return this.client.logger.info(`Discarding out of sync request - ${a}`),void this.sendError({id:a,topic:e,error:(0,qe.Hjj)("INVALID_UPDATE_REQUEST")});this.isValidUpdate(Er({topic:e},n));try{qe.nyL.set(t,a),await this.client.session.update(e,{namespaces:n.namespaces}),await this.sendResult({id:a,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw qe.nyL.delete(t),e}this.client.events.emit("session_update",{id:a,topic:e,params:n})}catch(t){await this.sendError({id:a,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{const{id:n}=t,a=(0,qe.hEn)("session_update",n);if(0===this.events.listenerCount(a))throw new Error(`emitting ${a} without any listeners`);pt(t)?this.events.emit((0,qe.hEn)("session_update",n),{}):ht(t)&&this.events.emit((0,qe.hEn)("session_update",n),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{const{id:n}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,qe.Xw0)(fr)),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:n,topic:e})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{const{id:n}=t,a=(0,qe.hEn)("session_extend",n);if(0===this.events.listenerCount(a))throw new Error(`emitting ${a} without any listeners`);pt(t)?this.events.emit((0,qe.hEn)("session_extend",n),{}):ht(t)&&this.events.emit((0,qe.hEn)("session_extend",n),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{const{id:n}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:n,topic:e})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{const{id:n}=t,a=(0,qe.hEn)("session_ping",n);if(0===this.events.listenerCount(a))throw new Error(`emitting ${a} without any listeners`);setTimeout((()=>{pt(t)?this.events.emit((0,qe.hEn)("session_ping",n),{}):ht(t)&&this.events.emit((0,qe.hEn)("session_ping",n),{error:t.error})}),500)},this.onSessionDeleteRequest=async(e,t)=>{const{id:n}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),await Promise.all([new Promise((t=>{this.client.core.relayer.once(na,(async()=>{t(await this.deleteSession({topic:e,id:n}))}))})),this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,qe.Hjj)("USER_DISCONNECTED")})])}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async(e,t)=>{var n;const{id:a,params:r}=t;try{await this.isValidRequest(Er({topic:e},r));const t=(0,qe.ALl)(JSON.stringify(tt("wc_sessionRequest",r,a))),i=this.client.session.get(e),s={id:a,topic:e,params:r,verifyContext:await this.getVerifyContext(t,i.peer.metadata)};await this.setPendingSessionRequest(s),null!=(n=this.client.signConfig)&&n.disableRequestQueue?this.emitSessionRequest(s):(this.addSessionRequestToSessionRequestQueue(s),this.processSessionRequestQueue())}catch(t){await this.sendError({id:a,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionRequestResponse=(e,t)=>{const{id:n}=t,a=(0,qe.hEn)("session_request",n);if(0===this.events.listenerCount(a))throw new Error(`emitting ${a} without any listeners`);pt(t)?this.events.emit((0,qe.hEn)("session_request",n),{result:t.result}):ht(t)&&this.events.emit((0,qe.hEn)("session_request",n),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{const{id:n,params:a}=t;try{const t=`${e}_session_event_${a.event.name}`,r=qe.nyL.get(t);if(r&&this.isRequestOutOfSync(r,n))return void this.client.logger.info(`Discarding out of sync request - ${n}`);this.isValidEmit(Er({topic:e},a)),this.client.events.emit("session_event",{id:n,topic:e,params:a}),qe.nyL.set(t,n)}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{const{id:n}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),pt(t)?this.events.emit((0,qe.hEn)("session_request",n),{result:t.result}):ht(t)&&this.events.emit((0,qe.hEn)("session_request",n),{error:t.error})},this.onSessionAuthenticateRequest=async(e,t)=>{try{const{requester:n,authPayload:a,expiryTimestamp:r}=t.params,i=(0,qe.ALl)(JSON.stringify(t)),s=await this.getVerifyContext(i,this.client.metadata),o={requester:n,pairingTopic:e,id:t.id,authPayload:a,verifyContext:s,expiryTimestamp:r};await this.setAuthRequest(t.id,{request:o,pairingTopic:e}),this.client.events.emit("session_authenticate",{topic:e,params:t.params,id:t.id,verifyContext:s})}catch(n){this.client.logger.error(n);const a=t.params.requester.publicKey,r=await this.client.core.crypto.generateKeyPair(),i={type:qe.Lp_,receiverPublicKey:a,senderPublicKey:r};await this.sendError({id:t.id,topic:e,error:n,encodeOpts:i,rpcOpts:mr.wc_sessionAuthenticate.autoReject})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=gr,this.processSessionRequestQueue()}),(0,L.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{const n=this.client.core.history.pending;n.length>0&&n.filter((t=>t.topic===e&&"wc_sessionRequest"===t.request.method)).forEach((e=>{const n=e.request.id,a=(0,qe.hEn)("session_request",n);if(0===this.events.listenerCount(a))throw new Error(`emitting ${a} without any listeners`);this.events.emit((0,qe.hEn)("session_request",e.request.id),{error:t})}))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===br)return void this.client.logger.info("session request queue is already active.");const e=this.sessionRequestQueue.queue[0];if(e)try{this.sessionRequestQueue.state=br,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}else this.client.logger.info("session request queue is empty.")},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;const t=this.client.proposal.getAll().find((t=>t.pairingTopic===e.topic));t&&this.onSessionProposeRequest(e.topic,tt("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id))},this.isValidConnect=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw new Error(t)}const{pairingTopic:t,requiredNamespaces:n,optionalNamespaces:a,sessionProperties:r,relays:i}=e;if((0,qe.b07)(t)||await this.isValidPairingTopic(t),!(0,qe.V9G)(i,!0)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`connect() relays: ${i}`);throw new Error(e)}!(0,qe.b07)(n)&&0!==(0,qe.aF0)(n)&&this.validateNamespaces(n,"requiredNamespaces"),!(0,qe.b07)(a)&&0!==(0,qe.aF0)(a)&&this.validateNamespaces(a,"optionalNamespaces"),(0,qe.b07)(r)||this.validateSessionProps(r,"sessionProperties")},this.validateNamespaces=(e,t)=>{const n=(0,qe.esh)(e,"connect()",t);if(n)throw new Error(n.message)},this.isValidApprove=async e=>{if(!(0,qe.TeY)(e))throw new Error((0,qe.GuA)("MISSING_OR_INVALID",`approve() params: ${e}`).message);const{id:t,namespaces:n,relayProtocol:a,sessionProperties:r}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);const i=this.client.proposal.get(t),s=(0,qe.FiO)(n,"approve()");if(s)throw new Error(s.message);const o=(0,qe.XqR)(i.requiredNamespaces,n,"approve()");if(o)throw new Error(o.message);if(!(0,qe.Qhg)(a,!0)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`approve() relayProtocol: ${a}`);throw new Error(e)}(0,qe.b07)(r)||this.validateSessionProps(r,"sessionProperties")},this.isValidReject=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`reject() params: ${e}`);throw new Error(t)}const{id:t,reason:n}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,qe.X3c)(n)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(n)}`);throw new Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw new Error(t)}const{relay:t,controller:n,namespaces:a,expiry:r}=e;if(!(0,qe.kuU)(t)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(e)}const i=(0,qe.tk0)(n,"onSessionSettleRequest()");if(i)throw new Error(i.message);const s=(0,qe.FiO)(a,"onSessionSettleRequest()");if(s)throw new Error(s.message);if((0,qe._dF)(r)){const{message:e}=(0,qe.GuA)("EXPIRED","onSessionSettleRequest()");throw new Error(e)}},this.isValidUpdate=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`update() params: ${e}`);throw new Error(t)}const{topic:t,namespaces:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const a=this.client.session.get(t),r=(0,qe.FiO)(n,"update()");if(r)throw new Error(r.message);const i=(0,qe.XqR)(a.requiredNamespaces,n,"update()");if(i)throw new Error(i.message)},this.isValidExtend=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`extend() params: ${e}`);throw new Error(t)}const{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`request() params: ${e}`);throw new Error(t)}const{topic:t,request:n,chainId:a,expiry:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);const{namespaces:i}=this.client.session.get(t);if(!(0,qe.tLy)(i,a)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`request() chainId: ${a}`);throw new Error(e)}if(!(0,qe.iV1)(n)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`request() ${JSON.stringify(n)}`);throw new Error(e)}if(!(0,qe.oKp)(i,a,n.method)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`request() method: ${n.method}`);throw new Error(e)}if(r&&!(0,qe.Hbs)(r,yr)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`request() expiry: ${r}. Expiry must be a number (in seconds) between ${yr.min} and ${yr.max}`);throw new Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`respond() params: ${e}`);throw new Error(t)}const{topic:n,response:a}=e;try{await this.isValidSessionTopic(n)}catch(n){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),n}if(!(0,qe.M8n)(a)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(e)}},this.isValidPing=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`ping() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`emit() params: ${e}`);throw new Error(t)}const{topic:t,event:n,chainId:a}=e;await this.isValidSessionTopic(t);const{namespaces:r}=this.client.session.get(t);if(!(0,qe.tLy)(r,a)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`emit() chainId: ${a}`);throw new Error(e)}if(!(0,qe.FR8)(n)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`);throw new Error(e)}if(!(0,qe.z2N)(r,a,n.name)){const{message:e}=(0,qe.GuA)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`);throw new Error(e)}},this.isValidDisconnect=async e=>{if(!(0,qe.TeY)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw new Error(t)}const{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{const{chains:t,uri:n,domain:a,nonce:r}=e;if(!Array.isArray(t)||0===t.length)throw new Error("chains is required and must be a non-empty array");if(!(0,qe.Qhg)(n,!1))throw new Error("uri is required parameter");if(!(0,qe.Qhg)(a,!1))throw new Error("domain is required parameter");if(!(0,qe.Qhg)(r,!1))throw new Error("nonce is required parameter");if([...new Set(t.map((e=>(0,qe._Yb)(e).namespace)))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:i}=(0,qe._Yb)(t[0]);if("eip155"!==i)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(e,t)=>{const n={verified:{verifyUrl:t.verifyUrl||Aa,validation:"UNKNOWN",origin:t.url||""}};try{const a=await this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});a&&(n.verified.origin=a.origin,n.verified.isScam=a.isScam,n.verified.validation=a.origin===new URL(t.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.info(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(n)}`),n},this.validateSessionProps=(e,t)=>{Object.values(e).forEach((e=>{if(!(0,qe.Qhg)(e,!1)){const{message:n}=(0,qe.GuA)("MISSING_OR_INVALID",`${t} must be in Record format. Received: ${JSON.stringify(e)}`);throw new Error(n)}}))},this.getPendingAuthRequest=e=>{const t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0;const t=this.recentlyDeletedLimit/2;for(const n of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(n)}}},this.checkRecentlyDeleted=e=>{const t=this.recentlyDeletedMap.get(e);if(t){const{message:n}=(0,qe.GuA)("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw new Error(n)}}}async isInitialized(){if(!this.initialized){const{message:e}=(0,qe.GuA)("NOT_INITIALIZED",this.name);throw new Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on($n,(e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)}))}async onRelayMessage(e){const{topic:t,message:n,attestation:a}=e,{publicKey:r}=this.client.auth.authKeys.keys.includes(Ar)?this.client.auth.authKeys.get(Ar):{responseTopic:void 0,publicKey:void 0},i=await this.client.core.crypto.decode(t,n,{receiverPublicKey:r});try{lt(i)?(this.client.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i,attestation:a})):dt(i)?(await this.client.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.client.core.history.delete(t,i.id)):this.onRelayEventUnknownPayload({topic:t,payload:i})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(ba,(async e=>{const{topic:t,id:n}=(0,qe.c82)(e.target);return n&&this.client.pendingRequest.keys.includes(n)?await this.deletePendingSessionRequest(n,(0,qe.GuA)("EXPIRED"),!0):n&&this.client.auth.requests.keys.includes(n)?await this.deletePendingAuthRequest(n,(0,qe.GuA)("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n})))}))}registerPairingEvents(){this.client.core.pairing.events.on(da,(e=>this.onPairingCreated(e))),this.client.core.pairing.events.on(pa,(e=>{this.addToRecentlyDeleted(e.topic,"pairing")}))}isValidPairingTopic(e){if(!(0,qe.Qhg)(e,!1)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if((0,qe._dF)(this.client.core.pairing.pairings.get(e).expiry)){const{message:t}=(0,qe.GuA)("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!(0,qe.Qhg)(e,!1)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if((0,qe._dF)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});const{message:t}=(0,qe.GuA)("EXPIRED",`session topic: ${e}`);throw new Error(t)}if(!this.client.core.crypto.keychain.has(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if((0,qe.Qhg)(e,!1)){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}{const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}this.isValidPairingTopic(e)}}async isValidProposalId(e){if(!(0,qe.Alu)(e)){const{message:t}=(0,qe.GuA)("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){const{message:t}=(0,qe.GuA)("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if((0,qe._dF)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);const{message:t}=(0,qe.GuA)("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}}class Br extends Ja{constructor(e,t){super(e,t,"proposal",dr),this.core=e,this.logger=t}}class Rr extends Ja{constructor(e,t){super(e,t,"session",dr),this.core=e,this.logger=t}}class Nr extends Ja{constructor(e,t){super(e,t,"request",dr,(e=>e.id)),this.core=e,this.logger=t}}class Mr extends Ja{constructor(e,t){super(e,t,"authKeys",_r,(()=>Ar)),this.core=e,this.logger=t}}class Dr extends Ja{constructor(e,t){super(e,t,"pairingTopics",_r),this.core=e,this.logger=t}}class Lr extends Ja{constructor(e,t){super(e,t,"requests",_r,(e=>e.id)),this.core=e,this.logger=t}}class Vr{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new Mr(this.core,this.logger),this.pairingTopics=new Dr(this.core,this.logger),this.requests=new Lr(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class Ur extends _e{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=pr,this.events=new a.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||pr,this.metadata=e?.metadata||(0,qe.lFF)(),this.signConfig=e?.signConfig;const t=typeof e?.logger<"u"&&"string"!=typeof e?.logger?e.logger:q()(se({level:e?.logger||"error"}));this.core=e?.core||new ur(e),this.logger=ce(t,this.name),this.session=new Rr(this.core,this.logger),this.proposal=new Br(this.core,this.logger),this.pendingRequest=new Nr(this.core,this.logger),this.engine=new Or(this),this.auth=new Vr(this.core,this.logger)}static async init(e){const t=new Ur(e);return await t.initialize(),t}get context(){return oe(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}},23493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(14979);a.__exportStar(n(65793),t),a.__exportStar(n(38364),t)},65793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},38364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},91315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(14979);a.__exportStar(n(33661),t),a.__exportStar(n(77048),t),a.__exportStar(n(17009),t),a.__exportStar(n(23493),t)},17009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(14979).__exportStar(n(2634),t)},2634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},46950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const a=n(23493);t.toMiliseconds=function(e){return e*a.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/a.ONE_THOUSAND)}},73298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},33661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(14979);a.__exportStar(n(73298),t),a.__exportStar(n(46950),t)},77048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if(void 0!==t.elapsed)throw new Error(`Watch already stopped for label: ${e}`);const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if(void 0===t)throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},14979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>_,__asyncGenerator:()=>v,__asyncValues:()=>A,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>x,__classPrivateFieldSet:()=>C,__createBinding:()=>p,__decorate:()=>o,__exportStar:()=>h,__extends:()=>r,__generator:()=>d,__importDefault:()=>S,__importStar:()=>I,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>g,__values:()=>f});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function r(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;o--)(r=e[o])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,a){t(n,a,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}function d(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function y(){for(var e=[],t=0;t1||o(e,t)}))})}function o(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){o("next",e)}function u(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function _(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:b(e[a](t)),done:"return"===a}:r?r(t):t}:r}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){!function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)}(a,r,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},83386:(e,t,n)=>{"use strict";n.d(t,{bEt:()=>Jr,nyL:()=>gs,Lp_:()=>ei,Van:()=>Ni,Xw0:()=>ae,Wx8:()=>Y,e8_:()=>qr,K3g:()=>Q,x0t:()=>li,YcA:()=>pi,ovp:()=>oi,iui:()=>hi,wa2:()=>di,hEn:()=>ie,gOF:()=>te,hwK:()=>Ur,jUZ:()=>W,ADD:()=>ee,QJh:()=>Bi,TZl:()=>ii,two:()=>si,lFF:()=>z,w47:()=>q,WWN:()=>Wr,jTh:()=>ce,q_h:()=>Lr,GuA:()=>Li,sc_:()=>Gr,xkc:()=>Dr,VBM:()=>Xr,aa1:()=>vi,n6V:()=>bi,Hjj:()=>Vi,n3s:()=>oe,EN$:()=>ci,ALl:()=>ui,BdH:()=>K,XqR:()=>ds,_dF:()=>re,Lln:()=>H,sc7:()=>fs,CTo:()=>Wi,lVv:()=>F,HNf:()=>qi,mr0:()=>Xi,V7m:()=>yi,b07:()=>Fi,OP1:()=>Ui,tk0:()=>Zi,X3c:()=>rs,FR8:()=>os,Alu:()=>ns,FiO:()=>$i,tLy:()=>cs,z2N:()=>ls,oKp:()=>us,aF0:()=>Hi,TeY:()=>as,kuU:()=>es,V9G:()=>ts,iV1:()=>is,Hbs:()=>hs,esh:()=>Qi,M8n:()=>ss,Qhg:()=>Ki,AYU:()=>Gi,h0Y:()=>Z,hVC:()=>zr,PUk:()=>J,_Yb:()=>E,c82:()=>ne,wYp:()=>Pi,uym:()=>ms,C5G:()=>fi,AwN:()=>mi,IjX:()=>Vr});var a=n(39907),r=function(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;rt in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))R.call(t,n)&&M(e,n,t[n]);if(B)for(var n of B(t))N.call(t,n)&&M(e,n,t[n]);return e};const L="ReactNative",V={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},U="js";function H(){return typeof C<"u"&&typeof C.versions<"u"&&typeof C.versions.node<"u"}function F(){return!(0,y.getDocument)()&&!!(0,y.getNavigator)()&&navigator.product===L}function K(){return!H()&&!!(0,y.getNavigator)()&&!!(0,y.getDocument)()}function j(){return F()?V.reactNative:H()?V.node:K()?V.browser:V.unknown}function q(){var e;try{return F()&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Application)<"u"?null==(e=n.g.Application)?void 0:e.applicationId:void 0}catch{return}}function z(){return(0,g.g)()||{name:"",description:"",url:"",icons:[""]}}function G(e,t,r){const i=function(){if(j()===V.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?f(navigator.userAgent):void 0!==a&&a.version?new s(a.version.slice(1)):null;var t;if(null===e)return"unknown";const r=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[r,e.name,e.version].join("-"):[r,e.version].join("-")}(),o=function(){var e;const t=j();return t===V.browser?[t,(null==(e=(0,y.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[U,r].join("-"),i,o].join("/")}function W({protocol:e,version:t,relayUrl:n,sdkVersion:a,auth:r,projectId:i,useOnCloseEvent:s,bundleId:o}){const c=n.split("?"),u={auth:r,ua:G(e,t,a),projectId:i,useOnCloseEvent:s||void 0,origin:o||void 0},l=function(e,t){let n=b.parse(e);return n=D(D({},n),t),b.stringify(n)}(c[1]||"",u);return c[0]+"?"+l}function X(e,t){return e.filter((e=>t.includes(e))).length===e.length}function Z(e){return Object.fromEntries(e.entries())}function J(e){return new Map(Object.entries(e))}function Y(e=m.FIVE_MINUTES,t){const n=(0,m.toMiliseconds)(e||m.FIVE_MINUTES);let a,r,i;return{resolve:e=>{i&&a&&(clearTimeout(i),a(e))},reject:e=>{i&&r&&(clearTimeout(i),r(e))},done:()=>new Promise(((e,s)=>{i=setTimeout((()=>{s(new Error(t))}),n),a=e,r=s}))}}function Q(e,t,n){return new Promise((async(a,r)=>{const i=setTimeout((()=>r(new Error(n))),t);try{a(await e)}catch(e){r(e)}clearTimeout(i)}))}function $(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function ee(e){return $("topic",e)}function te(e){return $("id",e)}function ne(e){const[t,n]=e.split(":"),a={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)a.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);a.id=Number(n)}return a}function ae(e,t){return(0,m.fromMiliseconds)((t||Date.now())+(0,m.toMiliseconds)(e))}function re(e){return Date.now()>=(0,m.toMiliseconds)(e)}function ie(e,t){return`${e}${t?`:${t}`:""}`}function se(e=[],t=[]){return[...new Set([...e,...t])]}async function oe({id:e,topic:t,wcDeepLink:a}){try{if(!a)return;const r="string"==typeof a?JSON.parse(a):a;let i=r?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const s=`${i}/wc?requestId=${e}&sessionTopic=${t}`,o=j();o===V.browser?s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===V.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(s)}catch(e){console.error(e)}}async function ce(e,t){try{return await e.getItem(t)||(K()?localStorage.getItem(t):void 0)}catch(e){console.error(e)}}var ue,le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof n.g<"u"?n.g:typeof self<"u"?self:{},de={exports:{}};ue=de,function(){var e="input is invalid type",t="object"==typeof window,n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof C&&C.versions&&C.versions.node?n=le:a&&(n=self);var r=!n.JS_SHA3_NO_COMMON_JS&&ue.exports,i=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),o=[4,1024,262144,67108864],c=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],h={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),i&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var f=function(e,t,n){return function(a){return new P(e,t,e).update(a)[n]()}},m=function(e,t,n){return function(a,r){return new P(e,t,r).update(a)[n]()}},y=function(e,t,n){return function(t,a,r,i){return A["cshake"+e].update(t,a,r,i)[n]()}},g=function(e,t,n){return function(t,a,r,i){return A["kmac"+e].update(t,a,r,i)[n]()}},b=function(e,t,n,a){for(var r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var a=0;a<50;++a)this.s[a]=0}function O(e,t,n){P.call(this,e,t,n)}P.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var n,a=typeof t;if("string"!==a){if("object"!==a)throw new Error(e);if(null===t)throw new Error(e);if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var r,s,o=this.blocks,u=this.byteCount,l=t.length,d=this.blockCount,p=0,h=this.s;p>2]|=t[p]<>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(o[r>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=u){for(this.start=r-u,this.block=o[d],r=0;r>=8);n>0;)r.unshift(n),n=255&(e>>=8),++a;return t?r.push(a):r.unshift(a),this.update(r),r.length},P.prototype.encodeString=function(t){var n,a=typeof t;if("string"!==a){if("object"!==a)throw new Error(e);if(null===t)throw new Error(e);if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}var r=0,s=t.length;if(n)r=s;else for(var o=0;o=57344?r+=3:(c=65536+((1023&c)<<10|1023&t.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(t),r},P.prototype.bytepad=function(e,t){for(var n=this.encode(t),a=0;a>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+s[15&e]+s[e>>12&15]+s[e>>8&15]+s[e>>20&15]+s[e>>16&15]+s[e>>28&15]+s[e>>24&15];o%t==0&&(B(n),i=0)}return r&&(e=n[i],c+=s[e>>4&15]+s[15&e],r>1&&(c+=s[e>>12&15]+s[e>>8&15]),r>2&&(c+=s[e>>20&15]+s[e>>16&15])),c},P.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,a=this.outputBlocks,r=this.extraBytes,i=0,s=0,o=this.outputBits>>3;e=r?new ArrayBuffer(a+1<<2):new ArrayBuffer(o);for(var c=new Uint32Array(e);s>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;o%n==0&&B(a)}return i&&(e=o<<2,t=a[s],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},O.prototype=new P,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var B=function(e){var t,n,a,r,i,s,o,c,l,d,p,h,f,m,y,g,b,v,_,A,w,I,S,x,C,k,T,E,P,O,B,R,N,M,D,L,V,U,H,F,K,j,q,z,G,W,X,Z,J,Y,Q,$,ee,te,ne,ae,re,ie,se,oe,ce,ue,le;for(a=0;a<48;a+=2)r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|o>>>31),n=(f=e[9]^e[19]^e[29]^e[39]^e[49])^(o<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=r^(c<<1|l>>>31),n=i^(l<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(d<<1|p>>>31),n=o^(p<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(h<<1|f>>>31),n=l^(f<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(r<<1|i>>>31),n=p^(i<<1|r>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,E=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,oe=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,j=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,M=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,V=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,C=e[7]<<28|e[6]>>>4,ae=e[17]<<23|e[16]>>>9,re=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,A=e[36]<<21|e[37]>>>11,w=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,k=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,se=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,K=e[39]<<8|e[38]>>>24,I=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=y^~b&_,e[10]=x^~k&E,e[11]=C^~T&P,e[20]=M^~L&U,e[21]=D^~V&H,e[30]=z^~W&Z,e[31]=G^~X&J,e[40]=te^~ae&ie,e[41]=ne^~re&se,e[2]=g^~v&A,e[3]=b^~_&w,e[12]=k^~E&O,e[13]=T^~P&B,e[22]=L^~U&F,e[23]=V^~H&K,e[32]=W^~Z&Y,e[33]=X^~J&Q,e[42]=ae^~ie&oe,e[43]=re^~se&ce,e[4]=v^~A&I,e[5]=_^~w&S,e[14]=E^~O&R,e[15]=P^~B&N,e[24]=U^~F&j,e[25]=H^~K&q,e[34]=Z^~Y&$,e[35]=J^~Q&ee,e[44]=ie^~oe&ue,e[45]=se^~ce&le,e[6]=A^~I&m,e[7]=w^~S&y,e[16]=O^~R&x,e[17]=B^~N&C,e[26]=F^~j&M,e[27]=K^~q&D,e[36]=Y^~$&z,e[37]=Q^~ee&G,e[46]=oe^~ue&te,e[47]=ce^~le&ne,e[8]=I^~m&g,e[9]=S^~y&b,e[18]=R^~x&k,e[19]=N^~C&T,e[28]=j^~M&L,e[29]=q^~D&V,e[38]=$^~z&W,e[39]=ee^~G&X,e[48]=ue^~te&ae,e[49]=le^~ne&re,e[0]^=u[a],e[1]^=u[a+1]};if(r)ue.exports=A;else for(I=0;I{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch{e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var ve,_e;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(ve||(ve={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(_e||(_e={}));const Ae="0123456789abcdef";class we{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==me[n]&&this.throwArgumentError("invalid log level name","logLevel",e),!(ye>me[n])&&console.log.apply(console,t)}debug(...e){this._log(we.levels.DEBUG,e)}info(...e){this._log(we.levels.INFO,e)}warn(...e){this._log(we.levels.WARNING,e)}makeError(e,t,n){if(fe)return this.makeError("censored error",t,{});t||(t=we.errors.UNKNOWN_ERROR),n||(n={});const a=[];Object.keys(n).forEach((e=>{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e>4],n+=Ae[15&t[e]];a.push(e+"=Uint8Array(0x"+n+")")}else a.push(e+"="+JSON.stringify(t))}catch{a.push(e+"="+JSON.stringify(n[e].toString()))}})),a.push(`code=${t}`),a.push(`version=${this.version}`);const r=e;let i="";switch(t){case _e.NUMERIC_FAULT:{i="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":i+="-"+t;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case _e.CALL_EXCEPTION:case _e.INSUFFICIENT_FUNDS:case _e.MISSING_NEW:case _e.NONCE_EXPIRED:case _e.REPLACEMENT_UNDERPRICED:case _e.TRANSACTION_REPLACED:case _e.UNPREDICTABLE_GAS_LIMIT:i=t}i&&(e+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),a.length&&(e+=" ("+a.join(", ")+")");const s=new Error(e);return s.reason=r,s.code=t,Object.keys(n).forEach((function(e){s[e]=n[e]})),s}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,we.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,a){e||this.throwError(t,n,a)}assertArgument(e,t,n,a){e||this.throwArgumentError(t,n,a)}checkNormalize(e){be&&this.throwError("platform missing String.prototype.normalize",we.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:be})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,we.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,we.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",et&&this.throwError("too many arguments"+n,we.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",we.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",we.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",we.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return ge||(ge=new we("logger/5.7.0")),ge}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",we.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),he){if(!e)return;this.globalLogger().throwError("error censorship permanent",we.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}fe=!!e,he=!!t}static setLogLevel(e){const t=me[e.toLowerCase()];null!=t?ye=t:we.globalLogger().warn("invalid log level - "+e)}static from(e){return new we(e)}}we.errors=_e,we.levels=ve;const Ie=new we("bytes/5.7.0");function Se(e){return!!e.toHexString}function xe(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return xe(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ce(e){return"number"==typeof e&&e==e&&e%1==0}function ke(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!Ce(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function Te(e,t){if(t||(t={}),"number"==typeof e){Ie.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),xe(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Se(e)&&(e=e.toHexString()),Ee(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":Ie.throwArgumentError("hex data is odd-length","value",e));const a=[];for(let e=0;e>4]+Pe[15&a]}return t}return Ie.throwArgumentError("invalid hexlify value","value",e)}function Be(e,t,n){return"string"!=typeof e?e=Oe(e):(!Ee(e)||e.length%2)&&Ie.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function Re(e,t){for("string"!=typeof e?e=Oe(e):Ee(e)||Ie.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Ie.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function Ne(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(function(e){return Ee(e)&&!(e.length%2)||ke(e)}(e)){let n=Te(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=Oe(n.slice(0,32)),t.s=Oe(n.slice(32,64))):65===n.length?(t.r=Oe(n.slice(0,32)),t.s=Oe(n.slice(32,64)),t.v=n[64]):Ie.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Ie.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=Oe(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=function(e,t){(e=Te(e)).length>t&&Ie.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),xe(n)}(Te(t._vs),32);t._vs=Oe(n);const a=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=a:t.recoveryParam!==a&&Ie.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const r=Oe(n);null==t.s?t.s=r:t.s!==r&&Ie.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Ie.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const n=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==n&&Ie.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&Ee(t.r)?t.r=Re(t.r,32):Ie.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&Ee(t.s)?t.s=Re(t.s,32):Ie.throwArgumentError("signature missing or invalid s","signature",e);const n=Te(t.s);n[0]>=128&&Ie.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const a=Oe(n);t._vs&&(Ee(t._vs)||Ie.throwArgumentError("signature invalid _vs","signature",e),t._vs=Re(t._vs,32)),null==t._vs?t._vs=a:t._vs!==a&&Ie.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function Me(e){return"0x"+pe.keccak_256(Te(e))}var De={exports:{}},Le=function(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})})),n}(Object.freeze({__proto__:null,default:{}}));!function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function r(e,t,n){if(r.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(n=t,t=10),this._init(e||0,t||10,n||"be"))}var i;"object"==typeof e?e.exports=r:t.BN=r,r.BN=r,r.wordSize=26;try{i=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:Le.Buffer}catch{}function s(e,t){var a=e.charCodeAt(t);return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void n(!1,"Invalid character in "+e)}function o(e,t,n){var a=s(e,n);return n-1>=t&&(a|=s(e,n-1)<<4),a}function c(e,t,a,r){for(var i=0,s=0,o=Math.min(e.length,a),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s0?e:t},r.min=function(e,t){return e.cmp(t)<0?e:t},r.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)s=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[i]|=s<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===a)for(r=0,i=0;r>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this._strip()},r.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a=t;a-=2)r=o(e,t,a)<=18?(i-=18,s+=1,this.words[s]|=r>>>26):i+=8;else for(a=(e.length-t)%2==0?t+1:t;a=18?(i-=18,s+=1,this.words[s]|=r>>>26):i+=8;this._strip()},r.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var a=0,r=1;r<=67108863;r*=t)a++;a--,r=r/t|0;for(var i=e.length-n,s=i%a,o=Math.min(i,i-s)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{r.prototype.inspect=l}else r.prototype.inspect=l;function l(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var a=e.length+t.length|0;n.length=a,a=a-1|0;var r=0|e.words[0],i=0|t.words[0],s=r*i,o=67108863&s,c=s/67108864|0;n.words[0]=o;for(var u=1;u>>26,d=67108863&c,p=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=p;h++){var f=u-h|0;l+=(s=(r=0|e.words[f])*(i=0|t.words[h])+d)/67108864|0,d=67108863&s}n.words[u]=0|d,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}r.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var r=0,i=0,s=0;s>>24-r&16777215,(r+=2)>=26&&(r-=26,s--),a=0!==i||s!==this.length-1?d[6-c.length]+c+a:c+a}for(0!==i&&(a=i.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var u=p[e],l=h[e];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(l).toString(e);a=(f=f.idivn(l)).isZero()?m+a:d[u-m.length]+m+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}n(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},r.prototype.toJSON=function(){return this.toString(16,2)},i&&(r.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),r.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},r.prototype.toArrayLike=function(e,t,a){this._strip();var r=this.byteLength(),i=a||Math.max(1,r);n(r<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,r),s},r.prototype._toArrayLikeLE=function(e,t){for(var n=0,a=0,r=0,i=0;r>8&255),n>16&255),6===i?(n>24&255),a=0,i=0):(a=s>>>24,i+=2)}if(n=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===i?(n>=0&&(e[n--]=s>>24&255),a=0,i=0):(a=s>>>24,i+=2)}if(n>=0)for(e[n--]=a;n>=0;)e[n--]=0},Math.clz32?r.prototype._countBits=function(e){return 32-Math.clz32(e)}:r.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},r.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},r.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},r.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},r.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},r.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},r.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var a=0;ae.length?this.clone().ixor(e):e.clone().ixor(this)},r.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},r.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-a),this._strip()},r.prototype.notn=function(e){return this.clone().inotn(e)},r.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var a=e/26|0,r=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(n=this,a=e):(n=e,a=this);for(var r=0,i=0;i>>26;for(;0!==r&&i>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},r.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,a,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,a=e):(n=e,a=this);for(var i=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==i&&s>26,this.words[s]=67108863&t;if(0===i&&s>>13,h=0|s[1],f=8191&h,m=h>>>13,y=0|s[2],g=8191&y,b=y>>>13,v=0|s[3],_=8191&v,A=v>>>13,w=0|s[4],I=8191&w,S=w>>>13,x=0|s[5],C=8191&x,k=x>>>13,T=0|s[6],E=8191&T,P=T>>>13,O=0|s[7],B=8191&O,R=O>>>13,N=0|s[8],M=8191&N,D=N>>>13,L=0|s[9],V=8191&L,U=L>>>13,H=0|o[0],F=8191&H,K=H>>>13,j=0|o[1],q=8191&j,z=j>>>13,G=0|o[2],W=8191&G,X=G>>>13,Z=0|o[3],J=8191&Z,Y=Z>>>13,Q=0|o[4],$=8191&Q,ee=Q>>>13,te=0|o[5],ne=8191&te,ae=te>>>13,re=0|o[6],ie=8191&re,se=re>>>13,oe=0|o[7],ce=8191&oe,ue=oe>>>13,le=0|o[8],de=8191&le,pe=le>>>13,he=0|o[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(a=Math.imul(d,F))|0)+((8191&(r=(r=Math.imul(d,K))+Math.imul(p,F)|0))<<13)|0;u=((i=Math.imul(p,K))+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,a=Math.imul(f,F),r=(r=Math.imul(f,K))+Math.imul(m,F)|0,i=Math.imul(m,K);var ge=(u+(a=a+Math.imul(d,q)|0)|0)+((8191&(r=(r=r+Math.imul(d,z)|0)+Math.imul(p,q)|0))<<13)|0;u=((i=i+Math.imul(p,z)|0)+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,a=Math.imul(g,F),r=(r=Math.imul(g,K))+Math.imul(b,F)|0,i=Math.imul(b,K),a=a+Math.imul(f,q)|0,r=(r=r+Math.imul(f,z)|0)+Math.imul(m,q)|0,i=i+Math.imul(m,z)|0;var be=(u+(a=a+Math.imul(d,W)|0)|0)+((8191&(r=(r=r+Math.imul(d,X)|0)+Math.imul(p,W)|0))<<13)|0;u=((i=i+Math.imul(p,X)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,a=Math.imul(_,F),r=(r=Math.imul(_,K))+Math.imul(A,F)|0,i=Math.imul(A,K),a=a+Math.imul(g,q)|0,r=(r=r+Math.imul(g,z)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,z)|0,a=a+Math.imul(f,W)|0,r=(r=r+Math.imul(f,X)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,X)|0;var ve=(u+(a=a+Math.imul(d,J)|0)|0)+((8191&(r=(r=r+Math.imul(d,Y)|0)+Math.imul(p,J)|0))<<13)|0;u=((i=i+Math.imul(p,Y)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,a=Math.imul(I,F),r=(r=Math.imul(I,K))+Math.imul(S,F)|0,i=Math.imul(S,K),a=a+Math.imul(_,q)|0,r=(r=r+Math.imul(_,z)|0)+Math.imul(A,q)|0,i=i+Math.imul(A,z)|0,a=a+Math.imul(g,W)|0,r=(r=r+Math.imul(g,X)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,X)|0,a=a+Math.imul(f,J)|0,r=(r=r+Math.imul(f,Y)|0)+Math.imul(m,J)|0,i=i+Math.imul(m,Y)|0;var _e=(u+(a=a+Math.imul(d,$)|0)|0)+((8191&(r=(r=r+Math.imul(d,ee)|0)+Math.imul(p,$)|0))<<13)|0;u=((i=i+Math.imul(p,ee)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,a=Math.imul(C,F),r=(r=Math.imul(C,K))+Math.imul(k,F)|0,i=Math.imul(k,K),a=a+Math.imul(I,q)|0,r=(r=r+Math.imul(I,z)|0)+Math.imul(S,q)|0,i=i+Math.imul(S,z)|0,a=a+Math.imul(_,W)|0,r=(r=r+Math.imul(_,X)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,X)|0,a=a+Math.imul(g,J)|0,r=(r=r+Math.imul(g,Y)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Y)|0,a=a+Math.imul(f,$)|0,r=(r=r+Math.imul(f,ee)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0;var Ae=(u+(a=a+Math.imul(d,ne)|0)|0)+((8191&(r=(r=r+Math.imul(d,ae)|0)+Math.imul(p,ne)|0))<<13)|0;u=((i=i+Math.imul(p,ae)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,a=Math.imul(E,F),r=(r=Math.imul(E,K))+Math.imul(P,F)|0,i=Math.imul(P,K),a=a+Math.imul(C,q)|0,r=(r=r+Math.imul(C,z)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,z)|0,a=a+Math.imul(I,W)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,X)|0,a=a+Math.imul(_,J)|0,r=(r=r+Math.imul(_,Y)|0)+Math.imul(A,J)|0,i=i+Math.imul(A,Y)|0,a=a+Math.imul(g,$)|0,r=(r=r+Math.imul(g,ee)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,a=a+Math.imul(f,ne)|0,r=(r=r+Math.imul(f,ae)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,ae)|0;var we=(u+(a=a+Math.imul(d,ie)|0)|0)+((8191&(r=(r=r+Math.imul(d,se)|0)+Math.imul(p,ie)|0))<<13)|0;u=((i=i+Math.imul(p,se)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,a=Math.imul(B,F),r=(r=Math.imul(B,K))+Math.imul(R,F)|0,i=Math.imul(R,K),a=a+Math.imul(E,q)|0,r=(r=r+Math.imul(E,z)|0)+Math.imul(P,q)|0,i=i+Math.imul(P,z)|0,a=a+Math.imul(C,W)|0,r=(r=r+Math.imul(C,X)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,X)|0,a=a+Math.imul(I,J)|0,r=(r=r+Math.imul(I,Y)|0)+Math.imul(S,J)|0,i=i+Math.imul(S,Y)|0,a=a+Math.imul(_,$)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,ee)|0,a=a+Math.imul(g,ne)|0,r=(r=r+Math.imul(g,ae)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,ae)|0,a=a+Math.imul(f,ie)|0,r=(r=r+Math.imul(f,se)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,se)|0;var Ie=(u+(a=a+Math.imul(d,ce)|0)|0)+((8191&(r=(r=r+Math.imul(d,ue)|0)+Math.imul(p,ce)|0))<<13)|0;u=((i=i+Math.imul(p,ue)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,a=Math.imul(M,F),r=(r=Math.imul(M,K))+Math.imul(D,F)|0,i=Math.imul(D,K),a=a+Math.imul(B,q)|0,r=(r=r+Math.imul(B,z)|0)+Math.imul(R,q)|0,i=i+Math.imul(R,z)|0,a=a+Math.imul(E,W)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,X)|0,a=a+Math.imul(C,J)|0,r=(r=r+Math.imul(C,Y)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,Y)|0,a=a+Math.imul(I,$)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(S,$)|0,i=i+Math.imul(S,ee)|0,a=a+Math.imul(_,ne)|0,r=(r=r+Math.imul(_,ae)|0)+Math.imul(A,ne)|0,i=i+Math.imul(A,ae)|0,a=a+Math.imul(g,ie)|0,r=(r=r+Math.imul(g,se)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,se)|0,a=a+Math.imul(f,ce)|0,r=(r=r+Math.imul(f,ue)|0)+Math.imul(m,ce)|0,i=i+Math.imul(m,ue)|0;var Se=(u+(a=a+Math.imul(d,de)|0)|0)+((8191&(r=(r=r+Math.imul(d,pe)|0)+Math.imul(p,de)|0))<<13)|0;u=((i=i+Math.imul(p,pe)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,a=Math.imul(V,F),r=(r=Math.imul(V,K))+Math.imul(U,F)|0,i=Math.imul(U,K),a=a+Math.imul(M,q)|0,r=(r=r+Math.imul(M,z)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,z)|0,a=a+Math.imul(B,W)|0,r=(r=r+Math.imul(B,X)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,X)|0,a=a+Math.imul(E,J)|0,r=(r=r+Math.imul(E,Y)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,Y)|0,a=a+Math.imul(C,$)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,a=a+Math.imul(I,ne)|0,r=(r=r+Math.imul(I,ae)|0)+Math.imul(S,ne)|0,i=i+Math.imul(S,ae)|0,a=a+Math.imul(_,ie)|0,r=(r=r+Math.imul(_,se)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,se)|0,a=a+Math.imul(g,ce)|0,r=(r=r+Math.imul(g,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,a=a+Math.imul(f,de)|0,r=(r=r+Math.imul(f,pe)|0)+Math.imul(m,de)|0,i=i+Math.imul(m,pe)|0;var xe=(u+(a=a+Math.imul(d,fe)|0)|0)+((8191&(r=(r=r+Math.imul(d,me)|0)+Math.imul(p,fe)|0))<<13)|0;u=((i=i+Math.imul(p,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,a=Math.imul(V,q),r=(r=Math.imul(V,z))+Math.imul(U,q)|0,i=Math.imul(U,z),a=a+Math.imul(M,W)|0,r=(r=r+Math.imul(M,X)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,X)|0,a=a+Math.imul(B,J)|0,r=(r=r+Math.imul(B,Y)|0)+Math.imul(R,J)|0,i=i+Math.imul(R,Y)|0,a=a+Math.imul(E,$)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(P,$)|0,i=i+Math.imul(P,ee)|0,a=a+Math.imul(C,ne)|0,r=(r=r+Math.imul(C,ae)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,ae)|0,a=a+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,se)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,se)|0,a=a+Math.imul(_,ce)|0,r=(r=r+Math.imul(_,ue)|0)+Math.imul(A,ce)|0,i=i+Math.imul(A,ue)|0,a=a+Math.imul(g,de)|0,r=(r=r+Math.imul(g,pe)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,pe)|0;var Ce=(u+(a=a+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;u=((i=i+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(V,W),r=(r=Math.imul(V,X))+Math.imul(U,W)|0,i=Math.imul(U,X),a=a+Math.imul(M,J)|0,r=(r=r+Math.imul(M,Y)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,Y)|0,a=a+Math.imul(B,$)|0,r=(r=r+Math.imul(B,ee)|0)+Math.imul(R,$)|0,i=i+Math.imul(R,ee)|0,a=a+Math.imul(E,ne)|0,r=(r=r+Math.imul(E,ae)|0)+Math.imul(P,ne)|0,i=i+Math.imul(P,ae)|0,a=a+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,se)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,se)|0,a=a+Math.imul(I,ce)|0,r=(r=r+Math.imul(I,ue)|0)+Math.imul(S,ce)|0,i=i+Math.imul(S,ue)|0,a=a+Math.imul(_,de)|0,r=(r=r+Math.imul(_,pe)|0)+Math.imul(A,de)|0,i=i+Math.imul(A,pe)|0;var ke=(u+(a=a+Math.imul(g,fe)|0)|0)+((8191&(r=(r=r+Math.imul(g,me)|0)+Math.imul(b,fe)|0))<<13)|0;u=((i=i+Math.imul(b,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,a=Math.imul(V,J),r=(r=Math.imul(V,Y))+Math.imul(U,J)|0,i=Math.imul(U,Y),a=a+Math.imul(M,$)|0,r=(r=r+Math.imul(M,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,a=a+Math.imul(B,ne)|0,r=(r=r+Math.imul(B,ae)|0)+Math.imul(R,ne)|0,i=i+Math.imul(R,ae)|0,a=a+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,se)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,se)|0,a=a+Math.imul(C,ce)|0,r=(r=r+Math.imul(C,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,a=a+Math.imul(I,de)|0,r=(r=r+Math.imul(I,pe)|0)+Math.imul(S,de)|0,i=i+Math.imul(S,pe)|0;var Te=(u+(a=a+Math.imul(_,fe)|0)|0)+((8191&(r=(r=r+Math.imul(_,me)|0)+Math.imul(A,fe)|0))<<13)|0;u=((i=i+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(V,$),r=(r=Math.imul(V,ee))+Math.imul(U,$)|0,i=Math.imul(U,ee),a=a+Math.imul(M,ne)|0,r=(r=r+Math.imul(M,ae)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,ae)|0,a=a+Math.imul(B,ie)|0,r=(r=r+Math.imul(B,se)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,se)|0,a=a+Math.imul(E,ce)|0,r=(r=r+Math.imul(E,ue)|0)+Math.imul(P,ce)|0,i=i+Math.imul(P,ue)|0,a=a+Math.imul(C,de)|0,r=(r=r+Math.imul(C,pe)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,pe)|0;var Ee=(u+(a=a+Math.imul(I,fe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(S,fe)|0))<<13)|0;u=((i=i+Math.imul(S,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,a=Math.imul(V,ne),r=(r=Math.imul(V,ae))+Math.imul(U,ne)|0,i=Math.imul(U,ae),a=a+Math.imul(M,ie)|0,r=(r=r+Math.imul(M,se)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,se)|0,a=a+Math.imul(B,ce)|0,r=(r=r+Math.imul(B,ue)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,ue)|0,a=a+Math.imul(E,de)|0,r=(r=r+Math.imul(E,pe)|0)+Math.imul(P,de)|0,i=i+Math.imul(P,pe)|0;var Pe=(u+(a=a+Math.imul(C,fe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(k,fe)|0))<<13)|0;u=((i=i+Math.imul(k,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(V,ie),r=(r=Math.imul(V,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),a=a+Math.imul(M,ce)|0,r=(r=r+Math.imul(M,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,a=a+Math.imul(B,de)|0,r=(r=r+Math.imul(B,pe)|0)+Math.imul(R,de)|0,i=i+Math.imul(R,pe)|0;var Oe=(u+(a=a+Math.imul(E,fe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(P,fe)|0))<<13)|0;u=((i=i+Math.imul(P,me)|0)+(r>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,a=Math.imul(V,ce),r=(r=Math.imul(V,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),a=a+Math.imul(M,de)|0,r=(r=r+Math.imul(M,pe)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,pe)|0;var Be=(u+(a=a+Math.imul(B,fe)|0)|0)+((8191&(r=(r=r+Math.imul(B,me)|0)+Math.imul(R,fe)|0))<<13)|0;u=((i=i+Math.imul(R,me)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,a=Math.imul(V,de),r=(r=Math.imul(V,pe))+Math.imul(U,de)|0,i=Math.imul(U,pe);var Re=(u+(a=a+Math.imul(M,fe)|0)|0)+((8191&(r=(r=r+Math.imul(M,me)|0)+Math.imul(D,fe)|0))<<13)|0;u=((i=i+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(u+(a=Math.imul(V,fe))|0)+((8191&(r=(r=Math.imul(V,me))+Math.imul(U,fe)|0))<<13)|0;return u=((i=Math.imul(U,me))+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=ge,c[2]=be,c[3]=ve,c[4]=_e,c[5]=Ae,c[6]=we,c[7]=Ie,c[8]=Se,c[9]=xe,c[10]=Ce,c[11]=ke,c[12]=Te,c[13]=Ee,c[14]=Pe,c[15]=Oe,c[16]=Be,c[17]=Re,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function y(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var a=0,r=0,i=0;i>>26)|0)>>>26,s&=67108863}n.words[i]=o,a=s,s=r}return 0!==a?n.words[i]=a:n.length--,n._strip()}function g(e,t,n){return y(e,t,n)}Math.imul||(m=f),r.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?f(this,e,t):n<1024?y(this,e,t):g(this,e,t)},r.prototype.mul=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},r.prototype.mulf=function(e){var t=new r(null);return t.words=new Array(this.length+e.length),g(this,e,t)},r.prototype.imul=function(e){return this.clone().mulTo(e,this)},r.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var a=0,r=0;r>=26,a+=i/67108864|0,a+=s>>>26,this.words[r]=67108863&s}return 0!==a&&(this.words[r]=a,this.length++),t?this.ineg():this},r.prototype.muln=function(e){return this.clone().imuln(e)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>r&1}return t}(e);if(0===t.length)return new r(1);for(var n=this,a=0;a=0);var t,a=e%26,r=(e-a)/26,i=67108863>>>26-a<<26-a;if(0!==a){var s=0;for(t=0;t>>26-a}s&&(this.words[t]=s,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var i=e%26,s=Math.min((e-i)/26,this.length),o=67108863^67108863>>>i<s)for(this.length-=s,u=0;u=0&&(0!==l||u>=r);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&o}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(e,t,a){return n(0===this.negative),this.iushrn(e,t,a)},r.prototype.shln=function(e){return this.clone().ishln(e)},r.prototype.ushln=function(e){return this.clone().iushln(e)},r.prototype.shrn=function(e){return this.clone().ishrn(e)},r.prototype.ushrn=function(e){return this.clone().iushrn(e)},r.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,r=1<=0);var t=e%26,a=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},r.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[r+a]=67108863&s}for(;r>26,this.words[r+a]=67108863&s;if(0===o)return this._strip();for(n(-1===o),o=0,r=0;r>26,this.words[r]=67108863&s;return this.negative=1,this._strip()},r.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),i=e,s=0|i.words[i.length-1];0!=(n=26-this._countBits(s))&&(i=i.ushln(n),a.iushln(n),s=0|i.words[i.length-1]);var o,c=a.length-i.length;if("mod"!==t){(o=new r(null)).length=c+1,o.words=new Array(o.length);for(var u=0;u=0;d--){var p=67108864*(0|a.words[i.length+d])+(0|a.words[i.length+d-1]);for(p=Math.min(p/s|0,67108863),a._ishlnsubmul(i,p,d);0!==a.negative;)p--,a.negative=0,a._ishlnsubmul(i,1,d),a.isZero()||(a.negative^=1);o&&(o.words[d]=p)}return o&&o._strip(),a._strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:o||null,mod:a}},r.prototype.divmod=function(e,t,a){return n(!e.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),a&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),a&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new r(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new r(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new r(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,o},r.prototype.div=function(e){return this.divmod(e,"div",!1).div},r.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},r.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},r.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,a=e.ushrn(1),r=e.andln(1),i=n.cmp(a);return i<0||1===r&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},r.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var a=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(a*r+(0|this.words[i]))%e;return t?-r:r},r.prototype.modn=function(e){return this.modrn(e)},r.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var a=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*a;this.words[r]=i/e|0,a=i%e}return this._strip(),t?this.ineg():this},r.prototype.divn=function(e){return this.clone().idivn(e)},r.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new r(1),s=new r(0),o=new r(0),c=new r(1),u=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++u;for(var l=a.clone(),d=t.clone();!t.isZero();){for(var p=0,h=1;!(t.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(d)),i.iushrn(1),s.iushrn(1);for(var f=0,m=1;!(a.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(a.iushrn(f);f-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(l),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(o),s.isub(c)):(a.isub(t),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:a.iushln(u)}},r.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,a=this,i=e.clone();a=0!==a.negative?a.umod(e):a.clone();for(var s=new r(1),o=new r(0),c=i.clone();a.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;!(a.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(a.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,p=1;!(i.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(i.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);a.cmp(i)>=0?(a.isub(i),s.isub(o)):(i.isub(a),o.isub(s))}return(t=0===a.cmpn(1)?s:o).cmpn(0)<0&&t.iadd(e),t},r.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var a=0;t.isEven()&&n.isEven();a++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=t.cmp(n);if(r<0){var i=t;t=n,n=i}else if(0===r||0===n.cmpn(1))break;t.isub(n)}return n.iushln(a)},r.prototype.invm=function(e){return this.egcd(e).a.umod(e)},r.prototype.isEven=function(){return!(1&this.words[0])},r.prototype.isOdd=function(){return!(1&~this.words[0])},r.prototype.andln=function(e){return this.words[0]&e},r.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,a=(e-t)/26,r=1<>>26,o&=67108863,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;n--){var a=0|this.words[n],r=0|e.words[n];if(a!==r){ar&&(t=1);break}}return t},r.prototype.gtn=function(e){return 1===this.cmpn(e)},r.prototype.gt=function(e){return 1===this.cmp(e)},r.prototype.gten=function(e){return this.cmpn(e)>=0},r.prototype.gte=function(e){return this.cmp(e)>=0},r.prototype.ltn=function(e){return-1===this.cmpn(e)},r.prototype.lt=function(e){return-1===this.cmp(e)},r.prototype.lten=function(e){return this.cmpn(e)<=0},r.prototype.lte=function(e){return this.cmp(e)<=0},r.prototype.eqn=function(e){return 0===this.cmpn(e)},r.prototype.eq=function(e){return 0===this.cmp(e)},r.red=function(e){return new S(e)},r.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},r.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(e){return this.red=e,this},r.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},r.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},r.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},r.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},r.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},r.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},r.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},r.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},r.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new r(t,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=r._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new r(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var a=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(_,v),_.prototype.split=function(e,t){for(var n=4194303,a=Math.min(e.length,9),r=0;r>>22,i=s}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=r,t=a}return 0!==t&&(e.words[e.length++]=t),e},r._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(!(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var a=this.m.add(new r(1)).iushrn(2);return this.pow(e,a)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new r(1).toRed(this),c=o.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new r(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),p=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=s;0!==h.cmp(o);){for(var m=h,y=0;0!==m.cmp(o);y++)m=m.redSqr();n(y=0;a--){for(var u=t.words[a],l=c-1;l>=0;l--){var d=u>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==s?(s<<=1,s|=d,(4==++o||0===a&&0===l)&&(i=this.mul(i,n[s]),o=0,s=0)):o=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},r.mont=function(e){return new x(e)},a(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(a).iushrn(this.shift),i=r;return r.cmp(this.m)>=0?i=r.isub(this.m):r.cmpn(0)<0&&(i=r.iadd(this.m)),i._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new r(0)._forceRed(this);var n=e.mul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(a).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,le)}(De);var Ve=De.exports;const Ue="bignumber/5.7.0";var He=Ve.BN;const Fe=new we(Ue),Ke={},je=9007199254740991;let qe=!1;class ze{constructor(e,t){e!==Ke&&Fe.throwError("cannot call constructor directly; use BigNumber.from",we.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return We(Xe(this).fromTwos(e))}toTwos(e){return We(Xe(this).toTwos(e))}abs(){return"-"===this._hex[0]?ze.from(this._hex.substring(1)):this}add(e){return We(Xe(this).add(Xe(e)))}sub(e){return We(Xe(this).sub(Xe(e)))}div(e){return ze.from(e).isZero()&&Ze("division-by-zero","div"),We(Xe(this).div(Xe(e)))}mul(e){return We(Xe(this).mul(Xe(e)))}mod(e){const t=Xe(e);return t.isNeg()&&Ze("division-by-zero","mod"),We(Xe(this).umod(t))}pow(e){const t=Xe(e);return t.isNeg()&&Ze("negative-power","pow"),We(Xe(this).pow(t))}and(e){const t=Xe(e);return(this.isNegative()||t.isNeg())&&Ze("unbound-bitwise-result","and"),We(Xe(this).and(t))}or(e){const t=Xe(e);return(this.isNegative()||t.isNeg())&&Ze("unbound-bitwise-result","or"),We(Xe(this).or(t))}xor(e){const t=Xe(e);return(this.isNegative()||t.isNeg())&&Ze("unbound-bitwise-result","xor"),We(Xe(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Ze("negative-width","mask"),We(Xe(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Ze("negative-width","shl"),We(Xe(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Ze("negative-width","shr"),We(Xe(this).shrn(e))}eq(e){return Xe(this).eq(Xe(e))}lt(e){return Xe(this).lt(Xe(e))}lte(e){return Xe(this).lte(Xe(e))}gt(e){return Xe(this).gt(Xe(e))}gte(e){return Xe(this).gte(Xe(e))}isNegative(){return"-"===this._hex[0]}isZero(){return Xe(this).isZero()}toNumber(){try{return Xe(this).toNumber()}catch{Ze("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Fe.throwError("this platform does not support BigInt",we.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?qe||(qe=!0,Fe.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Fe.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",we.errors.UNEXPECTED_ARGUMENT,{}):Fe.throwError("BigNumber.toString does not accept parameters",we.errors.UNEXPECTED_ARGUMENT,{})),Xe(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ze)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new ze(Ke,Ge(e)):e.match(/^-?[0-9]+$/)?new ze(Ke,Ge(new He(e))):Fe.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&Ze("underflow","BigNumber.from",e),(e>=je||e<=-je)&&Ze("overflow","BigNumber.from",e),ze.from(String(e));const t=e;if("bigint"==typeof t)return ze.from(t.toString());if(ke(t))return ze.from(Oe(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return ze.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Ee(e)||"-"===e[0]&&Ee(e.substring(1))))return ze.from(e)}return Fe.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Ge(e){if("string"!=typeof e)return Ge(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&Fe.throwArgumentError("invalid hex","value",e),"0x00"===(e=Ge(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function We(e){return ze.from(Ge(e))}function Xe(e){const t=ze.from(e).toHexString();return"-"===t[0]?new He("-"+t.substring(3),16):new He(t.substring(2),16)}function Ze(e,t,n){const a={fault:e,operation:t};return null!=n&&(a.value=n),Fe.throwError(e,we.errors.NUMERIC_FAULT,a)}const Je=new we(Ue),Ye={},Qe=ze.from(0),$e=ze.from(-1);function et(e,t,n,a){const r={fault:t,operation:n};return void 0!==a&&(r.value=a),Je.throwError(e,we.errors.NUMERIC_FAULT,r)}let tt="0";for(;tt.length<256;)tt+=tt;function nt(e){if("number"!=typeof e)try{e=ze.from(e).toNumber()}catch{}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+tt.substring(0,e):Je.throwArgumentError("invalid decimal size","decimals",e)}function at(e,t){null==t&&(t=0);const n=nt(t),a=(e=ze.from(e)).lt(Qe);a&&(e=e.mul($e));let r=e.mod(n).toString();for(;r.length2&&Je.throwArgumentError("too many decimal points","value",e);let i=r[0],s=r[1];for(i||(i="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>n.length-1&&et("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?a:(typeof e[t]!==n&&Je.throwArgumentError("invalid fixed format ("+t+" not "+n+")","format."+t,e[t]),e[t]);t=r("signed","boolean",t),n=r("width","number",n),a=r("decimals","number",a)}return n%8&&Je.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),a>80&&Je.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new it(Ye,t,n,a)}}class st{constructor(e,t,n,a){e!==Ye&&Je.throwError("cannot use FixedNumber constructor; use FixedNumber.from",we.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Je.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=rt(this._value,this.format.decimals),n=rt(e._value,e.format.decimals);return st.fromValue(t.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=rt(this._value,this.format.decimals),n=rt(e._value,e.format.decimals);return st.fromValue(t.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=rt(this._value,this.format.decimals),n=rt(e._value,e.format.decimals);return st.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=rt(this._value,this.format.decimals),n=rt(e._value,e.format.decimals);return st.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=st.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(ot.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=st.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(ot.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&Je.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const n=st.from("1"+tt.substring(0,e),this.format),a=ct.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){return null==e?this._hex:(e%8&&Je.throwArgumentError("invalid byte width","width",e),Re(ze.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return st.fromString(this._value,e)}static fromValue(e,t,n){return null==n&&null!=t&&!function(e){return null!=e&&(ze.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Ee(e)||"bigint"==typeof e||ke(e))}(t)&&(n=t,t=null),null==t&&(t=0),null==n&&(n="fixed"),st.fromString(at(e,t),it.from(n))}static fromString(e,t){null==t&&(t="fixed");const n=it.from(t),a=rt(e,n.decimals);!n.signed&&a.lt(Qe)&&et("unsigned value cannot be negative","overflow","value",e);let r=null;n.signed?r=a.toTwos(n.width).toHexString():(r=a.toHexString(),r=Re(r,n.width/8));const i=at(a,n.decimals);return new st(Ye,r,i,n)}static fromBytes(e,t){null==t&&(t="fixed");const n=it.from(t);if(Te(e).length>n.width/8)throw new Error("overflow");let a=ze.from(e);n.signed&&(a=a.fromTwos(n.width));const r=a.toTwos((n.signed?0:1)+n.width).toHexString(),i=at(a,n.decimals);return new st(Ye,r,i,n)}static from(e,t){if("string"==typeof e)return st.fromString(e,t);if(ke(e))return st.fromBytes(e,t);try{return st.fromValue(e,0,t)}catch(e){if(e.code!==we.errors.INVALID_ARGUMENT)throw e}return Je.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const ot=st.from(1),ct=st.from("0.5"),ut=new we("strings/5.7.0");var lt,dt;function pt(e,t,n,a,r){if(e===dt.BAD_PREFIX||e===dt.UNEXPECTED_CONTINUE){let e=0;for(let a=t+1;a>6==2;a++)e++;return e}return e===dt.OVERRUN?n.length-t-1:0}function ht(e,t=lt.current){t!=lt.current&&(ut.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t>6|192),n.push(63&a|128);else if(55296==(64512&a)){t++;const r=e.charCodeAt(t);if(t>=e.length||56320!=(64512&r))throw new Error("invalid utf-8 string");const i=65536+((1023&a)<<10)+(1023&r);n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(63&i|128)}else n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)}return Te(n)}function ft(e,t){t||(t=function(e){return[parseInt(e,16)]});let n=0,a={};return e.split(",").forEach((e=>{let r=e.split(":");n+=parseInt(r[0],16),a[n]=t(r[1])})),a}function mt(e){let t=0;return e.split(",").map((e=>{let n=e.split("-");1===n.length?n[1]="0":""===n[1]&&(n[1]="1");let a=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:a,h:t}}))}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(lt||(lt={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(dt||(dt={})),Object.freeze({error:function(e,t,n,a,r){return ut.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:pt,replace:function(e,t,n,a,r){return e===dt.OVERLONG?(a.push(r),0):(a.push(65533),pt(e,t,n))}}),mt("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),ft("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),ft("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),ft("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let n=0;n0&&Array.isArray(e)?r(e,t-1):n.push(e)}))};return r(e,t),n}function bt(e){return 1&e?~e>>1:e>>1}function vt(e,t){let n=Array(e);for(let a=0,r=-1;at[e])):n}function wt(e,t,n){let a=Array(e).fill(void 0).map((()=>[]));for(let r=0;ra[t].push(e)));return a}function It(e,t){let n=1+t(),a=t(),r=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(n)}return t}(t);return gt(wt(r.length,1+e,t).map(((e,t)=>{const i=e[0],s=e.slice(1);return Array(r[t]).fill(void 0).map(((e,t)=>{let r=t*a;return[i+t*n,s.map((e=>e+r))]}))})))}function St(e,t){return wt(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const xt=function(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let a=n(),r=1,i=[0,1];for(let e=1;e>--c&1}const d=Math.pow(2,31),p=d>>>1,h=p>>1,f=d-1;let m=0;for(let e=0;e<31;e++)m=m<<1|l();let y=[],g=0,b=d;for(;;){let e=Math.floor(((m-g+1)*r-1)/b),t=0,n=a;for(;n-t>1;){let a=t+n>>>1;e>>1|l(),s=s<<1^p,o=(o^p)<<1|p|1;g=s,b=1+o-s}let v=a-4;return y.map((t=>{switch(t-v){case 3:return v+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return v+256+(e[o++]<<8|e[o++]);case 1:return v+e[o++];default:return t-1}}))}(e))}(function(e){e=atob(e);const t=[];for(let n=0;ne-t));!function n(){let a=[];for(;;){let r=At(e,t);if(0==r.length)break;a.push({set:new Set(r),node:n()})}a.sort(((e,t)=>t.set.size-e.set.size));let r=e(),i=r%3;r=r/3|0;let s=!!(1&r);return r>>=1,{branches:a,valid:i,fe0f:s,save:1==r,check:2==r}}()}(xt),new we(yt),new Uint8Array(32).fill(0);const Ct="Ethereum Signed Message:\n";function kt(e){return"string"==typeof e&&(e=ht(e)),Me(function(e){const t=e.map((e=>Te(e))),n=t.reduce(((e,t)=>e+t.length),0),a=new Uint8Array(n);return t.reduce(((e,t)=>(a.set(t,e),e+t.length)),0),xe(a)}([ht(Ct),ht(String(e.length)),e]))}new we("rlp/5.7.0");const Tt=new we("address/5.7.0");function Et(e){Ee(e,20)||Tt.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const a=Te(Me(n));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&a[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const Pt={};for(let e=0;e<10;e++)Pt[String(e)]=String(e);for(let e=0;e<26;e++)Pt[String.fromCharCode(65+e)]=String(10+e);const Ot=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function Bt(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}new we("properties/5.7.0"),new we(yt),new Uint8Array(32).fill(0),ze.from(-1);const Rt=ze.from(0),Nt=ze.from(1);ze.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Re(Nt.toHexString(),32),Re(Rt.toHexString(),32);var Mt={},Dt={},Lt=Vt;function Vt(e,t){if(!e)throw new Error(t||"Assertion failed")}Vt.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var Ut={exports:{}};"function"==typeof Object.create?Ut.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ut.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var Ht=Lt,Ft=Ut.exports;function Kt(e,t){return!(55296!=(64512&e.charCodeAt(t))||t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function jt(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function qt(e){return 1===e.length?"0"+e:e}function zt(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}Dt.inherits=Ft,Dt.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r>6|192,n[a++]=63&i|128):Kt(e,r)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),n[a++]=i>>18|240,n[a++]=i>>12&63|128,n[a++]=i>>6&63|128,n[a++]=63&i|128):(n[a++]=i>>12|224,n[a++]=i>>6&63|128,n[a++]=63&i|128)}else for(r=0;r>>0}return i},Dt.split32=function(e,t){for(var n=new Array(4*e.length),a=0,r=0;a>>24,n[r+1]=i>>>16&255,n[r+2]=i>>>8&255,n[r+3]=255&i):(n[r+3]=i>>>24,n[r+2]=i>>>16&255,n[r+1]=i>>>8&255,n[r]=255&i)}return n},Dt.rotr32=function(e,t){return e>>>t|e<<32-t},Dt.rotl32=function(e,t){return e<>>32-t},Dt.sum32=function(e,t){return e+t>>>0},Dt.sum32_3=function(e,t,n){return e+t+n>>>0},Dt.sum32_4=function(e,t,n,a){return e+t+n+a>>>0},Dt.sum32_5=function(e,t,n,a,r){return e+t+n+a+r>>>0},Dt.sum64=function(e,t,n,a){var r=e[t],i=a+e[t+1]>>>0,s=(i>>0,e[t+1]=i},Dt.sum64_hi=function(e,t,n,a){return(t+a>>>0>>0},Dt.sum64_lo=function(e,t,n,a){return t+a>>>0},Dt.sum64_4_hi=function(e,t,n,a,r,i,s,o){var c=0,u=t;return c+=(u=u+a>>>0)>>0)>>0)>>0},Dt.sum64_4_lo=function(e,t,n,a,r,i,s,o){return t+a+i+o>>>0},Dt.sum64_5_hi=function(e,t,n,a,r,i,s,o,c,u){var l=0,d=t;return l+=(d=d+a>>>0)>>0)>>0)>>0)>>0},Dt.sum64_5_lo=function(e,t,n,a,r,i,s,o,c,u){return t+a+i+o+u>>>0},Dt.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},Dt.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},Dt.shr64_hi=function(e,t,n){return e>>>n},Dt.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var Gt={},Wt=Dt,Xt=Lt;function Zt(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Gt.BlockHash=Zt,Zt.prototype.update=function(e,t){if(e=Wt.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=Wt.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[r++]=e>>>16&255,a[r++]=e>>>8&255,a[r++]=255&e}else for(a[r++]=255&e,a[r++]=e>>>8&255,a[r++]=e>>>16&255,a[r++]=e>>>24&255,a[r++]=0,a[r++]=0,a[r++]=0,a[r++]=0,i=8;i>>3},Yt.g1_256=function(e){return Qt(e,17)^Qt(e,19)^e>>>10};var nn=Dt,an=Gt,rn=Yt,sn=nn.rotl32,on=nn.sum32,cn=nn.sum32_5,un=rn.ft_1,ln=an.BlockHash,dn=[1518500249,1859775393,2400959708,3395469782];function pn(){if(!(this instanceof pn))return new pn;ln.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}nn.inherits(pn,ln);var hn=pn;pn.blockSize=512,pn.outSize=160,pn.hmacStrength=80,pn.padLength=64,pn.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;athis.blockSize&&(e=(new this.Hash).update(e).digest()),Ba(e.length<=this.blockSize);for(var t=e.length;t>8,s=255&r;i?n.push(i,s):n.push(s)}return n},n.zero2=a,n.toHex=r,n.encode=function(e,t){return"hex"===t?r(e):e}})),Ua=Ma((function(e,t){var n=t;n.assert=Da,n.toArray=Va.toArray,n.zero2=Va.zero2,n.toHex=Va.toHex,n.encode=Va.encode,n.getNAF=function(e,t,n){var a=new Array(Math.max(e.bitLength(),n)+1);a.fill(0);for(var r=1<(r>>1)-1?(r>>1)-c:c,i.isubn(o)):o=0,a[s]=o,i.iushrn(1)}return a},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var a,r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var s,o,c=e.andln(3)+r&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),s=1&c?3!=(a=e.andln(7)+r&7)&&5!==a||2!==u?c:-c:0,n[0].push(s),o=1&u?3!=(a=t.andln(7)+i&7)&&5!==a||2!==c?u:-u:0,n[1].push(o),2*r===s+1&&(r=1-r),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var a="_"+t;e.prototype[t]=function(){return void 0!==this[a]?this[a]:this[a]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new Ve(e,"hex","le")}})),Ha=Ua.getNAF,Fa=Ua.getJSF,Ka=Ua.assert;function ja(e,t){this.type=e,this.p=new Ve(t.p,16),this.red=t.prime?Ve.red(t.prime):Ve.mont(this.p),this.zero=new Ve(0).toRed(this.red),this.one=new Ve(1).toRed(this.red),this.two=new Ve(2).toRed(this.red),this.n=t.n&&new Ve(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var qa=ja;function za(e,t){this.curve=e,this.type=t,this.precomputed=null}ja.prototype.point=function(){throw new Error("Not implemented")},ja.prototype.validate=function(){throw new Error("Not implemented")},ja.prototype._fixedNafMul=function(e,t){Ka(e.precomputed);var n=e._getDoubles(),a=Ha(t,1,this._bitLength),r=(1<=i;c--)s=(s<<1)+a[c];o.push(s)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=r;d>0;d--){for(i=0;i=0;o--){for(var c=0;o>=0&&0===i[o];o--)c++;if(o>=0&&c++,s=s.dblp(c),o<0)break;var u=i[o];Ka(0!==u),s="affine"===e.type?u>0?s.mixedAdd(r[u-1>>1]):s.mixedAdd(r[-u-1>>1].neg()):u>0?s.add(r[u-1>>1]):s.add(r[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},ja.prototype._wnafMulAdd=function(e,t,n,a,r){var i,s,o,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,d=0;for(i=0;i=1;i-=2){var h=i-1,f=i;if(1===c[h]&&1===c[f]){var m=[t[h],null,null,t[f]];0===t[h].y.cmp(t[f].y)?(m[1]=t[h].add(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg())):0===t[h].y.cmp(t[f].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].add(t[f].neg())):(m[1]=t[h].toJ().mixedAdd(t[f]),m[2]=t[h].toJ().mixedAdd(t[f].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=Fa(n[h],n[f]);for(d=Math.max(g[0].length,d),l[h]=new Array(d),l[f]=new Array(d),s=0;s=0;i--){for(var w=0;i>=0;){var I=!0;for(s=0;s=0&&w++,_=_.dblp(w),i<0)break;for(s=0;s0?o=u[s][S-1>>1]:S<0&&(o=u[s][-S-1>>1].neg()),_="affine"===o.type?_.mixedAdd(o):_.add(o))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},za.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,r=0;r=0&&(i=t,s=n),a.negative&&(a=a.neg(),r=r.neg()),i.negative&&(i=i.neg(),s=s.neg()),[{a,b:r},{a:i,b:s}]},Xa.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],r=a.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),s=r.mul(n.a),o=i.mul(a.a),c=r.mul(n.b),u=i.mul(a.b);return{k1:e.sub(s).sub(o),k2:c.add(u).neg()}},Xa.prototype.pointFromX=function(e,t){(e=new Ve(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(0!==a.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var r=a.fromRed().isOdd();return(t&&!r||!t&&r)&&(a=a.redNeg()),this.point(e,a)},Xa.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return 0===n.redSqr().redISub(r).cmpn(0)},Xa.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,r=this._endoWnafT2,i=0;i":""},Ja.prototype.isInfinity=function(){return this.inf},Ja.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)},Ja.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),r=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),i=r.redSqr().redISub(this.x.redAdd(this.x)),s=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)},Ja.prototype.getX=function(){return this.x.fromRed()},Ja.prototype.getY=function(){return this.y.fromRed()},Ja.prototype.mul=function(e){return e=new Ve(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Ja.prototype.mulAdd=function(e,t,n){var a=[this,t],r=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,r):this.curve._wnafMulAdd(1,a,r,2)},Ja.prototype.jmulAdd=function(e,t,n){var a=[this,t],r=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,r,!0):this.curve._wnafMulAdd(1,a,r,2,!0)},Ja.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Ja.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t},Ja.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ga(Ya,qa.BasePoint),Xa.prototype.jpoint=function(e,t,n){return new Ya(this,e,t,n)},Ya.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)},Ya.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ya.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),r=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(n.redMul(this.z)),o=a.redSub(r),c=i.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),d=a.redMul(u),p=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(p)).redISub(i.redMul(l)),f=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(p,h,f)},Ya.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),r=this.y,i=e.y.redMul(t).redMul(this.z),s=n.redSub(a),o=r.redSub(i);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),l=n.redMul(c),d=o.redSqr().redIAdd(u).redISub(l).redISub(l),p=o.redMul(l.redISub(d)).redISub(r.redMul(u)),h=this.z.redMul(s);return this.curve.jpoint(d,p,h)},Ya.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(r),0===this.x.cmp(n))return!0}},Ya.prototype.inspect=function(){return this.isInfinity()?"":""},Ya.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Qa=Ma((function(e,t){var n=t;n.base=qa,n.short=Za,n.mont=null,n.edwards=null})),$a=Ma((function(e,t){var n,a=t,r=Ua.assert;function i(e){"short"===e.type?this.curve=new Qa.short(e):"edwards"===e.type?this.curve=new Qa.edwards(e):this.curve=new Qa.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:n}),n}})}a.PresetCurve=i,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Mt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Mt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Mt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Mt.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Mt.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Mt.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Mt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch{n=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Mt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function er(e){if(!(this instanceof er))return new er(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Va.toArray(e.entropy,e.entropyEnc||"hex"),n=Va.toArray(e.nonce,e.nonceEnc||"hex"),a=Va.toArray(e.pers,e.persEnc||"hex");Da(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,a)}var tr=er;er.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},er.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(a=n,n=t,t=null),n&&(n=Va.toArray(n,a||"hex"),this._update(n));for(var r=[];r.length"};var ir=Ua.assert;function sr(e,t){if(e instanceof sr)return e;this._importDER(e,t)||(ir(e.r&&e.s,"Signature without r or s"),this.r=new Ve(e.r,16),this.s=new Ve(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var or=sr;function cr(){this.place=0}function ur(e,t){var n=e[t.place++];if(!(128&n))return n;var a=15&n;if(0===a||a>4)return!1;for(var r=0,i=0,s=t.place;i>>=0;return!(r<=127)&&(t.place=s,r)}function lr(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}sr.prototype._importDER=function(e,t){e=Ua.toArray(e,t);var n=new cr;if(48!==e[n.place++])return!1;var a=ur(e,n);if(!1===a||a+n.place!==e.length||2!==e[n.place++])return!1;var r=ur(e,n);if(!1===r)return!1;var i=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var s=ur(e,n);if(!1===s||e.length!==s+n.place)return!1;var o=e.slice(n.place,s+n.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}return this.r=new Ve(i),this.s=new Ve(o),this.recoveryParam=null,!0},sr.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=lr(t),n=lr(n);!(n[0]||128&n[1]);)n=n.slice(1);var a=[2];dr(a,t.length),(a=a.concat(t)).push(2),dr(a,n.length);var r=a.concat(n),i=[48];return dr(i,r.length),i=i.concat(r),Ua.encode(i,e)};var pr=function(){throw new Error("unsupported")},hr=Ua.assert;function fr(e){if(!(this instanceof fr))return new fr(e);"string"==typeof e&&(hr(Object.prototype.hasOwnProperty.call($a,e),"Unknown curve "+e),e=$a[e]),e instanceof $a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var mr=fr;fr.prototype.keyPair=function(e){return new rr(this,e)},fr.prototype.keyFromPrivate=function(e,t){return rr.fromPrivate(this,e,t)},fr.prototype.keyFromPublic=function(e,t){return rr.fromPublic(this,e,t)},fr.prototype.genKeyPair=function(e){e||(e={});for(var t=new tr({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||pr(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Ve(2));;){var r=new Ve(t.generate(n));if(!(r.cmp(a)>0))return r.iaddn(1),this.keyFromPrivate(r)}},fr.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},fr.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Ve(e,16));for(var r=this.n.byteLength(),i=t.getPrivate().toArray("be",r),s=e.toArray("be",r),o=new tr({hash:this.hash,entropy:i,nonce:s,pers:a.pers,persEnc:a.persEnc||"utf8"}),c=this.n.sub(new Ve(1)),u=0;;u++){var l=a.k?a.k(u):new Ve(o.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var f=l.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(f=f.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return a.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),m^=1),new or({r:h,s:f,recoveryParam:m})}}}}}},fr.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Ve(e,16)),n=this.keyFromPublic(n,a);var r=(t=new or(t,"hex")).r,i=t.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0||i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var s,o=i.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(r).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&s.eqXToP(r):!(s=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(r)},fr.prototype.recoverPubKey=function(e,t,n,a){hr((3&n)===n,"The recovery param is more than two bits"),t=new or(t,a);var r=this.n,i=new Ve(e),s=t.r,o=t.s,c=1&n,u=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var l=t.r.invm(r),d=r.sub(i).mul(l).umod(r),p=o.mul(l).umod(r);return this.g.mulAdd(d,s,p)},fr.prototype.getKeyRecoveryParam=function(e,t,n,a){if(null!==(t=new or(t,a)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var i;try{i=this.recoverPubKey(e,t,r)}catch{continue}if(i.eq(n))return r}throw new Error("Unable to find valid recovery factor")};var yr=Ma((function(e,t){var n=t;n.version="6.5.4",n.utils=Ua,n.rand=function(){throw new Error("unsupported")},n.curve=Qa,n.curves=$a,n.ec=mr,n.eddsa=null})).ec;const gr=new we("signing-key/5.7.0");let br=null;function vr(){return br||(br=new yr("secp256k1")),br}class _r{constructor(e){Bt(this,"curve","secp256k1"),Bt(this,"privateKey",Oe(e)),32!==function(e){if("string"!=typeof e)e=Oe(e);else if(!Ee(e)||e.length%2)return null;return(e.length-2)/2}(this.privateKey)&&gr.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=vr().keyFromPrivate(Te(this.privateKey));Bt(this,"publicKey","0x"+t.getPublic(!1,"hex")),Bt(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Bt(this,"_isSigningKey",!0)}_addPoint(e){const t=vr().keyFromPublic(Te(this.publicKey)),n=vr().keyFromPublic(Te(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=vr().keyFromPrivate(Te(this.privateKey)),n=Te(e);32!==n.length&&gr.throwArgumentError("bad digest length","digest",e);const a=t.sign(n,{canonical:!0});return Ne({recoveryParam:a.recoveryParam,r:Re("0x"+a.r.toString(16),32),s:Re("0x"+a.s.toString(16),32)})}computeSharedSecret(e){const t=vr().keyFromPrivate(Te(this.privateKey)),n=vr().keyFromPublic(Te(Ar(e)));return Re("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function Ar(e,t){const n=Te(e);if(32===n.length){const e=new _r(n);return t?"0x"+vr().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Oe(n):"0x"+vr().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+vr().keyFromPublic(n).getPublic(!0,"hex"):Oe(n):gr.throwArgumentError("invalid public or private key","key","[REDACTED]")}var wr;function Ir(e,t){return function(e){return function(e){let t=null;if("string"!=typeof e&&Tt.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=Et(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&Tt.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>Pt[e])).join("");for(;t.length>=Ot;){let e=t.substring(0,Ot);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}(e)&&Tt.throwArgumentError("bad icap checksum","address",e),t=function(e){return new He(e,36).toString(16)}(e.substring(4));t.length<40;)t="0"+t;t=Et("0x"+t)}else Tt.throwArgumentError("invalid address","address",e);return t}(Be(Me(Be(Ar(e),1)),12))}(function(e,t){const n=Ne(t),a={r:Te(n.r),s:Te(n.s)};return"0x"+vr().recoverPubKey(Te(e),a,n.recoveryParam).encode("hex",!1)}(Te(e),t))}new we("transactions/5.7.0"),function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(wr||(wr={}));const Sr="https://rpc.walletconnect.com/v1";var xr=Object.defineProperty,Cr=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Or=(e,t,n)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Br=(e,t)=>{for(var n in t||(t={}))Er.call(t,n)&&Or(e,n,t[n]);if(Tr)for(var n of Tr(t))Pr.call(t,n)&&Or(e,n,t[n]);return e},Rr=(e,t)=>Cr(e,kr(t));const Nr=e=>e?.split(":"),Mr=e=>{const t=e&&Nr(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]},Dr=e=>{const t=e&&Nr(e);if(t)return t[2]+":"+t[3]},Lr=e=>{const t=e&&Nr(e);if(t)return t.pop()};async function Vr(e){const{cacao:t,projectId:n}=e,{s:a,p:r}=t,i=Ur(r,r.iss),s=Lr(r.iss);return await async function(e,t,n,a,r,i){switch(n.t){case"eip191":return function(e,t,n){return Ir(kt(t),n).toLowerCase()===e.toLowerCase()}(e,t,n.s);case"eip1271":return await async function(e,t,n,a,r,i){try{const s="0x1626ba7e",o="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",u=n.substring(2),l=s+kt(t).substring(2)+o+c+u,d=await fetch(`${i||Sr}/?chainId=${a}&projectId=${r}`,{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:l},"latest"]})}),{result:p}=await d.json();return!!p&&p.slice(0,s.length).toLowerCase()===s.toLowerCase()}catch(e){return console.error("isValidEip1271Signature: ",e),!1}}(e,t,n.s,a,r,i);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${n.t}`)}}(s,i,a,Mr(r.iss),n)}const Ur=(e,t)=>{const n=`${e.domain} wants you to sign in with your Ethereum account:`,a=Lr(t);if(!e.aud&&!e.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let r=e.statement||void 0;const i=`URI: ${e.aud||e.uri}`,s=`Version: ${e.version}`,o=`Chain ID: ${Mr(t)}`,c=`Nonce: ${e.nonce}`,u=`Issued At: ${e.iat}`,l=e.exp?`Expiration Time: ${e.exp}`:void 0,d=e.nbf?`Not Before: ${e.nbf}`:void 0,p=e.requestId?`Request ID: ${e.requestId}`:void 0,h=e.resources?`Resources:${e.resources.map((e=>`\n- ${e}`)).join("")}`:void 0,f=Xr(e.resources);return f&&(r=function(e="",t){Hr(t);const n="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(n))return e;const a=[];let r=0;return Object.keys(t.att).forEach((e=>{const n=Object.keys(t.att[e]).map((e=>({ability:e.split("/")[0],action:e.split("/")[1]})));n.sort(((e,t)=>e.action.localeCompare(t.action)));const i={};n.forEach((e=>{i[e.ability]||(i[e.ability]=[]),i[e.ability].push(e.action)}));const s=Object.keys(i).map((t=>(r++,`(${r}) '${t}': '${i[t].join("', '")}' for '${e}'.`)));a.push(s.join(", ").replace(".,","."))})),`${e?e+" ":""}${n}${a.join(" ")}`}(r,jr(f))),[n,a,"",r,"",i,s,o,c,u,l,d,p,h].filter((e=>null!=e)).join("\n")};function Hr(e){if(!e)throw new Error("No recap provided, value is undefined");if(!e.att)throw new Error("No `att` property found");const t=Object.keys(e.att);if(null==t||!t.length)throw new Error("No resources found in `att` property");t.forEach((t=>{const n=e.att[t];if(Array.isArray(n))throw new Error(`Resource must be an object: ${t}`);if("object"!=typeof n)throw new Error(`Resource must be an object: ${t}`);if(!Object.keys(n).length)throw new Error(`Resource object is empty: ${t}`);Object.keys(n).forEach((e=>{const t=n[e];if(!Array.isArray(t))throw new Error(`Ability limits ${e} must be an array of objects, found: ${t}`);if(!t.length)throw new Error(`Value of ${e} is empty array, must be an array with objects`);t.forEach((t=>{if("object"!=typeof t)throw new Error(`Ability limits (${e}) must be an array of objects, found: ${t}`)}))}))}))}function Fr(e,t,n={}){t=t?.sort(((e,t)=>e.localeCompare(t)));const a=t.map((t=>({[`${e}/${t}`]:[n]})));return Object.assign({},...a)}function Kr(e){return Hr(e),`urn:recap:${function(e){return k.from(JSON.stringify(e)).toString("base64")}(e).replace(/=/g,"")}`}function jr(e){const t=function(e){return JSON.parse(k.from(e,"base64").toString("utf-8"))}(e.replace("urn:recap:",""));return Hr(t),t}function qr(e,t,n){const a=function(e,t,n,a={}){return n?.sort(((e,t)=>e.localeCompare(t))),{att:{[e]:Fr(t,n,a)}}}(e,t,n);return Kr(a)}function zr(e,t){const n=function(e,t){Hr(e),Hr(t);const n=Object.keys(e.att).concat(Object.keys(t.att)).sort(((e,t)=>e.localeCompare(t))),a={att:{}};return n.forEach((n=>{var r,i;Object.keys((null==(r=e.att)?void 0:r[n])||{}).concat(Object.keys((null==(i=t.att)?void 0:i[n])||{})).sort(((e,t)=>e.localeCompare(t))).forEach((r=>{var i,s;a.att[n]=Rr(Br({},a.att[n]),{[r]:(null==(i=e.att[n])?void 0:i[r])||(null==(s=t.att[n])?void 0:s[r])})}))})),a}(jr(e),jr(t));return Kr(n)}function Gr(e){var t;const n=jr(e);Hr(n);const a=null==(t=n.att)?void 0:t.eip155;return a?Object.keys(a).map((e=>e.split("/")[1])):[]}function Wr(e){const t=jr(e);Hr(t);const n=[];return Object.values(t.att).forEach((e=>{Object.values(e).forEach((e=>{var t;null!=(t=e?.[0])&&t.chains&&n.push(e[0].chains)}))})),[...new Set(n.flat())]}function Xr(e){if(!e)return;const t=e?.[e.length-1];return function(e){return e&&e.includes("urn:recap:")}(t)?t:void 0}const Zr="base10",Jr="base16",Yr="base64pad",Qr="utf8",$r=0,ei=1,ti=0,ni=1,ai=12,ri=32;function ii(){const e=I.TZ();return{privateKey:(0,S.dI)(e.secretKey,Jr),publicKey:(0,S.dI)(e.publicKey,Jr)}}function si(){const e=(0,A.randomBytes)(ri);return(0,S.dI)(e,Jr)}function oi(e,t){const n=I.Tc((0,S.sH)(e,Jr),(0,S.sH)(t,Jr),!0),a=new _.i(w.aD,n).expand(ri);return(0,S.dI)(a,Jr)}function ci(e){const t=(0,w.tW)((0,S.sH)(e,Jr));return(0,S.dI)(t,Jr)}function ui(e){const t=(0,w.tW)((0,S.sH)(e,Qr));return(0,S.dI)(t,Jr)}function li(e){return Number((0,S.dI)(e,Zr))}function di(e){const t=function(e){return(0,S.sH)(`${e}`,Zr)}(typeof e.type<"u"?e.type:$r);if(li(t)===ei&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?(0,S.sH)(e.senderPublicKey,Jr):void 0,a=typeof e.iv<"u"?(0,S.sH)(e.iv,Jr):(0,A.randomBytes)(ai);return function(e){if(li(e.type)===ei){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,S.dI)((0,S.xW)([e.type,e.senderPublicKey,e.iv,e.sealed]),Yr)}return(0,S.dI)((0,S.xW)([e.type,e.iv,e.sealed]),Yr)}({type:t,sealed:new v.g6((0,S.sH)(e.symKey,Jr)).seal(a,(0,S.sH)(e.message,Qr)),iv:a,senderPublicKey:n})}function pi(e){const t=new v.g6((0,S.sH)(e.symKey,Jr)),{sealed:n,iv:a}=hi(e.encoded),r=t.open(a,n);if(null===r)throw new Error("Failed to decrypt");return(0,S.dI)(r,Qr)}function hi(e){const t=(0,S.sH)(e,Yr),n=t.slice(ti,ni),a=ni;if(li(n)===ei){const e=a+ri,r=e+ai,i=t.slice(a,e),s=t.slice(e,r);return{type:n,sealed:t.slice(r),iv:s,senderPublicKey:i}}const r=a+ai,i=t.slice(a,r);return{type:n,sealed:t.slice(r),iv:i}}function fi(e,t){const n=hi(e);return mi({type:li(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?(0,S.dI)(n.senderPublicKey,Jr):void 0,receiverPublicKey:t?.receiverPublicKey})}function mi(e){const t=e?.type||$r;if(t===ei){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function yi(e){return e.type===ei&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}const gi="irn";function bi(e){return e?.relay||{protocol:gi}}function vi(e){const t=x[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var _i=Object.defineProperty,Ai=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Ii=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,Ci=(e,t,n)=>t in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ki=(e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ci(e,n,t[n]);if(Ii)for(var n of Ii(t))xi.call(t,n)&&Ci(e,n,t[n]);return e},Ti=(e,t)=>Ai(e,wi(t));function Ei(e,t="-"){const n={},a="relay"+t;return Object.keys(e).forEach((t=>{if(t.startsWith(a)){const r=t.replace(a,""),i=e[t];n[r]=i}})),n}function Pi(e){const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,a=e.substring(0,t),r=e.substring(t+1,n).split("@"),i=typeof n<"u"?e.substring(n):"",s=b.parse(i),o="string"==typeof s.methods?s.methods.split(","):void 0;return{protocol:a,topic:Oi(r[0]),version:parseInt(r[1],10),symKey:s.symKey,relay:Ei(s),methods:o,expiryTimestamp:s.expiryTimestamp?parseInt(s.expiryTimestamp,10):void 0}}function Oi(e){return e.startsWith("//")?e.substring(2):e}function Bi(e){return`${e.protocol}:${e.topic}@${e.version}?`+b.stringify(ki(Ti(ki({symKey:e.symKey},function(e,t="-"){const n={};return Object.keys(e).forEach((a=>{const r="relay"+t+a;e[a]&&(n[r]=e[a])})),n}(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function Ri(e){const t=[];return e.forEach((e=>{const[n,a]=e.split(":");t.push(`${n}:${a}`)})),t}function Ni(e,t){const n=function(e){const t={};return e?.forEach((e=>{const[n,a]=e.split(":");t[n]||(t[n]={accounts:[],chains:[],events:[]}),t[n].accounts.push(e),t[n].chains.push(`${n}:${a}`)})),t}(t=t.map((e=>e.replace("did:pkh:",""))));for(const[t,a]of Object.entries(n))a.methods?a.methods=se(a.methods,e):a.methods=e,a.events=["chainChanged","accountsChanged"];return n}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Mi={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Di={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Li(e,t){const{message:n,code:a}=Di[e];return{message:t?`${n} ${t}`:n,code:a}}function Vi(e,t){const{message:n,code:a}=Mi[e];return{message:t?`${n} ${t}`:n,code:a}}function Ui(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function Hi(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function Fi(e){return typeof e>"u"}function Ki(e,t){return!(!t||!Fi(e))||"string"==typeof e&&!!e.trim().length}function ji(e,t){return!(!t||!Fi(e))||"number"==typeof e&&!isNaN(e)}function qi(e,t){const{requiredNamespaces:n}=t,a=Object.keys(e.namespaces),r=Object.keys(n);let i=!0;return!!X(r,a)&&(a.forEach((t=>{const{accounts:a,methods:r,events:s}=e.namespaces[t],o=Ri(a),c=n[t];X(P(t,c),o)&&X(c.methods,r)&&X(c.events,s)||(i=!1)})),i)}function zi(e){return!(!Ki(e,!1)||!e.includes(":"))&&2===e.split(":").length}function Gi(e){if(Ki(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function Wi(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function Xi(e){return e?.topic}function Zi(e,t){let n=null;return Ki(e?.publicKey,!1)||(n=Li("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function Ji(e){let t=!0;return Ui(e)?e.length&&(t=e.every((e=>Ki(e,!1)))):t=!1,t}function Yi(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const a=function(e,t){let n=null;return Ji(e?.methods)?Ji(e?.events)||(n=Vi("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=Vi("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}(e,`${t}, namespace`);a&&(n=a)})),n}function Qi(e,t,n){let a=null;if(e&&Hi(e)){const r=Yi(e,t);r&&(a=r);const i=function(e,t,n){let a=null;return Object.entries(e).forEach((([e,r])=>{if(a)return;const i=function(e,t,n){let a=null;return Ui(t)&&t.length?t.forEach((e=>{a||zi(e)||(a=Vi("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):zi(e)||(a=Vi("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),a}(e,P(e,r),`${t} ${n}`);i&&(a=i)})),a}(e,t,n);i&&(a=i)}else a=Li("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return a}function $i(e,t){let n=null;if(e&&Hi(e)){const a=Yi(e,t);a&&(n=a);const r=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const a=function(e,t){let n=null;return Ui(e)?e.forEach((e=>{n||function(e){if(Ki(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&zi(e)}}return!1}(e)||(n=Vi("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=Vi("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}(e?.accounts,`${t} namespace`);a&&(n=a)})),n}(e,t);r&&(n=r)}else n=Li("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function es(e){return Ki(e.protocol,!0)}function ts(e,t){let n=!1;return t&&!e?n=!0:e&&Ui(e)&&e.length&&e.forEach((e=>{n=es(e)})),n}function ns(e){return"number"==typeof e}function as(e){return typeof e<"u"&&null!==typeof e}function rs(e){return!!(e&&"object"==typeof e&&e.code&&ji(e.code,!1)&&e.message&&Ki(e.message,!1))}function is(e){return!(Fi(e)||!Ki(e.method,!1))}function ss(e){return!(Fi(e)||Fi(e.result)&&Fi(e.error)||!ji(e.id,!1)||!Ki(e.jsonrpc,!1))}function os(e){return!(Fi(e)||!Ki(e.name,!1))}function cs(e,t){return!(!zi(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Ri(e.accounts))})),t}(e).includes(t))}function us(e,t,n){return!!Ki(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Ri(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function ls(e,t,n){return!!Ki(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Ri(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function ds(e,t,n){let a=null;const r=function(e){const t={};return Object.keys(e).forEach((n=>{var a;n.includes(":")?t[n]=e[n]:null==(a=e[n].chains)||a.forEach((a=>{t[a]={methods:e[n].methods,events:e[n].events}}))})),t}(e),i=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const a=Ri(e[n].accounts);a?.forEach((a=>{t[a]={accounts:e[n].accounts.filter((e=>e.includes(`${a}:`))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),s=Object.keys(r),o=Object.keys(i),c=ps(Object.keys(e)),u=ps(Object.keys(t)),l=c.filter((e=>!u.includes(e)));return l.length&&(a=Li("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${l.toString()}\n Received: ${Object.keys(t).toString()}`)),X(s,o)||(a=Li("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.\n Required: ${s.toString()}\n Approved: ${o.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||a)return;const r=Ri(t[e].accounts);r.includes(e)||(a=Li("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${r.toString()}`))})),s.forEach((e=>{a||(X(r[e].methods,i[e].methods)?X(r[e].events,i[e].events)||(a=Li("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):a=Li("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))})),a}function ps(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function hs(e,t){return ji(e,!1)&&e<=t.max&&e>=t.min}function fs(){const e=j();return new Promise((t=>{switch(e){case V.browser:t(K()&&navigator?.onLine);break;case V.reactNative:t(async function(){if(F()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return e?.isConnected}return!0}());break;case V.node:default:t(!0)}}))}function ms(e){switch(j()){case V.browser:!function(e){!F()&&K()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case V.reactNative:!function(e){F()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&n.g?.NetInfo.addEventListener((t=>e(t?.isConnected)))}(e);case V.node:}}const ys={};class gs{static get(e){return ys[e]}static set(e,t){ys[e]=t}static delete(e){delete ys[e]}}},20635:(e,t)=>{"use strict";function n(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function a(e){const t=n(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=a,t.getDocumentOrThrow=function(){return a("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return a("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return a("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return a("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return a("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},67822:(e,t,n)=>{"use strict";t.g=void 0;const a=n(20635);t.g=function(){let e,t;try{e=a.getDocumentOrThrow(),t=a.getLocationOrThrow()}catch(e){return null}function n(...t){const n=e.getElementsByTagName("meta");for(let e=0;ea.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(r.length&&r){const e=a.getAttribute("content");if(e)return e}}return""}const r=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),a=[];for(let e=0;e-1){const e=r.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const a=t.pathname.split("/");a.pop(),n+=a.join("/")+"/"+e}a.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;a.push(n)}else a.push(e)}}return a}(),name:r}}},26093:(e,t,n)=>{"use strict";var a=n(39907);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i,s,o=n(41342).codes,c=o.ERR_AMBIGUOUS_ARGUMENT,u=o.ERR_INVALID_ARG_TYPE,l=o.ERR_INVALID_ARG_VALUE,d=o.ERR_INVALID_RETURN_VALUE,p=o.ERR_MISSING_ARGS,h=n(49801),f=n(49208).inspect,m=n(49208).types,y=m.isPromise,g=m.isRegExp,b=Object.assign?Object.assign:n(23046).assign,v=Object.is?Object.is:n(55968);function _(){var e=n(5656);i=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var A=!1,w=e.exports=C,I={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function x(e,t,n,a){if(!n){var r=!1;if(0===t)r=!0,a="No value argument passed to `assert.ok()`";else if(a instanceof Error)throw a;var i=new h({actual:n,expected:!0,message:a,operator:"==",stackStartFn:e});throw i.generatedMessage=r,i}}function C(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r1?n-1:0),r=1;r1?n-1:0),r=1;r1?n-1:0),r=1;r{"use strict";var a=n(39907);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=0;ne.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",g="",b="",v="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function w(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var I=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new f("options","Object",e);var r=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,l=e.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)n=s(this,d(t).call(this,String(r)));else if(a.stderr&&a.stderr.isTTY&&(a.stderr&&a.stderr.getColorDepth&&1!==a.stderr.getColorDepth()?(y="",g="",v="",b=""):(y="",g="",v="",b="")),"object"===p(u)&&null!==u&&"object"===p(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=A(u),l=A(l)),"deepStrictEqual"===i||"strictEqual"===i)n=s(this,d(t).call(this,function(e,t,n){var r="",i="",s=0,o="",c=!1,u=w(e),l=u.split("\n"),d=w(t).split("\n"),h=0,f="";if("strictEqual"===n&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===d.length&&l[0]!==d[0]){var A=l[0].length+d[0].length;if(A<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(_[n],"\n\n")+"".concat(l[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n&&A<(a.stderr&&a.stderr.isTTY?a.stderr.columns:80)){for(;l[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",h),"^"),h=0)}}for(var I=l[l.length-1],S=d[d.length-1];I===S&&(h++<2?o="\n ".concat(I).concat(o):r=I,l.pop(),d.pop(),0!==l.length&&0!==d.length);)I=l[l.length-1],S=d[d.length-1];var x=Math.max(l.length,d.length);if(0===x){var C=u.split("\n");if(C.length>30)for(C[26]="".concat(y,"...").concat(v);C.length>27;)C.pop();return"".concat(_.notIdentical,"\n\n").concat(C.join("\n"),"\n")}h>3&&(o="\n".concat(y,"...").concat(v).concat(o),c=!0),""!==r&&(o="\n ".concat(r).concat(o),r="");var k=0,T=_[n]+"\n".concat(g,"+ actual").concat(v," ").concat(b,"- expected").concat(v),E=" ".concat(y,"...").concat(v," Lines skipped");for(h=0;h1&&h>2&&(P>4?(i+="\n".concat(y,"...").concat(v),c=!0):P>3&&(i+="\n ".concat(d[h-2]),k++),i+="\n ".concat(d[h-1]),k++),s=h,r+="\n".concat(b,"-").concat(v," ").concat(d[h]),k++;else if(d.length1&&h>2&&(P>4?(i+="\n".concat(y,"...").concat(v),c=!0):P>3&&(i+="\n ".concat(l[h-2]),k++),i+="\n ".concat(l[h-1]),k++),s=h,i+="\n".concat(g,"+").concat(v," ").concat(l[h]),k++;else{var O=d[h],B=l[h],R=B!==O&&(!m(B,",")||B.slice(0,-1)!==O);R&&m(O,",")&&O.slice(0,-1)===B&&(R=!1,B+=","),R?(P>1&&h>2&&(P>4?(i+="\n".concat(y,"...").concat(v),c=!0):P>3&&(i+="\n ".concat(l[h-2]),k++),i+="\n ".concat(l[h-1]),k++),s=h,i+="\n".concat(g,"+").concat(v," ").concat(B),r+="\n".concat(b,"-").concat(v," ").concat(O),k+=2):(i+=r,r="",1!==P&&0!==h||(i+="\n ".concat(B),k++))}if(k>20&&h30)for(S[26]="".concat(y,"...").concat(v);S.length>27;)S.pop();n=1===S.length?s(this,d(t).call(this,"".concat(I," ").concat(S[0]))):s(this,d(t).call(this,"".concat(I,"\n\n").concat(S.join("\n"),"\n")))}else{var x=w(u),C="",k=_[i];"notDeepEqual"===i||"notEqual"===i?(x="".concat(_[i],"\n\n").concat(x)).length>1024&&(x="".concat(x.slice(0,1021),"...")):(C="".concat(w(l)),x.length>512&&(x="".concat(x.slice(0,509),"...")),C.length>512&&(C="".concat(C.slice(0,509),"...")),"deepEqual"===i||"equal"===i?x="".concat(k,"\n\n").concat(x,"\n\nshould equal\n\n"):C=" ".concat(i," ").concat(C)),n=s(this,d(t).call(this,"".concat(x).concat(C)))}return Error.stackTraceLimit=h,n.generatedMessage=!r,Object.defineProperty(o(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=l,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(o(n),c),n.stack,n.name="AssertionError",s(n)}var n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(e,t){return h(this,function(e){for(var t=1;t{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}var s,o,c={};function u(e,t,n){n||(n=Error);var s=function(n){function s(n,i,o){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),c=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,r(s).call(this,function(e,n,a){return"string"==typeof t?t:t(e,n,a)}(n,i,o))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,n),s}(n);c[e]=s}function l(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,c,u,d;if(void 0===s&&(s=n(26093)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(l(t,"type"));else{var p=("number"!=typeof d&&(d=0),d+1>(u=e).length||-1===u.indexOf(".",d)?"argument":"property");c='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(l(t,"type"))}return c+". Received type ".concat(a(r))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=n(49208));var r=o.inspect(t);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(a,". Received ").concat(r)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var r;return r=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(a(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(r,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),a=0;a0,"At least one arg needs to be specified");var r="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:r+="".concat(t[0]," argument");break;case 2:r+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:r+=t.slice(0,i-1).join(", "),r+=", and ".concat(t[i-1]," arguments")}return"".concat(r," must be specified")}),TypeError),e.exports.codes=c},5656:(e,t,n)=>{"use strict";function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},o=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(55968),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(7838);function d(e){return e.call.bind(e)}var p=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=n(49208).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,b=m.isDate,v=m.isMap,_=m.isRegExp,A=m.isSet,w=m.isNativeError,I=m.isBoxedPrimitive,S=m.isNumberObject,x=m.isStringObject,C=m.isBooleanObject,k=m.isBigIntObject,T=m.isSymbolObject,E=m.isFloat32Array,P=m.isFloat64Array;function O(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(O).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function R(e,t){if(e===t)return 0;for(var n=e.length,a=t.length,r=0,i=Math.min(n,a);ra(void 0,void 0,void 0,(function*(){e&&(t.chainEndpoint=e),yield(0,i.cryptoWaitReady)(),yield(0,t.disconnect)();const a=new r.WsProvider(t.chainEndpoint),o=Object.assign({provider:a,noInitWarn:!0,types:s.types,rpc:s.rpc,signedExtensions:s.signedExtensions},n);return t.api=yield r.ApiPromise.create(o),t.api})),t.isConnected=()=>Boolean(t.api&&t.api.isConnected),t.disconnect=()=>a(void 0,void 0,void 0,(function*(){(0,t.isConnected)()&&(yield t.api.disconnect())})),t.getDecimals=e=>e.registry.chainDecimals[0]},38444:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.extractData=t.decodeHexAppId=t.decodeU8IntAppId=t.splitStringIntoArray=t.getKeyringFromSeed=t.generateKeyring=t.formatNumberToBalance=t.isValidAddress=void 0;const r=n(25414),i=n(86538);t.isValidAddress=e=>{try{return(0,r.encodeAddress)((0,i.isHex)(e)?(0,i.hexToU8a)(e):(0,r.decodeAddress)(e)),!0}catch(e){return!1}},t.formatNumberToBalance=(e,t=18)=>{const[n,a]=e.toString().split(".");if("number"==typeof e&&(n&&n.length>10||a&&a.length>10))throw new Error("For big representation of number, please use a string instead of a number");const r=new i.BN(n).mul(new i.BN(10).pow(new i.BN(t)));if(!a)return r;const s=new i.BN(`${a}${"0".repeat(t)}`.slice(0,t));return r.add(s)},t.generateKeyring=()=>new r.Keyring({type:"sr25519"}),t.getKeyringFromSeed=e=>(0,t.generateKeyring)().addFromUri(e),t.splitStringIntoArray=(e,t=2)=>{const n=[];for(let a=0;a{const n=(0,i.u8aToHex)(e,void 0,!1);return(0,t.decodeHexAppId)(n)},t.decodeHexAppId=e=>{if(e.length<=1||e.length%2!=0)throw new Error("Invalid length");const n=e.startsWith("0x")?e.substring(2):e,a=(0,t.splitStringIntoArray)(n);let r=BigInt(0);return a.forEach(((e,t)=>{r+=BigInt(parseInt(e,16))<>BigInt(a.length<=4?2:8)).toString()},t.extractData=(e,t,n)=>a(void 0,void 0,void 0,(function*(){const a=(yield e.rpc.chain.getBlock(t)).block.extrinsics.filter((e=>e.hash.toString()===n));if(0===a.length)throw new Error("Extrinsic not found in block");const r=a[0],{method:{args:i}}=r;let s=i.map((e=>e.toString())).join(", ");s.startsWith("0x")&&(s=s.slice(2));let o="";for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goldbergRpc=void 0,t.goldbergRpc={kate:{blockLength:{description:"Get Block Length",params:[{name:"at",type:"Hash",isOptional:!0}],type:"BlockLength"},queryProof:{description:"Generate the kate proof for the given `cells`",params:[{name:"cells",type:"Vec"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec"},queryDataProof:{description:"Generate the data proof for the given `index`",params:[{name:"data_index",type:"u32"},{name:"at",type:"Hash",isOptional:!0}],type:"DataProof"},queryDataProofV2:{description:"Generate the data proof for the given `transaction_index`",params:[{name:"transaction_index",type:"u32"},{name:"at",type:"Hash",isOptional:!0}],type:"ProofResponse"},queryAppData:{description:"Fetches app data rows for the given app",params:[{name:"app_id",type:"AppId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec>>"},queryRows:{description:"Query rows based on their indices",params:[{name:"rows",type:"Vec"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec>"}}}},10896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goldbergTypes=void 0,t.goldbergTypes={AppId:"Compact",DataLookupIndexItem:{appId:"AppId",start:"Compact"},DataLookup:{size:"Compact",index:"Vec"},KateCommitment:{rows:"Compact",cols:"Compact",commitment:"Vec",dataRoot:"H256"},V1HeaderExtension:{appLookup:"DataLookup",commitment:"KateCommitment"},V2HeaderExtension:{appLookup:"DataLookup",commitment:"KateCommitment"},V3HeaderExtension:{appLookup:"DataLookup",commitment:"KateCommitment"},HeaderExtension:{_enum:{V1:"V1HeaderExtension",V2:"V2HeaderExtension",V3:"V3HeaderExtension"}},DaHeader:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest",extension:"HeaderExtension"},Header:"DaHeader",CheckAppIdExtra:{appId:"AppId"},CheckAppIdTypes:{},CheckAppId:{extra:"CheckAppIdExtra",types:"CheckAppIdTypes"},BlockLengthColumns:"Compact",BlockLengthRows:"Compact",BlockLength:{max:"PerDispatchClass",cols:"BlockLengthColumns",rows:"BlockLengthRows",chunkSize:"Compact"},PerDispatchClass:{normal:"u32",operational:"u32",mandatory:"u32"},DataProof:{root:"H256",proof:"Vec",numberOfLeaves:"Compact",leaf_index:"Compact",leaf:"H256"},DataProofV2:{dataRoot:"H256",blobRoot:"H256",bridgeRoot:"H256",proof:"Vec",numberOfLeaves:"Compact",leafIndex:"Compact",leaf:"H256"},ProofResponse:{dataProof:"DataProofV2",message:"Option"},Message:{messageType:"MessageType",from:"H256",to:"H256",originDomain:"u32",destinationDomain:"u32",data:"Vec",id:"u64"},MessageType:{_enum:["ArbitraryMessage","FungibleToken"]},Cell:{row:"u32",col:"u32"}}},10908:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(41271),t),r(n(20972),t),r(n(8889),t),r(n(80330),t),r(n(10896),t)},41271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.rpc={kate:{blockLength:{description:"Get Block Length",params:[{name:"at",type:"Hash",isOptional:!0}],type:"BlockLength"},queryProof:{description:"Generate the kate proof for the given `cells`",params:[{name:"cells",type:"Vec"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(U256, [u8; 48])>"},queryDataProof:{description:"Generate the data proof for the given `transaction_index`",params:[{name:"transaction_index",type:"u32"},{name:"at",type:"Hash",isOptional:!0}],type:"ProofResponse"},queryRows:{description:"Query rows based on their indices",params:[{name:"rows",type:"Vec"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec>"}}}},20972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signedExtensions=void 0,t.signedExtensions={CheckAppId:{extrinsic:{appId:"AppId"},payload:{}}}},8889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.types=void 0,t.types={AppId:"Compact",DataLookupItem:{appId:"AppId",start:"Compact"},CompactDataLookup:{size:"Compact",index:"Vec"},KateCommitment:{rows:"Compact",cols:"Compact",commitment:"Vec",dataRoot:"H256"},V3HeaderExtension:{appLookup:"CompactDataLookup",commitment:"KateCommitment"},HeaderExtension:{_enum:{V1:null,V2:null,V3:"V3HeaderExtension"}},DaHeader:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest",extension:"HeaderExtension"},Header:"DaHeader",CheckAppIdExtra:{appId:"AppId"},CheckAppIdTypes:{},CheckAppId:{extra:"CheckAppIdExtra",types:"CheckAppIdTypes"},BlockLengthColumns:"Compact",BlockLengthRows:"Compact",BlockLength:{max:"PerDispatchClass",cols:"BlockLengthColumns",rows:"BlockLengthRows",chunkSize:"Compact"},PerDispatchClass:{normal:"u32",operational:"u32",mandatory:"u32"},DataProof:{roots:"TxDataRoots",proof:"Vec",numberOfLeaves:"Compact",leafIndex:"Compact",leaf:"H256"},TxDataRoots:{dataRoot:"H256",blobRoot:"H256",bridgeRoot:"H256"},ProofResponse:{dataProof:"DataProof",message:"Option"},AddressedMessage:{message:"Message",from:"H256",to:"H256",originDomain:"u32",destinationDomain:"u32",data:"Vec",id:"u64"},Message:{_enum:{ArbitraryMessage:"ArbitraryMessage",FungibleToken:"FungibleToken"}},MessageType:{_enum:["ArbitraryMessage","FungibleToken"]},FungibleToken:{assetId:"H256",amount:"String"},BoundedData:"Vec",ArbitraryMessage:"BoundedData",Cell:{row:"u32",col:"u32"}}},11266:(e,t,n)=>{"use strict";let a,r,i,s,o,c,u,l,d,p,h,f,m,y,g,b,v,_,A,w,I,S;n.d(t,{CB:()=>g,IG:()=>p,M_:()=>h,Xf:()=>i,Ym:()=>b,_G:()=>d,_n:()=>w,c2:()=>A,cl:()=>I,cq:()=>c,eC:()=>a,eQ:()=>f,gK:()=>r,gM:()=>v,hh:()=>m,jG:()=>S,tI:()=>s,tf:()=>o,w3:()=>l}),function(e){e.Web="Web",e.Node="Node",e.ExtensionChrome="Extension (Chrome)",e.ExtensionFirefox="Extension (Firefox)",e.WebWorker="Web Worker",e.ServiceWorker="Service Worker",e.Unknown="Unknown"}(a||(a={})),function(e){e.NOMINATED="nominated",e.POOLED="pooled",e.LIQUID_STAKING="liquid_staking"}(r||(r={})),function(e){e.PENDING="pending",e.READY="ready",e.CACHED="cached",e.ERROR="error",e.NOT_SUPPORT="not_support"}(i||(i={})),function(e){e.VER_1="1.0.0",e.VER_2="2.0.0"}(s||(s={})),function(e){e.ONGOING="ongoing",e.COMPLETED="completed",e.FAILED="failed"}(o||(o={})),function(e){e.NFTS="nfts",e.UNIQUES="uniques"}(c||(c={})),function(e){e.wasm="wasm",e.evm="evm"}(u||(u={})),function(e){e.ALWAYS_REQUIRED="always_required",e.WHEN_NEEDED="when_needed"}(l||(l={})),function(e){e.SEND="send",e.RECEIVED="received"}(d||(d={})),function(e){e.EVM="evm",e.SUBSTRATE="substrate",e.TON="ton"}(p||(p={})),function(e){e.TRANSFER_BALANCE="transfer.balance",e.TRANSFER_TOKEN="transfer.token",e.TRANSFER_XCM="transfer.xcm",e.SEND_NFT="send_nft",e.CROWDLOAN="crowdloan",e.STAKING_JOIN_POOL="staking.join_pool",e.STAKING_LEAVE_POOL="staking.leave_pool",e.STAKING_POOL_WITHDRAW="staking.pool_withdraw",e.STAKING_BOND="staking.bond",e.STAKING_UNBOND="staking.unbond",e.STAKING_CLAIM_REWARD="staking.claim_reward",e.STAKING_WITHDRAW="staking.withdraw",e.STAKING_COMPOUNDING="staking.compounding",e.STAKING_CANCEL_COMPOUNDING="staking.cancel_compounding",e.STAKING_CANCEL_UNSTAKE="staking.cancel_unstake",e.JOIN_YIELD_POOL="earn.join_pool",e.MINT_VDOT="earn.mint_vdot",e.MINT_LDOT="earn.mint_ldot",e.MINT_SDOT="earn.mint_sdot",e.MINT_QDOT="earn.mint_qdot",e.MINT_STDOT="earn.mint_stdot",e.MINT_VMANTA="earn.mint_vmanta",e.REDEEM_QDOT="earn.redeem_qdot",e.REDEEM_VDOT="earn.redeem_vdot",e.REDEEM_LDOT="earn.redeem_ldot",e.REDEEM_SDOT="earn.redeem_sdot",e.REDEEM_STDOT="earn.redeem_stdot",e.REDEEM_VMANTA="earn.redeem_vmanta",e.UNSTAKE_QDOT="earn.unstake_qdot",e.UNSTAKE_VDOT="earn.unstake_vdot",e.UNSTAKE_LDOT="earn.unstake_ldot",e.UNSTAKE_SDOT="earn.unstake_sdot",e.UNSTAKE_STDOT="earn.unstake_stdot",e.UNSTAKE_VMANTA="earn.unstake_vmanta",e.TOKEN_SPENDING_APPROVAL="token.spending_approval",e.SWAP="swap",e.EVM_EXECUTE="evm.execute",e.UNKNOWN="unknown"}(h||(h={})),function(e){e.QUEUED="queued",e.SUBMITTING="submitting",e.PROCESSING="processing",e.SUCCESS="success",e.FAIL="fail",e.CANCELLED="cancelled",e.TIMEOUT="timeout",e.UNKNOWN="unknown"}(f||(f={})),function(e){e.NETWORK_ERROR="NETWORK_ERROR",e.TOKEN_ERROR="TOKEN_ERROR",e.TIMEOUT="TIMEOUT",e.GET_BALANCE_ERROR="GET_BALANCE_ERROR"}(m||(m={})),function(e){e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.INVALID_PARAMS="INVALID_PARAMS",e.INTERNAL_ERROR="INTERNAL_ERROR",e.USER_REJECT="USER_REJECT"}(y||(y={})),function(e){e.INVALID_ADDRESS="invalidToAccount",e.KEYRING_ERROR="keyringError",e.UNKNOWN_ERROR="unknownError"}(g||(g={})),function(e){e[e.PENDING=0]="PENDING",e[e.REJECTED=1]="REJECTED",e[e.FAILED=2]="FAILED",e[e.COMPLETED=3]="COMPLETED"}(b||(b={})),function(e){e.LIGHT="light",e.DARK="dark",e.SUBSPACE="subspace"}(v||(v={})),function(e){e.CONNECTED="connected",e.CONNECTING="connecting",e.DISCONNECTED="disconnected",e.PENDING="pending"}(_||(_={})),function(e){e.USER_REJECTED_REQUEST="USER_REJECTED_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.UNSUPPORTED_METHOD="UNSUPPORTED_METHOD",e.DISCONNECTED="DISCONNECTED",e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.INVALID_PARAMS="INVALID_PARAMS",e.INTERNAL_ERROR="INTERNAL_ERROR"}(A||(A={})),function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(w||(w={})),function(e){e.WRONG_PASSWORD="WRONG_PASSWORD",e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.SUCCESS="SUCCESS"}(I||(I={})),function(e){e.NOTIFICATION="notification",e.BANNER="banner"}(S||(S={}))},17035:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const a=n(3111).C1;var r=n(44869);class i{constructor(e){this.payload=e}sign(e,t){return{signature:(0,r.X)(t.sign(a(this.payload.data)))}}}},38495:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});class a{constructor(e){this.payload=e}sign(e,t){return e.createType("ExtrinsicPayload",this.payload,{version:this.payload.version}).sign(t)}}},35496:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{r:()=>c});var r=n(36508),i=n(11266),s=n(35845),o=n(9492);const e={[i.hh.NETWORK_ERROR]:{message:(0,s.c)("Network is inactive. Please enable network"),code:void 0},[i.hh.TOKEN_ERROR]:{message:(0,s.c)("Token is not supported"),code:void 0},[i.hh.TIMEOUT]:{message:(0,s.c)("Unable to get balance. Please re-enable the network"),code:void 0},[i.hh.GET_BALANCE_ERROR]:{message:(0,s.c)("Unable to get balance. Please re-enable the network"),code:void 0}};class c extends r.T{constructor(t,n,a){const r=e[t];super(t,n||(0,o.t)((null==r?void 0:r.message)||"")||t,null==r?void 0:r.code,a),this.errorType=t}}a()}catch(e){a(e)}}))},18289:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{q:()=>o});var r=n(36508),i=n(35845),s=n(9492);const e={USER_REJECTED_REQUEST:{message:(0,i.c)("User Rejected Request"),code:4001},UNAUTHORIZED:{message:(0,i.c)("Failed to sign"),code:4100},UNSUPPORTED_METHOD:{message:(0,i.c)("Unsupported Method"),code:4200},DISCONNECTED:{message:(0,i.c)("Network is disconnected"),code:4900},CHAIN_DISCONNECTED:{message:(0,i.c)("Network is disconnected"),code:4901},INVALID_PARAMS:{message:(0,i.c)("Undefined error. Please contact SubWallet support"),code:-32602},INTERNAL_ERROR:{message:(0,i.c)("Undefined error. Please contact SubWallet support"),code:-32603}};class o extends r.T{constructor(t,n,a,r){const{code:i,message:o}=e[t];super(t,n||(0,s.t)(o||"")||t,i,a,r),this.errorType=t}}a()}catch(e){a(e)}}))},36508:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});class a extends Error{errorClass="Transaction";constructor(e,t,n,a,r){super(t),this.errorType=e,this.code=n,this.data=a,r&&(this.name=r)}toJSON(){return{errorClass:this.errorClass,errorType:this.errorType,data:this.data,name:this.name,message:this.message,code:this.code}}}},89071:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{k:()=>s});var r=n(36508),i=n(35845);const e={ERROR_FETCHING_QUOTE:{message:(0,i.c)("No swap quote found. Adjust your amount or try again later"),code:void 0},NOT_MEET_MIN_SWAP:{message:(0,i.c)("Amount too low. Increase your amount and try again"),code:void 0},QUOTE_TIMEOUT:{message:(0,i.c)("Quote timeout"),code:void 0},UNKNOWN:{message:(0,i.c)("Undefined error. Check your Internet connection or contact support"),code:void 0},ASSET_NOT_SUPPORTED:{message:(0,i.c)("This swap pair is not supported"),code:void 0},INVALID_RECIPIENT:{message:(0,i.c)("Invalid recipient"),code:void 0},SWAP_EXCEED_ALLOWANCE:{message:(0,i.c)("You cannot swap all your balance. Lower your amount and try again"),code:void 0},SWAP_NOT_ENOUGH_BALANCE:{message:(0,i.c)("You must deposit more funds to swap"),code:void 0},NOT_ENOUGH_LIQUIDITY:{message:(0,i.c)("Insufficient liquidity to complete the swap. Lower your amount and try again"),code:void 0},AMOUNT_CANNOT_BE_ZERO:{message:(0,i.c)("Amount must be greater than 0"),code:void 0},MAKE_POOL_NOT_ENOUGH_EXISTENTIAL_DEPOSIT:{message:(0,i.c)("Insufficient liquidity to complete the swap. Lower your amount and try again"),code:void 0}};class s extends r.T{constructor(t,n,a){const{code:r,message:i}=e[t];super(t,n||i,r,a),this.errorType=t}}a()}catch(e){a(e)}}))},340:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{J:()=>u});var r=n(14298),i=n(9507),s=n(35845),o=n(9492),c=n(36508);const e={NOT_ENOUGH_BALANCE:{message:(0,s.c)("Insufficient balance"),code:void 0},CHAIN_DISCONNECTED:{message:(0,s.c)("Network is disconnected"),code:void 0},INVALID_PARAMS:{message:(0,s.c)("Undefined error. Please contact SubWallet support"),code:void 0},INTERNAL_ERROR:{message:(0,s.c)("Undefined error. Please contact SubWallet support"),code:void 0},DUPLICATE_TRANSACTION:{message:(0,s.c)("Another transaction is in queue. Please try again later"),code:void 0},UNABLE_TO_SIGN:{message:(0,s.c)("Unable to sign"),code:void 0},USER_REJECT_REQUEST:{message:(0,s.c)("Rejected by user"),code:void 0},UNABLE_TO_SEND:{message:(0,s.c)("Unable to send"),code:void 0},SEND_TRANSACTION_FAILED:{message:(0,s.c)("Send transaction failed"),code:void 0},NOT_ENOUGH_EXISTENTIAL_DEPOSIT:{message:(0,s.c)("Insufficient balance to cover existential deposit. Please decrease the transaction amount or increase your current balance"),code:void 0},[r.xu.UNSUPPORTED]:{message:(0,s.c)("This feature is not available with this token"),code:void 0},[r.xu.TIMEOUT]:{message:(0,s.c)("Transaction timeout"),code:void 0},[r.q0.NOT_ENOUGH_MIN_STAKE]:{message:"Not enough min stake",code:void 0},[r.q0.EXCEED_MAX_NOMINATIONS]:{message:"Exceed max nominations",code:void 0},[r.q0.EXIST_UNSTAKING_REQUEST]:{message:"Exist unstaking request",code:void 0},[r.q0.INVALID_ACTIVE_STAKE]:{message:(0,s.c)("Invalid. If you unstake this amount your active stake would fall below minimum active threshold"),code:void 0},[r.q0.EXCEED_MAX_UNSTAKING]:{message:(0,s.c)("You reached the maximum number of unstake requests"),code:void 0},[r.q0.INACTIVE_NOMINATION_POOL]:{message:(0,s.c)("Invalid. Inactive nomination pool"),code:void 0},[r.q0.CAN_NOT_GET_METADATA]:{message:(0,s.c)("Unable to fetch staking data. Re-enable current network and try again"),code:void 0},[r.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT]:{message:(0,s.c)("Receiver is not enough existential deposit"),code:void 0},[r.Jt.NOT_ENOUGH_FEE]:{message:(0,s.c)("Insufficient balance"),code:void 0},[r.Jt.NOT_ENOUGH_MIN_JOIN_POOL]:{message:(0,s.c)("Not enough min earning amount"),code:void 0},[i.A5.QUOTE_TIMEOUT]:{message:(0,s.c)("Quote timeout"),code:void 0},[i.A5.INVALID_RECIPIENT]:{message:(0,s.c)("Invalid recipient"),code:void 0}};class u extends c.T{constructor(t,n,a,r){const i=e[t];super(t,n||(0,o.t)((null==i?void 0:i.message)||"")||t,null==i?void 0:i.code,a,r),this.errorType=t}}a()}catch(e){a(e)}}))},53191:(e,t,n)=>{"use strict";function a(e){try{const t=e();t&&"object"==typeof t&&"function"==typeof t.catch&&t.catch(console.error)}catch(e){console.error(e)}}n.d(t,{T:()=>a})},98552:(e,t,n)=>{"use strict";n.d(t,{DY:()=>i,Ky:()=>r,al:()=>s});const a={};function r(e,t){return a[e]=t,n=>{a[e]&&t.postMessage({id:e,subscription:n})}}function i(e){return!!a[e]}function s(e){a[e]?delete a[e]:console.error(`Unable to unsubscribe from ${e}`)}},38728:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});class a{constructor(e,t,n,a){this.message=t,this.warningType=e,this.code=n,this.data=a}}},77620:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{D:()=>c});var r=n(38728),i=n(78932),s=n(35845),o=n(9492);const e={[i.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT]:{message:(0,s.c)("Insufficient balance to cover existential deposit. Please decrease the transaction amount or increase your current balance"),code:void 0},[i.g.IS_BOUNCEABLE_ADDRESS]:{message:(0,s.c)("We are not supporting for bounceable address. The send mode is work as non-bounceable address."),code:void 0}};class c extends r.x{constructor(t,n,a,r){var i,s;super(t,n||(0,o.t)((null===(i=e[t])||void 0===i?void 0:i.message)||"")||t,null===(s=e[t])||void 0===s?void 0:s.code,r),this.warningType=t}}a()}catch(e){a(e)}}))},37178:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{e:()=>r});const e=(0,n(12561).j)("blocked-actions-features"),r=async()=>await e;a()}catch(e){a(e)}}))},44690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a=["master","webapp","webapp-dev"].indexOf("subwallet-dev")>-1},31355:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{$P:()=>i,$k:()=>h,Ap:()=>I,B3:()=>u,GQ:()=>v,H9:()=>s,Hc:()=>g,Hh:()=>_,PT:()=>y,RM:()=>r,Wf:()=>m,Wp:()=>l,XM:()=>x,_9:()=>S,c9:()=>f,eC:()=>o,fn:()=>A,iw:()=>C,m3:()=>c,qC:()=>w,rm:()=>d,vk:()=>b,zq:()=>p});const e=6e4,r=3e4,i=3e5,s=6e4,o=6e4,c=72e5,u=15*e,l=9e4,d=1e4,p=9e4,h=3e4,f=3e5,m=3e4,y=3e4,g=3e5,b=15*e,v="ALL",_=["evm","substrate","ton"],A=1.2,w=2,I=1.02,S=["*"],x="__Ordinal__",C=["eth_accounts"];a()}catch(e){a(e)}}))},33892:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{G:()=>s,u:()=>e});var r=n(11266),i=n(47521);const e={[r.IG.SUBSTRATE]:[i.HP.SUBSTRATE,i.HP.ETHEREUM],[r.IG.EVM]:[i.HP.ETHEREUM],[r.IG.TON]:[i.HP.TON]},s={[r.IG.SUBSTRATE]:[i.HP.SUBSTRATE],[r.IG.EVM]:[i.HP.ETHEREUM],[r.IG.TON]:[i.HP.TON]};a()}catch(e){a(e)}}))},44434:(e,t,n)=>{"use strict";n.d(t,{Np:()=>a,TB:()=>o,UM:()=>r,bv:()=>s,vs:()=>i});const a="current-language",r="current-currency",i="remind_export_account",s="general.latest-session",o="general.upgrade-duplicate-account-name"},1493:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{BY:()=>V,Kg:()=>R,W4:()=>B,ob:()=>M,qP:()=>D,sR:()=>N,wM:()=>O});var r=n(64291),i=n(18289),s=n(340),o=n(11266),c=n(58109),u=n(14298),l=n(19203),d=n(85658),p=n(37550),h=n(57365),f=n(1268),m=n(61116),y=n(83386),g=n(96483),b=n(82823),v=n.n(b),_=n(9492),A=n(99828),w=n.n(A),I=n(13692),S=n(20258),x=e([m,l,i,s,c,h]);[m,l,i,s,c,h]=x.then?(await x)():x;const C=w().object({types:w().object().pattern(w().string(),w().array().items(w().object({name:w().string().required(),type:w().string().required()}))).required(),primaryType:w().string().required(),domain:w().object().required(),message:w().object().required()});function k(e,t){if(!e||"string"!=typeof e||!(0,S.q)(e))throw new Error(`Invalid "${t}" address: ${e} must be a valid string.`)}function T(e){const{data:t,from:n}=e;if(k(n,"from"),!t||"string"!=typeof t)throw new Error(`Invalid message "data": ${t} must be a valid string.`);return t}function E(e){if(k(e.from,"from"),!e.data||!Array.isArray(e.data))throw new Error(`Invalid message "data": ${e.data} must be a valid array.`);try{return(0,r.typedSignatureHash)(e.data),e.data}catch(e){throw new Error('Invalid message "data": Expected EIP712 typed data.')}}function P(e){if(k(e.from,"from"),!e.data||Array.isArray(e.data)||"object"!=typeof e.data&&"string"!=typeof e.data)throw new Error('Invalid message "data": Must be a valid string or object.');let t;if("object"==typeof e.data)t=e.data;else try{t=JSON.parse(e.data)}catch(e){throw new Error('Invalid message "data" must be passed as a valid JSON string.')}if(C.validate(t).error)throw new Error('Invalid message "data" must conform to EIP-712 schema. See https://git.io/fNtcx.');return t}async function O(e,t,n,a,r){let i=n;for(const n of a){if(i=await n(e,t,i,r),"dApp"===i.errorPosition)throw i.errors[0];if("ui"===i.errorPosition)break}return i}async function B(e,t,n){const{address:a,errors:r}=n;if(a&&(0,I.K)(a))try{if(n.pair=m.AC.getPair(a),n.pair){const a=(await e.getAuthList())[(0,l.Cx)(t)];if(!a||!a.isAllowed||!a.isAllowedMap[n.pair.address]){n.errorPosition="dApp";const[e]=L("Account not in allowed list","");r.push(new Error(e))}n.authInfo=a}else{n.errorPosition="dApp";const[e]=L("Unable to find account");r.push(new Error(e))}}catch(e){const[t]=L(e.message);n.errorPosition="dApp",r.push(new Error(t))}else{n.errorPosition="dApp";const[e]=L("Not found address to sign");r.push(new Error(e))}return n}async function R(e,t,n){let a,r=!1,{address:s,authInfo:c,errors:u,networkKey:d}={...n};const p=e=>{n.errorPosition="ui",n.confirmationType="errorConnectNetwork";const[t,a]=L(e),r=new i.q(o.c2.CHAIN_DISCONNECTED,t,void 0,a);console.error(r),u.push(r)};null!=c&&c.currentEvmNetworkKey&&(a=null==c?void 0:c.currentEvmNetworkKey),null!=c&&c.isAllowed&&(r=!0);const h=e.requestService.getDAppChainInfo({autoActive:r,accessType:"evm",defaultChain:a,url:t});if(d=d||(null==h?void 0:h.slug)||"",d){const t=e.getChainStateByKey(d),n=e.getChainInfo(d);if(!t.active)try{await e.chainService.enableChain(d)}catch(e){p("Can not active chain: "+n.name)}const a=e.getEvmApi(d),r=null==a?void 0:a.api;let i=!1;const o=async()=>{try{i=!!await r.eth.getBalance(s)}catch(e){p(e.message)}};try{await Promise.race([o(),(0,l.uk)(3e3).then((async()=>{i||(await e.chainService.initSingleApi(d),await o())}))])}catch(e){p(e.message)}}else p("This network is currently not supported");return{...n,networkKey:d,errors:u}}async function N(e,t,n){const a=n.errors||[];let r="";const i=n.payloadAfterValidated,{address:o,networkKey:p}=n,f=e.getEvmApi(p||""),m=null==f?void 0:f.api,y=e=>"string"==typeof e&&e.startsWith("0x")?new(v())(e.replace("0x",""),16).toString():"number"==typeof e?e.toString():e,b=e=>{n.errorPosition="ui",n.confirmationType="evmWatchTransactionRequest";const[t,r]=L(e),i=new s.J(u.xu.INVALID_PARAMS,t,void 0,r);console.error(i),a.push(i)};m||b("connection error");const _={from:i.from,to:i.to,value:y(i.value),gas:y(i.gas),gasPrice:y(i.gasPrice||i.gasLimit),maxPriorityFeePerGas:y(i.maxPriorityFeePerGas),maxFeePerGas:y(i.maxFeePerGas),data:i.data};if(o&&(0,S.q)(o)||b("the sender address must be the ethereum address type"),_.to&&!(0,S.q)(_.to)&&b("invalid recipient address"),o===_.to&&b("receiving address must be different from sending address"),!_.to)if(_.data){if(_.value)try{new g.A(_.value.toString()).eq(d.Yz)||b("Recipient address not found")}catch(e){b("invalid number")}}else b("Recipient address not found");if(!_.gas){const t=async()=>{try{_.gas=await m.eth.estimateGas({..._})}catch(e){b(e.message)}};try{await Promise.race([t(),(0,l.uk)(3e3).then((async()=>{_.gas||(await e.chainService.initSingleApi(p||""),await t())}))])}catch(e){b(e.message)}}if(_.gas){if(i.maxPriorityFeePerGas&&i.maxFeePerGas)r=new g.A(i.maxFeePerGas).multipliedBy(_.gas).toFixed(0);else if(i.gasPrice)r=new g.A(i.gasPrice).multipliedBy(_.gas).toFixed(0);else try{const e=await(0,c.oc)(f,p||"");e.baseGasFee?(_.maxPriorityFeePerGas=e.maxPriorityFeePerGas.toString(),_.maxFeePerGas=e.maxFeePerGas.toString(),r=e.maxFeePerGas.multipliedBy(_.gas).toFixed(0)):(_.gasPrice=e.gasPrice,r=new g.A(e.gasPrice).multipliedBy(_.gas).toFixed(0))}catch(e){b(e.message)}try{const e=new(v())(await m.eth.getBalance(o)||0);r?e.lt(new(v())(r).add(new(v())(y(i.value)||"0")))&&b("Insufficient balance"):b("Can't calculate estimate gas fee")}catch(e){b(e.message)}}else b(new s.J(u.xu.INTERNAL_ERROR).message);try{_.nonce=await m.eth.getTransactionCount(o)}catch(e){b(e.message)}const A=a&&a.length>0||!p,w=e.getChainInfo(p||"");let I=!1,x="",C="";try{x=A?"":e.transactionService.generateHashPayload(p,_),I=await(0,h.Dj)(_.to||"",f),C=I?_.data&&!A?(await(0,h.Yw)(_.data,_.to||"",w)).result:"":_.data||""}catch(e){b(e.message)}return{...n,errors:a,payloadAfterValidated:{..._,address:o,estimateGas:r,hashPayload:x,isToContract:I,parseData:C,canSign:!A}}}async function M(e,t,n){const{address:a,errors:r,method:s,pair:c}=n;let u=n.payloadAfterValidated;const{promise:l,resolve:d}=(0,p.y)();let h="",f=!1;const y=e=>{n.errorPosition="ui",n.confirmationType="evmSignatureRequest";const[t,a]=L(e),s=new i.q(o.c2.INVALID_PARAMS,t,void 0,a);console.error(s),r.push(s)};""!==a&&u||y("Not found address or payload to sign");const g=c||m.AC.getPair(a);if(s){["eth_sign","personal_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4"].indexOf(s)<0&&y("Unsupported action");try{switch(s){case"personal_sign":f=!0,u=T({data:u,from:a}),h=u;break;case"eth_sign":g.meta.isExternal||(f=!0);break;case"eth_signTypedData":case"eth_signTypedData_v1":g.meta.isExternal||(f=!0),u=E({data:u,from:a});break;case"eth_signTypedData_v3":case"eth_signTypedData_v4":g.meta.isExternal||(f=!0),u=P({data:u,from:a});break;default:throw new Error("Unsupported action")}}catch(e){console.error(e),y(e.message)}}else y("Unsupported method");const b={address:a,type:s||"",payload:u,hashPayload:h,canSign:f,id:""};return d({...n,errors:r,payloadAfterValidated:b}),l}function D(e,t,n,a){const{promise:r,resolve:i}=(0,p.y)(),{address:s,errors:o}=n;if(a){const t=e.walletConnectService.getSession(a);let r=[];var c;if((0,S.q)(s))r=(null===(c=t.namespaces.eip155.accounts)||void 0===c?void 0:c.map((e=>e.split(":")[2])))||r;else if((0,f.qy)(s)){var u;r=(null===(u=t.namespaces.polkadot.accounts)||void 0===u?void 0:u.map((e=>e.split(":")[2])))||r}if(s&&(0,I.K)(s))try{if(n.pair=m.AC.getPair(s),!n.pair){n.errorPosition="dApp";const[e]=L("Unable to find account");o.push(new Error(e))}if(!r.find((e=>(0,l.Lb)(e,s)))){n.errorPosition="dApp";const[e]=L("Account not in allowed list");o.push(new Error(e))}}catch(e){const[t]=L(e.message);n.errorPosition="dApp",o.push(new Error(t))}else{n.errorPosition="dApp";const[e]=L("Unable to find account");o.push(new Error(e))}}else n.errorPosition="dApp",o.push(new Error((0,y.Hjj)("UNAUTHORIZED_EXTEND_REQUEST").message));return i({...n,errors:o}),r}function L(e,t){const n=e.toLowerCase();return n.includes("connection error")||n.includes("connection not open")||n.includes("connection timeout")||n.includes("can not active chain")||n.includes("invalid json rpc")?[(0,_.t)("Re-enable the network or change RPC on the extension and try again"),(0,_.t)("Unstable network connection")]:n.includes("network is currently not supported")?[(0,_.t)("This network is not yet supported on SubWallet. (Import the network)[https://docs.subwallet.app/main/extension-user-guide/customize-your-networks#import-networks] on SubWallet and try again"),(0,_.t)("Network not supported")]:n.includes("not found address to sign")||n.includes("unable to find account")||n.includes("unable to retrieve keypair")?["Address not found on SubWallet. Re-check the address information in the extension then try again"]:n.includes("account not in allowed list")?["Account disconnected from the dApp. Open the extension to re-connect the account and try again"]:n.includes("recipient address not found")?[(0,_.t)("Enter recipient address and try again"),(0,_.t)("Recipient address not found")]:n.includes("is not a number")||n.includes("invalid number value")||n.includes("invalid bignumberish")?[(0,_.t)("Amount must be an integer. Enter an integer and try again"),(0,_.t)("Invalid amount")]:n.includes("calculate estimate gas fee")||n.includes("invalidcode")?[(0,_.t)("Unable to calculate estimated gas for this transaction. Try again or contact support at agent@subwallet.app"),(0,_.t)("Gas calculation error")]:n.includes("invalid recipient address")?[(0,_.t)("Make sure the recipient address is valid and in the same type as the sender address, then try again"),(0,_.t)("Invalid recipient address")]:n.includes("must be different from sending address")?[(0,_.t)("The recipient address must be different from the sender address"),(0,_.t)("Invalid recipient address")]:n.includes("the sender address must be the ethereum address type")?[(0,_.t)("The sender address must be the ethereum address type"),(0,_.t)("Invalid address type")]:n.includes("insufficient balance")||n.includes("insufficient funds")?[(0,_.t)("Insufficient balance on the sender address. Top up your balance and try again"),(0,_.t)("Unable to sign transaction")]:n.includes("not found address or payload to sign")?[(0,_.t)("An error occurred when signing this request. Try again or contact support at agent@subwallet.app"),(0,_.t)("Unable to sign")]:n.includes("unsupported method")||n.includes("unsupported action")?[(0,_.t)("This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app"),(0,_.t)("Method not supported")]:n.includes("eip712 typed data")||n.includes("invalid message")?[(0,_.t)("An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app"),(0,_.t)("Unable to sign")]:[n,t||"Error"]}function V(e){return e.length>0?[{name:e[0].name,message:e[0].message}]:[]}a()}catch(U){a(U)}}))},43181:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Hh:()=>b,Ie:()=>m,KA:()=>h,aL:()=>g,e1:()=>f,wm:()=>y});var r=n(89071),i=n(340),s=n(91600),o=n(14298),c=n(9507),u=n(85658),l=n(96483),d=n(20258),p=e([s,i,r]);function h(e,t,n,a,r,d,p,h,f){const m=new l.A(r);if(!(0,s.Uy)(e)&&m.minus(p).lt((0,s.xe)(e))){const t=(0,u.ZV)(m.minus((0,s.xe)(e)),(0,s.W9)(e));return new i.J(c.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}if(new l.A(d).lte(a))return new i.J(o.xu.NOT_ENOUGH_BALANCE,`You don't have enough ${t.symbol} (${n.name}) to pay transaction fee`);if(!(0,s.Uy)(e)&&e.slug===t.slug&&m.lte(new l.A(a).plus(p)))return new i.J(o.xu.NOT_ENOUGH_BALANCE,`Insufficient balance. Deposit ${e.symbol} and try again.`);if(!h){if(f&&m.lte(f)){const t=(0,u.ZV)(f,(0,s.W9)(e));return new i.J(c.A5.SWAP_NOT_ENOUGH_BALANCE,`Insufficient balance. You need more than ${t} ${e.symbol} to start swapping. Deposit ${e.symbol} and try again.`)}if(new l.A(p).gte(r)){const t=(0,u.ZV)(r,(0,s.W9)(e));return new i.J(c.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}}}function f(e,t,n,a,r,d,p,h,f){const m=new l.A(r);if(new l.A(d).lte(a))return new i.J(o.xu.NOT_ENOUGH_BALANCE,`You don't have enough ${t.symbol} (${n.name}) to pay transaction fee`);if(e.slug===t.slug&&m.lte(new l.A(a).plus(p)))return new i.J(o.xu.NOT_ENOUGH_BALANCE,`Insufficient balance. Deposit ${e.symbol} and try again.`);if(!h){if(f&&m.lte(f)){const t=(0,u.ZV)(f,(0,s.W9)(e));return new i.J(c.A5.SWAP_NOT_ENOUGH_BALANCE,`Insufficient balance. You need more than ${t} ${e.symbol} to start swapping. Deposit ${e.symbol} and try again.`)}if(new l.A(p).gte(r)){const t=(0,u.ZV)(r,(0,s.W9)(e));return new i.J(c.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}}}function m(e,t){const n=(0,d.q)(t),a=(0,s.d)(e);if(n&&!a||!n&&a)return new i.J(c.A5.INVALID_RECIPIENT)}function y(e,t){switch(e){case c.A5.NOT_MEET_MIN_SWAP:{const n=`Amount too low. Increase your amount above ${(0,u.ZV)(t.minSwap.value,t.minSwap.decimals)} ${t.minSwap.symbol} and try again`;return new r.k(e,n)}case c.A5.SWAP_EXCEED_ALLOWANCE:if(t.maxSwap){const n=(0,u.ZV)(t.maxSwap.value,t.maxSwap.decimals);return new r.k(e,`Amount too high. Lower your amount below ${n} ${t.maxSwap.symbol} and try again`)}return new r.k(e,"Amount too high. Lower your amount and try again");case c.A5.ASSET_NOT_SUPPORTED:return new r.k(e,"This swap pair is not supported");case c.A5.UNKNOWN:return new r.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case c.A5.ERROR_FETCHING_QUOTE:return new r.k(e,"No swap quote found. Adjust your amount or try again later.");default:return new r.k(e)}}function g(e,t){switch(e){case c.A5.AMOUNT_CANNOT_BE_ZERO:return new r.k(e,"Amount too low. Increase your amount above 0 and try again");case c.A5.ASSET_NOT_SUPPORTED:return new r.k(e,"This swap pair is not supported");case c.A5.UNKNOWN:return new r.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case c.A5.ERROR_FETCHING_QUOTE:return new r.k(e,"No swap quote found. Adjust your amount or try again later.");default:return new r.k(e)}}function b(e,t){switch(e){case c.A5.AMOUNT_CANNOT_BE_ZERO:return new r.k(e,"Amount too low. Increase your amount above 0 and try again");case c.A5.ASSET_NOT_SUPPORTED:return new r.k(e,"This swap pair is not supported");case c.A5.UNKNOWN:return new r.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case c.A5.ERROR_FETCHING_QUOTE:return new r.k(e,"No swap quote found. Adjust your amount or try again later.");case c.A5.MAKE_POOL_NOT_ENOUGH_EXISTENTIAL_DEPOSIT:return new r.k(e,"You swap too much. It make pool not enough existential deposit");default:return new r.k(e)}}[s,i,r]=p.then?(await p)():p,a()}catch(v){a(v)}}))},67457:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Dx:()=>T,Dz:()=>x,F1:()=>O,PH:()=>N,R4:()=>E,Yj:()=>B,lC:()=>C,n6:()=>P,qM:()=>R,z6:()=>k});var r=n(340),i=n(11266),s=n(77620),o=n(31355),c=n(33892),u=n(13687),l=n(45723),d=n(91600),p=n(58109),h=n(38157),f=n(14298),m=n(78932),y=n(47521),g=n(85658),b=n(80995),v=n(1268),_=n(61116),A=n(96483),w=n(9492),I=n(20258),S=e([_,r,d,s,o,p,b,c,u]);function x(e,t,n,a,i){const s=[],o=_.AC.getPair(t);let c;return i||(void 0===a&&s.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("Transfer amount is required"))),a&&(c=new A.A(a))),e||s.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("Not found token from registry"))),(0,I.q)(t)&&(0,I.q)(n)&&(0,d.Bb)(e)&&0===(0,d._b)(e).length&&s.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("Not found ERC20 address for this token"))),(0,v.Yy)(t)&&(0,v.Yy)(n)&&(0,d.hV)(e)&&0===(0,d._b)(e).length&&s.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("Not found TEP74 address for this token"))),[s,o,c]}function C(e,t,n,a,o,c,u){const l=(0,d.xe)(e),p=(0,d.xe)(t),h=[],y=[];if(n===i.M_.TRANSFER_TOKEN&&c&&new A.A(c).minus(o).lt(l)){const e=new s.D(m.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT);h.push(e)}if(n===i.M_.TRANSFER_TOKEN&&u&&new A.A(u).lt(p)){const n=new r.J(f.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,w.t)("The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again",{replace:{amount:u,nativeSymbol:t.symbol,localSymbol:e.symbol}}));y.push(n)}if(new A.A(a).plus(o).lt(l)){const t=new A.A(l).minus(a).plus(0===(e.decimals||0)?0:1),n=(0,g.ZV)(t,e.decimals||0,g.x1,{maxNumberFormat:e.decimals||6}),i=new r.J(f.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,w.t)("You must transfer at least {{amount}} {{symbol}} to keep the destination account alive",{replace:{amount:n,symbol:e.symbol}}));y.push(i)}return[h,y]}function k(e,t,n){const a=[],i=_.AC.getPair(t),s=new A.A(n);return e||a.push(new r.J(f.Ws.INVALID_TOKEN,(0,w.t)("Not found token from registry"))),[a,i,s]}function T(e,t,n,a,i,c,u=!1){const l=(0,d.xe)(t),p=new A.A(l).multipliedBy(o.fn);let h,y;if(new A.A(n).lt(p)){const n=(0,g.ZV)(p,t.decimals||0,g.x1,{maxNumberFormat:t.decimals||6});h=new r.J(f.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,w.t)("You must transfer at least {{amount}} {{symbol}} to keep the destination account alive",{replace:{amount:n,symbol:e.symbol}}))}const b=(0,d.Uy)(t)?new A.A(i).plus(n):new A.A(i);if(u&&b.lt((0,d.fK)(c))){const{decimals:e,symbol:t}=(0,d.N2)(c),n=(0,g.ZV)((0,d.fK)(c),e||0,g.x1,{maxNumberFormat:6});h=new r.J(f.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,w.t)(" Insufficient {{symbol}} on {{chain}} to cover min balance ({{amount}} {{symbol}})",{replace:{amount:n,symbol:t,chain:c.name}}))}return(0,d.Uy)(e)||new A.A(a).minus(n).lt((0,d.xe)(e))&&(y=new s.D(m.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)),[y,h]}function E(e,t,n){const a=`${e.extrinsicType}___${e.chain}`;t.includes(a)&&e.errors.push(new r.J(f.xu.UNSUPPORTED,(0,w.t)(`Feature under maintenance on ${n.name} network. Try again later`)))}function P(e,t){const n=e.extrinsicType;let a="";switch(n){case i.M_.TRANSFER_BALANCE:case i.M_.TRANSFER_TOKEN:a=`${n}___${e.data.tokenSlug}`;break;case i.M_.TRANSFER_XCM:{const t=e.data;a=`${n}___${t.tokenSlug}___${t.destinationNetworkKey}`;break}case i.M_.SEND_NFT:{const t=e.data;a=`${n}___${t.networkKey}___${t.nftItem.collectionId}`;break}case i.M_.SWAP:{const t=e.data;a=`${n}___${t.quote.pair.slug}___${t.provider.id}`;break}case i.M_.STAKING_BOND:a=`${n}___${e.data.chain}`;break;case i.M_.STAKING_LEAVE_POOL:a=`${n}___${e.data.slug}`;break;case i.M_.STAKING_UNBOND:a=`${n}___${e.data.chain}`;break;case i.M_.STAKING_CLAIM_REWARD:case i.M_.STAKING_WITHDRAW:a=`${n}___${e.data.slug}`;break;case i.M_.STAKING_COMPOUNDING:case i.M_.STAKING_CANCEL_COMPOUNDING:a=`${n}___${e.data.networkKey}`;break;case i.M_.STAKING_CANCEL_UNSTAKE:a=`${n}___${e.data.slug}`;break;case i.M_.JOIN_YIELD_POOL:a=`${n}___${e.data.data.slug}`;break;case i.M_.MINT_VDOT:case i.M_.MINT_LDOT:case i.M_.MINT_SDOT:case i.M_.MINT_QDOT:case i.M_.MINT_STDOT:case i.M_.MINT_VMANTA:case i.M_.REDEEM_VDOT:case i.M_.REDEEM_LDOT:case i.M_.REDEEM_SDOT:case i.M_.REDEEM_QDOT:case i.M_.REDEEM_STDOT:case i.M_.REDEEM_VMANTA:case i.M_.UNSTAKE_VDOT:case i.M_.UNSTAKE_LDOT:case i.M_.UNSTAKE_SDOT:case i.M_.UNSTAKE_QDOT:case i.M_.UNSTAKE_STDOT:case i.M_.UNSTAKE_VMANTA:a=`${n}___${e.data.slug}`;break;case i.M_.TOKEN_SPENDING_APPROVAL:a=`${n}___${e.data.chain}`}Object.values(t).flat().includes(a)&&e.errors.push(new r.J(f.xu.UNSUPPORTED,(0,w.t)("Feature under maintenance. Try again later")))}function O(e,t){const{extrinsicType:n}=e;t||(n===i.M_.SEND_NFT?e.errors.push(new r.J(f.xu.UNSUPPORTED,(0,w.t)("This feature is not yet available for this NFT"))):e.errors.push(new r.J(f.xu.UNSUPPORTED)))}async function B(e,t,n,a){const i={symbol:"",decimals:0,value:"0",tooHigh:!1},{decimals:s,symbol:o}=(0,d.N2)(n);if(i.decimals=s,i.symbol=o,t)try{if((0,h.iW)(t))i.value=(await t.paymentInfo(e.address)).partialFee.toString();else if((0,h.U4)(t))i.value=t.estimateFee;else{const e=await a.api.eth.estimateGas(t),r=await(0,p.oc)(a,n.slug);if(r.baseGasFee){const t=r.maxFeePerGas;i.value=t.multipliedBy(e).toFixed(0)}else i.value=new A.A(r.gasPrice).multipliedBy(e).toFixed(0);i.tooHigh=r.busyNetwork}}catch(t){const n=t;n.message.includes("gas required exceeds allowance")&&n.message.includes("insufficient funds")&&e.errors.push(new r.J(f.xu.NOT_ENOUGH_BALANCE))}return i}function R(e,t){const{address:n,chain:a,chainType:i,extrinsicType:s}=e,o=_.AC.getPair(n);if(o){const n=(0,b.nW)(o,t);n.transactionActions.includes(s)?n.specialChain&&n.specialChain!==a?e.errors.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("This feature is not available with this account"))):([y.G1.LEGACY_LEDGER,y.G1.GENERIC_LEDGER].includes(n.signMode)?c.G:c.u)[i].includes(n.chainType)||e.errors.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("This feature is not available with this account"))):e.errors.push(new r.J(f.xu.INVALID_PARAMS,(0,w.t)("This feature is not available with this account")))}else e.errors.push(new r.J(f.xu.INTERNAL_ERROR,(0,w.t)("Unable to find account")))}function N(e,t,n,a){if(!e.estimateFee)return;const{edAsWarning:o,extrinsicType:c,isTransferAll:p,skipFeeValidation:h}=t;if(h)return;const y=new A.A(e.estimateFee.value),g=new A.A(a.value),b=new A.A(e.transferNativeAmount||"0");g.gt(0)||e.errors.push(new r.J(f.xu.NOT_ENOUGH_BALANCE));const v=[...l.Lu.acala,...l.Lu.genshiro,...l.Lu.bitcountry,...l.Lu.statemine].includes(n.originChain);!b.plus(y).gt(g)||p&&!v||e.errors.push(new r.J(f.xu.NOT_ENOUGH_BALANCE));const _=!p&&c===i.M_.TRANSFER_BALANCE&&a.metadata&&(0,u.Hw)(a.metadata),w=g.minus(b).minus(y).lt((0,d.xe)(n));_&&w&&(o?e.warnings.push(new s.D(m.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)):e.errors.push(new r.J(f.xu.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)))}[_,r,d,s,o,p,b,c,u]=S.then?(await S)():S,a()}catch(M){a(M)}}))},78399:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{DY:()=>u,Ys:()=>c});var r=n(12688),i=n(39572),s=e([i]);function o(e){return void 0!==e.status&&void 0===e.isFrozen}function c(e,t,n){const a=(0,i.bF)(r.a.PalletAssetsAssetAccount,n);return o(e)?l(e,t,a):d(e,t,a)}function u(e){return o(e)?p(e):h(e)}function l(e,t,n){const a=(0,i.je)(t,n);return"Liquid"===e.status?BigInt(e.balance)-a:BigInt(0)}function d(e,t,n){const a=(0,i.je)(t,n);return e.isFrozen?BigInt(0):BigInt(e.balance)-a}function p(e){return"Liquid"!==e.status?BigInt(e.balance):BigInt(0)}function h(e){return e.isFrozen?BigInt(e.balance):BigInt(0)}i=(s.then?(await s)():s)[0],a()}catch(f){a(f)}}))},26159:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{a:()=>c,t:()=>o});var r=n(12688),i=n(39572),s=e([i]);function o(e,t,n){const a=(0,i.bF)(r.a.PalletAssetsAssetAccount,n);return"Liquid"===e.status?BigInt(e.balance)-(0,i.je)(t,a):BigInt(0)}function c(e){return"Liquid"!==e.status?BigInt(e.balance):BigInt(0)}i=(s.then?(await s)():s)[0],a()}catch(u){a(u)}}))},42111:(e,t,n)=>{"use strict";function a(e){return function(e){return BigInt(e.points)}(e)+function(e){return Object.values(e.unbondingEras).map((e=>BigInt(e))).reduce(((e,t)=>e+t),BigInt(0))}(e)}n.d(t,{ho:()=>a})},18710:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{c:()=>c,v:()=>o});var r=n(12688),i=n(39572),s=e([i]);function o(e,t,n){const a=(0,i.bF)(r.a.OrmlTokensAccountData,n),s=(0,i.je)(t,a),o=BigInt(e.frozen);return BigInt(e.free)-(0,i.Up)(o,s)}function c(e){const t=BigInt(e.frozen);return BigInt(e.reserved)+t}i=(s.then?(await s)():s)[0],a()}catch(u){a(u)}}))},13687:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Hw:()=>u,cW:()=>c,zA:()=>l});var r=n(12688),i=n(39572),s=e([i]);function o(e){return void 0!==e.data.miscFrozen&&void 0!==e.data.feeFrozen}function c(e,t,n){const a=(0,i.bF)(r.a.FrameSystemAccountInfo,n);return o(e)?f(e,t,a):p(e,t,a)}function u(e){return 0===e.consumers}function l(e){return o(e)?m(e):h(e)}function d(e,t,n){const a=BigInt(t);return n?a:u(e)?BigInt(0):a}function p(e,t,n){const a=BigInt(e.data.frozen)-BigInt(e.data.reserved),r=d(e,t,n),s=BigInt(e.data.free)-(0,i.Up)(a,r);return(0,i.Up)(s,BigInt(0))}function h(e){return BigInt(e.data.free)+BigInt(e.data.reserved)}function f(e,t,n){const a=BigInt(d(e,t,n)),r=(0,i.Up)(BigInt(e.data.feeFrozen),BigInt(e.data.miscFrozen)),s=BigInt(e.data.free)-(0,i.Up)(r,a);return(0,i.Up)(s,BigInt(0))}function m(e){return BigInt(e.data.free)+BigInt(e.data.reserved)}i=(s.then?(await s)():s)[0],a()}catch(y){a(y)}}))},6082:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Ep:()=>c,ZE:()=>o});var r=n(12688),i=n(39572),s=e([i]);function o(e,t,n){const a=(0,i.bF)(r.a.OrmlTokensAccountData,n),s=(0,i.je)(t,a);return BigInt(e.free)-(0,i.Up)(BigInt(e.frozen),s)}function c(e){return BigInt(e.reserved)+BigInt(e.frozen)}i=(s.then?(await s)():s)[0],a()}catch(u){a(u)}}))},12688:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});const a={FrameSystemAccountInfo:"FrameSystemAccountInfo",OrmlTokensAccountData:"OrmlTokensAccountData",PalletAssetsAssetAccount:"PalletAssetsAssetAccount"}},97245:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{SD:()=>h,Zw:()=>w,au:()=>f,eO:()=>y,eZ:()=>m,mj:()=>d,v4:()=>p});var r=n(45654),i=n(91600),s=n(89976),o=n(76515),c=e([i]);i=(c.then?(await c)():c)[0];const u=5e9,l="Unlimited";function d(e){return["pioneer"].includes(e.slug)?u:l}function p(e,t,n){return{[`V${n}`]:{parents:0,interior:{X1:n<4?_(e,t,n):[_(e,t,n)]}}}}function h(e,t,n){return{[`V${n}`]:[{id:A(e,n),fun:{Fungible:t}}]}}function f(e,t,n,a){const r=m(e,t);return{[`V${n}`]:{parents:g(e,r),interior:b(t,r,n,a)}}}function m(e,t){return(0,i.md)(e)===t.slug||(0,i.md)(t)===e.slug||(0,i.md)(e)===(0,i.md)(t)}function y(e,t){return!m(e,t)&&((0,i.Rz)(e)||(0,i.Rz)(t))}function g(e,t){let n=0;return(0,i.Ex)(e)&&(n+=1),t||(n+=1),n}function b(e,t,n,a){const r=[];return t||r.push({GlobalConsensus:v(e,n)}),(0,i.Ex)(e)&&r.push({Parachain:(0,i.mP)(e)}),a&&r.push(_(e,a,n)),0!==r.length||a?n<4&&1===r.length?{X1:r[0]}:{[`X${r.length}`]:r}:"Here"}function v(e,t){let n,a=e.slug;if((0,i.Ex)(e)){const t=(0,i.md)(e);if(!t)throw Error("Parachain must have a parent chainSlug");a=t}else n=(0,i.iO)(e);if(n)return{Ethereum:{chainId:n}};switch(a){case r.zF.POLKADOT:return t<4?{Polkadot:null}:"Polkadot";case r.zF.KUSAMA:return t<4?{Kusama:null}:"Kusama";default:return t<4?{Rococo:null}:"Rococo"}}function _(e,t,n){const a=I(n);if(e.slug===r.zF.ASTAR_EVM){const n=(0,s.a)(t,(0,i.U0)(e));return{AccountId32:{network:a,id:(0,o.F)(n)}}}return(0,i.d)(e)?{AccountKey20:{network:a,key:t}}:{AccountId32:{network:a,id:(0,o.F)(t)}}}function A(e,t){const n=(0,i.q6)(e);if(!n)throw new Error("Asset must have multilocation");const a=["statemint-LOCAL-KSM","statemine-LOCAL-DOT"].includes(e.slug)?n:w(n,t);return t>=4?a:{Concrete:a}}function w(e,t){const n=structuredClone(e),a=n.interior,r="object"==typeof a&&null!==a,i=r&&"X1"in a,s=t<4&&Array.isArray(a.X1);return r&&i&&s&&(a.X1=a.X1[0]),n}function I(e){switch(e){case 1:case 2:return"Any";default:return}}a()}catch(S){a(S)}}))},39572:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Up:()=>c,bF:()=>s,je:()=>o});var r=n(11266),i=n(12688);function s(e,t){return!(e!==i.a.FrameSystemAccountInfo||t&&[r.M_.TRANSFER_BALANCE].includes(t))}function o(e,t){return t?BigInt(e):BigInt(0)}function c(e,t){return e>t?e:t}a()}catch(u){a(u)}}))},1555:(e,t,n)=>{"use strict";n.d(t,{Gg:()=>u,Jb:()=>i,L1:()=>s,Rn:()=>a,c8:()=>r,mK:()=>c,zf:()=>o});const a=["/","/settings/security","/accounts/connect-ledger","/accounts/restore-json","/accounts/detail","/accounts/new-seed-phrase"],r="/phishing-page-detected",i={NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.EXTENSION_PREFIX||"",s={NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.3.2-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:"https://mint-dev.anhmtv.xyz/",INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0,CHAINFLIP_BROKER_API:"92fd9068d12a4c02874ab4ae32219424",BITTENSOR_API_KEY_1:"nP1095xiLqfM9NhEARVfo61LYxaHhSi4tAAcbbxojl9TVc0tpz2vJGIs8zQTpLRR",BITTENSOR_API_KEY_2:"XqdiqHRFVj4X1rbgd2J2ctLBqYfE6xH5whKWL1pcSG126zWyJJjm7hNjK8fGpdWZ"}.ID_PREFIX||i||"",o=`${i}mobile`,c=`${i}koni-content`,u=`${i}koni-extension`},12598:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Ji:()=>o,WV:()=>c,o3:()=>u});var r=n(80562),i=n(58109),s=e([i]);i=(s.then?(await s)():s)[0];const o=(e,t,n={})=>new t.api.eth.Contract(r.tA,e,n);function c(e,t,n,a={}){return new t.api.eth.Contract(n,e,a)}async function u(e,t,n,a,r="115792089237316195423570985008687907853269984665640564039457584007913129639935"){var s,c;const u=o(n,a).methods.approve(e,r),l=u.encodeABI(),d=await u.estimateGas({from:t}),p=await(0,i.oc)(a,a.chainSlug);return{from:t,to:n,data:l,gas:d,gasPrice:p.gasPrice,maxFeePerGas:null===(s=p.maxFeePerGas)||void 0===s?void 0:s.toString(),maxPriorityFeePerGas:null===(c=p.maxPriorityFeePerGas)||void 0===c?void 0:c.toString()}}a()}catch(l){a(l)}}))},80562:(e,t,n)=>{"use strict";n.d(t,{AP:()=>s,BP:()=>f,Lu:()=>l,Mf:()=>u,Po:()=>i,gH:()=>d,jA:()=>o,kn:()=>c,tA:()=>r,tM:()=>m});var a=n(45654);const r=n(72445),i=n(49795),s=(n(86970),n(13932)),o=n(891),c=n(54852),u=n(8640),l=n(62723),d=n(60632),p="0x27ca963C279c93801941e1eB8799c23f407d68e7",h="0x5B4909cE6Ca82d2CE23BD46738953c7959E710Cd";function f(e){return e===a.zF.ETHEREUM_SEPOLIA?h:p}function m(e){return[p,h].includes(e)}},95821:(e,t,n)=>{"use strict";n.d(t,{WM:()=>u,ZL:()=>l,d4:()=>i,i$:()=>c,vy:()=>s});var a=n(80562),r=n(79626);function i(e,t){return new r.AP(e,a.AP,t)}function s(e){return["XoywUxTTtNKPRrRN7V5KXCqz2QLMFeK7DxhpSniqZHps5Xq"].includes(e)}function o(e){return["aZ9bd2tHeGKrs3FnJv5oe7kgVrP5GQvdJMhC2GxjXA2Yqbd"].includes(e)}function c(e){return["5FsB91tXSEuMj6akzdPczAtmBaVKToqHmtAwSUzXh49AYzaD","5CTQBfBC9SfdrCDBJdfLiyW2pg9z5W6C6Es8sK313BLnFgDf"].includes(e)}function u(e,t){return s(t)?new r.AP(e,a.kn,t):o(t)?new r.AP(e,a.Mf,t):c(t)?new r.AP(e,a.Lu,t):new r.AP(e,a.jA,t)}function l(e){return s(e)?"pinkMint::tokenUri":o(e)?"tokenUri":"psp34Traits::tokenUri"}},17540:(e,t,n)=>{"use strict";n.d(t,{a:()=>u,x:()=>c});var a=n(82823),r=n.n(a);const i="5000000000000",s="1000000000000",o=(e,t)=>{const n=e.abi.messages.find((e=>e.method===t));if(!n){const n=null==e?void 0:e.abi.messages.map((e=>e.method)).join(", ");return{ok:!1,error:`"${t}" not found in metadata.spec.messages: [${n}]`}}return{ok:!0,value:n}};async function c(e,t,n,a,i={},s=[]){try{var c;const l=o(a,n);if(!l.ok)return u(e,!0);const{gasLimit:d,storageDepositLimit:p,value:h}=i,{gasRequired:f}=await e.call.contractsApi.call(t,a.address,null!=h?h:new(r())(0),null!=d?d:null,null!=p?p:null,null==l||null===(c=l.value)||void 0===c?void 0:c.toU8a(s));return f}catch{return u(e,!0)}}function u(e,t){const n=t?3407872:i,a=t?3249e7:s;return e.registry.createType("WeightV2",{refTime:a,proofSize:n})}},17807:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Y:()=>w});var r=n(45654),i=n(38397),s=n(11266),o=n(31355),c=n(33385),u=n(63091),l=n(21778),d=n(12561),p=n(82823),h=n.n(p),f=e([o,l]);[o,l]=f.then?(await f)():f;const m={[i.$y.IN_AUCTION]:s.tf.ONGOING,[i.$y.WITHDRAW]:s.tf.FAILED,[i.$y.FAILED]:s.tf.FAILED,[i.$y.WON]:s.tf.COMPLETED};function y(e){const t={};return e.forEach((e=>{e.slug&&(t[e.slug]=e)})),t}const g=(0,d.j)("crowdloan-funds"),b=(async()=>y(await(0,d.j)("chains")))();function v(e,t,n,a){const{auctionIndex:r,endTime:i,firstPeriod:o,fundId:c,lastPeriod:u,paraId:l,startTime:d,status:p}=t,f=e.api.derive.crowdloan.ownContributions(l,n,(e=>{let n=new(h())(0);Object.values(e).forEach((e=>{n=n.add(e.toBn())}));const f={state:s.Xf.READY,paraState:m[t.status],contribute:n.toString(),fundId:c,paraId:l,status:p,startTime:d,endTime:i,auctionIndex:r,firstPeriod:o,lastPeriod:u};a(f)}));return()=>{f.then((e=>{e()})).catch(console.error)}}const _=(e,t,n)=>{const{auctionIndex:a,endTime:r,firstPeriod:i,fundId:c,lastPeriod:l,paraId:d,startTime:p,status:f}=t,y=m[t.status],g=()=>{Promise.all(e.map((e=>(0,u.x6)(`https://api.polkawallet.io/acala-distribution-v2/crowdloan?account=${e}`)))).then((e=>{let t=new(h())(0);e.forEach((e=>{var n,a,r;t=t.add(new(h())((null===(n=e.data.data)||void 0===n||null===(a=n.acala)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.totalDOTLocked)||"0"))}));const o={state:s.Xf.READY,paraState:y,contribute:t.toString(),fundId:c,paraId:d,status:f,startTime:p,endTime:r,auctionIndex:a,firstPeriod:i,lastPeriod:l};n(o)})).catch(console.error)};g();const b=setInterval(g,o.$P);return()=>{clearInterval(b)}};function A(e,t,n){return!e[t]||!n.auctionIndex&&n.status===i.$y.IN_AUCTION||n.auctionIndex>e[t].auctionIndex}async function w(e,t,n){const a={},i={},s=await g,o=await b;if(s.forEach((e=>{const t=e.chain;A(i,t,e)&&(i[t]=e)})),Object.keys(t).includes(r.zF.KUSAMA)&&Object.keys(t).includes(r.zF.POLKADOT)){const s=Date.now(),u=await t[r.zF.POLKADOT].isReady,d=await t[r.zF.KUSAMA].isReady,p=(0,l.ND)(e).substrate,h=p.map((e=>c.A.createType("AccountId",e).toHex()));if(0===e.length)return;Object.values(i).forEach((e=>{var t;const i=e.chain,c=new Date(e.endTime).getTime(),f=e.relayChain,y=null===(t=o[i])||void 0===t?void 0:t.substrateInfo;if(i&&f&&m[e.status]&&e.paraId&&c>s&&y){const t=e=>{n(i,e)};if(e.paraId=y.crowdloanParaId||y.paraId||e.paraId,i===r.zF.ACALA){const n=p.map((e=>(0,l.le)(e,10,!1)));a.acala=_(n,e,t)}else f===r.zF.POLKADOT?a[i]=v(u,e,h,t):f===r.zF.KUSAMA&&(a[i]=v(d,e,h,t))}}))}return()=>{Object.values(a).forEach((e=>{e&&e()}))}}a()}catch(I){a(I)}}))},1676:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>J,BO:()=>Q,Fr:()=>Y});var a,r,i,s,o=n(79626),c=n(55880),u=n(91234),l=n(84648),d=n(82823),p=n(87004),h=n(83461),f=n(14143),m=n(76515),y=n(90293),g=n(82336),b=n(76119),v=n(57278),_=Object.create,A=Object.defineProperty,w=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,S=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,C=(a=(e,t)=>{t.exports={source:{hash:"0x63308c1311af44bb47082327c301fce559ca28f6bb010a61b9884d9246746abf",language:"ink! 4.2.1",compiler:"rustc 1.68.0-nightly",build_info:{build_mode:"Release",cargo_contract_version:"3.0.1",rust_toolchain:"nightly-aarch64-apple-darwin",wasm_opt_settings:{keep_debug_symbols:!1,optimization_passes:"Z"}}},contract:{name:"azns_router",version:"1.0.0",authors:["AZERO.ID "]},spec:{constructors:[{args:[{label:"admin",type:{displayName:["AccountId"],type:0}}],default:!1,docs:[],label:"new",payable:!1,returnType:{displayName:["ink_primitives","ConstructorResult"],type:6},selector:"0x9bae9d5e"}],docs:[],environment:{accountId:{displayName:["AccountId"],type:0},balance:{displayName:["Balance"],type:25},blockNumber:{displayName:["BlockNumber"],type:28},chainExtension:{displayName:["ChainExtension"],type:29},hash:{displayName:["Hash"],type:26},maxEventTopics:4,timestamp:{displayName:["Timestamp"],type:27}},events:[],lang_error:{displayName:["ink","LangError"],type:8},messages:[{args:[{label:"tld",type:{displayName:["Vec"],type:4}},{label:"registry_addr",type:{displayName:["AccountId"],type:0}}],default:!1,docs:[],label:"add_registry",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:9},selector:"0xc997efe3"},{args:[{label:"tld",type:{displayName:["Vec"],type:4}},{label:"registry_addr",type:{displayName:["AccountId"],type:0}}],default:!1,docs:[],label:"update_registry",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:9},selector:"0x562de86b"},{args:[{label:"registry_addr",type:{displayName:["AccountId"],type:0}}],default:!1,docs:[],label:"remove_registry_address",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:9},selector:"0xcc78aead"},{args:[],default:!1,docs:[],label:"get_all_registries",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:12},selector:"0xe6da7bf0"},{args:[],default:!1,docs:[],label:"get_all_tlds",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:15},selector:"0xf1a7af41"},{args:[{label:"registry_addr",type:{displayName:["AccountId"],type:0}}],default:!1,docs:[],label:"get_associated_tlds",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:15},selector:"0xcb18f821"},{args:[{label:"tld",type:{displayName:["String"],type:5}}],default:!1,docs:[],label:"get_registry",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:16},selector:"0x15a5d20a"},{args:[{label:"domain",type:{displayName:["String"],type:5}}],default:!1,docs:[],label:"get_address",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:18},selector:"0xd259f7ba"},{args:[{label:"account",type:{displayName:["AccountId"],type:0}},{label:"tld",type:{displayName:["Option"],type:20}}],default:!1,docs:[" @returns list of (registry-address, primary-domain) for given account"],label:"get_primary_domains",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:21},selector:"0xdf3a358e"},{args:[],default:!1,docs:[],label:"get_admin",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:24},selector:"0x57b8a8a7"},{args:[],default:!1,docs:[],label:"get_pending_admin",mutates:!1,payable:!1,returnType:{displayName:["ink","MessageResult"],type:16},selector:"0xbcd31d76"},{args:[{label:"account",type:{displayName:["Option"],type:17}}],default:!1,docs:[],label:"transfer_ownership",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:9},selector:"0x107e33ea"},{args:[],default:!1,docs:[],label:"accept_ownership",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:9},selector:"0xb55be9f0"},{args:[{label:"code_hash",type:{displayName:[],type:1}}],default:!1,docs:[],label:"upgrade_contract",mutates:!0,payable:!1,returnType:{displayName:["ink","MessageResult"],type:6},selector:"0x1345543d"}]},storage:{root:{layout:{struct:{fields:[{layout:{leaf:{key:"0x00000000",ty:0}},name:"admin"},{layout:{enum:{dispatchKey:"0x00000000",name:"Option",variants:{0:{fields:[],name:"None"},1:{fields:[{layout:{leaf:{key:"0x00000000",ty:0}},name:"0"}],name:"Some"}}}},name:"pending_admin"},{layout:{leaf:{key:"0x00000000",ty:3}},name:"registry"},{layout:{root:{layout:{leaf:{key:"0x00000064",ty:0}},root_key:"0x00000064"}},name:"routes"},{layout:{root:{layout:{leaf:{key:"0x00000065",ty:4}},root_key:"0x00000065"}},name:"associated_tlds"}],name:"Router"}},root_key:"0x00000000"}},types:[{id:0,type:{def:{composite:{fields:[{type:1,typeName:"[u8; 32]"}]}},path:["ink_primitives","types","AccountId"]}},{id:1,type:{def:{array:{len:32,type:2}}}},{id:2,type:{def:{primitive:"u8"}}},{id:3,type:{def:{sequence:{type:0}}}},{id:4,type:{def:{sequence:{type:5}}}},{id:5,type:{def:{primitive:"str"}}},{id:6,type:{def:{variant:{variants:[{fields:[{type:7}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:7},{name:"E",type:8}],path:["Result"]}},{id:7,type:{def:{tuple:[]}}},{id:8,type:{def:{variant:{variants:[{index:1,name:"CouldNotReadInput"}]}},path:["ink_primitives","LangError"]}},{id:9,type:{def:{variant:{variants:[{fields:[{type:10}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:10},{name:"E",type:8}],path:["Result"]}},{id:10,type:{def:{variant:{variants:[{fields:[{type:7}],index:0,name:"Ok"},{fields:[{type:11}],index:1,name:"Err"}]}},params:[{name:"T",type:7},{name:"E",type:11}],path:["Result"]}},{id:11,type:{def:{variant:{variants:[{index:0,name:"NotAdmin"},{index:1,name:"InvalidRegistryAddress"},{fields:[{type:5,typeName:"String"}],index:2,name:"TldAlreadyInUse"},{fields:[{type:5,typeName:"String"}],index:3,name:"TldNotFound"},{index:4,name:"CouldNotResolveDomain"},{index:5,name:"InvalidDomainName"},{index:6,name:"EmptyList"}]}},path:["azns_router","azns_router","Error"]}},{id:12,type:{def:{variant:{variants:[{fields:[{type:13}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:13},{name:"E",type:8}],path:["Result"]}},{id:13,type:{def:{sequence:{type:14}}}},{id:14,type:{def:{tuple:[0,4]}}},{id:15,type:{def:{variant:{variants:[{fields:[{type:4}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:4},{name:"E",type:8}],path:["Result"]}},{id:16,type:{def:{variant:{variants:[{fields:[{type:17}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:17},{name:"E",type:8}],path:["Result"]}},{id:17,type:{def:{variant:{variants:[{index:0,name:"None"},{fields:[{type:0}],index:1,name:"Some"}]}},params:[{name:"T",type:0}],path:["Option"]}},{id:18,type:{def:{variant:{variants:[{fields:[{type:19}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:19},{name:"E",type:8}],path:["Result"]}},{id:19,type:{def:{variant:{variants:[{fields:[{type:0}],index:0,name:"Ok"},{fields:[{type:11}],index:1,name:"Err"}]}},params:[{name:"T",type:0},{name:"E",type:11}],path:["Result"]}},{id:20,type:{def:{variant:{variants:[{index:0,name:"None"},{fields:[{type:5}],index:1,name:"Some"}]}},params:[{name:"T",type:5}],path:["Option"]}},{id:21,type:{def:{variant:{variants:[{fields:[{type:22}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:22},{name:"E",type:8}],path:["Result"]}},{id:22,type:{def:{sequence:{type:23}}}},{id:23,type:{def:{tuple:[0,5]}}},{id:24,type:{def:{variant:{variants:[{fields:[{type:0}],index:0,name:"Ok"},{fields:[{type:8}],index:1,name:"Err"}]}},params:[{name:"T",type:0},{name:"E",type:8}],path:["Result"]}},{id:25,type:{def:{primitive:"u128"}}},{id:26,type:{def:{composite:{fields:[{type:1,typeName:"[u8; 32]"}]}},path:["ink_primitives","types","Hash"]}},{id:27,type:{def:{primitive:"u64"}}},{id:28,type:{def:{primitive:"u32"}}},{id:29,type:{def:{variant:{}},path:["ink_env","types","NoChainExtension"]}}],version:"4"}},()=>(r||a(r={exports:{}},r),r.exports)),k=((s=k||{}).AlephZero="alephzero",s.AlephZeroTestnet="alephzero-testnet",s.Development="development",s),T=Object.values(k),E=[{network:"alephzero",name:"Aleph Zero",ss58Prefix:42,rpcUrls:["wss://ws.azero.dev"]},{network:"alephzero-testnet",name:"Aleph Zero Testnet",ss58Prefix:42,rpcUrls:["wss://ws.test.azero.dev"],testnet:!0},{network:"development",name:"Local Development",ss58Prefix:42,rpcUrls:["ws://127.0.0.1:9944"],testnet:!0}],P=(e=>(e.AZERO="azero",e.A0="a0",e.TZERO="tzero",e))(P||{}),O=((i=O||{}).Router="azns_router",i.Registry="azns_registry",i.FeeCalculator="azns_fee_calculator",i.MerkleVerifier="azns_merkle_verifier",i.NameChecker="azns_name_checker",i),B={alephzero:{azns_router:"5FfRtDtpS3Vcr7BTChjPiQNrcAKu3VLv4E1NGF6ng6j3ZopJ"},"alephzero-testnet":{azns_router:"5HXjj3xhtRMqRYCRaXTDcVPz3Mez2XBruyujw6UEkvn8PCiA"}},R=(e,t,n)=>n?.[t]??B[e]?.[t],N=async(e,t,n,a)=>{let r=await(async e=>await{azns_router:Promise.resolve().then((()=>((e,t,n)=>(n=null!=e?_(S(e)):{},((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of I(t))!x.call(e,n)&&void 0!==n&&A(e,n,{get:()=>t[n],enumerable:!(a=w(t,n))||a.enumerable});return e})(!t&&e&&e.__esModule?n:A(n,"default",{value:e,enumerable:!0}),e)))(C(),1)))}[e])(n);if(!r)throw new Error(`No metadata found for contract '${n}'.`);let i=R(t,n,a);if(!i)throw new Error(`No address found for contract '${n}' on chain '${t}'.`);let s=new o.AP(e,r,i);return c.debug(`Initialized contract '${n}' at address '${i}'`),{abi:r,address:i,contract:s}},M=class extends Error{name;message;cause;constructor({name:e,message:t,cause:n}){super(),this.name=e,this.message=t,this.cause=n}};function D(e){return"object"==typeof e&&null!==e&&"Err"in e}function L(e){return"object"==typeof e&&null!==e&&"Ok"in e}function V({result:e},t,n){let a,r="",i=!0;if(e.isOk){i=e.asOk.flags.toHuman().includes("Revert");let s=((e,t)=>{let n=e.abi.messages.find((e=>(0,u.WH)(e.method)===(0,u.WH)(t)));if(!n)throw new Error(`"${t}" not found in Contract`);return n})(t,n).returnType,o=function(e){return e?.lookupName||e?.type||""}(s),c=t.abi.registry,l=s?c.createTypeUnsafe(o,[e.asOk.data]).toHuman():"()";a=L(l)?l.Ok:D(l)?l.Err:l;let d=D(a)?"object"==typeof a.Err?JSON.stringify(a.Err,null,2):a.Err?.toString()??"Error":"Ok"!==a&&a?.toString()||"Error",p=L(l)?"object"==typeof a?JSON.stringify(a,null,"\t"):a?.toString()??"()":JSON.stringify(a,null,"\t")??"()";r=i?d:p}return{output:a,decodedOutput:r,isError:i}}var U,H,F,K,j=async(e,t)=>{if(U&&H?.network===e)return U;let n=E.find((t=>t.network===e)),a=n?.rpcUrls?.[0];if(!n||!a)throw new Error(`Given chain '${e}' not supported.`);let r=a.startsWith("http")?new g.e(a):new b.E(a),i=await v.G.create({provider:r,noInitWarn:!0,...t});return await i.isReadyOrError,c.debug(`Initialized API for chain '${e}'`),U=i,H=n,i},q=(e,t=.8)=>{let n=e.consts.system.blockWeights.toPrimitive()?.perClass?.normal?.maxExtrinsic;return((e,t,n)=>{let a=(0,l.A)(t),r=(0,l.A)(n);return e.registry.createType("WeightV2",{refTime:a,proofSize:r})})(e,n?.refTime?(0,l.A)(n.refTime).mul(new d(100*t)).div(new d(100)):new d(0),n?.proofSize?(0,l.A)(n.proofSize).mul(new d(100*t)).div(new d(100)):new d(0))},z=async(e,t,n)=>{let a=R(t,"azns_router",n);if(F&&K&&a===K)return F;let{contract:r}=await N(e,t,"azns_router",n);return K=a,F=r},G=class extends M{},W=async(e,t)=>{try{let n=Object.assign({chainId:"alephzero"},t);if(c.setLevel(n.debug?"DEBUG":"WARN"),!T.includes(n.chainId))return{primaryDomain:void 0,allPrimaryDomains:void 0,error:new G({name:"UNSUPPORTED_NETWORK",message:`Unsupported chainId '${n.chainId}' (must be one of: ${T.join(", ")})`})};let a=n?.customApi||await j(n.chainId),r=await z(a,n.chainId,n.customContractAddresses),i=(e||"").trim(),s=a.registry.chainSS58||42;try{if(n.ignoreAddressPrefix)i=(0,f.j)((0,p.qv)(e)?(0,h.V)(e):(0,m.F)(e),s);else if(!(0,y.l)(i,s)[0])throw new Error}catch{return{primaryDomain:void 0,allPrimaryDomains:void 0,error:new G({name:"INVALID_ADDRESS_FORMAT",message:"Address must have valid SS58 format"})}}let o=await r.query.getPrimaryDomains("",{gasLimit:q(a)},i,null),u=[],{output:l,isError:d,decodedOutput:g}=V(o,r,"get_primary_domains");if(d){let e=g?`Contract error while resolving address '${i}': ${g}`:`Contract failed while resolving address '${i}' without error message`;return c.error(e),{primaryDomain:void 0,allPrimaryDomains:void 0,error:new G({name:"CONTRACT_ERROR",message:e,cause:g})}}d||(u=(l||[]).map((([,e])=>e)));let b=u?.length?u[0]:null;return c.debug(b?`Resolved primary domain for address '${i}': ${b}`:`No primary domain found for address '${i}'`),{primaryDomain:b,allPrimaryDomains:u,error:void 0}}catch(t){return c.debug(`Error while resolving address '${e}':`,t),{primaryDomain:void 0,allPrimaryDomains:void 0,error:new G({name:"OTHER_ERROR",message:t?.message||"Unexpected error while resolving address",cause:t})}}},X=class extends M{},Z=async(e,t)=>{try{let n=Object.assign({chainId:"alephzero"},t);if(c.setLevel(n.debug?"DEBUG":"WARN"),!T.includes(n.chainId))return{address:void 0,error:new X({name:"UNSUPPORTED_NETWORK",message:`Unsupported chainId '${n.chainId}' (must be one of: ${T.join(", ")})`})};let a=n.skipSanitization?e:((e,t)=>{if(!e||"string"!=typeof e)return"";let n=Object.assign({trim:!0,lowercase:!0},void 0),a=e;return n.trim&&(a=a.trim()),n.lowercase&&(a=a.toLowerCase()),n.replaceUnderscores&&(a=a.replaceAll("_","-")),n.removeOuterNonAlphanumeric&&(a=a=a.replace(/^[^a-z0-9]+|[^a-z0-9]+$/g,"")),a})(e),r=new RegExp("^(?:([^.]+)\\.)([^.]+)$").exec(a);if(!r||3!==r.length)return{address:void 0,error:new X({name:"INVALID_DOMAIN_FORMAT",message:"Domain must be in format 'name.tld'"})};let[,,i]=r;if(!(e=>({alephzero:["azero","a0"],"alephzero-testnet":["tzero"]}[e]||[]))(n.chainId).includes(i)&&"development"!==n.chainId)return{address:void 0,error:new X({name:"UNSUPPORTED_TLD",message:`Unsupported TLD '${i}' on '${n.chainId}'`})};let s=n?.customApi||await j(n.chainId),o=await z(s,n.chainId,n.customContractAddresses),u=await o.query.getAddress("",{gasLimit:q(s)},a),{output:l,isError:d,decodedOutput:p}=V(u,o,"get_address"),h=null;if(d&&"CouldNotResolveDomain"!==p){let e=p?`Contract error while resolving domain '${a}': ${p}`:`Contract failed while resolving domain '${a}' without error message`;return c.error(e),{address:void 0,error:new X({name:"CONTRACT_ERROR",message:e,cause:p})}}return d||(h=l.Ok),c.debug(h?`Resolved address for domain '${a}': ${h}`:`Domain '${a}' not found`),{address:h,error:void 0}}catch(t){return c.debug(`Error while resolving domain '${e}':`,t),{address:void 0,error:new X({name:"OTHER_ERROR",message:t?.message||"Unexpected error while resolving domain",cause:t})}}};const J=["5FsB91tXSEuMj6akzdPczAtmBaVKToqHmtAwSUzXh49AYzaD","5CTQBfBC9SfdrCDBJdfLiyW2pg9z5W6C6Es8sK313BLnFgDf"];async function Y(e,t,n){let a=k.AlephZero;"alephTest"===t&&(a=k.AlephZeroTestnet);const r=await Z(e,{chainId:a,customApi:n});return r.error&&console.debug(r.error),(null==r?void 0:r.address)||void 0}async function Q(e,t,n){let a=k.AlephZero;"alephTest"===t&&(a=k.AlephZeroTestnet);const r=await W(e,{chainId:a,customApi:n});return r.error&&console.debug(r.error),(null==r?void 0:r.primaryDomain)||void 0}},29727:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var a=n(9492),r=n(83461);const i=e=>{const t=[],{args:n,meta:a}=e;for(let e=0;e")?JSON.stringify(n[e].toHuman(!1)):n[e].toRawType().startsWith("Vec")?n[e].map((e=>e.toString())):JSON.stringify(n[e].toHuman());const i=a.args[e].name.toHuman();t.push({argName:i,argValue:r})}return t},s=(e,t)=>{const n=t.registry,s=n.createType("ExtrinsicPayload",(0,r.V)(e)),o=s.nonce.toNumber(),c=s.tip.toNumber(),u=s.specVersion.toNumber(),l=s.era;let d=l.toString();l.isMortalEra&&(d={period:l.asMortalEra.period.toNumber(),phase:l.asMortalEra.phase.toNumber()});const p=s.method.toString(),h=n.createType("Call",p),f=`${h.section}.${h.method}`,m=[],y=h.args[0],g={era:d,tip:c,nonce:o,specVersion:u};if(null!=y&&y.toRawType().startsWith("Vec"))m.push({args:void 0,methodName:f}),y.forEach((e=>{n.createType("Call",e),m.push({args:i(e),methodName:`${e.section}.${e.method}`})}));else try{m.push({args:i(h),methodName:f})}catch(e){return{...g,message:(0,a.t)("Unable to decode the information"),method:p}}return{...g,method:m,message:""}}},33385:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=new(n(83141).O)},81081:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{h:()=>u});var r=n(35968),i=n(70797),s=n(19203),o=e([i,s]);[i,s]=o.then?(await o)():o;const c="https://apps.acala.network/portfolio/nft/";class u extends i.s{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,s.gU)(e)?e:e.includes("ipfs://")?(0,r.GA)()+e.split("ipfs://")[1]:(0,r.GA)()+e}async getNfts(e){if(!this.substrateApi)return[];const t=[];return await Promise.all(e.map((async e=>{const n=await this.substrateApi.api.query.ormlNFT.tokensByOwner.keys(e);if(n)for(const e of n){const n=e.toHuman();t.push({classId:n[1],tokenId:this.parseTokenId(n[2])})}}))),t}async getCollectionDetails(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.ormlNFT.classes(e)).toHuman();if(null==t||!t.metadata)return null;const n=await d(null==t?void 0:t.metadata);return{...n,image:this.parseUrl(n.image)}}async getTokenDetails(e){return this.substrateApi?(await this.substrateApi.api.query.ormlNFT.tokens(e.classId,e.tokenId)).toHuman():null}async handleNft(e,t){const n=await this.getNfts([e]);try{if(!n||0===n.length)return;const a=[],r=[];await Promise.all(n.map((async n=>{const i=this.parseTokenId(n.classId),s=this.parseTokenId(n.tokenId);a.includes(i)||a.push(i),r.push(s);const[o,u]=await Promise.all([this.getTokenDetails(n),this.getCollectionDetails(parseInt(i))]),l={id:s,name:null==o?void 0:o.name,description:o&&o.description?o.description:null==u?void 0:u.description,externalUrl:c+i,image:o&&o.image?this.parseUrl(null==o?void 0:o.image):null==u?void 0:u.image,collectionId:i,chain:this.chain,owner:e},d={collectionId:i,chain:this.chain,collectionName:null==u?void 0:u.name,image:null==u?void 0:u.image};t.updateItem(this.chain,l,e),t.updateCollection(this.chain,d)})))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.connect(),await this.handleNfts(e)}catch(e){return 0}return 1}}const l={"Content-Type":"application/json"},d=e=>{let t=e;return e?(t=(0,r.GA)()+e+"/metadata.json",fetch(t,{method:"GET",headers:l}).then((e=>e.json()))):null};a()}catch(e){a(e)}}))},82286:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>c});var r=n(11266),i=n(70797),s=n(19203),o=e([i,s]);[i,s]=o.then?(await o)():o;class c extends i.s{constructor(e,t,n){super(n,e,t)}getMetadata(e){let t=e;if((0,s.gU)(e)||(t=this.parseUrl(e),t&&0!==t.length))return fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json()))}async getNfts(e){if(!this.substrateApi)return[];const t=[];return await Promise.all(e.map((async e=>{const n=await this.substrateApi.api.query.nfts.account.keys(e);if(n)for(const e of n){const n=e.toHuman();t.push({classId:n[1],tokenId:this.parseTokenId(n[2])})}}))),t}async getTokenDetails(e){if(!this.substrateApi)return null;const{classId:t,tokenId:n}=e,a=(await this.substrateApi.api.query.nfts.itemMetadataOf(this.parseTokenId(t),this.parseTokenId(n))).toHuman();return null!=a&&a.data?this.getMetadata(null==a?void 0:a.data):null}async getCollectionDetail(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.nfts.collectionMetadataOf(e)).toHuman();return null!=t&&t.data?this.getMetadata(null==t?void 0:t.data):null}async handleNft(e,t){const n=await this.getNfts([e]);try{if(!n||0===n.length)return;const a=[],i=[];await Promise.all(n.map((async n=>{const s=this.parseTokenId(n.classId),o=this.parseTokenId(n.tokenId);a.includes(s)||a.push(s),i.push(o);const[c,u]=await Promise.all([this.getTokenDetails(n),this.getCollectionDetail(parseInt(s))]),l={id:o,name:null==c?void 0:c.name,description:null==c?void 0:c.description,image:c&&c.image?this.parseUrl(null==c?void 0:c.image):void 0,collectionId:this.parseTokenId(s),chain:this.chain,owner:e,assetHubType:r.cq.NFTS};t.updateItem(this.chain,l,e);const d={collectionId:s,chain:this.chain,collectionName:null==u?void 0:u.name,image:u&&u.image?this.parseUrl(null==u?void 0:u.image):void 0};t.updateCollection(this.chain,d)})))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.connect(),await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},37849:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>c});var r=n(11266),i=n(70797),s=n(19203),o=e([i,s]);[i,s]=o.then?(await o)():o;class c extends i.s{constructor(e,t,n){super(n,e,t)}getMetadata(e){let t=e;if((0,s.gU)(e)||(t=this.parseUrl(e),t&&0!==t.length))return fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json()))}async getNfts(e){if(!this.substrateApi)return[];const t=[];return await Promise.all(e.map((async e=>{const n=await this.substrateApi.api.query.uniques.account.keys(e);if(n)for(const e of n){const n=e.toHuman();t.push({classId:n[1],tokenId:this.parseTokenId(n[2])})}}))),t}async getTokenDetails(e){if(!this.substrateApi)return null;const{classId:t,tokenId:n}=e,a=(await this.substrateApi.api.query.uniques.instanceMetadataOf(this.parseTokenId(t),this.parseTokenId(n))).toHuman();return null!=a&&a.data?this.getMetadata(null==a?void 0:a.data):null}async getCollectionDetail(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.uniques.classMetadataOf(e)).toHuman();return null!=t&&t.data?this.getMetadata(null==t?void 0:t.data):null}async handleNft(e,t){const n=await this.getNfts([e]);try{if(!n||0===n.length)return;const a=[],i=[];await Promise.all(n.map((async n=>{const s=this.parseTokenId(n.classId),o=this.parseTokenId(n.tokenId);a.includes(s)||a.push(s),i.push(o);const[c,u]=await Promise.all([this.getTokenDetails(n),this.getCollectionDetail(parseInt(s))]),l={id:o,name:null==c?void 0:c.name,description:null==c?void 0:c.description,image:c&&c.image?this.parseUrl(null==c?void 0:c.image):void 0,collectionId:this.parseTokenId(s),chain:this.chain,owner:e,assetHubType:r.cq.UNIQUES};t.updateItem(this.chain,l,e);const d={collectionId:s,chain:this.chain,collectionName:null==u?void 0:u.name,image:u&&u.image?this.parseUrl(null==u?void 0:u.image):void 0};t.updateCollection(this.chain,d)})))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.connect(),await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},20737:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{w:()=>l});var r=n(35968),i=n(70797),s=n(19203),o=n(74873),c=n(28917),u=e([i,s]);[i,s]=u.then?(await u)():u;class l extends i.s{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,s.gU)(e)?e:e.includes("ipfs://")?r.k8+e.split("ipfs://")[1]:r.k8+e}async getNfts(e){if(!this.substrateApi)return[];const t=[];return await Promise.all(e.map((async e=>{const n=await this.substrateApi.api.query.ormlNFT.tokensByOwner.entries(e);for(const a of n){const n=a[0].toHuman();t.push({classId:this.parseTokenId(n[1]),tokenId:this.parseTokenId(n[2]),owner:e})}}))),t}async getTokenDetails(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.ormlNFT.tokens(e.classId,e.tokenId)).toHuman();return t.metadata?t.data.attributes["MetaverseId:"]?await fetch(`${r.TY}/${e.classId}/${e.tokenId}/metadata.json`).then((e=>e.json())):t.metadata.startsWith("/avatar/")?await fetch(r.Tc+t.metadata).then((e=>e.json())):await fetch(r.k8+t.metadata).then((e=>e.json())):null}async getCollectionDetails(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.ormlNFT.classes(e)).toHuman();if(!t.metadata)return null;if(t.data.attributes["MetaverseId:"]){const n=t.data.attributes["Category:"],a=t.data.attributes["MetaverseId:"];let r=o.Yz;try{r=(0,c.v)(a)}catch(e){console.warn("Error parsing metaverse id",e)}return{name:`${n} #${e}`,metaverseId:r.toString()}}return await fetch(r.k8+t.metadata).then((e=>e.json()))}parseMetadata(e){const t=null!=e&&e.traits?e.traits:null==e?void 0:e.attributes,n={};return t&&t.forEach((e=>{n[e.trait_type]={value:e.value}})),{name:null==e?void 0:e.name,image:null!=e&&e.image_url?this.parseUrl(e.image_url):this.parseUrl(null==e?void 0:e.image),description:null==e?void 0:e.description,properties:n,externalUrl:null==e?void 0:e.external_url,chain:this.chain}}async fetchNfts(e){try{await this.connect(),await this.handleNfts(e)}catch(e){return 0}return 1}async handleNft(e,t){const n=await this.getNfts([e]);try{if(!n||0===n.length)return;const a=[],r=[];await Promise.all(n.map((async n=>{const i=this.parseTokenId(n.classId),s=this.parseTokenId(n.tokenId);a.includes(i)||a.push(i),r.push(s);const[o,c]=await Promise.all([this.getTokenDetails(n),this.getCollectionDetails(i)]),u=this.parseMetadata(o);u.collectionId=i,u.id=s,u.owner=e;const l={collectionId:i,chain:this.chain,collectionName:null==c?void 0:c.name,image:this.parseUrl(null==c?void 0:c.image_url)};t.updateItem(this.chain,u,e),t.updateCollection(this.chain,l)})))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}}a()}catch(e){a(e)}}))},71762:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,V:()=>r});const a="Avail OG",r={BRONZE:'{"p":"OIS-AVAIL","op":"create","tick":"AVAIL-OG","imgUrl":"https://storage.googleapis.com/blobscriptions.appspot.com/user-uploads%2Fclyy54fsc0001jpr1bi3thgp7%2F1721723052313-mkyf6c7hkfv9v0mgu0itbof7-bronzeNFT.mp4","tokenType":"NFT","totalSupply":"5000","limit":"5000","traits":{"Tier":"bronze"},"name":"Bronze #AVAIL"}',SILVER:'{"p":"OIS-AVAIL","op":"create","tick":"AVAIL-OG","imgUrl":"https://storage.googleapis.com/blobscriptions.appspot.com/user-uploads%2Fclyy54fsc0001jpr1bi3thgp7%2F1721722886703-hnhan3yc1ma9v8euheq8aj21-silverNFT.mp4","tokenType":"NFT","totalSupply":"4000","limit":"4000","traits":{"Tier":"silver"},"name":"Silver #AVAIl"}',GOLD:'{"p":"OIS-AVAIL","op":"create","tick":"AVAIL-OG","imgUrl":"https://storage.googleapis.com/blobscriptions.appspot.com/user-uploads%2Fclyy54fsc0001jpr1bi3thgp7%2F1721722632268-mdwdbwp1yv58iuyl4zzzr3t8-goldNFT.mp4","tokenType":"NFT","totalSupply":"1000","limit":"1000","traits":{"Tier":"gold"},"name":"Gold #AVAIL"}'}},28169:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{C:()=>l});var r=n(71762),i=n(7996),s=n(35968),o=n(70797),c=n(89640),u=e([o]);o=(u.then?(await u)():u)[0];class l extends o.s{endpoint=s.kf;constructor(e,t){super(e,void 0,t)}static parseNftRequestRemark(){return{query:'\n query MyQuery {\n remarks(limit: 10000, where: {extrinsicHash_eq: "0xa3974497d44d0e1e5a06dc6ceb6cae48dcd9ef2a0369e89d01276830096d32d8", OR: {extrinsicHash_eq: "0x0b789bc0ebe0505700c41cec5986948530e59f444c9383b5ff5d6d3daa14cece", OR: {extrinsicHash_eq: "0x37b0aaee83e907d445f41f769731cf8f1bc17c2c211cdb47262f6ca220e9f976"}}}) {\n dataRaw\n extrinsicHash\n }\n }\n '}}async getAllInscriptions(){const e=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l.parseNftRequestRemark())});return(await e.json()).data.remarks}async getNftMap(){const e={};return(await this.getAllInscriptions()).forEach((t=>{const n=JSON.parse((0,c.I)(t.dataRaw));e[n.to]&&e[n.to].push(n.tick),e[n.to]=[n.tick]})),e}static parseNftRequest(e,t=!0){return{query:`\n query MyQuery {\n dataAvailabilities(where: {sender: {address_eq: "${e}"}, isJson_eq: ${t.toString()}}) {\n id\n extrinsicHash\n dataRaw\n dataValue\n isJson\n sender {\n address\n }\n }\n }\n `}}async getBalances(e){var t;const n=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l.parseNftRequest(e))}),a=await n.json();return null==a||null===(t=a.data)||void 0===t?void 0:t.dataAvailabilities}handleProperties(e){const t={},n=e.traits;if(n)for(const[e,a]of Object.entries(n))t[e]={value:a};return t}async handleNfts(e){const t=await this.getNftMap();try{await Promise.all(this.addresses.map((n=>{const a=t[n];if(a){const t={};for(const s of a){const a=(0,i.Y)(s);if(!a)continue;const o=this.handleProperties(a),c={id:n,chain:this.chain,owner:n,name:a.name,image:a.imgUrl,collectionId:a.tick,properties:o};if(e.updateItem(this.chain,c,n),!t[a.tick]){const n={collectionId:a.tick,chain:this.chain,collectionName:r.L};t[a.tick]=n,e.updateCollection(this.chain,n)}}}})))}catch(e){console.error("Failed to fetch blob inscription",e)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},7996:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var a=n(71762);function r(e){return"AVAIL-OG-sqsu5a91qbu0s4oj3ldg8lrf"===e?JSON.parse(a.V.GOLD):"AVAIL-OG-zdttjyidincrjgsmwqbxoghz"===e?JSON.parse(a.V.SILVER):"AVAIL-OG-zy0n66yqtgw6z139hnf5vdxb"===e?JSON.parse(a.V.BRONZE):void 0}},35968:(e,t,n)=>{"use strict";n.d(t,{Cd:()=>h,GA:()=>x,JA:()=>A,QS:()=>y,Rp:()=>r,S4:()=>g,T7:()=>l,TY:()=>u,Tc:()=>c,a0:()=>m,a9:()=>s,eJ:()=>p,k8:()=>o,kf:()=>d,lZ:()=>w,rM:()=>i,v0:()=>f});var a=n(31882);const r="https://singular.rmrk-api.xyz/api/account/",i="https://singular.rmrk.app/api/rmrk1/collection/",s="https://singular.app/api/rmrk2/collection/",o="https://ipfs-cdn.bit.country/",c="https://api.bitavatar.io/v1",u="https://pioneer-api.bit.country/metadata/landTokenUriPioneer",l="https://nft-explorer.vara-network.io/graphql",d="https://indexer.availspace.app/graphql",p="https://api-unique.uniquescan.io/v1/graphql",h="https://api-quartz.uniquescan.io/v1/graphql",f="https://api-opal.uniquescan.io/v1/graphql",m="https://ipfs.unique.network/ipfs/",y="https://indexer-mainnet.ternoa.dev",g="https://ipfs-mainnet.trnnfr.com/ipfs/",b="https://ipfs.subwallet.app/ipfs/";let v,_;!function(e){e.karura="karura",e.acala="acala",e.kusama="kusama",e.statemine="statemine",e.unique_network="unique_network",e.quartz="quartz",e.bitcountry="bitcountry",e.pioneer="pioneer"}(v||(v={})),function(e){e.moonbeam="moonbeam",e.moonbase="moonbase",e.astarEvm="astarEvm",e.moonriver="moonriver",e.shiden="shiden",e.shibuya="shibuya"}(_||(_={})),_.moonbase,_.moonbeam,_.moonriver,_.astarEvm,_.shiden,_.shibuya;const A=["unique_evm"];let w;_.moonbase,_.moonbeam,_.moonriver,_.astarEvm,_.shiden,_.shibuya,function(e){e.statemine="statemine",e.acala="acala",e.karura="karura",e.kusama="kusama",e.uniqueNft="unique_network",e.quartz="quartz",e.opal="opal",e.statemint="statemint",e.bitcountry="bitcountry",e.pioneer="pioneer"}(w||(w={}));const I=[];a.gm&&I.push({provider:b,weight:5e3}),a.pn.protocol&&a.pn.protocol.startsWith("http")?a.pn.protocol.startsWith("https")&&I.push({provider:b,weight:10}):I.push({provider:"https://nftstorage.link/ipfs/",weight:50},{provider:"https://dweb.link/ipfs/",weight:5},{provider:"https://gateway.ipfs.io/ipfs/",weight:5}),0===I.length&&I.push({provider:b,weight:10});const S=I.reduce(((e,t)=>e+t.weight),0);function x(){const e=[];let t=0;for(;t{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{x:()=>p});var r=n(38397),i=n(80562),s=n(35968),o=n(70797),c=n(91600),u=n(19203),l=n(20258),d=e([o,u,c]);[o,u,c]=d.then?(await d)():d;class p extends o.s{evmContracts=[];constructor(e,t,n){super(n,void 0,t),this.evmApi=e,this.isEthereum=!0}setSmartContractNfts(e){this.evmContracts=e}parseUrl(e){if(e)return(0,u.gU)(e)?e:e.includes("ipfs://")?(0,s.GA)()+e.split("ipfs://")[1]:(0,s.GA)()+e.split("ipfs://ipfs/")[1]}parseMetadata(e){const t=e.traits?e.traits:e.attributes,n={};return t&&t.forEach((e=>{n[e.trait_type]={value:e.value}})),e.dna&&(n.dna={value:e.dna}),{name:e.name,image:e.image_url?this.parseUrl(e.image_url):this.parseUrl(e.image),description:e.description,properties:n,externalUrl:e.external_url,chain:this.chain}}async getItemsByCollection(e,t,n){if(!this.evmApi)return;const a=(0,c._b)(e),s=new this.evmApi.api.eth.Contract(i.Po,a);let o,u=!1;const d={};if(await Promise.all(this.addresses.map((async t=>{if(!(0,l.q)(t))return;const i=[],c=await s.methods.balanceOf(t).call();if(0===Number(c))return;const p=[];for(let e=0;e{const l=await s.methods.tokenOfOwnerByIndex(t,c).call(),d=await s.methods.tokenURI(l).call(),p=this.parseUrl(d),h=l.toString();if(i.push(h),p)try{const i=await fetch(p),s=i&&i.ok&&await i.json();if(!s)return;const c=this.parseMetadata(s);c.collectionId=a,c.id=h,c.owner=t,c.type=r.yH.ERC721,c.originAsset=e.slug,c&&(c.image&&(o=c.image),n.updateItem(this.chain,c,t),u=!0)}catch(e){console.error(`${this.chain}`,e)}}))),d[t]=i}catch(e){console.error(`${this.chain}`,e)}}))),u){const r={collectionId:a,collectionName:t,image:o||void 0,chain:this.chain,originAsset:e.slug};n.updateCollection(this.chain,r)}}async handleNfts(e){this.evmContracts&&0!==this.evmContracts.length&&await Promise.all(this.evmContracts.map((async t=>await this.getItemsByCollection(t,t.name,e))))}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},24313:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{f:()=>C});var r=n(81081),i=n(37849),s=n(20737),o=n(28169),c=n(48427),u=n(64093),l=n(98056),d=n(28551),p=n(68599),h=n(36637),f=n(28325),m=n(45723),y=n(91600),g=n(21778),b=n(31882),v=n(82286),_=n(43002),A=e([g,r,u,d,i,v,p,s,h,o,_,f,c,l,y]);function w(e,t,n){const{evm:a,substrate:c}=(0,g.ND)(n);return m.ER.acala.includes(e)?[new r.h(t,c,e)]:m.ER.karura.includes(e)?[new u.t(t,c,e)]:m.ER.rmrk.includes(e)?[new d.r(c,e)]:m.ER.statemine.includes(e)||m.ER.statemint.includes(e)?[new i.A(t,c,e),new v.A(t,c,e)]:m.ER.unique_network.includes(e)?[new p.Q(e,c)]:m.ER.unique_evm.includes(e)?[new p.Q(e,a)]:m.ER.bitcountry.includes(e)?[new s.w(t,c,e)]:m.ER.vara.includes(e)?[new h.n(e,c)]:m.ER.avail.includes(e)?[new o.C(e,c)]:m.ER.ternoa.includes(e)?[new _._(t,c,e)]:null}function I(e,t,n){const a=(0,g.ND)(n).substrate;return new f.R(t,a,e)}function S(e,t,n){const a=(0,g.ND)(n).evm;return new c.x(t,a,e)}[g,r,u,d,i,v,p,s,h,o,_,f,c,l,y]=A.then?(await A)():A;const x=(e,t,n)=>new l.A(n,e,t);class C{chainInfoMap={};addresses=[];smartContractNfts=[];substrateApiMap={};evmApiMap={};handlers=[];total=0;needSetupApi=!0;setChainInfoMap(e){this.chainInfoMap=e,this.needSetupApi=!0}setWeb3ApiMap(e){this.evmApiMap=e,this.needSetupApi=!0}setDotSamaApiMap(e){this.substrateApiMap=e,this.needSetupApi=!0}setAddresses(e){this.addresses=e;const{evm:t,substrate:n}=(0,g.ND)(e);for(const e of this.handlers){const a=e.isEthereum?t:n;e.setAddresses(a)}}setupNftContracts(e){this.smartContractNfts=e;for(const t of this.handlers)if(t instanceof c.x||t instanceof f.R){const n=[];for(const a of e)a.originChain===t.chain&&n.push(a);t.setSmartContractNfts(n)}}setupApi(){try{if(this.needSetupApi){this.handlers=[];const{evm:e,substrate:t}=(0,g.ND)(this.addresses);Object.entries(this.chainInfoMap).forEach((([n,a])=>{if((0,y.jO)(a)&&this.substrateApiMap[n]){const e=w(n,this.substrateApiMap[n],t);e&&e.length&&this.handlers.push(...e)}if((0,y.uu)(a)&&this.evmApiMap[n]){const t=S(n,this.evmApiMap[n],e);t&&this.handlers.push(t)}if("unique_evm"===n){const t=w(n,null,e);t&&t.length&&this.handlers.push(...t)}if("ternoa"===n){const e=w(n,this.substrateApiMap[n],t);e&&e.length&&this.handlers.push(...e)}if((0,y.cC)(a)&&this.substrateApiMap[n]){const e=I(n,this.substrateApiMap[n],t);e&&!this.handlers.includes(e)&&this.handlers.push(e)}if((0,y.WB)(n)&&b.y3){var r;const e=null===(r=a.extraInfo)||void 0===r?void 0:r.subscanSlug;if(e){const a=x(n,e,t);a&&!this.handlers.includes(a)&&this.handlers.push(a)}}})),this.needSetupApi=!1}}catch(e){console.error(e)}}async handleNfts(e,t,n){this.setupApi(),this.setupNftContracts(e),await Promise.all(this.handlers.map((async e=>{await e.fetchNfts({updateItem:t,updateCollection:n})})))}}a()}catch(k){a(k)}}))},64093:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{t:()=>c});var r=n(35968),i=n(70797),s=n(19203),o=e([i,s]);[i,s]=o.then?(await o)():o;class c extends i.s{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,s.gU)(e)?e:e.includes("ipfs://")?(0,r.GA)()+e.split("ipfs://")[1]:(0,r.GA)()+e}async getNfts(e){if(!this.substrateApi)return[];const t={};await Promise.all(e.map((async e=>{const n=await this.substrateApi.api.query.ormlNFT.tokensByOwner.keys(e);e in t?t[e].concat(n):t[e]=n})));const n=[];return Object.entries(t).forEach((([e,t])=>{for(const a of t){const t=a.toHuman();n.push({classId:t[1],tokenId:this.parseTokenId(t[2]),owner:e})}})),n}async getCollectionDetails(e){if(!this.substrateApi)return null;const t=(await this.substrateApi.api.query.ormlNFT.classes(e)).toHuman();if(null==t||!t.metadata)return null;const n=await u(null==t?void 0:t.metadata);return{...n,image:this.parseUrl(n.image)}}async getTokenDetails(e){return this.substrateApi?(await this.substrateApi.api.query.ormlNFT.tokens(e.classId,e.tokenId)).toHuman():null}async handleNft(e,t){const n=await this.getNfts([e]);try{if(!n||0===n.length)return;const a=[],r=[];await Promise.all(n.map((async n=>{const i=this.parseTokenId(n.classId),s=this.parseTokenId(n.tokenId);a.includes(i)||a.push(i),r.push(s);const[o,c]=await Promise.all([this.getTokenDetails(n),this.getCollectionDetails(parseInt(i))]),u={id:s,name:null==o?void 0:o.name,description:null==o?void 0:o.description,image:o&&o.image?this.parseUrl(null==o?void 0:o.image):null==c?void 0:c.image,collectionId:i,chain:this.chain,owner:n.owner},l={collectionId:i,chain:this.chain,collectionName:null==c?void 0:c.name,image:null==c?void 0:c.image};t.updateItem(this.chain,u,e),t.updateCollection(this.chain,l)})))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.connect(),await this.handleNfts(e)}catch(e){return 0}return 1}}const u=e=>{let t=e;return e?(t=(0,r.GA)()+e+"/metadata.json",fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json()))):null};a()}catch(e){a(e)}}))},70797:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{s:()=>s});var r=n(19203),i=e([r]);r=(i.then?(await i)():i)[0];class s{chain="";substrateApi=null;evmApi=null;data=[];total=0;addresses=[];isEthereum=!1;constructor(e,t,n,a){t&&(this.substrateApi=t),n&&(this.addresses=n),this.chain=e,a&&(this.evmApi=a)}async connect(){var e,t;null!==(e=this.substrateApi)&&void 0!==e&&e.isApiConnected||(this.substrateApi=await(null===(t=this.substrateApi)||void 0===t?void 0:t.isReady))}recoverConnection(){var e,t;null!==(e=this.substrateApi)&&void 0!==e&&e.isApiConnected||(null===(t=this.substrateApi)||void 0===t?void 0:t.recoverConnect)&&this.substrateApi.recoverConnect()}getSubstrateApi(){return this.substrateApi}getChain(){return this.chain}getTotal(){return this.total}getData(){return this.data}setSubstrateApi(e){this.substrateApi=e}setChain(e){this.chain=e}setAddresses(e){this.addresses=e}parseTokenId(e){return e.includes(",")?e.replaceAll(",",""):e}parseUrl(e){return(0,r.WX)(e)}}a()}catch(e){a(e)}}))},80869:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});const a={event_id:"Remarked",module:"system",order:"desc",success:!0,row:100}},98056:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>u});var r=n(31355),i=n(5484),s=n(70797),o=e([r,s,i]);[r,s,i]=o.then?(await o)():o;const c=(e,t,n,a)=>{const i=JSON.parse(e.value);if("p"in i){const e={};for(const[t,n]of Object.entries(i))e[t.charAt(0).toUpperCase()+t.slice(1)]={value:n};e["Block number"]={value:t.extrinsic_index.split("-")[0]},e.Timestamp={value:t.block_timestamp};const s=[i.op.charAt(0).toUpperCase()+i.op.slice(1)];void 0!==i.amt&&s.push(i.amt),s.push(i.tick);const o=s.join(" ");return{chain:n,collectionId:r.XM,id:t.extrinsic_hash,description:JSON.stringify(i),name:o,owner:a,properties:e}}};class u extends s.s{constructor(e,t,n){super(t,void 0,e),this.subscanChain=n,this.subscanService=i.j.getInstance()}async handleNft(e,t){const n=await this.subscanService.getAccountRemarkEvents(this.subscanChain,e);if(n&&n.length){const a=n.map((e=>e.extrinsic_index)),r=await this.subscanService.getExtrinsicParams(this.subscanChain,a),i=[];for(const t of r){const{extrinsic_index:a,params:r}=t,s=n.find((e=>e.extrinsic_index===a));if(1===r.length&&s){const[t]=r;if("remark"===t.name){const n={name:t.name,type:t.type,value:t.value},a=c(n,s,this.chain,e);a&&i.push(a)}else if("calls"===t.name){const n=t.value;for(const t of n)if("System"===t.call_module&&"remark_with_event"===t.call_name)for(const n of t.params){const t=c(n,s,this.chain,e);t&&i.push(t)}}}}if(i.length)for(const n of i)t.updateItem(this.chain,n,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},28551:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{r:()=>p});var r,i=n(11266),s=n(70797),o=n(19203),c=n(21778),u=n(35968),l=e([s,o,c]);[s,o,c]=l.then?(await l)():l,function(e){e.BIRD_KANARIA="bird_kanaria",e.KANARIA="kanaria",e.SINGULAR_V1="singular_v1",e.SINGULAR_V2="singular_v2"}(r||(r={}));const d="KANBIRD";class p extends s.s{constructor(e,t){super(t,null,e)}async getMetadata(e){let t=e;if((0,o.gU)(e)||(t=this.parseUrl(e),t&&0!==t.length))return await fetch(t,{method:"GET"}).then((e=>e.json()))}async getAllByAccount(e){const t=[{url:u.Rp+e,source:r.SINGULAR_V2}];let n=[];await Promise.all(t.map((async({source:e,url:t})=>{let a=await fetch(t,{method:"GET"}).then((e=>e.json()));a=a.map((t=>{let n=e;return t.collectionId.includes(d)&&(n=r.BIRD_KANARIA),{...t,source:n}})),n=n.concat(a)})));const a=[];return await Promise.all(n.map((async t=>{try{const n=t.primaryResource?t.primaryResource:null,i=n&&n.metadata?n.metadata:t.metadata,s=await this.getMetadata(i);t.source===r.BIRD_KANARIA?a.push({...t,metadata:s,owner:e}):t.source===r.KANARIA?a.push({...t,metadata:{...s,image:this.parseUrl(null==s?void 0:s.image)},owner:e}):t.source===r.SINGULAR_V1?a.push({...t,metadata:{description:null==s?void 0:s.description,name:null==s?void 0:s.name,attributes:null==s?void 0:s.attributes,animation_url:this.parseUrl(null==s?void 0:s.animation_url),image:this.parseUrl(null==s?void 0:s.image)},owner:e}):t.source===r.SINGULAR_V2&&(t.id.toLowerCase().includes(d)||a.push({...t,metadata:{description:null==s?void 0:s.description,name:null==s?void 0:s.name,attributes:null==s?void 0:s.attributes,properties:null==s?void 0:s.properties,animation_url:this.parseUrl(null==s?void 0:s.animation_url),image:this.parseUrl(null==s?void 0:s.mediaUri)},owner:e}))}catch(e){console.log("error fetching RMRK NFT",e)}}))),a}async handleNft(e,t){let n=[];const a=[];try{const d=(0,c.le)(e,2);if(n=await this.getAllByAccount(d),n.length<=0)return;const p=[];for(const c of n){var s,o,l;const n={id:null==c?void 0:c.id,name:null==c||null===(s=c.metadata)||void 0===s?void 0:s.name,image:this.parseUrl(c.image?c.image:c.metadata.image?c.metadata.image:c.metadata.animation_url),description:null==c||null===(o=c.metadata)||void 0===o?void 0:o.description,externalUrl:null==c?void 0:c.external_url,rarity:null==c?void 0:c.metadata_rarity,collectionId:null==c?void 0:c.collectionId,properties:null==c||null===(l=c.metadata)||void 0===l?void 0:l.properties,chain:this.chain,rmrk_ver:c.source&&c.source===r.SINGULAR_V1?i.tI.VER_1:i.tI.VER_2,owner:c.owner};t.updateItem(this.chain,n,e);let d="";d=c.source===r.SINGULAR_V1?u.rM+c.collectionId:u.a9+c.collectionId,p.includes(d)||(a.push({chain:"",collectionId:c.collectionId}),p.push(d.replace(" ","%20")))}const h=[];await Promise.all(p.map((async e=>{try{const t=await fetch(e,{method:"GET"}).then((e=>e.json())),n=t[0];return n&&"metadata"in n&&h.push({url:this.parseUrl(null==n?void 0:n.metadata),id:null==n?void 0:n.id}),t.length>0?n:{}}catch(e){return{}}})));const f={};await Promise.all(h.map((async e=>{let t={};try{e.url&&(t=await fetch(null==e?void 0:e.url,{method:"GET"}).then((e=>e.json()))),f[null==e?void 0:e.id]="mediaUri"in t?{...t,image:t.mediaUri}:{...t}}catch(t){console.error(e.url,t)}}))),a.forEach((e=>{const a={collectionId:e.collectionId,collectionName:f[e.collectionId]?f[e.collectionId].name:null,image:f[e.collectionId]?this.parseUrl(f[e.collectionId].image):null,chain:this.chain},r=[];n.forEach((t=>{(null==t?void 0:t.collectionId)===e.collectionId&&r.push(null==t?void 0:t.id)})),t.updateCollection(this.chain,a)}))}catch(e){console.error(`${this.chain}`,e)}}async handleNfts(e){await Promise.all(this.addresses.map((t=>this.handleNft(t,e))))}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},43002:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{_:()=>l});var r=n(19203),i=n(14143),s=n(76515),o=n(35968),c=n(70797),u=e([c,r]);[c,r]=u.then?(await u)():u;class l extends c.s{constructor(e,t,n){super(n,e,t)}endpoint=o.QS;parseUrl(e){return(0,r.WX)(e,o.S4)}static parseNftRequest(e){return{query:`\n query {\n nftEntities(\n filter: {\n owner: { equalTo: "${e}" }\n }\n ) {\n totalCount\n nodes {\n nftId\n owner\n creator\n collectionId\n offchainData\n }\n }\n }`}}async fetchNftsWithDetail(e){const t=l.parseNftRequest(e);try{const e=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=(await e.json()).data.nftEntities.nodes;return n?(await Promise.all(n.map((async e=>{const t=`${o.S4}${e.offchainData}`;try{const n=await fetch(t),a=await n.json();return a.image=`${o.S4}${a.image}`,{metadata:e,detail:a}}catch(e){return console.error("Error:",e),null}})))).filter((e=>null!==e)):null}catch(e){return console.error("Error:",e),null}}async getCollectionDetail(e){if(!this.substrateApi)return null;const t=await this.substrateApi.isReady;try{const n=(await t.api.query.nft.collections(parseInt(e))).toHuman();if(null==n||!n.offchainData)return null;const a=`${o.S4}${n.offchainData}`,r=await fetch(a);if(!r.ok)return{name:n.offchainData,banner_image:""};const i=await r.json();return i.banner_image=`${o.S4}${i.banner_image}`,i}catch(e){return console.error("Error:",e),null}}async handleNfts(e){const t=new Map;await Promise.all(this.addresses.map((async n=>{n=(0,i.j)((0,s.F)(n),42);const a=await this.fetchNftsWithDetail(n);a&&0!==a.length&&await Promise.all(a.map((async a=>{const{detail:r,metadata:i}=a;let s=i.collectionId;s||(s="Ternoa_Collection");const o={id:i.nftId,name:r.title,description:r.description,image:r.image?this.parseUrl(r.image):void 0,collectionId:s,chain:this.chain,owner:n};e.updateItem(this.chain,o,n),t.has(s)||t.set(s,!0)})))})));for(const n of t.keys()){const t="Ternoa_Collection"!==n?await this.getCollectionDetail(n):{name:"Ternoa NFTs",description:"Collection for NFTs without a specific collection",banner_image:""},a={collectionId:n,chain:this.chain,collectionName:null==t?void 0:t.name,image:null!=t&&t.banner_image?this.parseUrl(null==t?void 0:t.banner_image):void 0};e.updateCollection(this.chain,a)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},90262:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Ty:()=>h,ed:()=>c});var r=n(11266),i=n(35968),s=n(21778),o=e([s]);function c(e,t){return(0,s.le)(e,1)===(0,s.le)(t,1)}function u(e,t,n,a){try{const t=a.itemId,r=a.collectionId;return e.api.tx.nft.transfer(n,[r,t])}catch(e){return console.error(e),null}}function l(e,t,n,a){try{const t=a.remark;if(!t)return null;const r=t.concat(n.replace(/\\s/g,""));return e.api.tx.system.remark(r)}catch(e){return console.error(e),null}}async function d(e,t,n,a){try{const t=a.itemId,r=a.collectionId,i=(await e.api.rpc.unique.collectionById(r)).toHuman().limits.transfersEnabled;return i||null===i?e.api.tx.unique.transfer({Substrate:n},r,t,1):null}catch(e){return console.error(e),null}}function p(e,t,n,a){try{const t=a.itemId,i=a.collectionId,s=a.assetHubType;return s===r.cq.NFTS?e.api.tx.nfts.transfer(i,t,n):s===r.cq.UNIQUES?e.api.tx.uniques.transfer(i,t,n):null}catch(e){return console.error(e),null}}async function h(e,t,n,a,r){switch(e){case i.lZ.acala:case i.lZ.karura:return u(t,0,a,r);case i.lZ.kusama:return l(t,0,a,r);case i.lZ.uniqueNft:case i.lZ.quartz:case i.lZ.opal:return await d(t,0,a,r);case i.lZ.statemine:case i.lZ.statemint:return p(t,0,a,r);case i.lZ.bitcountry:case i.lZ.pioneer:return u(t,0,a,r)}return null}s=(o.then?(await o)():o)[0],a()}catch(f){a(f)}}))},68599:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Q:()=>d});var r=n(35968),i=n(70797),s=n(45723),o=n(19203),c=n(14143),u=n(76515),l=e([i,o]);[i,o]=l.then?(await l)():l;class d extends i.s{constructor(e,t){super(e,void 0,t)}parseUrl(e){return(0,o.WX)(e,r.a0)}handleProperties(e){const t={},n=e.attributes;if(n.length)for(const e of n){const n=e.trait_type,a=e.value;t[n]={value:a}}return t}static parseNftRequest(e){return{query:`\n query {\n tokens(\n limit: 99999\n offset: 0\n where: { owner: { _eq: "${e}" }, burned: { _eq: "false" }})\n {\n data {\n collection_id\n collection_name\n collection_description\n collection_cover\n token_id\n token_name\n image\n attributes\n }\n }\n }\n `}}async getNftByAccount(e){var t,n;let a="",i="";["unique_network"].includes(this.chain)?(a=r.eJ,i=(0,c.j)((0,u.F)(e),7391)):["quartz"].includes(this.chain)?(a=r.Cd,i=(0,c.j)((0,u.F)(e),255)):["opal"].includes(this.chain)?(a=r.v0,i=e):s.ER.unique_evm.includes(this.chain)&&(a=r.eJ,i=e.toLowerCase());const o=await fetch(a,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(d.parseNftRequest(i))}),l=await o.json();return null==l||null===(t=l.data)||void 0===t||null===(n=t.tokens)||void 0===n?void 0:n.data}async handleNfts(e){try{await Promise.all(this.addresses.map((async t=>{const n=await this.getNftByAccount(t);if(n){const a={};for(const r of n){if("quartz"===this.chain&&"141"===r.collection_id.toString())continue;const n=this.handleProperties(r),i={id:r.token_id.toString(),chain:this.chain,owner:t,name:r.token_name,image:this.parseUrl(r.image),description:r.collection_description,collectionId:r.collection_id.toString(),properties:n};if(e.updateItem(this.chain,i,t),!a[r.collection_id.toString()]){const t={collectionId:r.collection_id.toString(),chain:this.chain,collectionName:r.collection_name,image:this.parseUrl(r.collection_cover)};a[r.collection_id.toString()]=t,e.updateCollection(this.chain,t)}}}})))}catch(e){console.error(`Failed to fetch ${this.chain} nft`,e)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},36637:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{n:()=>l});var r=n(35968),i=n(70797),s=n(78857),o=n(44869),c=n(76515),u=e([i]);i=(u.then?(await u)():u)[0];class l extends i.s{endpoint=r.T7;constructor(e,t){super(e,void 0,t)}static parseNftRequest(e){return{query:`\n query MyQuery {\n accountById(id: "${e}") {\n id\n nfts {\n id\n mediaUrl\n name\n tokenId\n attribUrl\n description\n collection {\n id\n name\n description\n }\n }\n }\n }\n `}}async getNftByAccount(e){var t,n;const a=(0,s.d)((0,o.X)((0,c.F)(e))),r=await fetch(this.endpoint,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(l.parseNftRequest(a))}),i=await r.json();return null==i||null===(t=i.data)||void 0===t||null===(n=t.accountById)||void 0===n?void 0:n.nfts}async handleNfts(e){try{await Promise.all(this.addresses.map((async t=>{const n=await this.getNftByAccount(t);if(n)for(const a of n){const n={id:a.tokenId,chain:this.chain,owner:t,name:a.name,image:this.parseUrl(a.mediaUrl),description:a.description,collectionId:a.collection.id},r={collectionId:a.collection.id,chain:this.chain,collectionName:a.collection.name};e.updateItem(this.chain,n,t),e.updateCollection(this.chain,r)}})))}catch(e){console.error(`Failed to fetch ${this.chain} nft`,e)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}a()}catch(e){a(e)}}))},28325:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{R:()=>m});var r=n(38397),i=n(95821),s=n(17540),o=n(1676),c=n(70797),u=n(85196),l=n(91600),d=n(19203),p=n(20258),h=e([c,d,l]);async function f(e,t){const n=new Promise((e=>{const t=setTimeout((()=>{clearTimeout(t),e(null)}),3e3)})),a=new URLSearchParams;a.append("collection_address",t);const r=new Promise((function(t){fetch((0,u.UA)(e),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).then((e=>{t(e.json())})).catch(console.error)})),i=await Promise.race([n,r]);return null!==i&&"FAILED"!==(null==i?void 0:i.status)}[c,d,l]=h.then?(await h)():h;class m extends c.s{wasmContracts=[];constructor(e,t,n){super(n,e,t)}setSmartContractNfts(e){this.wasmContracts=e}async isAttributeStoredOnChain(e){var t,n;if(!e.query["psp34Traits::getAttributeCount"])return!1;const a=await e.query["psp34Traits::getAttributeCount"](this.addresses[0],{gasLimit:(0,s.a)(null===(t=this.substrateApi)||void 0===t?void 0:t.api)}),r=null==a||null===(n=a.output)||void 0===n?void 0:n.toJSON(),i=a.output?(null==r?void 0:r.ok)||(null==r?void 0:r.Ok):"0";return!!a.result.isOk&&!!i&&0!==parseInt(i)}parseFeaturedTokenUri(e){if(e&&0!==e.length)return(0,d.gU)(e)||e.startsWith("/ipfs/")?e:e.startsWith("ipfs://")?`/ipfs/${e.split("ipfs://")[1]}`:e.includes("ipfs://")||e.includes("ipfs://ipfs/")?e.includes("ipfs://ipfs/")?`/ipfs/${e.split("ipfs://ipfs/")[1]}`:e:`/ipfs/${e}`}async parseFeaturedNftImage(e){const t=this.parseFeaturedTokenUri(e);if(!t)return;const n=`${(0,u.U9)(this.chain)}?input=${t}&size=500`,a=await fetch(n);return await a.text()}async parseFeaturedCollectionImage(e){const t=new URLSearchParams;t.append("collection_address",e);const n=await fetch((0,u.ht)(this.chain),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}),a=n&&n.ok&&await n.json();if(!a)return;const r=a.ret[0].avatarImage,i=this.parseFeaturedTokenUri(r);if(!i)return;const s=`${(0,u.U9)(this.chain)}?input=${i}&size=500`,o=await fetch(s);return await o.text()}async processOnChainMetadata(e,t,n){const a={chain:"",collectionId:"",id:"",owner:"",name:e};let r=!1;if(t){const e=this.parseFeaturedTokenUri(n);if(e){const t=await fetch(`${(0,u.uc)(this.chain)}?input=${e}`);r=t&&t.ok&&await t.json()}}else{const e=this.parseFeaturedTokenUri(n),t=this.parseUrl(e);if(t){const e=await fetch(t);r=e&&e.ok&&await e.json()}}if(!r)return a;a.name=r.name,a.description=r.description;const i=r.image?r.image:r.image_url;t?(a.image=await this.parseFeaturedNftImage(i),a.externalUrl=(0,u.ZM)(this.chain)):a.image=this.parseUrl(i);const s={},o=r.attributes?r.attributes:r.traits;return o&&(o.forEach((e=>{s[e.trait_type]={value:e.value}})),a.properties=s),a}async processOffChainMetadata(e,t,n,a){var r;const c={chain:"",collectionId:"",id:"",owner:"",name:n},l=a&&!o.Fl.includes(e.address.toString()),d=await e.query[(0,i.ZL)(e.address.toString())](t,{gasLimit:(0,s.a)(null===(r=this.substrateApi)||void 0===r?void 0:r.api)},(0,i.i$)(e.address.toString())?{bytes:n}:n);if(d.output){let t=!1;const n=d.output.toJSON(),a=(0,i.vy)(e.address.toString())?n.ok.ok:n.Ok||n.ok;if(l){const e=this.parseFeaturedTokenUri(a);if(e){const n=await fetch(`${(0,u.uc)(this.chain)}?input=${e}`);t=n&&n.ok&&await n.json()}}else{const n=this.parseFeaturedTokenUri(a),r=this.parseUrl(n);if(r){const n=await fetch(r);var p;t=n&&n.ok&&await n.json(),o.Fl.includes(e.address.toString())&&(t=null===(p=t)||void 0===p?void 0:p.metadata)}}if(!t)return c;c.name=t.name,c.description=t.description,c.externalUrl=t.external_url;const r=t.image?t.image:t.image_url;l?(c.image=await this.parseFeaturedNftImage(r),c.externalUrl=(0,u.ZM)(this.chain)):c.image=this.parseUrl(r);const s={},h=t.attributes||t.traits;h&&(h.forEach((e=>{s[e.trait_type]={value:e.value}})),c.properties=s)}return c}async getItemsByCollection(e,t,n,a,o,c){let u,d=!1;const h=(0,l._b)(t),f={};if(await Promise.all(this.addresses.map((async n=>{var l,m;if((0,p.q)(n))return;const y=[],g=await e.query["psp34::balanceOf"](n,{gasLimit:(0,s.a)(null===(l=this.substrateApi)||void 0===l?void 0:l.api)},n),b=null==g||null===(m=g.output)||void 0===m?void 0:m.toJSON(),v=g.output?b.ok||b.Ok:"0";if(0===parseInt(v))return;const _=[];for(let e=0;e{var p;const f=await e.query["psp34Enumerable::ownersTokenByIndex"](n,{gasLimit:(0,s.a)(null===(p=this.substrateApi)||void 0===p?void 0:p.api)},n,l);if(f.output){const l=f.output.toHuman();let p=l.Ok.Ok||l.ok.ok;const b=Object.values(p)[0].replaceAll(",","");let v;(0,i.i$)(e.address.toString())&&(p={bytes:b}),y.push(b);try{if(c){var m,g;const t=null===(g=(await e.query["psp34Traits::getAttributes"](n,{gasLimit:(0,s.a)(null===(m=this.substrateApi)||void 0===m?void 0:m.api)},p,["metadata"])).output)||void 0===g?void 0:g.toJSON();v=(t.ok||t.Ok)[0]}}catch(e){console.debug(e)}if(v){const e=await this.processOnChainMetadata(b,!1,v);e.collectionId=h,e.chain=this.chain,e.type=r.yH.PSP34,e.id=b,e.owner=n,e.onChainOption=p,e.originAsset=t.slug,a.updateItem(this.chain,e,n),d=!0,o||u||!e.image||(u=e.image)}else{const i=await this.processOffChainMetadata(e,n,b,o);i.collectionId=h,i.chain=this.chain,i.type=r.yH.PSP34,i.id=b,i.owner=n,i.onChainOption=p,i.originAsset=t.slug,a.updateItem(this.chain,i,n),d=!0,o||u||!i.image||(u=i.image)}}}))),f[n]=y}catch(e){console.error(`${this.chain}`,e)}}))),o){const e=await this.parseFeaturedCollectionImage(h);e&&(u=e)}if(d){const e={collectionId:h,collectionName:n,image:u||void 0,chain:this.chain,originAsset:t.slug};a.updateCollection(this.chain,e)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}async handleNfts(e){var t;if(!this.wasmContracts||0===this.wasmContracts.length)return;await this.connect();const n=null===(t=this.substrateApi)||void 0===t?void 0:t.api;await Promise.all(this.wasmContracts.map((async t=>{const a=(0,i.WM)(n,(0,l._b)(t)),[r,s]=await Promise.all([this.isAttributeStoredOnChain(a),f(this.chain,(0,l._b)(t))]);return await this.getItemsByCollection(a,t,t.name,e,s,r)})))}}a()}catch(y){a(y)}}))},85196:(e,t,n)=>{"use strict";n.d(t,{U9:()=>m,UA:()=>f,ZM:()=>b,ht:()=>y,uc:()=>g});const a="https://a0-test-api.artzero.io/getImage",r="https://a0-test-api.artzero.io/getJSON",i="https://a0-test-api.artzero.io/getCollectionByAddress",s="https://a0-api.artzero.io/getImage",o="https://astar-api.artzero.io/getImage",c="https://a0-api.artzero.io/getJSON",u="https://astar-api.artzero.io/getJSON",l="https://a0-api.artzero.io/getCollectionByAddress",d="https://astar-api.artzero.io/getCollectionByAddress",p="https://a0.artzero.io/#/marketplace",h="https://astar.artzero.io/#/marketplace";function f(e){return"alephTest"===e?i:"astar"===e?d:l}function m(e){return"alephTest"===e?a:"astar"===e?o:s}function y(e){return"alephTest"===e?i:"astar"===e?d:l}function g(e){return"alephTest"===e?r:"astar"===e?u:c}function b(e){return"astar"===e?h:p}},79053:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{TI:()=>l,Xw:()=>p,Y5:()=>h,qg:()=>d});var r=n(10485),i=n(90233),s=n(21778),o=n(82823),c=n.n(o),u=e([r,s]);async function l(e,t){const n=await t.isReady;if(i.hG.krest_network.includes(e)){const t=await n.api.query.parachainStaking.candidatePool.entries(),a=n.api.consts.parachainStaking.maxDelegatorsPerCollator.toString(),r=[];for(const n of t){const t=n[1].toPrimitive(),i=new(c())(t.total),s=new(c())(t.stake),o=i.sub(s);r.push({address:t.id,totalStake:i.toString(),ownStake:s.toString(),otherStake:o.toString(),nominatorCount:t.delegators.length,commission:0,blocked:!1,isVerified:!1,minBond:"0",chain:e,isCrowded:t.delegators.length>=parseInt(a)})}return r}{const[t,a]=await Promise.all([n.api.query.parachainStaking.candidatePool.entries(),n.api.query.parachainStaking.inflationConfig()]),r=n.api.consts.parachainStaking.maxDelegatorsPerCollator.toString(),i=a.toHuman().delegator.rewardRate.annual,s=parseFloat(i.split("%")[0]),o=[];for(const n of t){const t=n[1].toPrimitive(),a=new(c())(t.total),i=new(c())(t.stake),u=a.sub(i);o.push({address:t.id,totalStake:a.toString(),ownStake:i.toString(),otherStake:u.toString(),nominatorCount:t.delegators.length,commission:0,expectedReturn:s,blocked:!1,isVerified:!1,minBond:"0",chain:e,isCrowded:t.delegators.length>=parseInt(r)})}return o}}async function d(e,t,n,a){const i=await e.isReady,o=new(c())(t);if(!a)return i.api.tx.parachainStaking.joinDelegators(n.address,o);const{bondedValidators:u}=(0,r.Ip)(a.nominations);return u.includes((0,s.le)(n.address,0))?2===i.api.tx.parachainStaking.delegatorStakeMore.toJSON().args.length?i.api.tx.parachainStaking.delegatorStakeMore(n.address,o):i.api.tx.parachainStaking.delegatorStakeMore(o):i.api.tx.parachainStaking.joinDelegators(n.address,o)}async function p(e,t,n,a){const i=await e.isReady,s=new(c())(t);return(0,r.Np)(a,n.nominations,t)?i.api.tx.parachainStaking.leaveDelegators():2===i.api.tx.parachainStaking.delegatorStakeMore.toJSON().args.length?i.api.tx.parachainStaking.delegatorStakeLess(a,s):i.api.tx.parachainStaking.delegatorStakeLess(s)}async function h(e){const t=await e.isReady;return t.api.tx.utility.batch([t.api.tx.parachainStaking.incrementDelegatorRewards(),t.api.tx.parachainStaking.claimRewards()])}[r,s]=u.then?(await u)():u,a()}catch(f){a(f)}}))},6871:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{az:()=>f,bF:()=>h,gq:()=>p,se:()=>d});var r=n(19203),i=n(82823),s=n.n(i),o=n(20258),c=e([r]);r=(c.then?(await c)():c)[0];const u=e=>(0,o.q)(e)?e.toLowerCase():e,l=async e=>new Promise((function(t){fetch(`https://api.astar.network/api/v1/${e}/dapps-staking/dappssimple`,{method:"GET"}).then((e=>{t(e.json())})).catch(console.error)}));async function d(e,t){const n=await t.isReady,a=n.api.consts.dappsStaking.maxNumberOfStakersPerContract.toHuman(),i=[],s=(0,r.p9)(a),c=l(e),[d,p]=await Promise.all([n.api.query.dappsStaking.currentEra(),c]),h=(0,r.p9)(d.toHuman()),f=p;return await Promise.all(f.map((async t=>{const a=t.name,c=t.address,l=(0,r.gU)(t.iconUrl)?t.iconUrl:void 0,d=(0,o.q)(c)?{Evm:c}:{Wasm:c},p=(await n.api.query.dappsStaking.contractEraStake(d,h)).toPrimitive();let f="0",m=0;var y;null!==p&&(f=null==p||null===(y=p.total)||void 0===y?void 0:y.toString(),m=p.numberOfStakers),i.push({commission:0,expectedReturn:0,address:u(c),totalStake:f,ownStake:"0",otherStake:f.toString(),nominatorCount:m,blocked:!1,isVerified:!1,minBond:"0",icon:l,identity:a,chain:e,isCrowded:m>=s})}))),i}async function p(e,t,n){const a=await e.isReady,r=new(s())(t),i=(0,o.q)(n.address)?{Evm:n.address}:{Wasm:n.address};return a.api.tx.dappsStaking.bondAndStake(i,r)}async function h(e,t,n){const a=await e.isReady,r=new(s())(t),i=(0,o.q)(n)?{Evm:n}:{Wasm:n};return a.api.tx.dappsStaking.unbondAndUnstake(i,r)}async function f(e,t){const n=await e.isReady,[a,i]=await Promise.all([n.api.query.dappsStaking.generalStakerInfo.entries(t),n.api.query.dappsStaking.currentEra()]),c=(0,r.p9)(i.toHuman()),u=[];for(const e of a){const t=e[0].toHuman()[1],a=e[1].toHuman().stakes,i=(0,o.q)(t.Evm)?t.Evm.toLowerCase():t.Evm;let d=0;const p=50;for(let e=0;e{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{CW:()=>h,Do:()=>g,FR:()=>m,Ow:()=>f,QB:()=>y,Wo:()=>d,Zb:()=>b,ni:()=>p});var r=n(11266),i=n(79053),s=n(6871),o=n(32767),c=n(26496),u=n(90233),l=e([c,o,s,i]);function d(e,t,n,a,i){return e.type===r.gK.LIQUID_STAKING?[]:u.hG.relay.includes(n)?(0,c.vG)(t,a,e):(0,o.ZS)(t,e,a,i)}function p(e,t,n,a,r,i){return u.hG.relay.includes(e.slug)?(0,c.Md)(e,t,n,a,r,i):(0,o.KX)(e,t,n,a,r,i)}async function h(e,t,n,a){return u.hG.para.includes(e)?(0,o.bR)(e,t):u.hG.astar.includes(e)?(0,s.se)(e,t):u.hG.amplitude.includes(e)?(0,i.TI)(e,t):(0,c.xf)(e,t,n,a)}async function f(e,t){return(0,c.d3)(e,t)}async function m(e,t,n,a,r,l){return u.hG.para.includes(e.slug)?(0,o.dW)(e,a,t,n[0],l):u.hG.astar.includes(e.slug)?(0,s.gq)(a,t,n[0]):u.hG.amplitude.includes(e.slug)?(0,i.qg)(a,t,n[0],l):(0,c.W4)(a,t,n,e,r,l)}async function y(e,t,n,a,r){return u.hG.para.includes(n)?(0,o.iB)(a,t,e,r):u.hG.astar.includes(n)?(0,s.bF)(a,t,r):u.hG.amplitude.includes(n)?(0,i.Xw)(a,t,e,r):(0,c.N3)(a,t,e)}async function g(e,t,n,a,o=!0){return a===r.gK.POOLED?(0,c.VH)(e,o):u.hG.amplitude.includes(t)?(0,i.Y5)(e):(0,s.az)(e,n)}async function b(e,t,n){return u.hG.para.includes(t)?(0,o.Z8)(e,n):(0,c.aD)(e,n)}[c,o,s,i]=l.then?(await l)():l,a()}catch(v){a(v)}}))},32767:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{KX:()=>m,Z8:()=>A,ZS:()=>f,bR:()=>y,dW:()=>g,iB:()=>b,qo:()=>_,wV:()=>v});var r=n(340),i=n(10485),s=n(17171),o=n(14298),c=n(98865),u=n(19203),l=n(21778),d=n(82823),p=n.n(d),h=e([u,r,i,l,s]);function f(e,t,n,a){const s=[];let c;for(const e of t.nominations)if((0,u.Lb)(e.validatorAddress,a)){c=e;break}if(!c)return s.push(new r.J(o.xu.INTERNAL_ERROR)),s;const l=new(p())(c.activeStake).sub(new(p())(e)),d=new(p())(n.minStake||"0"),h=new(p())(c.validatorMinStake||"0"),f=p().max(h,d),m=(0,i.mW)(n.chain,null==t?void 0:t.type);return c.hasUnstaking&&s.push(new r.J(o.q0.EXIST_UNSTAKING_REQUEST,m)),l.isZero()||l.gte(f)||s.push(new r.J(o.q0.INVALID_ACTIVE_STAKE)),s}function m(e,t,n,a,s,u){const d=[],h=n[0];let f=new(p())(t);const m=new(p())(s.minStake||"0"),y=new(p())(h.minBond||"0"),g=y>m?y:m,b=(0,i.uI)(e,g),v=(0,i.Mq)(e,s.maxValidatorPerNominator),_=(0,i.mW)(e.slug,null==u?void 0:u.type,!0);if(!u||u.status===c.j.NOT_STAKING)return f.gte(g)||d.push(new r.J(o.q0.NOT_ENOUGH_MIN_STAKE,b)),d;const{bondedValidators:A}=(0,i.Ip)(u.nominations),w=(0,l.le)(h.address,0);if(A.includes(w)){let e="0",t=!1;for(const n of u.nominations)if((0,l.le)(n.validatorAddress,0)===w){e=n.activeStake,t=!!n.hasUnstaking&&n.hasUnstaking;break}f=f.add(new(p())(e)),f.gte(g)||d.push(new r.J(o.q0.NOT_ENOUGH_MIN_STAKE,b)),t&&d.push(new r.J(o.q0.EXIST_UNSTAKING_REQUEST,_))}else f.gte(g)||d.push(new r.J(o.q0.NOT_ENOUGH_MIN_STAKE,b)),u.nominations.length+1>s.maxValidatorPerNominator&&d.push(new r.J(o.q0.EXCEED_MAX_NOMINATIONS,v));return d}async function y(e,t){const n=await t.isReady,a=[],[r,i]=await Promise.all([n.api.query.parachainStaking.candidateInfo.entries(),n.api.query.parachainStaking.collatorCommission()]),o=n.api.consts.parachainStaking.maxTopDelegationsPerCandidate.toString(),c=i.toHuman(),u=parseFloat(c.split("%")[0]);for(const t of r){const n=t[0].toHuman()[0],r=t[1].toPrimitive(),i=new(p())(r.totalCounted),s=new(p())(r.bond),c=i.sub(s),u=new(p())(r.lowestTopDelegationAmount);a.push({commission:0,expectedReturn:0,address:n,totalStake:i.toString(),ownStake:s.toString(),otherStake:c.toString(),nominatorCount:r.delegationCount,blocked:!1,isVerified:!1,minBond:u.toString(),chain:e,isCrowded:parseInt(o)>0})}const l={};await Promise.all(a.map((async e=>{const[t,[a,r]]=await Promise.all([n.api.query.parachainStaking.candidateInfo(e.address),(0,s.aZ)(n,e.address)]),i=t.toHuman(),o="Active"===(null==i?void 0:i.status);l[e.address]={identity:a,isVerified:r,active:o}})));for(const e of a)e.blocked=!l[e.address].active,e.identity=l[e.address].identity,e.isVerified=l[e.address].isVerified,e.commission=u;return a}async function g(e,t,n,a,r){const s=await t.isReady,o=new(p())(n);if(!r)return s.api.tx.parachainStaking.delegate(a.address,o,new(p())(a.nominatorCount),0);const{bondedValidators:c,nominationCount:u}=(0,i.Ip)(r.nominations),d=(0,l.le)(a.address,0);return c.includes(d)?s.api.tx.parachainStaking.delegatorBondMore(a.address,o):s.api.tx.parachainStaking.delegate(a.address,o,new(p())(a.nominatorCount),u)}async function b(e,t,n,a){const r=await e.isReady,s=new(p())(t);return(0,i.Np)(a,n.nominations,t)?r.api.tx.parachainStaking.scheduleRevokeDelegation(a):r.api.tx.parachainStaking.scheduleDelegatorBondLess(a,s)}async function v(e,t,n,a,r){const i=await e.isReady,s=(await i.api.rpc.automationTime.calculateOptimalAutostaking(r,n)).toHuman(),o=parseInt(s.period),c=24*o*60*60,u=new Date;u.setDate(u.getDate()+o),u.setHours(u.getHours()+Math.round(u.getMinutes()/60)),u.setMinutes(0,0,0);const l=Math.floor(u.valueOf()/1e3);return i.api.tx.automationTime.scheduleAutoCompoundDelegatedStakeTask(l.toString(),c.toString(),n,a)}async function _(e,t){return(await e.isReady).api.tx.automationTime.cancelTask(t)}async function A(e,t){return(await e.isReady).api.tx.parachainStaking.cancelDelegationRequest(t.validatorAddress)}[u,r,i,l,s]=h.then?(await h)():h,a()}catch(w){a(w)}}))},26496:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{AX:()=>k,LG:()=>C,Md:()=>v,N3:()=>I,VH:()=>x,W4:()=>w,aD:()=>S,d3:()=>A,dQ:()=>b,vG:()=>g,xf:()=>_});var r=n(340),i=n(10485),s=n(90233),o=n(17171),c=n(14298),u=n(98865),l=(n(96483),n(9492)),d=n(82823),p=n.n(d),h=n(87004),f=n(89640),m=n(74873),y=e([r,i,o]);function g(e,t,n){const a=[],i=new(p())(n.activeStake).sub(new(p())(e)),s=new(p())(t.minJoinNominationPool||"0");return i.isZero()||i.gte(s)||a.push(new r.J(c.q0.INVALID_ACTIVE_STAKE)),n.unstakings.length>t.maxWithdrawalRequestPerValidator&&a.push(new r.J(c.q0.EXCEED_MAX_UNSTAKING,(0,l.t)("You cannot unstake more than {{number}} times",{replace:{number:t.maxWithdrawalRequestPerValidator}}))),a}function b(e,t,n,a,s,o){const u=[];let l=new(p())(t);const d=new(p())(s.minJoinNominationPool||"0"),h=(0,i.uI)(e,d),f=(0,i.mW)(e.slug,null==o?void 0:o.type,!0);if("Open"!==n.state&&u.push(new r.J(c.q0.INACTIVE_NOMINATION_POOL)),o){const e=new(p())(o.activeStake);l=l.add(e),o.unstakings.length>0&&e.isZero()&&u.push(new r.J(c.q0.EXIST_UNSTAKING_REQUEST,f))}return l.gte(d)||u.push(new r.J(c.q0.NOT_ENOUGH_MIN_STAKE,h)),u}function v(e,t,n,a,s,o){const l=[];let d=new(p())(t);const h=new(p())(s.minStake),f=(0,i.uI)(e,h),m=(0,i.Mq)(e,s.maxValidatorPerNominator);if(!o||o.status===u.j.NOT_STAKING)return d.gte(h)||l.push(new r.J(c.q0.NOT_ENOUGH_MIN_STAKE,f)),n.length>s.maxValidatorPerNominator&&l.push(new r.J(c.q0.EXCEED_MAX_NOMINATIONS,m)),l;const y=new(p())(o.activeStake);return d=d.add(y),d.gte(h)||l.push(new r.J(c.q0.NOT_ENOUGH_MIN_STAKE,f)),n.length>s.maxValidatorPerNominator&&l.push(new r.J(c.q0.EXCEED_MAX_NOMINATIONS,m)),l}async function _(e,t,n,a){var r;const c=await t.isReady,u=(await c.api.query.staking.currentEra()).toString(),l=[],d=[],[h,f,m,y]=await Promise.all([c.api.query.staking.erasTotalStake(parseInt(u)),c.api.query.staking.erasStakers.entries(parseInt(u)),c.api.query.staking.minNominatorBond(),(null===(r=c.api.query.stakingRewards)||void 0===r?void 0:r.data)&&c.api.query.stakingRewards.data()]),g=null==y?void 0:y.toPrimitive(),b=void 0!==c.api.consts.staking.maxExposurePageSize,v=(c.api.consts.staking.maxNominatorRewardedPerValidator||0).toString(),_=new(p())(h.toString()),A=f,w=m.toHuman().replaceAll(",",""),I={},S=new(p())((10**n).toString());for(const e of A){const t=e[0].toHuman(),n=e[1].toHuman(),a=t[1],r=n.total,i=n.own,s=new(p())(r.replaceAll(",","")),o=new(p())(i.replaceAll(",","")),c=s.sub(o);I[a]=s;let u=0;"others"in n&&(u=n.others.length),l.push(a),d.push({address:a,totalStake:s.toString(),ownStake:o.toString(),otherStake:c.toString(),nominatorCount:u,commission:0,expectedReturn:0,blocked:!1,isVerified:!1,minBond:w,isCrowded:!b&&u>parseInt(v)})}const x={};await Promise.all(l.map((async e=>{const[t,[n,a]]=await Promise.all([c.api.query.staking.validators(e),(0,o.aZ)(c,e)]),r=t.toHuman();x[e]={commission:r.commission,blocked:r.blocked,identity:n,isVerified:a}})));const C=_.divn(d.length).div(S);for(const t of d){const n=x[t.address].commission,r=I[t.address].div(S);if(s.hG.aleph.includes(e))t.expectedReturn=(0,i.Nu)(a.expectedReturn,(0,i.Ei)(n));else if(s.hG.ternoa.includes(e)){const e=new(p())(g.sessionExtraRewardPayout).divn(l.length).div(S),a=I[t.address].div(S).toNumber();t.expectedReturn=(0,i.kr)(e.toNumber(),a,(0,i.Ei)(n))}else t.expectedReturn=(0,i.NP)(a.expectedReturn,r,C,(0,i.Ei)(n));t.commission=parseFloat(n.split("%")[0]),t.blocked=x[t.address].blocked,t.identity=x[t.address].identity,t.isVerified=x[t.address].isVerified}return d}async function A(e,t){const n=await t.isReady,a=[],r=await n.api.query.nominationPools.reversePoolIdLookup.entries();return await Promise.all(r.map((async e=>{var r;const s=e[0].toHuman()[0],o=e[1].toPrimitive(),c=t.api.consts.nominationPools.palletId.toString(),u=(0,i.ls)(t.api,0,o,c),[l,d,p,m]=await Promise.all([n.api.query.staking.nominators(u),n.api.query.nominationPools.bondedPools(o),n.api.query.nominationPools.metadata(o),n.api.query.staking.minimumActiveStake()]),y=m.toPrimitive(),g=l.toJSON(),b=p.toPrimitive(),v=d.toPrimitive(),_=(0,h.qv)(b)?(0,f.I)(b):b,A="Open"===v.state,w=!!g&&g.targets.length>0,I=v.points>y;a.push({id:o,address:s,name:_,bondedAmount:(null===(r=v.points)||void 0===r?void 0:r.toString())||"0",roles:v.roles,memberCounter:v.memberCounter,state:v.state,isProfitable:A&&w&&I})}))),a}async function w(e,t,n,a,r,i,s="Staked"){const o=await e.isReady,c=new(p())(t);let u,l;const d=o.api.tx.staking.bond.toJSON().args.length,h=n.map((e=>e.address));return i?i.isBondedBefore?(c.gt(m.Yz)&&(u=o.api.tx.staking.bondExtra(c)),i.isBondedBefore&&n.length>0&&(l=o.api.tx.staking.nominate(h)),u&&!l?u:l&&!u?l:o.api.tx.utility.batchAll([u,l])):(u=2===d?o.api.tx.staking.bond(c,s):o.api.tx.staking.bond(i.address,c,s),l=o.api.tx.staking.nominate(h),o.api.tx.utility.batchAll([u,l])):(u=2===d?o.api.tx.staking.bond(c,s):o.api.tx.staking.bond(r,c,s),l=o.api.tx.staking.nominate(h),o.api.tx.utility.batchAll([u,l]))}async function I(e,t,n){const a=await e.isReady,r=new(p())(t);if(t===n.activeStake){const e=a.api.tx.staking.chill(),t=a.api.tx.staking.unbond(r);return a.api.tx.utility.batchAll([e,t])}return a.api.tx.staking.unbond(r)}async function S(e,t){return(await e.isReady).api.tx.staking.rebond(t.claimable)}async function x(e,t=!0){const n=await e.isReady;return t?n.api.tx.nominationPools.bondExtra("Rewards"):n.api.tx.nominationPools.claimPayout()}async function C(e,t,n,a){const r=await e.isReady;return new(p())((null==a?void 0:a.activeStake)||"0").gt(m.Yz)?r.api.tx.nominationPools.bondExtra({FreeBalance:t}):r.api.tx.nominationPools.join(t,n)}async function k(e,t,n){return(await e.isReady).api.tx.nominationPools.unbond({Id:n.address},t)}[r,i,o]=y.then?(await y)():y,a()}catch(T){a(T)}}))},10485:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Ah:()=>F,Ei:()=>N,I1:()=>P,Ip:()=>D,Ji:()=>j,Mq:()=>Z,NP:()=>R,Np:()=>L,Nu:()=>O,R3:()=>z,Wq:()=>M,by:()=>V,jU:()=>E,kr:()=>B,ls:()=>x,mW:()=>J,n1:()=>W,qN:()=>q,rT:()=>G,uI:()=>X,ut:()=>H,x6:()=>K});var r=n(11266),i=n(45723),s=n(91600),o=n(90233),c=n(98865),u=n(19203),l=n(21778),d=n(35845),p=n(85658),h=n(96483),f=n(9492),m=n(79636),y=n(43075),g=n(81106),b=n(82823),v=n.n(b),_=n(74873),A=e([s,u,l]);let w,I,S;function x(e,t,n,a){const r=(0,m.j)("modl"),i=new Uint8Array(32);return e.registry.createType("AccountId32",(0,y.z)(r,a,new Uint8Array([t]),(0,g.a)(new(v())(n.toString()),{bitLength:32,isLe:!0}),i)).toString()}function C(e){return i.vF[e]||i.Vw}function k(e,t){const n=e.div(_.pr).div(_.EX).toNumber();return 0===n?0:t/n}function T(e,t,n,a,r){return e+(t<=n?t*(a-e/n):(a*n-e)*Math.pow(2,(n-t)/r))}function E(e,t,n,a){const r=C(a),{auctionAdjust:i,auctionMax:s,falloff:c,maxInflation:u,minInflation:l,stakeTarget:d}=r,p=d-Math.min(s,n)*i,h=u/p,f=e.mul(_.i5).div(t).toNumber()/_.i5.toNumber();return o.hG.aleph.includes(a)?r.yearlyInflationInTokens?100*k(t,r.yearlyInflationInTokens):100*T(l,f,p,h,c):100*(l+(f<=p?f*(h-l/p):(h*p-l)*Math.pow(2,(p-f)/c)))}function P(e,t,n,a,r,i,o){const{decimals:c}=(0,s.N2)(e),u=new h.A(a).dividedBy(new h.A(10**c)),l=new h.A(t).dividedBy(new h.A(10**c)),d=u.dividedBy(l),p=r.multipliedBy(n).dividedBy(t).multipliedBy(100);let f;if(o){const e=p.dividedBy(100).plus(1).exponentiatedBy(365);f=new h.A(100).multipliedBy(e).minus(100)}else f=p.multipliedBy(365);return(["avail_mainnet","dentnet"].includes(e.slug)?i:f).dividedBy(d).toNumber()}function O(e,t){return e*(100-t)/100}function B(e,t,n){return e*((100-n)/100)/t*365*100}function R(e,t,n,a){const r=n.mul(_.cM).div(t).toNumber()*e;return(r>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:r)/100*(100-a)/100}function N(e){return parseFloat(e.split("%")[0])}function M(e,t){const n=(0,u.p9)(t.expect.min),a=(0,u.p9)(t.expect.max);if(ea){const e=t.annual.max.split("%")[0];return parseFloat(e)}const r=t.annual.ideal.split("%")[0];return parseFloat(r)}function D(e){const t=[];let n=0;for(const a of e)n+=1,t.push((0,l.le)(a.validatorAddress,0));return{nominationCount:n,bondedValidators:t}}function L(e,t,n){let a=!1;for(const r of t)if((0,l.le)(r.validatorAddress,0)===(0,l.le)(e,0)){n===r.activeStake&&(a=!0);break}return a}function V(e,t){let n=c.j.EARNING_REWARD;if(e.isZero())n=c.j.NOT_EARNING;else{let e=0;for(const n of t)n.status===c.j.NOT_EARNING&&(e+=1);e>0&&e30?30:a}function K(e){const t={};return Object.values(e).forEach((e=>{const n=e.individual;Object.entries(n).forEach((([e,n])=>{t[e]?t[e]=t[e].plus(n):t[e]=new h.A(n)}))})),t}function j(e){const t=Object.fromEntries(Object.entries(e).sort(((e,t)=>e[1].minus(t[1]).toNumber())).reverse()),n=Object.entries(t),a=Math.ceil(n.length/2),r=n.slice(0,a),i=Object.fromEntries(r);return Object.keys(i)}function q(e){const t=[];for(const n of e){const e=n[0].toHuman()[0];n[1].toHuman().blocked&&t.push(e)}return t}function z(e){const t=[];for(const n of e){const e=n[0].toHuman()[0];n[1].toHuman().blocked||t.push(e)}return t}function G(e,t){const n={};for(const a of e)n[t]=a.toPrimitive(),t++;return n}async function W(e){var t,n,a;await e.isReady;const r=(null===(t=e.api.consts.staking)||void 0===t||null===(n=t.maxNominations)||void 0===n?void 0:n.toString())||"16",i=await(null===(a=e.api.call.stakingApi)||void 0===a?void 0:a.nominationsQuota(0));return(null==i?void 0:i.toString())||r}[s,u,l]=A.then?(await A)():A,function(e){e.REVOKE="revoke",e.DECREASE="decrease",e.BOND_LESS="bondLess"}(w||(w={})),function(e){e.STAKE="STAKE",e.UNSTAKE="UNSTAKE",e.WITHDRAW="WITHDRAW",e.CLAIM_REWARD="CLAIM_REWARD",e.CANCEL_UNSTAKE="CANCEL_UNSTAKE",e.START_EARNING="EARN",e.WITHDRAW_EARNING="WITHDRAW_EARNING",e.CUSTOM_ACTION="CUSTOM_ACTION"}(I||(I={})),function(e){e.STAKE="STAKE",e.UNSTAKE="UNSTAKE",e.WITHDRAW="WITHDRAW",e.CLAIM_REWARD="CLAIM_REWARD",e.CANCEL_UNSTAKE="CANCEL_UNSTAKE"}(S||(S={}));const X=(e,t)=>{const n=(0,s.N2)(e),a=(0,p.ZV)(t.toString(),n.decimals||0,p.x1);return(0,f.t)("Insufficient stake. You need to stake at least {{number}} {{tokenSymbol}} to earn rewards",{replace:{tokenSymbol:n.symbol,number:a}})},Z=(e,t)=>{let n=(0,d.c)("You cannot select more than {{number}} validators for this network");const a=U(e.slug);if(t>1)switch(a){case"dApp":n=(0,d.c)("You cannot select more than {{number}} dApps for this network");break;case"Collator":n=(0,d.c)("You cannot select more than {{number}} collators for this network");break;case"Validator":n=(0,d.c)("You cannot select more than {{number}} validators for this network")}else switch(a){case"dApp":n=(0,d.c)("You cannot select more than {{number}} dApp for this network");break;case"Collator":n=(0,d.c)("You cannot select more than {{number}} collator for this network");break;case"Validator":n=(0,d.c)("You cannot select more than {{number}} validator for this network")}return(0,f.t)(n,{replace:{number:t}})},J=(e,t,n)=>{const a=U(e);if(n)switch(a){case"dApp":return(0,f.t)("You cannot stake more for a dApp you are unstaking from");case"Collator":return(0,f.t)("You cannot stake more for a collator you are unstaking from");case"Validator":return t===r.gK.POOLED?(0,f.t)("You cannot stake more for a pool you are unstaking from"):(0,f.t)("You cannot stake more for a validator you are unstaking from")}else switch(a){case"dApp":return(0,f.t)("You can unstake from a dApp once");case"Collator":return(0,f.t)("You can unstake from a collator once");case"Validator":return t===r.gK.POOLED?(0,f.t)("You can unstake from a pool once"):(0,f.t)("You can unstake from a validator once")}};a()}catch(Y){a(Y)}}))},56340:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Gr:()=>u,Hg:()=>d,Ip:()=>l});var r=n(11266),i=n(91600),s=n(85658),o=n(96483),c=e([i]);i=(c.then?(await c)():c)[0];const u=[r.M_.MINT_VDOT,r.M_.MINT_LDOT,r.M_.MINT_SDOT,r.M_.MINT_QDOT,r.M_.MINT_STDOT,r.M_.REDEEM_QDOT,r.M_.REDEEM_SDOT,r.M_.REDEEM_VDOT,r.M_.REDEEM_LDOT,r.M_.REDEEM_STDOT,r.M_.STAKING_JOIN_POOL,r.M_.STAKING_CLAIM_REWARD,r.M_.STAKING_LEAVE_POOL,r.M_.STAKING_POOL_WITHDRAW],l=9e4;function d(e,t,n,a){var r,c;const u=(0,i.W9)(n),l=(0,i.W9)(a),d=(null===(r=t.statistic)||void 0===r||null===(c=r.assetEarning)||void 0===c?void 0:c[0].exchangeRate)||1;return new o.A(e).dividedBy(s.Xx.pow(u)).multipliedBy(d).multipliedBy(s.Xx.pow(l)).toFixed(0)}a()}catch(p){a(p)}}))},82908:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{g:()=>u});var r=n(31355),i=n(91600),s=n(19203),o=n(96004),c=e([r,s,i]);[r,s,i]=c.then?(await c)():c;class u{status="pending";constructor(e,t,n){this.subscriptions=t,this.dbService=n,this.state=e}cronMap={};subjectMap={};getCron=e=>this.cronMap[e];getSubjectMap=e=>this.subjectMap[e];addCron=(e,t,n,a=!0)=>{a&&t(),this.cronMap[e]=setInterval(t,n)};addSubscribeCron=(e,t,n)=>{const a=new o.B;t(a),this.subjectMap[e]=a,this.cronMap[e]=setInterval(t,n)};removeCron=e=>{const t=this.cronMap[e];t&&(clearInterval(t),delete this.cronMap[e])};removeAllCrons=()=>{Object.entries(this.cronMap).forEach((([e,t])=>{clearInterval(t),delete this.cronMap[e]}))};start=async()=>{if("running"===this.status)return;await Promise.all([this.state.eventService.waitKeyringReady,this.state.eventService.waitAssetReady]);const e=this.state.keyringService.context.currentAccount,t=["account.add","account.remove","account.updateCurrent","chain.add","asset.updateState"],n=["account.add","account.remove"];this.eventHandler=(e,a)=>{var i;const s=this.state.getServiceInfo(),o=a.some((e=>t.includes(e))),c=a.some((e=>n.includes(e))),u=a.includes("chain.updateState"),l=a.includes("mantaPay.submitTransaction")||a.includes("mantaPay.enable"),d=[];if(u&&e.forEach((e=>{if("chain.updateState"===e.type){const t=e.data;d.push(t[0])}})),!o&&!u&&!l)return;const p=null===(i=s.currentAccountInfo)||void 0===i?void 0:i.proxyId;if(!p)return;const h=s.chainInfoMap,f=this.needUpdateNft(h,d);l&&this.removeCron("syncMantaPay"),o&&this.removeCron("refreshPoolingStakingReward"),(o||f)&&this.resetNft(p),(o||f)&&this.removeCron("refreshNft"),o&&this.removeCron("refreshPoolingStakingReward"),c&&(this.removeCron("fetchMktCampaignData"),this.addCron("fetchMktCampaignData",this.fetchMktCampaignData,r.B3)),u&&(this.stopPoolInfo(),this.removeCron("fetchPoolInfo"),this.addCron("fetchPoolInfo",this.fetchPoolInfo,r.zq)),this.checkNetworkAvailable(s)&&((o||f)&&this.addCron("refreshNft",this.refreshNft(p,s.chainApiMap,this.state.getSmartContractNfts(),this.state.getActiveChainInfoMap()),r.m3),l&&this.addCron("syncMantaPay",this.syncMantaPay,r.c9))},this.state.eventService.onLazy(this.eventHandler),this.addCron("fetchPoolInfo",this.fetchPoolInfo,r.zq),this.addCron("fetchMktCampaignData",this.fetchMktCampaignData,r.B3),null!=e&&e.proxyId&&(0===Object.keys(this.state.getSubstrateApiMap()).length&&0===Object.keys(this.state.getEvmApiMap()).length||(this.resetNft(e.proxyId),this.addCron("refreshNft",this.refreshNft(e.proxyId,this.state.getApiMap(),this.state.getSmartContractNfts(),this.state.getActiveChainInfoMap()),r.m3),this.addCron("syncMantaPay",this.syncMantaPay,r.c9)),this.status="running")};stop=async()=>{if("stopped"!==this.status)return this.eventHandler&&(this.state.eventService.offLazy(this.eventHandler),this.eventHandler=void 0),this.serviceSubscription&&(this.serviceSubscription.unsubscribe(),this.serviceSubscription=void 0),this.removeAllCrons(),this.stopPoolInfo(),this.status="stopped",Promise.resolve()};syncMantaPay=()=>{this.state.isMantaPayEnabled&&this.state.syncMantaPay().catch(console.warn)};fetchPoolInfo=()=>{this.state.earningService.runSubscribePoolsInfo().catch(console.error)};fetchMktCampaignData=()=>{this.state.mktCampaignService.fetchMktCampaignData()};stopPoolInfo=()=>{this.state.earningService.runUnsubscribePoolsInfo()};refreshNft=(e,t,n,a)=>()=>{this.subscriptions.subscribeNft(e,t.substrate,t.evm,n,a)};resetNft=e=>{this.state.resetNft(e)};checkNetworkAvailable=e=>Object.keys(e.chainApiMap.substrate).length>0||Object.keys(e.chainApiMap.evm).length>0;async reloadNft(){const e=this.state.keyringService.context.currentAccount.proxyId,t=this.state.getServiceInfo();return this.resetNft(e),this.removeCron("refreshNft"),this.addCron("refreshNft",this.refreshNft(e,t.chainApiMap,this.state.getSmartContractNfts(),this.state.getActiveChainInfoMap()),r.m3),await(0,s.j4)(1800),!0}async reloadStaking(){const e=this.state.keyringService.context.currentAccount.proxyId;return console.log("reload staking",e),await(0,s.j4)(1800),!0}needUpdateNft(e,t){return!!(t&&t.length>0)&&t.some((t=>{const n=e[t];return(0,i.jO)(n)||(0,i.uu)(n)||(0,i.cC)(n)}))}}a()}catch(e){a(e)}}))},63983:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>ve});var r=n(30469),i=n(3132),s=n(38397),o=n(340),c=n(53191),u=n(98552),l=n(11266),d=n(44434),p=n(31355),h=n(67457),f=n(97245),m=n(1555),y=n(12598),g=n(80562),b=n(1676),v=n(29727),_=n(35968),A=n(90262),w=n(49352),I=n(32767),S=n(26496),x=n(56340),C=n(75989),k=n(1317),T=n(56534),E=n(77864),P=n(12152),O=n(45723),B=n(35331),R=n(91600),N=n(19159),M=n(68498),D=n(29982),L=n(88826),V=n(72247),U=n(34446),H=n(14298),F=n(78932),K=n(70445),j=n(80995),q=n(89435),z=n(21778),G=n(19203),W=n(85658),X=n(19540),Z=n(12694),J=n(31882),Y=n(57365),Q=n(86972),$=n(88788),ee=n(1268),te=n(52484),ne=n(61116),ae=n(83386),re=n(96483),ie=n(9492),se=n(96004),oe=n(56529),ce=n(83141),ue=n(66357),le=n(60184),de=n(99128),pe=n(44869),he=n(87004),fe=n(73630),me=n(83461),ye=n(76515),ge=n(20258),be=e([M,ne,o,j,q,z,G,y,h,R,k,E,T,f,P,p,A,Y,w,S,I,L,D,x]);[M,ne,o,j,q,z,G,y,h,R,k,E,T,f,P,p,A,Y,w,S,I,L,D,x]=be.then?(await be)():be;class ve{#e=void 0;#t;#n=M.EM;#a=!1;#r=!0;#i=!1;#s=new se.B;constructor(e){this.#t=e;const t=e=>{this.#n!==e.timeAutoLock&&(this.#n=e.timeAutoLock,this.#i=!e.timeAutoLock,clearTimeout(this.#e),this.#n>0?this.#e=setTimeout((()=>{this.#a||(this.keyringLock(),n(Date.now()))}),60*this.#n*1e3):this.#i&&(this.#r||(this.keyringLock(),n(Date.now())))),this.#r&&(this.#r=!1)},n=e=>{V.W.instance.setItem(d.bv,JSON.stringify({remind:!0,timeCalculate:e})).catch(console.error)};this.#t.settingService.getSettings(t),this.#t.settingService.getSubject().subscribe({next:t})}accountsEdit(e){return this.#t.keyringService.context.accountsEdit(e)}tonGetAllTonWalletContractVersion(e){return this.#t.keyringService.context.tonGetAllTonWalletContractVersion(e)}tonAccountChangeWalletContractVersion(e){return this.#t.keyringService.context.tonAccountChangeWalletContractVersion(e)}accountsExport({address:e,password:t}){return{exportedJson:ne.AC.backupAccount(ne.AC.getPair(e),t)}}metadataApprove({id:e}){const t=this.#t.getMetaRequest(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{request:n,resolve:a}=t;return this.#t.saveMetadata(n),a(!0),!0}metadataGet(e){return this.#t.knownMetadata.find((t=>t.genesisHash===e))||null}metadataList(){return this.#t.knownMetadata}metadataReject({id:e}){const t=this.#t.getMetaRequest(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new Error("Rejected")),!0}metadataSubscribe(e,t){const n=(0,u.Ky)(e,t),a=this.#t.metaSubject.subscribe((e=>n(e)));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),this.#t.metaSubject.value}signingApproveSignature({id:e,signature:t,signedTransaction:n}){const a=this.#t.getSignRequest(e);(0,le.vA)(a,(0,ie.t)("Unable to proceed. Please try again"));const{resolve:r}=a;return r({id:e,signature:t,signedTransaction:n}),!0}signingCancel({id:e}){const t=this.#t.getSignRequest(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new o.J(H.xu.USER_REJECT_REQUEST)),!0}signingSubscribe(e,t){const n=(0,u.Ky)(e,t),a=this.#t.signSubject.subscribe((e=>n(e)));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),this.#t.signSubject.value}windowOpen({allowedPath:e,params:t,subPath:n}){let a="";if(t){a+="?";for(let e=0;echrome.tabs.create({url:r}))),!0):(console.error("Not allowed to open the url:",r),!1)}cancelSubscription(e){return this.#t.cancelSubscription(e)}createUnsubscriptionHandle(e,t){this.#t.createUnsubscriptionHandle(e,t)}accountExportPrivateKey(e){return this.#t.accountExportPrivateKey(e)}checkPublicAndSecretKey(e){return this.#t.checkPublicAndSecretKey(e)}checkNameExists(e){return this.#t.keyringService.context.checkNameExists(e)}async accountsGetAllWithCurrentAddress(e,t){const n=(0,u.Ky)(e,t),a=this.#t.keyringService;await this.#t.eventService.waitAccountReady,await this.#t.eventService.waitInjectReady;const r=a.context.currentAccount,i=a.context.accounts,s=Object.values(i),o={accounts:null!=s&&s.length?[(0,j.im)(s),...s]:[],currentAccountProxy:null==r?void 0:r.proxyId},c=a.context.observable.accounts,l=a.context.observable.currentAccount,d=(0,oe.z)({accountProxies:c,currentAccount:l}).subscribe((({accountProxies:e,currentAccount:t})=>{const a=Object.values(e);o.accounts=null!=a&&a.length?[(0,j.im)(a),...a]:[],o.currentAccountProxy=null==t?void 0:t.proxyId,console.debug("subscriptionAccountGroups",o),n(o)}));return this.createUnsubscriptionHandle(e,(()=>{d.unsubscribe()})),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),o}async subscribeInputAddressData(e,t,n){const{chain:a,data:r}=e,i=(0,u.Ky)(t,n),s=async(e,n,i)=>{const s=Object.values(n),o=(0,j.X9)(i),c=e[a],u=this.#t.chainService.getSubstrateApi(a),l=await(0,q.i)(r,s,o,c,u);return{id:t,...l}},o=this.#t.keyringService.context.observable.accounts,c=this.#t.keyringService.context.observable.contacts,l=this.#t.chainService.subscribeChainInfoMap().asObservable(),d=(0,oe.z)({chainInfoMap:l,accountProxies:o,contacts:c}).subscribe((({accountProxies:e,chainInfoMap:t,contacts:n})=>{s(t,e,n).then((e=>i(e))).catch(console.error)}));this.createUnsubscriptionHandle(t,(()=>{d.unsubscribe()})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)}));const p=this.#t.keyringService.context.value.accounts,h=this.#t.keyringService.context.value.contacts,f=this.#t.chainService.getChainInfoMap();return s(f,p,h)}subscribeAddresses(e,t){const n=(0,u.Ky)(e,t);let a="";const r=this.#t.keyringService.context.observable.contacts.subscribe((e=>{const t=(0,j.X9)(e),r=JSON.stringify(t);a!==r&&(n({addresses:t}),a=r)}));this.createUnsubscriptionHandle(e,(()=>{r.unsubscribe()})),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)}));const i=this.#t.keyringService.context.contacts;return{addresses:(0,j.TC)(i)}}saveRecentAccount({accountId:e,chain:t}){if((0,$.PW)(e)){const n=(0,z.le)(e),a=ne.AC.getAccount(n),r=ne.AC.getAddress(n,"address");if(a)return a;{let e;if(e=r?r.meta:ne.AC.saveRecent(n).json.meta,r&&!e.isRecent)return r;const a=e.recentChainSlugs||[];return t&&(a.includes(t)||a.push(t)),e.recentChainSlugs=a,{...ne.AC.addresses.add(new U.A,n,n,{address:n,meta:e}).json,publicKey:(0,ye.F)(n)}}}throw Error((0,ie.t)("This is not an address"))}editContactAccount({address:e,meta:t}){if((0,$.PW)(e)){const n=(0,z.le)(e);return ne.AC.saveAddress(n,t),!0}throw Error((0,ie.t)("This is not an address"))}deleteContactAccount({address:e}){if((0,$.PW)(e)){const t=(0,z.le)(e);return ne.AC.forgetAddress(t),!0}throw Error((0,ie.t)("This is not an address"))}_getAuthListV2(){const e=this.#t.keyringService;return new Promise(((t,n)=>{this.#t.getAuthorize((n=>{const a=Object.keys(e.context.pairs),r=Object.keys(n);Object.keys(n[r[0]].isAllowedMap).toString()!==a.toString()&&(r.forEach((e=>{a.forEach((t=>{Object.keys(n[e].isAllowedMap).includes(t)||(n[e].isAllowedMap[t]=!1)})),Object.keys(n[e].isAllowedMap).forEach((t=>{a.includes(t)||delete n[e].isAllowedMap[t]}))})),this.#t.setAuthorize(n)),t(n)}))}))}authorizeSubscribeV2(e,t){const n=(0,u.Ky)(e,t),a=this.#t.authSubjectV2.subscribe((e=>n(e)));return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.authSubjectV2.value}async getAuthListV2(){return{list:await this._getAuthListV2()}}authorizeApproveV2({accounts:e,id:t}){const n=this.#t.getAuthRequestV2(t);(0,le.vA)(n,(0,ie.t)("Unable to proceed. Please try again"));const{resolve:a}=n;return a({accounts:e,result:!0}),!0}authorizeRejectV2({id:e}){const t=this.#t.getAuthRequestV2(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new Error("Rejected")),!0}authorizeCancelV2({id:e}){const t=this.#t.getAuthRequestV2(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new Error("Cancelled")),!0}_forgetSite(e,t){this.#t.getAuthorize((n=>{(0,le.vA)(n,"The source is not known"),delete n[e],this.#t.setAuthorize(n,(()=>{t&&t(n)}))}))}forgetSite(e,t,n){const a=(0,u.Ky)(t,n);return this._forgetSite(e.url,(e=>{a(e)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}_forgetAllSite(e){this.#t.getAuthorize((t=>{(0,le.vA)(t,"The source is not known"),t={},this.#t.setAuthorize(t,(()=>{e&&e(t)}))}))}forgetAllSite(e,t){const n=(0,u.Ky)(e,t);return this._forgetAllSite((e=>{n(e)})),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),!0}getPairs(){const e=this.#t.keyringService.context.pairs;return(0,j.TC)(e)}isAddressValidWithAuthType(e,t){const n=(0,ee.V)(e),a={evm:te.u,substrate:te.oj,ton:te.MM};return!!t&&t.some((e=>{var t;return null===(t=a[e])||void 0===t?void 0:t.includes(n)}))}filterAccountsByAccountAuthType(e,t){return t?t.reduce(((t,n)=>("evm"===n?e.forEach((({address:e})=>(0,ge.q)(e)&&t.push(e))):"substrate"===n?e.forEach((({address:e})=>(0,ee.qy)(e)&&t.push(e))):"ton"===n&&e.forEach((({address:e})=>(0,ee.Yy)(e)&&t.push(e))),t)),[]):[]}_changeAuthorizationAll(e,t){this.#t.getAuthorize((n=>{(0,le.vA)(n,"The source is not known");const a=this.getPairs();Object.keys(n).forEach((t=>{n[t].isAllowed&&this.filterAccountsByAccountAuthType(a,n[t].accountAuthTypes).forEach((a=>{n[t].isAllowedMap[a]=e}))})),this.#t.setAuthorize(n,(()=>{t&&t(n)}))}))}changeAuthorizationAll(e,t,n){const a=(0,u.Ky)(t,n);return this._changeAuthorizationAll(e.connectValue,(e=>{a(e)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}_changeAuthorization(e,t,n){this.#t.getAuthorize((a=>{(0,le.vA)(a[e],"The source is not known");const r=this.getPairs();this.filterAccountsByAccountAuthType(r,a[e].accountAuthTypes).forEach((n=>{a[e].isAllowedMap[n]=t})),this.#t.setAuthorize(a,(()=>{n&&n(a)}))}))}toggleAuthorization2(e){return new Promise((t=>{this.#t.getAuthorize((n=>{(0,le.vA)(n[e],"The source is not known"),n[e].isAllowed=!n[e].isAllowed,this.#t.setAuthorize(n,(()=>{t({list:n})}))}))}))}changeAuthorization(e,t,n){const a=(0,u.Ky)(t,n);return this._changeAuthorization(e.url,e.connectValue,(e=>{a(e)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}_changeAuthorizationPerAcc(e,t,n,a){this.#t.getAuthorize((r=>{(0,le.vA)(r,"The source is not known"),this.isAddressValidWithAuthType(e,r[n].accountAuthTypes)?(r[n].isAllowedMap[e]=t,this.#t.setAuthorize(r,(()=>{a&&a(r)}))):a&&a(r)}))}_changeAuthorizationBlock(e,t){this.#t.getAuthorize((n=>{(0,le.vA)(n,"The source is not known"),n[t].isAllowed=e,this.#t.setAuthorize(n)}))}_changeAuthorizationPerSite(e,t){this.#t.getAuthorize((n=>{(0,le.vA)(n,"The source is not known"),n[t].isAllowedMap=e,this.#t.setAuthorize(n)}))}changeAuthorizationPerAcc(e,t,n){const a=(0,u.Ky)(t,n);return this._changeAuthorizationPerAcc(e.address,e.connectValue,e.url,(e=>{a(e)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}changeAuthorizationPerSite(e){return this._changeAuthorizationPerSite(e.values,e.id),!0}changeAuthorizationBlock(e){return this._changeAuthorizationBlock(e.connectedValue,e.id),!0}async getSettings(){return await new Promise((e=>{this.#t.getSettings((t=>{e(t)}))}))}async toggleBalancesVisibility(){return new Promise((e=>{this.#t.getSettings((t=>{const n={...t,isShowBalance:!t.isShowBalance};this.#t.setSettings(n,(()=>{e(!t.isShowBalance)}))}))}))}saveAccountAllLogo(e,t,n){const a=(0,u.Ky)(t,n);return this.#t.getSettings((t=>{const n={...t,accountAllLogo:e};this.#t.setSettings(n,(()=>{a(n)}))})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}saveTheme(e){return this.#t.updateSetting("theme",e),!0}setCamera({camera:e}){return this.#t.updateSetting("camera",e),!0}saveBrowserConfirmationType(e){return this.#t.updateSetting("browserConfirmationType",e),!0}setAutoLockTime({autoLockTime:e}){return this.#t.updateSetting("timeAutoLock",e),!0}setUnlockType({unlockType:e}){return this.#t.updateSetting("unlockType",e),!0}async subscribeSettings(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeSettingsSubject().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.getSettings()}setEnableChainPatrol({enable:e}){return this.#t.updateSetting("enableChainPatrol",e),!0}setShowZeroBalance({show:e}){return this.#t.updateSetting("isShowZeroBalance",e),!0}setLanguage({language:e}){return this.#t.updateSetting("language",e),!0}setShowBalance({enable:e}){return this.#t.updateSetting("isShowBalance",e),!0}async subscribeAuthUrls(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeAuthorizeUrlSubject().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.#t.getAuthList()}async saveCurrentAccountProxy(e){return new Promise((t=>{this.#t.keyringService.context.saveCurrentAccountProxyId(e.address,(()=>{t(!0)}))}))}async getAssetSetting(){return this.#t.chainService.getAssetSettings()}subscribeAssetSetting(e,t){const n=(0,u.Ky)(e,t),a=this.#t.chainService.subscribeAssetSettings().subscribe(n);return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getAssetSetting()}async updateAssetSetting(e){try{return await this.#t.chainService.updateAssetSetting(e.tokenSlug,e.assetSetting,e.autoEnableNativeToken),this.#t.eventService.emit("asset.updateState",e.tokenSlug),!0}catch(e){return console.error(e),!1}}async getPrice(){return this.#t.priceService.getPrice()}async setPriceCurrency({currency:e}){return await this.#t.priceService.setPriceCurrency(e)}subscribePrice(e,t){const n=(0,u.Ky)(e,t),a=this.#t.priceService.getPriceSubject().subscribe((e=>{n(e)}));return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getPrice()}async getBalance(e){return this.#t.balanceService.getBalance(e)}async subscribeBalance(e,t){const n=(0,u.Ky)(e,t),a=this.#t.balanceService.subscribeBalanceMap().subscribe({next:e=>{n({details:e})}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.getBalance(!0)}getCrowdloan(e){return this.#t.getCrowdloan(e)}getCrowdloanContributions(e){return this.#t.getCrowdloanContributions(e)}subscribeCrowdloan(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeCrowdloan().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getCrowdloan(!0)}accountsCreateSuriV2(e){const t=this.#t.keyringService.context.accountsCreateSuriV2(e);return this.#i&&this.keyringLock(),t}async accountsForgetOverride(e){const t=await this.#t.keyringService.context.accountProxyForget(e);await new Promise((e=>{this.#t.getAuthorize((n=>{n&&Object.keys(n).length?(Object.keys(n).forEach((e=>{for(const a of t)delete n[e].isAllowedMap[a]})),this.#t.setAuthorize(n,e)):e()}))}));for(const e of t)await this.#t.disableMantaPay(e);return e.lockAfter&&this.checkLockAfterMigrate(),!0}seedCreateV2(e){return this.#t.keyringService.context.mnemonicCreateV2(e)}seedValidateV2(e){return this.#t.keyringService.context.mnemonicValidateV2(e)}privateKeyValidateV2(e){return this.#t.keyringService.context.privateKeyValidateV2(e)}parseInfoSingleJson(e){return this.#t.keyringService.context.parseInfoSingleJson(e)}async jsonRestoreV2(e){return await this.#t.keyringService.context.jsonRestoreV2(e,(()=>{this.#i&&this.keyringLock()}))}parseInfoMultiJson(e){return this.#t.keyringService.context.parseInfoMultiJson(e)}batchRestoreV2(e){return this.#t.keyringService.context.batchRestoreV2(e)}async batchExportV2(e){return this.#t.keyringService.context.batchExportV2(e)}exportAccountProxyMnemonic(e){return this.#t.keyringService.context.exportAccountProxyMnemonic(e)}getNftCollection(){return this.#t.getNftCollection()}subscribeNftCollection(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeNftCollection().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getNftCollection()}getNft(){return this.#t.getNft()}async subscribeNft(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeNft().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getNft()}getStakingReward(){return new Promise(((e,t)=>{this.#t.getStakingReward((t=>{e(t)}))}))}subscribeStakingReward(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeStakingReward().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.getStakingReward()}async getStaking(){return this.#t.getStaking()}async subscribeStaking(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeStaking().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.getStaking()}async subscribeHistory(e,t){const n=(0,u.Ky)(e,t),a=await this.#t.historyService.getHistorySubject(),r=a.subscribe((e=>{const t=ne.AC.getAccounts().map((e=>e.address));n(e.filter((e=>t.some((t=>(0,G.Lb)(e.address,t))))))}));this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)}));const i=ne.AC.getAccounts().map((e=>e.address));return a.getValue().filter((e=>i.some((t=>(0,G.Lb)(e.address,t)))))}subscribeHistoryByChainAndAddress({address:e,chain:t},n,a){const r=(0,u.Ky)(n,a),i=this.#t.historyService.subscribeHistories(t,e,r);return this.createUnsubscriptionHandle(n,i.unsubscribe),a.onDisconnect.addListener((()=>{this.cancelSubscription(n)})),{id:n,items:i.value}}async getOptimalTransferProcess(e){return this.#t.balanceService.getOptimalTransferProcess(e)}async approveSpending(e){const{amount:t,chain:n,contractAddress:a,owner:r,spenderAddress:i}=e;if(!(0,g.tM)(i))throw new Error("Only SnowBridge is supported");const s=this.#t.getEvmApi(n),o=await(0,y.o3)(i,r,a,s,t);return this.#t.transactionService.handleTransaction({errors:[],warnings:[],address:r,chain:n,chainType:l.IG.EVM,transferNativeAmount:"0",transaction:o,data:e,resolveOnDone:!0,extrinsicType:l.M_.TOKEN_SPENDING_APPROVAL,isTransferAll:!1})}async makeTransfer(e){const{from:t,networkKey:n,to:a,tokenSlug:r,transferAll:i,transferBounceable:s,value:o}=e,c=this.#t.chainService.getAssetBySlug(r),[u,,]=(0,h.Dz)(c,t,a,o,i),d=this.#t.getChainInfo(n),p=this.#t.getNativeTokenInfo(n),f=p.slug,m=f===r,y=m?l.M_.TRANSFER_BALANCE:l.M_.TRANSFER_TOKEN;let g=l.IG.SUBSTRATE;const b={value:"0",symbol:(0,R.e9)(c),decimals:(0,R.W9)(c)};let v;const _=await this.getAddressTransferableBalance({address:t,networkKey:n,token:r,extrinsicType:y});try{if((0,ge.q)(t)&&(0,ge.q)(a)&&(0,R.s9)(c)){g=l.IG.EVM;const e=i?_.value:o||"0",r=this.#t.getEvmApi(n);(0,R.Bb)(c)||(0,R.qF)(c)?[v,b.value]=await(0,k.si)((0,R._b)(c),d,t,a,e,!!i,r):[v,b.value]=await(0,k.O3)(d,t,a,e,!!i,r)}else if((0,R.K5)(c))v=void 0,b.value="0";else if((0,ee.Yy)(t)&&(0,ee.Yy)(a)&&(0,R.Nr)(c)){g=l.IG.TON;const e=this.#t.getTonApi(n);[v,b.value]=await(0,E.C)({tokenInfo:c,from:t,to:a,networkKey:n,value:o||"0",transferAll:!!i,tonApi:e})}else{const e=this.#t.getSubstrateApi(n);[v,b.value]=await(0,T.R)({transferAll:!!i,value:o||"0",from:t,networkKey:n,tokenInfo:c,to:a,substrateApi:e})}}catch(e){const t=e;throw t.message.includes("transfer amount exceeds balance")&&(t.message=(0,ie.t)("Insufficient balance")),t}const A=m?b.value:"0",w=[];return i&&w.push(F.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT),s&&w.push(F.g.IS_BOUNCEABLE_ADDRESS),this.#t.transactionService.handleTransaction({errors:u,warnings:[],address:t,chain:n,chainType:g,transferNativeAmount:A,transaction:v,data:e,extrinsicType:y,ignoreWarnings:w,isTransferAll:!!m&&i,edAsWarning:m,additionalValidator:async e=>{let i,s;if(!m){const[e,o]=await Promise.all([this.getAddressTransferableBalance({address:t,networkKey:n,token:r,extrinsicType:y}),this.getAddressTransferableBalance({address:a,networkKey:n,token:f,extrinsicType:l.M_.TRANSFER_BALANCE})]);i=e.value,s=o.value}const{value:o}=await this.getAddressTransferableBalance({address:a,networkKey:n,token:r,extrinsicType:y}),[u,d]=(0,h.lC)(c,p,y,o,b.value,i,s);u.length&&e.warnings.push(...u),d.length&&e.errors.push(...d)}})}async makeCrossChainTransfer(e){const{destinationNetworkKey:t,from:n,originNetworkKey:a,to:r,tokenSlug:i,transferAll:s,transferBounceable:o,value:c}=e,u=this.#t.getAssetBySlug(i),d=this.#t.getXcmEqualAssetByChain(t,i),[p,m]=(0,h.z6)(d,n,c);let y=null;if(p.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(p);const g=this.#t.getChainInfoMap(),b=(0,R.Rz)(g[a])&&(0,f.eO)(g[a],g[t]);let v,_;if(m&&d){if(b){const e=this.#t.getEvmApi(a);y=await(0,P.CA)({destinationTokenInfo:d,originTokenInfo:u,sendingValue:c,sender:n,recipient:r,chainInfoMap:g,evmApi:e})}else{const e=this.#t.getSubstrateApi(a);y=await(0,P.uo)({destinationTokenInfo:d,originTokenInfo:u,sendingValue:c,recipient:r,chainInfoMap:g,substrateApi:e})}v=async e=>{const{value:i}=await this.getAddressTransferableBalance({address:n,networkKey:a,token:u.slug}),s=(0,f.eO)(g[a],g[t]);let o="0";if(s){const{value:e}=await this.getAddressTransferableBalance({address:r,networkKey:t,extrinsicType:l.M_.TRANSFER_BALANCE});o=e}const[p,m]=(0,h.Dx)(u,d,c,i,o,g[t],s);m&&e.errors.push(m),p&&e.warnings.push(p)},_=e=>{e.on("send",(()=>{try{ne.AC.getPair(r)&&this.updateAssetSetting({autoEnableNativeToken:!1,tokenSlug:d.slug,assetSetting:{visible:!0}}).catch(console.error)}catch(e){}}))}}const A=[];return s&&A.push(F.g.NOT_ENOUGH_EXISTENTIAL_DEPOSIT),o&&A.push(F.g.IS_BOUNCEABLE_ADDRESS),await this.#t.transactionService.handleTransaction({url:N.mX,address:n,chain:a,transaction:y,data:e,extrinsicType:l.M_.TRANSFER_XCM,chainType:b?l.IG.EVM:l.IG.SUBSTRATE,transferNativeAmount:(0,R.Uy)(u)?c:"0",ignoreWarnings:A,isTransferAll:s,errors:p,additionalValidator:v,eventsHandler:_})}async evmNftSubmitTransaction(e){const{networkKey:t,params:n,recipientAddress:a,senderAddress:r}=e,i=n.contractAddress,s=n.tokenId;if(_.JA.includes(t))return await this.#t.transactionService.handleTransaction({address:r,chain:t,chainType:l.IG.EVM,data:e,extrinsicType:l.M_.SEND_NFT,transaction:null,url:N.mX});const o=await(0,k.Jy)(this.#t.getEvmApi(t),t,i,r,a,s);return await this.#t.transactionService.handleTransaction({address:r,chain:t,chainType:l.IG.EVM,data:e,extrinsicType:l.M_.SEND_NFT,transaction:o,url:N.mX})}async upsertChain(e){try{return await this.#t.upsertChainInfo(e)}catch(e){return console.error(e),!1}}removeCustomChain(e){return this.#t.removeCustomChain(e)}disableChain(e){return this.#t.disableChain(e)}async enableChain({chainSlug:e,enableTokens:t}){return await this.#t.enableChain(e,t)}async reconnectChain(e){return this.#t.chainService.reconnectChain(e)}async validateNetwork({existedChainSlug:e,provider:t}){return await this.#t.validateCustomChain(t,e)}resetDefaultNetwork(){return this.#t.resetDefaultChains()}recoverDotSamaApi(e){try{return this.#t.refreshSubstrateApi(e)}catch(e){return console.error(e),!1}}async validateERC721Token(e){var t;const n=new(this.#t.getEvmApi(e.originChain).api.eth.Contract)(g.Po,null===(t=e.metadata)||void 0===t?void 0:t.contractAddress);try{return await n.methods.tokenOfOwnerByIndex("0xB7fdD27a8Df011816205a6e3cAA097DC4D8C2C5d",1).call(),!0}catch(e){return!!e.message.includes("ERC721Enumerable: owner index out of bounds")}}async upsertCustomToken(e){try{return e.assetType!==s.yH.ERC721||await this.validateERC721Token(e)?(await this.#t.upsertCustomToken(e),{success:!0,error:""}):{success:!1,error:"incompatibleNFT"}}catch(e){return console.error(e),{success:!1,error:"Error"}}}async deleteCustomAsset(e){const t=this.#t.getAssetBySlug(e);return!(!t||!(0,R.pH)(e)||((0,R.ri)(t)&&await this.#t.deleteNftCollection(t.originChain,(0,R._b)(t)),this.#t.deleteCustomAssets([e]),0))}async validateCustomAsset(e){return await this.#t.validateCustomAsset(e)}async getAddressTransferableBalance({address:e,extrinsicType:t,networkKey:n,token:a}){if(a&&O.nY.includes(n)){const t=this.#t.chainService.getAssetBySlug(a);if(t.symbol.startsWith(O.NB))return await this.#t.getMantaPayZkBalance(e,t)}return await this.#t.balanceService.getTransferableBalance(e,n,a,t)}async getMaxTransferable({address:e,destChain:t,isXcmTransfer:n,networkKey:a,token:r}){const i=r?this.#t.chainService.getAssetBySlug(r):this.#t.chainService.getNativeTokenInfo(a);if((0,R.Uy)(i)){let r;return r=n?await this.getXcmMaxTransferable(i,t,e):await this.getNativeTokenMaxTransferable(i,a,e),{value:r.gt(W.Yz)&&r.toFixed(0)||"0",decimals:i.decimals,symbol:i.symbol}}return await this.getAddressTransferableBalance({extrinsicType:l.M_.TRANSFER_TOKEN,address:e,networkKey:a,token:r})}async getXcmMaxTransferable(e,t,n){const a=this.#t.chainService.getSubstrateApi(e.originChain),r=this.#t.chainService.getChainInfoMap(),i=this.#t.getXcmEqualAssetByChain(t,e.slug),s=e.minAmount||"0";if(i){const[t,{value:o}]=await Promise.all([(0,P.ft)(a,r,e,i),this.getAddressTransferableBalance({extrinsicType:l.M_.TRANSFER_XCM,address:n,networkKey:e.originChain,token:e.slug})]),c=new re.A(o),u=t.multipliedBy(p.qC).plus(new re.A(s));return c.minus(u)}return new re.A(0)}async getNativeTokenMaxTransferable(e,t,n){const a=this.#t.chainService.getChainInfoByKey(t),r=(0,R.d)(a)&&(0,R.s9)(e)?this.#t.chainService.getEvmApi(t):(0,R.sM)(a)&&(0,R.Nr)(e)?this.#t.chainService.getTonApi(t):this.#t.chainService.getSubstrateApi(t),[i,{value:s}]=await Promise.all([(0,T.C)(n,a,e,r),this.getAddressTransferableBalance({extrinsicType:l.M_.TRANSFER_BALANCE,address:n,networkKey:t,token:e.slug})]);return new re.A(s).minus(i)}async subscribeAddressTransferableBalance({address:e,extrinsicType:t,networkKey:n,token:a},r,i){const s=(0,u.Ky)(r,i),o=e=>({...e,id:r}),[c,l]=await this.#t.balanceService.subscribeTransferableBalance(e,n,a,t,(e=>{s(o(e))}));return this.createUnsubscriptionHandle(r,c),i.onDisconnect.addListener((()=>{this.cancelSubscription(r)})),o(l)}async substrateNftSubmitTransaction(e){const{params:t,recipientAddress:n,senderAddress:a}=e,r=(0,A.ed)(a,n),i=null==t?void 0:t.isPsp34,s=null==t?void 0:t.networkKey,o=this.#t.getSubstrateApi(s),c=i?await(0,k.D0)(o,a,n,t||{}):await(0,A.Ty)(s,o,a,n,t||{});return{...await this.#t.transactionService.handleTransaction({address:a,chain:s,transaction:c,data:{...e,isSendingSelf:r},extrinsicType:l.M_.SEND_NFT,chainType:l.IG.SUBSTRATE}),isSendingSelf:r}}async enableChains({chainSlugs:e,enableTokens:t}){try{await Promise.all(e.map((e=>this.enableChain({chainSlug:e,enableTokens:t}))))}catch(e){return!1}return!0}async accountsCreateExternalV2(e){return this.#t.keyringService.context.accountsCreateExternalV2(e)}async accountsCreateHardwareV2(e){return this.#t.keyringService.context.accountsCreateHardwareV2(e)}async accountsCreateHardwareMultiple(e){return this.#t.keyringService.context.accountsCreateHardwareMultiple(e)}async accountsCreateWithSecret(e){const t=await this.#t.keyringService.context.accountsCreateWithSecret(e);return this.#i&&this.keyringLock(),t}rejectExternalRequest(e){const{id:t,message:n,throwError:a}=e,r=this.#t.getExternalRequest(t);r.status===l.Ym.PENDING&&r.reject&&(a?r.reject(new Error(n)):r.reject(),this.#t.updateExternalRequest(t,{status:l.Ym.REJECTED,message:n,reject:void 0,resolve:void 0}))}resolveQrTransfer(e){const{data:t,id:n}=e,a=this.#t.getExternalRequest(n);a.status===l.Ym.PENDING&&(a.resolve&&a.resolve(t),this.#t.updateExternalRequest(n,{status:l.Ym.COMPLETED,reject:void 0,resolve:void 0}))}subscribeConfirmations(e,t){const n=(0,u.Ky)(e,t),a=this.#t.getConfirmationsQueueSubject().subscribe(n);return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getConfirmationsQueueSubject().getValue()}subscribeConfirmationsTon(e,t){const n=(0,u.Ky)(e,t),a=this.#t.getConfirmationsQueueSubjectTon().subscribe(n);return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getConfirmationsQueueSubjectTon().getValue()}async completeConfirmation(e){return await this.#t.completeConfirmation(e)}async completeConfirmationTon(e){return await this.#t.completeConfirmationTon(e)}getNetworkJsonByChainId(e){const t=this.#t.getChainInfoMap();if(!e){for(const e in t){if(!Object.prototype.hasOwnProperty.call(t,e))continue;const n=t[e];if((0,R.d)(n))return n}return null}for(const n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;const a=t[n];if((0,R.iO)(a)===e)return a}return null}parseSubstrateTransaction({data:e,networkKey:t}){const n=this.#t.getSubstrateApi(t).api;return(0,v.f)(e,n)}async parseEVMRLP({data:e}){return await(0,Y.wZ)(e,this.#t.getChainInfoMap(),this.#t.getEvmApiMap())}qrSignSubstrate({address:e,data:t,networkKey:n}){const a=ne.AC.getPair(e);(0,le.vA)(a,(0,ie.t)("Unable to find account")),a.isLocked&&ne.AC.unlockPair(a.address);let r=(0,de.a)((0,pe.X)(a.sign(t,{withType:!0})));const i=this.#t.getChainInfo(n);return(0,R.d)(i)&&(r=r.substring(2)),{signature:r}}async qrSignEVM({address:e,chainId:t,message:n,type:a}){let s;const o=this.getNetworkJsonByChainId(t);if(!o)throw new Error((0,ie.t)("Cannot find network"));const c=ne.AC.getPair(e);if(!c)throw Error((0,ie.t)("Unable to find account"));if(c.isLocked&&ne.AC.unlockPair(c.address),"message"===a){let e=n;(0,he.qv)(n)?e=n:(0,fe.E)(n)&&(e=`0x${n}`),s=await c.evm.signMessage(e,"personal_sign")}else{var u,l,d;const e=(0,X.LA)(n);if(!e)throw new Error((0,ie.t)("Failed to decode data. Please use a valid QR code"));const t={gasPrice:new re.A(e.gasPrice).toNumber(),to:e.to,value:new re.A(e.value).toNumber(),data:e.data,nonce:new re.A(e.nonce).toNumber(),gas:new re.A(e.gas).toNumber()},a=r.y_.custom({name:o.name,networkId:(0,R.iO)(o),chainId:(0,R.iO)(o)},{hardfork:"petersburg"}),p=new i.cI(t,{common:a}),h=i.cI.fromSerializedTx((0,me.V)(c.evm.signTransaction(p)));s=(0,X.Z0)({r:(null===(u=h.r)||void 0===u?void 0:u.toString(16))||"",s:(null===(l=h.s)||void 0===l?void 0:l.toString(16))||"",v:(null===(d=h.v)||void 0===d?void 0:d.toString(16))||""})}return{signature:(0,de.a)(s)}}async subscribeChainStakingMetadata(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeChainStakingMetadata().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getChainStakingMetadata()}async subscribeStakingNominatorMetadata(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeNominatorMetadata().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getNominatorMetadata()}async getBondingOptions({chain:e,type:t}){const n=this.#t.getSubstrateApi(e),a=this.#t.getChainInfo(e),r=await this.#t.getStakingMetadataByChain(e,t);if(!r)return;const{decimals:i}=(0,R.N2)(a);return await(0,w.CW)(e,n,i,r)}async getNominationPoolOptions(e){const t=this.#t.getSubstrateApi(e);return await(0,w.Ow)(e,t)}async submitBonding(e){const{address:t,amount:n,chain:a,nominatorMetadata:r,selectedValidators:i}=e,s=this.#t.getChainInfo(a),c=await this.#t.getStakingMetadataByChain(a,l.gK.NOMINATED);if(!c){const e=(0,ie.t)('Unable to fetch staking data. Re-enable "{{chainName}}" and try again.',{replace:{chainName:s.name}});return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.q0.CAN_NOT_GET_METADATA,e)])}const u=(0,w.ni)(s,n,i,t,c,r);if(!n||!i||u.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(u);const d=this.#t.getSubstrateApi(a),p=await(0,w.FR)(s,n,i,d,t,r);return await this.#t.transactionService.handleTransaction({address:t,chain:a,chainType:l.IG.SUBSTRATE,data:e,extrinsicType:l.M_.STAKING_BOND,transaction:p,url:N.mX,transferNativeAmount:n})}async submitUnbonding(e){const{amount:t,chain:n,nominatorMetadata:a,validatorAddress:r}=e,i=await this.#t.getStakingMetadataByChain(n,l.gK.NOMINATED);if(!i||!a)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INTERNAL_ERROR)]);const s=(0,w.Wo)(a,t,n,i,r);if(!t||s.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(s);const c=this.#t.getSubstrateApi(n),u=await(0,w.QB)(a,t,n,c,r);return await this.#t.transactionService.handleTransaction({address:a.address,chain:n,transaction:u,data:e,extrinsicType:l.M_.STAKING_UNBOND,chainType:l.IG.SUBSTRATE})}async submitStakeClaimReward(e){const{address:t,bondReward:n,slug:a}=e,r=this.#t.earningService.getPoolHandler(a);if(!t||!r)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const i=r.chain,s=r.type===K.u.NOMINATION_POOL?l.gK.POOLED:l.gK.NOMINATED,c=this.#t.getSubstrateApi(i),u=await(0,w.Do)(c,i,t,s,n);return await this.#t.transactionService.handleTransaction({address:t,chain:i,transaction:u,data:e,extrinsicType:l.M_.STAKING_CLAIM_REWARD,chainType:l.IG.SUBSTRATE})}async submitCancelStakeWithdrawal(e){var t;const{address:n,selectedUnstaking:a,slug:r}=e,i=null===(t=this.#t.earningService.getPoolHandler(r))||void 0===t?void 0:t.chain;if(!i||!a)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const s=this.#t.getSubstrateApi(i),c=await(0,w.Zb)(s,i,a);return await this.#t.transactionService.handleTransaction({address:n,chain:i,transaction:c,data:e,extrinsicType:l.M_.STAKING_CANCEL_UNSTAKE,chainType:l.IG.SUBSTRATE})}async submitPoolBonding(e){const{address:t,amount:n,chain:a,nominatorMetadata:r,selectedPool:i}=e,s=this.#t.getChainInfo(a),c=await this.#t.getStakingMetadataByChain(a,l.gK.NOMINATED);if(!c){const e=(0,ie.t)('Unable to fetch staking data. Re-enable "{{chainName}}" and try again.',{replace:{chainName:s.name}});return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.q0.CAN_NOT_GET_METADATA,e)])}const u=(0,S.dQ)(s,n,i,t,c,r);if(!n||u.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(u);const d=this.#t.getSubstrateApi(a),p=await(0,S.LG)(d,n,i.id,r);return await this.#t.transactionService.handleTransaction({address:t,chain:a,transaction:p,data:e,extrinsicType:l.M_.STAKING_JOIN_POOL,chainType:l.IG.SUBSTRATE,transferNativeAmount:n})}async submitPoolingUnbonding(e){const{amount:t,chain:n,nominatorMetadata:a}=e,r=await this.#t.getStakingMetadataByChain(n,l.gK.NOMINATED);if(!r||!a){const e=this.#t.getChainInfo(n),t=(0,ie.t)('Unable to fetch staking data. Re-enable "{{chainName}}" and try again.',{replace:{chainName:null==e?void 0:e.name}});return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.q0.CAN_NOT_GET_METADATA,t)])}const i=(0,S.vG)(t,r,a);if(!t||i.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(i);const s=this.#t.getSubstrateApi(n),c=await(0,S.AX)(s,t,a);return await this.#t.transactionService.handleTransaction({address:a.address,chain:n,transaction:c,data:e,extrinsicType:l.M_.STAKING_LEAVE_POOL,chainType:l.IG.SUBSTRATE})}async parseContractInput({chainId:e,contract:t,data:n}){const a=this.getNetworkJsonByChainId(e);return await(0,Y.Yw)(n,t,a)}async submitTuringStakeCompounding(e){const{accountMinimum:t,address:n,bondedAmount:a,collatorAddress:r,networkKey:i}=e;if(!n)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const s=this.#t.getSubstrateApi(i),c=this.#t.getChainInfo(i),{decimals:u}=(0,R.N2)(c),d=parseFloat(t)*10**u,p=await(0,I.wV)(s,n,r,d.toString(),a);return await this.#t.transactionService.handleTransaction({address:n,chain:i,transaction:p,data:e,extrinsicType:l.M_.STAKING_COMPOUNDING,chainType:l.IG.SUBSTRATE})}async submitTuringCancelStakeCompound(e){const{address:t,networkKey:n,taskId:a}=e,r={};if(!t)return r.txError=!0,r;const i=this.#t.getSubstrateApi(n),s=await(0,I.qo)(i,a);return await this.#t.transactionService.handleTransaction({address:t,chain:n,transaction:s,data:e,extrinsicType:l.M_.STAKING_CANCEL_COMPOUNDING,chainType:l.IG.SUBSTRATE})}keyringStateSubscribe(e,t){const n=(0,u.Ky)(e,t),a=this.#t.keyringService.keyringStateSubscribe(n);return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.keyringService.keyringState}keyringChangeMasterPassword(e){const t=e.createNew;return this.#t.keyringService.context.keyringChangeMasterPassword(e,(()=>{this.#i&&!t&&this.keyringLock()}))}checkLockAfterMigrate(){ne.AC.getPairs().filter((e=>e.address!==p.GQ&&!e.meta.isExternal&&!e.meta.isInjected)).filter((e=>!e.meta.isMasterPassword)).length||this.#i&&this.keyringLock()}keyringMigrateMasterPassword(e){return this.#t.keyringService.context.keyringMigrateMasterPassword(e,(()=>{this.checkLockAfterMigrate()}))}keyringUnlock({password:e}){try{ne.AC.unlockKeyring(e)}catch(e){return{errors:[e.message],status:!1}}return this.#t.updateKeyringState(),{status:!0,errors:[]}}keyringLock(){this.#t.keyringService.lock(),this.#s.next(!0),clearTimeout(this.#e)}keyringLockSubscribe(e){this.#s.subscribe(e)}keyringExportMnemonic({address:e,password:t}){return{result:ne.AC.getPair(e).exportMnemonic(t)}}async resetWallet({resetAll:e}){try{return await this.#t.resetWallet(e),{errors:[],status:!0}}catch(e){return{errors:[e.message],status:!1}}}async signingApprovePasswordV2({id:e}){const t=this.#t.getSignRequest(e);(0,le.vA)(t,(0,ie.t)("Unable to proceed. Please try again"));const{reject:n,request:a,resolve:r}=t,i=ne.AC.getPair(t.address),{address:s}=i;if(!i)return n(new Error((0,ie.t)("Unable to find account"))),!1;i.isLocked&&ne.AC.unlockPair(s);const{payload:o}=a;let c;if(void 0!==o.genesisHash){const[,e]=this.#t.findNetworkKeyByGenesisHash(o.genesisHash);let t;if(t=this.#t.knownMetadata.find((e=>e.genesisHash===o.genesisHash)),t){const e=(0,Q.IH)(t,!1);c=e.registry,c.setSignedExtensions(o.signedExtensions,e.definition.userExtensions)}else if(t=await this.#t.chainService.getMetadataByHash(o.genesisHash),t){var u,l,d,p;c=new ce.O;const n=new ue.O(c,t.hexValue);c.register(t.types),c.setChainProperties(c.createType("ChainProperties",{ss58Format:null!==(u=null==e||null===(l=e.substrateInfo)||void 0===l?void 0:l.addressPrefix)&&void 0!==u?u:42,tokenDecimals:null==e||null===(d=e.substrateInfo)||void 0===d?void 0:d.decimals,tokenSymbol:null==e||null===(p=e.substrateInfo)||void 0===p?void 0:p.symbol})),c.setMetadata(n,o.signedExtensions,t.userExtensions)}else c=new ce.O,c.setSignedExtensions(o.signedExtensions);if(!t&&e&&(O.XJ.avail.includes(e.slug)||O.XJ.goldberg.includes(e.slug))){if(!Object.keys(e.providers).length)return n(new Error("{{chain}} network does not have any provider to connect, please update metadata from dApp".replaceAll("{{chain}}",e.name))),!1;if(!this.#t.getChainStateByKey(e.slug).active)return n(new Error("Please activate {{chain}} network before signing".replaceAll("{{chain}}",e.name))),!1;c=this.#t.getSubstrateApi(e.slug).api.registry}}else c=new ce.O;return r({id:e,signature:a.sign(c,i).signature}),this.#i&&this.keyringLock(),!0}derivationCreateMultiple(e){return this.#t.keyringService.context.derivationCreateMultiple(e)}derivationCreateV3(e){const t=this.#t.keyringService.context.derivationAccountProxyCreate(e);return this.#i&&this.keyringLock(),t}validateDerivePath(e){return this.#t.keyringService.context.validateDerivePath(e)}getDeriveSuggestion(e){return this.#t.keyringService.context.getDeriveSuggestion(e)}getListDeriveAccounts(e){return this.#t.keyringService.context.getListDeriveAccounts(e)}async subscribeChainInfoMap(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.subscribeChainInfoMap().subscribe({next:e=>{a&&n(e)}});return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.#t.eventService.waitChainReady,a=!0,this.#t.getChainInfoMap()}subscribeChainStateMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeChainStateMap().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getChainStateMap()}subscribeChainStatusMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.chainService.subscribeChainStatusMap().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.chainService.getChainStatusMap()}async subscribeAssetRegistry(e,t){const n=(0,u.Ky)(e,t);await this.#t.eventService.waitAssetOnlineReady;const a=this.#t.subscribeAssetRegistry().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getAssetRegistry()}subscribeMultiChainAssetMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeMultiChainAssetMap().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getMultiChainAssetMap()}subscribeXcmRefMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeXcmRefMap().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getXcmRefMap()}getSupportedSmartContractTypes(){return this.#t.getSupportedSmartContractTypes()}getTransaction({id:e}){const{transaction:t,...n}=this.#t.transactionService.getTransaction(e);return n}subscribeTransactions(e,t){const n=(0,u.Ky)(e,t);function a(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const{additionalValidator:n,eventsHandler:a,transaction:r,...i}=t;return[e,i]})))}const r=this.#t.transactionService.getTransactionSubject(),i=r.subscribe((e=>{n(a(e))}));return t.onDisconnect.addListener((()=>{i.unsubscribe(),this.cancelSubscription(e)})),a(r.getValue())}subscribeNotifications(e,t){const n=(0,u.Ky)(e,t),a=this.#t.notificationService.getNotificationSubject(),r=a.subscribe((e=>{n(e)}));return t.onDisconnect.addListener((()=>{r.unsubscribe(),this.cancelSubscription(e)})),a.value}async reloadCron({data:e}){return"nft"===e?await this.#t.reloadNft():"staking"===e?await this.#t.reloadStaking():"balance"===e?await this.#t.reloadBalance():"crowdloan"===e?await this.#t.reloadCrowdloan():Promise.resolve(!1)}async getLogoMap(){const[e,t]=await Promise.all([this.#t.chainService.getChainLogoMap(),this.#t.chainService.getAssetLogoMap()]);return{chainLogoMap:e,assetLogoMap:t}}subscribeAssetLogoMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.chainService.subscribeAssetLogoMap().subscribe((e=>{n(e)}));return t.onDisconnect.addListener((()=>{a.unsubscribe(),this.cancelSubscription(e)})),this.#t.chainService.getAssetLogoMap()}subscribeChainLogoMap(e,t){const n=(0,u.Ky)(e,t),a=this.#t.chainService.subscribeChainLogoMap().subscribe((e=>{n(e)}));return t.onDisconnect.addListener((()=>{a.unsubscribe(),this.cancelSubscription(e)})),this.#t.chainService.getChainLogoMap()}async passPhishingPage({url:e}){return await this.#t.approvePassPhishingPage(e)}async connectWalletConnect({uri:e}){return await this.#t.walletConnectService.connect(e),!0}connectWCSubscribe(e,t){const n=(0,u.Ky)(e,t),a=this.#t.requestService.connectWCSubject.subscribe((e=>n(e)));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),this.#t.requestService.allConnectWCRequests}async approveWalletConnectSession({accounts:e,id:t}){const n=this.#t.requestService.getConnectWCRequest(t);if((0,L.eK)(n.request.params))throw new Error("The proposal has been expired");const a=n.request.id,r=n.request.params,i=r.requiredNamespaces||{},s=r.optionalNamespaces||{},o={},c={},u=this.#t.getChainInfoMap();Object.entries(i).forEach((([e,t])=>{if(!(0,L.iM)(e))throw new Error((0,ae.Hjj)("UNSUPPORTED_NAMESPACE_KEY").message+" "+e);if(t.chains){const n=t.chains.filter((e=>!(0,L.UK)(e,u)));if(n.length)throw new Error((0,ae.Hjj)("UNSUPPORTED_CHAINS").message+" "+n.toString());o[e]=t}})),Object.entries(s).forEach((([e,t])=>{if((0,L.iM)(e)&&t.chains){const n=t.chains.filter((e=>(0,L.UK)(e,u)))||[],a=o[e],r=[];a?o[e]={chains:[...a.chains||r,...n||r],events:a.events,methods:a.methods}:n.length&&(o[e]={chains:n,events:t.events,methods:t.methods})}})),Object.entries(o).forEach((([t,n])=>{if(n.chains){const a=[],r=(0,Z.C)(n.chains);r.forEach((n=>{a.push(...e.filter((e=>(0,ge.q)(e)===(t===D.lk))).map((e=>`${n}:${e}`)))})),c[t]={accounts:a,methods:n.methods,events:n.events,chains:r}}}));const l={id:a,namespaces:c,relayProtocol:r.relays[0].protocol};return await this.#t.walletConnectService.approveSession(l),n.resolve(),!0}async rejectWalletConnectSession({id:e}){const t=this.#t.requestService.getConnectWCRequest(e),n=t.request.id;return(0,L.eK)(t.request.params)?(t.reject(new Error("The proposal has been expired")),!0):(await this.#t.walletConnectService.rejectSession(n),t.reject(new Error("USER_REJECTED")),!0)}subscribeWalletConnectSessions(e,t){const n=(0,u.Ky)(e,t),a=this.#t.walletConnectService.sessionSubject.subscribe((e=>{n(e)}));return t.onDisconnect.addListener((()=>{a.unsubscribe(),this.cancelSubscription(e)})),this.#t.walletConnectService.sessions}async disconnectWalletConnectSession({topic:e}){return await this.#t.walletConnectService.disconnect(e),!0}WCNotSupportSubscribe(e,t){const n=(0,u.Ky)(e,t),a=this.#t.requestService.notSupportWCSubject.subscribe((e=>n(e)));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),this.#t.requestService.allNotSupportWCRequests}approveWalletConnectNotSupport({id:e}){return this.#t.requestService.getNotSupportWCRequest(e).resolve(),!0}rejectWalletConnectNotSupport({id:e}){return this.#t.requestService.getNotSupportWCRequest(e).reject(new Error("USER_REJECTED")),!0}async enableMantaPay({address:e,password:t}){try{var n,a;await this.#t.chainService.enableChain(O.xI),this.#t.chainService.setMantaZkAssetSettings(!0);const r=this.keyringExportMnemonic({address:e,password:t}),{connectionStatus:i}=this.#t.chainService.getChainStatusByKey(O.xI);i!==B.$J.CONNECTED&&await new Promise((e=>setTimeout(e,1500)));const s=await this.#t.enableMantaPay(!0,e,t,r.result);this.#a=!0,await this.saveCurrentAccountProxy({address:e});const o=await(null===(n=this.#t.chainService)||void 0===n||null===(a=n.mantaPay)||void 0===a?void 0:a.subscribeSyncProgress());return console.debug("Start initial sync for MantaPay"),this.#t.initialSyncMantaPay(e).then((()=>{console.debug("Finished initial sync for MantaPay"),this.#a=!1,o&&o()})).catch((e=>{console.error("Error syncing MantaPay",e),this.#a=!1,o&&o()})),{success:!!s,message:s?l.cl.SUCCESS:l.cl.UNKNOWN_ERROR}}catch(e){return"Error: Unable to decode using the supplied passphrase"===e.toString()?{success:!1,message:l.cl.WRONG_PASSWORD}:{success:!1,message:l.cl.UNKNOWN_ERROR}}}async initSyncMantaPay(e){var t,n,a,r;if(null!==(t=this.#t.chainService)&&void 0!==t&&null!==(n=t.mantaPay)&&void 0!==n&&n.getSyncState().isSyncing||!J.py.MANTA_ZK)return;this.#a=!0,await this.saveCurrentAccountProxy({address:e});const i=await(null===(a=this.#t.chainService)||void 0===a||null===(r=a.mantaPay)||void 0===r?void 0:r.subscribeSyncProgress());console.debug("Start initial sync for MantaPay"),this.#t.initialSyncMantaPay(e).then((()=>{var e,t;console.debug("Finished initial sync for MantaPay"),this.#a=!1,i&&i(),null===(e=this.#t.chainService)||void 0===e||null===(t=e.mantaPay)||void 0===t||t.setSyncState({progress:100,isSyncing:!1})})).catch((e=>{var t,n;console.error("Error syncing MantaPay",e),this.#a=!1,i&&i(),null===(t=this.#t.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n||n.setSyncState({progress:0,isSyncing:!1})}))}async disableMantaPay(e){return this.#t.disableMantaPay(e)}async isTonBounceableAddress({address:e,chain:t}){try{const n=this.#t.getTonApi(t),a="active"===await n.getAccountState(e),r=(0,C.bG)(e);return!a&&r}catch(n){return console.error(`Failed to validate address ${e} on chain ${t}:`,n),!1}}subscribeMantaPayConfig(e,t){const n=(0,u.Ky)(e,t),a=this.#t.subscribeMantaPayConfig().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.getMantaPayConfig("calamari")}subscribeMantaPaySyncState(e,t){var n,a,r;const i=(0,u.Ky)(e,t),s=null===(n=this.#t.subscribeMantaPaySyncState())||void 0===n?void 0:n.subscribe({next:e=>{i(e)}});return this.createUnsubscriptionHandle(e,s.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),(null===(a=this.#t.chainService)||void 0===a||null===(r=a.mantaPay)||void 0===r?void 0:r.getSyncState())||{isSyncing:!1,progress:0,needManualSync:!1}}async findRawMetadata({genesisHash:e}){const{metadata:t,specVersion:n,types:a,userExtensions:r}=await this.#t.findMetadata(e);return{rawMetadata:t,specVersion:n,types:a,userExtensions:r}}async calculateMetadataHash({chain:e}){return{metadataHash:await this.#t.calculateMetadataHash(e)||""}}async shortenMetadata({chain:e,txBlob:t}){return{txMetadata:await this.#t.shortenMetadata(e,t)||""}}async resolveDomainByAddress(e){const t=this.#t.getSubstrateApi(e.chain);return await(0,b.Fr)(e.domain,e.chain,t.api)}async resolveAddressByDomain(e){const t=this.#t.getSubstrateApi(e.chain);return await(0,b.BO)(e.address,e.chain,t.api)}addInjects(e){return this.#t.keyringService.context.addInjectAccounts(e.accounts),!0}removeInjects(e){return this.#t.keyringService.context.removeInjectAccounts(e.addresses),!0}async subscribeYieldPoolInfo(e,t){const n=(0,u.Ky)(e,t);await this.#t.earningService.waitForStarted();const a=this.#t.earningService.subscribeYieldPoolInfo().subscribe({next:e=>{n(Object.values(e))}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.earningService.getYieldPoolInfo()}async earlyValidateJoin(e){return await this.#t.earningService.earlyValidateJoin(e)}async getOptimalYieldPath(e){return await this.#t.earningService.generateOptimalSteps(e)}async handleYieldStep(e){const{data:t,path:n}=e,{address:a}=t;if(!t)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INTERNAL_ERROR)]);const r=e.currentStep+1===n.steps.length,i=await this.#t.earningService.validateYieldJoin({data:t,path:n});if(i.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(i);const{chainType:s,extrinsic:c,extrinsicType:u,transferNativeAmount:l,txChain:d,txData:p}=await this.#t.earningService.handleYieldJoin(e),h=this.#t.earningService.isPoolSupportAlternativeFee(e.data.slug),f=x.Gr.includes(u);return await this.#t.transactionService.handleTransaction({address:a,chain:d,transaction:c,data:p,extrinsicType:u,chainType:s,resolveOnDone:!r,transferNativeAmount:l,skipFeeValidation:f&&h})}async handleYieldLeave(e){const{address:t,slug:n}=e,a=await this.#t.earningService.validateYieldLeave(e);if(a.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(a);const[r,i]=await this.#t.earningService.handleYieldLeave(e),s=this.#t.earningService.getPoolHandler(n);return await this.#t.transactionService.handleTransaction({address:t,chain:(null==s?void 0:s.chain)||"",transaction:i,data:e,extrinsicType:r,chainType:(null==s?void 0:s.transactionChainType)||l.IG.SUBSTRATE})}async getYieldPoolTargets(e){const{slug:t}=e;return await this.#t.earningService.waitForStarted(),{slug:t,targets:await this.#t.earningService.getPoolTargets(t)}}async subscribeYieldPosition(e,t){const n=(0,u.Ky)(e,t);await this.#t.earningService.waitForStarted();const a=this.#t.earningService.subscribeYieldPosition().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.#t.earningService.getYieldPositionInfo()}async subscribeYieldReward(e,t){const n=(0,u.Ky)(e,t);await this.#t.earningService.waitForStarted();const a=this.#t.earningService.subscribeEarningReward().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.earningService.getEarningRewards()}async subscribeYieldRewardHistory(e,t){const n=(0,u.Ky)(e,t);await this.#t.earningService.waitForStarted();const a=this.#t.earningService.subscribeEarningRewardHistory().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.earningService.getEarningRewardHistory()}async subscribeEarningMinAmountPercent(e,t){const n=(0,u.Ky)(e,t);await this.#t.earningService.waitForStarted();const a=this.#t.earningService.subscribeMinAmountPercent().subscribe({next:e=>{n(e)}});return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.earningService.getMinAmountPercent()}handleValidateYieldProcess(e){return this.#t.earningService.validateYieldJoin(e)}async yieldSubmitWithdrawal(e){const{address:t,slug:n}=e,a=this.#t.earningService.getPoolHandler(n);if(!a)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const r=await this.#t.earningService.handleYieldWithdraw(e);return await this.#t.transactionService.handleTransaction({address:t,chain:a.chain,transaction:r,data:e,extrinsicType:l.M_.STAKING_WITHDRAW,chainType:(null==a?void 0:a.transactionChainType)||l.IG.SUBSTRATE})}async yieldSubmitCancelWithdrawal(e){const{address:t,selectedUnstaking:n,slug:a}=e,r=this.#t.earningService.getPoolHandler(a);if(!r||!n)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const i=r.chain,s=await this.#t.earningService.handleYieldCancelUnstake(e);return await this.#t.transactionService.handleTransaction({address:t,chain:i,transaction:s,data:e,extrinsicType:l.M_.STAKING_CANCEL_UNSTAKE,chainType:(null==r?void 0:r.transactionChainType)||l.IG.SUBSTRATE})}async yieldSubmitClaimReward(e){const{address:t,slug:n}=e,a=this.#t.earningService.getPoolHandler(n);if(!t||!a)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INVALID_PARAMS)]);const r=await this.#t.earningService.handleYieldClaimReward(e);return await this.#t.transactionService.handleTransaction({address:t,chain:a.chain,transaction:r,data:e,extrinsicType:l.M_.STAKING_CLAIM_REWARD,chainType:(null==a?void 0:a.transactionChainType)||l.IG.SUBSTRATE})}unlockDotCheckCanMint({address:e,network:t,slug:n}){return this.#t.mintCampaignService.unlockDotCampaign.canMint(e,n,t)}unlockDotSubscribeMintedData(e,t,{transactionId:n}){const a=(0,u.Ky)(e,t),r=this.#t.mintCampaignService.unlockDotCampaign.subscribeMintedNft(n,a);return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.mintCampaignService.unlockDotCampaign.getMintedNft(n)}async subscribeProcessingBanner(e,t){const n=(0,u.Ky)(e,t),a=e=>{const t=[];for(const n of e)n.type===l.jG.BANNER&&t.push(n);return t},r=this.#t.campaignService.subscribeProcessingCampaign().subscribe({next:e=>{n(a(e))}});return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),a(await this.#t.campaignService.getProcessingCampaign())}async completeCampaignBanner({slug:e}){const t=await this.#t.dbService.getCampaign(e);return t&&await this.#t.dbService.upsertCampaign({...t,isDone:!0}),!0}async subscribeCampaignPopupVisibility(e,t){const n=(0,u.Ky)(e,t),a=this.#t.campaignService.subscribeCampaignPopupVisibility().subscribe((e=>{n(e)}));return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),Promise.resolve(this.#t.campaignService.getIsPopupVisible())}toggleCampaignPopup(e){return this.#t.campaignService.toggleCampaignPopup(e),null}subscribeAppPopupData(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.mktCampaignService.subscribePopupsData((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),a=!0,this.#t.mktCampaignService.getAppPopupsData()}subscribeAppBannerData(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.mktCampaignService.subscribeBannersData((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),a=!0,this.#t.mktCampaignService.getAppBannersData()}subscribeAppConfirmationData(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.mktCampaignService.subscribeConfirmationsData((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),a=!0,this.#t.mktCampaignService.getAppConfirmationsData()}async subscribeBuyTokens(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.buyService.subscribeBuyTokens((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.#t.eventService.waitBuyTokenReady,a=!0,this.#t.buyService.getBuyTokens()}async subscribeBuyServices(e,t){const n=(0,u.Ky)(e,t);let a=!1;const r=this.#t.buyService.subscribeBuyServices((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),await this.#t.eventService.waitBuyServiceReady,a=!0,this.#t.buyService.getBuyServices()}async subscribeSwapPairs(e,t){const n=(0,u.Ky)(e,t);let a=!1;await this.#t.swapService.waitForStarted();const r=this.#t.swapService.subscribeSwapPairs((e=>{a&&n(e)}));return this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),a=!0,this.#t.swapService.getSwapPairs()}async handleSwapRequest(e){return this.#t.swapService.handleSwapRequest(e)}async getLatestSwapQuote(e){return this.#t.swapService.getLatestQuotes(e)}async validateSwapProcess(e){return this.#t.swapService.validateSwapProcess(e)}async handleSwapStep(e){const{address:t,process:n,quote:a,recipient:r}=e;if(!a||!t||!n)return this.#t.transactionService.generateBeforeHandleResponseErrors([new o.J(H.xu.INTERNAL_ERROR)]);const i=e.currentStep+1===n.steps.length,s=await this.#t.swapService.validateSwapProcess({address:t,process:n,selectedQuote:a,recipient:r});if(s.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(s);const{chainType:c,extrinsic:u,extrinsicType:l,transferNativeAmount:d,txChain:p,txData:h}=await this.#t.swapService.handleSwapProcess(e);return await this.#t.transactionService.handleTransaction({address:t,chain:p,transaction:u,data:h,extrinsicType:l,chainType:c,resolveOnDone:!i,transferNativeAmount:d})}async subscribeLedgerGenericAllowChains(e,t){const n=(0,u.Ky)(e,t);await this.#t.eventService.waitLedgerReady;const a=this.#t.chainService.observable.ledgerGenericAllowChains.subscribe(n);return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.chainService.value.ledgerGenericAllowChains}async handle(e,t,n,a){switch(clearTimeout(this.#e),this.#n>0&&(this.#e=setTimeout((()=>{this.#a||this.keyringLock()}),60*this.#n*1e3)),t){case"pri(ping)":return"pong";case"pri(accounts.export.json)":return this.accountsExport(n);case"pri(metadata.approve)":return this.metadataApprove(n);case"pri(metadata.get)":return this.metadataGet(n);case"pri(metadata.list)":return this.metadataList();case"pri(metadata.reject)":return this.metadataReject(n);case"pri(metadata.requests)":return this.metadataSubscribe(e,a);case"pri(signing.approve.signature)":return this.signingApproveSignature(n);case"pri(signing.cancel)":return this.signingCancel(n);case"pri(signing.requests)":return this.signingSubscribe(e,a);case"pri(window.open)":return this.windowOpen(n);case"pri(authorize.changeSiteAll)":return this.changeAuthorizationAll(n,e,a);case"pri(authorize.changeSite)":return this.changeAuthorization(n,e,a);case"pri(authorize.changeSitePerAccount)":return this.changeAuthorizationPerAcc(n,e,a);case"pri(authorize.changeSitePerSite)":return this.changeAuthorizationPerSite(n);case"pri(authorize.changeSiteBlock)":return this.changeAuthorizationBlock(n);case"pri(authorize.forgetSite)":return this.forgetSite(n,e,a);case"pri(authorize.forgetAllSite)":return this.forgetAllSite(e,a);case"pri(authorize.approveV2)":return this.authorizeApproveV2(n);case"pri(authorize.rejectV2)":return this.authorizeRejectV2(n);case"pri(authorize.cancelV2)":return this.authorizeCancelV2(n);case"pri(authorize.requestsV2)":return this.authorizeSubscribeV2(e,a);case"pri(authorize.listV2)":return this.getAuthListV2();case"pri(authorize.toggle)":return this.toggleAuthorization2(n);case"pri(settings.changeBalancesVisibility)":return await this.toggleBalancesVisibility();case"pri(settings.subscribe)":return await this.subscribeSettings(e,a);case"pri(settings.saveAccountAllLogo)":return this.saveAccountAllLogo(n,e,a);case"pri(settings.saveCamera)":return this.setCamera(n);case"pri(settings.saveTheme)":return this.saveTheme(n);case"pri(settings.saveBrowserConfirmationType)":return this.saveBrowserConfirmationType(n);case"pri(settings.saveAutoLockTime)":return this.setAutoLockTime(n);case"pri(settings.saveUnlockType)":return this.setUnlockType(n);case"pri(settings.saveEnableChainPatrol)":return this.setEnableChainPatrol(n);case"pri(settings.saveShowZeroBalance)":return this.setShowZeroBalance(n);case"pri(settings.saveLanguage)":return this.setLanguage(n);case"pri(settings.saveShowBalance)":return this.setShowBalance(n);case"pri(price.getPrice)":return await this.getPrice();case"pri(price.getSubscription)":return await this.subscribePrice(e,a);case"pri(settings.savePriceCurrency)":return await this.setPriceCurrency(n);case"pri(balance.getBalance)":return await this.getBalance();case"pri(balance.getSubscription)":return await this.subscribeBalance(e,a);case"pri(crowdloan.getCrowdloan)":return this.getCrowdloan();case"pri(crowdloan.getCrowdloanContributions)":return this.getCrowdloanContributions(n);case"pri(crowdloan.getSubscription)":return this.subscribeCrowdloan(e,a);case"pri(nft.getNft)":return await this.getNft();case"pri(nft.getSubscription)":return await this.subscribeNft(e,a);case"pri(nftCollection.getNftCollection)":return await this.getNftCollection();case"pri(nftCollection.getSubscription)":return await this.subscribeNftCollection(e,a);case"pri(staking.getStaking)":return this.getStaking();case"pri(staking.getSubscription)":return await this.subscribeStaking(e,a);case"pri(stakingReward.getStakingReward)":return this.getStakingReward();case"pri(stakingReward.getSubscription)":return this.subscribeStakingReward(e,a);case"pri(transaction.history.getSubscription)":return await this.subscribeHistory(e,a);case"pri(transaction.history.subscribe)":return this.subscribeHistoryByChainAndAddress(n,e,a);case"pri(yield.subscribePoolInfo)":return this.subscribeYieldPoolInfo(e,a);case"pri(yield.getTargets)":return this.getYieldPoolTargets(n);case"pri(yield.subscribeYieldPosition)":return this.subscribeYieldPosition(e,a);case"pri(yield.subscribeYieldReward)":return this.subscribeYieldReward(e,a);case"pri(yield.subscribeRewardHistory)":return this.subscribeYieldRewardHistory(e,a);case"pri(yield.minAmountPercent)":return this.subscribeEarningMinAmountPercent(e,a);case"pri(yield.join.earlyValidate)":return await this.earlyValidateJoin(n);case"pri(yield.join.getOptimalPath)":return await this.getOptimalYieldPath(n);case"pri(yield.join.handleStep)":return await this.handleYieldStep(n);case"pri(yield.join.validateProcess)":return await this.handleValidateYieldProcess(n);case"pri(yield.leave.submit)":return await this.handleYieldLeave(n);case"pri(yield.withdraw.submit)":return await this.yieldSubmitWithdrawal(n);case"pri(yield.cancelWithdrawal.submit)":return await this.yieldSubmitCancelWithdrawal(n);case"pri(yield.claimReward.submit)":return await this.yieldSubmitClaimReward(n);case"pri(accounts.create.suriV2)":return this.accountsCreateSuriV2(n);case"pri(accounts.create.externalV2)":return await this.accountsCreateExternalV2(n);case"pri(accounts.create.hardwareV2)":return await this.accountsCreateHardwareV2(n);case"pri(accounts.create.hardwareMultiple)":return await this.accountsCreateHardwareMultiple(n);case"pri(accounts.create.withSecret)":return await this.accountsCreateWithSecret(n);case"pri(accounts.json.info)":return this.parseInfoSingleJson(n);case"pri(accounts.json.restoreV2)":return this.jsonRestoreV2(n);case"pri(accounts.json.batchInfo)":return this.parseInfoMultiJson(n);case"pri(accounts.json.batchRestoreV2)":return this.batchRestoreV2(n);case"pri(seed.createV2)":return this.seedCreateV2(n);case"pri(accounts.forget)":return await this.accountsForgetOverride(n);case"pri(accounts.validate.seed)":return this.seedValidateV2(n);case"pri(accounts.validate.privateKey)":return this.privateKeyValidateV2(n);case"pri(accounts.validate.substrate.publicAndPrivateKey)":return this.checkPublicAndSecretKey(n);case"pri(accounts.validate.name)":return this.checkNameExists(n);case"pri(accounts.validate.bounceable)":return this.isTonBounceableAddress(n);case"pri(accounts.export.privateKey)":return this.accountExportPrivateKey(n);case"pri(accounts.export.json.batch)":return this.batchExportV2(n);case"pri(accounts.export.mnemonic)":return this.exportAccountProxyMnemonic(n);case"pri(accounts.subscribeWithCurrentProxy)":return await this.accountsGetAllWithCurrentAddress(e,a);case"pri(accounts.subscribeAccountsInputAddress)":return this.subscribeInputAddressData(n,e,a);case"pri(accounts.saveCurrentProxy)":return await this.saveCurrentAccountProxy(n);case"pri(accounts.edit)":return this.accountsEdit(n);case"pri(accounts.ton.version.map)":return this.tonGetAllTonWalletContractVersion(n);case"pri(accounts.ton.version.change)":return this.tonAccountChangeWalletContractVersion(n);case"pri(addressBook.saveRecent)":return this.saveRecentAccount(n);case"pri(addressBook.edit)":return this.editContactAccount(n);case"pri(addressBook.delete)":return this.deleteContactAccount(n);case"pri(addressBook.subscribe)":return this.subscribeAddresses(e,a);case"pri(accounts.resolveDomainToAddress)":return await this.resolveDomainByAddress(n);case"pri(accounts.resolveAddressToDomain)":return await this.resolveAddressByDomain(n);case"pri(accounts.inject.add)":return this.addInjects(n);case"pri(accounts.inject.remove)":return this.removeInjects(n);case"pri(chainService.subscribeChainInfoMap)":return this.subscribeChainInfoMap(e,a);case"pri(chainService.subscribeChainStateMap)":return this.subscribeChainStateMap(e,a);case"pri(chainService.subscribeChainStatusMap)":return this.subscribeChainStatusMap(e,a);case"pri(chainService.subscribeXcmRefMap)":return this.subscribeXcmRefMap(e,a);case"pri(chainService.getSupportedContractTypes)":return this.getSupportedSmartContractTypes();case"pri(chainService.enableChain)":return await this.enableChain(n);case"pri(chainService.reconnectChain)":return await this.reconnectChain(n);case"pri(chainService.disableChain)":return await this.disableChain(n);case"pri(chainService.removeChain)":return this.removeCustomChain(n);case"pri(chainService.validateCustomChain)":return await this.validateNetwork(n);case"pri(chainService.upsertChain)":return await this.upsertChain(n);case"pri(chainService.resetDefaultChains)":return this.resetDefaultNetwork();case"pri(chainService.enableChains)":return await this.enableChains(n);case"pri(chainService.subscribeAssetRegistry)":return this.subscribeAssetRegistry(e,a);case"pri(chainService.subscribeMultiChainAssetMap)":return this.subscribeMultiChainAssetMap(e,a);case"pri(chainService.upsertCustomAsset)":return await this.upsertCustomToken(n);case"pri(chainService.deleteCustomAsset)":return this.deleteCustomAsset(n);case"pri(chainService.validateCustomAsset)":return await this.validateCustomAsset(n);case"pri(assetSetting.getSubscription)":return this.subscribeAssetSetting(e,a);case"pri(assetSetting.update)":return await this.updateAssetSetting(n);case"pri(transfer.getMaxTransferable)":return this.getMaxTransferable(n);case"pri(freeBalance.get)":return this.getAddressTransferableBalance(n);case"pri(freeBalance.subscribe)":return this.subscribeAddressTransferableBalance(n,e,a);case"pri(subscription.cancel)":return this.cancelSubscription(n);case"pri(chainService.recoverSubstrateApi)":return this.recoverDotSamaApi(n);case"pri(evmNft.submitTransaction)":return this.evmNftSubmitTransaction(n);case"pri(substrateNft.submitTransaction)":return this.substrateNftSubmitTransaction(n);case"pri(accounts.transfer)":return await this.makeTransfer(n);case"pri(accounts.crossChainTransfer)":return await this.makeCrossChainTransfer(n);case"pri(accounts.getOptimalTransferProcess)":return await this.getOptimalTransferProcess(n);case"pri(accounts.approveSpending)":return await this.approveSpending(n);case"pri(qr.transaction.parse.substrate)":return this.parseSubstrateTransaction(n);case"pri(qr.transaction.parse.evm)":return await this.parseEVMRLP(n);case"pri(qr.sign.substrate)":return this.qrSignSubstrate(n);case"pri(qr.sign.evm)":return await this.qrSignEVM(n);case"pri(account.external.reject)":return this.rejectExternalRequest(n);case"pri(account.external.resolve)":return this.resolveQrTransfer(n);case"pri(confirmations.subscribe)":return this.subscribeConfirmations(e,a);case"pri(confirmationsTon.subscribe)":return this.subscribeConfirmationsTon(e,a);case"pri(confirmations.complete)":return await this.completeConfirmation(n);case"pri(confirmationsTon.complete)":return await this.completeConfirmationTon(n);case"pri(bonding.getBondingOptions)":return await this.getBondingOptions(n);case"pri(bonding.getNominationPoolOptions)":return await this.getNominationPoolOptions(n);case"pri(bonding.subscribeChainStakingMetadata)":return await this.subscribeChainStakingMetadata(e,a);case"pri(bonding.subscribeNominatorMetadata)":return await this.subscribeStakingNominatorMetadata(e,a);case"pri(bonding.submitBondingTransaction)":return await this.submitBonding(n);case"pri(unbonding.submitTransaction)":return await this.submitUnbonding(n);case"pri(staking.submitClaimReward)":return await this.submitStakeClaimReward(n);case"pri(staking.submitCancelWithdrawal)":return await this.submitCancelStakeWithdrawal(n);case"pri(staking.submitTuringCompound)":return await this.submitTuringStakeCompounding(n);case"pri(staking.submitTuringCancelCompound)":return await this.submitTuringCancelStakeCompound(n);case"pri(bonding.nominationPool.submitBonding)":return await this.submitPoolBonding(n);case"pri(bonding.nominationPool.submitUnbonding)":return await this.submitPoolingUnbonding(n);case"pri(evm.transaction.parse.input)":return await this.parseContractInput(n);case"pri(authorize.subscribe)":return await this.subscribeAuthUrls(e,a);case"pri(phishing.pass)":return await this.passPhishingPage(n);case"pri(keyring.subscribe)":return this.keyringStateSubscribe(e,a);case"pri(keyring.change)":return this.keyringChangeMasterPassword(n);case"pri(keyring.migrate)":return this.keyringMigrateMasterPassword(n);case"pri(keyring.unlock)":return this.keyringUnlock(n);case"pri(keyring.lock)":return this.keyringLock();case"pri(keyring.export.mnemonic)":return this.keyringExportMnemonic(n);case"pri(keyring.reset)":return await this.resetWallet(n);case"pri(signing.approve.passwordV2)":return this.signingApprovePasswordV2(n);case"pri(accounts.derive.validateV2)":return this.validateDerivePath(n);case"pri(accounts.derive.getList)":return this.getListDeriveAccounts(n);case"pri(accounts.derive.create.multiple)":return this.derivationCreateMultiple(n);case"pri(accounts.derive.createV3)":return this.derivationCreateV3(n);case"pri(accounts.derive.suggestion)":return this.getDeriveSuggestion(n);case"pri(transactions.getOne)":return this.getTransaction(n);case"pri(transactions.subscribe)":return this.subscribeTransactions(e,a);case"pri(notifications.subscribe)":return this.subscribeNotifications(e,a);case"pri(cron.reload)":return await this.reloadCron(n);case"pri(settings.getLogoMaps)":return await this.getLogoMap();case"pri(settings.logo.assets.subscribe)":return this.subscribeAssetLogoMap(e,a);case"pri(settings.logo.chains.subscribe)":return this.subscribeChainLogoMap(e,a);case"pri(walletConnect.connect)":return this.connectWalletConnect(n);case"pri(walletConnect.requests.connect.subscribe)":return this.connectWCSubscribe(e,a);case"pri(walletConnect.session.approve)":return this.approveWalletConnectSession(n);case"pri(walletConnect.session.reject)":return this.rejectWalletConnectSession(n);case"pri(walletConnect.session.subscribe)":return this.subscribeWalletConnectSessions(e,a);case"pri(walletConnect.session.disconnect)":return this.disconnectWalletConnectSession(n);case"pri(walletConnect.requests.notSupport.subscribe)":return this.WCNotSupportSubscribe(e,a);case"pri(walletConnect.notSupport.approve)":return this.approveWalletConnectNotSupport(n);case"pri(walletConnect.notSupport.reject)":return this.rejectWalletConnectNotSupport(n);case"pri(mantaPay.enable)":return await this.enableMantaPay(n);case"pri(mantaPay.initSyncMantaPay)":return await this.initSyncMantaPay(n);case"pri(mantaPay.subscribeConfig)":return await this.subscribeMantaPayConfig(e,a);case"pri(mantaPay.disable)":return await this.disableMantaPay(n);case"pri(mantaPay.subscribeSyncingState)":return this.subscribeMantaPaySyncState(e,a);case"pri(campaign.unlockDot.canMint)":return this.unlockDotCheckCanMint(n);case"pri(campaign.unlockDot.subscribe)":return this.unlockDotSubscribeMintedData(e,a,n);case"pri(campaign.popup.subscribeVisibility)":return this.subscribeCampaignPopupVisibility(e,a);case"pri(campaign.popup.toggle)":return this.toggleCampaignPopup(n);case"pri(campaign.popups.subscribe)":return this.subscribeAppPopupData(e,a);case"pri(campaign.banners.subscribe)":return this.subscribeAppBannerData(e,a);case"pri(campaign.confirmations.subscribe)":return this.subscribeAppConfirmationData(e,a);case"pri(metadata.find)":return this.findRawMetadata(n);case"pri(metadata.hash)":return this.calculateMetadataHash(n);case"pri(metadata.transaction.shorten)":return this.shortenMetadata(n);case"pri(campaign.banner.subscribe)":return this.subscribeProcessingBanner(e,a);case"pri(campaign.banner.complete)":return this.completeCampaignBanner(n);case"pri(buyService.tokens.subscribe)":return this.subscribeBuyTokens(e,a);case"pri(buyService.services.subscribe)":return this.subscribeBuyServices(e,a);case"pri(database.export)":return this.#t.dbService.exportDB();case"pri(database.import)":return this.#t.dbService.importDB(n);case"pri(database.exportJson)":return this.#t.dbService.getExportJson();case"pri(database.migrateLocalStorage)":return this.#t.migrateMV3LocalStorage(n);case"pri(database.setLocalStorage)":return this.#t.setStorageFromWS(n);case"pri(database.getLocalStorage)":return this.#t.getStorageFromWS(n);case"pri(swapService.subscribePairs)":return this.subscribeSwapPairs(e,a);case"pri(swapService.handleSwapRequest)":return this.handleSwapRequest(n);case"pri(swapService.getLatestQuote)":return this.getLatestSwapQuote(n);case"pri(swapService.validateSwapProcess)":return this.validateSwapProcess(n);case"pri(swapService.handleSwapStep)":return this.handleSwapStep(n);case"pri(ledger.generic.allow)":return this.subscribeLedgerGenericAllowChains(e,a);default:throw new Error(`Unable to handle message of type ${t}`)}}}a()}catch(e){a(e)}}))},33138:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{Ay:()=>m,sS:()=>p});var r=n(79782),i=n(72247),s=n(52875),o=n(12694),c=n(37550),u=e([r]);function l(){var e;return!(!s.C||null===(e=window)||void 0===e||!e.localStorage||window.localStorage.getItem("keyring:subwallet"))}async function d(){try{return await r.V.instance.state.dbService.stores.migration.table.count()<1}catch(e){return!0}}async function p(){return l()||await d()}r=(u.then?(await u)():u)[0];const h=i.W.instance,f={subscription:{chainRegistry:!0,balance:!0,crowdloan:!0,staking:!0},cron:{price:!0,nft:!0,staking:!0,history:!0,recoverApi:!0,checkApiStatus:!0}};class m{restoreHandler=(0,c.y)();lastRestoreData={};constructor(e){this.state=e,l()||h.copy().then((e=>{this.lastRestoreData.storage=e})).catch(console.error),(async()=>{await d()||(this.lastRestoreData.indexedDB=await e.dbService.getExportJson())})().catch(console.error)}ping(){return"mobile:ping"}initCronAndSubscription({cron:{activeServices:e,intervalMap:t},subscription:{activeServices:n}}){return console.log("initCronAndSubscription"),{subscription:{chainRegistry:!0,balance:!0,crowdloan:!0,staking:!0},cron:{price:!0,nft:!0,staking:!0,history:!0,recoverApi:!0,checkApiStatus:!0}}}subscribeActiveCronAndSubscriptionServiceMap(e,t){return f}startCronAndSubscriptionServices({cronServices:e,subscriptionServices:t}){console.log("startCronAndSubscriptionServices")}stopCronAndSubscriptionServices({cronServices:e,subscriptionServices:t}){console.log("stopCronAndSubscriptionServices")}restartCronAndSubscriptionServices({cronServices:e,subscriptionServices:t}){console.log("restartCronAndSubscriptionServices")}startCronServices(e){console.log("startCronServices")}stopCronServices(e){console.log("stopCronServices")}restartCronServices(e){console.log("stopCronServices")}startSubscriptionServices(e){console.log("startSubscriptionServices")}stopSubscriptionServices(e){console.log("stopSubscriptionServices")}restartSubscriptionServices(e){console.log("restartSubscriptionServices")}async _getLocalStorageExportData(){await h.waitReady;const e=await h.copy();return Promise.resolve(JSON.stringify(e))}async _getDexieExportData(){const e=await this.state.dbService.exportDB();if(await d()&&this.lastRestoreData.indexedDB){const e=await this.state.dbService.getExportJson(),t=null==e?void 0:e.data.data,n=this.lastRestoreData.indexedDB,a=Object.fromEntries(n.data.data.map((e=>[e.tableName,e])));return(null==t?void 0:t.length)>0&&t.forEach((({inbound:e,rows:t,tableName:n})=>{const r=a[n];"chain"===n||"asset"===n||"campaign"===n?r.rows=(0,o.t)("slug",r.rows,t):"migrations"===n?r.rows=(0,o.t)("key",r.rows,t):"transactions"===n&&(r.rows=(0,o.t)(["chain","address","extrinsicHash"],r.rows,t))})),JSON.stringify(n)}return e}async mobileBackup(){return{storage:await this._getLocalStorageExportData(),indexedDB:await this._getDexieExportData()}}async mobileRestore({indexedDB:e,storage:t}){if(t){const e=JSON.parse(t);for(const t in e)await h.setItem(t,e[t])}e&&(this.lastRestoreData.indexedDB=JSON.parse(e),await this.state.dbService.importDB(e)),this.restoreHandler.resolve()}waitRestore(){return this.restoreHandler.promise}async handle(e,t,n,a){switch(t){case"mobile(ping)":return this.ping();case"mobile(cronAndSubscription.init)":return this.initCronAndSubscription(n);case"mobile(cronAndSubscription.activeService.subscribe)":return this.subscribeActiveCronAndSubscriptionServiceMap(e,a);case"mobile(cronAndSubscription.start)":return this.startCronAndSubscriptionServices(n);case"mobile(cronAndSubscription.stop)":return this.stopCronAndSubscriptionServices(n);case"mobile(cronAndSubscription.restart)":return this.restartCronAndSubscriptionServices(n);case"mobile(cron.start)":return this.startCronServices(n);case"mobile(cron.stop)":return this.stopCronServices(n);case"mobile(cron.restart)":return this.restartCronServices(n);case"mobile(subscription.start)":return this.startSubscriptionServices(n);case"mobile(subscription.stop)":return this.stopSubscriptionServices(n);case"mobile(subscription.restart)":return this.restartSubscriptionServices(n);case"mobile(storage.restore)":return this.mobileRestore(n);case"mobile(storage.backup)":return this.mobileBackup();default:throw new Error(`Unable to handle message of type ${t}`)}}}a()}catch(y){a(y)}}))},38563:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>ie});var r=n(18289),i=n(53191),s=n(98552),o=n(11266),c=n(44434),u=n(31355),l=n(1493),d=n(63319),p=n(14875),h=n(99719),f=n(60975),m=n(16914),y=n(45723),g=n(91600),b=n(27386),v=n(98779),_=n(73040),A=n(58109),w=n(6635),I=n(19186),S=n(98599),x=n(3978),C=n(31784),k=n(71348),T=n(40822),E=n(3742),P=n(9035),O=n(53063),B=n(37762),R=n(5484),N=n(97114),M=n(31103),D=n(51731),L=n(72247),V=n(14298),U=n(31882),H=n(52875),F=n(19203),K=n(37550),j=n(61116),q=n(82823),z=n.n(q),G=n(9492),W=n(96004),X=n(87574),Z=n(60184),J=n(24318),Y=n(20258),Q=n(82908),$=n(67921),ee=e([v,B,I,k,m,R,O,E,T,d,w,x,D,S,f,C,h,M,b,_,N,$,Q,g,r,j,l,A,P,F,u]);[v,B,I,k,m,R,O,E,T,d,w,x,D,S,f,C,h,M,b,_,N,$,Q,g,r,j,l,A,P,F,u]=ee.then?(await ee)():ee;const te=n(23827),ne=["errorConnectNetwork"],ae=()=>({}),re="USD";class ie{injectedProviders=new Map;unsubscriptionMap={};externalRequest={};crowdloanMap=ae();crowdloanSubject=new W.B;nftSubject=new W.B;mantaPayConfigSubject=new W.B;isMantaPayEnabled=!1;stakingSubject=new W.B;chainStakingMetadataSubject=new W.B;stakingNominatorMetadataSubject=new W.B;stakingRewardSubject=new W.B;stakingRewardState={ready:!1,data:{}};lazyMap={};generalStatus=p.E.INITIALIZING;waitSleeping=null;waitStarting=null;constructor(e={}){this.providers=e,this.eventService=new v.U,this.dbService=new B.A(this.eventService),this.keyringService=new I.B(this),this.notificationService=new k.A,this.chainService=new m.N(this.dbService,this.eventService),this.subscanService=R.j.getInstance(),this.settingService=new O.A,this.requestService=new E.A(this.chainService,this.settingService,this.keyringService),this.priceService=new T.d(this.dbService,this.eventService,this.chainService),this.balanceService=new d.o(this),this.historyService=new w.k(this.dbService,this.chainService,this.eventService,this.keyringService,this.subscanService),this.mintCampaignService=new x.A(this),this.walletConnectService=new D.A(this,this.requestService),this.migrationService=new S.A(this,this.eventService),this.campaignService=new f.A(this),this.mktCampaignService=new C.A(this),this.buyService=new h.A(this),this.transactionService=new M.A(this),this.earningService=new b.A(this),this.feeService=new _.A(this),this.swapService=new N.l(this),this.subscription=new $.P(this,this.dbService),this.cron=new Q.g(this,this.subscription,this.dbService),this.logger=(0,X.v)("State"),U.y3&&this.init().catch(console.error)}get knownMetadata(){return this.requestService.knownMetadata}injectMetadata(e,t){return this.requestService.injectMetadata(e,t)}getMetaRequest(e){return this.requestService.getMetaRequest(e)}getSignRequest(e){return this.requestService.getSignRequest(e)}rpcListProviders(){return Promise.resolve(Object.keys(this.providers).reduce(((e,t)=>(e[t]=this.providers[t].meta,e)),{}))}rpcSend(e,t){const n=this.injectedProviders.get(t);return(0,Z.vA)(n,"Cannot call pub(rpc.subscribe) before provider is set"),n.send(e.method,e.params)}rpcStartProvider(e,t){return(0,Z.vA)(Object.keys(this.providers).includes(e),"Provider cannot be found."),this.injectedProviders.get(t)||(this.injectedProviders.set(t,this.providers[e].start()),t.onDisconnect.addListener((()=>{const e=this.injectedProviders.get(t);e&&(0,i.T)((()=>e.disconnect())),this.injectedProviders.delete(t)}))),Promise.resolve(this.providers[e].meta)}rpcSubscribe({method:e,params:t,type:n},a,r){const i=this.injectedProviders.get(r);return(0,Z.vA)(i,"Cannot call pub(rpc.subscribe) before provider is set"),i.subscribe(n,e,t,a)}rpcSubscribeConnected(e,t,n){const a=this.injectedProviders.get(n);(0,Z.vA)(a,"Cannot call pub(rpc.subscribeConnected) before provider is set"),t(null,a.isConnected),a.on("connected",(()=>t(null,!0))),a.on("disconnected",(()=>t(null,!1)))}rpcUnsubscribe(e,t){const n=this.injectedProviders.get(t);return(0,Z.vA)(n,"Cannot call pub(rpc.unsubscribe) before provider is set"),n.unsubscribe(e.type,e.method,e.subscriptionId)}saveMetadata(e){this.requestService.saveMetadata(e)}sign(e,t){return this.requestService.sign(e,t)}get authSubjectV2(){return this.requestService.authSubjectV2}afterChainServiceInit(){this.subscanService.setSubscanChainMap(this.chainService.getSubscanChainMap())}async init(){await this.eventService.waitCryptoReady,await this.chainService.init(),this.afterChainServiceInit(),await this.migrationService.run(),this.campaignService.init(),this.mktCampaignService.init(),this.eventService.emit("chain.ready",!0),await this.balanceService.init(),await this.earningService.init(),await this.swapService.init(),this.onReady(),this.onAccountAdd(),this.onAccountRemove(),await this.dbService.stores.crowdloan.removeEndedCrowdloans(),await this.startSubscription(),this.chainService.checkLatestData()}async initMantaPay(e){var t,n;const a=await(null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n?void 0:n.getMantaPayFirstConfig(y.xI));a&&a.enabled&&!this.isMantaPayEnabled&&(console.debug("Initiating MantaPay for",a.address),await this.enableMantaPay(!1,a.address,e),console.debug("Initiated MantaPay for",a.address),this.isMantaPayEnabled=!0,this.eventService.emit("mantaPay.enable",a.address))}async startSubscription(){await this.eventService.waitKeyringReady,await this.eventService.waitAssetReady,this.dbService.subscribeChainStakingMetadata([],(e=>{this.chainStakingMetadataSubject.next(e)})),this.dbService.subscribeMantaPayConfig(y.xI,(e=>{this.mantaPayConfigSubject.next(e)}))}onReady(){this._start().catch(console.error)}updateKeyringState(e=!0,t){this.keyringService.updateKeyringState(e),t&&t()}lazyNext=(e,t)=>{this.lazyMap[e]&&clearTimeout(this.lazyMap[e]);const n=setTimeout((()=>{t(),clearTimeout(n)}),300);this.lazyMap[e]=n};getAuthRequestV2(e){return this.requestService.getAuthRequestV2(e)}setAuthorize(e,t){this.requestService.setAuthorize(e,t)}getAuthorize(e){this.requestService.getAuthorize(e)}subscribeEvmChainChange(){return this.requestService.subscribeEvmChainChange}subscribeAuthorizeUrlSubject(){return this.requestService.subscribeAuthorizeUrlSubject}getAuthList(){return this.requestService.getAuthList()}async authorizeUrlV2(e,t){return this.requestService.authorizeUrlV2(e,t)}getNativeTokenInfo(e){return this.chainService.getNativeTokenInfo(e)}getChainInfo(e){return this.chainService.getChainInfoByKey(e)}async getChainStakingMetadata(){return this.dbService.getChainStakingMetadata()}async getStakingMetadataByChain(e,t){return this.dbService.getStakingMetadataByChain(e,t)}async getNominatorMetadata(){return this.dbService.getNominatorMetadata()}async getMantaPayConfig(e){return this.dbService.getMantaPayConfig(e)}async getStaking(){const e=this.keyringService.context.getDecodedAddresses();return{ready:!0,details:await this.dbService.getStakings(e,this.activeChainSlugs)}}async getStakingOwnersByChains(e){const t=await this.dbService.getStakingsByChains(e),n=[];return t.forEach((e=>{n.includes(e.address)||n.push(e.address)})),n}async getPooledStakingRecordsByAddress(e){return this.dbService.getPooledStakings(e,this.activeChainSlugs)}subscribeMantaPayConfig(){return this.mantaPayConfigSubject}subscribeStaking(){return this.stakingSubject}subscribeChainStakingMetadata(){return this.chainStakingMetadataSubject}subscribeNominatorMetadata(){return this.stakingNominatorMetadataSubject}ensureUrlAuthorizedV2(e){return this.requestService.ensureUrlAuthorizedV2(e)}setStakingItem(e,t){this.dbService.updateStaking(e,t.address,t).catch((e=>this.logger.warn(e)))}updateChainStakingMetadata(e,t){this.dbService.updateChainStakingMetadata(e,t).catch((e=>this.logger.warn(e)))}updateStakingNominatorMetadata(e){this.dbService.updateNominatorMetadata(e).catch((e=>this.logger.warn(e)))}setNftCollection(e,t,n){this.dbService.addNftCollection(t).catch((e=>this.logger.warn(e))),n&&n(t)}getNftCollection(){return this.dbService.getAllNftCollection(this.activeChainSlugs)}subscribeNftCollection(){return this.dbService.stores.nftCollection.subscribeNftCollection((()=>this.activeChainSlugs))}resetNft(e){this.getNft().then((e=>this.nftSubject.next(e||{nftList:[],total:0}))).catch((e=>this.logger.warn(e)));const t=this.keyringService.context.getDecodedAddresses(e);this.dbService.subscribeNft(t,this.activeChainSlugs,(e=>{this.nftSubject.next({nftList:e,total:e.length})}))}updateNftData(e,t,n,a){this.dbService.addNft(n,t).catch((e=>this.logger.warn(e))),a&&a(t)}deleteNftCollection(e,t){return this.dbService.deleteNftCollection(e,t)}cleanUpNfts(e,t,n,a,r){this.dbService.cleanUpNft(e,t,n,a,r).catch((e=>this.logger.warn(e)))}async getNft(){const e=this.keyringService.context.getDecodedAddresses();if(!e.length)return;const t=await this.dbService.getNft(e,this.activeChainSlugs);return{nftList:t,total:t.length}}subscribeNft(){return this.nftSubject}resetStakingReward(){this.stakingRewardState.data={},this.stakingRewardSubject.next(this.stakingRewardState)}updateStakingReward(e,t){this.stakingRewardState.ready=!0;const n=`${e.chain}___${e.address}___${e.type}`;this.stakingRewardState.data[n]=e,t&&t(this.stakingRewardState),this.stakingRewardSubject.next(this.stakingRewardState)}updateStakingRewardReady(e){this.stakingRewardState.ready=e,this.stakingRewardSubject.next(this.stakingRewardState)}getStakingReward(e){e(this.stakingRewardState)}subscribeStakingReward(){return this.stakingRewardSubject}async switchEvmNetworkByUrl(e,t){const n=await this.getAuthList(),a=this.chainService.getChainInfoByKey(t),i=this.chainService.getChainStateByKey(t);if(!n[e])throw new r.q(o.c2.INTERNAL_ERROR,(0,G.t)("Not found {{shortenUrl}} in auth list",{replace:{shortenUrl:e}}));a&&!(0,g.gb)(i)&&await this.enableChain(t),n[e].currentEvmNetworkKey=t,this.setAuthorize(n)}async addNetworkConfirm(e,t,n){return this.requestService.addConfirmation(e,t,"addNetworkRequest",n).then((async({isApproved:e})=>{if(e)return"insert"===n.mode&&await this.upsertChainInfo(n),null;throw new r.q(o.c2.USER_REJECTED_REQUEST)}))}async addTokenConfirm(e,t,n){return this.requestService.addConfirmation(e,t,"addTokenRequest",n).then((async({isApproved:e})=>{if(e)return await this.upsertCustomToken({originChain:n.originChain,slug:"",name:n.name,symbol:n.symbol,decimals:n.decimals,priceId:null,minAmount:null,assetType:n.type,metadata:(0,g.so)(n.contractAddress),multiChainAsset:null,hasValue:(0,g.er)(this.chainService.getChainInfoByKey(n.originChain)),icon:""}),e;throw new r.q(o.c2.USER_REJECTED_REQUEST)}))}get metaSubject(){return this.requestService.metaSubject}get signSubject(){return this.requestService.signSubject}getSettings(e){this.settingService.getSettings(e)}setSettings(e,t){this.settingService.setSettings(e,t)}updateSetting(e,t){this.settingService.getSettings((n=>{const a={...n,[e]:t};this.settingService.setSettings(a)}))}setShowBalance(e){this.settingService.getSettings((t=>{const n={...t,isShowBalance:e};this.settingService.setSettings(n)}))}subscribeSettingsSubject(){return this.settingService.getSubject()}async resetCrowdloanMap(e){const t=ae(),n=await this.getStoredCrowdloan(e);this.crowdloanMap={...t,...n},this.publishCrowdloan(!0)}resetStaking(e){this.getStaking().then((e=>{this.stakingSubject.next(e)})).catch((e=>this.logger.warn(e)));const t=this.keyringService.context.getDecodedAddresses(e);this.dbService.subscribeStaking(t,this.activeChainSlugs,(e=>{this.stakingSubject.next({ready:!0,details:e})}))}getCrowdloan(e){return{details:this.crowdloanMap,reset:e}}async getStoredCrowdloan(e){return await this.dbService.stores.crowdloan.getDataByAddressAsObject(e)||{}}setCrowdloanItem(e,t){const n={...t,timestamp:+new Date};this.crowdloanMap[e]=n,this.updateCrowdloanStore(e,n),this.lazyNext("setCrowdloanItem",(()=>{this.publishCrowdloan()}))}updateCrowdloanStore(e,t){const n=this.keyringService.context.currentAccount;this.dbService.updateCrowdloanStore(e,n.proxyId,t).catch((e=>this.logger.warn(e)))}subscribeCrowdloan(){return this.crowdloanSubject}getSmartContractNfts(){return this.chainService.getSmartContractNfts()}getChainInfoMap(){return this.chainService.getChainInfoMap()}getChainStateMap(){return this.chainService.getChainStateMap()}getAssetRefMap(){return this.chainService.getAssetRefMap()}getChainStateByKey(e){return this.chainService.getChainStateByKey(e)}getAssetRegistry(){return this.chainService.getAssetRegistry()}getMultiChainAssetMap(){return this.chainService.getMultiChainAssetMap()}getXcmRefMap(){return this.chainService.xcmRefMap}getAssetByChainAndAsset(e,t){return this.chainService.getAssetByChainAndType(e,t)}getAssetBySlug(e){return this.chainService.getAssetBySlug(e)}getXcmEqualAssetByChain(e,t){return this.chainService.getXcmEqualAssetByChain(e,t)}subscribeChainInfoMap(){return this.chainService.subscribeChainInfoMap()}subscribeChainStateMap(){return this.chainService.subscribeChainStateMap()}subscribeAssetRegistry(){return this.chainService.subscribeAssetRegistry()}subscribeMultiChainAssetMap(){return this.chainService.subscribeMultiChainAssetMap()}subscribeXcmRefMap(){return this.chainService.subscribeXcmRefMap()}async upsertCustomToken(e){const t=this.chainService.upsertCustomToken(e);(0,g.Pl)(e)?(await this.chainService.updateAssetSetting(t,{visible:!0}),this.eventService.emit("asset.updateState",t)):this.eventService.emit("asset.updateState",t)}deleteCustomAssets(e){this.chainService.deleteCustomAssets(e)}async validateCustomChain(e,t){return await this.chainService.validateCustomChain(e,t)}getSupportedSmartContractTypes(){return this.chainService.getSupportedSmartContractTypes()}async validateCustomAsset(e){return await this.chainService.validateCustomToken(e)}getActiveChainInfoMap(){return this.chainService.getActiveChainInfoMap()}async upsertChainInfo(e){const t=await this.chainService.upsertChain(e);return t&&(await this.chainService.updateAssetSetting(t,{visible:!0}),this.eventService.emit("asset.updateState",t)),!0}removeCustomChain(e){return this.chainService.removeCustomChain(e)}forceRemoveChain(e){this.chainService.forceRemoveChain(e)}getDefaultNetworkKeys=()=>{const e={};j.AC.getPairs().forEach((t=>{const n=t.meta.originGenesisHash;n&&"string"==typeof n&&(e[n]=n)}));const t=Object.keys(e),n=[];for(const[e,a]of Object.entries(this.chainService.getChainInfoMap()))t.includes((0,g.DZ)(a)||"")&&n.push(e);return n};async disableChain(e){if(await this.chainService.updateAssetSettingByChain(e,!1),y.nY.includes(e)){var t,n;const e=await(null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n?void 0:n.getMantaPayFirstConfig(y.xI));e&&e.enabled&&this.isMantaPayEnabled&&await this.disableMantaPay(e.address)}return this.chainService.disableChain(e)}async enableChain(e,t=!0){return t&&await this.chainService.updateAssetSettingByChain(e,!0),this.chainService.enableChain(e)}resetDefaultChains(){const e=this.getDefaultNetworkKeys();return this.chainService.resetChainInfoMap(e)}getSubstrateApiMap(){return this.chainService.getSubstrateApiMap()}getSubstrateApi(e){return this.chainService.getSubstrateApi(e)}getEvmApiMap(){return this.chainService.getEvmApiMap()}getEvmApi(e){return this.chainService.getEvmApi(e)}getTonApiMap(){return this.chainService.getTonApiMap()}getTonApi(e){return this.chainService.getTonApi(e)}getApiMap(){return{substrate:this.chainService.getSubstrateApiMap(),evm:this.chainService.getEvmApiMap()}}refreshSubstrateApi(e){return this.chainService.refreshSubstrateApi(e),!0}refreshWeb3Api(e){this.chainService.refreshEvmApi(e)}getServiceInfo(){return{chainInfoMap:this.chainService.getChainInfoMap(),chainApiMap:this.getApiMap(),currentAccountInfo:this.keyringService.context.currentAccount,assetRegistry:this.chainService.getAssetRegistry(),chainStateMap:this.chainService.getChainStateMap()}}getExternalRequestMap(){return this.externalRequest}setExternalRequestMap(e,t){this.externalRequest[e]=t}getExternalRequest(e){return this.externalRequest[e]}updateExternalRequest(e,t){const n=this.externalRequest[e];if(n)for(const[e,a]of Object.entries(t))n[e]=a}cleanExternalRequest(){const e=(new Date).getTime(),t=this.externalRequest,n=[],a=(e,t)=>{n.push(e),t.resolve=void 0,t.reject=void 0};for(const[n,r]of Object.entries(t))(r.status===o.Ym.COMPLETED||r.status===o.Ym.REJECTED||e-r.createdAt>54e3)&&a(n,r);for(const e of n)delete t[e]}pauseAllNetworks(e,t){return this.chainService.stopAllChainApis()}async resumeAllNetworks(){return this.chainService.resumeAllChainApis()}publishCrowdloan(e){this.crowdloanSubject.next(this.getCrowdloan(e))}findNetworkKeyByGenesisHash(e){if(!e)return[void 0,void 0];return Object.entries(this.chainService.getChainInfoMap()).find((([t,n])=>(0,g.DZ)(n)===e))||[void 0,void 0]}findChainIdGenesisHash(e){const t=this.findNetworkKeyByGenesisHash(e)[1];return t?(0,g.iO)(t):void 0}findNetworkKeyByChainId(e){if(!e)return[void 0,void 0];return Object.entries(this.chainService.getChainInfoMap()).find((([t,n])=>{var a;return(null==n||null===(a=n.evmInfo)||void 0===a?void 0:a.evmChainId)===e}))||[void 0,void 0]}findSingleMode(e){const[t]=this.findNetworkKeyByGenesisHash(e);if(t)return Object.values(y.Ox).find((e=>e.networkKeys.includes(t)))}accountExportPrivateKey(e){return this.keyringService.context.accountExportPrivateKey(e)}checkPublicAndSecretKey(e){return this.keyringService.context.checkPublicAndSecretKey(e)}async evmSign(e,t,n,a,i){let s,c="";const[u,d]=a;"string"==typeof u&&(0,Y.q)(u)?(c=u,s=d):"string"==typeof d&&(0,Y.q)(d)&&(c=d,s=u);const p={address:c,payloadAfterValidated:s,method:n,errors:[],networkKey:""},h=[i?l.qP:l.W4,l.ob],f=await(0,l.wM)(this,t,p,h,i),m=(0,l.BY)(f.errors),y={...f.payloadAfterValidated,errors:m,id:e};return this.requestService.addConfirmation(e,t,"evmSignatureRequest",y,{}).then((({isApproved:e,payload:t})=>{if(e){if(t)return t;throw new r.q(o.c2.INVALID_PARAMS,(0,G.t)("Not found signature"))}throw new r.q(o.c2.USER_REJECTED_REQUEST)}))}async calculateAllGasFeeOnChain(e,t=1e4){const n=[];return e.forEach((e=>{const a=new Promise((e=>{setTimeout((()=>e(null)),t)})),r=(async()=>{try{const t=this.chainService.getEvmApi(e);return await t.isReady,await(0,A.oc)(t,e,!1,!1)}catch(e){return console.error(e),null}})();n.push(Promise.race([r,a]).then((t=>{var n,a,r,i;return[e,t?{...t,gasPrice:null===(n=t.gasPrice)||void 0===n?void 0:n.toString(),maxFeePerGas:null===(a=t.maxFeePerGas)||void 0===a?void 0:a.toString(),maxPriorityFeePerGas:null===(r=t.maxPriorityFeePerGas)||void 0===r?void 0:r.toString(),baseGasFee:null===(i=t.baseGasFee)||void 0===i?void 0:i.toString()}:null]})))})),Object.fromEntries(await Promise.all(n))}async evmSendTransaction(e,t,n,a,i){const s={errors:[],networkKey:a||"",payloadAfterValidated:n,address:n.from},c=[i?l.qP:l.W4,l.Kg,l.sR],u=await(0,l.wM)(this,t,s,c,i),{confirmationType:d,errors:p,networkKey:h}=u,f=(0,l.BY)(p);if(f&&f.length>0&&d&&ne.includes(d))return this.requestService.addConfirmation(e,t,d,{...u,errors:f},{}).then((()=>{throw new r.q(o.c2.USER_REJECTED_REQUEST)}));const m=u.payloadAfterValidated,y=h||"",g={...m,errors:f},b=m.value?o.M_.TRANSFER_BALANCE:o.M_.EVM_EXECUTE,v={...m},_=this.chainService.getNativeTokenInfo(y);b===o.M_.TRANSFER_BALANCE&&(v.tokenSlug=_.slug);const A=await this.transactionService.addTransaction({transaction:g,address:g.from,chain:y,url:t,data:v,errors:p,extrinsicType:b,chainType:o.IG.EVM,estimateFee:{value:m.estimateGas,symbol:_.symbol,decimals:_.decimals||18},id:e});return new Promise(((e,t)=>{A.on("extrinsicHash",(t=>{e(t.extrinsicHash)})),A.on("error",(e=>{var n;let a=new r.q(o.c2.INTERNAL_ERROR);const i=(null===(n=e.errors[0])||void 0===n?void 0:n.errorType)||V.xu.INTERNAL_ERROR;if(i===V.xu.USER_REJECT_REQUEST||i===V.xu.UNABLE_TO_SIGN)a=new r.q(o.c2.USER_REJECTED_REQUEST);else if(i===V.xu.UNABLE_TO_SEND){var s;a=new r.q(o.c2.INTERNAL_ERROR,null===(s=e.errors[0])||void 0===s?void 0:s.message)}t(a)}))}))}getConfirmationsQueueSubject(){return this.requestService.confirmationsQueueSubject}getConfirmationsQueueSubjectTon(){return this.requestService.confirmationsQueueSubjectTon}async completeConfirmation(e){return await this.requestService.completeConfirmation(e)}async completeConfirmationTon(e){return await this.requestService.completeConfirmationTon(e)}async onMV3Update(){const e=await L.W.instance.getItem("mv3_migration");if(!e||"done"!==e)if(H.P){const e=`${chrome.runtime.getURL("index.html")}#/mv3-migration`;await(0,P.P)(e)}else this.migrateMV3LocalStorage(JSON.stringify(self.localStorage)).catch(console.error)}async storePreviousVersionData(e){if("update"===e.reason){const t=e.previousVersion;if(!t)return;const n=await L.W.instance.getItem("previous_version");n&&n.includes(t)||await L.W.instance.setItem("previous_version",t)}}async migrateMV3LocalStorage(e){try{const t=JSON.parse(e);return t.mv3_migration="done",await L.W.instance.setMap(t),this.walletConnectService.initClient().catch(console.error),!0}catch(e){return console.error(e),!1}}async onMV3Install(){await L.W.instance.setItem("mv3_migration","done");const e=`${chrome.runtime.getURL("index.html")}#/welcome`;(0,i.T)((()=>chrome.tabs.create({url:e})))}onInstallOrUpdate(e){"install"===e.reason?this.onMV3Install().catch(console.error):"update"===e.reason&&(this.onMV3Update().catch(console.error),this.storePreviousVersionData(e).catch(console.error))}async onHandleRemindExportAccount(){const e=await L.W.instance.getItem(c.vs);if(!e||!e.includes("done")){const e=e=>{if(""!==e.proxyId){const e=`${chrome.runtime.getURL("index.html")}#/remind-export-account`;(0,P.P)(e).then(J.l).catch(console.error).finally((()=>t.unsubscribe()))}else setTimeout((()=>{t.unsubscribe()}),3e3)},t=this.keyringService.context.observable.currentAccount.subscribe(e)}}async setStorageFromWS({key:e,value:t}){try{const n=JSON.stringify(t);return await L.W.instance.setItem(e,n),!0}catch(e){return console.error(e),!1}}async getStorageFromWS(e){try{return await L.W.instance.getItem(e)}catch(e){return console.error(e),null}}onCheckToRemindUser(){this.onHandleRemindExportAccount().catch(console.error)}onInstall(){}get activeNetworks(){return this.chainService.getActiveChainInfos()}get activeChainSlugs(){return Object.values(this.activeNetworks).map((e=>e.slug))}async sleep(){if(this.generalStatus===p.E.STARTING&&this.waitStarting&&await this.waitStarting,this.eventService.emit("general.sleep",!0),this.generalStatus===p.E.STOPPED)return;if(this.generalStatus===p.E.STOPPING)return void await this.waitSleeping;const e=(0,K.y)();this.generalStatus=p.E.STOPPING,this.waitSleeping=e.promise,this.campaignService.stop(),await Promise.all([this.cron.stop(),this.subscription.stop()]),await this.pauseAllNetworks(void 0,"IDLE mode"),await Promise.all([this.historyService.stop(),this.priceService.stop(),this.balanceService.stop(),this.earningService.stop(),this.swapService.stop()]),e.resolve(),this.generalStatus=p.E.STOPPED,this.waitSleeping=null}async _start(){if(this.generalStatus===p.E.STOPPING&&this.waitSleeping&&await this.waitSleeping,this.generalStatus===p.E.STARTED)return;if(this.generalStatus===p.E.STARTING)return void await this.waitStarting;const e=this.generalStatus===p.E.STOPPED,t=(0,K.y)();this.generalStatus=p.E.STARTING,this.waitStarting=t.promise,e&&(await this.resumeAllNetworks(),this.eventService.emit("general.wakeup",!0)),await Promise.all([this.cron.start(),this.subscription.start(),this.historyService.start(),this.priceService.start(),this.balanceService.start(),this.earningService.start(),this.swapService.start()]),t.resolve(),this.waitStarting=null,this.generalStatus=p.E.STARTED}async wakeup(){await this._start()}cancelSubscription(e){return(0,s.DY)(e)&&(0,s.al)(e),this.unsubscriptionMap[e]&&(this.unsubscriptionMap[e](),delete this.unsubscriptionMap[e]),!0}createUnsubscriptionHandle(e,t){this.unsubscriptionMap[e]=t}get detectBalanceChainSlugMap(){const e={},t=this.getChainInfoMap();for(const[a,r]of Object.entries(t)){var n;const t=(null===(n=r.extraInfo)||void 0===n?void 0:n.chainBalanceSlug)||"";t&&(e[t]=a)}return e}onAccountAdd(){this.eventService.on("account.add",(e=>{this.balanceService.autoEnableChains([e]).catch(this.logger.error)}))}onAccountRemove(){this.eventService.on("account.remove",(e=>{const t=this.dbService.stores;t.nft.deleteNftByAddress([e]).catch(console.error),t.staking.removeAllByAddress(e).catch(console.error)}))}async reloadNft(){const e=this.keyringService.context.currentAccount.proxyId;return await this.dbService.removeNftsByAddress(e),await this.cron.reloadNft()}async reloadStaking(){return await this.earningService.reloadEarning(!0),!0}async reloadBalance(){return await this.balanceService.reloadBalance(),!0}async reloadCrowdloan(){return await this.subscription.reloadCrowdloan(),!0}async approvePassPhishingPage(e){return new Promise((t=>{this.settingService.getPassPhishingList((n=>{const a={...n};a[(0,F.Cx)(e)]={pass:!0},this.settingService.setPassPhishing(a,(()=>{t(!0)}))}))}))}async resetWallet(e){await this.keyringService.resetWallet(e),await this.earningService.resetYieldPosition(),await this.balanceService.handleResetBalance(!0),this.requestService.resetWallet(),this.transactionService.resetWallet(),await this.earningService.resetWallet(),await this.dbService.resetWallet(e),e&&(await this.priceService.setPriceCurrency(re),this.settingService.resetWallet(),await this.priceService.setPriceCurrency(re)),this.chainService.resetWallet(e),await this.walletConnectService.resetWallet(e),await this.chainService.init(),this.afterChainServiceInit(),this.chainService.checkLatestData()}async enableMantaPay(e,t,n,a){var r,i,s,o,c,u,l,d;if(!t||(0,Y.q)(t))return;if(null===(r=this.chainService)||void 0===r||null===(i=r.mantaPay)||void 0===i||i.setCurrentAddress(t),await(null===(s=this.chainService)||void 0===s||null===(o=s.mantaPay)||void 0===o||null===(c=o.privateWallet)||void 0===c?void 0:c.initialSigner()),e&&a){var p,h,f,m,g,b,v,_,A,w,I;await(null===(p=this.chainService)||void 0===p||null===(h=p.mantaPay)||void 0===h||null===(f=h.privateWallet)||void 0===f?void 0:f.loadUserSeedPhrase(a));const e=await(null===(m=this.chainService)||void 0===m||null===(g=m.mantaPay)||void 0===g||null===(b=g.privateWallet)||void 0===b?void 0:b.getAuthorizationContext());await(null===(v=this.chainService)||void 0===v||null===(_=v.mantaPay)||void 0===_||null===(A=_.privateWallet)||void 0===A?void 0:A.loadAuthorizationContext(e));const r=await te.encrypt(n,e);await(null===(w=this.chainService)||void 0===w||null===(I=w.mantaPay)||void 0===I?void 0:I.saveMantaAuthContext({chain:y.xI,address:t,data:r}))}else{var S,x,C,k,T;const e=await(null===(S=this.chainService)||void 0===S||null===(x=S.mantaPay)||void 0===x?void 0:x.getMantaAuthContext(t,y.xI)),a=await te.decrypt(n,e.data),r=new Uint8Array(Object.values(a.proof_authorization_key));await(null===(C=this.chainService)||void 0===C||null===(k=C.mantaPay)||void 0===k||null===(T=k.privateWallet)||void 0===T?void 0:T.loadAuthorizationContext({proof_authorization_key:r}))}const E=await(null===(u=this.chainService)||void 0===u||null===(l=u.mantaPay)||void 0===l||null===(d=l.privateWallet)||void 0===d?void 0:d.getZkAddress());var P,O,B,R,N,M;return e&&await(null===(P=this.chainService)||void 0===P||null===(O=P.mantaPay)||void 0===O?void 0:O.saveMantaPayConfig({address:t,zkAddress:E,enabled:!0,chain:null===(B=this.chainService)||void 0===B||null===(R=B.mantaPay)||void 0===R||null===(N=R.privateWallet)||void 0===N||null===(M=N.network)||void 0===M?void 0:M.toLowerCase(),isInitialSync:!1})),this.isMantaPayEnabled=!0,E}async disableMantaPay(e){var t,n,a,r,i,s,o,c,u,l,d,p;return!!await(null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n?void 0:n.getMantaPayConfig(e,y.xI))&&(await(null===(a=this.chainService)||void 0===a||null===(r=a.mantaPay)||void 0===r||null===(i=r.privateWallet)||void 0===i?void 0:i.dropAuthorizationContext()),await(null===(s=this.chainService)||void 0===s||null===(o=s.mantaPay)||void 0===o||null===(c=o.privateWallet)||void 0===c?void 0:c.dropUserSeedPhrase()),await(null===(u=this.chainService)||void 0===u||null===(l=u.mantaPay)||void 0===l?void 0:l.deleteMantaPayConfig(e,y.xI)),await(null===(d=this.chainService)||void 0===d||null===(p=d.mantaPay)||void 0===p?void 0:p.deleteMantaAuthContext(e,y.xI)),this.chainService.setMantaZkAssetSettings(!1),this.isMantaPayEnabled=!1,!0)}async initialSyncMantaPay(e){var t,n,a,r,i,s,o,c,u,l,d;if(!e||(0,Y.q)(e))return;null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n||n.setCurrentAddress(e),await(null===(a=this.chainService)||void 0===a||null===(r=a.mantaPay)||void 0===r||null===(i=r.privateWallet)||void 0===i||null===(s=i.baseWallet)||void 0===s?void 0:s.isApiReady());const p=await(null===(o=this.chainService)||void 0===o||null===(c=o.mantaPay)||void 0===c||null===(u=c.privateWallet)||void 0===u?void 0:u.initialWalletSync());return await(null===(l=this.chainService)||void 0===l||null===(d=l.mantaPay)||void 0===d?void 0:d.updateMantaPayConfig(e,y.xI,{isInitialSync:!0})),this.eventService.emit("mantaPay.initSync",void 0),p}getMantaZkBalance(){var e,t,n,a,r,i,s,c,u;if(!this.chainService||null===(e=this.chainService)||void 0===e||!e.mantaPay)return;if(null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n||null===(a=n.privateWallet)||void 0===a||!a.initialSyncIsFinished)return;const l=null===(r=this.chainService)||void 0===r||null===(i=r.mantaPay.privateWallet)||void 0===i?void 0:i.network;if(!l)return;const d=this.chainService.getMantaZkAssets(null==l?void 0:l.toLowerCase());null===(s=this.chainService)||void 0===s||null===(c=s.mantaPay)||void 0===c||null===(u=c.privateWallet)||void 0===u||u.getMultiZkBalance(Object.values(d).map((e=>new(z())((0,g.AZ)(e))))).then((e=>{const t=Object.values(d);for(let a=0;a{e&&e.enabled&&e.isInitialSync&&(this.getMantaZkBalance(),n=setInterval(this.getMantaZkBalance,u.Wf))})).catch(console.warn),()=>{n&&clearInterval(n)}}async syncMantaPay(){var e,t,n,a,r,i,s,o,c,u,l;(await(null===(e=this.chainService)||void 0===e||null===(t=e.mantaPay)||void 0===t?void 0:t.getMantaPayFirstConfig(y.xI))).isInitialSync&&(null!==(n=this.chainService)&&void 0!==n&&null!==(a=n.mantaPay)&&void 0!==a&&null!==(r=a.privateWallet)&&void 0!==r&&r.initialSyncIsFinished?await(null===(i=this.chainService)||void 0===i||null===(s=i.mantaPay)||void 0===s||null===(o=s.privateWallet)||void 0===o?void 0:o.walletSync()):await(null===(c=this.chainService)||void 0===c||null===(u=c.mantaPay)||void 0===u||null===(l=u.privateWallet)||void 0===l?void 0:l.initialWalletSync()))}async getMantaPayZkBalance(e,t){var n,a,r;const i=new(z())((0,g.AZ)(t)),s=await(null===(n=this.chainService)||void 0===n||null===(a=n.mantaPay)||void 0===a||null===(r=a.privateWallet)||void 0===r?void 0:r.getZkBalance(i));return{decimals:t.decimals||0,symbol:t.symbol,value:(null==s?void 0:s.toString())||"0"}}subscribeMantaPaySyncState(){var e,t,n;return null!==(e=this.chainService)&&void 0!==e&&e.mantaPay?null===(t=this.chainService)||void 0===t||null===(n=t.mantaPay)||void 0===n?void 0:n.subscribeSyncState():new W.B}async findMetadata(e){const t=await this.chainService.getMetadataByHash(e);return{metadata:(null==t?void 0:t.hexValue)||"",specVersion:parseInt((null==t?void 0:t.specVersion)||"0"),types:(null==t?void 0:t.types)||{},userExtensions:null==t?void 0:t.userExtensions}}async calculateMetadataHash(e){return this.chainService.calculateMetadataHash(e)}async shortenMetadata(e,t){return this.chainService.shortenMetadata(e,t)}getCrowdloanContributions({address:e,page:t,relayChain:n}){return this.subscanService.getCrowdloanContributions(n,e,t)}}a()}catch(e){a(e)}}))},48912:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>P});var r=n(38397),i=n(18289),s=n(53191),o=n(98552),c=n(11266),u=n(17035),l=n(38495),d=n(31355),p=n(1493),h=n(1555),f=n(68468),m=n(91600),y=n(68498),g=n(37586),b=n(19203),v=n(82564),_=n(52484),A=n(20049),w=n.n(A),I=n(4788),S=n(90520),x=n(24292),C=n(20258),k=e([y,p,b,i,d,m]);function T(e,t=!1,n,a){const r=n&&n.isAllowed?Object.keys(n.isAllowedMap).filter((e=>n.isAllowedMap[e])):[];return Object.values(e).filter((({json:{meta:{isHidden:e}}})=>!e)).filter((({type:e})=>!!t||(0,g.s)(e))).filter((({type:e})=>{if(a){if(!e)return!1;const t={evm:_.u,substrate:_.oj,ton:_.MM};return a.some((n=>{var a;return null===(a=t[n])||void 0===a?void 0:a.includes(e)}))}return!0})).filter((({json:{address:e}})=>r.includes(e))).sort(((e,t)=>(e.json.meta.whenCreated||0)-(t.json.meta.whenCreated||0))).map((({json:{address:e,meta:{genesisHash:t,name:n}},type:a})=>({address:e,genesisHash:t,name:n,type:a})))}[y,p,b,i,d,m]=k.then?(await k)():k;const E=async e=>{const t=await fetch("https://app.chainpatrol.io/api/v2/asset/check",{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":"e5e88cd0-7994-4667-9071-bab849c2ba71"},body:JSON.stringify({type:"URL",content:e})});return"BLOCKED"===(await t.json()).status};class P{#o={};#t;evmEventEmitterMap={};#c=y.b;#u={};constructor(e){this.#t=e;const t=e=>{this.#c=e.enableChainPatrol};this.#t.settingService.getSettings(t),this.#t.settingService.getSubject().subscribe({next:t});const n=e=>{this.#u=e};this.#t.settingService.getPassPhishingList(n),this.#t.settingService.passPhishingSubject().subscribe({next:n})}async bytesSign(e,t){const n={address:t.address,networkKey:"",errors:[],payloadAfterValidated:t},{errors:a}=await(0,p.wM)(this.#t,e,n,[p.W4]);if(0===a.length)return this.#t.sign(e,new u.A(t));throw a[0]}async extrinsicSign(e,t){const n={address:t.address,networkKey:"",errors:[],payloadAfterValidated:t},{errors:a,pair:r}=await(0,p.wM)(this.#t,e,n,[p.W4]);if(r&&0===a.length)return this.#t.sign(e,new l.A(t));throw a[0]}metadataProvide(e,t){return this.#t.injectMetadata(e,t)}metadataList(e){return this.#t.knownMetadata.map((({genesisHash:e,specVersion:t})=>({genesisHash:e,specVersion:t})))}rpcListProviders(){return this.#t.rpcListProviders()}rpcSend(e,t){return this.#t.rpcSend(e,t)}rpcStartProvider(e,t){return this.#t.rpcStartProvider(e,t)}async rpcSubscribe(e,t,n){const a=(0,o.Ky)(t,n),r=await this.#t.rpcSubscribe(e,((e,t)=>a(t)),n);return n.onDisconnect.addListener((()=>{(0,o.al)(t),(0,s.T)((()=>this.rpcUnsubscribe({...e,subscriptionId:r},n)))})),!0}rpcSubscribeConnected(e,t,n){const a=(0,o.Ky)(t,n);return this.#t.rpcSubscribeConnected(e,((e,t)=>a(t)),n),n.onDisconnect.addListener((()=>{(0,o.al)(t)})),Promise.resolve(!0)}async rpcUnsubscribe(e,t){return this.#t.rpcUnsubscribe(e,t)}redirectPhishingLanding(e){const t=e.split("#")[0],n=encodeURIComponent(t),a=`${chrome.runtime.getURL("index.html")}#${h.c8}/${n}`;chrome.tabs.query({url:t},(e=>{e.map((({id:e})=>e)).filter((e=>(0,S.E)(e))).forEach((e=>(0,s.T)((()=>chrome.tabs.update(e,{url:a})))))}))}checkPassList(e){const t=(0,b.Cx)(e),n=this.#u[t];return!n||!n.pass}async checkPhishing(e){return(await(0,I.LK)(e)||!(!this.#c||!await E(e)))&&this.checkPassList(e)}async redirectIfPhishing(e){const t=await this.checkPhishing(e);return t&&this.redirectPhishingLanding(e),t}cancelSubscription(e){return this.#t.cancelSubscription(e)}createUnsubscriptionHandle(e,t){this.#t.createUnsubscriptionHandle(e,t)}async getAuthInfo(e,t){return(t||await this.#t.getAuthList())[(0,b.Cx)(e)]}async accountsListV2(e,{accountAuthType:t,anyType:n}){const a=await this.getAuthInfo(e),r=[];return t?r.push(t):a&&(a.accountAuthTypes.includes("substrate")&&r.push("substrate"),a.accountAuthTypes.includes("evm")&&r.push("evm")),T(this.#t.keyringService.context.pairs,n,a,r)}accountsSubstrateSubscribeV2(e,{accountAuthType:t},n,a){const r=(0,o.Ky)(n,a),i=this.#t.requestService.subscribeAuthorizeUrlSubject;return this.#o[n]={subscription:i.subscribe((n=>{this.getAuthInfo(e,n).then((e=>{const n=[];t?n.push(t):e&&(e.accountAuthTypes.includes("substrate")&&n.push("substrate"),e.accountAuthTypes.includes("evm")&&n.push("evm"));const a=this.#t.keyringService.context.pairs;return r(T(a,!1,e,n))})).catch(console.error)})),url:e},a.onDisconnect.addListener((()=>{this.accountsUnsubscribe(e,{id:n})})),n}accountsUnsubscribe(e,{id:t}){const n=this.#o[t];return!(!n||n.url!==e||(delete this.#o[t],(0,o.al)(t),n.subscription.unsubscribe(),0))}authorizeV2(e,t){var n,a;return 1===(null===(n=t.accountAuthTypes)||void 0===n?void 0:n.length)&&(null===(a=t.accountAuthTypes)||void 0===a?void 0:a.includes("evm"))?new Promise(((n,a)=>{this.#t.authorizeUrlV2(e,t).then(n).catch((e=>{a(new i.q(c.c2.USER_REJECTED_REQUEST))}))})):this.#t.authorizeUrlV2(e,t)}async getEvmCurrentAccount(e){return await new Promise((t=>{this.getAuthInfo(e).then((e=>{const n=T(this.#t.keyringService.context.pairs,!1,e,["evm"]).map((e=>e.address));let a=[];const r=this.#t.keyringService.context.currentAccount.proxyId;if(r!==d.GQ&&r){const e=this.#t.keyringService.context.addressesByProxyId(r),t=[],i=[];for(const a of n)e.includes(a)?i.push(a):t.push(a);t.unshift(...i),a=t}else a=n;t(a)})).catch(console.error)}))}async getEvmState(e){let t,n=!1;if(e){const a=await this.getAuthInfo(e);null!=a&&a.currentEvmNetworkKey&&(t=null==a?void 0:a.currentEvmNetworkKey),null!=a&&a.isAllowed&&(n=!0)}const a=this.#t.requestService.getDAppChainInfo({autoActive:n,accessType:"evm",defaultChain:t,url:e});if(a){const{evmInfo:e,slug:t}=a,n=this.#t.getEvmApi(t),r=null==n?void 0:n.api;if((null==r?void 0:r.currentProvider)instanceof w().providers.WebsocketProvider&&!r.currentProvider.connected){console.log(`${t} is disconnected, trying to connect...`),this.#t.refreshWeb3Api(t);let e=0;const n=a=>{e+=1,r.currentProvider.connected?(console.log(`${t} is connected.`),a(!0)):(console.log(`Connecting to network [${t}]`),e<10?setTimeout((()=>n(a)),900):(console.log(`Max retry, stop checking [${t}]`),a(!1)))};await new Promise(n)}return{networkKey:t,chainId:`0x${((null==e?void 0:e.evmChainId)||0).toString(16)}`,web3:r}}return{}}async getEvmPermission(e,t){return[{id:t,invoker:e,parentCapability:"eth_accounts",caveats:[{type:"restrictReturnedAccounts",value:await this.getEvmCurrentAccount(e)}],date:(new Date).getTime()}]}async revokePermissions(e,t,{params:n}){if(!n||!(0,x.c)(n)||0===n.length)throw new i.q(c.c2.INVALID_PARAMS,"No list of permissions found to revoke in the parameters.");const a=new Set(Object.keys(n[0]).filter((e=>d.iw.includes(e))));return await Promise.all(Array.from(a).map((async t=>{if("eth_accounts"===t)return new Promise((t=>{this.#t.getAuthorize((n=>{const a=(0,b.Cx)(e);if(n&&n[a]){const{accountAuthTypes:e,isAllowedMap:r}={...n[a]};e||t(),null!=e&&e.includes("evm")?1===e.length?delete n[a]:(n[a].isAllowedMap=Object.entries(r).reduce(((e,[t,n])=>((0,C.q)(t)?e[t]=!1:e[t]=n,e)),{}),n[a].accountAuthTypes=null==e?void 0:e.filter((e=>"evm"!==e))):t(),this.#t.setAuthorize(n,(()=>{t()}))}else t()}))}))}))),null}async switchEvmChain(e,t,{params:n}){const a=n[0].chainId,r=parseInt(a,16);if((await this.getEvmState(t)).chainId===a)return null;const[s]=this.#t.findNetworkKeyByChainId(r);if(s)await this.#t.switchEvmNetworkByUrl((0,b.Cx)(t),s);else{const n=await(0,v.S)(r);if(!n)throw new i.q(c.c2.INVALID_PARAMS,"This network is currently not supported");{const r={chainId:a,rpcUrls:n.rpc.filter((e=>e.startsWith("https://"))),chainName:n.name,blockExplorerUrls:n.explorers.map((e=>e.url)),nativeCurrency:n.nativeCurrency,requestId:e};await this.addEvmChain(e,t,{method:"wallet_addEthereumChain",params:[r]})}}return null}async addEvmToken(e,t,{params:n}){var a,s,o,u,l,d;const p=n,h=(null==p||null===(a=p.type)||void 0===a?void 0:a.toLowerCase())||"";if("erc20"!==h&&"erc721"!==h)throw new i.q(c.c2.INVALID_PARAMS,"Assets type {{tokenType}} is not supported".replace("{{tokenType}}",h));if(null==p||null===(s=p.options)||void 0===s||!s.address||null==p||null===(o=p.options)||void 0===o||!o.symbol)throw new i.q(c.c2.INVALID_PARAMS,"Unable to get contract address and token symbol");const f=(await this.getEvmState(t)).networkKey;if(!f)throw new i.q(c.c2.INTERNAL_ERROR,"The network on dApp is not supported in wallet. Please manually add the network to wallet");const m="erc20"===h?r.yH.ERC20:r.yH.ERC721,y={slug:"",type:m,name:(null==p||null===(u=p.options)||void 0===u?void 0:u.symbol)||"",contractAddress:p.options.address,symbol:(null==p||null===(l=p.options)||void 0===l?void 0:l.symbol)||"",decimals:(null==p||null===(d=p.options)||void 0===d?void 0:d.decimals)||0,originChain:f,contractError:!1,validated:!1};return this.#t.validateCustomAsset({type:m,contractAddress:p.options.address,originChain:f}).then((e=>{e.contractError?y.contractError=!0:(y.slug=null==e?void 0:e.existedSlug,y.name=e.name||y.name,y.symbol=e.symbol,y.decimals=e.decimals)})).catch((()=>{y.contractError=!0})).finally((()=>{y.validated=!0,this.#t.requestService.updateConfirmation(e,"addTokenRequest",y)})),await this.#t.addTokenConfirm(e,t,y)}async addEvmChain(e,t,{params:n}){const a=n;if(a&&a.length>0){const{blockExplorerUrls:n,chainId:r,chainName:s,nativeCurrency:{decimals:o,symbol:u},rpcUrls:l}=a[0];if(r){const a=parseInt(r,16),[d,p]=this.#t.findNetworkKeyByChainId(a);if(d&&p&&null!=p&&p.evmInfo)return await this.switchEvmChain(e,t,{method:"wallet_switchEthereumChain",params:[{chainId:r}]});if(l&&s){const r=l.filter((e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}));if(!r.length)throw new i.q(c.c2.INTERNAL_ERROR,"Currently support WSS provider for Substrate networks and HTTP provider for EVM network");const d=r[0],p={existentialDeposit:"0",genesisHash:"",success:!0,addressPrefix:"",evmChainId:a,decimals:o,symbol:u,paraId:null,name:s},h=(0,m.sK)(0),y={mode:"insert",chainSpec:{evmChainId:p.evmChainId,decimals:p.decimals,existentialDeposit:p.existentialDeposit,genesisHash:p.genesisHash,paraId:p.paraId,addressPrefix:p.addressPrefix?parseInt(p.addressPrefix):0},chainEditInfo:{blockExplorer:null==n?void 0:n[0],slug:"",currentProvider:h,providers:{[h]:d},symbol:p.symbol,chainType:"EVM",name:p.name},unconfirmed:!0};return this.#t.validateCustomChain(d).then((e=>{e.success?(y.chainSpec={evmChainId:e.evmChainId,decimals:e.decimals,existentialDeposit:e.existentialDeposit,genesisHash:e.genesisHash,paraId:e.paraId,addressPrefix:e.addressPrefix?parseInt(e.addressPrefix):0},y.chainEditInfo.symbol=e.symbol,y.chainEditInfo.name=e.name):y.providerError=e.error})).catch((()=>{y.providerError=f.Y.NONE})).finally((()=>{y.unconfirmed=!1,this.#t.requestService.updateConfirmation(e,"addNetworkRequest",y)})),await this.#t.addNetworkConfirm(e,t,y)}throw new i.q(c.c2.INVALID_PARAMS,"Invalid provider")}}return null}async getEvmCurrentChainId(e){return(await this.getEvmState(e)).chainId||"0x0"}async evmSubscribeEvents(e,t,n){const a=(0,o.Ky)(t,n);let r=!1;const s=(e,t)=>{a({type:e,payload:t})};let u=await this.getEvmCurrentAccount(e);const l=async()=>{const t=await this.getEvmCurrentAccount(e);JSON.stringify(u)!==JSON.stringify(t)&&(s("accountsChanged",t),u=t)},p=this.#t.keyringService.context.observable.currentAccount.subscribe((()=>{l().catch(console.error)}));let h=(await this.getEvmState(e)).chainId;const f=async()=>{const{chainId:t}=await this.getEvmState(e);t!==h&&(s("chainChanged",t),h=t);const n=await this.getEvmCurrentAccount(e);JSON.stringify(u)!==JSON.stringify(n)&&(s("accountsChanged",n),u=n)},m=this.#t.subscribeEvmChainChange().subscribe((e=>{f().catch(console.error)})),y=setInterval((()=>{this.getEvmState(e).then((e=>{var t;null===(t=e.web3)||void 0===t||t.eth.net.isListening().then((t=>{t&&!r?s("connect",{chainId:e.chainId}):!t&&r&&s("disconnect",new i.q(c.c2.CHAIN_DISCONNECTED)),r=t})).catch(console.error)})).catch(console.error)}),d.rm),g=await this.getEvmProvider(e),b={data:({method:e,params:t})=>{s("message",{type:e,data:t})},error:e=>{s("error",e)}};return Object.entries(b).forEach((([e,t])=>{(null==g?void 0:g.on)&&(null==g||g.on(e,t))})),this.evmEventEmitterMap[e]||(this.evmEventEmitterMap[e]={}),this.evmEventEmitterMap[e][t]=s,this.createUnsubscriptionHandle(t,(()=>{this.evmEventEmitterMap[e][t]&&delete this.evmEventEmitterMap[e][t],Object.entries(b).forEach((([e,t])=>{(null==g?void 0:g.removeListener)&&(null==g||g.removeListener(e,t))})),p.unsubscribe(),m.unsubscribe(),clearInterval(y)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(t)})),!0}checkAndHandleProviderStatus(e){if((!e||null==e||!e.connected)&&null!=e&&e.supportsSubscriptions())throw Object.values(this.evmEventEmitterMap).forEach((e=>{Object.values(e).forEach((e=>{e("disconnect",new i.q(c.c2.CHAIN_DISCONNECTED))}))})),new i.q(c.c2.CHAIN_DISCONNECTED)}async getEvmProvider(e){var t;const n=await this.getEvmState(e);let a=null===(t=n.web3)||void 0===t?void 0:t.currentProvider;var r;return a||(await this.getEvmCurrentChainId(e),a=null===(r=n.web3)||void 0===r?void 0:r.currentProvider),a}async performWeb3Method(e,t,{method:n,params:a},r){const i=await this.getEvmProvider(t);return this.checkAndHandleProviderStatus(i),new Promise(((t,s)=>{null==i||i.send({jsonrpc:"2.0",method:n,params:a,id:e},((e,n)=>{let a=(null==n?void 0:n.error)||e;if(a){let e=a.message.toLowerCase();(e.includes("method not found")||e.includes("not supported")||e.includes("is not available"))&&(e="This method is not supported by SubWallet. Try again or contact support at agent@subwallet.app"),e.includes("network is disconnected")&&(e="Re-enable the network or change RPC on the extension and try again"),a={...a,message:e},s(a)}else{const e=null==n?void 0:n.result;r&&r(e),t(e)}}))}))}async canUseAccount(e,t){return!!(await this.getEvmCurrentAccount(t)).find((t=>t.toLowerCase()===e.toLowerCase()))}async evmSign(e,t,{method:n,params:a}){const r=await this.#t.evmSign(e,t,n,a);if(r)return r;throw new i.q(c.c2.INVALID_PARAMS,"Failed to sign message")}async evmSendTransaction(e,t,{params:n}){const a=n[0],r=await this.#t.evmSendTransaction(e,t,a);if(!r)throw new i.q(c.c2.USER_REJECTED_REQUEST);return r}async handleEvmRequest(e,t,n){const{method:a}=n;try{switch(a){case"eth_chainId":return await this.getEvmCurrentChainId(t);case"net_version":return parseInt(await this.getEvmCurrentChainId(t),16);case"eth_accounts":return await this.getEvmCurrentAccount(t);case"eth_sendTransaction":return await this.evmSendTransaction(e,t,n);case"eth_sign":case"personal_sign":case"eth_signTypedData":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":return await this.evmSign(e,t,n);case"wallet_requestPermissions":return await this.authorizeV2(t,{origin:"",accountAuthTypes:["evm"],reConfirm:!0}),await this.getEvmPermission(t,e);case"wallet_getPermissions":return await this.getEvmPermission(t,e);case"wallet_revokePermissions":return await this.revokePermissions(t,e,n);case"wallet_addEthereumChain":return await this.addEvmChain(e,t,n);case"wallet_switchEthereumChain":return await this.switchEvmChain(e,t,n);case"wallet_watchAsset":return await this.addEvmToken(e,t,n);default:return this.performWeb3Method(e,t,n)}}catch(e){throw e.code?e:(console.error(e),new i.q(c.c2.INTERNAL_ERROR,null==e?void 0:e.toString()))}}async handleEvmSend(e,t,n,a){var r;const i=(0,o.Ky)(e,n),s=null===(r=(await this.getEvmState(t)).web3)||void 0===r?void 0:r.currentProvider;return this.checkAndHandleProviderStatus(s),s.send(a,((t,n)=>{i({error:t,result:n}),this.cancelSubscription(e)})),n.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),!0}isEvmPublicRequest(e,t){return"evm(request)"===e&&["eth_chainId","net_version","wallet_requestPermissions","wallet_getPermissions"].includes(null==t?void 0:t.method)||"evm(events.subscribe)"===e}async addPspToken(e,t,{genesisHash:n,tokenInfo:a}){const s=a.type;if("psp22"!==s&&"psp34"!==s)throw new i.q(c.c2.INVALID_PARAMS,"Assets type {{tokenType}} is not supported".replace("{{tokenType}}",s));if(!a.address||!a.symbol)throw new i.q(c.c2.INVALID_PARAMS,"Unable to get contract address and token symbol");const[o]=this.#t.findNetworkKeyByGenesisHash(n);if(!o)throw new i.q(c.c2.INTERNAL_ERROR,"The network on dApp is not supported in wallet. Please manually add the network to wallet");if(!this.#t.getChainStateByKey(o).active){await this.#t.enableChain(o,!1);const e=this.#t.getSubstrateApi(o);await e.isReady}const u="psp22"===s?r.yH.PSP22:r.yH.PSP34,l={slug:"",type:u,name:a.symbol||"",contractAddress:a.address,symbol:a.symbol||"",decimals:a.decimals||0,originChain:o,contractError:!1,validated:!1};return this.#t.validateCustomAsset({type:u,contractAddress:a.address,originChain:o}).then((e=>{e.contractError?l.contractError=!0:(l.slug=null==e?void 0:e.existedSlug,l.name=e.name||l.name,l.symbol=e.symbol,l.decimals=e.decimals)})).catch((()=>{l.contractError=!0})).finally((()=>{l.validated=!0,this.#t.requestService.updateConfirmation(e,"addTokenRequest",l)})),await this.#t.addTokenConfirm(e,t,l)}async handle(e,t,n,a,r){if("pub(phishing.redirectIfDenied)"===t)return this.redirectIfPhishing(a);if("pub(ping)"===t)return Promise.resolve(!0);switch(await Promise.all([this.#t.eventService.waitAccountReady,this.#t.eventService.waitChainReady]),["pub(authorize.tabV2)","pub(accounts.subscribeV2)"].includes(t)||this.isEvmPublicRequest(t,n)||await this.#t.ensureUrlAuthorizedV2(a).catch((e=>{throw t.startsWith("evm")?new i.q(c.c2.INTERNAL_ERROR,e.message):e})),t){case"pub(bytes.sign)":return this.bytesSign(a,n);case"pub(extrinsic.sign)":return this.extrinsicSign(a,n);case"pub(metadata.list)":return this.metadataList(a);case"pub(metadata.provide)":return this.metadataProvide(a,n);case"pub(rpc.listProviders)":return this.rpcListProviders();case"pub(rpc.send)":return this.rpcSend(n,r);case"pub(rpc.startProvider)":return this.rpcStartProvider(n,r);case"pub(rpc.subscribe)":return this.rpcSubscribe(n,e,r);case"pub(rpc.subscribeConnected)":return this.rpcSubscribeConnected(n,e,r);case"pub(rpc.unsubscribe)":return this.rpcUnsubscribe(n,r);case"pub(token.add)":return this.addPspToken(e,a,n);case"pub(authorize.tabV2)":return this.authorizeV2(a,n);case"pub(accounts.listV2)":return this.accountsListV2(a,n);case"pub(accounts.subscribeV2)":return this.accountsSubstrateSubscribeV2(a,n,e,r);case"pub(accounts.unsubscribe)":return this.accountsUnsubscribe(a,n);case"evm(events.subscribe)":return await this.evmSubscribeEvents(a,e,r);case"evm(request)":return await this.handleEvmRequest(e,a,n);case"evm(provider.send)":return await this.handleEvmSend(e,a,r,n);default:throw new Error(`Unable to handle message of type ${t}`)}}}a()}catch(O){a(O)}}))},79782:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{V:()=>d});var r=n(1555),i=n(63983),s=n(33138),o=n(38563),c=n(48912),u=n(60184),l=e([o,i,c,s]);[o,i,c,s]=l.then?(await l)():l;class d{get state(){return this._state||(this._state=new o.A),this._state}get extensionHandler(){return this._extensionHandler||(this._extensionHandler=new i.A(this.state)),this._extensionHandler}get tabHandler(){return this._tabsHandler||(this._tabsHandler=new c.A(this.state)),this._tabsHandler}get mobileHandler(){return this._mobileHandler||(this._mobileHandler=new s.Ay(this.state)),this._mobileHandler}handle({id:e,message:t,request:n},a){const i=a.name===r.zf,s=a.name===r.Gg,o=a.sender,c=s?"extension":(null==o?void 0:o.url)||(null==o?void 0:o.tab)&&(null==o?void 0:o.tab.url)||"",l=`${c}: ${e}: ${t}`;(i?this.mobileHandler.handle(e,t,n,a):s?this.extensionHandler.handle(e,t,n,a):this.tabHandler.handle(e,t,n,c,a)).then((t=>{(0,u.vA)(a,"Port has been disconnected"),a.postMessage({id:e,response:t,sender:"BACKGROUND"})})).catch((t=>{console.error(t),console.log(`[err] ${l}:: ${t.message}`),a&&a.postMessage({error:t.message,errorCode:t.code,errorData:t.data,id:e,sender:"BACKGROUND"})}))}static get instance(){return d._instance||(d._instance=new d),d._instance}}a()}catch(e){a(e)}}))},67921:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{P:()=>d});var r=n(17807),i=n(24313),s=n(89854),o=n(19203),c=n(87574),u=e([i,r,o]);[i,r,o]=u.then?(await u)():u;const l=new i.f;class d{subscriptionMap={crowdloan:void 0,balance:void 0,yieldPoolStats:void 0,yieldPosition:void 0};constructor(e,t){this.dbService=t,this.state=e,this.logger=(0,c.v)("Subscription")}getSubscriptionMap(){return this.subscriptionMap}getSubscription(e){return this.subscriptionMap[e]}updateSubscription(e,t){const n=this.subscriptionMap[e];n&&n(),t&&(this.subscriptionMap[e]=t)}stopAllSubscription(){this.subscriptionMap.balance&&(this.subscriptionMap.balance(),delete this.subscriptionMap.balance),this.subscriptionMap.crowdloan&&(this.subscriptionMap.crowdloan(),delete this.subscriptionMap.crowdloan)}async start(){var e;await Promise.all([this.state.eventService.waitCryptoReady,this.state.eventService.waitKeyringReady,this.state.eventService.waitAssetReady]);const t=null===(e=this.state.keyringService.context.currentAccount)||void 0===e?void 0:e.proxyId;t&&this.subscribeCrowdloans(t,this.state.getSubstrateApiMap()),this.eventHandler=(e,t)=>{var n;const a=this.state.getServiceInfo();if(!t.some((e=>s.q.includes(e))))return;const r=null===(n=a.currentAccountInfo)||void 0===n?void 0:n.proxyId;r&&this.subscribeCrowdloans(r,a.chainApiMap.substrate)},this.state.eventService.onLazy(this.eventHandler.bind(this))}async stop(){return this.eventHandler&&(this.state.eventService.offLazy(this.eventHandler),this.eventHandler=void 0),this.stopAllSubscription(),Promise.resolve()}subscribeCrowdloans(e,t,n){const a=this.state.keyringService.context.getDecodedAddresses(e);a.length&&this.state.resetCrowdloanMap(e).then((()=>{this.updateSubscription("crowdloan",this.initCrowdloanSubscription(a,t,n))})).catch(console.error)}initCrowdloanSubscription(e,t,n){const a=(0,r.Y)(e,t,((e,t)=>{this.state.setCrowdloanItem(e,t)}));if(!n)return()=>{a.then((e=>null==e?void 0:e())).catch(this.logger.warn)};a.then((e=>null==e?void 0:e())).catch(this.logger.warn)}subscribeNft(e,t,n,a,r){const i=this.state.keyringService.context.getDecodedAddresses(e);i.length&&this.initNftSubscription(i,t,n,a,r)}initNftSubscription(e,t,n,a,r){l.setChainInfoMap(r),l.setDotSamaApiMap(t),l.setWeb3ApiMap(n),l.setAddresses(e),l.handleNfts(a,((...e)=>this.state.updateNftData(...e)),((...e)=>this.state.setNftCollection(...e))).catch(this.logger.log)}async reloadCrowdloan(){var e;const t=null===(e=this.state.keyringService.context.currentAccount)||void 0===e?void 0:e.proxyId;this.subscribeCrowdloans(t,this.state.getSubstrateApiMap()),await(0,o.j4)(1800)}}a()}catch(e){a(e)}}))},86511:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{l:()=>l});var r=n(31355),i=n(56564),s=n(21778),o=n(25923),c=n(38546),u=e([s,r]);[s,r]=u.then?(await u)():u;class l{constructor(e,t={}){this.state=e,this._map=t,this._mapSubject=new o.t(t)}get map(){return this._mapSubject.getValue()}get mapSubject(){return this._mapSubject}setData(e){this._map=e,this.triggerChange()}setAddressData(e,t){this._map[e]=t,this.triggerChange()}triggerChange(e){e&&this.computeBalance(e),this._mapSubject.next(this._map)}updateBalanceItem(e,t=!1){const{address:n,tokenSlug:a}=e;this._map[n]||(this._map[n]={}),this._map[n][a]=e,t&&this.triggerChange()}updateBalanceItems(e,t){e.forEach((e=>{this.updateBalanceItem(e)})),this.triggerChange(t)}removeBalanceItemByFilter(e){Object.keys(this._map).forEach((t=>{Object.keys(this._map[t]).forEach((n=>{e(this._map[t][n])&&delete this._map[t][n]}))})),this.triggerChange()}computeBalance(e){const t=(0,s.pb)(e),n={},a=this.state.keyringService.context.accounts,o=Object.values(a).filter((e=>e.accountType===i.s.UNIFIED)).reduce(((e,t)=>(e[t.id]=t.accounts.map((e=>e.address)),e)),{}),u=Object.entries(o).reduce(((n,[a,r])=>{if(t||a===e)for(const e of r)n[e]=a;return n}),{}),l=Object.keys(o);Object.keys(this._map).filter((e=>!(0,s.pb)(e)&&!l.includes(e))).forEach((e=>{const a=t=>{const a=n[t]||{};Object.keys(this._map[e]).forEach((t=>{a[t]||(a[t]=[]),a[t].push(this._map[e][t])})),n[t]=a},i=u[e];t&&a(r.GQ),i&&a(i)})),Object.entries(n).forEach((([e,t])=>{const n={};Object.entries(t).forEach((([t,a])=>{n[t]=(0,c.o)(a,e,t)})),this._map[e]=n}))}removeBalanceItems(e,t){e&&t?e.forEach((e=>{t.forEach((t=>{this._map[e]&&this._map[e][t]&&delete this._map[e][t]}))})):e&&!t?e.forEach((e=>{this._map[e]&&delete this._map[e]})):!e&&t?Object.keys(this._map).forEach((e=>{t.forEach((t=>{this._map[e][t]&&delete this._map[e][t]}))})):this._map={},this.triggerChange()}}a()}catch(e){a(e)}}))},38546:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var a=n(11266),r=n(96483);const i=(e,t,n)=>{const i=e.map((e=>e.state));return{address:t,tokenSlug:n,free:r.A.sum.apply(null,e.map((e=>e.free))).toFixed(),locked:r.A.sum.apply(null,e.map((e=>e.locked))).toFixed(),state:i.every((e=>e===a.Xf.NOT_SUPPORT))?a.Xf.NOT_SUPPORT:i.some((e=>e===a.Xf.READY))?a.Xf.READY:a.Xf.PENDING}}},83340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,q:()=>i});var a=n(45654),r=n(71672);function i(){return{totalFee:[r.bR,r.bR],steps:[r.q9,{id:1,type:r.o2.TRANSFER,name:"Transfer"}]}}async function s(e,t,n,i){if(![a.zF.ETHEREUM,a.zF.ETHEREUM_SEPOLIA].includes(n.originChain))throw new Error("Snowbridge only has support for Ethereum");const s={totalFee:[r.bR],steps:[r.q9]};return s.steps.push({id:s.steps.length,type:r.o2.TOKEN_APPROVAL,name:"Approve spending"}),s.totalFee.push(r.bR),s.steps.push({id:s.steps.length,type:r.o2.TRANSFER,name:"Transfer"}),s.totalFee.push(r.bR),Promise.resolve(s)}},17900:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{B:()=>m,Y:()=>h});var r=n(38397),i=n(11266),s=n(31355),o=n(12598),c=n(91600),u=n(63163),l=n(82823),d=n.n(l),p=e([o,c,s]);function h({addresses:e,assetMap:t,callback:n,chainInfo:a,evmApi:l}){const p=a.slug,h=(0,u.$)(t,p,[r.yH.ERC20]),f={};Object.entries(h).forEach((([e,t])=>{f[e]=(0,o.Ji)((0,c._b)(t),l)}));const m=()=>{Object.values(h).map((async t=>{try{const a=f[t.slug],r=(await Promise.all(e.map((async e=>{try{return await a.methods.balanceOf(e).call()}catch(n){return console.error(`Error on get balance of account ${e} for token ${t.slug}`,n),"0"}})))).map(((n,a)=>({address:e[a],tokenSlug:t.slug,free:new(d())(n||0).toString(),locked:"0",state:i.Xf.READY})));n(r)}catch(e){console.log(t.slug,e)}}))};m();const y=setInterval(m,s.eC);return()=>{clearInterval(y)}}async function f(e,t){return await Promise.all(e.map((async e=>{try{return await t.api.eth.getBalance(e)}catch(e){return"0"}})))}function m(e){var t;const{addresses:n,assetMap:a,callback:o,chainInfo:c,evmApi:l}=e,p=c.slug,m=(0,u.$)(a,p,[r.yH.NATIVE]),y=(null===(t=Object.values(m)[0])||void 0===t?void 0:t.slug)||"";function g(){f(n,l).then((e=>e.map(((e,t)=>({address:n[t],tokenSlug:y,state:i.Xf.READY,free:new(d())(e||"0").toString(),locked:"0"}))))).catch((e=>(console.error(`Error on get native balance with token ${y}`,e),n.map((e=>({address:e,tokenSlug:y,state:i.Xf.READY,free:"0",locked:"0"})))))).then((e=>{o(e)})).catch(console.error)}g();const b=setInterval(g,s.H9),v=h(e);return()=>{clearInterval(b),v&&v()}}[o,c,s]=p.then?(await p)():p,a()}catch(y){a(y)}}))},89258:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{P:()=>b});var r=n(38397),i=n(11266),s=n(91600),o=n(80995),c=n(21778),u=n(63163),l=n(278),d=n(24265),p=n(17900),h=n(8898),f=e([l,o,c,s,p,d,h]);[l,o,c,s,p,d,h]=f.then?(await f)():f;const m=e=>{try{const t=l.Ay.getPair(e);return t?(0,o.nW)(t):null}catch(e){return console.warn(e),null}},y=(e,t)=>{const{bitcoin:n,evm:a,substrate:r,ton:i}=(0,c.ND)(e);if((0,s.d)(t))return[a,[...n,...r,...i]];if((0,s.fB)(t))return[n,[...a,...r,...i]];if((0,s.sM)(t))return[i,[...n,...a,...r]];{const e=[],o=[];return r.forEach((n=>{const a=m(n);if(a)if(a.isHardware)if(a.isGeneric)e.push(n);else{const r=a.availableGenesisHashes||[],i=(0,s.DZ)(t);r.includes(i)?e.push(n):o.push(n)}else e.push(n);else e.push(n)})),[e,[...o,...n,...a,...i]]}},g=(e,t,n,a,i)=>{const s=(0,u.$)(n,t,[r.yH.NATIVE,r.yH.ERC20,r.yH.PSP22,r.yH.LOCAL,r.yH.GRC20,r.yH.VFT]),o=(new Date).getTime();Object.values(s).forEach((t=>{const n=e.map((e=>({address:e,tokenSlug:t.slug,free:"0",locked:"0",state:a,timestamp:o})));i(n)}))};function b(e,t,n,a,r,o,c,u,l,f){const m=Object.fromEntries(Object.entries(a).filter((([e])=>n.includes(e)))),b=Object.fromEntries(Object.entries(r).filter((([e])=>t.includes(e)))),v=Object.values(b).map((async t=>{const n=t.slug,[a,r]=y(e,t);r.length&&g(r,n,m,i.Xf.NOT_SUPPORT,l);const b=c[n];if((0,s.Rz)(t))return(0,p.B)({addresses:a,assetMap:m,callback:l,chainInfo:t,evmApi:b});const v=u[n];if((0,s.g)(t))return(0,d.U)({addresses:a,assetMap:m,callback:l,chainInfo:t,tonApi:v});const _=await o[n].isReady;return(0,h.u)(a,t,m,_,b,l,f)}));return()=>{v.forEach((e=>{e.then((e=>{e&&e()})).catch(console.error)}))}}a()}catch(v){a(v)}}))},53966:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{W:()=>h});var r=n(38397),i=n(11266),s=n(91600),o=n(63163),c=n(96483),u=n(82823),l=n.n(u),d=n(74873),p=e([s]);s=(p.then?(await p)():p)[0];const h=async({addresses:e,assetMap:t,callback:n,chainInfo:a,includeNativeToken:u,substrateApi:p})=>{const h=a.slug,f=u?[r.yH.NATIVE,r.yH.LOCAL]:[r.yH.LOCAL],m=(0,o.$)(t,h,f);try{const t=await p.api.query.system.account.multi(e,(t=>{Object.values(m).forEach((a=>{const r=(0,s.AZ)(a),o=t.map(((t,n)=>{const s=JSON.parse(t.data.toString()).v0.balance.find((e=>e[0]===parseInt(r))),o=s?new(l())(new c.A(s[1].positive).toString()):d.Yz;return{address:e[n],free:o.toString(),locked:"0",state:i.Xf.READY,tokenSlug:a.slug}}));n(o)}))}));return()=>{t()}}catch(t){return Object.values(m).forEach((t=>{const a=e.map((e=>({address:e,free:"0",locked:"0",state:i.Xf.READY,tokenSlug:t.slug})));n(a)})),()=>{}}};a()}catch(e){a(e)}}))},62327:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{R:()=>m,X:()=>y});var r=n(9231),i=n(38397),s=n(11266),o=n(31355),c=n(91600),u=n(63163),l=n(37475),d=n(24318),p=n(44869),h=n(76515),f=e([c,o]);[c,o]=f.then?(await f)():f;const m=({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:f})=>{const m=f.api;if(!(m instanceof r._p))return console.warn("Cannot subscribe GRC20 balance without GearApi instance"),d.l;const y=a.slug,g={},b=(0,u.$)(t,y,[i.yH.GRC20]);Object.entries(b).forEach((([e,t])=>{g[e]=(0,l.ol)(m,(0,c._b)(t))}));const v=()=>{Object.values(b).map((async t=>{try{const a=g[t.slug],r=await Promise.all(e.map((async e=>{try{const n=(0,p.X)((0,h.F)(e)),r=await a.service.balanceOf(n,e);return{address:e,tokenSlug:t.slug,free:r.toString(10),locked:"0",state:s.Xf.READY}}catch(n){return console.error(`Error on get balance of account ${e} for token ${t.slug}`,n),{address:e,tokenSlug:t.slug,free:"0",locked:"0",state:s.Xf.READY}}})));n(r)}catch(e){console.warn(t.slug,e)}}))};v();const _=setInterval(v,o.eC);return()=>{clearInterval(_)}},y=({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:f})=>{const m=f.api;if(!(m instanceof r._p))return console.warn("Cannot subscribe VFT balance without GearApi instance"),d.l;const y=a.slug,g={},b=(0,u.$)(t,y,[i.yH.VFT]);Object.entries(b).forEach((([e,t])=>{g[e]=(0,l.QN)(m,(0,c._b)(t))}));const v=()=>{Object.values(b).map((async t=>{try{const a=g[t.slug],r=await Promise.all(e.map((async e=>{try{const n=(0,p.X)((0,h.F)(e)),r=await a.service.balanceOf(n,e);return{address:e,tokenSlug:t.slug,free:r.toString(10),locked:"0",state:s.Xf.READY}}catch(n){return console.error(`Error on get balance of account ${e} for token ${t.slug}`,n),{address:e,tokenSlug:t.slug,free:"0",locked:"0",state:s.Xf.READY}}})));n(r)}catch(e){console.warn(t.slug,e)}}))};v();const _=setInterval(v,o.eC);return()=>{clearInterval(_)}};a()}catch(e){a(e)}}))},8898:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{u:()=>S});var r=n(38397),i=n(11266),s=n(31355),o=n(78399),c=n(26159),u=n(42111),l=n(18710),d=n(13687),p=n(6082),h=n(97245),f=n(95821),m=n(17540),y=n(45723),g=n(91600),b=n(63163),v=n(96483),_=n(17900),A=n(53966),w=n(62327),I=e([A,g,_,w,d,h,c,s,p,o,l]);[A,g,_,w,d,h,c,s,p,o,l]=I.then?(await I)():I;const S=async(e,t,n,a,i,s,o)=>{let c,u,l,d,p,h,f;const m=t.slug,b={addresses:e,chainInfo:t,assetMap:n,callback:s,extrinsicType:o},v={...b,substrateApi:a};y.Wy.kintsugi.includes(m)||y.Wy.genshiro.includes(m)||y.Wy.equilibrium_parachain.includes(m)||(c=await x(v));try{y.Wy.bifrost.includes(m)?u=await E(v):y.Wy.kintsugi.includes(m)?u=await E({...v,includeNativeToken:!0}):y.Wy.statemine.includes(m)?u=await P(v):y.Wy.genshiro.includes(m)||y.Wy.equilibrium_parachain.includes(m)?u=await(0,A.W)({...v,includeNativeToken:!0}):y.Wy.centrifuge.includes(m)&&(u=await O(v)),y.Wy.supportBridged.includes(m)&&(p=await k(v)),(0,g.d)(t)&&(0,g.Ji)(t).includes(r.yH.ERC20)&&(l=(0,_.Y)({...b,evmApi:i})),(0,g.gk)(t,r.yH.PSP22)&&(d=T(v)),(0,g.gk)(t,r.yH.GRC20)&&(h=(0,w.R)(v)),(0,g.gk)(t,r.yH.VFT)&&(f=(0,w.X)(v))}catch(e){console.warn(e)}return()=>{var e,t;c&&c(),u&&u(),l&&l(),d&&d(),p&&p(),null===(e=h)||void 0===e||e(),null===(t=f)||void 0===t||t()}},x=async({addresses:e,callback:t,chainInfo:n,extrinsicType:a,substrateApi:r})=>{const s="query_system_account",o="query_nominationPools_poolMembers",c=await C(r),l=[{section:"query",module:s.split("_")[1],method:s.split("_")[2],args:e}];c||l.push({section:"query",module:o.split("_")[1],method:o.split("_")[2],args:e});let p=new Array(e.length).fill(new v.A(0));["bittensor"].includes(n.slug)&&(p=await Promise.all(e.map((async e=>{const t=await r.api.query.subtensorModule.totalColdkeyStake(e);return new v.A(t.toString())}))));const h=r.subscribeDataWithMulti(l,(r=>{const l=r[s],h=r[o],f=l.map(((t,r)=>{const s=t,o=(0,d.cW)(s,(0,g.fK)(n),a);let l=(0,d.zA)(s)-o;if(!c){const e=h[r];l+=e?(0,u.ho)(e):BigInt(0)}return l+=BigInt(p[r].toString()),{address:e[r],tokenSlug:(0,g.iD)(n),free:o.toString(),locked:l.toString(),state:i.Xf.READY,metadata:s}}));t(f)}));return()=>{h.unsubscribe()}},C=async e=>{if(!e.api.tx.nominationPools||!e.api.query.staking)return!1;if(!(e.api.tx.nominationPools.migrateDelegation&&e.api.query.staking.counterForVirtualStakers&&e.api.query.staking.virtualStakers))return!1;const[t,n]=await Promise.all([e.api.query.staking.counterForVirtualStakers(),e.api.query.staking.virtualStakers.entries()]),a=t.toPrimitive(),r=n.length;return 0!==a&&0!==r},k=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:s,substrateApi:o})=>{const u="query_foreignAssets_account",l=(0,b.$)(t,a.slug,[r.yH.LOCAL]),d=await Promise.all(Object.values(l).map((t=>{try{if((0,g.wq)(t)){const r=["statemint","statemine"].includes(a.slug)?4:3,l=[{section:"query",module:u.split("_")[1],method:u.split("_")[2],args:e.map((e=>[(0,g.px)(t)||(0,h.Zw)((0,g.q6)(t),r),e]))}];return o.subscribeDataWithMulti(l,(a=>{const r=a[u].map(((n,a)=>{const r=n;if(!r)return{address:e[a],tokenSlug:t.slug,free:"0",locked:"0",state:i.Xf.READY};const o=(0,c.t)(r,(0,g.g_)(t),s),u=(0,c.a)(r);return{address:e[a],tokenSlug:t.slug,free:o.toString(),locked:u.toString(),state:i.Xf.READY}}));n(r)}))}}catch(e){console.warn(e)}})));return()=>{d.forEach((e=>{e&&e.unsubscribe()}))}},T=({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:o})=>{const c=a.slug,u={},l=(0,b.$)(t,c,[r.yH.PSP22]);Object.entries(l).forEach((([e,t])=>{u[e]=(0,f.d4)(o.api,(0,g._b)(t))}));const d=()=>{Object.values(l).map((async t=>{try{const a=u[t.slug],r=await Promise.all(e.map((async e=>{try{var n;const s=await a.query["psp22::balanceOf"](e,{gasLimit:(0,m.a)(o.api)},e),c="ok"in(r=null==s||null===(n=s.output)||void 0===n?void 0:n.toPrimitive())?r.ok:"Ok"in r?r.Ok:void 0,u=c?new v.A(c).toString():"0";return{address:e,tokenSlug:t.slug,free:u,locked:"0",state:i.Xf.READY}}catch(n){return console.error(`Error on get balance of account ${e} for token ${t.slug}`,n),{address:e,tokenSlug:t.slug,free:"0",locked:"0",state:i.Xf.READY}}var r})));n(r)}catch(e){console.warn(t.slug,e)}}))};d();const p=setInterval(d,s.eC);return()=>{clearInterval(p)}},E=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:s,includeNativeToken:o,substrateApi:c})=>{const u="query_tokens_accounts",l=o?[r.yH.NATIVE,r.yH.LOCAL]:[r.yH.LOCAL],d=(0,b.$)(t,a.slug,l),h=await Promise.all(Object.values(d).map((t=>{try{const a=[{section:"query",module:u.split("_")[1],method:u.split("_")[2],args:e.map((e=>[e,(0,g.px)(t)||(0,g.AZ)(t)]))}];return c.subscribeDataWithMulti(a,(a=>{const r=a[u].map(((n,a)=>{const r=n,o=(0,p.ZE)(r,(0,g.g_)(t),s),c=(0,p.Ep)(r);return{address:e[a],tokenSlug:t.slug,state:i.Xf.READY,free:o.toString(),locked:c.toString()}}));n(r)}))}catch(e){console.warn(e)}})));return()=>{h.forEach((e=>{e&&e.unsubscribe()}))}},P=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:s,substrateApi:c})=>{const u="query_assets_account",l=(0,b.$)(t,a.slug,[r.yH.LOCAL]);Object.values(l).forEach((e=>{y.nY.includes(e.originChain)&&e.symbol.startsWith(y.NB)&&delete l[e.slug]}));const d=await Promise.all(Object.values(l).map((t=>{try{const a=(0,g.AZ)(t);if("-1"===a)return;const r=[{section:"query",module:u.split("_")[1],method:u.split("_")[2],args:e.map((e=>[a,e]))}];return c.subscribeDataWithMulti(r,(a=>{const r=a[u].map(((n,a)=>{const r=n;if(!r)return{address:e[a],tokenSlug:t.slug,free:"0",locked:"0",state:i.Xf.READY};const c=(0,o.Ys)(r,(0,g.g_)(t),s),u=(0,o.DY)(r);return{address:e[a],tokenSlug:t.slug,free:c.toString(),locked:u.toString(),state:i.Xf.READY}}));n(r)}))}catch(e){console.warn(e)}})));return()=>{d.forEach((e=>{e&&e.unsubscribe()}))}},O=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:s,substrateApi:o})=>{const c="query_ormlTokens_accounts",u=(0,b.$)(t,a.slug,[r.yH.LOCAL]),d=Object.values(u).map((t=>{try{const a=[{section:"query",module:c.split("_")[1],method:c.split("_")[2],args:e.map((e=>[e,(0,g.px)(t)]))}];return o.subscribeDataWithMulti(a,(a=>{const r=a[c].map(((n,a)=>{const r=n,o=(0,l.v)(r,(0,g.g_)(t),s),c=(0,l.c)(r);return{address:e[a],tokenSlug:t.slug,state:i.Xf.READY,free:o.toString(),locked:c.toString()}}));n(r)}))}catch(e){return void console.warn(e)}}));return()=>{d.forEach((e=>{e&&e.unsubscribe()}))}};a()}catch(e){a(e)}}))},72022:(e,t,n)=>{"use strict";n.d(t,{Ij:()=>c,Jw:()=>s,_P:()=>r,rO:()=>i,rX:()=>a,zl:()=>o});const a="0.1";let r;!function(e){e[e.JETTON_TRANSFER=260734629]="JETTON_TRANSFER",e[e.NFT_TRANSFER=1607220500]="NFT_TRANSFER",e[e.STONFI_SWAP=630424929]="STONFI_SWAP"}(r||(r={}));const i=536937731,s=BigInt(500),o="078f715c911784eb4c8d2d545da3ce5db5d07996452bb2246e0a0071c66b87e9";let c;!function(e){e[e.CARRY_ALL_REMAINING_BALANCE=128]="CARRY_ALL_REMAINING_BALANCE",e[e.CARRY_ALL_REMAINING_INCOMING_VALUE=64]="CARRY_ALL_REMAINING_INCOMING_VALUE",e[e.DESTROY_ACCOUNT_IF_ZERO=32]="DESTROY_ACCOUNT_IF_ZERO",e[e.PAY_GAS_SEPARATELY=1]="PAY_GAS_SEPARATELY",e[e.IGNORE_ERRORS=2]="IGNORE_ERRORS",e[e.NONE=0]="NONE"}(c||(c={}))},24265:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{U:()=>f});var r=n(38397),i=n(11266),s=n(31355),o=n(75989),c=n(91600),u=n(63163),l=n(6900),d=e([c,s]);function p({addresses:e,assetMap:t,callback:n,chainInfo:a,tonApi:l}){const d=a.slug,p=(0,u.$)(t,d,[r.yH.TEP74]),h={};Object.entries(p).forEach((([e,t])=>{h[e]=(0,o.DY)(l,(0,c._b)(t))}));const f=()=>{Object.values(p).map((async t=>{try{const a=h[t.slug],r=(await Promise.all(e.map((async e=>{try{const t=await(0,o.MB)(a,l,e);return await t.getBalance()}catch(n){return console.error(`Error on get balance of account ${e} for token ${t.slug}`,n),BigInt(0)}})))).map(((n,a)=>({address:e[a],tokenSlug:t.slug,free:n.toString(),locked:"0",state:i.Xf.READY})));n(r)}catch(e){console.log(t.slug,e)}}))};f();const m=setInterval(f,s.eC);return()=>{clearInterval(m)}}async function h(e,t){return await Promise.all(e.map((async e=>{try{const n=l.Address.parse(e);return await t.getBalance(n)}catch(e){return BigInt(0)}})))}function f(e){var t;const{addresses:n,assetMap:a,callback:o,chainInfo:c,tonApi:l}=e,d=c.slug,f=(0,u.$)(a,d,[r.yH.NATIVE]),m=(null===(t=Object.values(f)[0])||void 0===t?void 0:t.slug)||"";function y(){h(n,l).then((e=>e.map(((e,t)=>({address:n[t],tokenSlug:m,state:i.Xf.READY,free:e.toString(),locked:"0"}))))).catch((e=>(console.error(`Error on get native balance with token ${m}`,e),n.map((e=>({address:e,tokenSlug:m,state:i.Xf.READY,free:"0",locked:"0"})))))).then((e=>o(e))).catch(console.error)}y();const g=setInterval(y,s.H9),b=p(e);return()=>{clearInterval(g),b&&b()}}[c,s]=d.then?(await d)():d,a()}catch(m){a(m)}}))},75989:(e,t,n)=>{"use strict";n.d(t,{Bq:()=>S,DY:()=>u,EO:()=>g,Hr:()=>f,L5:()=>p,MB:()=>l,SH:()=>y,bG:()=>v,eE:()=>m,pg:()=>d,xt:()=>b});var a=n(72022),r=n(6900),i=n(16330),s=n(1048),o=n(82926),c=n.n(o);function u(e,t){const n=r.Address.parse(t);return e.open(i.JettonMaster.create(n))}async function l(e,t,n){const a=r.Address.parse(n),s=await e.getWalletAddress(a);return t.open(i.JettonWallet.create(s))}function d(e,t,n){return(0,r.beginCell)().storeWritable((0,r.storeMessage)((0,i.external)({to:e.address,init:0===t?e.init:void 0,body:n}))).endCell()}async function p(e,t){let n;for(let a=0;asetTimeout(e,t.delay)))}throw n}function h(e){var t,n,a,r,i,s,o,c;const u=e.transactions[0],l=null!==(t=null===(n=u.description)||void 0===n||null===(a=n.compute_ph)||void 0===a?void 0:a.success)&&void 0!==t&&t,d=null!==(r=null===(i=u.description)||void 0===i||null===(s=i.action)||void 0===s?void 0:s.success)&&void 0!==r&&r,p=null!==(o=null===(c=u.out_msgs[0])||void 0===c?void 0:c.bounced)&&void 0!==o&&o;return l&&d&&!p}async function f(e,t){const n=await e.getTxByInMsg(t);if(h(n)){var a;const t=null===(a=n.transactions[0].out_msgs[0])||void 0===a?void 0:a.hash;return h(await e.getTxByInMsg(t))}return!1}async function m(e,t,n,r){const i=e.open(n),o=null!=r?r:await i.getSeqno(),c=0!==o,u=function(e,t,n,a){let r;const i={secretKey:t,seqno:n,messages:a};if(_(e))r=e.createTransfer(i);else if(A(e))r=e.createTransfer(i);else if(w(e))r=e.createTransfer(i);else{if(!I(e))throw new Error("Unknown wallet contract address");r=e.createTransfer({...i,sendMode:i.sendMode})}return r}(n,s.Buffer.from(new Array(64)),o,t),l=await e.estimateExternalMessageFee(n,u,c);return BigInt(l.source_fees.gas_fee+l.source_fees.in_fwd_fee+l.source_fees.storage_fee+l.source_fees.fwd_fee)+a.Jw}function y(e){return(0,r.beginCell)().store((0,r.storeMessageRelaxed)(e)).endCell()}function g(e){return e.toBoc().toString("base64")}function b(){const e=a.rO.toString(16),t=s.Buffer.from(e,"hex"),n=c().randomBytes(4),r=s.Buffer.concat([t,n]);return BigInt("0x"+r.toString("hex"))}function v(e){return!r.Address.isFriendly(e)||r.Address.parseFriendly(e).isBounceable}const _=e=>e instanceof i.WalletContractV3R1,A=e=>e instanceof i.WalletContractV3R2,w=e=>e instanceof i.WalletContractV4,I=e=>e instanceof i.WalletContractV5R1;function S(e,t,n,r,i){let s;const o={signer:t,sendMode:(c=n.transferAll,c?a.Ij.CARRY_ALL_REMAINING_BALANCE:a.Ij.PAY_GAS_SEPARATELY+a.Ij.IGNORE_ERRORS),seqno:r,messages:i};var c;if(_(e))s=e.createTransfer(o);else if(A(e))s=e.createTransfer(o);else if(w(e))s=e.createTransfer(o);else{if(!I(e))throw new Error("Unknown wallet contract address");s=e.createTransfer({...o,sendMode:o.sendMode})}return s}},63319:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{o:()=>x});var r=n(35496),i=n(11266),s=n(31355),o=n(97245),c=n(83340),u=n(14875),l=n(91600),d=n(48792),p=n(37550),h=n(73509),f=n(21778),m=n(19203),y=n(1268),g=n(52484),b=n(278),v=n(9492),_=n(25923),A=n(24318),w=n(86511),I=n(89258),S=e([w,s,r,l,I,f,m,b,o]);[w,s,r,l,I,f,m,b,o]=S.then?(await S)():S;class x{balanceUpdateCache=[];startPromiseHandler=(0,p.y)();stopPromiseHandler=(0,p.y)();status=u.E.NOT_INITIALIZED;isReload=!1;detectAccountBalanceStore=new d.A;balanceDetectSubject=new _.t({});intervalTime=18e4;cacheTime=9e5;constructor(e){this.state=e,this.balanceMap=new w.l(e)}async init(){this.status=u.E.INITIALIZING,await this.state.eventService.waitChainReady,await this.state.eventService.waitAccountReady,await this.loadData(),this.status=u.E.INITIALIZED,await this.start(),this.state.eventService.onLazy(this.handleEvents.bind(this))}async loadData(){const e=await this.state.dbService.getStoredBalance();this.balanceMap.updateBalanceItems(e,s.GQ)}async start(){if(this.status===u.E.STOPPING&&await this.waitForStopped(),this.status===u.E.STARTED||this.status===u.E.STARTING)return await this.waitForStarted();this.status=u.E.STARTING,await this.startScanBalance(),await this.runSubscribeBalances(),this.stopPromiseHandler=(0,p.y)(),this.status=u.E.STARTED,this.startPromiseHandler.resolve()}async stop(){if(this.status===u.E.STARTING&&await this.waitForStarted(),this.status===u.E.STOPPED||this.status===u.E.STOPPING)return await this.waitForStopped();this.runUnsubscribeBalances(),this.stopScanBalance(),this.startPromiseHandler=(0,p.y)(),this.status=u.E.STOPPING,this.stopPromiseHandler.resolve()}waitForStarted(){return this.startPromiseHandler.promise}waitForStopped(){return this.stopPromiseHandler.promise}handleEvents(e,t){const n=[];let a=!1,r=2e3;(t.includes("account.updateCurrent")||t.includes("account.add")||t.includes("chain.updateState")||t.includes("asset.updateState"))&&(a=!0,t.includes("account.updateCurrent")&&(r=1e3)),e.forEach((e=>{"account.remove"!==e.type&&"accountProxy.remove"!==e.type||(n.push(e.data[0]),r=1e3)})),n.length>0&&(this.balanceMap.removeBalanceItems([...n,s.GQ]),a=!0),a&&(0,h.U)("reloadBalanceByEvents",(()=>{this.isReload||this.runSubscribeBalances().catch(console.error)}),r,void 0,!0)}getBalanceDetectCache(e){this.detectAccountBalanceStore.get("DetectBalanceCache",(t=>{e(t)}))}setBalanceDetectCache(e){this.detectAccountBalanceStore.get("DetectBalanceCache",(t=>{const n={...t};for(const t of e)n[t]=Date.now();this.detectAccountBalanceStore.set("DetectBalanceCache",n)}))}async subscribeTransferableBalance(e,t,n,a,s){const o=this.state.chainService.getChainInfoByKey(t),c=this.state.chainService.getChainStateByKey(t);if(!o||!c||!c.active)return Promise.reject(new r.r(i.hh.NETWORK_ERROR,(0,v.t)("{{chain}} is inactive. Please enable network",{replace:{chain:o.name}})));const u=n||(0,l.iD)(o),d=this.state.chainService.getAssetBySlug(u);return d?new Promise(((n,r)=>{let i=!0;const o=this.state.chainService.getAssetRegistry(),c=this.state.chainService.getChainInfoMap(),l=this.state.chainService.getEvmApiMap(),p=this.state.chainService.getSubstrateApiMap(),h=this.state.chainService.getTonApiMap();let f=A.l;f=(0,I.P)([e],[t],[u],o,c,p,l,h,(e=>{const t=e[0];if(t.tokenSlug===u){i=!1;const e={value:t.free,decimals:d.decimals||0,symbol:d.symbol,metadata:t.metadata};var a;s?s(e):null===(a=f)||void 0===a||a(),n([f,e])}}),a),setTimeout((()=>{var e;i&&(null===(e=f)||void 0===e||e(),r(new Error((0,v.t)("Failed to get balance. Please check your internet connection or change your network endpoint"))))}),9999)})):Promise.reject(new r.r(i.hh.TOKEN_ERROR,(0,v.t)("Transfer is currently not available for this token: {{tSlug}}",{replace:{slug:u}})))}async getTransferableBalance(e,t,n,a){const[,r]=await this.subscribeTransferableBalance(e,t,n,a);return r}removeBalanceByAddresses(e){this.balanceMap.removeBalanceItems([...e,s.GQ])}async removeInactiveChainBalances(){const e=await this.state.chainService.getAssetSettings();this.balanceMap.removeBalanceItemByFilter((t=>!e[t.tokenSlug]))}async getBalance(e){return await this.removeInactiveChainBalances(),{details:this.balanceMap.map,reset:e}}async getStoredBalance(e){return await this.state.dbService.stores.balance.getBalanceMapByAddresses(e)}async handleResetBalance(e){e?(this.balanceMap.setData({}),await this.state.dbService.stores.balance.clear()):await Promise.all([this.removeInactiveChainBalances()])}setBalanceItem(e){if(e.length){const t=(new Date).getTime();for(const n of e){const e={timestamp:t,...n};this.balanceUpdateCache.push(e)}(0,h.U)("updateBalanceStore",(()=>{const e=this.state.keyringService.context.currentAccount.proxyId,t=this.state.keyringService.context.isUnifiedAccount(e),n=(0,f.pb)(e);this.balanceMap.updateBalanceItems(this.balanceUpdateCache,t||n?e:void 0),(t||n)&&(this.balanceUpdateCache=[...this.balanceUpdateCache,...Object.values(this.balanceMap.map[e])]),this.updateBalanceStore(this.balanceUpdateCache),this.balanceUpdateCache=[]}),300,1800)}}updateBalanceStore(e){this.state.dbService.updateBulkBalanceStore(e).catch(console.warn)}subscribeBalanceMap(){return this.balanceMap.mapSubject}async runSubscribeBalances(){await Promise.all([this.state.eventService.waitKeyringReady,this.state.eventService.waitChainReady]),this.runUnsubscribeBalances();const e=this.state.keyringService.context.getDecodedAddresses();if(!e.length)return;await this.handleResetBalance();let t=!1;const n=this.state.chainService.getAssetRegistry(),a=this.state.chainService.getChainInfoMap(),r=this.state.chainService.getEvmApiMap(),s=this.state.chainService.getSubstrateApiMap(),o=this.state.chainService.getTonApiMap(),c=Object.keys(this.state.getActiveChainInfoMap()),u=this.state.chainService.subscribeAssetSettings().value,l=Object.values(n).filter((e=>{var t;return c.includes(e.originChain)&&(null===(t=u[e.slug])||void 0===t?void 0:t.visible)})).map((e=>e.slug)),d=(0,I.P)(e,c,l,n,a,s,r,o,(e=>{!t&&this.setBalanceItem(e)}),i.M_.TRANSFER_BALANCE),p=this.state.subscribeMantaPayBalance();this._unsubscribeBalance=()=>{t=!0,d&&d(),p&&p()}}runUnsubscribeBalances(){this._unsubscribeBalance&&this._unsubscribeBalance(),this._unsubscribeBalance=void 0}async reloadBalance(){this.isReload=!0,await this.handleResetBalance(!0),await this.runSubscribeBalances(),await(0,m.j4)(1800),this.isReload=!1}async autoEnableChains(e){this.setBalanceDetectCache(e);const t=this.state.chainService.getAssetRegistry(),n=e.map((e=>{const t=(0,y.V)(e);return[...g.oj,...g.u].includes(t)?this.state.subscanService.getMultiChainBalance(e).catch((e=>(console.error(e),null))):null})),a=[],r=[],i=await Promise.all(n),s=await this.state.chainService.getAssetSettings(),o=this.state.chainService.getChainInfoMap(),c=this.state.chainService.detectBalanceChainSlugMap;for(const e of i)if(e)for(const n of e){var u;const{balance:e,bonded:i,category:l,locked:d,network:p,symbol:h}=n,f=c[p],m=f?o[f]:null,y=this.state.chainService.getChainStateByKey(f),g=!(e&&"0"!==e||d&&"0"!==d||i&&"0"!==i),b=`${f}-${"native"===l?"NATIVE":"LOCAL"}-${h.toUpperCase()}`,v=Object.keys(t).find((e=>e.toLowerCase()===b.toLowerCase()));m&&!m.isTestnet&&(g||y&&y.manualTurnOff||!v||null!==(u=s[v])&&void 0!==u&&u.visible||(a.push(f),r.push(v),s[v]={visible:!0}))}r.length&&(await this.state.chainService.enableChains(a),this.state.chainService.setAssetSettings({...s}))}async startScanBalance(){var e;await Promise.all([this.state.eventService.waitAccountReady,this.state.eventService.waitChainReady]),this.stopScanBalance(),this.startBalanceDetectCache=(0,p.y)();const t=e=>{var t;null===(t=this.startBalanceDetectCache)||void 0===t||t.resolve(),this.balanceDetectSubject.next(e||{})};this.getBalanceDetectCache(t);const n=this.detectAccountBalanceStore.getSubject().subscribe({next:t});this._unsubscribeBalanceDetectCache=n.unsubscribe;const a=()=>{const e=b.Ay.getPairs().map((e=>e.address)),t=this.balanceDetectSubject.value,n=Date.now(),a=[];for(const r of e)(!t[r]||n-t[r]>this.cacheTime)&&a.push(r);a.length&&this.autoEnableChains(a).finally(A.l)};await(null===(e=this.startBalanceDetectCache)||void 0===e?void 0:e.promise),a(),this._intervalScan=setInterval(a,this.intervalTime)}stopScanBalance(){this._intervalScan&&clearInterval(this._intervalScan),this._unsubscribeBalanceDetectCache&&this._unsubscribeBalanceDetectCache(),this._intervalScan=void 0,this._unsubscribeBalanceDetectCache=void 0,this.startBalanceDetectCache=void 0}async getOptimalTransferProcess(e){const t=this.state.chainService.getChainInfoByKey(e.originChain);if(!e.destChain)return(0,c.q)();const n=this.state.chainService.getChainInfoByKey(e.destChain);if(!(0,o.eZ)(t,n)&&(0,l.Rz)(t)){const n=this.state.chainService.getEvmApi(t.slug),a=this.state.chainService.getAssetBySlug(e.tokenSlug);return(0,c.Z)(e.address,n,a,e.amount)}return(0,c.q)()}}a()}catch(e){a(e)}}))},1317:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{D0:()=>y,Jy:()=>f,O3:()=>p,si:()=>h});var r=n(12598),i=n(80562),s=n(95821),o=n(17540),c=n(45723),u=n(58109),l=n(96483),d=e([u,r]);async function p(e,t,n,a,r,i){var s,o;const d=e.slug,p=await(0,u.oc)(i,d),h={to:n,value:a,from:t,gasPrice:p.gasPrice,maxFeePerGas:null===(s=p.maxFeePerGas)||void 0===s?void 0:s.toString(),maxPriorityFeePerGas:null===(o=p.maxPriorityFeePerGas)||void 0===o?void 0:o.toString()},f=await i.api.eth.estimateGas(h);let m;if(h.gas=f,m=p.baseGasFee?p.maxFeePerGas.multipliedBy(f):new l.A(p.gasPrice).multipliedBy(f),h.value=r?new l.A(a).minus(m).toString():a,c.JC.acala.includes(d)){const e=6;h.value=h.value.substring(0,h.value.length-6)+new Array(e).fill("0").join("")}return[h,h.value.toString()]}async function h(e,t,n,a,i,s,o){var c,d;const p=t.slug,h=(0,r.Ji)(e,o);let f=new l.A(0),m=i;if(s){const e=await h.methods.balanceOf(n).call();f=new l.A(e||"0"),m=f.toFixed(0)||"0"}function y(e,t){return h.methods.transfer(e,t).encodeABI()}const g=y(a,m),[b,v]=await Promise.all([h.methods.transfer(a,m).estimateGas({from:n}),(0,u.oc)(o,p)]),_={gas:b,from:n,value:"0",to:e,data:g,gasPrice:v.gasPrice,maxFeePerGas:null===(c=v.maxFeePerGas)||void 0===c?void 0:c.toString(),maxPriorityFeePerGas:null===(d=v.maxPriorityFeePerGas)||void 0===d?void 0:d.toString()};return s&&(m=f.toFixed(0),_.data=y(a,m)),[_,m]}async function f(e,t,n,a,r,s){var o,c;const l=new e.api.eth.Contract(i.Po,n),[d,p]=await Promise.all([l.methods.safeTransferFrom(a,r,s).estimateGas({from:a}),(0,u.oc)(e,t)]);return{from:a,gasPrice:p.gasPrice,maxFeePerGas:null===(o=p.maxFeePerGas)||void 0===o?void 0:o.toString(),maxPriorityFeePerGas:null===(c=p.maxPriorityFeePerGas)||void 0===c?void 0:c.toString(),gas:d,to:n,value:"0x00",data:l.methods.safeTransferFrom(a,r,s).encodeABI()}}[u,r]=d.then?(await d)():d;const m=/^-?[0-9][0-9,.]+$/;async function y(e,t,n,a){const r=a.contractAddress,i=a.onChainOption;for(const[e,t]of Object.entries(i))m.test(t)&&(i[e]=t.replaceAll(",",""));try{const a=(0,s.WM)(e.api,r),c=await(0,o.x)(e.api,t,"psp34::transfer",a,{},[n,i,{}]);return a.tx["psp34::transfer"]({gasLimit:c},n,i,{})}catch(e){return console.debug(e),null}}a()}catch(g){a(g)}}))},56534:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{C:()=>I,R:()=>w});var r=n(9231),i=n(38397),s=n(95821),o=n(17540),c=n(75989),u=n(45723),l=n(91600),d=n(58109),p=n(37475),h=n(61116),f=n(6900),m=n(16330),y=n(96483),g=n(44869),b=n(82823),v=n.n(b),_=n(76515),A=e([l,d,h]);[l,d,h]=A.then?(await A)():A;const w=async({from:e,networkKey:t,substrateApi:n,to:a,tokenInfo:c,transferAll:d,value:h})=>{var f;const m=n.api;if(null===(f=c.metadata)||void 0===f?void 0:f.isDisableTransfer)return[null,h];let y=null;const b=!!m&&!!m.tx&&!!m.tx.currencies,A=!!m&&!!m.tx&&!!m.tx.balances,w=!!m&&!!m.tx&&!!m.tx.tokens,I=!!m&&!!m.tx&&!!m.tx.assets;let S;if((0,l.wq)(c)&&m.tx.foreignAssets){const e=(0,l.px)(c)||(0,l.q6)(c);y=d?m.tx.foreignAssets.transfer(e,a,h):m.tx.foreignAssets.transferKeepAlive(e,a,h)}else if((0,l.aD)(c)&&m.query.contracts){const t=(0,s.d4)(m,(0,l._b)(c)),n=await(0,o.x)(m,e,"psp22::transfer",t,{},[e,h,{}]);y=t.tx["psp22::transfer"]({gasLimit:n},a,h,{}),S=h}else if((0,l.P6)(c)&&m instanceof r._p){const t=c.assetType===i.yH.GRC20?(0,p.ol)(m,(0,l._b)(c)):(0,p.QN)(m,(0,l._b)(c));y=(await t.service.transfer((0,g.X)((0,_.F)(a)),h).withAccount(e).calculateGas()).extrinsic,S=h}else if(u.Lu.acala.includes(t))(0,l.Uy)(c)?d?y=m.tx.balances.transferAll(a,!1):h&&(y=m.tx.balances.transferKeepAlive(a,new(v())(h))):b&&(y=m.tx.currencies.transfer(a,(0,l.px)(c),h));else if(u.Lu.kintsugi.includes(t)&&w)d?y=m.tx.tokens.transferAll(a,(0,l.px)(c)||(0,l.AZ)(c),!1):h&&(y=m.tx.tokens.transfer(a,(0,l.px)(c)||(0,l.AZ)(c),new(v())(h)));else if(u.Lu.pendulum.includes(t)&&w&&!(0,l.Uy)(c))d?y=m.tx.tokens.transferAll(a,(0,l.px)(c)||(0,l.AZ)(c),!1):h&&(y=m.tx.tokens.transfer(a,(0,l.px)(c)||(0,l.AZ)(c),new(v())(h)));else if(u.Lu.bitcountry.includes(t)&&!(0,l.Uy)(c))y=m.tx.currencies.transfer(a,(0,l.px)(c),h);else if(u.Lu.statemine.includes(t)&&!(0,l.Uy)(c))y=m.tx.assets.transfer((0,l.AZ)(c),a,h);else if(u.Lu.sora_substrate.includes(t)&&I)y=m.tx.assets.transfer((0,l.AZ)(c),a,h);else if(A&&(0,l.Uy)(c)){if(u.Lu.disable_transfer.includes(t))return[null,S||h];d?y=m.tx.balances.transferAll(a,!1):h&&(y=m.tx.balances.transferKeepAlive?m.tx.balances.transferKeepAlive(a,new(v())(h)):m.tx.balances.transfer(a,new(v())(h)))}return[y,S||h]},I=async(e,t,n,a)=>{try{let i;if((0,l.d)(t)&&(0,l.s9)(n)){const n=a,r={value:0,to:"0x0000000000000000000000000000000000000000",from:e},s=await n.api.eth.estimateGas(r),o=await(0,d.oc)(n,t.slug);i=o.baseGasFee?o.maxFeePerGas.multipliedBy(s):new y.A(o.gasPrice).multipliedBy(s)}else if((0,l.sM)(t)&&(0,l.Nr)(n)){const t=h.AC.getPair(e).ton.currentContract,n=a,r=await n.getBalance(m.Address.parse(e)),s=(0,f.internal)({to:e,value:r,bounce:!1});i=new y.A((await(0,c.eE)(n,[s],t)).toString())}else{var r;const s=a,o=await s.isReady,[c]=await w({from:e,networkKey:t.slug,substrateApi:o,to:e,tokenInfo:n,transferAll:!0,value:"1000000000000000000"}),u=await(null==c?void 0:c.paymentInfo(e));i=new y.A((null==u||null===(r=u.partialFee)||void 0===r?void 0:r.toString())||"0")}return i}catch(e){return console.error("error mocking tx fee",e),new y.A(0)}};a()}catch(e){a(e)}}))},77864:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{C:()=>d});var r=n(72022),i=n(75989),s=n(91600),o=n(61116),c=n(6900),u=n(16330),l=e([s,o]);async function d({from:e,networkKey:t,to:n,tokenInfo:a,tonApi:r,transferAll:i,value:o}){return(0,s.Uy)(a)?p({from:e,to:n,networkKey:t,tokenInfo:a,value:o||"0",transferAll:i,tonApi:r}):(0,s.ZB)(a)?h({from:e,to:n,networkKey:t,tokenInfo:a,value:o||"0",transferAll:i,tonApi:r}):[null,o]}async function p({from:e,networkKey:t,to:n,tonApi:a,transferAll:r,value:s}){const u=o.AC.getPair(e).ton.currentContract,l=a.open(u),d=await l.getSeqno(),p=(0,c.internal)({to:n,value:(0,c.fromNano)(s),bounce:!1}),h={from:e,to:n,networkKey:t,value:s,messagePayload:(0,i.EO)((0,i.SH)(p)),messages:[p],estimateFee:(await(0,i.eE)(a,[p],u)).toString(),seqno:d,transferAll:r};return[h,h.value]}async function h({from:e,networkKey:t,to:n,tokenInfo:a,tonApi:l,transferAll:d,value:p}){const h=o.AC.getPair(e).ton.currentContract,f=u.Address.parse(e),m=u.Address.parse(n),y=l.open(h),g=await y.getSeqno(),b=u.Address.parse((0,s._b)(a)),v=l.open(u.JettonMaster.create(b)),_=await v.getWalletAddress(f),A=(0,c.beginCell)().storeUint(r._P.JETTON_TRANSFER,32).storeUint((0,i.xt)(),64).storeCoins(BigInt(p)).storeAddress(m).storeAddress(f).storeBit(0).storeCoins(BigInt(1)).storeBit(0).endCell(),w=(0,c.internal)({to:_,value:(0,c.toNano)(r.rX),bounce:!0,body:A}),I=(0,i.EO)((0,i.SH)(w)),S=await(0,i.eE)(l,[w],h),x={from:e,to:n,networkKey:t,value:p,messagePayload:I,messages:[w],estimateFee:((0,c.toNano)(r.rX)>S?(0,c.toNano)(r.rX):S).toString(),seqno:g,transferAll:d};return[x,x.value]}[s,o]=l.then?(await l)():l,a()}catch(f){a(f)}}))},12152:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{CA:()=>y,ft:()=>b,uo:()=>g});var r=n(97245),i=n(30650),s=n(8060),o=n(23078),c=n(78814),u=n(45723),l=n(91600),d=n(96483),p=n(44869),h=n(20258),f=n(7948),m=e([r,s,l,i,o,c]);[r,s,l,i,o,c]=m.then?(await m)():m;const y=async({chainInfoMap:e,destinationTokenInfo:t,evmApi:n,originTokenInfo:a,recipient:i,sender:o,sendingValue:c})=>{const u=e[a.originChain],l=e[t.originChain];if(!(0,r.eO)(u,l))throw new Error("This is not a valid SnowBridge transfer");return(0,s.g)(a,u,l,o,i,c,n)},g=async({chainInfoMap:e,destinationTokenInfo:t,originTokenInfo:n,recipient:a,sendingValue:r,substrateApi:s})=>{const d=e[n.originChain],p=e[t.originChain],h=(await s.isReady).api,f=u.KM.polkadotXcmSpecialCases.includes(d.slug)&&(0,l.Uy)(n);return u.KM.polkadotXcm.includes(n.originChain)||f?(0,i.R)(n,d,p,a,r,h):u.KM.xcmPallet.includes(n.originChain)?(0,o.N)(n,d,p,a,r,h):(0,c.R)(n,d,p,a,r,h)},b=async(e,t,n,a)=>{try{var r;const i=t[a.originChain],s=t[n.originChain],o="5DRewsYzhJqZXU3SRaWy1FSt5iDr875ao91aw5fjrJmDG4Ap",c=(0,h.q)(o)||!(0,l.d)(i)||(0,l.d)(s)?o:(0,p.X)((0,f.c)(o)),u=await g({chainInfoMap:t,destinationTokenInfo:a,originTokenInfo:n,recipient:c,sendingValue:"1000000000000000000",substrateApi:e}),m=await u.paymentInfo(o);return new d.A((null==m||null===(r=m.partialFee)||void 0===r?void 0:r.toString())||"0")}catch(e){return console.error("error mocking xcm tx fee",e),new d.A(0)}};a()}catch(e){a(e)}}))},30650:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{R:()=>c});var r=n(97245),i=n(83877),s=n(91600),o=e([s,r]);function c(e,t,n,a,o,c){let u=i.e,l="limitedReserveTransferAssets";(0,s.wq)(e)&&!(0,r.eZ)(t,n)&&(u=4,l="transferAssets"),(0,i.L)(t,n,e.slug)&&(l="limitedTeleportAssets");const d=(0,r.mj)(t),p=(0,r.au)(t,n,u),h=(0,r.v4)(n,a,u),f=(0,r.SD)(e,o,u);return c.tx.polkadotXcm[l](p,h,f,0,d)}[s,r]=o.then?(await o)():o,a()}catch(u){a(u)}}))},8060:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{g:()=>p});var r=n(12598),i=n(80562),s=n(91600),o=n(58109),c=n(44869),u=n(76515),l=e([r,s,o]);async function d(e,t,n,a){const r=e.methods.quoteSendTokenFee(t,n,a);return await r.call()}async function p(e,t,n,a,l,p,h){var f,m;const y=(0,i.BP)(t.slug),g=(0,r.WV)(y,h,i.gH),b=(0,s._b)(e),v=(0,s.mP)(n),_={kind:1,data:(0,s.d)(n)?l:(0,c.X)((0,u.F)(l))},A=g.methods.sendToken(b,v,_,"0",p).encodeABI(),[w,I]=await Promise.all([(0,o.oc)(h,h.chainSlug),d(g,b,v,"0")]),S={from:a,to:y,value:I,data:A,gasPrice:w.gasPrice,maxFeePerGas:null===(f=w.maxFeePerGas)||void 0===f?void 0:f.toString(),maxPriorityFeePerGas:null===(m=w.maxPriorityFeePerGas)||void 0===m?void 0:m.toString()};let x;try{x=await h.api.eth.estimateGas(S)}catch(e){x=2e5}return S.gas=x,S}[r,s,o]=l.then?(await l)():l,a()}catch(h){a(h)}}))},83877:(e,t,n)=>{"use strict";n.d(t,{L:()=>r,e:()=>a});const a=3;function r(e,t,n){const a=["polkadot"].includes(e.slug)&&["statemint"].includes(t.slug)||["kusama"].includes(e.slug)&&["statemine"].includes(t.slug)||["rococo"].includes(e.slug)&&["rococo_assethub"].includes(t.slug),r=["polkadot"].includes(t.slug)&&["statemint"].includes(e.slug)||["kusama"].includes(t.slug)&&["statemine"].includes(e.slug)||["rococo"].includes(t.slug)&&["rococo_assethub"].includes(e.slug),i="mythos"===e.slug&&"statemint"===t.slug&&"mythos-NATIVE-MYTH"===n||"statemint"===e.slug&&"mythos"===t.slug&&"statemint-LOCAL-MYTH"===n;return a||r||i}},78814:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{R:()=>u});var r=n(97245),i=n(83877),s=n(91600),o=e([s,r]);function c(e){return["moonbeam","moonbase","moonriver"].includes(e.originChain)?{[(0,s.yv)(e)]:(0,s.D4)(e)}:(0,s.px)(e)||(0,s.AZ)(e)}function u(e,t,n,a,o,u){const l=i.e,d=(0,r.au)(t,n,l,a);if(!(0,s.q6)(e)){const n=c(e);return u.tx.xTokens.transfer(n,o,d,(0,r.mj)(t))}const p=(0,r.SD)(e,o,l);return u.tx.xTokens.transferMultiassets(p,0,d,(0,r.mj)(t))}[s,r]=o.then?(await o)():o,a()}catch(l){a(l)}}))},23078:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{N:()=>o});var r=n(97245),i=n(83877),s=e([r]);function o(e,t,n,a,s,o){const c=(0,r.mj)(t),u=(0,r.au)(t,n,i.e),l=(0,r.v4)(n,a,i.e),d=(0,r.SD)(e,s,i.e);let p="limitedReserveTransferAssets";return(0,i.L)(t,n)&&(p="limitedTeleportAssets"),o.tx.xcmPallet[p](u,l,d,0,c)}r=(s.then?(await s)():s)[0],a()}catch(c){a(c)}}))},14875:(e,t,n)=>{"use strict";let a;n.d(t,{E:()=>a}),function(e){e.NOT_INITIALIZED="not_initialized",e.INITIALIZING="initializing",e.INITIALIZED="initialized",e.STARTED="started",e.STARTING="starting",e.STOPPED="stopped",e.STOPPING="stopping"}(a||(a={}))},69568:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const a={symbol:"",network:""},r={transak:{...a},banxa:{...a},coinbase:{...a},onramper:{...a},moonpay:{...a}}},99719:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>c});var r=n(47521),i=n(12561),s=n(25923),o=n(69568);const e=e=>"ETHEREUM"===e?r.HP.ETHEREUM:r.HP.SUBSTRATE;class c{#l;buyTokensSubject=new s.t({});buyServicesSubject=new s.t({});constructor(e){this.#l=e,this.buyTokensSubject.next({}),this.buyServicesSubject.next({}),this.fetchTokens().catch((e=>{console.error("Error on fetch buy tokens",e),this.#l.eventService.emit("buy.tokens.ready",!0)})),this.fetchServices().catch((e=>{console.error("Error on fetch buy services",e),this.#l.eventService.emit("buy.services.ready",!0)}))}async fetchTokens(){const t=await(0,i.j)("buy-token-configs"),n={};for(const a of t){const t={serviceInfo:{...o.v},support:e(a.support),services:[],slug:a.slug,symbol:a.symbol,network:a.network};for(const[e,n]of Object.entries(a.serviceInfo)){const a=e;n.isSuspended||(t.serviceInfo[a]={network:n.network,symbol:n.symbol},t.services.push(a))}t.services.length&&(n[t.slug]=t)}this.buyTokensSubject.next(n),this.#l.eventService.emit("buy.tokens.ready",!0)}async fetchServices(){const e=await(0,i.j)("buy-service-infos"),t={};for(const n of e){const{id:e,slug:a,...r}=n;t[a]={...r}}this.buyServicesSubject.next(t),this.#l.eventService.emit("buy.services.ready",!0)}subscribeBuyTokens(e){return this.buyTokensSubject.subscribe({next:e})}getBuyTokens(){return this.buyTokensSubject.getValue()}subscribeBuyServices(e){return this.buyServicesSubject.subscribe({next:e})}getBuyServices(){return this.buyServicesSubject.getValue()}}a()}catch(e){a(e)}}))},84710:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var a=n(11266),r=n(9492);const i=(e,t)=>{const{action:n,message:i,metadata:s,title:o}=t.data,{buttons:c}=t,u=(e,t)=>()=>{if("open_url"===e&&t){const e=t.url;e&&chrome.tabs.create({url:e}).catch(console.error)}};e.notify({type:a._n.SUCCESS,title:(0,r.t)(o),message:(0,r.t)(i),action:{buttonClick:e=>{const{metadata:t,type:n}=c[e];u(n,t)()},click:u(n,s)},notifyViaBrowser:!0,buttons:c.map((e=>({title:e.name})))})}},60975:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{A:()=>u});var r=n(11266),i=n(31882),s=n(12561),o=n(25923),c=n(84710);const e=["extension","mobile"];class u{#l;popupVisibilitySubject=new o.t({value:!0});constructor(e){this.#l=e}init(){e.includes(i.En)&&(this.fetchCampaign().catch((e=>{console.error("Error on fetch campaigns",e)})),this.runCampaign().catch((e=>{console.error("Error on run campaigns",e)})))}async fetchCampaign(){const e=await(0,s.j)("marketing-campaigns"),t=[];for(const n of e){const{condition:e,end_time:a,id:s,start_time:o}=n,c=new Date(a).getTime(),u=new Date(o).getTime();for(const a of n.banners){const{buttons:n,id:o,...l}=a,d=`${s}-banner-${o}`;a.environments.includes(i.En)&&t.push({slug:d,endTime:c,startTime:u,isDone:!1,isArchive:!1,campaignId:s,type:r.jG.BANNER,buttons:n,data:l,condition:e})}for(const a of n.notifications){const{buttons:n,id:i,...o}=a,l=`${s}-notification-${i}`;t.push({slug:l,endTime:c,startTime:u,isDone:!1,isArchive:!1,campaignId:s,type:r.jG.NOTIFICATION,buttons:n,data:o,condition:e})}}for(const e of t){const t=await this.#l.dbService.getCampaign(e.slug);if(t){const n={...e,isDone:t.isDone};await this.#l.dbService.upsertCampaign(n)}else await this.#l.dbService.upsertCampaign(e)}const n=await this.#l.dbService.getAllCampaign();for(const e of n)if(!t.find((t=>t.slug===e.slug))){const t={...e,isArchive:!0};await this.#l.dbService.upsertCampaign(t)}this.#l.eventService.emit("campaign.ready",!0)}getIsPopupVisible(){return this.popupVisibilitySubject.value}toggleCampaignPopup(e){this.popupVisibilitySubject.next(e)}subscribeCampaignPopupVisibility(){return this.popupVisibilitySubject}async runCampaign(){await this.#l.eventService.waitCampaignReady,(await this.getProcessingCampaign()).filter((e=>e.type===r.jG.NOTIFICATION)).forEach((e=>{const{isDone:t,slug:n,type:a}=e;if(t)return;const i=()=>{this.completeCampaignNotification(n).catch((e=>{console.error("Error when complete campaign",n,e)}))};try{if(a!==r.jG.NOTIFICATION)throw new Error("Missing handle campaign");(0,c.o)(this.#l.notificationService,e),i()}catch(e){console.error("Error on running campaigns",n,e)}}))}getProcessingCampaign(){return this.#l.dbService.getProcessingCampaign()}subscribeProcessingCampaign(){return this.#l.dbService.subscribeProcessingCampaign()}async completeCampaignNotification(e){const t=await this.#l.dbService.getCampaign(e);t&&await this.#l.dbService.upsertCampaign({...t,isDone:!0})}stop(){this.toggleCampaignPopup({value:!0})}}a()}catch(e){a(e)}}))},45723:(e,t,n)=>{"use strict";n.d(t,{CX:()=>p,ER:()=>d,GF:()=>o,JC:()=>S,KM:()=>A,Lu:()=>g,NB:()=>v,Ox:()=>u,Pi:()=>s,RU:()=>I,Vw:()=>f,Wj:()=>x,Wy:()=>l,XJ:()=>c,gL:()=>h,nY:()=>b,rF:()=>w,vF:()=>y,xI:()=>_});var a=n(45654),r=n(38397),i=n(11266);const s=3e3,o=3e4,c={acala:["acala","karura","origintrail","kintsugi"],turing:["turingStaging","turing"],avail:["kate","availTuringTest","avail_mainnet"],goldberg:["goldberg_testnet"],gear:["vara_network","vara_testnet"]},u={subspace:{networkKeys:["subspace_gemini_2a","subspace_test","subspace_gemini_3a"],theme:i.gM.SUBSPACE,autoTriggerDomain:"subspace.network"}},l={kintsugi:["kintsugi","interlay","kintsugi_test","mangatax_para"],genshiro:["genshiro_testnet","genshiro"],equilibrium_parachain:["equilibrium_parachain"],bifrost:["bifrost","acala","karura","acala_testnet","pioneer","bitcountry","bifrost_dot","hydradx_main","hydradx_rococo","pendulum","amplitude","continuum_network"],statemine:["statemine","astar","shiden","statemint","moonbeam","moonbase","moonriver","crabParachain","darwinia2","parallel","calamari","manta_network","rococo_assethub","liberlandTest","liberland","dentnet","pangolin","crust","phala","shibuya","dbcchain"],kusama:["kusama","kintsugi","kintsugi_test","interlay","acala","statemint","karura","bifrost"],centrifuge:["centrifuge"],supportBridged:["rococo_assethub","statemint","statemine"]},d={acala:["acala"],karura:["karura"],rmrk:["kusama"],statemine:["statemine"],statemint:["statemint"],unique_network:["unique_network","quartz","opal"],unique_evm:["unique_evm"],bitcountry:["bitcountry","pioneer","continuum_network"],vara:["vara_network"],avail:["avail_mainnet"],ternoa:["ternoa","ternoa_alphanet"]},p={alephTest:24,aleph:24,polkadot:24,kusama:6,westend:6,hydradx:24,default:24,moonbeam:6,moonriver:2,moonbase:2,turing:2,turingStaging:2,astar:24,shiden:24,shibuya:24,bifrost_testnet:.5,bifrost:7800/3600,bifrost_dot:24,ternoa:24,calamari:6,calamari_test:6,amplitude:2,amplitude_test:2,pendulum:2,kilt:2,kilt_peregrine:2,edgeware:6,kate:6,creditcoin:24,vara_network:12,vara_testnet:12,goldberg_testnet:24,manta_network:6,krest_network:4,polimec:6,enjin_relaychain:24,availTuringTest:24,polkadex:24,avail_mainnet:24},h={alephTest:1,aleph:1,polkadot:6,kusama:6,polkadex:12,ternoa:6,ternoa_alphanet:6,westend:6,kate:20,edgeware:6,creditcoin:12,vara_network:3,vara_testnet:3,goldberg_testnet:20,polimec:12,bifrost:13,moonbeam:12,moonriver:12,moonbase:6,turing:12,turingStaging:12,bifrost_testnet:3,calamari:12,calamari_test:12,manta_network:12,enjin_relaychain:6,availTuringTest:20,avail_mainnet:20,dentnet:3},f={auctionAdjust:0,auctionMax:0,falloff:.05,maxInflation:.1,minInflation:.025,stakeTarget:.5},m={...f,yearlyInflationInTokens:3e7},y={aleph:m,alephTest:m,dock_pos:{...f,stakeTarget:.75},kusama:{...f,auctionAdjust:.005,auctionMax:60,stakeTarget:.75},neatcoin:{...f,stakeTarget:.75},nft_mart:{...f,falloff:.04,stakeTarget:.6},polkadot:{...f,stakeTarget:.75},vara_network:{...f,stakeTarget:.8},vara_testnet:{...f,stakeTarget:.8},avail_mainnet:{...f,maxInflation:.05,minInflation:.01},dentnet:{...f,falloff:.5}},g={acala:["karura","acala","acala_testnet"],kintsugi:["kintsugi","kintsugi_test","interlay","mangatax_para"],genshiro:["genshiro_testnet","genshiro","equilibrium_parachain"],bitcountry:["pioneer","bitcountry"],statemine:["statemint","statemine","darwinia2","astar","shiden","shibuya","parallel","liberland","liberlandTest","dentnet","dbcchain"],riochain:["riochain"],sora_substrate:["sora_substrate"],avail:["kate","goldberg_testnet"],pendulum:["pendulum","amplitude","amplitude_test","hydradx_main","bifrost","bifrost_dot"],centrifuge:["centrifuge"],disable_transfer:["invarch","crab","pangolin"]},b=["calamari"],v="zk",_="calamari",A={polkadotXcm:["statemine","statemint","equilibrium_parachain","rococo_assethub","mythos"],polkadotXcmSpecialCases:["astar","shiden"],xcmPallet:["polkadot","kusama","rococo"]},w=(r.ed.RELAYCHAIN,r.ed.PARACHAIN,r.ed.PARACHAIN,r.ed.PARACHAIN,r.ed.PARACHAIN,r.ed.RELAYCHAIN,[...a.kU,"vara_network","ton"]),I={arbitrum_one:["*"],okxTest:["*"],astarZkEvm:["*"],xlayer:["*"],aleph_evm:["*"]},S={acala:["acala_evm","karura_evm"]},x=12e4},48056:(e,t,n)=>{"use strict";n.d(t,{WQ:()=>i});var a=n(35331),r=n(25923);class i{apiStateMapSubject=new r.t({});isSleeping=!1;constructor(e){this.parent=e,this.recoverMap={}}handleConnection(e,t,n=!1){const r=this.apiStateMapSubject.getValue();r[e]!==t&&this.apiStateMapSubject.next({...r,[e]:t}),t===a.$J.CONNECTED&&this.cancelRecover(e),this.isRecovering(e)&&!n||t!==a.$J.DISCONNECTED||this.handleRecover(e)}handleRecover(e){var t,n;if(null===(t=this.parent)||void 0===t||null===(n=t.getChainStateByKey(e))||void 0===n||!n.active)return void this.cancelRecover(e);const r=this.recoverMap[e]||{retryTimes:0};clearTimeout(r.timeout);const i=r.retryTimes;i>=6&&(this.handleConnection(e,a.$J.UNSTABLE),this.cancelRecover(e));const s=setTimeout((()=>{var t;null!==(t=this.getApiByChain(e))&&void 0!==t&&t.isApiConnected||this.isSleeping?this.cancelRecover(e):(this.recoverApi(e),this.handleRecover(e))}),0===i?3e3:2e4);this.recoverMap[e]={...r,retryTimes:i+1,timeout:s}}isRecovering(e){return!!this.recoverMap[e]}cancelRecover(e){const t=this.recoverMap[e];t&&(clearTimeout(t.timeout),delete this.recoverMap[e])}cancelAllRecover(){Object.keys(this.recoverMap).forEach((e=>{this.cancelRecover(e)}))}}},33424:(e,t,n)=>{"use strict";n.d(t,{k:()=>m});var a=n(38397),r=n(80562),i=n(48056),s=n(45723),o=n(35331),c=n(37550),u=n(25923),l=n(20049),d=n.n(l);class p{apiRetry=0;isApiConnectedSubject=new u.t(!1);connectionStatusSubject=new u.t(o.$J.DISCONNECTED);isApiReady=!1;isApiReadyOnce=!1;get isApiConnected(){return this.isApiConnectedSubject.getValue()}get connectionStatus(){return this.connectionStatusSubject.getValue()}updateConnectionStatus(e){const t=e===o.$J.CONNECTED;t!==this.isApiConnectedSubject.value&&this.isApiConnectedSubject.next(t),e!==this.connectionStatusSubject.value&&this.connectionStatusSubject.next(e)}get isReady(){return this.isReadyHandler.promise}async updateApiUrl(e){this.apiUrl=e,await this.disconnect(),this.api.setProvider(this.createProvider(e)),this.connect()}async recoverConnect(){const e=this.provider;e.reconnect&&e.reconnect(),await this.isReadyHandler.promise}createProvider(e){return e.startsWith("http")?new(d().providers.HttpProvider)(e):new(d().providers.WebsocketProvider)(e)}constructor(e,t,{providerName:n}={}){this.chainSlug=e,this.apiUrl=t,this.providerName=n||"unknown",this.provider=this.createProvider(t),this.api=new(d())(this.provider),this.isReadyHandler=(0,c.y)(),this.intervalCheckApi=this.createIntervalCheckApi(),this.connect()}get ignoreNetListen(){const e=s.RU[this.chainSlug];return!!e&&(e.includes("*")||e.includes(this.apiUrl))}createIntervalCheckApi(){return this.clearIntervalCheckApi(),setInterval((()=>{this.ignoreNetListen?this.onConnect():this.api.eth.net.isListening().then((()=>{this.onConnect()})).catch((()=>{this.onDisconnect()}))}),1e4)}clearIntervalCheckApi(){clearInterval(this.intervalCheckApi)}connect(){const e=this.provider;e.connect&&e.connect(),this.updateConnectionStatus(o.$J.CONNECTING),this.ignoreNetListen?(this.isApiReadyOnce=!0,this.onConnect()):this.api.eth.net.isListening().then((()=>{this.isApiReadyOnce=!0,this.onConnect()})).catch((e=>{this.isApiReadyOnce=!1,this.isApiReady=!1,this.isReadyHandler.reject(e),this.updateConnectionStatus(o.$J.DISCONNECTED),console.warn(`Can not connect to ${this.chainSlug} (EVM) at ${this.apiUrl}`)})),this.intervalCheckApi=this.createIntervalCheckApi()}async disconnect(){this.clearIntervalCheckApi(),this.onDisconnect();const e=this.provider;return e.disconnect&&e.disconnect(),this.updateConnectionStatus(o.$J.DISCONNECTED),Promise.resolve()}destroy(){return this.disconnect()}onConnect(){this.isApiConnected||(console.log(`Connected to ${this.chainSlug} at ${this.apiUrl}`),this.isApiReady=!0,this.isApiReadyOnce&&this.isReadyHandler.resolve(this)),this.updateConnectionStatus(o.$J.CONNECTED)}onDisconnect(){this.updateConnectionStatus(o.$J.DISCONNECTED),this.isApiConnected&&(console.warn(`Disconnected from ${this.chainSlug} of ${this.apiUrl} (EVM)`),this.isApiReady=!1,this.isReadyHandler=(0,c.y)())}}var h=n(96483),f=n(87574);class m extends i.WQ{evmApiMap={};constructor(e){super(e),this.logger=(0,f.v)("evm-chain-handler")}getEvmApiMap(){return this.evmApiMap}getEvmApiByChain(e){return this.evmApiMap[e]}getApiByChain(e){return this.getEvmApiByChain(e)}setEvmApi(e,t){this.evmApiMap[e]=t}async initApi(e,t,{onUpdateStatus:n,providerName:a}={}){const r=this.getEvmApiByChain(e);if(r)return r.connect(),t!==r.apiUrl&&r.updateApiUrl(t).catch(console.error),r;const i=new p(e,t,{providerName:a});return i.connectionStatusSubject.subscribe(this.handleConnection.bind(this,e)),i.connectionStatusSubject.subscribe(n),Promise.resolve(i)}async recoverApi(e){const t=this.getEvmApiByChain(e);if(t&&!t.isApiReadyOnce)return console.log(`Reconnect ${t.providerName||t.chainSlug} at ${t.apiUrl}`),t.recoverConnect()}destroyEvmApi(e){const t=this.getEvmApiByChain(e);null==t||t.destroy().catch(console.error)}async sleep(){return this.isSleeping=!0,this.cancelAllRecover(),await Promise.all(Object.values(this.getEvmApiMap()).map((e=>e.disconnect().catch(console.error)))),Promise.resolve()}wakeUp(){var e;this.isSleeping=!1;const t=(null===(e=this.parent)||void 0===e?void 0:e.getActiveChains())||[];for(const e of t){const t=this.getEvmApiByChain(e);null==t||t.connect()}return Promise.resolve()}async getChainSpec(e){const t=await e.api.eth.getChainId();let n;const a={evmChainId:t,name:"",symbol:"",decimals:18,existentialDeposit:"0"};return await fetch("https://chainid.network/chains.json").then((e=>e.json())).then((e=>{n=e})),n&&n.forEach((e=>{const n=e.chainId;t===n&&(a.name=e.name,a.symbol=e.nativeCurrency.symbol)})),a}async getEvmContractTokenInfo(e,t,n){let i,s="",o=-1,c="",u=!1;const l=this.getEvmApiByChain(n);try{if(t===a.yH.ERC721){i=new l.api.eth.Contract(r.Po,e);const[t,n]=await Promise.all([i.methods.name().call(),i.methods.symbol().call()]);s=t,c=n}else{i=new l.api.eth.Contract(r.tA,e);const[t,n,a]=await Promise.all([i.methods.decimals().call(),i.methods.symbol().call(),i.methods.name().call()]);s=a,o=new h.A(t).toNumber(),c=n}return""!==s&&""!==c||(u=!0),{name:s,decimals:o,symbol:c,contractError:u}}catch(e){return this.logger.error(e),{name:s,decimals:o,symbol:c,contractError:!0}}}}},56163:(e,t,n)=>{"use strict";n.d(t,{u:()=>xe});var a={};n.r(a),n.d(a,{AlreadyDestroyedError:()=>b,CrashError:()=>v,JsonRpcDisabledError:()=>_,WellKnownChain:()=>y,createScClient:()=>R});var r=n(62050),i=n(9231),s=n(37209),o=n(45723),c=Object.defineProperty,u=Object.defineProperties,l=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t,n)=>new Promise(((a,r)=>{var i=e=>{try{o(n.next(e))}catch(e){r(e)}},s=e=>{try{o(n.throw(e))}catch(e){r(e)}},o=e=>e.done?a(e.value):Promise.resolve(e.value).then(i,s);o((n=n.apply(e,t)).next())})),y=(e=>(e.polkadot="polkadot",e.ksmcc3="ksmcc3",e.rococo_v2_2="rococo_v2_2",e.westend2="westend2",e))(y||{}),g=new Map,b=class extends Error{constructor(){super(),this.name="AlreadyDestroyedError"}},v=class extends Error{constructor(e){super(e),this.name="CrashError"}},_=class extends Error{constructor(){super(),this.name="JsonRpcDisabledError"}},A=![typeof window,typeof document].includes("undefined"),w=class{},I=null,S=null,x=[],C=null,k=3,T=e=>{if(e.maxLogLevel&&e.maxLogLevel>k&&(k=e.maxLogLevel),C)return x.push(e),C instanceof Promise?C:Promise.resolve(C);let t,a;if(e.workerFactory){t=e.workerFactory();const{port1:n,port2:r}=new MessageChannel;t.postMessage(n,[n]),a=r}const r={portToWorker:a,forbidTcp:!0,forbidNonLocalWs:!0,maxLogLevel:9999999,cpuRateLimit:.5,logCallback:(e,t,n)=>{e>k||(e<=1?console.error("[%s] %s",t,n):2===e?console.warn("[%s] %s",t,n):3===e?console.info("[%s] %s",t,n):4===e?console.debug("[%s] %s",t,n):console.trace("[%s] %s",t,n))}},i=t?(S||(S=n.e(911).then(n.bind(n,40911)).then((e=>e.startWithBytecode)))).then((e=>{return e((n=((e,t)=>{for(var n in t||(t={}))p.call(t,n)&&f(e,n,t[n]);if(d)for(var n of d(t))h.call(t,n)&&f(e,n,t[n]);return e})({},r),a={bytecode:new Promise((e=>{A?t.onmessage=t=>e(t.data):t.on("message",(t=>e(t)))}))},u(n,l(a))));var n,a})):(I||(I=Promise.all([n.e(911),n.e(998)]).then(n.bind(n,4998)).then((e=>(w=e.QueueFullError,e.start))))).then((e=>e(r)));return C=i,i.then((e=>(C===i?C=e:e.terminate(),e))),x.push(e),C},E=e=>{const t=x.indexOf(e);if(-1===t)throw new Error("Internal error within smoldot");x.splice(t,1),k=3;for(const e of x.values())e.maxLogLevel&&e.maxLogLevel>k&&(k=e.maxLogLevel);0===x.length&&(!C||C instanceof Promise||C.terminate(),C=null)},P=e=>{try{e()}catch(e){const t=e;if("JsonRpcDisabledError"===(null==t?void 0:t.name))throw new _;if("CrashError"===(null==t?void 0:t.name))throw new v(t.message);if("AlreadyDestroyedError"===(null==t?void 0:t.name))throw new b;throw new v(e instanceof Error?e.message:`Unexpected error ${e}`)}},O=e=>{const t=e||{maxLogLevel:3},a=(e,n,r,i)=>m(void 0,null,(function*(){const s=yield T(t);try{const o=yield s.addChain({chainSpec:e,potentialRelayChains:i?[i]:void 0,disableJsonRpc:void 0===n,databaseContent:r});return m(void 0,null,(function*(){for(;;){let e;try{e=yield o.nextJsonRpcResponse()}catch(e){break}try{n(e)}catch(e){console.error("JSON-RPC callback has thrown an exception:",e)}}})),{sendJsonRpc:e=>{P((()=>{try{o.sendJsonRpc(e)}catch(t){if(!(t instanceof w))throw t;try{const t=JSON.parse(e);n(JSON.stringify({jsonrpc:"v2",id:t.id,error:{code:-32e3,message:"JSON-RPC server is too busy"}}))}catch(e){}}}))},remove:()=>{try{P((()=>{o.remove()}))}finally{E(t)}},addChain:(e,t,n)=>a(e,t,n,o)}}catch(e){throw E(t),e}}));return{addChain:(e,t,n)=>a(e,t,n),addWellKnownChain:(e,r,i)=>m(void 0,null,(function*(){T(t);try{return yield a(yield function(e){return m(this,null,(function*(){if(!Object.keys(y).includes(e))throw new Error("Invalid chain name");const t=e;if(!g.has(t))switch(t){case"polkadot":g.set("polkadot",n.e(265).then(n.bind(n,45265)));break;case"ksmcc3":g.set("ksmcc3",n.e(307).then(n.bind(n,6307)));break;case"westend2":g.set("westend2",n.e(659).then(n.bind(n,54659)));break;case"rococo_v2_2":g.set("rococo_v2_2",n.e(201).then(n.bind(n,51582)))}return(yield g.get(t)).chainSpec}))}(e),r,i)}finally{E(t)}}))}},B={polkadot:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",ksmcc3:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",westend2:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",rococo_v2_2:"0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"},R=e=>{if(null==e?void 0:e.forceEmbeddedNode)return O(null==e?void 0:e.embeddedNodeConfig);const t=function(){if("object"!=typeof document||"function"!=typeof CustomEvent)return;let e;return window.dispatchEvent(new CustomEvent("lightClient:requestProvider",{detail:{onProvider(t){"io.github.paritytech.SubstrateConnectLightClient"===t.info.rdns&&(e=t.provider)}}})),e}(),n=t?(e=>{const t=(n,a,r=(()=>{}),i)=>m(void 0,null,(function*(){const s=yield e;let o;if(n){const e=Object.values(s.getChains()).find((({genesisHash:e})=>e===B[a]));if(!e)throw new Error("Unknown well-known chain");o=e}else o=yield s.getChain(a,i);const c=o.connect(r);return{sendJsonRpc(e){c.send(e)},remove(){c.disconnect()},addChain:function(e,n){return t(!1,e,n,o.genesisHash)}}}));return{addChain:(e,n)=>t(!1,e,n),addWellKnownChain:(e,n)=>t(!0,e,n)}})(t):O(null==e?void 0:e.embeddedNodeConfig);return{addChain(e,t,a){return m(this,null,(function*(){return(yield n).addChain(e,t,a)}))},addWellKnownChain(e,t,a){return m(this,null,(function*(){return(yield n).addWellKnownChain(e,t,a)}))}}},N=n(80571);const M={kusama:y.ksmcc3,polkadot:y.polkadot,rococo:y.rococo_v2_2,westend:y.westend2},D="https://raw.githubusercontent.com/polkadot-js/apps/master/packages/react-api/src/light/",L={"kusama/shiden":`${D}kusama/shiden.json`,"kusama/tinkernet":`${D}kusama/tinkernet.json`,"polkadot/astar":`${D}polkadot/astar.json`};class V{constructor(e){this.providerPromise=e,e.then((e=>{this.provider=e})).catch(console.error)}get hasSubscriptions(){return!0}get isClonable(){return!!this.provider&&this.provider.isClonable}get isConnected(){return!!this.provider&&this.provider.isConnected}clone(){var e;return null===(e=this.provider)||void 0===e?void 0:e.clone()}async connect(){var e;await this.providerPromise,await(null===(e=this.provider)||void 0===e?void 0:e.connect())}async disconnect(){var e;await this.providerPromise,await(null===(e=this.provider)||void 0===e?void 0:e.disconnect())}on(e,t){let n=!1,a=()=>{n=!1};return this.providerPromise.then((r=>{n||(a=r.on(e,t))})).catch(console.error),()=>{a()}}send(e,t,n){return this.provider?this.provider.send(e,t):this.providerPromise.then((n=>n.send(e,t)))}subscribe(e,t,n,a){return this.provider?this.provider.subscribe(e,t,n,a):this.providerPromise.then((r=>r.subscribe(e,t,n,a)))}unsubscribe(e,t,n){return this.provider?this.provider.unsubscribe(e,t,n):this.providerPromise.then((a=>a.unsubscribe(e,t,n)))}}var U=n(35331),H=n(37550),F=n(39010),K=n(25923),j=n(38509),q=n(18045),z=n(56529),G=n(76119),W=n(57278),X=n(45118),Z=n(3473),J=n(25778),Y=n(1048).Buffer;const Q=["eq"],$=e=>e.reduce(((e,t,n)=>{const a=!n;return{...e,[t]:{customAccount:(e,n)=>{const{registry:r}=n,i=(e=>{const t=Y.from(e.toLowerCase()),n=t.length;return t.reduce(((e,t,a)=>{const r=BigInt(n-1-a);return BigInt(e)+BigInt(256)**r*BigInt(t)}),BigInt(0))})(t);return(0,Z.p)(e,(e=>n.query.system.account(e).pipe((0,q.T)((e=>{const t=e.data,n=a?t.asV0.lock:r.createType("u128",0),s=n,o=r.createType("u128",0),c=t.asV0.balance.find((([e])=>e.toBigInt()===i)),u=c?.[1];return{feeFrozen:s,free:u?.isPositive?u.asPositive:r.createType("u128",0),miscFrozen:n,reserved:o}})))))},customLocks:(e,t)=>{const{registry:n}=t;return(0,Z.p)(e,(e=>a?t.query.system.account(e).pipe((0,q.T)((e=>[{amount:e.data.asV0.lock,id:new J.H(n),reasons:""}]))):(0,X.of)([])))}}}}),{}),ee={derives:$(Q),instances:{balances:Q}},te=["gens"],ne={derives:$(te),instances:{balances:te}};var ae=n(13937),re=n(16342),ie=n(83141),se=n(82823),oe=n(2835);function ce(e){return new re.L(new ie.O,e)}function ue(e,t){const n=t.registry.chainTokens[0]||oe.Q.getDefaults().unit;return(0,Z.p)(e,(e=>(0,z.z)([t.query.tokens.accounts(e,{Token:n}),t.query.system.account(e)]).pipe((0,q.T)((([n,a])=>({accountNonce:new se(1),additional:[],availableBalance:ce(0),freeBalance:ce(0),lockedBalance:ce(0),lockedBreakdown:[],namedReserves:[],reservedBalance:ce(0),accountId:t.registry.createType("AccountId",e),accountNonce:a.nonce,availableBalance:t.registry.createType("Balance",n.free.sub(n.frozen)),freeBalance:n.free,lockedBalance:n.frozen,reservedBalance:n.reserved}))))))}const le={derives:{balances:{account:ue,all:ue}},...ae};function de(e){return new re.L(new ie.O,e)}function pe(e,t){return(0,Z.p)(e,(e=>(0,z.z)([t.query.tokens.accounts(e,0),t.query.system.account(e)]).pipe((0,q.T)((([n,a])=>({accountNonce:new se(1),additional:[],availableBalance:de(0),freeBalance:de(0),lockedBalance:de(0),lockedBreakdown:[],namedReserves:[],reservedBalance:de(0),vestingLocked:de(0),accountId:t.registry.createType("AccountId",e),accountNonce:a.nonce,availableBalance:t.registry.createType("Balance",n.free.sub(n.frozen)),freeBalance:n.free,lockedBalance:n.frozen,reservedBalance:n.reserved}))))))}const he={derives:{balances:{account:pe,all:pe}},types:[{minmax:[0,void 0],types:{ShufflingSeed:{seed:"H256",proof:"H512"},Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest",seed:"ShufflingSeed",count:"BlockNumber"},RpcAssetMetadata:{tokenId:"TokenId",decimals:"u32",name:"Vec",symbol:"Vec"},TokenId:"u32"}}],rpc:{xyk:{calculate_buy_price:{description:"Calculates and returns sold_token_amount while providing bought_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_sell_price:{description:"Calculates and returns bought_token_amount while providing sold_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},get_burn_amount:{description:"Returns amounts of tokens received by burning provided liquidity_token_amount in pool of provided token ids",params:[{name:"first_asset_id",type:"TokenId"},{name:"second_asset_id",type:"TokenId"},{name:"liquidity_asset_amount",type:"Balance"}],type:"(Balance,Balance)"},calculate_sell_price_id:{description:"Same as calculate_sell_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_buy_price_id:{description:"Same as calculate_buy_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"buy_amount",type:"Balance"}],type:"Balance"},calculate_rewards_amount:{description:"Calculate rewards amount of liquidity token id for the user",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},calculate_balanced_sell_amount:{description:"Calculates how much amount x we need to swap from total_amount, so that after y = swap(x), the resulting balance equals (total_amount - x) / y = pool_x / pool_y - the resulting amounts can then be used to `mint_liquidity` with minimal leftover after operation",params:[{name:"total_amount",type:"Balance"},{name:"reserve_amount",type:"Balance"}],type:"Balance"},get_max_instant_unreserve_amount:{description:"Instant unreserve amount",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},get_max_instant_burn_amount:{description:"",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},is_sell_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},is_buy_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},get_tradeable_tokens:{description:"",params:[],type:"Vec>"},get_liq_tokens_for_trading:{description:"",params:[],type:"Vec"}},pos:{calculate_native_rewards_amount:{description:"Calculates amount of available native rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_amount:{description:"Calculates amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"},{name:"rewards_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_all:{description:"Calculates all amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"}],type:"Vec<(TokenId, TokenId, Balance)>"}}}};var fe=n(2299),me=n(21497),ye=n(13283),ge=n(9947),be=n(54448);function ve(e,t,n){const a=e.createClass("Header");return new class extends a{__internal__author;constructor(e,t,n){super(e,t),this.__internal__author=function(e,t){const n=e.logs.filter((e=>e.isPreRuntime&&"SUB_"===e.asPreRuntime[0].toString()));if(!n||0===n.length)return;const{solution:a}=t.registry.createType("SubPreDigest",n[0].asPreRuntime[1]);return a.reward_address}(this.digest,n),this.createdAtHash=t?.createdAtHash}get author(){return this.__internal__author}}(e,t,n)}const _e=[[ee,["Equilibrium","Equilibrium-parachain"]],[ne,["Genshiro","Gens-parachain"]],[le,["interbtc-parachain","interbtc-standalone","interlay-parachain","kintsugi-parachain","testnet-kintsugi","testnet-interlay"]],[{derives:{chain:{bestNumber:fe.s,bestNumberFinalized:me.k,bestNumberLag:ye.G,getBlock:ge.g,getHeader:function(e,t){return(0,Z.p)(e,(e=>(0,z.z)([t.rpc.chain.getHeader(e)]).pipe((0,q.T)((([e])=>ve(e.registry,e,t))))))},subscribeNewBlocks:be.b,subscribeNewHeads:function(e,t){return(0,Z.p)(e,(()=>(0,z.z)([t.rpc.chain.subscribeNewHeads()]).pipe((0,q.T)((([e])=>ve(e.registry,e,t))))))}}},types:[{minmax:[0,void 0],types:{Solution:{public_key:"AccountId32",reward_address:"AccountId32"},SubPreDigest:{slot:"u64",solution:"Solution"}}}]},["subspace"]],[he,["mangata","mangata-parachain"]]];function Ae(e){return _e.forEach((([{derives:t},n])=>{n.forEach((n=>{e.spec?.[n]&&(e.spec[n].derives=t)}))})),e}const we={...Ae({chain:{"Cere Mainnet Beta":{types:[{minmax:[266,281],types:{ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},TokenId:"u256",Erc721Token:{id:"TokenId",metadata:"Vec"},Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource",AccountInfo:"AccountInfoWithDualRefCount",ValidatorPrefs:{commission:"Compact"}}},{minmax:[282,294],types:{ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},TokenId:"u256",Erc721Token:{id:"TokenId",metadata:"Vec"},Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[295,null],types:{}}]},"KILT Mashnet":{runtime:{DidApi:[{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Did:[{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],PublicCredentials:[{methods:{get_by_id:{description:"Return the public credential with the specified ID, if found.",params:[{name:"credential_id",type:"Hash"}],type:"Option"},get_by_subject:{description:"Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ",params:[{name:"subject",type:"Text"},{name:"filter",type:"Option"}],type:"Result, PublicCredentialError>"}},version:1}]},types:[{minmax:[0,8],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",Attestation:{ctypeHash:"Hash",attester:"AccountId",delegationId:"Option",revoked:"bool"},Balance:"u128",DelegationNode:{rootId:"DelegationNodeId",parent:"Option",owner:"AccountId",permissions:"Permissions",revoked:"bool"},DelegationNodeId:"Hash",DelegationRoot:{ctypeHash:"Hash",owner:"AccountId",revoked:"bool"},DidRecord:{signKey:"Hash",boxKey:"Hash",docRef:"Option>"},Index:"u64",LookupSource:"AccountId",Permissions:"u32",PublicBoxKey:"Hash",PublicSigningKey:"Hash",Signature:"MultiSignature",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{DOT:0,KSM:1,KILT:2}},XcmError:{_enum:{Undefined:0,Unimplemented:1,UnhandledXcmVersion:2,UnhandledXcmMessage:3,UnhandledEffect:4,EscalationOfPrivilege:5,UntrustedReserveLocation:6,UntrustedTeleportLocation:7,DestinationBufferOverflow:8,CannotReachDestination:9,MultiLocationFull:10,FailedToDecode:11,BadOrigin:12,ExceedsMaxMessageSize:13,FailedToTransactAsset:14}},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}}}},{minmax:[9,9],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"DidIdentifierOf",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"DidIdentifierOf",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"DidIdentifierOf",DelegationSignature:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"}}},{minmax:[10,11],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[12,16],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"}}},{minmax:[17,17],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]}}},{minmax:[18,18],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option"}}},{minmax:[19,19],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"BTreeSet",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"Vec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]}}},{minmax:[20,20],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",delegationKey:"Option",attestationKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"BoundedVec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"OrderedSet",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"OrderedSet",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"DidNewKeyAgreementKeys",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"DidVerificationKeysToRevoke",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32"}},{minmax:[21,22],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1"}},{minmax:[23,24],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[25,2699],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",submitter:"AccountId"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[2700,10409],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10410,10719],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10720,10750],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"}}},{minmax:[10800,10899],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}},{minmax:[10900,null],types:{DidApiAccountId:"PalletDidLookupLinkableAccountLinkableAccountId",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}]},"KILT Peregrine":{runtime:{DidApi:[{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Did:[{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"}},version:1}],PublicCredentials:[{methods:{get_by_id:{description:"Return the public credential with the specified ID, if found.",params:[{name:"credential_id",type:"Hash"}],type:"Option"},get_by_subject:{description:"Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ",params:[{name:"subject",type:"Text"},{name:"filter",type:"Option"}],type:"Result, PublicCredentialError>"}},version:1}]},types:[{minmax:[0,8],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",Attestation:{ctypeHash:"Hash",attester:"AccountId",delegationId:"Option",revoked:"bool"},Balance:"u128",DelegationNode:{rootId:"DelegationNodeId",parent:"Option",owner:"AccountId",permissions:"Permissions",revoked:"bool"},DelegationNodeId:"Hash",DelegationRoot:{ctypeHash:"Hash",owner:"AccountId",revoked:"bool"},DidRecord:{signKey:"Hash",boxKey:"Hash",docRef:"Option>"},Index:"u64",LookupSource:"AccountId",Permissions:"u32",PublicBoxKey:"Hash",PublicSigningKey:"Hash",Signature:"MultiSignature",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{DOT:0,KSM:1,KILT:2}},XcmError:{_enum:{Undefined:0,Unimplemented:1,UnhandledXcmVersion:2,UnhandledXcmMessage:3,UnhandledEffect:4,EscalationOfPrivilege:5,UntrustedReserveLocation:6,UntrustedTeleportLocation:7,DestinationBufferOverflow:8,CannotReachDestination:9,MultiLocationFull:10,FailedToDecode:11,BadOrigin:12,ExceedsMaxMessageSize:13,FailedToTransactAsset:14}},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}}}},{minmax:[9,9],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"DidIdentifierOf",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"DidIdentifierOf",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"DidIdentifierOf",DelegationSignature:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"}}},{minmax:[10,11],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[12,16],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"}}},{minmax:[17,17],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]}}},{minmax:[18,18],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option"}}},{minmax:[19,19],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"BTreeSet",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"Vec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]}}},{minmax:[20,20],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",delegationKey:"Option",attestationKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"BoundedVec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"OrderedSet",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"OrderedSet",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"DidNewKeyAgreementKeys",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"DidVerificationKeysToRevoke",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32"}},{minmax:[21,22],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1"}},{minmax:[23,24],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[25,2699],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",submitter:"AccountId"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[2700,10409],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10410,10719],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10720,10750],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"}}},{minmax:[10800,10899],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}},{minmax:[10900,null],types:{DidApiAccountId:"PalletDidLookupLinkableAccountLinkableAccountId",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}]},"KILT Peregrine Stagenet":{runtime:{DidApi:[{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Did:[{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"}},version:1}],PublicCredentials:[{methods:{get_by_id:{description:"Return the public credential with the specified ID, if found.",params:[{name:"credential_id",type:"Hash"}],type:"Option"},get_by_subject:{description:"Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ",params:[{name:"subject",type:"Text"},{name:"filter",type:"Option"}],type:"Result, PublicCredentialError>"}},version:1}]},types:[{minmax:[0,8],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",Attestation:{ctypeHash:"Hash",attester:"AccountId",delegationId:"Option",revoked:"bool"},Balance:"u128",DelegationNode:{rootId:"DelegationNodeId",parent:"Option",owner:"AccountId",permissions:"Permissions",revoked:"bool"},DelegationNodeId:"Hash",DelegationRoot:{ctypeHash:"Hash",owner:"AccountId",revoked:"bool"},DidRecord:{signKey:"Hash",boxKey:"Hash",docRef:"Option>"},Index:"u64",LookupSource:"AccountId",Permissions:"u32",PublicBoxKey:"Hash",PublicSigningKey:"Hash",Signature:"MultiSignature",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{DOT:0,KSM:1,KILT:2}},XcmError:{_enum:{Undefined:0,Unimplemented:1,UnhandledXcmVersion:2,UnhandledXcmMessage:3,UnhandledEffect:4,EscalationOfPrivilege:5,UntrustedReserveLocation:6,UntrustedTeleportLocation:7,DestinationBufferOverflow:8,CannotReachDestination:9,MultiLocationFull:10,FailedToDecode:11,BadOrigin:12,ExceedsMaxMessageSize:13,FailedToTransactAsset:14}},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}}}},{minmax:[9,9],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"DidIdentifierOf",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"DidIdentifierOf",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"DidIdentifierOf",DelegationSignature:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"}}},{minmax:[10,11],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[12,16],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"}}},{minmax:[17,17],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]}}},{minmax:[18,18],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option"}}},{minmax:[19,19],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"BTreeSet",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"Vec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]}}},{minmax:[20,20],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",delegationKey:"Option",attestationKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"BoundedVec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"OrderedSet",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"OrderedSet",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"DidNewKeyAgreementKeys",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"DidVerificationKeysToRevoke",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32"}},{minmax:[21,22],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1"}},{minmax:[23,24],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[25,2699],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",submitter:"AccountId"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[2700,10409],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10410,10719],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10720,10750],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"}}},{minmax:[10800,10899],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}},{minmax:[10900,null],types:{DidApiAccountId:"PalletDidLookupLinkableAccountLinkableAccountId",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}]},"KILT Spiritnet":{runtime:{DidApi:[{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Did:[{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"}},version:1}],PublicCredentials:[{methods:{get_by_id:{description:"Return the public credential with the specified ID, if found.",params:[{name:"credential_id",type:"Hash"}],type:"Option"},get_by_subject:{description:"Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ",params:[{name:"subject",type:"Text"},{name:"filter",type:"Option"}],type:"Result, PublicCredentialError>"}},version:1}]},types:[{minmax:[0,8],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",Attestation:{ctypeHash:"Hash",attester:"AccountId",delegationId:"Option",revoked:"bool"},Balance:"u128",DelegationNode:{rootId:"DelegationNodeId",parent:"Option",owner:"AccountId",permissions:"Permissions",revoked:"bool"},DelegationNodeId:"Hash",DelegationRoot:{ctypeHash:"Hash",owner:"AccountId",revoked:"bool"},DidRecord:{signKey:"Hash",boxKey:"Hash",docRef:"Option>"},Index:"u64",LookupSource:"AccountId",Permissions:"u32",PublicBoxKey:"Hash",PublicSigningKey:"Hash",Signature:"MultiSignature",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{DOT:0,KSM:1,KILT:2}},XcmError:{_enum:{Undefined:0,Unimplemented:1,UnhandledXcmVersion:2,UnhandledXcmMessage:3,UnhandledEffect:4,EscalationOfPrivilege:5,UntrustedReserveLocation:6,UntrustedTeleportLocation:7,DestinationBufferOverflow:8,CannotReachDestination:9,MultiLocationFull:10,FailedToDecode:11,BadOrigin:12,ExceedsMaxMessageSize:13,FailedToTransactAsset:14}},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}}}},{minmax:[9,9],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"DidIdentifierOf",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"DidIdentifierOf",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"DidIdentifierOf",DelegationSignature:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"}}},{minmax:[10,11],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[12,16],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"}}},{minmax:[17,17],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]}}},{minmax:[18,18],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option"}}},{minmax:[19,19],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"BTreeSet",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"Vec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]}}},{minmax:[20,20],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",delegationKey:"Option",attestationKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"BoundedVec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"OrderedSet",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"OrderedSet",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"DidNewKeyAgreementKeys",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"DidVerificationKeysToRevoke",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32"}},{minmax:[21,22],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1"}},{minmax:[23,24],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[25,2699],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",submitter:"AccountId"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[2700,10409],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10410,10719],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10720,10750],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"}}},{minmax:[10800,10899],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}},{minmax:[10900,null],types:{DidApiAccountId:"PalletDidLookupLinkableAccountLinkableAccountId",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}]},"KILT Spiritnet Develop":{runtime:{DidApi:[{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_did_by_w3n:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_did_by_account_id:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query_did:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Did:[{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:1},{methods:{query_by_web3_name:{description:"Return the information relative to the owner of the provided web3name, if any.",params:[{name:"name",type:"Text"}],type:"Option"},query_by_account:{description:"Return the information relative to the DID to which the provided account is linked, if any.",params:[{name:"account",type:"DidApiAccountId"}],type:"Option"},query:{description:"Return the information relative to the owner of the provided DID, if present.",params:[{name:"did",type:"AccountId32"}],type:"Option"}},version:2}],Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"}},version:1}],PublicCredentials:[{methods:{get_by_id:{description:"Return the public credential with the specified ID, if found.",params:[{name:"credential_id",type:"Hash"}],type:"Option"},get_by_subject:{description:"Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ",params:[{name:"subject",type:"Text"},{name:"filter",type:"Option"}],type:"Result, PublicCredentialError>"}},version:1}]},types:[{minmax:[0,8],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",Attestation:{ctypeHash:"Hash",attester:"AccountId",delegationId:"Option",revoked:"bool"},Balance:"u128",DelegationNode:{rootId:"DelegationNodeId",parent:"Option",owner:"AccountId",permissions:"Permissions",revoked:"bool"},DelegationNodeId:"Hash",DelegationRoot:{ctypeHash:"Hash",owner:"AccountId",revoked:"bool"},DidRecord:{signKey:"Hash",boxKey:"Hash",docRef:"Option>"},Index:"u64",LookupSource:"AccountId",Permissions:"u32",PublicBoxKey:"Hash",PublicSigningKey:"Hash",Signature:"MultiSignature",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},CurrencyIdOf:"CurrencyId",CurrencyId:{_enum:{DOT:0,KSM:1,KILT:2}},XcmError:{_enum:{Undefined:0,Unimplemented:1,UnhandledXcmVersion:2,UnhandledXcmMessage:3,UnhandledEffect:4,EscalationOfPrivilege:5,UntrustedReserveLocation:6,UntrustedTeleportLocation:7,DestinationBufferOverflow:8,CannotReachDestination:9,MultiLocationFull:10,FailedToDecode:11,BadOrigin:12,ExceedsMaxMessageSize:13,FailedToTransactAsset:14}},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}}}},{minmax:[9,9],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"DidIdentifierOf",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"DidIdentifierOf",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"DidIdentifierOf",DelegationSignature:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"}}},{minmax:[10,11],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[12,16],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{rootId:"DelegationNodeIdOf",parent:"Option",owner:"DelegatorIdOf",permissions:"Permissions",revoked:"bool"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"}}},{minmax:[17,17],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidCreationOperation:{did:"DidIdentifierOf",newAuthenticationKey:"DidVerificationKey",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateOperation:{did:"DidIdentifierOf",newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option",txCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidDeletionOperation:{did:"DidIdentifierOf",txCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]}}},{minmax:[18,18],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",endpointUrl:"Option",lastTxCounter:"u64"},DidVerificationKeyUpdateAction:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newEndpointUrl:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidVerificationKeyUpdateAction",delegationKeyUpdate:"DidVerificationKeyUpdateAction",publicKeysToRemove:"BTreeSet",newEndpointUrl:"Option"}}},{minmax:[19,19],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"BTreeSet",delegationKey:"Option",attestationKey:"Option",publicKeys:"BTreeMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"Vec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},CollatorSnapshot:{stake:"Balance",delegators:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"BTreeSet",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"BTreeSet",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"BTreeSet",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"Vec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]}}},{minmax:[20,20],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"Vec",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",delegationKey:"Option",attestationKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},OrderedSet:"BoundedVec",Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"OrderedSet",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"OrderedSet",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAttestationKey:"Option",newDelegationKey:"Option",newServiceEndpoints:"Option"},DidUpdateDetails:{newAuthenticationKey:"Option",newKeyAgreementKeys:"DidNewKeyAgreementKeys",attestationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",delegationKeyUpdate:"DidFragmentUpdateAction_DidVerificationKey",publicKeysToRemove:"DidVerificationKeysToRevoke",serviceEndpointsUpdate:"DidFragmentUpdateAction_ServiceEndpoints"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["ApplicationJson","ApplicationJsonLd"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32"}},{minmax:[21,22],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},Collator:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxCollatorCandidates:"u32",MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1"}},{minmax:[23,24],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[25,2699],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationRoot:{ctypeHash:"CtypeHashOf",owner:"DelegatorIdOf",revoked:"bool"},DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",UrlError:"UrlError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",VerificationKeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxTxCounterValue:"Null",MaxPublicKeysPerDidKeyIdentifierExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",MaxOldAttestationKeysExceeded:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},UrlError:{_enum:["InvalidUrlEncoding","InvalidUrlScheme"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded","MaxUrlLengthExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",serviceEndpoints:"Option",lastTxCounter:"u64"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",submitter:"AccountId"},HttpUrl:{payload:"Text"},FtpUrl:{payload:"Text"},IpfsUrl:{payload:"Text"},Url:{_enum:{Http:"HttpUrl",Ftp:"FtpUrl",Ipfs:"IpfsUrl"}},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option",newServiceEndpoints:"Option"},ServiceEndpoints:{contentHash:"Hash",urls:"BoundedVec",contentType:"ContentType"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},ContentType:{_enum:["application/json","application/ld+json"]},DidStorageVersion:{_enum:["V1","V2"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",MaxUrlLength:"u32",MaxEndpointUrlsCount:"u32",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}}}},{minmax:[2700,10409],types:{DispatchError:"DispatchErrorPre6First",AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10410,10719],types:{AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",AmountOf:"i128",Balance:"u128",BlockNumber:"u64",Index:"u64",LookupSource:"MultiAddress",CtypeCreatorOf:"AccountId",CtypeHashOf:"Hash",ClaimHashOf:"Hash",AttesterOf:"AccountId",AttestationDetails:{ctypeHash:"CtypeHashOf",attester:"AttesterOf",delegationId:"Option",revoked:"bool",deposit:"Deposit"},Permissions:"u32",DelegationNodeIdOf:"Hash",DelegatorIdOf:"AccountId",DelegateSignatureTypeOf:"DidSignature",DelegationNode:{hierarchyRootId:"DelegationNodeIdOf",parent:"Option",children:"BoundedBTreeSet",details:"DelegationDetails",deposit:"Deposit"},KeyIdOf:"Hash",DidIdentifierOf:"AccountId",AccountIdentifierOf:"AccountId",BlockNumberOf:"BlockNumber",DidCallableOf:"Call",DidVerificationKey:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Secp256k1:"[u8; 33]"}},DidEncryptionKey:{_enum:{X25519:"[u8; 32]"}},DidPublicKey:{_enum:{PublicVerificationKey:"DidVerificationKey",PublicEncryptionKey:"DidEncryptionKey"}},DidVerificationKeyRelationship:{_enum:["Authentication","CapabilityDelegation","CapabilityInvocation","AssertionMethod"]},DidSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature","Ecdsa-Secp256k1":"EcdsaSignature"}},DidError:{_enum:{StorageError:"StorageError",SignatureError:"SignatureError",InputError:"InputError",InternalError:"Null"}},StorageError:{_enum:{DidAlreadyPresent:"Null",DidNotPresent:"Null",DidKeyNotPresent:"DidVerificationKeyRelationship",KeyNotPresent:"Null",CurrentlyActiveKey:"Null",MaxPublicKeysPerDidExceeded:"Null",MaxTotalKeyAgreementKeysExceeded:"Null",DidAlreadyDeleted:"Null"}},SignatureError:{_enum:["InvalidSignatureFormat","InvalidSignature","InvalidNonce","TransactionExpired"]},KeyError:{_enum:["InvalidVerificationKeyFormat","InvalidEncryptionKeyFormat"]},InputError:{_enum:["MaxKeyAgreementKeysLimitExceeded","MaxVerificationKeysToRemoveLimitExceeded"]},DidPublicKeyDetails:{key:"DidPublicKey",blockNumber:"BlockNumberOf"},DidDetails:{authenticationKey:"KeyIdOf",keyAgreementKeys:"DidKeyAgreementKeys",capabilityDelegationKey:"Option",assertionMethodKey:"Option",publicKeys:"DidPublicKeyMap",lastTxCounter:"u64",deposit:"Deposit"},DidAuthorizedCallOperation:{did:"DidIdentifierOf",txCounter:"u64",call:"DidCallableOf",blockNumber:"BlockNumber",submitter:"AccountId"},LockedBalance:{block:"BlockNumber",amount:"Balance"},BalanceOf:"Balance",RoundInfo:{current:"SessionIndex",first:"BlockNumber",length:"BlockNumber"},Stake:{owner:"AccountId",amount:"Balance"},TotalStake:{collators:"Balance",delegators:"Balance"},InflationInfo:{collator:"StakingInfo",delegator:"StakingInfo"},StakingInfo:{maxRate:"Perquintill",rewardRate:"RewardRate"},RewardRate:{annual:"Perquintill",perBlock:"Perquintill"},Delegator:{delegations:"Vec",total:"Balance"},DelegationCounter:{round:"SessionIndex",counter:"u32"},DelegationDetails:{owner:"DelegatorIdOf",revoked:"bool",permissions:"Permissions"},DelegationHierarchyDetails:{ctypeHash:"CtypeHashOf"},DelegationStorageVersion:{_enum:["V1","V2"]},DidCreationDetails:{did:"DidIdentifierOf",submitter:"AccountId",newKeyAgreementKeys:"DidNewKeyAgreementKeys",newAssertionMethodKey:"Option",newCapabilityDelegationKey:"Option"},DidFragmentUpdateAction_ServiceEndpoints:{_enum:{Ignore:"Null",Change:"ServiceEndpoints",Delete:"Null"}},DidFragmentUpdateAction_DidVerificationKey:{_enum:{Ignore:"Null",Change:"DidVerificationKey",Delete:"Null"}},DidStorageVersion:{_enum:["V1","V2","V3"]},MaxDelegatorsPerCollator:"u32",MaxCollatorsPerDelegator:"u32",StakingStorageVersion:{_enum:["V1_0_0","V2_0_0","V3_0_0","V4","V5"]},MaxDelegatedAttestations:"u32",MaxClaims:"u32",MaxChildren:"u32",DidNewKeyAgreementKeys:"BoundedBTreeSet",DidKeyAgreementKeys:"BoundedBTreeSet",DidVerificationKeysToRevoke:"BoundedBTreeSet",MaxNewKeyAgreementKeys:"u32",MaxTotalKeyAgreementKeys:"u32",MaxVerificationKeysToRevoke:"u32",MaxPublicKeysPerDid:"u32",DidPublicKeyMap:"BoundedBTreeMap",Keys:"SessionKeys1",MinCollators:"u32",MaxTopCandidates:"u32",Candidate:{id:"AccountId",stake:"Balance",delegators:"Vec",total:"Balance",status:"CandidateStatus"},CandidateStatus:{_enum:{Active:"Null",Leaving:"SessionIndex"}},Deposit:{owner:"AccountId",amount:"Balance"}}},{minmax:[10720,10750],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"}}},{minmax:[10800,10899],types:{DidApiAccountId:"AccountId32",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}},{minmax:[10900,null],types:{DidApiAccountId:"PalletDidLookupLinkableAccountLinkableAccountId",RawDidLinkedInfo:{identifier:"AccountId32",accounts:"Vec",w3n:"Option",serviceEndpoints:"Vec",details:"DidDidDetails"},PublicCredentialFilter:{_enum:{ctypeHash:"Hash",attester:"AccountId32"}},PublicCredentialError:{_enum:["InvalidSubjectId"]},StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}]}},spec:{Crab:{alias:{},rpc:{},types:[{minmax:[0,0],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"H512",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"AccountId",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithCommission",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parent_hash:"H256",timestamp:"u64",number:"EthBlockNumber",author:"EthAddress",transaction_root:"H256",uncles_hash:"H256",extra_data:"Bytes",state_root:"H256",receipts_root:"H256",log_bloom:"Bloom",gas_used:"U256",gas_limit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16",Keys:"SessionKeys4",AccountInfo:"AccountInfoWithRefCount",LookupSource:"AccountId",StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},NominatorIndexCompact:"u32",ValidatorIndexCompact:"u16",OffchainAccuracyCompact:"PerU16",PerU16:"UInt<16, PerU16>",EthBlockNumber:"u64",DoubleNodeWithMerkleProof:{dag_nodes:"[H512;2]",proof:"Vec"},OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}},AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[1,41],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"H512",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"AccountId",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithCommission",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parent_hash:"H256",timestamp:"u64",number:"EthBlockNumber",author:"EthAddress",transaction_root:"H256",uncles_hash:"H256",extra_data:"Bytes",state_root:"H256",receipts_root:"H256",log_bloom:"Bloom",gas_used:"U256",gas_limit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16",Keys:"SessionKeys4",AccountInfo:"AccountInfoWithRefCount",LookupSource:"AccountId",StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},EthereumRelayHeaderParcel:{header:"EthereumHeader",mmrRoot:"H256"},OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}},EthereumReceiptProofThing:"(EthereumHeader, EthereumReceiptProof, MMRProof)",EthereumHeader:{parentHash:"H256",timestamp:"u64",number:"EthereumBlockNumber",author:"EthereumAddress",transactionsRoot:"H256",unclesHash:"H256",extraData:"Bytes",stateRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",gasUsed:"U256",gasLimit:"U256",difficulty:"U256",seal:"Vec",hash:"Option"},NominatorIndexCompact:"u32",ValidatorIndexCompact:"u16",OffchainAccuracyCompact:"PerU16",PerU16:"UInt<16, PerU16>",DoubleNodeWithMerkleProof:{dag_nodes:"[H512;2]",proof:"Vec"},EthBlockNumber:"u64",TcBlockNumber:"u64",GameId:"TcBlockNumber",EthereumHeaderThingWithProof:{header:"EthereumHeader",ethashProof:"Vec",mmrRoot:"H256",mmrProof:"Vec"},EthereumHeaderThing:{header:"EthereumHeader",mmrRoot:"H256"},RawHeaderThing:"Vec",OtherAddress:{_enum:{Eth:"EthereumAddress",Tron:"EthereumAddress"}},AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[42,43],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"H512",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"MultiAddress",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16",Keys:"SessionKeys4",AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithTripleRefCount:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},StakingBalanceT:{_enum:{RingBalance:"Balance",KtonBalance:"Balance"}},LookupSource:"MultiAddress",OtherSignature:{_enum:{Eth:"EcdsaSignature",Tron:"EcdsaSignature"}},AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[44,1210],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[1211,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},Darwinia:{alias:{},rpc:{},types:[{minmax:[0,22],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[23,24],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithTripleRefCount:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[25,1150],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:"{}",BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",moment:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"(H512, H512)",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"MultiAddress",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"EthereumBlockNumber",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",LookupSource:"MultiAddress",MultiAddress:"GenericMultiAddress",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},EthereumReceipt:{gasUsed:"U256",logBloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},Order:{lane:"LaneId",message:"MessageNonce",sent_time:"BlockNumber",confirm_time:"BlockNumber",assigned_relayers:"Vec"},RelayAuthorityT:{accountId:"AccountId",signer:"EthereumAddress",stake:"Balance",term:"BlockNumber"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[1160,1200],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[1210,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},"Darwinia Crab PC2":{alias:{},rpc:{},types:[{minmax:[0,28110],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[28140,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},"Darwinia PC2":{alias:{},rpc:{},types:[{minmax:[0,28110],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[28140,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},Equilibrium:{instances:{balances:["eq"]}},Genshiro:{instances:{balances:["gens"]}},Pangolin:{alias:{},rpc:{},types:[{minmax:[0,28110],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[28140,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},Pangoro:{alias:{},rpc:{},types:[{minmax:[0,28110],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}},{minmax:[28140,null],types:{UsableBalance:{usableBalance:"Balance"},Status:{_enum:{Free:null,Reserved:null}},LockIdentifier:"[u8; 8]",MessageId:"(LaneId, MessageNonce)",LaneId:"[u8; 4]",MessageNonce:"u64",CrabRuntimeMessagesDarwiniaMessageCrabToDarwiniaMessagesParameter:{_enum:{DarwiniaToCrabConversionRate:"FixedU128"}},FixedU128:"UInt<128, FixedU128>",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},MessagePayload:"Vec",TechnicalMember:"AccountId",BridgedHeaderHash:"Hash",BridgedBlockHash:"Hash",RawStorageProof:"Vec",DispatchErrorModule:"DispatchErrorModuleU8",BSCHeader:{parentHash:"H256",uncleHash:"H256",coinbase:"EthereumAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logBloom:"Bloom",difficulty:"U256",number:"u64",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixDigest:"H256",nonce:"Bytes"},BalanceInfo:{},BalanceLock:{id:"LockIdentifier",lockFor:"LockFor",lockReasons:"LockReasons"},LockFor:{_enum:{Common:"Common",Staking:"StakingLock"}},Common:{amount:"Balance"},StakingLock:{stakingAmount:"Balance",unbondings:"Vec"},Unbonding:{amount:"Balance",until:"BlockNumber"},RingBalance:"Balance",KtonBalance:"Balance",TsInMs:"u64",Power:"u32",DepositId:"U256",TimeDepositItem:{value:"Balance",startTime:"TsInMs",expireTime:"TsInMs"},ExposureT:{ownRingBalance:"Compact",ownKtonBalance:"Compact",ownPower:"Power",totalPower:"Power",others:"Vec"},Exposure:"ExposureT",IndividualExposure:{who:"AccountId",ringBalance:"Compact",ktonBalance:"Compact",power:"Power"},ElectionResultT:{electedStashes:"Vec",exposures:"Vec<(AccountId, ExposureT)>",compute:"ElectionCompute"},RKT:{r:"Balance",k:"Balance"},SpanRecord:{slashed:"RKT",paidOut:"RKT"},UnappliedSlash:{validator:"AccountId",own:"RKT",others:"Vec<(AccountId, RKT)>",reporters:"Vec",payout:"RKT"},MappedRing:"u128",EthereumTransactionIndex:"(H256, u64)",EthereumBlockNumber:"u64",Bloom:"[u8; 256; Bloom]",EthashProof:{dagNodes:"[H512; 2]",proof:"Vec"},LegacyReceipt:{gas_used:"U256",log_bloom:"Bloom",logs:"Vec",outcome:"TransactionOutcome"},LogEntry:{address:"Address",topics:"Vec",data:"Bytes"},TransactionOutcome:{_enum:{Unknown:"Null",StateRoot:"H256",StatusCode:"u8"}},EthereumNetwork:{_enum:{Mainnet:null,Ropsten:null}},EthereumReceiptProof:{index:"u64",proof:"Bytes",headerHash:"H256"},MMRProof:{memberLeafIndex:"u64",lastLeafIndex:"u64",proof:"Vec"},EcdsaSignature:"[u8; 65; EcdsaSignature]",Signature:"[u8;65]",TronAddress:"EthereumAddress",AddressT:"[u8; 20; AddressT]",Address:"[u8; 20; Address]",MerkleMountainRangeRootLog:{prefix:"[u8; 4; Prefix]",ParentMmrRoot:"Hash"},ChainProperties:{ss58Format:"Option",tokenDecimals:"Option>",tokenSymbol:"Option>"},Signer:"EthereumAddress",MMRRoot:"Hash",EcdsaAddress:"EthereumAddress",EcdsaMessage:"H256",RelayAuthoritySigner:"EthereumAddress",RelayAuthorityMessage:"EcdsaMessage",RelayAuthoritySignature:"EcdsaSignature",Term:"BlockNumber",OpCode:"[u8; 4; OpCode]",ElectionCompute:{_enum:["OnChain","Signed","Authority"]},ValidatorPrefs:"ValidatorPrefsWithBlocked",PriorRelayer:{id:"AccountId",fee:"Balance",validRange:"BlockNumber"},TokenMessageId:"[u8; 16; TokenMessageId]",EraIndex:"u32",RefCount:"u32",Reasons:{_enum:["Fee","Misc","All"]},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},EthereumAddress:"GenericEthereumAccountId",RedeemFor:{_enum:{Token:null,Deposit:null}},DarwiniaDemocracyVoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","SimpleMajority"]},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthAddress:"H160",TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthBloom:"H2048",EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},Fee:{amount:"Balance"},InProcessOrders:{orders:"Vec<(LaneId, MessageNonce)>"},MMRProofResult:{mmrSize:"u64",proof:"Text"},NodeIndex:"u64",MmrNodesPruningConfiguration:{step:"NodeIndex",progress:"NodeIndex",lastPosition:"NodeIndex"},ProxyType:{_enum:{Any:null,NonTransfer:null,Governance:null,Staking:null,IdentityJudgement:null,EthereumBridge:null}},Announcement:"ProxyAnnouncement",ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"},CrabRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},DarwiniaRuntimePalletsProxyProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","EthereumBridge"]},RelayHeaderId:"EthereumBlockNumber",RelayProofs:"EthereumRelayProofs",RelayVotingState:{ayes:"Vec",nays:"Vec"},RelayAffirmationId:{relayHeaderId:"RelayHeaderId",round:"u32",index:"u32"},EthereumRelayProofs:{ethashProof:"Vec",mmrProof:"Vec"},PowerOf:{power:"Power"},PalletStakingIndividualExposure:{who:"AccountId32",value:"Compact"},RewardPoint:"u32",SpanIndex:"u32",UnappliedSlashOther:"(AccountId, RKT)",AccountData:{free:"Balance",reserved:"Balance",freeKton:"Balance",reservedKton:"Balance"},LockReasons:{_enum:{Fee:null,Misc:null,All:null}},StakingLedgerT:{stash:"AccountId",active:"Compact",activeDepositRing:"Compact",activeKton:"Compact",depositItems:"Vec",ringStakingLock:"StakingLock",ktonStakingLock:"StakingLock",claimedRewards:"Vec"}}}]},VLN:{types:[{minmax:[0,null],types:{Asset:{_enum:{Collateral:"Collateral",Fiat:"Fiat",Usdv:null}},Collateral:{_enum:["Usdc"]},Fiat:{_enum:["Cop","Vez"]},CurrencyId:"Asset",OracleKey:"Asset",OracleValue:"FixedU128",CurrencyIdOf:"Asset",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",Share:"Permill"}}]},"VLN-PC":{types:[{minmax:[0,null],types:{Asset:{_enum:{Collateral:"Collateral",Fiat:"Fiat",Network:"NetworkAsset",Usdv:null}},Collateral:{_enum:["Usdc"]},Fiat:{_enum:["Cop","Vez"]},CurrencyId:"NetworkAsset",OracleKey:"Asset",OracleValue:"FixedU128",CurrencyIdOf:"NetworkAsset",Amount:"i64",AmountOf:"Amount",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",Share:"Permill",XCurrencyId:{chain_id:"ChainId",currency_id:"Bytes"},ChainId:{_enum:{RelayChain:null,Parachain:"ParaId"}},NetworkAsset:{_enum:["ACA","AUSD","DOT"]},BaseAsset:"CurrencyId",AssetPair:{base:"BaseAsset",quote:"CurrencyId"},PaymentMethod:{_enum:["BankX","BankY"]},RatePremiumType:"FixedU128",SwapKind:{_enum:{In:"SwapIn",Out:"SwapOut"}},SwapIn:{_enum:{Created:null,Accepted:"Vec",Rejected:"Vec",Confirmed:"Vec",Expired:null,Completed:null}},SwapOut:{_enum:{Created:null,Accepted:null,Rejected:"Vec",Confirmed:"Vec",Expired:null,Completed:null}},PairPrice:{pair:"AssetPair",price:"FixedU128"},Swap:{human:"AccountId",kind:"SwapKind",price:"PairPrice",amount:"FixedU128"},RateDetail:{rate:"FixedU128"}}}]},acala:{rpc:{dex:{getSupplyAmount:{description:"Get supply amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"targetCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getSupplyAmount",method:"getSupplyAmount",section:"dex"},getTargetAmount:{description:"Get target amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"supplyCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getTargetAmount",method:"getTargetAmount",section:"dex"}},evm:{call:{description:"eth call",params:[{name:"data",type:"CallRequest"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Raw",isSubscription:!1,jsonrpc:"evm_call",method:"call",section:"evm"},estimateResources:{description:"eth estimateResources",params:[{name:"from",type:"H160"},{name:"unsignedExtrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"EstimateResourcesResponse",isSubscription:!1,jsonrpc:"evm_estimateResources",method:"estimateResources",section:"evm"}},stakingPool:{getAvailableUnbonded:{description:"Get Available Unbonded",params:[{name:"account",type:"AccountId"}],type:"BalanceInfo",isSubscription:!1,jsonrpc:"stakingPool_getAvailableUnbonded",method:"getAvailableUnbonded",section:"stakingPool"},getLiquidStakingExchangeRate:{description:"get liquid staking exchange rate",params:[],type:"ExchangeRate",isSubscription:!1,jsonrpc:"stakingPool_getLiquidStakingExchangeRate",method:"getLiquidStakingExchangeRate",section:"stakingPool"}}},instances:{council:["generalCouncil"]},types:[{minmax:[600,699],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"LookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[700,719],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}},{minmax:[720,722],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[723,729],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[730,1007],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:4,KAR:128,KUSD:129,KSM:130,LKSM:131,CASH:140}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1008],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1009],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1010,1013],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[1014,1018],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}},{minmax:[1019,null],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}}],alias:{stakingPool:{Phase:"StakingPoolPhase"},nomineesElection:{UnlockChunk:"HomaUnlockChunk"},evm:{AccountInfo:"EvmAccountInfo",ContractInfo:"EvmContractInfo"},rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}},mandala:{rpc:{dex:{getSupplyAmount:{description:"Get supply amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"targetCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getSupplyAmount",method:"getSupplyAmount",section:"dex"},getTargetAmount:{description:"Get target amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"supplyCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getTargetAmount",method:"getTargetAmount",section:"dex"}},evm:{call:{description:"eth call",params:[{name:"data",type:"CallRequest"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Raw",isSubscription:!1,jsonrpc:"evm_call",method:"call",section:"evm"},estimateResources:{description:"eth estimateResources",params:[{name:"from",type:"H160"},{name:"unsignedExtrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"EstimateResourcesResponse",isSubscription:!1,jsonrpc:"evm_estimateResources",method:"estimateResources",section:"evm"}},stakingPool:{getAvailableUnbonded:{description:"Get Available Unbonded",params:[{name:"account",type:"AccountId"}],type:"BalanceInfo",isSubscription:!1,jsonrpc:"stakingPool_getAvailableUnbonded",method:"getAvailableUnbonded",section:"stakingPool"},getLiquidStakingExchangeRate:{description:"get liquid staking exchange rate",params:[],type:"ExchangeRate",isSubscription:!1,jsonrpc:"stakingPool_getLiquidStakingExchangeRate",method:"getLiquidStakingExchangeRate",section:"stakingPool"}}},instances:{council:["generalCouncil"]},types:[{minmax:[600,699],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"LookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[700,719],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}},{minmax:[720,722],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[723,729],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[730,1007],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:4,KAR:128,KUSD:129,KSM:130,LKSM:131,CASH:140}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1008],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1009],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1010,1013],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[1014,1018],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}},{minmax:[1019,null],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}}],alias:{stakingPool:{Phase:"StakingPoolPhase"},nomineesElection:{UnlockChunk:"HomaUnlockChunk"},evm:{AccountInfo:"EvmAccountInfo",ContractInfo:"EvmContractInfo"},rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}},karura:{rpc:{dex:{getSupplyAmount:{description:"Get supply amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"targetCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getSupplyAmount",method:"getSupplyAmount",section:"dex"},getTargetAmount:{description:"Get target amount",params:[{name:"supplyCurrencyId",type:"CurrencyId"},{name:"targetCurrencyId",type:"CurrencyId"},{name:"supplyCurrencyAmount",type:"BalanceRequest"}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"dex_getTargetAmount",method:"getTargetAmount",section:"dex"}},evm:{call:{description:"eth call",params:[{name:"data",type:"CallRequest"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Raw",isSubscription:!1,jsonrpc:"evm_call",method:"call",section:"evm"},estimateResources:{description:"eth estimateResources",params:[{name:"from",type:"H160"},{name:"unsignedExtrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"EstimateResourcesResponse",isSubscription:!1,jsonrpc:"evm_estimateResources",method:"estimateResources",section:"evm"}},stakingPool:{getAvailableUnbonded:{description:"Get Available Unbonded",params:[{name:"account",type:"AccountId"}],type:"BalanceInfo",isSubscription:!1,jsonrpc:"stakingPool_getAvailableUnbonded",method:"getAvailableUnbonded",section:"stakingPool"},getLiquidStakingExchangeRate:{description:"get liquid staking exchange rate",params:[],type:"ExchangeRate",isSubscription:!1,jsonrpc:"stakingPool_getLiquidStakingExchangeRate",method:"getLiquidStakingExchangeRate",section:"stakingPool"}}},instances:{council:["generalCouncil"]},types:[{minmax:[600,699],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"LookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[700,719],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:["ACA","AUSD","DOT","XBTC","LDOT","RENBTC"]},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}},{minmax:[720,722],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Homa:"Null"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[723,729],types:{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,BCG:11,KAR:128,KUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[730,1007],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:4,KAR:128,KUSD:129,KSM:130,LKSM:131,CASH:140}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1008],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1008,1009],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"}}},{minmax:[1010,1013],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV0",MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[1014,1018],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Weight:"WeightV1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress",MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}},{minmax:[1019,null],types:{Amount:"i128",AmountOf:"Amount",AuctionId:"u32",AuctionIdOf:"AuctionId",TokenSymbol:{_enum:{ACA:0,AUSD:1,DOT:2,LDOT:3,RENBTC:20,CASH:21,KAR:128,KUSD:129,KSM:130,LKSM:131,BNC:168,VSKSM:169,PHA:170,KINT:171,KBTC:172}},DexShare:{_enum:{Token:"TokenSymbol",Erc20:"EvmAddress"}},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(DexShare, DexShare)",ERC20:"EvmAddress",StableAssetPoolToken:"u32",LiquidCrowdloan:"u32",ForeignAsset:"u32"}},CurrencyIdOf:"CurrencyId",AirDropCurrencyId:{_enum:["KAR","ACA"]},AuthoritysOriginId:{_enum:["Root","Treasury","HonzonTreasury","HomaTreasury","TreasuryReserve"]},AcalaDataProviderId:{_enum:["Aggregated","Acala","Band"]},TradingPair:"(CurrencyId, CurrencyId)",OrmlCurrencyId:"CurrencyId",ChainBridgeChainId:"u8",AcalaAssetMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",minimalBalance:"Balance"},NumberOrHex:"u128",PalletBalanceOf:"Balance",CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},LiquidationStrategy:{_enum:["Auction","Exchange"]},OptionRate:"Option",OptionRatio:"Option",ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},RiskManagementParams:{maximumTotalDebitValue:"Balance",interestRatePerSec:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},CandidateInfoOf:"CandidateInfo",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},BalanceWrapper:{amount:"Balance"},BalanceRequest:{amount:"Balance"},TradingPairStatus:{_enum:{Disabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},BlockLimits:{maxGasLimit:"u64",maxStorageLimit:"u32"},Erc20Info:{address:"EvmAddress",name:"Vec",symbol:"Vec",decimals:"u8"},EstimateResourcesResponse:{gas:"u256",storage:"i32",weightFee:"u256"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option"},CodeInfo:{codeSize:"u32",refCount:"u32"},EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},EvmAddress:"H160",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},CallInfo:{exit_reason:"ExitReason",value:"Vec",used_gas:"U256",used_storage:"i32",logs:"Vec"},CreateInfo:{exit_reason:"ExitReason",value:"H160",used_gas:"U256",used_storage:"i32",logs:"Vec"},EthereumLog:{address:"H160",topics:"Vec",data:"Bytes"},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text",InvalidCode:"u8"}},ExitRevert:{_enum:["Reverted"]},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},AcalaStakingLedge:{bonded:"Compact",unlocking:"Vec"},AcalaUnlockChunk:{value:"Compact",era:"Compact"},RelaychainAccountId:"AccountId",SlashInfo:{validator:"RelaychainAccountId",relaychainTokenAmount:"Balance"},ValidatorBacking:{totalInsurance:"Balance",isFrozen:"bool"},Guarantee:{total:"Balance",bonded:"Balance",unbonding:"Option<(Balance, BlockNumber)>"},PoolId:{_enum:{Loans:"CurrencyId",Dex:"CurrencyId"}},PoolIdV0:{_enum:{LoansIncentive:"CurrencyId",DexIncentive:"CurrencyId",HomaIncentive:"Null",DexSaving:"CurrencyId",HomaValidatorAllowance:"AccountId"}},Position:{collateral:"Balance",debit:"Balance"},CID:"Vec",Attributes:"BTreeMap, Vec>",TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2,Mintable:4,ClassPropertiesMutable:8}},ClassData:{deposit:"Balance",properties:"Properties",attributes:"Attributes"},TokenData:{deposit:"Balance",attributes:"Attributes"},TokenId:"u64",TokenIdOf:"TokenId",NFTClassId:"u32",ClassIdOf:"ClassId",NFTBalance:"u128",NFTBalanceOf:"NFTBalance",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},NomineeId:"AccountId",HomaUnlockChunk:{value:"Balance",era:"EraIndex"},BondingLedger:{total:"Balance",active:"Balance",unlocking:"Vec"},OracleKey:"CurrencyId",OracleValue:"Price",AsOriginId:"AuthoritysOriginId",ProxyType:{_enum:["Any","CancelProxy","Governance","Auction","Swap","Loan"]},AtLeast64BitUnsigned:"u128",StableAssetPoolId:"u32",RelayChainBlockNumberOf:"RelayChainBlockNumber",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},StakingPoolPhase:{_enum:["Started","RelaychainUpdated","LedgerUpdated","Finished"]},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",Price:"FixedU128",PublicKey:"[u8; 20]",DestAddress:"Vec",PoolTokenIndex:"u32",AssetId:"CurrencyId",Keys:"SessionKeys1",Address:"GenericMultiAddress",LookupSource:"GenericMultiAddress"}}],alias:{stakingPool:{Phase:"StakingPoolPhase"},nomineesElection:{UnlockChunk:"HomaUnlockChunk"},evm:{AccountInfo:"EvmAccountInfo",ContractInfo:"EvmContractInfo"},rewards:{OrmlCurrencyId:"CurrencyId"},oracle:{DataProviderId:"AcalaDataProviderId"},chainBridge:{ChainId:"ChainBridgeChainId"}}},ajuna:{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress"}}]},altair:{types:[{minmax:[0,null],types:{ParachainAccountIdOf:"AccountId",Proof:{leafHash:"Hash",sortedHashes:"Vec"},ProxyType:{_enum:["Any","NonTransfer","Governance","_Staking","NonProxy"]},RelayChainAccountId:"AccountId",RootHashOf:"Hash"}}]},amplitude:{rpc:{issue:{getIssueRequests:{description:"Get all issue requests for a particular account",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"issue_getIssueRequests",method:"getIssueRequests",section:"issue"},getVaultIssueRequests:{description:"Get all issue requests for a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"issue_getVaultIssueRequests",method:"getVaultIssueRequests",section:"issue"}},redeem:{getRedeemRequests:{description:"Get all redeem requests for a particular account",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"redeem_getRedeemRequests",method:"getRedeemRequests",section:"redeem"},getVaultRedeemRequests:{description:"Get all redeem requests for a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"redeem_getVaultRedeemRequests",method:"getVaultRedeemRequests",section:"redeem"}},replace:{getOldVaultReplaceRequests:{description:"Get all replace requests from a particular vault",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"replace_getOldVaultReplaceRequests",method:"getOldVaultReplaceRequests",section:"replace"},getNewVaultReplaceRequests:{description:"Get all replace requests to a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"replace_getNewVaultReplaceRequests",method:"getNewVaultReplaceRequests",section:"replace"}},oracle:{currencyToUsd:{description:"Get the USD value of a currency",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"oracle_currencyToUsd",method:"currencyToUsd",section:"oracle"},usdToCurrency:{description:"Get the currency value of a USD amount",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"oracle_usdToCurrency",method:"usdToCurrency",section:"oracle"},getExchangeRate:{description:"Get the exchange rate of the given currencyId to USD",params:[{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"UnsignedFixedPoint",isSubscription:!1,jsonrpc:"oracle_getExchangeRate",method:"getExchangeRate",section:"oracle"}},vaultRegistry:{getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultCollateral",method:"getVaultCollateral",section:"vaultRegistry"},getVaultsByAccountId:{description:"Get all the vaultIds registered by a vault's accountId",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsByAccountId",method:"getVaultsByAccountId",section:"vaultRegistry"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultTotalCollateral",method:"getVaultTotalCollateral",section:"vaultRegistry"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getPremiumRedeemVaults",method:"getPremiumRedeemVaults",section:"vaultRegistry"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsWithIssuableTokens",method:"getVaultsWithIssuableTokens",section:"vaultRegistry"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsWithRedeemableTokens",method:"getVaultsWithRedeemableTokens",section:"vaultRegistry"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getIssueableTokensFromVault",method:"getIssueableTokensFromVault",section:"vaultRegistry"},getCollateralizationFromVault:{description:"Get the collateralization rate of a vault",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"onlyIssued",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"FixedU128",isSubscription:!1,jsonrpc:"vaultRegistry_getCollateralizationFromVault",method:"getCollateralizationFromVault",section:"vaultRegistry"},getCollateralizationFromVaultAndCollateral:{description:"Get the collateralization rate of a vault and collateral",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"onlyIssued",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"FixedU128",isSubscription:!1,jsonrpc:"vaultRegistry_getCollateralizationFromVaultAndCollateral",method:"getCollateralizationFromVaultAndCollateral",section:"vaultRegistry"},getRequiredCollateralForWrapped:{description:"Get the minimum amount of collateral required for the given amount of token with the current threshold and exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getRequiredCollateralForWrapped",method:"getRequiredCollateralForWrapped",section:"vaultRegistry"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getRequiredCollateralForVault",method:"getRequiredCollateralForVault",section:"vaultRegistry"}},farming:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(SpacewalkPrimitivesCurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getFarmingRewards",method:"getFarmingRewards",section:"farming"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(SpacewalkPrimitivesCurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getGaugeRewards",method:"getGaugeRewards",section:"farming"}}},instances:{council:["generalCouncil"]},types:[{minmax:[0,null],types:{OracleKey:{},CurrencyId:{},NumberOrHex:"u128",BalanceWrapper:{amount:"String"},UnsignedFixedPoint:"u128",SpacewalkPrimitivesCurrencyId:{_enum:{Native:"Null",XCM:"u8",Stellar:"SpacewalkPrimitivesAsset",ZenlinkLPToken:"(u8,u8,u8,u8)"}},SpacewalkPrimitivesAsset:{_enum:{StellarNative:"Null",AlphaNum4:{code:"[u8;4]",issuer:"[u8;32]"},AlphaNum12:{code:"[u8;12]",issuer:"[u8;32]"}}},SpacewalkPrimitivesVaultId:{accountId:"AccountId32",currencies:"SpacewalkPrimitivesVaultCurrencyPair"},SpacewalkPrimitivesVaultCurrencyPair:{collateral:"SpacewalkPrimitivesCurrencyId",wrapped:"SpacewalkPrimitivesCurrencyId"},PoolId:"u32"}}],alias:{}},apron:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},"ares-gladios":{types:[{minmax:[0,null],types:{Address:"MultiAddress",AskPeriodNum:"u64",AskPointNum:"u32",AuthorityAres:"AccountId",AccountParticipateEstimates:{account:"AccountId",end:"BlockNumber",estimates:"Option",range_index:"Option",bsc_address:"Option",multiplier:"MultiplierOption",reward:"u128"},AresPriceData:{price:"u64",account_id:"AccountId",create_bn:"BlockNumber",fraction_len:"FractionLength",raw_number:"JsonNumberValue",timestamp:"u64"},BalanceOf:"Balance",ChooseWinnersPayload:{block_number:"BlockNumber",winners:"Vec",public:"AccountId",estimates_id:"u64",symbol:"Bytes",price:"(u64, FractionLength)"},EstimatesState:{_enum:["InActive","Active","WaitingPayout","Completed"]},EstimatesType:{_enum:["DEVIATION","RANGE"]},FractionLength:"u32",HttpError:{_enum:{IoErr:"Bytes",TimeOut:"Bytes",StatusErr:"(Bytes,u16)",ParseErr:"Bytes"}},HttpErrTracePayload:{trace_data:"HttpErrTraceData",auth:"AuthorityId",public:"MultiSigner"},HttpErrTraceData:{block_number:"BlockNumber",err_auth:"AuthorityId",err_status:"HttpError",tip:"Bytes"},JsonNumberValue:{integer:"u64",fraction:"u64",fraction_length:"u32",exponent:"u32"},Keys:"SessionKeys3",LookupSource:"MultiAddress",MultiplierOption:{_enum:["Base1","Base2","Base5"]},OcwControlData:{need_verifier_check:"bool",open_free_price_reporter:"bool",open_paid_price_reporter:"bool"},OffchainSignature:"MultiSignature",PaidValue:{create_bn:"BlockNumber",amount:"BalanceOf",is_income:"bool"},PurchasedId:"Bytes",PriceKey:"Vec",PriceToken:"Bytes",PreCheckPayload:{block_number:"BlockNumber",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",auth:"AuthorityId",public:"MultiSigner"},PreCheckResultPayload:{block_number:"BlockNumber",pre_check_list:"Vec",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",public:"MultiSigner"},PreCheckCompareLog:{chain_avg_price_list:"BTreeMap",validator_up_price_list:"BTreeMap",raw_precheck_list:"Vec"},PreCheckStruct:{price_key:"Vec",number_val:"JsonNumberValue",max_offset:"Percent",timestamp:"u64"},PricePayloadSubPrice:"(PriceKey, u64, FractionLength, JsonNumberValue, u64)",PricePayloadSubJumpBlock:"(PriceKey, RequestInterval)",PricePayload:{block_number:"BlockNumber",price:"Vec",jump_block:"Vec",auth:"AuthorityId",public:"MultiSigner"},PreCheckStatus:{_enum:["Review","Prohibit","Pass"]},PurchasedRequestData:{account_id:"AccountId",offer:"BalanceOf",create_bn:"BlockNumber",submit_threshold:"u8",max_duration:"u64",request_keys:"Vec>"},PurchasedPricePayload:{block_number:"BlockNumber",purchase_id:"Vec",price:"Vec",auth:"AuthorityId",public:"MultiSigner"},PurchasedAvgPriceData:{create_bn:"u64",reached_type:"u8",price_data:"(u64, FractionLength)"},PurchasedDefaultData:{submit_threshold:"u8",max_duration:"u64",avg_keep_duration:"u64"},PurchasedForceCleanPayload:{BlockNumber:"BlockNumber",purchase_id_list:"Vec>",auth:"AuthorityId",public:"MultiSigner"},PurchaseId:"Vec",Releases:{_enum:["V1_0_0_Ancestral","V1_0_1_HttpErrUpgrade","V1_1_0_HttpErrUpgrade","V1_2_0"]},RequestInterval:"u8",StatusErr:"(u16)",SymbolEstimatesConfig:{symbol:"Bytes",estimates_type:"EstimatesType",id:"u64",ticket_price:"Balance",symbol_completed_price:"u64",symbol_fraction:"FractionLength",start:"BlockNumber",end:"BlockNumber",distribute:"BlockNumber",deviation:"Option",range:"Option>",total_reward:"Balance",state:"EstimatesState"}}}]},"ares-mars":{types:[{minmax:[0,null],types:{Address:"MultiAddress",AskPeriodNum:"u64",AskPointNum:"u32",AuthorityAres:"AccountId",AccountParticipateEstimates:{account:"AccountId",end:"BlockNumber",estimates:"Option",range_index:"Option",eth_address:"Option",multiplier:"MultiplierOption",reward:"u128"},AresPriceData:{price:"u64",account_id:"AccountId",create_bn:"BlockNumber",fraction_len:"FractionLength",raw_number:"JsonNumberValue",timestamp:"u64"},BalanceOf:"Balance",ChooseWinnersPayload:{block_number:"BlockNumber",winners:"Vec",public:"AccountId",estimates_config:"Bytes",symbol:"Bytes",price:"(u64, FractionLength)"},EstimatesState:{_enum:["InActive","Active","WaitingPayout","Completed"]},EstimatesType:{_enum:["DEVIATION","RANGE"]},FractionLength:"u32",HttpError:{_enum:{IoErr:"Bytes",TimeOut:"Bytes",StatusErr:"(Bytes,u16)",ParseErr:"Bytes"}},HttpErrTracePayload:{trace_data:"HttpErrTraceData",auth:"AuthorityId",public:"MultiSigner"},HttpErrTraceData:{block_number:"BlockNumber",err_auth:"AuthorityId",err_status:"HttpError",tip:"Bytes"},JsonNumberValue:{integer:"u64",fraction:"u64",fraction_length:"u32",exponent:"u32"},Keys:"SessionKeys4",LookupSource:"MultiAddress",MultiplierOption:{_enum:["Base1","Base2","Base5"]},OcwControlData:{need_verifier_check:"bool",open_free_price_reporter:"bool",open_paid_price_reporter:"bool"},OffchainSignature:"MultiSignature",PaidValue:{create_bn:"BlockNumber",amount:"BalanceOf",is_income:"bool"},PurchasedId:"Bytes",PriceKey:"Vec",PriceToken:"Bytes",PreCheckPayload:{block_number:"BlockNumber",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",auth:"AuthorityId",public:"MultiSigner"},PreCheckResultPayload:{block_number:"BlockNumber",pre_check_list:"Vec",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",public:"MultiSigner"},PreCheckCompareLog:{chain_avg_price_list:"BTreeMap",validator_up_price_list:"BTreeMap",raw_precheck_list:"Vec"},PreCheckStruct:{price_key:"Vec",number_val:"JsonNumberValue",max_offset:"Percent",timestamp:"u64"},PricePayloadSubPrice:"(PriceKey, u64, FractionLength, JsonNumberValue, u64)",PricePayloadSubJumpBlock:"(PriceKey, RequestInterval)",PricePayload:{block_number:"BlockNumber",price:"Vec",jump_block:"Vec",auth:"AuthorityId",public:"MultiSigner"},PreCheckStatus:{_enum:["Review","Prohibit","Pass"]},PurchasedRequestData:{account_id:"AccountId",offer:"BalanceOf",create_bn:"BlockNumber",submit_threshold:"u8",max_duration:"u64",request_keys:"Vec>"},PurchasedPricePayload:{block_number:"BlockNumber",purchase_id:"Vec",price:"Vec",auth:"AuthorityId",public:"MultiSigner"},PurchasedAvgPriceData:{create_bn:"u64",reached_type:"u8",price_data:"(u64, FractionLength)"},PurchasedDefaultData:{submit_threshold:"u8",max_duration:"u64",avg_keep_duration:"u64"},PurchasedForceCleanPayload:{BlockNumber:"BlockNumber",purchase_id_list:"Vec>",auth:"AuthorityId",public:"MultiSigner"},PurchaseId:"Vec",Releases:{_enum:["V1_0_0_Ancestral","V1_0_1_HttpErrUpgrade","V1_1_0_HttpErrUpgrade","V1_2_0"]},RequestInterval:"u8",StatusErr:"(u16)",SymbolEstimatesConfig:{symbol:"Bytes",estimates_type:"EstimatesType",id:"u64",ticket_price:"Balance",symbol_completed_price:"u64",symbol_fraction:"FractionLength",start:"BlockNumber",end:"BlockNumber",distribute:"BlockNumber",deviation:"Option",range:"Option>",total_reward:"Balance",state:"EstimatesState"}}}]},"ares-odyssey":{types:[{minmax:[0,null],types:{Address:"MultiAddress",AskPeriodNum:"u64",AskPointNum:"u32",AuthorityAres:"AccountId",AccountParticipateEstimates:{account:"AccountId",end:"BlockNumber",estimates:"Option",range_index:"Option",eth_address:"Option",multiplier:"MultiplierOption",reward:"u128"},AresPriceData:{price:"u64",account_id:"AccountId",create_bn:"BlockNumber",fraction_len:"FractionLength",raw_number:"JsonNumberValue",timestamp:"u64"},BalanceOf:"Balance",ChooseWinnersPayload:{block_number:"BlockNumber",winners:"Vec",public:"AccountId",estimates_config:"Bytes",symbol:"Bytes",price:"(u64, FractionLength)"},EstimatesState:{_enum:["InActive","Active","WaitingPayout","Completed"]},EstimatesType:{_enum:["DEVIATION","RANGE"]},FractionLength:"u32",HttpError:{_enum:{IoErr:"Bytes",TimeOut:"Bytes",StatusErr:"(Bytes,u16)",ParseErr:"Bytes"}},HttpErrTracePayload:{trace_data:"HttpErrTraceData",auth:"AuthorityId",public:"MultiSigner"},HttpErrTraceData:{block_number:"BlockNumber",err_auth:"AuthorityId",err_status:"HttpError",tip:"Bytes"},JsonNumberValue:{integer:"u64",fraction:"u64",fraction_length:"u32",exponent:"u32"},Keys:"SessionKeys4",LookupSource:"MultiAddress",MultiplierOption:{_enum:["Base1","Base2","Base5"]},OcwControlData:{need_verifier_check:"bool",open_free_price_reporter:"bool",open_paid_price_reporter:"bool"},OffchainSignature:"MultiSignature",PaidValue:{create_bn:"BlockNumber",amount:"BalanceOf",is_income:"bool"},PurchasedId:"Bytes",PriceKey:"Vec",PriceToken:"Bytes",PreCheckPayload:{block_number:"BlockNumber",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",auth:"AuthorityId",public:"MultiSigner"},PreCheckResultPayload:{block_number:"BlockNumber",pre_check_list:"Vec",pre_check_stash:"AccountId",pre_check_auth:"AuthorityId",public:"MultiSigner"},PreCheckCompareLog:{chain_avg_price_list:"BTreeMap",validator_up_price_list:"BTreeMap",raw_precheck_list:"Vec"},PreCheckStruct:{price_key:"Vec",number_val:"JsonNumberValue",max_offset:"Percent",timestamp:"u64"},PricePayloadSubPrice:"(PriceKey, u64, FractionLength, JsonNumberValue, u64)",PricePayloadSubJumpBlock:"(PriceKey, RequestInterval)",PricePayload:{block_number:"BlockNumber",price:"Vec",jump_block:"Vec",auth:"AuthorityId",public:"MultiSigner"},PreCheckStatus:{_enum:["Review","Prohibit","Pass"]},PurchasedRequestData:{account_id:"AccountId",offer:"BalanceOf",create_bn:"BlockNumber",submit_threshold:"u8",max_duration:"u64",request_keys:"Vec>"},PurchasedPricePayload:{block_number:"BlockNumber",purchase_id:"Vec",price:"Vec",auth:"AuthorityId",public:"MultiSigner"},PurchasedAvgPriceData:{create_bn:"u64",reached_type:"u8",price_data:"(u64, FractionLength)"},PurchasedDefaultData:{submit_threshold:"u8",max_duration:"u64",avg_keep_duration:"u64"},PurchasedForceCleanPayload:{BlockNumber:"BlockNumber",purchase_id_list:"Vec>",auth:"AuthorityId",public:"MultiSigner"},PurchaseId:"Vec",Releases:{_enum:["V1_0_0_Ancestral","V1_0_1_HttpErrUpgrade","V1_1_0_HttpErrUpgrade","V1_2_0"]},RequestInterval:"u8",StatusErr:"(u16)",SymbolEstimatesConfig:{symbol:"Bytes",estimates_type:"EstimatesType",id:"u64",ticket_price:"Balance",symbol_completed_price:"u64",symbol_fraction:"FractionLength",start:"BlockNumber",end:"BlockNumber",distribute:"BlockNumber",deviation:"Option",range:"Option>",total_reward:"Balance",state:"EstimatesState"}}}]},asgard:{rpc:{oracle:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option",isSubscription:!1,jsonrpc:"oracle_getValue",method:"getValue",section:"oracle"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>",isSubscription:!1,jsonrpc:"oracle_getAllValues",method:"getAllValues",section:"oracle"}},farming:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getFarmingRewards",method:"getFarmingRewards",section:"farming"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getGaugeRewards",method:"getGaugeRewards",section:"farming"}},flexibleFee:{getFeeTokenAndAmount:{description:"Get charging token type and amount in terms of flexible transaction fee.",params:[{name:"who",type:"AccountId"},{name:"extrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(CurrencyId, U256)",isSubscription:!1,jsonrpc:"flexibleFee_getFeeTokenAndAmount",method:"getFeeTokenAndAmount",section:"flexibleFee"}},salp:{getContribution:{description:"salp getContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getContribution",method:"getContribution",section:"salp"},getLiteContribution:{description:"salp getLiteContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getLiteContribution",method:"getLiteContribution",section:"salp"}},vtokenMint:{getVtokenMintRate:{description:"Get current vtoken mint rate.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"vtokenMint_getVtokenMintRate",method:"getVtokenMintRate",section:"vtokenMint"}},zenlinkProtocol:{getAllAssets:{description:"zenlinkProtocol getAllAssets",params:[{name:"at",type:"Hash",isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAllAssets",method:"getAllAssets",section:"zenlinkProtocol"},getBalance:{description:"zenlinkProtocol getBalance",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"account",type:"AccountId"},{name:"at",type:"Hash",isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"zenlinkProtocol_getBalance",method:"getBalance",section:"zenlinkProtocol"},getSovereignsInfo:{description:"Get the ownership of a certain currency for each parachain.",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(u32, AccountId, String)",isSubscription:!1,jsonrpc:"zenlinkProtocol_getSovereignsInfo",method:"getSovereignsInfo",section:"zenlinkProtocol"},getPairByAssetId:{description:"Get the detailed information of a particular exchange pair.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"PairInfo",isSubscription:!1,jsonrpc:"zenlinkProtocol_getPairByAssetId",method:"getPairByAssetId",section:"zenlinkProtocol"},getAmountInPrice:{description:"Get the output token amount for an exact input token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountInPrice",method:"getAmountInPrice",section:"zenlinkProtocol"},getAmountOutPrice:{description:"Get the input token amount for an exact output token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountOutPrice",method:"getAmountOutPrice",section:"zenlinkProtocol"},getEstimateLptoken:{description:"Get the estimated number of LP token acquired given the desired and minimum amount for both in-token and out-token.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"amount_0_desired",type:"ZenlinkAssetBalance"},{name:"amount_1_desired",type:"ZenlinkAssetBalance"},{name:"amount_0_min",type:"ZenlinkAssetBalance"},{name:"amount_1_min",type:"ZenlinkAssetBalance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getEstimateLptoken",method:"getEstimateLptoken",section:"zenlinkProtocol"}},liquidityMining:{getRewards:{description:"Get the rewards users deserve",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"pallet_instance",type:"U32"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"liquidityMining_getRewards",method:"getRewards",section:"liquidityMining"}},stablePool:{getSwapOutputAmount:{description:"stablePool getSwapOutputAmount",params:[{name:"pool_id",type:"U32"},{name:"currency_id_in",type:"U32"},{name:"currency_id_out",type:"U32"},{name:"amount",type:"Balance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"stablePool_getSwapOutputAmount",method:"getSwapOutputAmount",section:"stablePool"}}},types:[{minmax:[0,901],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,ETH:5,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",MultiLocation:"MultiLocationV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[902,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,ETH:5,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",MultiLocation:"MultiLocationV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}}],alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}},astar:{types:[{minmax:[0,null],types:{Keys:"AccountId",Address:"MultiAddress",LookupSource:"MultiAddress",AmountOf:"Amount",Amount:"i128",SmartContract:{_enum:{Evm:"H160",Wasm:"AccountId"}},EraStakingPoints:{total:"Balance",stakers:"BTreeMap",formerStakedEra:"EraIndex",claimedRewards:"Balance"},EraRewardAndStake:{rewards:"Balance",staked:"Balance"},EraIndex:"u32"}}]},automata:{types:[{minmax:[0,null],types:{ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus"},BridgeTokenId:"U256",BridgeChainId:"u8",VestingPlan:{start_time:"u64",cliff_duration:"u64",total_duration:"u64",interval:"u64",initial_amount:"Balance",total_amount:"Balance",vesting_during_cliff:"bool"},ProposalId:"u32",ProjectId:"u32",ChainIndex:"u32",Protocol:{_enum:["Solidity","Substrate"]},Chain:{_protocol:"Protocol"},CrossChainAccount:{_enum:{Solidity:"H160",Substrate:"AccountId"}},IpfsHash:"Text",SolidityStrategy:{_enum:{ERC20Balance:"H160"}},SubstrateStrategy:{_enum:["NativeBalance"]},Strategy:{_enum:{Solidity:"SolidityStrategy",Substrate:"SubstrateStrategy"}},Workspace:{_chain:"ChainIndex",strategies:"Vec"},UserGroup:{owner:"CrossChainAccount",admins:"Vec",maintainers:"Vec",proposers:"Option>"},Project:{usergroup:"UserGroup",data:"IpfsHash",workspaces:"Vec"},VotingFormat:{_enum:["SingleChoice","SplitVote"]},OptionIndex:"u8",PrivacyLevel:{_enum:{Opaque:"u8",Rank:"Null",Private:"Null",Public:"Null",Mixed:"Null"}},VotingPower:"U256",DAOProposalState:{finalized:"bool",snapshots:"Vec>",blacklisted:"bool",votes:"Vec",pub_voters:"Option",updates:"u32"},DAOProposal:{_author:"CrossChainAccount",_voting_format:"VotingFormat",_option_count:"OptionIndex",_data:"IpfsHash",_privacy:"PrivacyLevel",_start:"u64",_end:"u64",_frequency:"Option",_workspaces:"Vec",state:"DAOProposalState"},VoteUpdate:{project:"ProjectId",proposal:"ProposalId",votes:"Vec",pub_voters:"Option"}}}]},bajun:{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress"}}]},basilisk:{alias:{tokens:{AccountData:"OrmlAccountData"}},types:[{minmax:[0,null],types:{AssetPair:{asset_in:"AssetId",asset_out:"AssetId"},Amount:"i128",AmountOf:"Amount",Address:"AccountId",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},Fee:{numerator:"u32",denominator:"u32"},BalanceInfo:{amount:"Balance",assetId:"AssetId"},Chain:{genesisHash:"Vec",lastBlockHash:"Vec"},Currency:"AssetId",CurrencyId:"AssetId",CurrencyIdOf:"AssetId",Intention:{who:"AccountId",asset_sell:"AssetId",asset_buy:"AssetId",amount:"Balance",discount:"bool",sell_or_buy:"IntentionType"},IntentionId:"Hash",IntentionType:{_enum:["SELL","BUY"]},LookupSource:"AccountId",Price:"Balance",ClassId:"u64",TokenId:"u64",ClassData:{is_pool:"bool"},TokenData:{locked:"bool"},ClassInfo:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"ClassData"},TokenInfo:{metadata:"Vec",owner:"AccountId",data:"TokenData"},ClassInfoOf:"ClassInfo",TokenInfoOf:"TokenInfo",ClassIdOf:"ClassId",TokenIdOf:"TokenId",OrderedSet:"Vec",VestingSchedule:{start:"BlockNumber",period:"BlockNumber",period_count:"u32",per_period:"Compact"},VestingScheduleOf:"VestingSchedule",LBPWeight:"u32",WeightCurveType:{_enum:["Linear"]},PoolId:"AccountId",BalanceOf:"Balance",AssetType:{_enum:{Token:"Null",PoolShare:"(AssetId,AssetId)"}},Pool:{owner:"AccountId",start:"BlockNumber",end:"BlockNumber",assets:"AssetPair",initial_weights:"LBPWeight",final_weights:"LBPWeight",weight_curve:"WeightCurveType",pausable:"bool",paused:"bool",fee:"Fee",fee_receiver:"AccountId"},AssetDetails:{name:"Vec",asset_type:"AssetType",existential_deposit:"Balance",locked:"bool"},AssetDetailsT:"AssetDetails",AssetMetadata:{symbol:"Vec",decimals:"u8"},AssetInstance:"AssetInstanceV1",MultiLocation:"MultiLocationV1",MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1"}}]},beresheet:{alias:{voting:{Tally:"VotingTally"}},types:[{minmax:[0,31],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",Keys:"SessionKeys4",StakingLedger:"StakingLedgerTo240",Votes:"VotesTo230",ReferendumInfo:"ReferendumInfoTo239",Weight:"u32",DispatchInfo:"DispatchInfoTo244",OpenTip:"OpenTipTo225",ContractExecResult:"ContractExecResultTo255",CompactAssignments:"CompactAssignmentsTo257",RewardDestination:"RewardDestinationTo257",RefCount:"RefCountTo259",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[32,38],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",CompactAssignments:"CompactAssignmentsTo257",ContractExecResult:"ContractExecResultTo255",RewardDestination:"RewardDestinationTo257",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[39,41],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[42,46],types:{Balance2:"u128",ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"},VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",AccountInfo:"AccountInfoWithRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"}},{minmax:[47,null],types:{Balance2:"u128",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"},VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",CID:"Vec",Properties:{_set:{Transferable:1,Burnable:2}},ClassData:{deposit:"Balance",properties:"Properties"},TokenData:{deposit:"Balance"},ClassInfo:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"ClassData"},ClassInfoOf:"ClassInfo",TokenInfo:{metadata:"Vec",owner:"AccountId",data:"TokenData"},TokenInfoOf:"TokenInfo",TokenId:"u64",ClassIdOf:"ClassId",TokenIdOf:"TokenId",Amount:"i128",AmountOf:"Amount",Approval:{amount:"Balance",deposit:"Balance"},ApprovalKey:{owner:"AccountId",delegate:"AccountId"},Commitment:"ScalarData",CurrencyId:"u64",CurrencyIdOf:"CurrencyId",DustHandlerType:{_enum:{Burn:"Null",Transfer:"AccountId"}},HashFunction:{_enum:["PoseidonDefault","PoseidonExp3","PoseidonExp5","PoseidonExp17","MiMC","Blake2","Sha256"]},Manager:{accountId:"AccountId",required:"bool"},MerkleTree:{leaf_count:"u32",max_leaves:"u32",depth:"u8",root_hash:"ScalarData",edge_nodes:"Vec",hasher:"HashFunction",should_store_leaves:"bool"},MixerInfo:{minimum_deposit_length_for_reward:"BlockNumber",fixed_deposit_size:"Balance",currency_id:"CurrencyIdOf"},Nullifier:"ScalarData",ScalarData:"[u8; 32]",TokenDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"Balance",min_balance:"Balance",approvals:"u32",is_frozen:"bool",dust_type:"DustHandlerType"},TokenMetadata:{deposit:"Balance",name:"Vec",symbol:"Vec",decimals:"u8",is_frozen:"bool"},TreeId:"u32",WithdrawProof:{mixer_id:"TreeId",cached_block:"BlockNumber",cached_root:"ScalarData",comms:"Vec",nullifier_hash:"ScalarData",proof_bytes:"Vec",leaf_index_commitments:"Vec",proof_commitments:"Vec",recipient:"Option",relayer:"Option"},ETHBlock:{inner:"Block"},ETHReceipts:{inner:"Vec"},ETHTxStatuses:{inner:"Vec"},AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"}}]},bifrost:{rpc:{oracle:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option",isSubscription:!1,jsonrpc:"oracle_getValue",method:"getValue",section:"oracle"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>",isSubscription:!1,jsonrpc:"oracle_getAllValues",method:"getAllValues",section:"oracle"}},farming:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getFarmingRewards",method:"getFarmingRewards",section:"farming"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getGaugeRewards",method:"getGaugeRewards",section:"farming"}},flexibleFee:{getFeeTokenAndAmount:{description:"Get charging token type and amount in terms of flexible transaction fee.",params:[{name:"who",type:"AccountId"},{name:"extrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(CurrencyId, U256)",isSubscription:!1,jsonrpc:"flexibleFee_getFeeTokenAndAmount",method:"getFeeTokenAndAmount",section:"flexibleFee"}},salp:{getContribution:{description:"salp getContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getContribution",method:"getContribution",section:"salp"},getLiteContribution:{description:"salp getLiteContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getLiteContribution",method:"getLiteContribution",section:"salp"}},vtokenMint:{getVtokenMintRate:{description:"Get current vtoken mint rate.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"vtokenMint_getVtokenMintRate",method:"getVtokenMintRate",section:"vtokenMint"}},zenlinkProtocol:{getAllAssets:{description:"zenlinkProtocol getAllAssets",params:[{name:"at",type:"Hash",isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAllAssets",method:"getAllAssets",section:"zenlinkProtocol"},getBalance:{description:"zenlinkProtocol getBalance",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"account",type:"AccountId"},{name:"at",type:"Hash",isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"zenlinkProtocol_getBalance",method:"getBalance",section:"zenlinkProtocol"},getSovereignsInfo:{description:"Get the ownership of a certain currency for each parachain.",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(u32, AccountId, String)",isSubscription:!1,jsonrpc:"zenlinkProtocol_getSovereignsInfo",method:"getSovereignsInfo",section:"zenlinkProtocol"},getPairByAssetId:{description:"Get the detailed information of a particular exchange pair.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"PairInfo",isSubscription:!1,jsonrpc:"zenlinkProtocol_getPairByAssetId",method:"getPairByAssetId",section:"zenlinkProtocol"},getAmountInPrice:{description:"Get the output token amount for an exact input token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountInPrice",method:"getAmountInPrice",section:"zenlinkProtocol"},getAmountOutPrice:{description:"Get the input token amount for an exact output token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountOutPrice",method:"getAmountOutPrice",section:"zenlinkProtocol"},getEstimateLptoken:{description:"Get the estimated number of LP token acquired given the desired and minimum amount for both in-token and out-token.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"amount_0_desired",type:"ZenlinkAssetBalance"},{name:"amount_1_desired",type:"ZenlinkAssetBalance"},{name:"amount_0_min",type:"ZenlinkAssetBalance"},{name:"amount_1_min",type:"ZenlinkAssetBalance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getEstimateLptoken",method:"getEstimateLptoken",section:"zenlinkProtocol"}},liquidityMining:{getRewards:{description:"Get the rewards users deserve",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"pallet_instance",type:"U32"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"liquidityMining_getRewards",method:"getRewards",section:"liquidityMining"}},stablePool:{getSwapOutputAmount:{description:"stablePool getSwapOutputAmount",params:[{name:"pool_id",type:"U32"},{name:"currency_id_in",type:"U32"},{name:"currency_id_out",type:"U32"},{name:"amount",type:"Balance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"stablePool_getSwapOutputAmount",method:"getSwapOutputAmount",section:"stablePool"}}},types:[{minmax:[0,901],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",MultiLocation:"MultiLocationV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[902,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",MultiLocation:"MultiLocationV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}}],alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}},"bifrost-parachain":{rpc:{oracle:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option",isSubscription:!1,jsonrpc:"oracle_getValue",method:"getValue",section:"oracle"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>",isSubscription:!1,jsonrpc:"oracle_getAllValues",method:"getAllValues",section:"oracle"}},farming:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getFarmingRewards",method:"getFarmingRewards",section:"farming"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getGaugeRewards",method:"getGaugeRewards",section:"farming"}},flexibleFee:{getFeeTokenAndAmount:{description:"Get charging token type and amount in terms of flexible transaction fee.",params:[{name:"who",type:"AccountId"},{name:"extrinsic",type:"Bytes"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(CurrencyId, U256)",isSubscription:!1,jsonrpc:"flexibleFee_getFeeTokenAndAmount",method:"getFeeTokenAndAmount",section:"flexibleFee"}},salp:{getContribution:{description:"salp getContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getContribution",method:"getContribution",section:"salp"},getLiteContribution:{description:"salp getLiteContribution",params:[{name:"index",type:"ParaId"},{name:"who",type:"AccountIdOf"}],type:"(Balance, ContributionStatus)",isSubscription:!1,jsonrpc:"salp_getLiteContribution",method:"getLiteContribution",section:"salp"}},vtokenMint:{getVtokenMintRate:{description:"Get current vtoken mint rate.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"vtokenMint_getVtokenMintRate",method:"getVtokenMintRate",section:"vtokenMint"}},zenlinkProtocol:{getAllAssets:{description:"zenlinkProtocol getAllAssets",params:[{name:"at",type:"Hash",isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAllAssets",method:"getAllAssets",section:"zenlinkProtocol"},getBalance:{description:"zenlinkProtocol getBalance",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"account",type:"AccountId"},{name:"at",type:"Hash",isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"zenlinkProtocol_getBalance",method:"getBalance",section:"zenlinkProtocol"},getSovereignsInfo:{description:"Get the ownership of a certain currency for each parachain.",params:[{name:"asset_id",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(u32, AccountId, String)",isSubscription:!1,jsonrpc:"zenlinkProtocol_getSovereignsInfo",method:"getSovereignsInfo",section:"zenlinkProtocol"},getPairByAssetId:{description:"Get the detailed information of a particular exchange pair.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"PairInfo",isSubscription:!1,jsonrpc:"zenlinkProtocol_getPairByAssetId",method:"getPairByAssetId",section:"zenlinkProtocol"},getAmountInPrice:{description:"Get the output token amount for an exact input token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountInPrice",method:"getAmountInPrice",section:"zenlinkProtocol"},getAmountOutPrice:{description:"Get the input token amount for an exact output token amount.",params:[{name:"supply",type:"ZenlinkAssetBalance"},{name:"path",type:"Vec"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getAmountOutPrice",method:"getAmountOutPrice",section:"zenlinkProtocol"},getEstimateLptoken:{description:"Get the estimated number of LP token acquired given the desired and minimum amount for both in-token and out-token.",params:[{name:"asset_0",type:"ZenlinkAssetId"},{name:"asset_1",type:"ZenlinkAssetId"},{name:"amount_0_desired",type:"ZenlinkAssetBalance"},{name:"amount_1_desired",type:"ZenlinkAssetBalance"},{name:"amount_0_min",type:"ZenlinkAssetBalance"},{name:"amount_1_min",type:"ZenlinkAssetBalance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"u128",isSubscription:!1,jsonrpc:"zenlinkProtocol_getEstimateLptoken",method:"getEstimateLptoken",section:"zenlinkProtocol"}},liquidityMining:{getRewards:{description:"Get the rewards users deserve",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"pallet_instance",type:"U32"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(CurrencyId, Balance)>",isSubscription:!1,jsonrpc:"liquidityMining_getRewards",method:"getRewards",section:"liquidityMining"}},stablePool:{getSwapOutputAmount:{description:"stablePool getSwapOutputAmount",params:[{name:"pool_id",type:"U32"},{name:"currency_id_in",type:"U32"},{name:"currency_id_out",type:"U32"},{name:"amount",type:"Balance"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"String",isSubscription:!1,jsonrpc:"stablePool_getSwapOutputAmount",method:"getSwapOutputAmount",section:"stablePool"}}},types:[{minmax:[0,901],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV0",Xcm:"XcmV0",XcmOrder:"XcmOrderV0",MultiLocation:"MultiLocationV0",XcmError:"XcmErrorV0",Response:"ResponseV0"}},{minmax:[902,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{pool_id:"PoolId",keeper:"AccountId",investor:"Option",trading_pair:"(CurrencyId, CurrencyId)",duration:"BlockNumber",type:"PoolType",min_deposit_to_start:"Balance",after_block_to_start:"BlockNumber",deposit:"Balance",rewards:"BTreeMap",update_b:"BlockNumber",state:"PoolState",block_startup:"Option",redeem_limit_time:"BlockNumber",unlock_limit_nums:"u32",pending_unlock_nums:"u32"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",BiddingOrderId:"u64",EraId:"u32",BiddingOrderUnit:{bidder_id:"AccountId",token_id:"AssetId",block_num:"BlockNumber",votes:"Balance",annual_roi:"Permill",validator:"AccountId"},BiddingOrderUnitOf:"BiddingOrderUnit",VersionId:"u32",PermissionName:"u64",PermissionLevel:{actor:"AccountName",permission:"PermissionName"},Action:{account:"AccountName",name:"ActionName",authorization:"Vec",data:"Vec"},AccountName:"u64",Checksum256:"([u8;32])",ActionName:"u64",FlatMap:{map:"Vec<(ActionName, u64)>"},UnsignedInt:"u32",ActionReceipt:{receiver:"AccountName",act_digest:"Checksum256",global_sequence:"u64",recv_sequence:"u64",auth_sequence:"FlatMap",code_sequence:"UnsignedInt",abi_sequence:"UnsignedInt"},BlockchainType:{_enum:["BIFROST","EOS","IOST"]},Precision:"u32",BridgeAssetSymbol:{blockchain:"BlockchainType",symbol:"Vec",precision:"Precision"},PublicKey:{type_:"UnsignedInt",data:"[u8;33]"},ProducerKey:{producer_name:"AccountName",block_signing_key:"PublicKey"},ProducerSchedule:{version:"u32",producers:"Vec"},bridgeEosSignature:{type_:"UnsignedInt",data:"[u8;65]"},BlockTimestamp:"(u32)",Extension:"(u16, Vec)",BlockHeader:{timestamp:"BlockTimestamp",producer:"AccountName",confirmed:"u16",previous:"Checksum256",transaction_mroot:"Checksum256",action_mroot:"Checksum256",schedule_version:"u32",new_producers:"Option",header_extensions:"Vec"},SignedBlockHeader:{block_header:"BlockHeader",producer_signature:"bridgeEosSignature"},Checksum256Array:"Vec",IncrementalMerkle:{_node_count:"u64",_active_nodes:"Checksum256Array"},TxSig:{signature:"Vec",author:"AccountId"},MultiSig:{signatures:"Vec",threshold:"u8"},MultiSigTx:{chain_id:"Vec",raw_tx:"Vec",multi_sig:"MultiSig",action:"Action",from:"AccountId",asset_id:"AssetId"},Sent:{tx_id:"Vec",from:"AccountId",asset_id:"AssetId"},Succeeded:{tx_id:"Vec"},Failed:{tx_id:"Vec",reason:"Vec"},TxOut:{_enum:{Initialized:"MultiSigTx",Created:"MultiSigTx",SignComplete:"MultiSigTx",Sent:"Sent",Succeeded:"Succeeded",Failed:"Failed"}},TransactionStatus:{_enum:["Initialized","Created","SignComplete","Sent","Succeeded","Failed"]},ProducerAuthoritySchedule:{version:"u32",producers:"Vec"},ProducerAuthority:{producer_name:"ActionName",authority:"BlockSigningAuthority"},BlockSigningAuthority:"(UnsignedInt, BlockSigningAuthorityV0)",BlockSigningAuthorityV0:{threshold:"u32",keyWeights:"Vec"},KeyWeight:{key:"PublicKey",weight:"u16"},BancorPool:{currency_id:"CurrencyId",token_pool:"Balance",vstoken_pool:"Balance",token_ceiling:"Balance",token_base_supply:"Balance",vstoken_base_supply:"Balance"},IostAction:{contract:"Vec",action_name:"Vec",data:"Vec"},IostMultiSigTx:{chain_id:"i32",raw_tx:"Vec",multi_sig:"MultiSig",action:"IostAction",from:"AccountId",asset_id:"AssetId"},Processing:{tx_id:"Vec",multi_sig_tx:"IostMultiSigTx"},IostTxOut:{_enum:{Initial:"IostMultiSigTx",Generated:"IostMultiSigTx",Signed:"IostMultiSigTx",Processing:"Processing",Success:"Vec",Fail:"Failed"}},PalletBalanceOf:"Balance",ExtraFeeName:{_enum:["SalpContribute","NoExtraFee"]},IsExtended:"bool",SystemPalletId:"PalletId",ledger:{Substrate:"SubstrateLedger"},SubstrateLedger:{account:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec"},UnlockChunk:{value:"Balance",unlock_time:"TimeUnit"},FilecoinLedger:{account:"MultiLocationV1",initial_pledge:"Balance"},FilecoinOwnerByMinerEntry:{currency_id:"AccountId",miner_id:"MultiLocationV1",owner_id:"MultiLocationV1"},TrieIndex:"u32",FundInfo:{raised:"Balance",cap:"Balance",first_slot:"LeasePeriod",last_slot:"LeasePeriod",trie_index:"TrieIndex",status:"FundStatus"},RedeemStatus:"BalanceOf",FundStatus:{_enum:{Ongoing:0,Retired:1,Success:2,Failed:3,RefundWithdrew:4,RedeemWithdrew:5,End:6}},ContributionStatus:{_enum:["Idle","Refunded","Redeemed","Unlocked","MigratedIdle","Contributing"]},CrowdloanContributeCall:{_enum:{CrowdloanContribute:"ContributeCall"}},ContributeCall:{_enum:{Contribute:"Contribution"}},Contribution:{index:"ParaId",value:"BalanceOf",signature:"Option"},Withdraw:{who:"AccountIdOf",index:"ParaId"},WithdrawCall:{_enum:{Withdraw:"Withdraw"}},ParachainTransactProxyType:{_enum:{Primary:0,Derived:1}},ParachainDerivedProxyAccountType:{_enum:{Salp:0,Staking:1}},Keys:"SessionKeys1",ParachainTransactType:{_enum:{Xcm:0,Proxy:1}},RpcContributionStatus:{_enum:{Idle:0,Contributing:1,Refunded:2,Unlocked:3,Redeemed:4}},RewardRecord:{account_id:"AccountId",record_amount:"Balance"},PoolId:"u32",SwapFee:"u128",PoolDetails:{owner:"AccountId",swap_fee_rate:"SwapFee",active:"bool"},PoolWeight:"Balance",PoolToken:"u128",PoolCreateTokenDetails:{token_id:"AssetId",token_balance:"Balance",token_weight:"PoolWeight"},MaxLocksOf:"u32",BifrostVestingInfo:{locked:"Balance",per_block:"Balance",starting_block:"BlockNumber"},OracleKey:"CurrencyId",BlockNumberFor:"BlockNumber",OrderInfo:{owner:"AccountIdOf",vsbond:"CurrencyId",amount:"BalanceOf",remain:"BalanceOf",total_price:"BalanceOf",order_id:"OrderId",order_type:"OrderType",remain_price:"BalanceOf"},OrderId:"u64",OrderType:{_enum:{Sell:0,Buy:1}},UnlockId:"U32",ZenlinkAssetId:{chain_id:"u32",asset_type:"u8",asset_index:"u64"},ZenlinkAssetBalance:"u128",PairInfo:{asset0:"ZenlinkAssetId",asset1:"ZenlinkAssetId",account:"AccountId",totalLiquidity:"ZenlinkAssetBalance",holdingLiquidity:"ZenlinkAssetBalance",reserve0:"ZenlinkAssetBalance",reserve1:"ZenlinkAssetBalance",lpAssetId:"ZenlinkAssetId"},PairMetadata:{pair_account:"AccountId",target_supply:"ZenlinkAssetBalance"},BootstrapParamter:{min_contribution:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",target_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",accumulated_supply:"(ZenlinkAssetBalance, ZenlinkAssetBalance)",end_block_number:"BlockNumber",pair_account:"AccountId"},PairStatus:{_enum:{Trading:"PairMetadata",Bootstrap:"BootstrapParamter",Disable:null}},TokenSymbol:{_enum:{ASG:0,BNC:1,KUSD:2,DOT:3,KSM:4,KAR:6,ZLK:7,PHA:8,RMRK:9,MOVR:10,GLMR:11}},CurrencyId:{_enum:{Native:"TokenSymbol",VToken:"TokenSymbol",Token:"TokenSymbol",Stable:"TokenSymbol",VSToken:"TokenSymbol",VSBond:"(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)",LPToken:"(TokenSymbol, u8, TokenSymbol, u8)",ForeignAsset:"u32",Token2:"u8",VToken2:"u8",VSToken2:"u8",VSBond2:"u8",StableLpToken:"u32",Blp:"u32"}},CurrencyIdOf:"CurrencyId",TAssetBalance:"Balance",AmountOf:"Balance",StorageVersion:"Releases",ShareWeight:"Balance",Currency:"CurrencyIdOf",Amount:"AmountOf",TransferOriginType:{_enum:{FromSelf:0,FromRelayChain:1,FromSiblingParaChain:2}},TimeUnit:{Era:"u32",SlashingSpan:"u32",Round:"u32",Kblock:"u32"},MinimumsMaximums:{delegator_bonded_minimum:"Balance",bond_extra_minimum:"Balance",unbond_minimum:"Balance",rebond_minimum:"Balance",unbond_record_maximum:"u32",validators_back_maximum:"u32",delegator_active_staking_maximum:"Balance",validators_reward_maximum:"u32",delegation_amount_minimum:"Balance",delegators_maximum:"u16",validators_maximum:"u16"},PoolType:{_enum:{Mining:0,Farming:1,EBFarming:2}},PoolState:{_enum:{UnCharged:0,Charged:1,Ongoing:2,Retired:3,Dead:4}},DepositData:{deposit:"Balance",gain_avgs:"BTreeMap",update_b:"BlockNumber",pending_unlocks:"Vec<(BlockNumber, Balance)>"},RewardData:{total:"Balance",per_block:"Balance",claimed:"Balance",gain_avg:"FixedU128"},MultiAsset:"MultiAssetV1",Xcm:"XcmV1",XcmOrder:"XcmOrderV1",MultiLocation:"MultiLocationV1",XcmError:"XcmErrorV1",Response:"ResponseV1"}}],alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}},"bitcountry-node":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",AssetInfo:{owner:"AccountId",data:"AssetData"},AssetData:{name:"Text",description:"Text",properties:"Text",supporters:"Vec"},AuctionId:"u64",AuctionItem:{asset_id:"TokenId",class_id:"ClassId",recipient:"AccountId",initial_amount:"Balance",amount:"Balance",start_time:"u32",end_time:"u32"},AuctionInfo:{bid:"Option<(AccountId,Balance)>",start:"BlockNumber",end:"Option"},RentId:"u64",RentalInfo:{owner:"AccountId",start:"BlockNumber",end:"Option",price_per_block:"Balance"},CountryId:"u64",CountryCurrencyId:"u32",CollectionId:"u64",ClassId:"u32",TokenId:"u64",ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"NftClassData"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftCollectionData:{name:"Vec",owner:"AccountId",properties:"Vec"},CurrencyId:"u32",CurrencyIdOf:"CurrencyId",BalanceIdOf:"Balance",GroupCollectionId:"u64",ClassIdOf:"u32",TokenIdOf:"u32",SpotId:"u32"}}]},"bitcountry-parachain":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",AssetInfo:{owner:"AccountId",data:"AssetData"},AssetData:{name:"Text",description:"Text",properties:"Text",supporters:"Vec"},AuctionId:"u64",AuctionItem:{asset_id:"TokenId",class_id:"ClassId",recipient:"AccountId",initial_amount:"Balance",amount:"Balance",start_time:"u32",end_time:"u32"},AuctionInfo:{bid:"Option<(AccountId,Balance)>",start:"BlockNumber",end:"Option"},RentId:"u64",RentalInfo:{owner:"AccountId",start:"BlockNumber",end:"Option",price_per_block:"Balance"},CountryId:"u64",CollectionId:"u64",ClassId:"u32",TokenId:"u64",ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"NftClassData"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftCollectionData:{name:"Vec",owner:"AccountId",properties:"Vec"},TokenType:{_enum:["Transferrable","BoundToAddress"]},NftAssetData:{name:"Vec",description:"Vec",properties:"Vec"},NftClassData:{deposit:"Balance",properties:"Vec",token_type:"TokenType"},NetworkId:{_enum:{Any:"Null",Named:"Vec",Polkadot:"Null",Kusama:"Null"}},CurrencyId:{_enum:{Token:"TokenSymbol"}},TokenSymbol:{_enum:["NUUM","AUSD","ACA","DOT"]},CountryCurrencyId:"u32",CurrencyIdOf:"CurrencyId",BalanceIdOf:"Balance",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chain_id:"ChainId",currency_id:"CurrencyId"},GroupCollectionId:"u64",ClassIdOf:"u32",TokenIdOf:"u32",SpotId:"u32"}}]},centrifuge:{types:[{minmax:[0,null],types:{AnchorData:{id:"Hash",docRoot:"Hash",anchoredBlock:"u64"},ChainId:"u8","chainbridge::ChainId":"u8",DepositNonce:"u64",Fee:{key:"Hash",price:"Balance"},ParachainAccountIdOf:"AccountId",PreCommitData:{signingRoot:"Hash",identity:"AccountId",expirationBlock:"u64"},Proof:{leafHash:"Hash",sortedHashes:"Vec"},ProxyType:{_enum:["Any","NonTransfer","Governance","_Staking","NonProxy"]},ResourceId:"[u8; 32]",RelayChainAccountId:"AccountId",RootHashOf:"Hash"}}]},"centrifuge-chain":{types:[{minmax:[0,null],types:{AnchorData:{id:"H256",docRoot:"H256",anchoredBlock:"u64"},Fee:{key:"Hash",price:"Balance"},PreCommitData:{signingRoot:"H256",identity:"H256",expirationBlock:"u64"},Proof:{leafHash:"H256",sortedHashes:"H256"},MultiAccountData:{threshold:"u16",signatories:"Vec",deposit:"Balance",depositor:"AccountId"},ChainId:"u8",ResourceId:"[u8; 32]","chainbridge::ChainId":"u8",DepositNonce:"u64",RegistryId:"H160",TokenId:"U256",AssetId:{registryId:"RegistryId",tokenId:"TokenId"},RegistryInfo:{ownerCanBurn:"bool",fields:"Vec"},AssetInfo:{metadata:"Bytes"},ProofMint:{value:"Bytes",property:"Bytes",salt:"[u8; 32]",hashes:"Vec"},MintInfo:{anchorId:"Hash",staticHashes:"[Hash; 3]",proofs:"Vec"}}}]},chainx:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId",Chain:{_enum:["ChainX","Bitcoin","Ethereum","Polkadot"]},NetworkType:{_enum:["Mainnet","Testnet"]},AssetType:{_enum:["Usable","Locked","Reserved","ReservedWithdrawal","ReservedDexSpot"]},OrderType:{_enum:["Limit","Market"]},Side:{_enum:["Buy","Sell"]},LockedType:{_enum:["Bonded","BondedWithdrawal"]},Memo:"Text",AssetInfo:{token:"String",tokenName:"String",chain:"Chain",decimals:"Decimals",desc:"String"},TradingPairProfile:{id:"TradingPairId",currencyPair:"CurrencyPair",pipDecimals:"u32",tickDecimals:"u32",tradable:"bool"},Order:{props:"OrderProperty",status:"OrderStatus",remaining:"Balance",executedIndices:"Vec",alreadyFilled:"Balance",lastUpdateAt:"BlockNumber"},TradingPairInfo:{latestPrice:"Price",lastUpdated:"BlockNumber"},OrderExecutedInfo:{tradingHistoryIdx:"TradingHistoryIndex",pairId:"TradingPairId",price:"Price",maker:"AccountId",taker:"AccountId",makerOrderId:"OrderId",takerOrderId:"OrderId",turnover:"Balance",executedAt:"BlockNumber"},BtcHeaderInfo:{header:"BtcHeader",height:"u32"},BtcParams:{maxBits:"u32",blockMaxFuture:"u32",targetTimespanSeconds:"u32",targetSpacingSeconds:"u32",retargetingFactor:"u32",retargetingInterval:"u32",minTimespan:"u32",maxTimespan:"u32"},MiningAssetInfo:{assetId:"AssetId",miningPower:"FixedAssetPower",rewardPot:"AccountId",rewardPotBalance:"RpcBalance",lastTotalMiningWeight:"RpcMiningWeight",lastTotalMiningWeightUpdate:"BlockNumber"},MiningDividendInfo:{own:"Balance",other:"Balance",insufficientStake:"Balance"},AssetLedger:{lastTotalMiningWeight:"MiningWeight",lastTotalMiningWeightUpdate:"BlockNumber"},MinerLedger:{lastMiningWeight:"MiningWeight",lastMiningWeightUpdate:"BlockNumber",lastClaim:"Option"},ClaimRestriction:{stakingRequirement:"StakingRequirement",frequencyLimit:"BlockNumber"},NominatorInfo:{lastRebond:"Option"},BondRequirement:{selfBonded:"Balance",total:"Balance"},Unbonded:{value:"Balance",lockedUntil:"BlockNumber"},ValidatorLedger:{totalNomination:"Balance",lastTotalVoteWeight:"VoteWeight",lastTotalVoteWeightUpdate:"BlockNumber"},NominatorLedger:{nomination:"Balance",lastVoteWeight:"VoteWeight",lastVoteWeightUpdate:"BlockNumber",unbondedChunks:"Vec"},ValidatorProfile:{registeredAt:"BlockNumber",isChilled:"bool",lastChilled:"Option",referralId:"ReferralId"},GlobalDistribution:{treasury:"u32",mining:"u32"},MiningDistribution:{asset:"u32",staking:"u32"},InclusionFee:{baseFee:"Balance",lenFee:"Balance",adjustedWeightFee:"Balance"},FeeDetails:{inclusionFee:"Option>",extraFee:"Balance",tip:"Balance",finalFee:"Balance"},UnbondedIndex:"u32",Token:"Text",Desc:"Text",AddrStr:"Text",HandicapInfo:"Handicap",Price:"u128",OrderId:"u64",TradingPairId:"u32",TradingHistoryIndex:"u64",PriceFluctuation:"u32",BtcAddress:"Text",FixedAssetPower:"u32",StakingRequirement:"u32",Decimals:"u8",CurrencyPair:{base:"AssetId",quote:"AssetId"},OrderStatus:{_enum:["Created","PartialFill","Filled","PartialFillAndCanceled","Canceled"]},AssetId:"u32",MiningWeight:"u128",VoteWeight:"u128",ReferralId:"Text",AssetRestriction:{_enum:["Move","Transfer","Deposit","Withdraw","DestroyWithdrawal","DestroyFree"]},AssetRestrictions:{bits:"u32"},BtcHeader:"Vec",BtcNetwork:{_enum:["Mainnet","Testnet"]},OrderInfo:"Order",Amount:"i128",AmountOf:"Amount",CurrencyIdOf:"AssetId",CurrencyId:"AssetId",Handicap:{highestBid:"Price",lowestAsk:"Price"},OrderProperty:{id:"OrderId",side:"Side",price:"Price",amount:"Amount",pairId:"TradingPairId",submitter:"AccountId",orderType:"OrderType",createdAt:"BlockNumber"},TotalAssetInfo:{info:"AssetInfo",balance:"BTreeMap",isOnline:"bool",restrictions:"AssetRestrictions"},WithdrawalRecordId:"u32",WithdrawalState:{_enum:["Applying","Processing","NormalFinish","RootFinish","NormalCancel","RootCancel"]},WithdrawalRecord:{assetId:"AssetId",applicant:"AccountId",balance:"Balance",addr:"AddrStr",ext:"Memo",height:"BlockNumber"},WithdrawalLimit:{minimalWithdrawal:"Balance",fee:"Balance"},TrusteeInfoConfig:{minTrusteeCount:"u32",maxTrusteeCount:"u32"},GenericTrusteeIntentionProps:{about:"Text",hotEntity:"Vec",coldEntity:"Vec"},GenericTrusteeSessionInfo:{trusteeList:"Vec",threshold:"u16",hotAddress:"Vec",coldAddress:"Vec"},ChainAddress:"Vec",BtcTrusteeType:"Vec",BtcTrusteeAddrInfo:{addr:"BtcAddress",redeemScript:"Vec"},BtcTrusteeIntentionProps:{about:"Text",hotEntity:"BtcTrusteeType",coldEntity:"BtcTrusteeType"},BtcTrusteeSessionInfo:{trusteeList:"Vec",threshold:"u16",hotAddress:"BtcTrusteeAddrInfo",coldAddress:"BtcTrusteeAddrInfo"},BtcTransaction:"Vec",BtcPartialMerkleTree:"Vec",BtcRelayedTxInfo:{blockHash:"H256",merkleProof:"BtcPartialMerkleTree"},BtcHeaderIndex:{hash:"H256",height:"u32"},BtcTxResult:{_enum:["Success","Failure"]},BtcTxState:{txType:"BtcTxType",result:"BtcTxResult"},BtcTxType:{_enum:["Withdrawal","Deposit","HotAndCold","TrusteeTransition","Irrelevance"]},BtcDepositCache:{txid:"H256",balance:"u64"},BtcVoteResult:{_enum:["Unfinish","Finish"]},BtcWithdrawalProposal:{sigState:"BtcVoteResult",withdrawalIdList:"Vec",tx:"BtcTransaction",trusteeList:"Vec<(AccountId, bool)>"},BtcTxVerifier:{_enum:["Recover","RuntimeInterface"]},RpcTotalAssetInfo:{info:"AssetInfo",balance:"BTreeMap",isOnline:"bool",restrictions:"AssetRestrictions"},RpcOrder:{id:"OrderId",side:"Side",price:"RpcPrice",amount:"RpcBalance",pairId:"TradingPairId",submitter:"AccountId",orderType:"OrderType",createdAt:"BlockNumber",status:"OrderStatus",remaining:"RpcBalance",executedIndices:"Vec",alreadyFilled:"RpcBalance",reservedBalance:"RpcBalance",lastUpdateAt:"BlockNumber"},RpcWithdrawalRecord:{assetId:"AssetId",applicant:"AccountId",balance:"RpcBalance",addr:"String",ext:"String",height:"BlockNumber",state:"WithdrawalState"},RpcMiningDividendInfo:{own:"RpcBalance",other:"RpcBalance",insufficientStake:"RpcBalance"},RpcInclusionFee:{baseFee:"RpcBalance",lenFee:"RpcBalance",adjustedWeightFee:"RpcBalance"},RpcFeeDetails:{inclusionFee:"Option",tip:"RpcBalance",extraFee:"RpcBalance",finalFee:"RpcBalance"},ValidatorInfo:{account:"AccountId",registeredAt:"BlockNumber",isChilled:"bool",lastChilled:"Option",totalNomination:"RpcBalance",lastTotalVoteWeight:"RpcVoteWeight",lastTotalVoteWeightUpdate:"BlockNumber",isValidating:"bool",selfBonded:"RpcBalance",referralId:"String",rewardPotAccount:"AccountId",rewardPotBalance:"RpcBalance"},FullPairInfo:{baseCurrency:"AssetId",highestBid:"RpcPrice",id:"TradingPairId",latestPrice:"RpcPrice",latestPriceUpdatedAt:"BlockNumber",lowestAsk:"RpcPrice",maxValidBid:"RpcPrice",minValidAsk:"RpcPrice",pipDecimals:"u32",quoteCurrency:"AssetId",tickDecimals:"u32",tradable:"bool"},Depth:{asks:"Vec<(RpcPrice, RpcBalance)>",bids:"Vec<(RpcPrice, RpcBalance)>"},Page:{pageIndex:"u32",pageSize:"u32",data:"Vec"},String:"Text",Balance:"u128",RpcPrice:"String",RpcBalance:"String",RpcMiningWeight:"String",RpcVoteWeight:"String",FullIdentification:"ValidatorId",WithdrawalRecordOf:"WithdrawalRecord"}}]},"chainx-parachain":{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId",Chain:{_enum:["ChainX","Bitcoin","Ethereum","Polkadot"]},NetworkType:{_enum:["Mainnet","Testnet"]},AssetType:{_enum:["Usable","Locked","Reserved","ReservedWithdrawal","ReservedDexSpot"]},OrderType:{_enum:["Limit","Market"]},Side:{_enum:["Buy","Sell"]},LockedType:{_enum:["Bonded","BondedWithdrawal"]},Memo:"Text",AssetInfo:{token:"String",tokenName:"String",chain:"Chain",decimals:"Decimals",desc:"String"},TradingPairProfile:{id:"TradingPairId",currencyPair:"CurrencyPair",pipDecimals:"u32",tickDecimals:"u32",tradable:"bool"},Order:{props:"OrderProperty",status:"OrderStatus",remaining:"Balance",executedIndices:"Vec",alreadyFilled:"Balance",lastUpdateAt:"BlockNumber"},TradingPairInfo:{latestPrice:"Price",lastUpdated:"BlockNumber"},OrderExecutedInfo:{tradingHistoryIdx:"TradingHistoryIndex",pairId:"TradingPairId",price:"Price",maker:"AccountId",taker:"AccountId",makerOrderId:"OrderId",takerOrderId:"OrderId",turnover:"Balance",executedAt:"BlockNumber"},BtcHeaderInfo:{header:"BtcHeader",height:"u32"},BtcParams:{maxBits:"u32",blockMaxFuture:"u32",targetTimespanSeconds:"u32",targetSpacingSeconds:"u32",retargetingFactor:"u32",retargetingInterval:"u32",minTimespan:"u32",maxTimespan:"u32"},MiningAssetInfo:{assetId:"AssetId",miningPower:"FixedAssetPower",rewardPot:"AccountId",rewardPotBalance:"RpcBalance",lastTotalMiningWeight:"RpcMiningWeight",lastTotalMiningWeightUpdate:"BlockNumber"},MiningDividendInfo:{own:"Balance",other:"Balance",insufficientStake:"Balance"},AssetLedger:{lastTotalMiningWeight:"MiningWeight",lastTotalMiningWeightUpdate:"BlockNumber"},MinerLedger:{lastMiningWeight:"MiningWeight",lastMiningWeightUpdate:"BlockNumber",lastClaim:"Option"},ClaimRestriction:{stakingRequirement:"StakingRequirement",frequencyLimit:"BlockNumber"},NominatorInfo:{lastRebond:"Option"},BondRequirement:{selfBonded:"Balance",total:"Balance"},Unbonded:{value:"Balance",lockedUntil:"BlockNumber"},ValidatorLedger:{totalNomination:"Balance",lastTotalVoteWeight:"VoteWeight",lastTotalVoteWeightUpdate:"BlockNumber"},NominatorLedger:{nomination:"Balance",lastVoteWeight:"VoteWeight",lastVoteWeightUpdate:"BlockNumber",unbondedChunks:"Vec"},ValidatorProfile:{registeredAt:"BlockNumber",isChilled:"bool",lastChilled:"Option",referralId:"ReferralId"},GlobalDistribution:{treasury:"u32",mining:"u32"},MiningDistribution:{asset:"u32",staking:"u32"},InclusionFee:{baseFee:"Balance",lenFee:"Balance",adjustedWeightFee:"Balance"},FeeDetails:{inclusionFee:"Option>",extraFee:"Balance",tip:"Balance",finalFee:"Balance"},UnbondedIndex:"u32",Token:"Text",Desc:"Text",AddrStr:"Text",HandicapInfo:"Handicap",Price:"u128",OrderId:"u64",TradingPairId:"u32",TradingHistoryIndex:"u64",PriceFluctuation:"u32",BtcAddress:"Text",FixedAssetPower:"u32",StakingRequirement:"u32",Decimals:"u8",CurrencyPair:{base:"AssetId",quote:"AssetId"},OrderStatus:{_enum:["Created","PartialFill","Filled","PartialFillAndCanceled","Canceled"]},AssetId:"u32",MiningWeight:"u128",VoteWeight:"u128",ReferralId:"Text",AssetRestriction:{_enum:["Move","Transfer","Deposit","Withdraw","DestroyWithdrawal","DestroyFree"]},AssetRestrictions:{bits:"u32"},BtcHeader:"Vec",BtcNetwork:{_enum:["Mainnet","Testnet"]},OrderInfo:"Order",Amount:"i128",AmountOf:"Amount",CurrencyIdOf:"AssetId",CurrencyId:"AssetId",Handicap:{highestBid:"Price",lowestAsk:"Price"},OrderProperty:{id:"OrderId",side:"Side",price:"Price",amount:"Amount",pairId:"TradingPairId",submitter:"AccountId",orderType:"OrderType",createdAt:"BlockNumber"},TotalAssetInfo:{info:"AssetInfo",balance:"BTreeMap",isOnline:"bool",restrictions:"AssetRestrictions"},WithdrawalRecordId:"u32",WithdrawalState:{_enum:["Applying","Processing","NormalFinish","RootFinish","NormalCancel","RootCancel"]},WithdrawalRecord:{assetId:"AssetId",applicant:"AccountId",balance:"Balance",addr:"AddrStr",ext:"Memo",height:"BlockNumber"},WithdrawalLimit:{minimalWithdrawal:"Balance",fee:"Balance"},TrusteeInfoConfig:{minTrusteeCount:"u32",maxTrusteeCount:"u32"},GenericTrusteeIntentionProps:{about:"Text",hotEntity:"Vec",coldEntity:"Vec"},GenericTrusteeSessionInfo:{trusteeList:"Vec",threshold:"u16",hotAddress:"Vec",coldAddress:"Vec"},ChainAddress:"Vec",BtcTrusteeType:"Vec",BtcTrusteeAddrInfo:{addr:"BtcAddress",redeemScript:"Vec"},BtcTrusteeIntentionProps:{about:"Text",hotEntity:"BtcTrusteeType",coldEntity:"BtcTrusteeType"},BtcTrusteeSessionInfo:{trusteeList:"Vec",threshold:"u16",hotAddress:"BtcTrusteeAddrInfo",coldAddress:"BtcTrusteeAddrInfo"},BtcTransaction:"Vec",BtcPartialMerkleTree:"Vec",BtcRelayedTxInfo:{blockHash:"H256",merkleProof:"BtcPartialMerkleTree"},BtcHeaderIndex:{hash:"H256",height:"u32"},BtcTxResult:{_enum:["Success","Failure"]},BtcTxState:{txType:"BtcTxType",result:"BtcTxResult"},BtcTxType:{_enum:["Withdrawal","Deposit","HotAndCold","TrusteeTransition","Irrelevance"]},BtcDepositCache:{txid:"H256",balance:"u64"},BtcVoteResult:{_enum:["Unfinish","Finish"]},BtcWithdrawalProposal:{sigState:"BtcVoteResult",withdrawalIdList:"Vec",tx:"BtcTransaction",trusteeList:"Vec<(AccountId, bool)>"},BtcTxVerifier:{_enum:["Recover","RuntimeInterface"]},RpcTotalAssetInfo:{info:"AssetInfo",balance:"BTreeMap",isOnline:"bool",restrictions:"AssetRestrictions"},RpcOrder:{id:"OrderId",side:"Side",price:"RpcPrice",amount:"RpcBalance",pairId:"TradingPairId",submitter:"AccountId",orderType:"OrderType",createdAt:"BlockNumber",status:"OrderStatus",remaining:"RpcBalance",executedIndices:"Vec",alreadyFilled:"RpcBalance",reservedBalance:"RpcBalance",lastUpdateAt:"BlockNumber"},RpcWithdrawalRecord:{assetId:"AssetId",applicant:"AccountId",balance:"RpcBalance",addr:"String",ext:"String",height:"BlockNumber",state:"WithdrawalState"},RpcMiningDividendInfo:{own:"RpcBalance",other:"RpcBalance",insufficientStake:"RpcBalance"},RpcInclusionFee:{baseFee:"RpcBalance",lenFee:"RpcBalance",adjustedWeightFee:"RpcBalance"},RpcFeeDetails:{inclusionFee:"Option",tip:"RpcBalance",extraFee:"RpcBalance",finalFee:"RpcBalance"},ValidatorInfo:{account:"AccountId",registeredAt:"BlockNumber",isChilled:"bool",lastChilled:"Option",totalNomination:"RpcBalance",lastTotalVoteWeight:"RpcVoteWeight",lastTotalVoteWeightUpdate:"BlockNumber",isValidating:"bool",selfBonded:"RpcBalance",referralId:"String",rewardPotAccount:"AccountId",rewardPotBalance:"RpcBalance"},FullPairInfo:{baseCurrency:"AssetId",highestBid:"RpcPrice",id:"TradingPairId",latestPrice:"RpcPrice",latestPriceUpdatedAt:"BlockNumber",lowestAsk:"RpcPrice",maxValidBid:"RpcPrice",minValidAsk:"RpcPrice",pipDecimals:"u32",quoteCurrency:"AssetId",tickDecimals:"u32",tradable:"bool"},Depth:{asks:"Vec<(RpcPrice, RpcBalance)>",bids:"Vec<(RpcPrice, RpcBalance)>"},Page:{pageIndex:"u32",pageSize:"u32",data:"Vec"},String:"Text",Balance:"u128",RpcPrice:"String",RpcBalance:"String",RpcMiningWeight:"String",RpcVoteWeight:"String",FullIdentification:"ValidatorId",WithdrawalRecordOf:"WithdrawalRecord"}}]},clover:{types:[{minmax:[0,null],types:{Amount:"i128",Keys:"SessionKeys4",AmountOf:"Amount",Balance:"u128",Rate:"FixedU128",Ratio:"FixedU128",EcdsaSignature:"[u8; 65]",EvmAddress:"H160",EthereumTxHash:"H256",BridgeNetworks:{_enum:["BSC","Ethereum","CloverPara"]}}}]},"clover-rococo":{types:[{minmax:[0,null],types:{Amount:"i128",AmountOf:"Amount",Balance:"u128",CurrencyId:{_enum:["CLV","CUSDT","DOT","CETH"]},CurrencyIdOf:"CurrencyId",CurrencyTypeEnum:{_enum:["CLV","CUSDT","DOT","CETH"]},PairKey:"u64",Rate:"FixedU128",Ratio:"FixedU128",Price:"FixedU128",Share:"u128",OracleKey:"CurrencyId",CurrencyInfo:{id:"CurrencyId",name:"CurrencyTypeEnum"},ExchangeInfo:{balance:"Balance",routes:"Vec"},PoolId:{_enum:{Swap:"u64"}},EcdsaSignature:"[u8; 65]",EvmAddress:"H160",ExitSucceed:{_enum:["Stopped","Returned","Suicided"]},ExitRevert:{_enum:["Reverted"]},ExitError:{_enum:["StackUnderflow","StackOverflow","InvalidJump","InvalidRange","DesignatedInvalid","CallTooDeep","CreateCollision","CreateContractLimit","OutOfOffset","OutOfGas","OutOfFund","PCUnderflow","CreateEmpty","Other"]},ExitFatal:{_enum:["NotSupported","UnhandledInterrupt","CallErrorAsFatal","Other"]},ExitReason:{_enum:["Succeed","Error","Revert","Fatal"]}}}]},coinversation:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},"competitors-club":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",ClassId:"u64",ClassInfoOf:"ClassId",BalanceOf:"Balance",BalanceReservableOf:"BalanceOf",Moment:"u64",Place:{spot:"u32",payout:"Balance"},Competitor:{vie_id:"[u8;16]",staked:"bool",submitted_winner:"bool"},Vie:{operator:"AccountId",stake:"Balance",places:"Vec",time:"Moment",competitors:"Vec",memo:"Vec"},VieOf:"Vie",VieReq:{stake:"Balance",places:"Vec",competitors:"Vec",memo:"Vec"},VieRequestOf:"VieReq",Participants:{AccountId:"[u8;16]"},Operators:{AccountId:"[u8;16]"},StandingReq:{competitor:"AccountId",spot:"u32"},PodiumReq:{champion:"AccountId",podium:"Vec"},PodiumReqOf:"PodiumReq",Trophy:{trophy:"[u8; 16]",competitors:"Vec",stake:"Balance",memo:"Vec",time:"u64",podium:"Vec"},TokenId:"u64",TokenInfo:{metadata:"Vec",owner:"AccountId",data:"Trophy"},TokenInfoOf:"TokenInfo"}}]},contextfree:{types:[{minmax:[0,null],types:{ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus"},BridgeTokenId:"U256",BridgeChainId:"u8",VestingPlan:{start_time:"u64",cliff_duration:"u64",total_duration:"u64",interval:"u64",initial_amount:"Balance",total_amount:"Balance",vesting_during_cliff:"bool"},ProposalId:"u32",ProjectId:"u32",ChainIndex:"u32",Protocol:{_enum:["Solidity","Substrate"]},Chain:{_protocol:"Protocol"},CrossChainAccount:{_enum:{Solidity:"H160",Substrate:"AccountId"}},IpfsHash:"Text",SolidityStrategy:{_enum:{ERC20Balance:"H160"}},SubstrateStrategy:{_enum:["NativeBalance"]},Strategy:{_enum:{Solidity:"SolidityStrategy",Substrate:"SubstrateStrategy"}},Workspace:{_chain:"ChainIndex",strategies:"Vec"},UserGroup:{owner:"CrossChainAccount",admins:"Vec",maintainers:"Vec",proposers:"Option>"},Project:{usergroup:"UserGroup",data:"IpfsHash",workspaces:"Vec"},VotingFormat:{_enum:["SingleChoice","SplitVote"]},OptionIndex:"u8",PrivacyLevel:{_enum:{Opaque:"u8",Rank:"Null",Private:"Null",Public:"Null",Mixed:"Null"}},VotingPower:"U256",DAOProposalState:{finalized:"bool",snapshots:"Vec>",blacklisted:"bool",votes:"Vec",pub_voters:"Option",updates:"u32"},DAOProposal:{_author:"CrossChainAccount",_voting_format:"VotingFormat",_option_count:"OptionIndex",_data:"IpfsHash",_privacy:"PrivacyLevel",_start:"u64",_end:"u64",_frequency:"Option",_workspaces:"Vec",state:"DAOProposalState"},VoteUpdate:{project:"ProjectId",proposal:"ProposalId",votes:"Vec",pub_voters:"Option"}}}]},"continuum-runtime":{Amount:"i128",AmountOf:"Amount",AuctionId:"u64",AuctionIdOf:"AuctionId",BalanceIdOf:"Balance",MetaverseId:"u64",FungibleTokenId:{_enum:{NativeToken:"TokenId",FungibleToken:"TokenId",DEXShare:"(TokenId, TokenId)",MiningResource:"TokenId"}},CurrencyIdOf:"FungibleTokenId",TradingPairStatus:{_enum:["NotEnabled","Enabled"]},TradingPair:"(FungibleTokenId,FungibleTokenId)",TokenId:"u64",SpotId:"u32",ItemId:{_enum:{NFT:"AssetId",Spot:"(u64, MetaverseId)",Metaverse:"MetaverseId",Block:"u64"}},Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithTripleRefCount",AssetInfo:{owner:"AccountId",data:"AssetData"},AssetId:"u64",AssetData:{name:"Text",description:"Text",properties:"Text",supporters:"Vec"},AuctionItem:{itemId:"ItemId",recipient:"AccountId",initialAmount:"Balance",amount:"Balance",startTime:"u32",endTime:"u32",auctionType:"AuctionType",listingLevel:"ListingLevel",currencyId:"FungibleTokenId"},AuctionInfo:{bid:"Option<(AccountId,Balance)>",start:"BlockNumber",end:"Option"},AuctionType:{_enum:["Auction","BuyNow"]},RentId:"u64",RentalInfo:{owner:"AccountId",start:"BlockNumber",end:"Option",price_per_block:"Balance"},CountryId:"u64",CollectionId:"u64",ClassId:"u32",ClassInfoOf:{metadata:"Vec",totalIssuance:"TokenId",owner:"AccountId",data:"NftClassData"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftCollectionData:{name:"Vec",owner:"AccountId",properties:"Vec"},NftGroupCollectionData:{name:"Vec",properties:"Vec"},NftAssetData:{deposit:"Balance",attributes:"Attributes"},NftClassData:{deposit:"Balance",attributes:"Attributes",tokenType:"TokenType",collectionType:"CollectionType",totalSupply:"u64",initialSupply:"u64"},NetworkId:{_enum:{Any:"Null",Named:"Vec",Polkadot:"Null",Kusama:"Null"}},CollectionType:{_enum:["Collectable","Wearable","Executable"]},CurrencyId:"SocialTokenCurrencyId",TokenSymbol:{_enum:["NUUM","AUSD","ACA","DOT"]},CountryCurrencyId:"u32",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chain_id:"ChainId",currency_id:"CurrencyId"},GroupCollectionId:"u64",ClassIdOf:"ClassId",TokenIdOf:"TokenId",PoolId:"u32",SocialTokenCurrencyId:{_enum:{NativeToken:"TokenId",FungibleToken:"TokenId",DEXShare:"(TokenId, TokenId)",MiningResource:"TokenId"}},Country:{owner:"AccountId",metadata:"Text",currency_id:"SocialTokenCurrencyId"},Ticker:"Vec",Token:{ticker:"Ticker",total_supply:"Balance"},CountryFund:{vault:"AccountId",value:"u128",backing:"u128",currency_id:"SocialTokenCurrencyId"},LandId:"u64",BlindBoxId:"u64",BlindBoxType:{_enum:["KSM","NUUM","MainnetNFTHat","MainnetNFTJacket","MainnetNFTPants","MainnetNFTShoes","CollectableNFT"]},BlindBoxRewardItem:{recipient:"AccountId",amount:"u32",blindbox_type:"BlindBoxType"},TokenType:{_enum:["Transferable","BoundToAddress"]},ListingLevel:{_enum:{Global:"Null",Local:"MetaverseId"}},ResourceId:"[u8; 32]",VoteThreshold:{_enum:["SuperMajorityApprove","SuperMajorityAgainst","RelativeMajority"]},ProposalId:"u64",ReferendumId:"u64",CountryParameter:{_enum:{MaxProposals:"u8",SetReferendumJury:"AccountId"}},PreimageStatus:{_enum:{Missing:"BlockNumber",Available:{data:"Vec",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option"}}},ReferendumParameters:{voting_threshold:"Option",min_proposal_launch_period:"BlockNumber",voting_period:"BlockNumber",enactment_period:"BlockNumber",local_vote_locking_period:"BlockNumber",max_proposals_per_metaverse:"u8"},Vote:{aye:"bool"},Tally:{ayes:"Balance",nays:"Balance",turnout:"Balance"},VotingRecord:{votes:"Vec<(ReferendumId,Vote)>",prior:"PriorLock"},ProposalInfo:{proposed_by:"AccountId",hash:"Hash",description:"Vec",referendum_launch_block:"BlockNumber"},ReferendumStatus:{end:"BlockNumber",metaverse:"MetaverseId",proposal:"ProposalId",tally:"Tally",threshold:"Option"},RoundIndex:"u32",MetaverseMetadata:"Vec",VestingScheduleOf:"VestingSchedule",VestingSchedule:{token:"FungibleTokenId",start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},NFTClassId:"u32",Attributes:"BTreeMap,Vec>",EstateId:"u64",Coordinates:"Vec<(i32,i32)>",Coordinate:"(i32,i32)",NewBound:"(i32,i32)",UndeployedLandBlockId:"u128",LandUnits:"Vec<(i32, i32)>",UndeployedLandBlockType:{_enum:["Transferable","BoundToAddress"]},MetaverseInfo:{owner:"AccountId",metadata:"MetaverseMetadata",currencyId:"FungibleTokenId"},OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},OrmlVestingSchedule:{token:"FungibleTokenId",start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Balance"},Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},MetaverseToken:{ticker:"Ticker",totalSupply:"Balance"},MetaverseParameter:{_enum:{MaxProposals:"u8",SetReferendumJury:"AccountId"}},Delegations:{votes:"Balance",capital:"Balance"},Conviction:{_enum:["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"]},PalletGovernanceVote:{aye:"bool",balance:"Balance",conviction:"Conviction"},PriorLock:"(BlockNumber, Balance)",ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:{passed:"bool",end:"BlockNumber"}}},PowerAmount:"u64",ElementId:"u32",GeneratorNftId:"(ClassId, TokenId)",DistributorNftId:"(ClassId, TokenId)"},contracts:{types:[{minmax:[0,8],types:{Address:"AccountId",Keys:"SessionKeys2",LookupSource:"AccountId",Schedule:"ScheduleTo258"}},{minmax:[9,null],types:{Keys:"SessionKeys2"}}]},"crown-sterling":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:{nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},Balance:"u128",BalanceOf:"Balance",AuthorityOf:"AccountId",PaymentId:"[u8;16]",Payment:{id:"PaymentId",account_id:"AccountId",success_url:"Vec",failure_url:"Vec",paid:"bool",pay_to:"AccountId"},PeerId:"(Vec)",Amendment:{statement:"Vec",owners:"Vec"},BlockNumber:"u32",VestingSchedule:{start:"BlockNumber",period:"BlockNumber",period_count:"BlockNumber",per_period:"Compact"},VestingScheduleOf:"VestingSchedule"}}]},crust:{rpc:{},types:[{minmax:[null,null],types:{AccountInfo:"AccountInfoWithProviders",Address:"AccountId",AddressInfo:"Vec",LookupSource:"AccountId",EraBenefits:{total_fee_reduction_quota:"Compact",total_market_active_funds:"Compact",used_fee_reduction_quota:"Compact",active_era:"Compact"},FundsType:{_enum:["SWORK","MARKET"]},FundsUnlockChunk:{value:"Compact",era:"Compact"},MarketBenefit:{total_funds:"Compact",active_funds:"Compact",used_fee_reduction_quota:"Compact",file_reward:"Compact",refreshed_at:"Compact",unlocking_funds:"Vec>"},SworkBenefit:{total_funds:"Compact",active_funds:"Compact",total_fee_reduction_count:"u32",used_fee_reduction_count:"u32",refreshed_at:"Compact",unlocking_funds:"Vec>"},BridgeChainId:"u8",ChainId:"u8",ResourceId:"H256",DepositNonce:"u64",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},Erc721Token:{id:"TokenId",metadata:"Vec"},TokenId:"U256",ETHAddress:"Vec",EthereumTxHash:"H256",Lock:{total:"Compact",last_unlock_at:"BlockNumber",lock_type:"LockType"},LockType:{delay:"BlockNumber",lock_period:"u32"},FileInfo:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",replicas:"Vec>"},FileInfoV2:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",remaining_paid_count:"u32",replicas:"BTreeMap>"},Replica:{who:"AccountId",valid_at:"BlockNumber",anchor:"SworkerAnchor",is_reported:"bool",created_at:"Option"},Guarantee:{targets:"Vec>",total:"Compact",submitted_in:"EraIndex",suppressed:"bool"},ValidatorPrefs:{guarantee_fee:"Compact"},Group:{members:"BTreeSet",allowlist:"BTreeSet"},IASSig:"Vec",Identity:{anchor:"SworkerAnchor",punishment_deadline:"u64",group:"Option"},ISVBody:"Vec",MerkleRoot:"Vec",ReportSlot:"u64",PKInfo:{code:"SworkerCode",anchor:"Option"},SworkerAnchor:"Vec",SworkerCert:"Vec",SworkerCode:"Vec",SworkerPubKey:"Vec",SworkerSignature:"Vec",WorkReport:{report_slot:"u64",spower:"u64",free:"u64",reported_files_size:"u64",reported_srd_root:"MerkleRoot",reported_files_root:"MerkleRoot"}}}],alias:{}},"crust-parachain":{rpc:{},types:[{minmax:[null,null],types:{AccountInfo:"AccountInfoWithProviders",Address:"AccountId",AddressInfo:"Vec",LookupSource:"AccountId",EraBenefits:{total_fee_reduction_quota:"Compact",total_market_active_funds:"Compact",used_fee_reduction_quota:"Compact",active_era:"Compact"},FundsType:{_enum:["SWORK","MARKET"]},FundsUnlockChunk:{value:"Compact",era:"Compact"},MarketBenefit:{total_funds:"Compact",active_funds:"Compact",used_fee_reduction_quota:"Compact",file_reward:"Compact",refreshed_at:"Compact",unlocking_funds:"Vec>"},SworkBenefit:{total_funds:"Compact",active_funds:"Compact",total_fee_reduction_count:"u32",used_fee_reduction_count:"u32",refreshed_at:"Compact",unlocking_funds:"Vec>"},BridgeChainId:"u8",ChainId:"u8",ResourceId:"H256",DepositNonce:"u64",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},Erc721Token:{id:"TokenId",metadata:"Vec"},TokenId:"U256",ETHAddress:"Vec",EthereumTxHash:"H256",Lock:{total:"Compact",last_unlock_at:"BlockNumber",lock_type:"LockType"},LockType:{delay:"BlockNumber",lock_period:"u32"},FileInfo:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",replicas:"Vec>"},FileInfoV2:{file_size:"u64",spower:"u64",expired_at:"BlockNumber",calculated_at:"BlockNumber",amount:"Compact",prepaid:"Compact",reported_replica_count:"u32",remaining_paid_count:"u32",replicas:"BTreeMap>"},Replica:{who:"AccountId",valid_at:"BlockNumber",anchor:"SworkerAnchor",is_reported:"bool",created_at:"Option"},Guarantee:{targets:"Vec>",total:"Compact",submitted_in:"EraIndex",suppressed:"bool"},ValidatorPrefs:{guarantee_fee:"Compact"},Group:{members:"BTreeSet",allowlist:"BTreeSet"},IASSig:"Vec",Identity:{anchor:"SworkerAnchor",punishment_deadline:"u64",group:"Option"},ISVBody:"Vec",MerkleRoot:"Vec",ReportSlot:"u64",PKInfo:{code:"SworkerCode",anchor:"Option"},SworkerAnchor:"Vec",SworkerCert:"Vec",SworkerCode:"Vec",SworkerPubKey:"Vec",SworkerSignature:"Vec",WorkReport:{report_slot:"u64",spower:"u64",free:"u64",reported_files_size:"u64",reported_srd_root:"MerkleRoot",reported_files_root:"MerkleRoot"}}}],alias:{}},"cumulus-test-parachain":{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},"curio-mainnet":{types:[{minmax:[0,null],types:{StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}],runtime:{Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"},get_sorted_proposed_candidates:{description:"Provides a sorted list of collators most suited for given delegator's stake amount determined with some heuristic algorithm",params:[{name:"balance",type:"Balance"}],type:"Vec"}},version:1}]}},"curio-testnet":{types:[{minmax:[0,null],types:{StakingRates:{collatorStakingRate:"Perquintill",collatorRewardRate:"Perquintill",delegatorStakingRate:"Perquintill",delegatorRewardRate:"Perquintill"}}}],runtime:{Staking:[{methods:{get_staking_rates:{description:"Calculate the current staking and reward rates for collators and delegators",params:[],type:"StakingRates"},get_unclaimed_staking_rewards:{description:"Calculate the claimable staking rewards for a given account address",params:[{name:"account",type:"AccountId32"}],type:"Balance"},get_sorted_proposed_candidates:{description:"Provides a sorted list of collators most suited for given delegator's stake amount determined with some heuristic algorithm",params:[{name:"balance",type:"Balance"}],type:"Vec"}},version:1}]}},datahighway:{types:[{minmax:[0,null],types:{AccountInfo:"AccountInfoWithDualRefCount",Date:"i64",Keys:"SessionKeys2",Address:"MultiAddress",LookupSource:"MultiAddress",RoamingOperator:"[u8; 16]",RoamingOperatorIndex:"u64",RoamingNetwork:"[u8; 16]",RoamingNetworkIndex:"u64",RoamingOrganization:"[u8; 16]",RoamingOrganizationIndex:"u64",RoamingNetworkServer:"[u8; 16]",RoamingNetworkServerIndex:"u64",RoamingDevice:"[u8; 16]",RoamingDeviceIndex:"u64",RoamingRoutingProfile:"[u8; 16]",RoamingRoutingProfileIndex:"u64",RoamingRoutingProfileAppServer:"Text",RoamingServiceProfile:"[u8; 16]",RoamingServiceProfileIndex:"u64",RoamingServiceProfileUplinkRate:"u32",RoamingServiceProfileDownlinkRate:"u32",RoamingAccountingPolicy:"[u8; 16]",RoamingAccountingPolicyIndex:"u64",RoamingAccountingPolicyType:"Text",RoamingAccountingPolicyUplinkFeeFactor:"u32",RoamingAccountingPolicyDownlinkFeeFactor:"u32",RoamingAccountingPolicySetting:{policy_type:"Text",subscription_fee:"Balance",uplink_fee_factor:"u32",downlink_fee_factor:"u32"},RoamingAgreementPolicy:"[u8; 16]",RoamingAgreementPolicyIndex:"u64",RoamingAgreementPolicyActivationType:"Text",RoamingAgreementPolicySetting:{policy_activation_type:"Text",policy_expiry_block:"Moment"},RoamingNetworkProfile:"[u8; 16]",RoamingNetworkProfileIndex:"u64",RoamingDeviceProfile:"[u8; 16]",RoamingDeviceProfileIndex:"u64",RoamingDeviceProfileDevAddr:"Text",RoamingDeviceProfileDevEUI:"Text",RoamingDeviceProfileJoinEUI:"Text",RoamingDeviceProfileVendorID:"Text",RoamingDeviceProfileSetting:{device_profile_devaddr:"Text",device_profile_deveui:"Text",device_profile_joineui:"Text",device_profile_vendorid:"Text"},RoamingSession:"[u8; 16]",RoamingSessionIndex:"u64",RoamingSessionJoinRequest:{session_network_server_id:"Moment",session_join_requested_at_block:"Moment"},RoamingSessionJoinAccept:{session_join_request_accept_expiry:"Moment",session_join_request_accept_accepted_at_block:"Moment"},RoamingBillingPolicy:"[u8; 16]",RoamingBillingPolicyIndex:"u64",RoamingBillingPolicySetting:{policy_next_billing_at_block:"Moment",policy_frequency_in_blocks:"Moment"},RoamingChargingPolicy:"[u8; 16]",RoamingChargingPolicyIndex:"u64",RoamingChargingPolicySetting:{policy_next_charging_at_block:"Moment",policy_delay_after_billing_in_blocks:"u64"},RoamingPacketBundle:"[u8; 16]",RoamingPacketBundleIndex:"u64",RoamingPacketBundleReceivedAtHome:"bool",RoamingPacketBundleReceivedPacketsCount:"u64",RoamingPacketBundleReceivedPacketsOkCount:"u64",RoamingPacketBundleExternalDataStorageHash:"Hash",RoamingPacketBundleReceiver:{packet_bundle_received_at_home:"bool",packet_bundle_received_packets_count:"u64",packet_bundle_received_packets_ok_count:"u64",packet_bundle_received_started_at_block:"Moment",packet_bundle_received_ended_at_block:"Moment",packet_bundle_external_data_storage_hash:"Hash"},MiningRatesToken:"[u8; 16]",MiningRatesTokenIndex:"u64",MiningRatesTokenTokenDOT:"u32",MiningRatesTokenTokenMXC:"u32",MiningRatesTokenTokenIOTA:"u32",MiningRatesTokenMaxToken:"u32",MiningRatesTokenMaxLoyalty:"u32",MiningRatesTokenSetting:{token_token_mxc:"u32",token_token_iota:"u32",token_token_dot:"u32",token_max_token:"u32",token_max_loyalty:"u32"},MiningRatesHardware:"[u8; 16]",MiningRatesHardwareIndex:"u64",MiningRatesHardwareSecure:"u32",MiningRatesHardwareInsecure:"u32",MiningRatesHardwareMaxHardware:"u32",MiningRatesHardwareCategory1MaxTokenBonusPerGateway:"u32",MiningRatesHardwareCategory2MaxTokenBonusPerGateway:"u32",MiningRatesHardwareCategory3MaxTokenBonusPerGateway:"u32",MiningRatesHardwareSetting:{hardware_hardware_secure:"u32",hardware_hardware_insecure:"u32",hardware_max_hardware:"u32",hardware_category_1_max_token_bonus_per_gateway:"u32",hardware_category_2_max_token_bonus_per_gateway:"u32",hardware_category_3_max_token_bonus_per_gateway:"u32"},MiningSettingToken:"[u8; 16]",MiningSettingTokenIndex:"u64",MiningSettingTokenType:"Text",MiningSettingTokenLockAmount:"u64",MiningSettingTokenSetting:{token_type:"Text",token_lock_amount:"u64",token_lock_start_block:"Moment",token_lock_interval_blocks:"Moment"},MiningSettingTokenRequirementsSetting:{token_type:"Text",token_lock_min_amount:"u64",token_lock_min_blocks:"u32"},MiningSettingHardware:"[u8; 16]",MiningSettingHardwareIndex:"u64",MiningSettingHardwareSecure:"bool",MiningSettingHardwareType:"Text",MiningSettingHardwareID:"u64",MiningSettingHardwareDevEUI:"u64",MiningSettingHardwareSetting:{hardware_secure:"bool",hardware_type:"Text",hardware_id:"u64",hardware_dev_eui:"u64",hardware_lock_start_block:"Moment",hardware_lock_interval_blocks:"Moment"},MiningSamplingToken:"[u8; 16]",MiningSamplingTokenIndex:"u64",MiningSamplingTokenSampleLockedAmount:"u64",MiningSamplingTokenSetting:{token_sample_block:"Moment",token_sample_locked_amount:"u64"},MiningSamplingHardware:"[u8; 16]",MiningSamplingHardwareIndex:"u64",MiningSamplingHardwareSampleHardwareOnline:"u64",MiningSamplingHardwareSetting:{hardware_sample_block:"Moment",hardware_sample_hardware_online:"bool"},MiningEligibilityToken:"[u8; 16]",MiningEligibilityTokenIndex:"u64",MiningEligibilityTokenCalculatedEligibility:"u64",MiningEligibilityTokenLockedPercentage:"u32",MiningEligibilityTokenAuditorAccountID:"u64",MiningEligibilityTokenResult:{token_calculated_eligibility:"u64",token_token_locked_percentage:"u32",token_date_audited:"Moment",token_auditor_account_id:"u64"},MiningEligibilityHardware:"[u8; 16]",MiningEligibilityHardwareIndex:"u64",MiningEligibilityHardwareCalculatedEligibility:"u64",MiningEligibilityHardwareUptimePercentage:"u32",MiningEligibilityHardwareAuditorAccountID:"u64",MiningEligibilityHardwareResult:{hardware_calculated_eligibility:"u64",hardware_uptime_percentage:"u32",hardware_block_audited:"Moment",hardware_auditor_account_id:"u64"},MiningEligibilityProxy:"[u8; 16]",MiningEligibilityProxyIndex:"u64",MiningEligibilityProxyRewardRequest:{proxy_claim_requestor_account_id:"AccountId",proxy_claim_total_reward_amount:"Balance",proxy_claim_timestamp_redeemed:"Moment"},MiningEligibilityProxyClaimRewardeeData:{proxy_claim_rewardee_account_id:"AccountId",proxy_claim_reward_amount:"Balance",proxy_claim_start_date:"Date",proxy_claim_end_date:"Date"},RewardeeData:{proxy_claim_rewardee_account_id:"AccountId",proxy_claim_reward_amount:"Balance",proxy_claim_start_date:"Date",proxy_claim_end_date:"Date"},RewardRequestorData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",total_amt:"Balance",rewardee_count:"u64",member_kind:"u32",requested_date:"Moment"},RequestorData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",total_amt:"Balance",rewardee_count:"u64",member_kind:"u32",requested_date:"Moment"},RewardTransferData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",is_sent:"bool",total_amt:"Balance",rewardee_count:"u64",member_kind:"u32",requested_date:"Moment"},TransferData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",is_sent:"bool",total_amt:"Balance",rewardee_count:"u64",member_kind:"u32",requested_date:"Moment"},RewardDailyData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",total_amt:"Balance",proxy_claim_requestor_account_id:"AccountId",member_kind:"u32",rewarded_date:"Date"},DailyData:{mining_eligibility_proxy_id:"MiningEligibilityProxyIndex",total_amt:"Balance",proxy_claim_requestor_account_id:"AccountId",member_kind:"u32",rewarded_date:"Date"},MiningClaimsToken:"[u8; 16]",MiningClaimsTokenIndex:"u64",MiningClaimsTokenClaimAmount:"u64",MiningClaimsTokenClaimResult:{token_claim_amount:"u64",token_claim_block_redeemed:"u64"},MiningClaimsHardware:"[u8; 16]",MiningClaimsHardwareIndex:"u64",MiningClaimsHardwareClaimAmount:"u64",MiningClaimsHardwareClaimResult:{hardware_claim_amount:"u64",hardware_claim_block_redeemed:"u64"},MiningExecutionToken:"[u8; 16]",MiningExecutionTokenIndex:"u64",MiningExecutionTokenExecutorAccountID:"u64",MiningExecutionTokenExecutionResult:{token_execution_exector_account_id:"u64",token_execution_started_block:"Moment",token_execution_ended_block:"Moment"},ExchangeRateIndex:"u64",ExchangeRateSetting:{hbtc:"u64",dot:"u64",iota:"u64",fil:"u64",decimals_after_point:"u32"},HBTCRate:"u64",DOTRate:"u64",IOTARate:"u64",FILRate:"u64",DecimalsAfterPoint:"u32"}}]},"datahighway-parachain":{types:[{minmax:[0,null],types:{Keys:"SessionKeys2",Address:"MultiAddress",LookupSource:"MultiAddress",RoamingOperator:"[u8; 16]",RoamingOperatorIndex:"u64",RoamingNetwork:"[u8; 16]",RoamingNetworkIndex:"u64",RoamingOrganization:"[u8; 16]",RoamingOrganizationIndex:"u64",RoamingNetworkServer:"[u8; 16]",RoamingNetworkServerIndex:"u64",RoamingDevice:"[u8; 16]",RoamingDeviceIndex:"u64",RoamingRoutingProfile:"[u8; 16]",RoamingRoutingProfileIndex:"u64",RoamingRoutingProfileAppServer:"Text",RoamingServiceProfile:"[u8; 16]",RoamingServiceProfileIndex:"u64",RoamingServiceProfileUplinkRate:"u32",RoamingServiceProfileDownlinkRate:"u32",RoamingAccountingPolicy:"[u8; 16]",RoamingAccountingPolicyIndex:"u64",RoamingAccountingPolicyType:"Text",RoamingAccountingPolicyUplinkFeeFactor:"u32",RoamingAccountingPolicyDownlinkFeeFactor:"u32",RoamingAccountingPolicyConfig:{policy_type:"Text",subscription_fee:"Balance",uplink_fee_factor:"u32",downlink_fee_factor:"u32"},RoamingAgreementPolicy:"[u8; 16]",RoamingAgreementPolicyIndex:"u64",RoamingAgreementPolicyActivationType:"Text",RoamingAgreementPolicyConfig:{policy_activation_type:"Text",policy_expiry_block:"Moment"},RoamingNetworkProfile:"[u8; 16]",RoamingNetworkProfileIndex:"u64",RoamingDeviceProfile:"[u8; 16]",RoamingDeviceProfileIndex:"u64",RoamingDeviceProfileDevAddr:"Text",RoamingDeviceProfileDevEUI:"Text",RoamingDeviceProfileJoinEUI:"Text",RoamingDeviceProfileVendorID:"Text",RoamingDeviceProfileConfig:{device_profile_devaddr:"Text",device_profile_deveui:"Text",device_profile_joineui:"Text",device_profile_vendorid:"Text"},RoamingSession:"[u8; 16]",RoamingSessionIndex:"u64",RoamingSessionJoinRequest:{session_network_server_id:"Moment",session_join_requested_at_block:"Moment"},RoamingSessionJoinAccept:{session_join_request_accept_expiry:"Moment",session_join_request_accept_accepted_at_block:"Moment"},RoamingBillingPolicy:"[u8; 16]",RoamingBillingPolicyIndex:"u64",RoamingBillingPolicyConfig:{policy_next_billing_at_block:"Moment",policy_frequency_in_blocks:"Moment"},RoamingChargingPolicy:"[u8; 16]",RoamingChargingPolicyIndex:"u64",RoamingChargingPolicyConfig:{policy_next_charging_at_block:"Moment",policy_delay_after_billing_in_blocks:"u64"},RoamingPacketBundle:"[u8; 16]",RoamingPacketBundleIndex:"u64",RoamingPacketBundleReceivedAtHome:"bool",RoamingPacketBundleReceivedPacketsCount:"u64",RoamingPacketBundleReceivedPacketsOkCount:"u64",RoamingPacketBundleExternalDataStorageHash:"Hash",RoamingPacketBundleReceiver:{packet_bundle_received_at_home:"bool",packet_bundle_received_packets_count:"u64",packet_bundle_received_packets_ok_count:"u64",packet_bundle_received_started_at_block:"Moment",packet_bundle_received_ended_at_block:"Moment",packet_bundle_external_data_storage_hash:"Hash"},MiningRatesToken:"[u8; 16]",MiningRatesTokenIndex:"u64",MiningRatesTokenTokenDOT:"u32",MiningRatesTokenTokenMXC:"u32",MiningRatesTokenTokenIOTA:"u32",MiningRatesTokenMaxToken:"u32",MiningRatesTokenMaxLoyalty:"u32",MiningRatesTokenConfig:{token_token_mxc:"u32",token_token_iota:"u32",token_token_dot:"u32",token_max_token:"u32",token_max_loyalty:"u32"},MiningRatesHardware:"[u8; 16]",MiningRatesHardwareIndex:"u64",MiningRatesHardwareSecure:"u32",MiningRatesHardwareInsecure:"u32",MiningRatesHardwareMaxHardware:"u32",MiningRatesHardwareCategory1MaxTokenBonusPerGateway:"u32",MiningRatesHardwareCategory2MaxTokenBonusPerGateway:"u32",MiningRatesHardwareCategory3MaxTokenBonusPerGateway:"u32",MiningRatesHardwareConfig:{hardware_hardware_secure:"u32",hardware_hardware_insecure:"u32",hardware_max_hardware:"u32",hardware_category_1_max_token_bonus_per_gateway:"u32",hardware_category_2_max_token_bonus_per_gateway:"u32",hardware_category_3_max_token_bonus_per_gateway:"u32"},MiningConfigToken:"[u8; 16]",MiningConfigTokenIndex:"u64",MiningConfigTokenType:"Text",MiningConfigTokenLockAmount:"u64",MiningConfigTokenConfig:{token_type:"Text",token_lock_amount:"u64",token_lock_start_block:"Moment",token_lock_interval_blocks:"Moment"},MiningConfigTokenRequirementsConfig:{token_type:"Text",token_lock_min_amount:"u64",token_lock_min_blocks:"u32"},MiningConfigHardware:"[u8; 16]",MiningConfigHardwareIndex:"u64",MiningConfigHardwareSecure:"bool",MiningConfigHardwareType:"Text",MiningConfigHardwareID:"u64",MiningConfigHardwareDevEUI:"u64",MiningConfigHardwareConfig:{hardware_secure:"bool",hardware_type:"Text",hardware_id:"u64",hardware_dev_eui:"u64",hardware_lock_start_block:"Moment",hardware_lock_interval_blocks:"Moment"},MiningSamplingToken:"[u8; 16]",MiningSamplingTokenIndex:"u64",MiningSamplingTokenSampleLockedAmount:"u64",MiningSamplingTokenConfig:{token_sample_block:"Moment",token_sample_locked_amount:"u64"},MiningSamplingHardware:"[u8; 16]",MiningSamplingHardwareIndex:"u64",MiningSamplingHardwareSampleHardwareOnline:"u64",MiningSamplingHardwareConfig:{hardware_sample_block:"Moment",hardware_sample_hardware_online:"bool"},MiningEligibilityToken:"[u8; 16]",MiningEligibilityTokenIndex:"u64",MiningEligibilityTokenCalculatedEligibility:"u64",MiningEligibilityTokenLockedPercentage:"u32",MiningEligibilityTokenAuditorAccountID:"u64",MiningEligibilityTokenResult:{token_calculated_eligibility:"u64",token_token_locked_percentage:"u32",token_date_audited:"Moment",token_auditor_account_id:"u64"},MiningEligibilityHardware:"[u8; 16]",MiningEligibilityHardwareIndex:"u64",MiningEligibilityHardwareCalculatedEligibility:"u64",MiningEligibilityHardwareUptimePercentage:"u32",MiningEligibilityHardwareAuditorAccountID:"u64",MiningEligibilityHardwareResult:{hardware_calculated_eligibility:"u64",hardware_uptime_percentage:"u32",hardware_block_audited:"Moment",hardware_auditor_account_id:"u64"},MiningClaimsToken:"[u8; 16]",MiningClaimsTokenIndex:"u64",MiningClaimsTokenClaimAmount:"u64",MiningClaimsTokenClaimResult:{token_claim_amount:"u64",token_claim_block_redeemed:"u64"},MiningClaimsHardware:"[u8; 16]",MiningClaimsHardwareIndex:"u64",MiningClaimsHardwareClaimAmount:"u64",MiningClaimsHardwareClaimResult:{hardware_claim_amount:"u64",hardware_claim_block_redeemed:"u64"},MiningExecutionToken:"[u8; 16]",MiningExecutionTokenIndex:"u64",MiningExecutionTokenExecutorAccountID:"u64",MiningExecutionTokenExecutionResult:{token_execution_exector_account_id:"u64",token_execution_started_block:"Moment",token_execution_ended_block:"Moment"},ExchangeRateIndex:"u64",ExchangeRateConfig:{hbtc:"u64",dot:"u64",iota:"u64",fil:"u64",decimals_after_point:"u32"},HBTCRate:"u64",DOTRate:"u64",IOTARate:"u64",FILRate:"u64",DecimalsAfterPoint:"u32"}}]},dawn:{types:[{minmax:[0,null],types:{AccountIdOf:"AccountId",Address:"MultiAddress",AirDropCurrencyId:{_enum:["ICE","EAVE"]},Amount:"i128",AmountOf:"Amount",AsOriginId:"AuthoritysOriginId",AssetId:"u64",AssetIdOf:"AssetId",AuctionId:"u32",AuctionIdOf:"AuctionId",AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},AuthoritysOriginId:{_enum:["Root","EaveTreasury","CdpTreasury","ElpTreasury","DSWF"]},BalanceInfo:{amount:"Balance"},BalanceRequest:{amount:"Balance"},BalanceWrapper:{amount:"Balance"},BondingLedger:{total:"Compact",active:"Compact",unlocking:"Vec"},CID:"Vec",CallOf:"Call",CallRequest:{from:"Option",to:"Option",gasLimit:"Option",storageLimit:"Option",value:"Option",data:"Option"},ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},ChangeBalance:{_enum:{NoChange:"Null",NewValue:"Balance"}},ChangeOptionRate:{_enum:{NoChange:"Null",NewValue:"OptionRate"}},ChangeOptionRatio:{_enum:{NoChange:"Null",NewValue:"OptionRatio"}},ChangeRate:{_enum:{NoChange:"Null",NewValue:"Rate"}},ChangeRatio:{_enum:{NoChange:"Null",NewValue:"Ratio"}},ClassData:{deposit:"Balance",properties:"Properties"},ClassId:"u32",ClassIdOf:"ClassId",ClassInfoOf:{metadata:"CID",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},CodeInfo:{codeSize:"u32",refCount:"u32"},CollateralAuctionItem:{refundRecipient:"AccountId",currencyId:"CurrencyId",initialAmount:"Compact",amount:"Compact",target:"Compact",startTime:"BlockNumber"},CurrencyId:{_enum:{Token:"TokenSymbol",DEXShare:"(TokenSymbol, TokenSymbol)",ERC20:"EvmAddress"}},CurrencyIdOf:"CurrencyId",DataProviderId:{_enum:["Aggregated","Eave","Band"]},DebitAuctionItem:{initialAmount:"Compact",amount:"Compact",fix:"Compact",startTime:"BlockNumber"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},DestAddress:"Vec",DispatchId:"u32",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ElpUnlockChunk:{value:"Compact",era:"Compact"},EvmAccountInfo:{nonce:"Index",contractInfo:"Option",developerDeposit:"Option"},EvmAddress:"H160",EvmContractInfo:{codeHash:"H256",maintainer:"H160",deployed:"bool"},ExchangeRate:"FixedU128",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},Keys:"SessionKeys2",Ledger:{bonded:"Balance",unbondingToFree:"Balance",freePool:"Balance",toUnbondNextEra:"(Balance, Balance)"},LiquidationStrategy:{_enum:["Auction","Exchange"]},LiquidityPool:{currency_ids:"Vec",lp_token_id:"AssetId",pool_config_id:"u32",pool_reserves:"Vec"},LiquidityPoolConfig_:"PoolConfig",LiquidityPool_:"LiquidityPool",LookupSource:"MultiAddress",NomineeId:"AccountId",NFTBalance:"u128",OptionRate:"Option",OptionRatio:"Option",OracleKey:"CurrencyId",OracleValue:"Price",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},PalletBalanceOf:"Balance",PalletsOrigin:{_enum:{System:"SystemOrigin",Timestamp:"Null",RandomnessCollectiveFlip:"Null",Balances:"Null",Accounts:"Null",Currencies:"Null",Tokens:"Null",Vesting:"Null",EaveTreasury:"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",EYECouncil:"CollectiveOrigin",EYECouncilMembership:"Null",ElpCouncil:"CollectiveOrigin",ElpCouncilMembership:"Null",TechnicalCommittee:"CollectiveOrigin",TechnicalCommitteeMembership:"Null",Authority:"DelayedOrigin",ElectionsPhragmen:"Null",EaveOracle:"Null",BandOracle:"Null",OperatorMembershipEave:"Null",OperatorMembershipBand:"Null",Auction:"Null",Rewards:"Null",OrmlNFT:"Null",Prices:"Null",Dex:"Null",AuctionManager:"Null",Loans:"Null",EYE:"Null",CdpTreasury:"Null",CdpEngine:"Null",EmergencyShutdown:"Null",Elp:"Null",NomineesElection:"Null",StakingPool:"Null",PolkadotBridge:"Null",Incentives:"Null",AirDrop:"Null",NFT:"Null",RenVmBridge:"Null",Contracts:"Null",EVM:"Null",Sudo:"Null",TransactionPayment:"Null"}},Params:{targetMaxFreeUnbondedRatio:"Ratio",targetMinFreeUnbondedRatio:"Ratio",targetUnbondingToFreeRatio:"Ratio",unbondingToFreeAdjustment:"Ratio",baseFeeRate:"Rate"},PolkadotAccountId:"AccountId",PolkadotAccountIdOf:"PolkadotAccountId",PoolId:{_enum:{Loans:"CurrencyId",DexIncentive:"CurrencyId",DexSaving:"CurrencyId",Elp:"Null"}},PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"},Position:{collateral:"Balance",debit:"Balance"},Price:"FixedU128",Properties:{_set:{_bitLength:8,Transferable:1,Burnable:2}},PublicKey:"[u8; 20]",Rate:"FixedU128",Ratio:"FixedU128",RedeemStrategy:{_enum:{Immediately:"Null",Target:"EraIndex",WaitForUnbonding:"Null"}},RelaychainAccountId:"AccountId",RiskManagementParams:{maximumTotalDebitValue:"Balance",stabilityFee:"Option",liquidationRatio:"Option",liquidationPenalty:"Option",requiredCollateralRatio:"Option"},RpcDataProviderId:"Text",ScheduleTaskIndex:"u32",Share:"u128",StorageKeyBytes:"Vec",StorageValue:"Vec",StorageValueBytes:"Vec",SubAccountStatus:{bonded:"Balance",available:"Balance",unbonding:"Vec<(EraIndex,Balance)>",mockRewardRate:"Rate"},SurplusAuctionItem:{amount:"Compact",startTime:"BlockNumber"},TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",TokenBalanceOf:"Balance",TokenData:{deposit:"Balance"},TokenId:"u64",TokenIdOf:"TokenId",TokenInfo:{name:"Text",symbol:"Text",decimals:"u8",owner:"AccountId"},TokenInfoOf:{metadata:"CID",owner:"AccountId",data:"TokenData"},TokenSymbol:{_enum:{EAVE:0,EUSD:1,DOT:2,LDOT:3,XBTC:4,RENBTC:5,INTERBTC:6,PLM:7,PHA:8,HDT:9,ICE:128,IUSD:129,KSM:130,LKSM:131,SDN:135,KILT:138}},TradingPair:"(CurrencyId, CurrencyId)",TradingPairProvisionParameters:{minContribution:"(Balance, Balance)",targetProvision:"(Balance, Balance)",accumulatedProvision:"(Balance, Balance)",notBefore:"BlockNumber"},TradingPairStatus:{_enum:{NotEnabled:"Null",Provisioning:"TradingPairProvisionParameters",Enabled:"Null"}},VestingScheduleOf:"OrmlVestingSchedule",XCurrencyId:{chainId:"ChainId",currencyId:"Vec"}}}]},"dev-parachain":{types:[{minmax:[0,null],types:{PairId:"u32",Pair:{token_0:"AssetId",token_1:"AssetId",account:"AccountId",total_liquidity:"TokenBalance",lp_asset_id:"AssetId"},PairInfo:{token_0:"AssetId",token_1:"AssetId",account:"AccountId",total_liquidity:"TokenBalance",holding_liquidity:"TokenBalance",reserve_0:"TokenBalance",reserve_1:"TokenBalance",lp_asset_id:"AssetId"},AssetId:{chain_id:"u32",module_index:"u8",asset_index:"u32"},TokenId:"u32",AssetProperty:{_enum:{FOREIGN:null,LP:"LpProperty"}},LpProperty:{token_0:"AssetId",token_1:"AssetId"},TokenBalance:"u128"}}]},"dock-pos-main-runtime":{types:[{minmax:[0,23],types:{Address:"AccountId",LookupSource:"AccountId",Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}},{minmax:[23],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}}],rpc:{poa:{treasuryAccount:{description:"Return account address of treasury. The account address can then be used to query the chain for balance",params:[],type:"AccountId"},treasuryBalance:{description:"Return free balance of treasury account. In the context of PoA, only free balance makes sense for treasury. But just in case, to check all kinds of balance (locked, reserved, etc), get the account address with above call and query the chain.",params:[],type:"Balance"},getTotalEmissionInEpoch:{description:"Return total (validators + treasury) emission rewards for given epoch",params:["EpochNo"],type:"Balance"}},price_feed:{tokenUsdPrice:{description:"Gets the price of Dock/USD from pallet's storage",params:[],type:"Option"},tokenUsdPriceFromContract:{description:"Gets the price of Dock/USD from EVM contract",params:[],type:"Option"}},fiat_filter:{getCallFeeDock:{description:"Accepts a scale-encoded extrinsic, returns fee in µDOCK as Balance (u64)",params:["Bytes"],type:"Balance"}},core_mods:{psPublicKeyWithParams:{description:"Return PS public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(PsPublicKey, Option)>"},psParamsByDid:{description:"Return all PS params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},psPublicKeysByDid:{description:"Return all PS key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},bbsPublicKeyWithParams:{description:"Return BBS public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(BbsPublicKey, Option)>"},bbsParamsByDid:{description:"Return all BBS params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},bbsPublicKeysByDid:{description:"Return all BBS key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},bbsPlusPublicKeyWithParams:{description:"Return BBS+ public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(BbsPlusPublicKey, Option)>"},bbsPlusParamsByDid:{description:"Return all BBS+ params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},bbsPlusPublicKeysByDid:{description:"Return all BBS+ key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},accumulatorPublicKeyWithParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumPublicKeyStorageKey"}],type:"Option"},accumulatorWithPublicKeyAndParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumulatorId"}],type:"Option<(Vec, Option)>"},didDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"did",type:"Did"},{name:"params",type:"u8",isOptional:!0}],type:"Option"},didListDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"dids",type:"Vec"},{name:"params",type:"u8",isOptional:!0}],type:"Vec>"}},staking_rewards:{yearlyEmission:{description:"",params:[{name:"total_staked",type:"Balance"},{name:"total_issuance",type:"Balance"}],type:"Balance"},maxYearlyEmission:{description:"",params:[],type:"Balance"}}}},"dock-pos-test-runtime":{types:[{minmax:[0,23],types:{Address:"AccountId",LookupSource:"AccountId",Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}},{minmax:[23],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},BlockLength:{max:"PerDispatchClassU32"},Keys:"SessionKeys2",Did:"[u8;32]",Bytes32:{value:"[u8;32]"},Bytes33:{value:"[u8;33]"},Bytes64:{value:"[u8;64]"},Bytes65:{value:"[u8;65]"},PublicKey:{_enum:{Sr25519:"Bytes32",Ed25519:"Bytes32",Secp256k1:"Bytes33"}},DidSignature:{_enum:{Sr25519:"Bytes64",Ed25519:"Bytes64",Secp256k1:"Bytes65"}},KeyDetail:{controller:"Did",public_key:"PublicKey"},KeyUpdate:{did:"Did",public_key:"PublicKey",controller:"Option",last_modified_in_block:"BlockNumber"},DidRemoval:{did:"Did",last_modified_in_block:"BlockNumber"},RegistryId:"[u8;32]",RevokeId:"[u8;32]",Registry:{policy:"Policy",add_only:"bool"},Revoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},UnRevoke:{registry_id:"RegistryId",revoke_ids:"BTreeSet",last_modified:"BlockNumber"},RemoveRegistry:{registry_id:"RegistryId",last_modified:"BlockNumber"},PAuth:"BTreeMap",Policy:{_enum:{OneOf:"BTreeSet"}},BlobId:"[u8;32]",Blob:{id:"BlobId",blob:"Vec",author:"Did"},EpochNo:"u32",EpochLen:"u32",SlotNo:"u64",Balance:"u64",EpochDetail:{validator_count:"u8",starting_slot:"SlotNo",expected_ending_slot:"SlotNo",ending_slot:"Option",emission_for_validators:"Option",emission_for_treasury:"Option"},ValidatorStatsPerEpoch:{block_count:"EpochLen",locked_reward:"Option",unlocked_reward:"Option"},Payload:{proposal:"Vec",round_no:"u64"},Membership:{members:"BTreeSet",vote_requirement:"u64"},PMAuth:"BTreeMap",Bonus:{swap_bonuses:"Vec<(Balance, BlockNumber)>",vesting_bonuses:"Vec<(Balance, Balance, BlockNumber)>"},Attestation:{priority:"Compact",iri:"Option>"},Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},ParamType:{_enum:{Address:null,Int:"u16",Uint:"u16"}},ContractConfig:{address:"H160",query_aggregator_call_encoded:"Vec",query_price_abi_encoded:"Vec",return_val_abi:"Vec"},StateChange:{_enum:{KeyUpdate:"KeyUpdate",DidRemoval:"DidRemoval",Revoke:"Revoke",UnRevoke:"UnRevoke",RemoveRegistry:"RemoveRegistry",Blob:"Blob",MasterVote:"Payload",Attestation:"(Did, Attestation)"}}}}],rpc:{poa:{treasuryAccount:{description:"Return account address of treasury. The account address can then be used to query the chain for balance",params:[],type:"AccountId"},treasuryBalance:{description:"Return free balance of treasury account. In the context of PoA, only free balance makes sense for treasury. But just in case, to check all kinds of balance (locked, reserved, etc), get the account address with above call and query the chain.",params:[],type:"Balance"},getTotalEmissionInEpoch:{description:"Return total (validators + treasury) emission rewards for given epoch",params:["EpochNo"],type:"Balance"}},price_feed:{tokenUsdPrice:{description:"Gets the price of Dock/USD from pallet's storage",params:[],type:"Option"},tokenUsdPriceFromContract:{description:"Gets the price of Dock/USD from EVM contract",params:[],type:"Option"}},fiat_filter:{getCallFeeDock:{description:"Accepts a scale-encoded extrinsic, returns fee in µDOCK as Balance (u64)",params:["Bytes"],type:"Balance"}},core_mods:{psPublicKeyWithParams:{description:"Return PS public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(PsPublicKey, Option)>"},psParamsByDid:{description:"Return all PS params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},psPublicKeysByDid:{description:"Return all PS key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},bbsPublicKeyWithParams:{description:"Return BBS public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(BbsPublicKey, Option)>"},bbsParamsByDid:{description:"Return all BBS params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},bbsPublicKeysByDid:{description:"Return all BBS key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},bbsPlusPublicKeyWithParams:{description:"Return BBS+ public key with params",params:[{name:"id",type:"(Did, IncId)"}],type:"Option<(BbsPlusPublicKey, Option)>"},bbsPlusParamsByDid:{description:"Return all BBS+ params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap"},bbsPlusPublicKeysByDid:{description:"Return all BBS+ key with params by a DID",params:[{name:"did",type:"Did"}],type:"BTreeMap)>"},accumulatorPublicKeyWithParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumPublicKeyStorageKey"}],type:"Option"},accumulatorWithPublicKeyAndParams:{description:"Return Accumulator public key with params",params:[{name:"id",type:"AccumulatorId"}],type:"Option<(Vec, Option)>"},didDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"did",type:"Did"},{name:"params",type:"u8",isOptional:!0}],type:"Option"},didListDetails:{description:"Get all keys, controllers and service endpoints of the DID",params:[{name:"dids",type:"Vec"},{name:"params",type:"u8",isOptional:!0}],type:"Vec>"}},staking_rewards:{yearlyEmission:{description:"",params:[{name:"total_staked",type:"Balance"},{name:"total_issuance",type:"Balance"}],type:"Balance"},maxYearlyEmission:{description:"",params:[],type:"Balance"}}}},"dotmog-node":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",MogwaiStruct:{id:"Hash",dna:"Hash",genesis:"BlockNumber",price:"Balance",gen:"u32",rarity:"RarityType"},MogwaiBios:{mogwai_id:"Hash",state:"u32",metaxy:"Vec<[u8;16]>",intrinsic:"Balance",level:"u8",phases:"Vec",adaptations:"Vec"},GameEvent:{id:"Hash",begin:"BlockNumber",duration:"u16",event_type:"GameEventType",hashes:"Vec",value:"u64"},GameEventType:{_enum:["Default","Hatch"]},RarityType:{_enum:["Minor","Normal","Rare","Epic","Legendary"]},MogwaicoinAddress:{address:"Vec",account:"AccountId",signature:"Vec",state:"ClaimState",balance:"Balance"},ClaimState:{_enum:["None","Registred","Verified","Secured","Processed","Holded","Failed","Cancelled"]}}}]},edgeware:{alias:{voting:{Tally:"VotingTally"}},types:[{minmax:[0,31],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",Keys:"SessionKeys4",StakingLedger:"StakingLedgerTo240",Votes:"VotesTo230",ReferendumInfo:"ReferendumInfoTo239",Weight:"u32",DispatchInfo:"DispatchInfoTo244",OpenTip:"OpenTipTo225",ContractExecResult:"ContractExecResultTo255",CompactAssignments:"CompactAssignmentsTo257",RewardDestination:"RewardDestinationTo257",RefCount:"RefCountTo259",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[32,38],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",CompactAssignments:"CompactAssignmentsTo257",ContractExecResult:"ContractExecResultTo255",RewardDestination:"RewardDestinationTo257",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[39,41],types:{ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",Balance2:"u128",VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},"voting::VoteType":"VoteType","voting::TallyType":"TallyType","voting::Tally":"VotingTally",RefCount:"u32",AccountInfo:"AccountInfoWithRefCount",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource"}},{minmax:[42,46],types:{Balance2:"u128",ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"},VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",AccountInfo:"AccountInfoWithRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"}},{minmax:[47,null],types:{Balance2:"u128",DepositNonce:"u64",ResourceId:"[u8; 32]",ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},ProposalVotes:{votes_for:"Vec",votes_against:"Vec",staus:"ProposalStatus",expiry:"BlockNumber"},VoteStage:{_enum:["PreVoting","Commit","Voting","Completed"]},VoteType:{_enum:["Binary","MultiOption","RankedChoice"]},TallyType:{_enum:["OnePerson","OneCoin"]},VoteOutcome:"[u8; 32]",VotingTally:"Option>",VoteData:{initiator:"AccountId",stage:"VoteStage",vote_type:"VoteType",tally_type:"TallyType",is_commit_reveal:"bool"},Commitments:"Vec<(AccountId, VoteOutcome)>",Reveals:"Vec<(AccountId, Vec)>",VoteRecord:{id:"u64",commitments:"Commitments",reveals:"Reveals",data:"VoteData",outcomes:"Vec"},ProposalRecord:{index:"u32",author:"AccountId",stage:"VoteStage",transition_time:"u32",title:"Text",contents:"Text",vote_id:"u64"},ProposalContents:"Bytes",ProposalTitle:"Bytes",CID:"Vec",Properties:{_set:{Transferable:1,Burnable:2}},ClassData:{deposit:"Balance",properties:"Properties"},TokenData:{deposit:"Balance"},ClassInfo:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"ClassData"},ClassInfoOf:"ClassInfo",TokenInfo:{metadata:"Vec",owner:"AccountId",data:"TokenData"},TokenInfoOf:"TokenInfo",TokenId:"u64",ClassIdOf:"ClassId",TokenIdOf:"TokenId",Amount:"i128",AmountOf:"Amount",Approval:{amount:"Balance",deposit:"Balance"},ApprovalKey:{owner:"AccountId",delegate:"AccountId"},Commitment:"ScalarData",CurrencyId:"u64",CurrencyIdOf:"CurrencyId",DustHandlerType:{_enum:{Burn:"Null",Transfer:"AccountId"}},HashFunction:{_enum:["PoseidonDefault","PoseidonExp3","PoseidonExp5","PoseidonExp17","MiMC","Blake2","Sha256"]},Manager:{accountId:"AccountId",required:"bool"},MerkleTree:{leaf_count:"u32",max_leaves:"u32",depth:"u8",root_hash:"ScalarData",edge_nodes:"Vec",hasher:"HashFunction",should_store_leaves:"bool"},MixerInfo:{minimum_deposit_length_for_reward:"BlockNumber",fixed_deposit_size:"Balance",currency_id:"CurrencyIdOf"},Nullifier:"ScalarData",ScalarData:"[u8; 32]",TokenDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"Balance",min_balance:"Balance",approvals:"u32",is_frozen:"bool",dust_type:"DustHandlerType"},TokenMetadata:{deposit:"Balance",name:"Vec",symbol:"Vec",decimals:"u8",is_frozen:"bool"},TreeId:"u32",WithdrawProof:{mixer_id:"TreeId",cached_block:"BlockNumber",cached_root:"ScalarData",comms:"Vec",nullifier_hash:"ScalarData",proof_bytes:"Vec",leaf_index_commitments:"Vec",proof_commitments:"Vec",recipient:"Option",relayer:"Option"},ETHBlock:{inner:"Block"},ETHReceipts:{inner:"Vec"},ETHTxStatuses:{inner:"Vec"},AccountInfo:"AccountInfoWithTripleRefCount",Address:"MultiAddress",LookupSource:"MultiAddress"}}]},"encointer-node-notee":{types:[{minmax:[9,null],types:{CommunityIdentifier:{geohash:"GeoHash",digest:"CidDigest"},GeoHash:"[u8; 5]",CidDigest:"[u8; 4]"}},{minmax:[0,8],types:{ShardIdentifier:"Hash",GetterArgs:"(AccountId, CommunityIdentifier)",Enclave:{pubkey:"AccountId",mrenclave:"Hash",timestamp:"u64",url:"Text"},PublicGetter:{_enum:{total_issuance:"CommunityIdentifier",participant_count:"CommunityIdentifier",meetup_count:"CommunityIdentifier",ceremony_reward:"CommunityIdentifier",location_tolerance:"CommunityIdentifier",time_tolerance:"CommunityIdentifier",scheduler_state:"CommunityIdentifier"}},TrustedGetter:{_enum:{balance:"(AccountId, CommunityIdentifier)",participant_index:"(AccountId, CommunityIdentifier)",meetup_index:"(AccountId, CommunityIdentifier)",attestations:"(AccountId, CommunityIdentifier)",meetup_registry:"(AccountId, CommunityIdentifier)"}},TrustedGetterSigned:{getter:"TrustedGetter",signature:"Signature"},Getter:{_enum:{public:"PublicGetter",trusted:"TrustedGetterSigned"}},ClientRequest:{_enum:{PubKeyWorker:null,MuRaPortWorker:null,StfState:"(Getter, ShardIdentifier)"}},WorkerEncoded:"Vec",Request:{shard:"ShardIdentifier",cyphertext:"WorkerEncoded"},TrustedCallSigned:{call:"TrustedCall",nonce:"u32",signature:"Signature"},TrustedCall:{_enum:{balance_transfer:"BalanceTransferArgs",ceremonies_register_participant:"RegisterParticipantArgs",ceremonies_register_attestations:"RegisterAttestationsArgs",ceremonies_grant_reputation:"GrantReputationArgs"}},BalanceTransferArgs:"(AccountId, AccountId, CommunityIdentifier, BalanceType)",RegisterParticipantArgs:"(AccountId, CommunityIdentifier, Option>)",RegisterAttestationsArgs:"(AccountId, Vec>)",GrantReputationArgs:"(AccountId, CommunityIdentifier, AccountId)",BalanceType:"i128",BalanceEntry:{principal:"BalanceType",lastUpdate:"BlockNumber"},Demurrage:"BalanceType",BusinessIdentifier:{communityIdentifier:"CommunityIdentifier",controller:"AccountId"},OfferingIdentifier:"u32",BusinessData:{url:"PalletString",last_oid:"u32"},OfferingData:{url:"PalletString"},PalletString:"Text",IpfsCid:"Text",FixedI64F64:{bits:"i128"},CeremonyIndexType:"u32",CeremonyPhaseType:{_enum:["Registering","Assigning","Attesting"]},ParticipantIndexType:"u64",MeetupIndexType:"u64",AttestationIndexType:"u64",MeetupAssignment:"(MeetupIndexType, Option)",MeetupTimeOffsetType:"i32",Reputation:{_enum:["Unverified","UnverifiedReputable","VerifiedUnlinked","VerifiedLinked"]},CommunityReputation:{communityIdentifier:"CommunityIdentifier",reputation:"Reputation"},ClaimOfAttendance:{claimantPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",meetupIndex:"MeetupIndexType",location:"Location",timestamp:"Moment",numberOfParticipantsConfirmed:"u32",claimantSignature:"Option"},ClaimOfAttendanceSigningPayload:{claimantPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",meetupIndex:"MeetupIndexType",location:"Location",timestamp:"Moment",numberOfParticipantsConfirmed:"u32"},AssignmentCount:{bootstrappers:"ParticipantIndexType",reputables:"ParticipantIndexType",endorsees:"ParticipantIndexType",newbies:"ParticipantIndexType"},Assignment:{bootstrappersReputables:"AssignmentParams",endorsees:"AssignmentParams",newbies:"AssignmentParams",locations:"AssignmentParams"},AssignmentParams:{m:"u64",s1:"u64",s2:"u64"},CommunityCeremonyStats:{communityCeremony:"(CommunityIdentifier, CeremonyIndexType)",assignment:"Assignment",assignmentCount:"AssignmentCount",meetupCount:"MeetupIndexType",meetups:"Vec"},Meetup:{index:"MeetupIndexType",location:"LocationRpc",time:"Moment",registrations:"Vec<(AccountId, ParticipantRegistration)>"},ParticipantRegistration:{index:"ParticipantIndexType",registrationType:"RegistrationType"},RegistrationType:{_enum:["Bootstrapper","Reputable","Endorsee","Newbie"]},Attestation:{claim:"ClaimOfAttendance",signature:"MultiSignature",public:"AccountId"},ProofOfAttendance:{proverPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",attendeePublic:"AccountId",attendeeSignature:"MultiSignature"},CommunityIdentifier:{geohash:"GeoHash",digest:"CidDigest"},GeoHash:"[u8; 5]",CidDigest:"[u8; 4]",CommunityCeremony:"(CommunityIdentifier,CeremonyIndexType)",NominalIncomeType:"BalanceType",DegreeRpc:"Text",DegreeFixed:"i128",Location:{lat:"DegreeFixed",lon:"DegreeFixed"},LocationRpc:{lat:"DegreeRpc",lon:"DegreeRpc"},CidName:{cid:"CommunityIdentifier",name:"Text"},CommunityMetadataType:{name:"Text",symbol:"Text",assets:"Text",theme:"Option",url:"Option"},SystemNumber:"u32",SchedulerState:"(CeremonyIndexType, CeremonyPhaseType, SystemNumber)"}}],signedExtensions:{ChargeAssetTxPayment:{extrinsic:{tip:"Compact",assetId:"Option"},payload:{}}}},"encointer-node-teeproxy":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",CeremonyPhaseType:{_enum:["Registering","Assigning","Attesting"]},CeremonyIndexType:"u32",CurrencyIdentifier:"Hash",CurrencyCeremony:{cid:"CurrencyIdentifier",cindex:"CeremonyIndexType"},Location:{lat:"i64",lon:"i64"},CurrencyPropertiesType:{name_utf8:"Text",demurrage_per_block:"i128"},ShardIdentifier:"Hash",Request:{shard:"ShardIdentifier",cyphertext:"Vec"},Enclave:{pubkey:"AccountId",mrenclave:"Hash",timestamp:"u64",url:"Text"}}}]},"encointer-parachain":{types:[{minmax:[3,null],types:{CommunityIdentifier:{geohash:"GeoHash",digest:"CidDigest"},GeoHash:"[u8; 5]",CidDigest:"[u8; 4]"}},{minmax:[0,2],types:{ShardIdentifier:"Hash",GetterArgs:"(AccountId, CommunityIdentifier)",Enclave:{pubkey:"AccountId",mrenclave:"Hash",timestamp:"u64",url:"Text"},PublicGetter:{_enum:{total_issuance:"CommunityIdentifier",participant_count:"CommunityIdentifier",meetup_count:"CommunityIdentifier",ceremony_reward:"CommunityIdentifier",location_tolerance:"CommunityIdentifier",time_tolerance:"CommunityIdentifier",scheduler_state:"CommunityIdentifier"}},TrustedGetter:{_enum:{balance:"(AccountId, CommunityIdentifier)",participant_index:"(AccountId, CommunityIdentifier)",meetup_index:"(AccountId, CommunityIdentifier)",attestations:"(AccountId, CommunityIdentifier)",meetup_registry:"(AccountId, CommunityIdentifier)"}},TrustedGetterSigned:{getter:"TrustedGetter",signature:"Signature"},Getter:{_enum:{public:"PublicGetter",trusted:"TrustedGetterSigned"}},ClientRequest:{_enum:{PubKeyWorker:null,MuRaPortWorker:null,StfState:"(Getter, ShardIdentifier)"}},WorkerEncoded:"Vec",Request:{shard:"ShardIdentifier",cyphertext:"WorkerEncoded"},TrustedCallSigned:{call:"TrustedCall",nonce:"u32",signature:"Signature"},TrustedCall:{_enum:{balance_transfer:"BalanceTransferArgs",ceremonies_register_participant:"RegisterParticipantArgs",ceremonies_register_attestations:"RegisterAttestationsArgs",ceremonies_grant_reputation:"GrantReputationArgs"}},BalanceTransferArgs:"(AccountId, AccountId, CommunityIdentifier, BalanceType)",RegisterParticipantArgs:"(AccountId, CommunityIdentifier, Option>)",RegisterAttestationsArgs:"(AccountId, Vec>)",GrantReputationArgs:"(AccountId, CommunityIdentifier, AccountId)",BalanceType:"i128",BalanceEntry:{principal:"BalanceType",lastUpdate:"BlockNumber"},Demurrage:"BalanceType",BusinessIdentifier:{communityIdentifier:"CommunityIdentifier",controller:"AccountId"},OfferingIdentifier:"u32",BusinessData:{url:"PalletString",last_oid:"u32"},OfferingData:{url:"PalletString"},PalletString:"Text",IpfsCid:"Text",FixedI64F64:{bits:"i128"},CeremonyIndexType:"u32",CeremonyPhaseType:{_enum:["Registering","Assigning","Attesting"]},ParticipantIndexType:"u64",MeetupIndexType:"u64",AttestationIndexType:"u64",MeetupAssignment:"(MeetupIndexType, Option)",MeetupTimeOffsetType:"i32",Reputation:{_enum:["Unverified","UnverifiedReputable","VerifiedUnlinked","VerifiedLinked"]},CommunityReputation:{communityIdentifier:"CommunityIdentifier",reputation:"Reputation"},ClaimOfAttendance:{claimantPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",meetupIndex:"MeetupIndexType",location:"Location",timestamp:"Moment",numberOfParticipantsConfirmed:"u32",claimantSignature:"Option"},ClaimOfAttendanceSigningPayload:{claimantPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",meetupIndex:"MeetupIndexType",location:"Location",timestamp:"Moment",numberOfParticipantsConfirmed:"u32"},AssignmentCount:{bootstrappers:"ParticipantIndexType",reputables:"ParticipantIndexType",endorsees:"ParticipantIndexType",newbies:"ParticipantIndexType"},Assignment:{bootstrappersReputables:"AssignmentParams",endorsees:"AssignmentParams",newbies:"AssignmentParams",locations:"AssignmentParams"},AssignmentParams:{m:"u64",s1:"u64",s2:"u64"},CommunityCeremonyStats:{communityCeremony:"(CommunityIdentifier, CeremonyIndexType)",assignment:"Assignment",assignmentCount:"AssignmentCount",meetupCount:"MeetupIndexType",meetups:"Vec"},Meetup:{index:"MeetupIndexType",location:"LocationRpc",time:"Moment",registrations:"Vec<(AccountId, ParticipantRegistration)>"},ParticipantRegistration:{index:"ParticipantIndexType",registrationType:"RegistrationType"},RegistrationType:{_enum:["Bootstrapper","Reputable","Endorsee","Newbie"]},Attestation:{claim:"ClaimOfAttendance",signature:"MultiSignature",public:"AccountId"},ProofOfAttendance:{proverPublic:"AccountId",ceremonyIndex:"CeremonyIndexType",communityIdentifier:"CommunityIdentifier",attendeePublic:"AccountId",attendeeSignature:"MultiSignature"},CommunityIdentifier:{geohash:"GeoHash",digest:"CidDigest"},GeoHash:"[u8; 5]",CidDigest:"[u8; 4]",CommunityCeremony:"(CommunityIdentifier,CeremonyIndexType)",NominalIncomeType:"BalanceType",DegreeRpc:"Text",DegreeFixed:"i128",Location:{lat:"DegreeFixed",lon:"DegreeFixed"},LocationRpc:{lat:"DegreeRpc",lon:"DegreeRpc"},CidName:{cid:"CommunityIdentifier",name:"Text"},CommunityMetadataType:{name:"Text",symbol:"Text",assets:"Text",theme:"Option",url:"Option"},SystemNumber:"u32",SchedulerState:"(CeremonyIndexType, CeremonyPhaseType, SystemNumber)"}}],signedExtensions:{ChargeAssetTxPayment:{extrinsic:{tip:"Compact",assetId:"Option"},payload:{}}}},fantour:{types:[{minmax:[0,null],types:{Properties:"u8",NFTMetadata:"Vec",BlockNumber:"u32",BlockNumberOf:"BlockNumber",OrderData:{currencyId:"Compact",price:"Compact",deposit:"Compact",deadline:"Compact",categoryId:"Compact"},CategoryId:"u32",CategoryIdOf:"CategoryId",CategoryData:{metadata:"NFTMetadata",nftCount:"Compact"},CurrencyId:"u32",CurrencyIdOf:"CurrencyId",Amount:"i128",AmountOf:"Amount",ClassId:"u32",ClassIdOf:"ClassId",ClassInfoOf:{metadata:"NFTMetadata",totalIssuance:"TokenId",owner:"AccountId",data:"ClassData"},ClassData:{deposit:"Compact",properties:"Properties",name:"Vec",description:"Vec",createBlock:"Compact"},TokenId:"u64",TokenIdOf:"TokenId",TokenInfoOf:{metadata:"NFTMetadata",owner:"AccountId",data:"TokenData"},TokenData:{deposit:"Compact",createBlock:"Compact"}}}]},"ferrum-parachain":{types:[{minmax:[0,null],types:{AccountId:"EthereumAccountId",AccountId20:"EthereumAccountId",Address:"AccountId",LookupSource:"AccountId",Lookup0:"AccountId",EthereumSignature:{r:"H256",s:"H256",v:"U8"},ExtrinsicSignature:"EthereumSignature"}}]},foucoco:{rpc:{issue:{getIssueRequests:{description:"Get all issue requests for a particular account",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"issue_getIssueRequests",method:"getIssueRequests",section:"issue"},getVaultIssueRequests:{description:"Get all issue requests for a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"issue_getVaultIssueRequests",method:"getVaultIssueRequests",section:"issue"}},redeem:{getRedeemRequests:{description:"Get all redeem requests for a particular account",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"redeem_getRedeemRequests",method:"getRedeemRequests",section:"redeem"},getVaultRedeemRequests:{description:"Get all redeem requests for a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"redeem_getVaultRedeemRequests",method:"getVaultRedeemRequests",section:"redeem"}},replace:{getOldVaultReplaceRequests:{description:"Get all replace requests from a particular vault",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"replace_getOldVaultReplaceRequests",method:"getOldVaultReplaceRequests",section:"replace"},getNewVaultReplaceRequests:{description:"Get all replace requests to a particular vault",params:[{name:"vaultId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"replace_getNewVaultReplaceRequests",method:"getNewVaultReplaceRequests",section:"replace"}},oracle:{currencyToUsd:{description:"Get the USD value of a currency",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"oracle_currencyToUsd",method:"currencyToUsd",section:"oracle"},usdToCurrency:{description:"Get the currency value of a USD amount",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"oracle_usdToCurrency",method:"usdToCurrency",section:"oracle"},getExchangeRate:{description:"Get the exchange rate of the given currencyId to USD",params:[{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"UnsignedFixedPoint",isSubscription:!1,jsonrpc:"oracle_getExchangeRate",method:"getExchangeRate",section:"oracle"}},vaultRegistry:{getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultCollateral",method:"getVaultCollateral",section:"vaultRegistry"},getVaultsByAccountId:{description:"Get all the vaultIds registered by a vault's accountId",params:[{name:"accountId",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsByAccountId",method:"getVaultsByAccountId",section:"vaultRegistry"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultTotalCollateral",method:"getVaultTotalCollateral",section:"vaultRegistry"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getPremiumRedeemVaults",method:"getPremiumRedeemVaults",section:"vaultRegistry"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsWithIssuableTokens",method:"getVaultsWithIssuableTokens",section:"vaultRegistry"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(SpacewalkPrimitivesVaultId, BalanceWrapper)>",isSubscription:!1,jsonrpc:"vaultRegistry_getVaultsWithRedeemableTokens",method:"getVaultsWithRedeemableTokens",section:"vaultRegistry"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getIssueableTokensFromVault",method:"getIssueableTokensFromVault",section:"vaultRegistry"},getCollateralizationFromVault:{description:"Get the collateralization rate of a vault",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"onlyIssued",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"FixedU128",isSubscription:!1,jsonrpc:"vaultRegistry_getCollateralizationFromVault",method:"getCollateralizationFromVault",section:"vaultRegistry"},getCollateralizationFromVaultAndCollateral:{description:"Get the collateralization rate of a vault and collateral",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"onlyIssued",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"FixedU128",isSubscription:!1,jsonrpc:"vaultRegistry_getCollateralizationFromVaultAndCollateral",method:"getCollateralizationFromVaultAndCollateral",section:"vaultRegistry"},getRequiredCollateralForWrapped:{description:"Get the minimum amount of collateral required for the given amount of token with the current threshold and exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currencyId",type:"SpacewalkPrimitivesCurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getRequiredCollateralForWrapped",method:"getRequiredCollateralForWrapped",section:"vaultRegistry"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vaultId",type:"SpacewalkPrimitivesVaultId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"BalanceWrapper",isSubscription:!1,jsonrpc:"vaultRegistry_getRequiredCollateralForVault",method:"getRequiredCollateralForVault",section:"vaultRegistry"}},farming:{getFarmingRewards:{description:"Get farming rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(SpacewalkPrimitivesCurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getFarmingRewards",method:"getFarmingRewards",section:"farming"},getGaugeRewards:{description:"Get gauge rewards",params:[{name:"who",type:"AccountId"},{name:"pid",type:"PoolId"},{name:"at",type:"Hash",isOptional:!0}],type:"Vec<(SpacewalkPrimitivesCurrencyId, Balance)>",isSubscription:!1,jsonrpc:"farming_getGaugeRewards",method:"getGaugeRewards",section:"farming"}}},instances:{council:["generalCouncil"]},types:[{minmax:[0,null],types:{OracleKey:{},CurrencyId:{},NumberOrHex:"u128",BalanceWrapper:{amount:"String"},UnsignedFixedPoint:"u128",SpacewalkPrimitivesCurrencyId:{_enum:{Native:"Null",XCM:"u8",Stellar:"SpacewalkPrimitivesAsset",ZenlinkLPToken:"(u8,u8,u8,u8)"}},SpacewalkPrimitivesAsset:{_enum:{StellarNative:"Null",AlphaNum4:{code:"[u8;4]",issuer:"[u8;32]"},AlphaNum12:{code:"[u8;12]",issuer:"[u8;32]"}}},SpacewalkPrimitivesVaultId:{accountId:"AccountId32",currencies:"SpacewalkPrimitivesVaultCurrencyPair"},SpacewalkPrimitivesVaultCurrencyPair:{collateral:"SpacewalkPrimitivesCurrencyId",wrapped:"SpacewalkPrimitivesCurrencyId"},PoolId:"u32"}}],alias:{}},frequency:{rpc:{frequency:{getEvents:{description:"Get block Events",params:[{name:"at",type:"H256"}],type:"Vec"}},frequencyTxPayment:{computeCapacityFeeDetails:{description:"Compute the capacity fee details for a given transaction",params:[{name:"encoded_xt",type:"Vec"},{name:"at",type:"Option"}],type:"FeeDetails"}},handles:{getHandleForMsa:{description:"Get handle for a given msa_id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"},getMsaForHandle:{description:"Get msa_id for a given handle",params:[{name:"display_handle",type:"String"}],type:"Option"},getNextSuffixes:{description:"Get next suffixes for a given handle and count",params:[{name:"base_handle",type:"String"},{name:"count",type:"u16"}],type:"PresumptiveSuffixesResponse"},validateHandle:{description:"Check whether the supplied handle passes all the checks performed by claim_handle call.",params:[{name:"base_handle",type:"String"}],type:"bool"}},messages:{getBySchemaId:{description:"Get messages by schemaId paginated",params:[{name:"schema_id",type:"SchemaId"},{name:"pagination",type:"BlockPaginationRequest"}],type:"BlockPaginationResponseMessage"}},msa:{checkDelegations:{description:"Test a list of MSAs to see if they have delegated to the provider MSA",params:[{name:"delegator_msa_ids",type:"Vec"},{name:"provider_msa_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"Vec<(DelegatorId, bool)>"},grantedSchemaIdsByMsaId:{description:"Fetch the list of schema ids that a delegator has granted to provider",params:[{name:"delegator_msa_id",type:"DelegatorId"},{name:"provider_msa_id",type:"ProviderId"}],type:"Option>"},getKeysByMsaId:{description:"Fetch Keys for an MSA Id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"}},schemas:{getBySchemaId:{description:"Get a Schema by Id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"},checkSchemaValidity:{description:"",params:[{name:"model",type:"SchemaModel"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"},getVersions:{description:"Get different versions and schema ids for a complete schema name or only a namespace",params:[{name:"schema_name",type:"String"}],type:"Option>"}},statefulStorage:{getPaginatedStorage:{description:"Gets pages of stateful storage",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Vec"},getItemizedStorage:{description:"Gets itemized of stateful storage",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"ItemizedStoragePageResponse"}}},runtime:{AdditionalRuntimeApi:[{methods:{get_events:{description:"Get the events with simple SCALE decoding",params:[],type:"Vec"}},version:1}],CapacityTransactionPaymentRuntimeApi:[{methods:{compute_capacity_fee:{description:"Compute the capacity fee for a given transaction",params:[{name:"encoded_xt",type:"Vec"},{name:"at",type:"Option"}],type:"FeeDetails"}}}],HandlesRuntimeApi:[{methods:{get_handle_for_msa:{description:"Get handle for a given msa_id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"},get_msa_for_handle:{description:"Get msa_id for a given handle",params:[{name:"display_handle",type:"Vec"}],type:"Option"},get_next_suffixes:{description:"Get next suffixes for a given handle and count",params:[{name:"base_handle",type:"Vec"},{name:"count",type:"u16"}],type:"PresumptiveSuffixesResponse"},validate_handle:{description:"Check whether the supplied handle passes all the checks performed by claim_handle call.",params:[{name:"base_handle",type:"String"}],type:"bool"}},version:2}],MessagesRuntimeApi:[{methods:{get_messages_by_schema_and_block:{description:"Retrieve the messages for a particular schema and block number",params:[{name:"schema_id",type:"SchemaId"},{name:"schema_payload_location",type:"PayloadLocation"},{name:"block_number",type:"BlockNumber"}],type:"Vec"},get_schema_by_id:{description:"Retrieve a schema by id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"}},version:1}],MsaRuntimeApi:[{methods:{has_delegation:{description:"Check to see if a delegation existed between the given delegator and provider at a given block",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"bool"},get_granted_schemas_by_msa_id:{description:"Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"}],type:"Option>"}},version:1},{methods:{has_delegation:{description:"Check to see if a delegation existed between the given delegator and provider at a given block",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"bool"},get_granted_schemas_by_msa_id:{description:"Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"}],type:"Option>"}},version:2}],SchemasRuntimeApi:[{methods:{get_schema_by_id:{description:"Fetch the schema by id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"},get_schema_versions_by_name:{description:"Fetch the schema versions by name",params:[{name:"schema_name",type:"Vec"}],type:"Option>"}},version:2}],StatefulStorageRuntimeApi:[{methods:{get_paginated_storage:{description:"Fetch the stateful paginated storage by msa_id and schema_id",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Result, SpRuntimeDispatchError>"},get_itemized_storage:{description:"Fetch the stateful itemized storage by msa_id and schema_id",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Result"}},version:1}]},signedExtensions:{CheckFreeExtrinsicUse:{extrinsic:{},payload:{}},HandlesSignedExtension:{extrinsic:{},payload:{}}},types:[{minmax:[0,null],types:{RpcEvent:{phase:"Option",pallet:"u8",event:"u8",data:"Vec"},HandleSuffix:"u16",HandleResponse:{base_handle:"String",canonical_base:"String",suffix:"u16"},PresumptiveSuffixesResponse:{suffixes:"Vec",base_handle:"String"},BlockPaginationRequest:{from_block:"BlockNumber",from_index:"u32",to_block:"BlockNumber",page_size:"u32"},MessageResponse:{payload:"Option>",cid:"Option>",provider_msa_id:"MessageSourceId",msa_id:"Option",index:"u16",block_number:"BlockNumber",payload_length:"Option"},BlockPaginationResponseMessage:{content:"Vec",has_next:"bool",next_block:"Option",next_index:"Option"},MessageSourceId:"u64",DelegatorId:"MessageSourceId",ProviderId:"MessageSourceId",KeyInfoResponse:{msa_keys:"Vec",msa_id:"MessageSourceId"},SchemaGrantResponse:{schema_id:"SchemaId",revoked_at:"BlockNumber"},SchemaId:"u16",SchemaModel:"Vec",SchemaVersion:"u8",SchemaResponse:{schema_id:"SchemaId",model:"SchemaModel",model_type:"ModelType",payload_location:"PayloadLocation",settings:"Vec"},ModelType:{_enum:["AvroBinary","Parquet"]},PayloadLocation:{_enum:["OnChain","IPFS","Itemized","Paginated"]},SchemaSetting:{_enum:["AppendOnly","SignatureRequired"]},SchemaVersionResponse:{schema_name:"String",schema_version:"SchemaVersion",schema_id:"SchemaId"},PageId:"u16",PageHash:"u32",PageNonce:"u16",ItemizedStorageResponse:{index:"u16",payload:"Vec"},PaginatedStorageResponse:{page_id:"PageId",msa_id:"MessageSourceId",schema_id:"SchemaId",content_hash:"PageHash",nonce:"PageNonce",payload:"Vec"},ItemizedStoragePageResponse:{msa_id:"MessageSourceId",schema_id:"SchemaId",content_hash:"PageHash",nonce:"PageNonce",items:"Vec"}}}]},"frequency-testnet":{rpc:{frequency:{getEvents:{description:"Get block Events",params:[{name:"at",type:"H256"}],type:"Vec"}},frequencyTxPayment:{computeCapacityFeeDetails:{description:"Compute the capacity fee details for a given transaction",params:[{name:"encoded_xt",type:"Vec"},{name:"at",type:"Option"}],type:"FeeDetails"}},handles:{getHandleForMsa:{description:"Get handle for a given msa_id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"},getMsaForHandle:{description:"Get msa_id for a given handle",params:[{name:"display_handle",type:"String"}],type:"Option"},getNextSuffixes:{description:"Get next suffixes for a given handle and count",params:[{name:"base_handle",type:"String"},{name:"count",type:"u16"}],type:"PresumptiveSuffixesResponse"},validateHandle:{description:"Check whether the supplied handle passes all the checks performed by claim_handle call.",params:[{name:"base_handle",type:"String"}],type:"bool"}},messages:{getBySchemaId:{description:"Get messages by schemaId paginated",params:[{name:"schema_id",type:"SchemaId"},{name:"pagination",type:"BlockPaginationRequest"}],type:"BlockPaginationResponseMessage"}},msa:{checkDelegations:{description:"Test a list of MSAs to see if they have delegated to the provider MSA",params:[{name:"delegator_msa_ids",type:"Vec"},{name:"provider_msa_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"Vec<(DelegatorId, bool)>"},grantedSchemaIdsByMsaId:{description:"Fetch the list of schema ids that a delegator has granted to provider",params:[{name:"delegator_msa_id",type:"DelegatorId"},{name:"provider_msa_id",type:"ProviderId"}],type:"Option>"},getKeysByMsaId:{description:"Fetch Keys for an MSA Id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"}},schemas:{getBySchemaId:{description:"Get a Schema by Id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"},checkSchemaValidity:{description:"",params:[{name:"model",type:"SchemaModel"},{name:"at",type:"BlockHash",isOptional:!0}],type:"bool"},getVersions:{description:"Get different versions and schema ids for a complete schema name or only a namespace",params:[{name:"schema_name",type:"String"}],type:"Option>"}},statefulStorage:{getPaginatedStorage:{description:"Gets pages of stateful storage",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Vec"},getItemizedStorage:{description:"Gets itemized of stateful storage",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"ItemizedStoragePageResponse"}}},runtime:{AdditionalRuntimeApi:[{methods:{get_events:{description:"Get the events with simple SCALE decoding",params:[],type:"Vec"}},version:1}],CapacityTransactionPaymentRuntimeApi:[{methods:{compute_capacity_fee:{description:"Compute the capacity fee for a given transaction",params:[{name:"encoded_xt",type:"Vec"},{name:"at",type:"Option"}],type:"FeeDetails"}}}],HandlesRuntimeApi:[{methods:{get_handle_for_msa:{description:"Get handle for a given msa_id",params:[{name:"msa_id",type:"MessageSourceId"}],type:"Option"},get_msa_for_handle:{description:"Get msa_id for a given handle",params:[{name:"display_handle",type:"Vec"}],type:"Option"},get_next_suffixes:{description:"Get next suffixes for a given handle and count",params:[{name:"base_handle",type:"Vec"},{name:"count",type:"u16"}],type:"PresumptiveSuffixesResponse"},validate_handle:{description:"Check whether the supplied handle passes all the checks performed by claim_handle call.",params:[{name:"base_handle",type:"String"}],type:"bool"}},version:2}],MessagesRuntimeApi:[{methods:{get_messages_by_schema_and_block:{description:"Retrieve the messages for a particular schema and block number",params:[{name:"schema_id",type:"SchemaId"},{name:"schema_payload_location",type:"PayloadLocation"},{name:"block_number",type:"BlockNumber"}],type:"Vec"},get_schema_by_id:{description:"Retrieve a schema by id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"}},version:1}],MsaRuntimeApi:[{methods:{has_delegation:{description:"Check to see if a delegation existed between the given delegator and provider at a given block",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"bool"},get_granted_schemas_by_msa_id:{description:"Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"}],type:"Option>"}},version:1},{methods:{has_delegation:{description:"Check to see if a delegation existed between the given delegator and provider at a given block",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"},{name:"block_number",type:"BlockNumber"},{name:"schema_id",type:"Option"}],type:"bool"},get_granted_schemas_by_msa_id:{description:"Get the list of schema ids (if any) that exist in any delegation between the delegator and provider",params:[{name:"delegator_id",type:"DelegatorId"},{name:"provider_id",type:"ProviderId"}],type:"Option>"}},version:2}],SchemasRuntimeApi:[{methods:{get_schema_by_id:{description:"Fetch the schema by id",params:[{name:"schema_id",type:"SchemaId"}],type:"Option"},get_schema_versions_by_name:{description:"Fetch the schema versions by name",params:[{name:"schema_name",type:"Vec"}],type:"Option>"}},version:2}],StatefulStorageRuntimeApi:[{methods:{get_paginated_storage:{description:"Fetch the stateful paginated storage by msa_id and schema_id",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Result, SpRuntimeDispatchError>"},get_itemized_storage:{description:"Fetch the stateful itemized storage by msa_id and schema_id",params:[{name:"msa_id",type:"MessageSourceId"},{name:"schema_id",type:"SchemaId"}],type:"Result"}},version:1}]},signedExtensions:{CheckFreeExtrinsicUse:{extrinsic:{},payload:{}},HandlesSignedExtension:{extrinsic:{},payload:{}}},types:[{minmax:[0,null],types:{RpcEvent:{phase:"Option",pallet:"u8",event:"u8",data:"Vec"},HandleSuffix:"u16",HandleResponse:{base_handle:"String",canonical_base:"String",suffix:"u16"},PresumptiveSuffixesResponse:{suffixes:"Vec",base_handle:"String"},BlockPaginationRequest:{from_block:"BlockNumber",from_index:"u32",to_block:"BlockNumber",page_size:"u32"},MessageResponse:{payload:"Option>",cid:"Option>",provider_msa_id:"MessageSourceId",msa_id:"Option",index:"u16",block_number:"BlockNumber",payload_length:"Option"},BlockPaginationResponseMessage:{content:"Vec",has_next:"bool",next_block:"Option",next_index:"Option"},MessageSourceId:"u64",DelegatorId:"MessageSourceId",ProviderId:"MessageSourceId",KeyInfoResponse:{msa_keys:"Vec",msa_id:"MessageSourceId"},SchemaGrantResponse:{schema_id:"SchemaId",revoked_at:"BlockNumber"},SchemaId:"u16",SchemaModel:"Vec",SchemaVersion:"u8",SchemaResponse:{schema_id:"SchemaId",model:"SchemaModel",model_type:"ModelType",payload_location:"PayloadLocation",settings:"Vec"},ModelType:{_enum:["AvroBinary","Parquet"]},PayloadLocation:{_enum:["OnChain","IPFS","Itemized","Paginated"]},SchemaSetting:{_enum:["AppendOnly","SignatureRequired"]},SchemaVersionResponse:{schema_name:"String",schema_version:"SchemaVersion",schema_id:"SchemaId"},PageId:"u16",PageHash:"u32",PageNonce:"u16",ItemizedStorageResponse:{index:"u16",payload:"Vec"},PaginatedStorageResponse:{page_id:"PageId",msa_id:"MessageSourceId",schema_id:"SchemaId",content_hash:"PageHash",nonce:"PageNonce",payload:"Vec"},ItemizedStoragePageResponse:{msa_id:"MessageSourceId",schema_id:"SchemaId",content_hash:"PageHash",nonce:"PageNonce",items:"Vec"}}}]},galital:{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithTripleRefCount",Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},ChainId:"u8",ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"u8",expiry:"U256"},ClassId:"u64",TokenId:"u64",ClassData:"Vec",TokenData:"Vec",ReportReason:{_enum:["None","Illigal","Plagiarism","Duplicate","Reported"]},ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",class_data:"ClassData"},ExtendedInfo:{display_flag:"bool",report:"ReportReason",frozen:"bool"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",class_data:"ClassData"}}}]},"galital-collator":{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId",Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},ClassId:"u64",TokenId:"u64",ClassData:"Vec",TokenData:"Vec",ReportReason:{_enum:["None","Illigal","Plagiarism","Duplicate","Reported"]},ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",class_data:"ClassData"},ExtendedInfo:{display_flag:"bool",report:"ReportReason",frozen:"bool"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",class_data:"ClassData"}}}]},gamepower:{types:[{minmax:[0,null],types:{AccountInfo:"AccountInfoWithDualRefCount",AssetId:"u64",SeriesId:"u64",ClassId:"u32",ClassIdOf:"ClassId",ClassInfoOf:"ClassInfo",TokenId:"u64",TokenIdOf:"TokenId",TokenInfoOf:"TokenInfo",ClassInfo:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",data:"NftClassData"},TokenInfo:{metadata:"Vec",owner:"AccountId",data:"NftAssetData"},NftSeriesData:{name:"Vec",owner:"AccountId",properties:"Vec"},NftClassData:{deposit:"Balance",properties:"Vec",token_type:"TokenType",collection_type:"CollectionType",total_supply:"u64",initial_supply:"u64"},NftAssetData:{deposit:"Balance",name:"Vec",description:"Vec",properties:"Vec"},TokenType:{_enum:["Transferrable","BoundToAddress"]},CollectionType:{_enum:["Collectable","Wearable","Executable"]},ClassProperties:{Transferrable:"bool",Burnable:"bool"}}}]},"hack-hydra-dx":{types:[{minmax:[0,null],types:{Amount:"i128",AmountOf:"Amount",Address:"AccountId",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},Fee:{numerator:"u32",denominator:"u32"},BalanceInfo:{amount:"Balance",assetId:"AssetId"},CurrencyId:"AssetId",CurrencyIdOf:"AssetId",Intention:{who:"AccountId",asset_sell:"AssetId",asset_buy:"AssetId",amount:"Balance",discount:"bool",sell_or_buy:"IntentionType"},IntentionId:"u128",IntentionType:{_enum:["SELL","BUY"]},LookupSource:"AccountId",OrderedSet:"Vec",Price:"Balance",Chain:{genesisHash:"Vec",lastBlockHash:"Vec"}}}]},halongbay:{types:[{minmax:[0,null],types:{RelayChainAccountId:"H256",RoundIndex:"u32",SettingStruct:{bond_duration:"u32",blocks_per_round:"u32",desired_target:"u32"},Bond:{owner:"AccountId",amount:"Balance"},UnBondChunk:{value:"Balance",round:"u32"},StakingNominators:{nominations:"Vec",total:"Balance",unbonding:"Vec",claimed_rewards:"Vec"}}}]},hanonycash:{types:[{minmax:[0,null],types:{Difficulty:"U256",DifficultyAndTimestamp:{difficulty:"Difficulty",timestamp:"Moment"},Era:{genesisBlockHash:"H256",finalBlockHash:"H256",finalStateRoot:"H256"},RefCount:"u8"}}]},heiko:{rpc:{oracle:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option",isSubscription:!1,jsonrpc:"oracle_getValue",method:"getValue",section:"oracle"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>",isSubscription:!1,jsonrpc:"oracle_getAllValues",method:"getAllValues",section:"oracle"}},tokens:{queryExistentialDeposit:{description:"Query Existential Deposit for a given currency.",params:[{name:"currencyId",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex",isSubscription:!1,jsonrpc:"tokens_queryExistentialDeposit",method:"queryExistentialDeposit",section:"tokens"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},router:{getBestRoute:{description:"Returns the route that results in the largest amount out for amount in",params:[{name:"amount",type:"Balance"},{name:"token_in",type:"CurrencyId"},{name:"token_out",type:"CurrencyId"},{name:"reversed",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Vec, FixedU128)",isSubscription:!1,jsonrpc:"router_getBestRoute",method:"getBestRoute",section:"router"}}},instances:{council:["generalCouncil"]},types:[{minmax:[0,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{isActive:"bool",totalDeposited:"Balance",unlockHeight:"BlockNumber",coolDownDuration:"BlockNumber",rewardDuration:"BlockNumber",periodFinish:"BlockNumber",lastUpdateBlock:"BlockNumber",rewardRate:"Balance",rewardPerShareStored:"Balance"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",Deposits:{voucherBalance:"Balance",isCollateral:"bool"},BorrowSnapshot:{principal:"Balance",borrowIndex:"u128"},EarnedSnapshot:{totalEarnedPrior:"Balance",exchangeRatePrior:"u128"},JumpModel:{baseRate:"Rate",jumpRate:"Rate",fullRate:"Rate",jumpUtilization:"Ratio"},CurveModel:{baseRate:"Rate"},InterestRateModel:{_enum:{JumpModel:"JumpModel",CurveModel:"CurveModel"}},Market:{collateralFactor:"Ratio",liquidationThreshold:"Ratio",reserveFactor:"Ratio",closeFactor:"Ratio",liquidateIncentive:"Rate",liquidateIncentiveReservedFactor:"Ratio",rateModel:"InterestRateModel",state:"MarketState",supplyCap:"Balance",borrowCap:"Balance",ptokenId:"CurrencyId"},MarketState:{_enum:["Active","Pending","Supervision"]},RewardMarketState:{index:"Balance",block:"BlockNumber"},Liquidity:"FixedU128",Shortfall:"FixedU128",ReservableAmount:{total:"Balance",reserved:"Balance"},MatchingLedger:{totalStakeAmount:"ReservableAmount",totalUnstakeAmount:"ReservableAmount"},UnlockChunk:{value:"Balance",era:"EraIndex"},StakingLedger:{stash:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec",claimedRewards:"Vec"},DerivativeIndex:"u16",Pool:{baseAmount:"Balance",quoteAmount:"Balance",baseAmountLast:"Balance",quoteAmountLast:"Balance",lpTokenId:"AssetId",blockTimestampLast:"BlockNumber",price0CumulativeLast:"Balance",price1CumulativeLast:"Balance"},Amount:"i128",AmountOf:"Amount",Rate:"FixedU128",Ratio:"Permill",Timestamp:"u64",PriceDetail:"(Price, Timestamp)",CurrencyId:"AssetId",CurrencyIdOf:"CurrencyId",Currency:"CurrencyId",AssetIdOf:"AssetId",OracleKey:"AssetId",BoundedBalance:"BoundedVec<(Balance, BlockNumber), u32>",UserPosition:{depositBalance:"Balance",lockBalanceItems:"BoundedBalance",rewardAmount:"Balance",rewardPerSharePaid:"Balance"},Route:"Vec<(AssetId, AssetId)>",VaultPhase:{_enum:["Pending","Contributing","Closed","Failed","Succeeded","Expired"]},ContributionStrategy:{_enum:["XCM","XCMPROXY"]},ChildStorageKind:{_enum:["Pending","Flying","Contributed"]},TrieIndex:"u32",LeasePeriod:"BlockNumber",Vault:{ctoken:"AssetId",phase:"VaultPhase",contributed:"Balance",pending:"Balance",flying:"Balance",contributionStrategy:"ContributionStrategy",cap:"Balance",endBlock:"BlockNumber",trieIndex:"TrieIndex",leaseStart:"LeasePeriod",leaseEnd:"LeasePeriod"},XcmWeightFeeMisc:{weight:"Weight",fee:"Balance"},XcmCall:{_enum:["Bond","BondExtra","Unbond","Rebond","WithdrawUnbonded","Nominate","Contribute","Withdraw","AddMemo"]},BridgeToken:{id:"CurrencyId",external:"bool",fee:"Balance"},ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},Address:"MultiAddress",LookupSource:"MultiAddress",TAssetBalance:"u128"}}],alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}},"hydra-dx":{types:[{minmax:[0,null],types:{Amount:"i128",AmountOf:"Amount",Address:"AccountId",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},Fee:{numerator:"u32",denominator:"u32"},BalanceInfo:{amount:"Balance",assetId:"AssetId"},CurrencyId:"AssetId",CurrencyIdOf:"AssetId",Intention:{who:"AccountId",asset_sell:"AssetId",asset_buy:"AssetId",amount:"Balance",discount:"bool",sell_or_buy:"IntentionType"},IntentionId:"u128",IntentionType:{_enum:["SELL","BUY"]},LookupSource:"AccountId",OrderedSet:"Vec",Price:"Balance",Chain:{genesisHash:"Vec",lastBlockHash:"Vec"}}}]},idavoll:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},imbue:{rpc:{proposals:{getProjectKitty:{description:"Get the escrow address associated with a project",params:[{name:"project_id",type:"u32"}],type:"AccountId"}}},types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress"}}]},"integritee-parachain":{types:[{minmax:[0,null],types:{Address:"MultiAddress",Enclave:{mrenclave:"Hash",pubkey:"AccountId",timestamp:"u64",url:"Text"},LookupSource:"MultiAddress",Request:{cyphertext:"Vec",shard:"ShardIdentifier"},ShardIdentifier:"Hash"}}]},"interbtc-parachain":{default:{types:[{minmax:[0,null],types:{BalanceWrapper:{amount:"String"},CurrencyId:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",LendToken:"LendTokenId",LpToken:"(LpToken, LpToken)",StableLpToken:"StablePoolId"}},LpToken:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",StableLpToken:"StablePoolId"}},InterbtcPrimitivesCurrencyId:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",LendToken:"InterbtcLendTokenId",LpToken:"(InterbtcLpToken, InterbtcLpToken)",StableLpToken:"InterbtcStablePoolId"}},InterbtcLpToken:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",StableLpToken:"InterbtcStablePoolId"}},InterbtcForeignAssetId:"u32",ForeignAssetId:"u32",InterbtcLendTokenId:"u32",InterbtcStablePoolId:"u32",LendTokenId:"u32",StablePoolId:"u32",NumberOrHex:{_enum:{Number:"u64",Hex:"U256"}},Rate:"FixedU128",Ratio:"Permill",Liquidity:"FixedU128",Shortfall:"FixedU128",FundAccountJsonRpcRequest:{account_id:"AccountId",currency_id:"InterbtcPrimitivesCurrencyId"},H256Le:"H256",SignedFixedPoint:"FixedU128",TokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},InterbtcPrimitivesTokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},UnsignedFixedPoint:"FixedU128",VaultCurrencyPair:{collateral:"CurrencyId",wrapped:"CurrencyId"},VaultId:{account_id:"AccountId",currencies:"VaultCurrencyPair"}}}],rpc:{btcRelay:{verifyBlockHeaderInclusion:{description:"Verify that the block with the given hash is included",params:[{name:"block_hash",type:"H256Le"}],type:"void"}},escrow:{balanceAt:{description:"Get a given user's escrowed balance",params:[{name:"account_id",type:"AccountId"},{name:"height",type:"Option"}],type:"BalanceWrapper"},totalSupply:{description:"Get the total voting supply in the system",params:[{name:"height",type:"Option"}],type:"BalanceWrapper"},freeStakable:{description:"Amount of kint/intr that account can lock, taking into consideration the Limits.",params:[{name:"account_id",type:"AccountId"}],type:"BalanceWrapper"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},issue:{getIssueRequests:{description:"Get all issue request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultIssueRequests:{description:"Get all issue request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},oracle:{collateralToWrapped:{description:"Collateral to Wrapped exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},wrappedToCollateral:{description:"Wrapped to Collateral exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},redeem:{getRedeemRequests:{description:"Get all redeem request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultRedeemRequests:{description:"Get all redeem request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},refund:{getRefundRequests:{description:"Get all refund request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getRefundRequestsByIssueId:{description:"Get all refund request IDs for a particular issue ID",params:[{name:"issue_id",type:"H256"}],type:"H256"},getVaultRefundRequests:{description:"Get all refund request IDs for a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},replace:{getNewVaultReplaceRequests:{description:"Get all replace request IDs to a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getOldVaultReplaceRequests:{description:"Get all replace request IDs from a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},reward:{estimateEscrowRewardRate:{description:"Estimate the escrow reward rate for a given account",params:[{name:"account_id",type:"AccountId"},{name:"amount",type:"Option"},{name:"lock_time",type:"Option"}],type:"UnsignedFixedPoint"},estimateVaultRewardRate:{description:"Estimate the vault reward rate a given vault id",params:[{name:"vault_id",type:"VaultId"}],type:"UnsignedFixedPoint"},computeEscrowReward:{description:"Get a given user's rewards due",params:[{name:"account_id",type:"AccountId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeFarmingReward:{description:"Get a given user's farming rewards due",params:[{name:"account_id",type:"AccountId"},{name:"pool_currency_id",type:"CurrencyId"},{name:"reward_currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeVaultReward:{description:"Get a given vault's rewards due",params:[{name:"vault_id",type:"VaultId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},vaultRegistry:{getCollateralizationFromVault:{description:"Returns the collateralization of a specific vault",params:[{name:"vault",type:"VaultId"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getCollateralizationFromVaultAndCollateral:{description:"Returns the collateralization of a specific vault and collateral",params:[{name:"vault",type:"VaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vault",type:"VaultId"}],type:"BalanceWrapper"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold.",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getRequiredCollateralForWrapped:{description:"Get the amount of collateral required to issue an amount of InterBTC",params:[{name:"amount_btc",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultsByAccountId:{description:"Get all vaults that are registered using the given account _id",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"}},dexStable:{getA:{description:"Get amplification coefficient of pool",params:[{name:"pool_id",type:"StablePoolId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}}},alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}},instances:{balances:["ksm","kbtc","kint","dot","ibtc","intr"]}}},"interbtc-standalone":{default:{types:[{minmax:[0,null],types:{BalanceWrapper:{amount:"String"},CurrencyId:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",LendToken:"LendTokenId",LpToken:"(LpToken, LpToken)",StableLpToken:"StablePoolId"}},LpToken:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",StableLpToken:"StablePoolId"}},InterbtcPrimitivesCurrencyId:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",LendToken:"InterbtcLendTokenId",LpToken:"(InterbtcLpToken, InterbtcLpToken)",StableLpToken:"InterbtcStablePoolId"}},InterbtcLpToken:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",StableLpToken:"InterbtcStablePoolId"}},InterbtcForeignAssetId:"u32",ForeignAssetId:"u32",InterbtcLendTokenId:"u32",InterbtcStablePoolId:"u32",LendTokenId:"u32",StablePoolId:"u32",NumberOrHex:{_enum:{Number:"u64",Hex:"U256"}},Rate:"FixedU128",Ratio:"Permill",Liquidity:"FixedU128",Shortfall:"FixedU128",FundAccountJsonRpcRequest:{account_id:"AccountId",currency_id:"InterbtcPrimitivesCurrencyId"},H256Le:"H256",SignedFixedPoint:"FixedU128",TokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},InterbtcPrimitivesTokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},UnsignedFixedPoint:"FixedU128",VaultCurrencyPair:{collateral:"CurrencyId",wrapped:"CurrencyId"},VaultId:{account_id:"AccountId",currencies:"VaultCurrencyPair"}}}],rpc:{btcRelay:{verifyBlockHeaderInclusion:{description:"Verify that the block with the given hash is included",params:[{name:"block_hash",type:"H256Le"}],type:"void"}},escrow:{balanceAt:{description:"Get a given user's escrowed balance",params:[{name:"account_id",type:"AccountId"},{name:"height",type:"Option"}],type:"BalanceWrapper"},totalSupply:{description:"Get the total voting supply in the system",params:[{name:"height",type:"Option"}],type:"BalanceWrapper"},freeStakable:{description:"Amount of kint/intr that account can lock, taking into consideration the Limits.",params:[{name:"account_id",type:"AccountId"}],type:"BalanceWrapper"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},issue:{getIssueRequests:{description:"Get all issue request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultIssueRequests:{description:"Get all issue request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},oracle:{collateralToWrapped:{description:"Collateral to Wrapped exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},wrappedToCollateral:{description:"Wrapped to Collateral exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},redeem:{getRedeemRequests:{description:"Get all redeem request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultRedeemRequests:{description:"Get all redeem request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},refund:{getRefundRequests:{description:"Get all refund request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getRefundRequestsByIssueId:{description:"Get all refund request IDs for a particular issue ID",params:[{name:"issue_id",type:"H256"}],type:"H256"},getVaultRefundRequests:{description:"Get all refund request IDs for a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},replace:{getNewVaultReplaceRequests:{description:"Get all replace request IDs to a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getOldVaultReplaceRequests:{description:"Get all replace request IDs from a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},reward:{estimateEscrowRewardRate:{description:"Estimate the escrow reward rate for a given account",params:[{name:"account_id",type:"AccountId"},{name:"amount",type:"Option"},{name:"lock_time",type:"Option"}],type:"UnsignedFixedPoint"},estimateVaultRewardRate:{description:"Estimate the vault reward rate a given vault id",params:[{name:"vault_id",type:"VaultId"}],type:"UnsignedFixedPoint"},computeEscrowReward:{description:"Get a given user's rewards due",params:[{name:"account_id",type:"AccountId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeFarmingReward:{description:"Get a given user's farming rewards due",params:[{name:"account_id",type:"AccountId"},{name:"pool_currency_id",type:"CurrencyId"},{name:"reward_currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeVaultReward:{description:"Get a given vault's rewards due",params:[{name:"vault_id",type:"VaultId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},vaultRegistry:{getCollateralizationFromVault:{description:"Returns the collateralization of a specific vault",params:[{name:"vault",type:"VaultId"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getCollateralizationFromVaultAndCollateral:{description:"Returns the collateralization of a specific vault and collateral",params:[{name:"vault",type:"VaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vault",type:"VaultId"}],type:"BalanceWrapper"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold.",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getRequiredCollateralForWrapped:{description:"Get the amount of collateral required to issue an amount of InterBTC",params:[{name:"amount_btc",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultsByAccountId:{description:"Get all vaults that are registered using the given account _id",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"}},dexStable:{getA:{description:"Get amplification coefficient of pool",params:[{name:"pool_id",type:"StablePoolId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}}},alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}},instances:{balances:["ksm","kbtc","kint","dot","ibtc","intr"]}}},"interlay-parachain":{default:{types:[{minmax:[0,null],types:{BalanceWrapper:{amount:"String"},CurrencyId:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",LendToken:"LendTokenId",LpToken:"(LpToken, LpToken)",StableLpToken:"StablePoolId"}},LpToken:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",StableLpToken:"StablePoolId"}},InterbtcPrimitivesCurrencyId:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",LendToken:"InterbtcLendTokenId",LpToken:"(InterbtcLpToken, InterbtcLpToken)",StableLpToken:"InterbtcStablePoolId"}},InterbtcLpToken:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",StableLpToken:"InterbtcStablePoolId"}},InterbtcForeignAssetId:"u32",ForeignAssetId:"u32",InterbtcLendTokenId:"u32",InterbtcStablePoolId:"u32",LendTokenId:"u32",StablePoolId:"u32",NumberOrHex:{_enum:{Number:"u64",Hex:"U256"}},Rate:"FixedU128",Ratio:"Permill",Liquidity:"FixedU128",Shortfall:"FixedU128",FundAccountJsonRpcRequest:{account_id:"AccountId",currency_id:"InterbtcPrimitivesCurrencyId"},H256Le:"H256",SignedFixedPoint:"FixedU128",TokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},InterbtcPrimitivesTokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},UnsignedFixedPoint:"FixedU128",VaultCurrencyPair:{collateral:"CurrencyId",wrapped:"CurrencyId"},VaultId:{account_id:"AccountId",currencies:"VaultCurrencyPair"}}}],rpc:{btcRelay:{verifyBlockHeaderInclusion:{description:"Verify that the block with the given hash is included",params:[{name:"block_hash",type:"H256Le"}],type:"void"}},escrow:{balanceAt:{description:"Get a given user's escrowed balance",params:[{name:"account_id",type:"AccountId"},{name:"height",type:"Option"}],type:"BalanceWrapper"},totalSupply:{description:"Get the total voting supply in the system",params:[{name:"height",type:"Option"}],type:"BalanceWrapper"},freeStakable:{description:"Amount of kint/intr that account can lock, taking into consideration the Limits.",params:[{name:"account_id",type:"AccountId"}],type:"BalanceWrapper"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},issue:{getIssueRequests:{description:"Get all issue request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultIssueRequests:{description:"Get all issue request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},oracle:{collateralToWrapped:{description:"Collateral to Wrapped exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},wrappedToCollateral:{description:"Wrapped to Collateral exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},redeem:{getRedeemRequests:{description:"Get all redeem request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultRedeemRequests:{description:"Get all redeem request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},refund:{getRefundRequests:{description:"Get all refund request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getRefundRequestsByIssueId:{description:"Get all refund request IDs for a particular issue ID",params:[{name:"issue_id",type:"H256"}],type:"H256"},getVaultRefundRequests:{description:"Get all refund request IDs for a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},replace:{getNewVaultReplaceRequests:{description:"Get all replace request IDs to a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getOldVaultReplaceRequests:{description:"Get all replace request IDs from a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},reward:{estimateEscrowRewardRate:{description:"Estimate the escrow reward rate for a given account",params:[{name:"account_id",type:"AccountId"},{name:"amount",type:"Option"},{name:"lock_time",type:"Option"}],type:"UnsignedFixedPoint"},estimateVaultRewardRate:{description:"Estimate the vault reward rate a given vault id",params:[{name:"vault_id",type:"VaultId"}],type:"UnsignedFixedPoint"},computeEscrowReward:{description:"Get a given user's rewards due",params:[{name:"account_id",type:"AccountId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeFarmingReward:{description:"Get a given user's farming rewards due",params:[{name:"account_id",type:"AccountId"},{name:"pool_currency_id",type:"CurrencyId"},{name:"reward_currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeVaultReward:{description:"Get a given vault's rewards due",params:[{name:"vault_id",type:"VaultId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},vaultRegistry:{getCollateralizationFromVault:{description:"Returns the collateralization of a specific vault",params:[{name:"vault",type:"VaultId"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getCollateralizationFromVaultAndCollateral:{description:"Returns the collateralization of a specific vault and collateral",params:[{name:"vault",type:"VaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vault",type:"VaultId"}],type:"BalanceWrapper"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold.",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getRequiredCollateralForWrapped:{description:"Get the amount of collateral required to issue an amount of InterBTC",params:[{name:"amount_btc",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultsByAccountId:{description:"Get all vaults that are registered using the given account _id",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"}},dexStable:{getA:{description:"Get amplification coefficient of pool",params:[{name:"pool_id",type:"StablePoolId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}}},alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}},instances:{balances:["ksm","kbtc","kint","dot","ibtc","intr"]}}},"ipse-node":{types:[{minmax:[0,null],types:{test:"u64",Address:"IndicesLookupSource",LookupSource:"IndicesLookupSource",GIB:"u64",Amount:"u128",Miner:{account_id:"AccountId",nickname:"Vec",region:"Vec",url:"Vec",public_key:"Vec",stash_address:"AccountId",capacity:"u128",unit_price:"Balance",violation_times:"u64",total_staking:"Balance",create_ts:"u64",update_ts:"u64"},Order:{miner:"AccountId",label:"Vec",hash:"[u8; 46]",size:"u128",user:"AccountId",orders:"Vec>",status:"OrderStatus",create_ts:"u64",update_ts:"u64",duration:"u64"},MinerOrder:{miner:"AccountId",day_price:"Balance",total_price:"Balance",verify_result:"bool",verify_ts:"u64",confirm_ts:"u64",url:"Option>"},OrderStatus:{_enum:["Created","Confirmed","Expired","Deleted"]},MiningInfo:{miner:"Option",best_dl:"u64",block:"u64"},Difficulty:{base_target:"u64",net_difficulty:"u64",block:"u64"},MachineInfo:{plot_size:"u64",numeric_id:"u128",update_time:"BlockNumber",is_stop:"bool",reward_dest:"AccountId"},StakingInfo:{miner:"AccountId",miner_proportion:"Percent",total_staking:"Balance",others:"Vec<(AccountId, Balance, Balance)>"},Oprate:{_enum:["Add","Sub"]},MiningHistory:{total_num:"u64",history:"Vec<(BlockNumber, Balance)>"},PostTxTransferData:{verify_status:"u64",irreversible:"bool",is_post_transfer:"bool",contract_account:"Vec",from:"Vec",to:"Vec",quantity:"u64",memo:"Vec"},AddressStatus:{_enum:["active","inActive"]},FetchFailedOf:{block_num:"BlockNumber",tx:"Vec",err:"Vec"}}}]},"jupiter-prep":{types:[{minmax:[0,2],types:{LookupSource:"MultiAddress",Address:"MultiAddress",AccountInfo:"AccountInfoWithDualRefCount",FullIdentification:"AccountId",AuthorityState:{_enum:["Working","Waiting"]},EraIndex:"u32",ActiveEraInfo:{index:"EraIndex",start:"Option"},UnappliedSlash:{validator:"AccountId",reporters:"Vec"}}},{minmax:[3,null],types:{LookupSource:"MultiAddress",Address:"MultiAddress",AccountInfo:"AccountInfoWithTripleRefCount",AliveContractInfo:{trieId:"TrieId",storageSize:"u32",pairCount:"u32",codeHash:"CodeHash",rentAllowance:"Balance",rentPayed:"Balance",deductBlock:"BlockNumber",lastWrite:"Option",_reserved:"Option"},FullIdentification:"AccountId",AuthorityState:{_enum:["Working","Waiting"]},EraIndex:"u32",ActiveEraInfo:{index:"EraIndex",start:"Option"},UnappliedSlash:{validator:"AccountId",reporters:"Vec"}}}]},"jupiter-rococo":{types:[{minmax:[0,null],types:{LookupSource:"MultiAddress",Address:"MultiAddress"}}]},"jur-chain":{types:[{minmax:[0,null],types:{}}]},"jur-node":{types:[{minmax:[0,null],types:{}}]},kerria:{rpc:{oracle:{getValue:{description:"Retrieves the oracle value for a given key.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"key",type:"OracleKey"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Option",isSubscription:!1,jsonrpc:"oracle_getValue",method:"getValue",section:"oracle"},getAllValues:{description:"Retrieves all oracle values.",params:[{name:"providerId",type:"RpcDataProviderId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"Vec<(OracleKey, Option)>",isSubscription:!1,jsonrpc:"oracle_getAllValues",method:"getAllValues",section:"oracle"}},tokens:{queryExistentialDeposit:{description:"Query Existential Deposit for a given currency.",params:[{name:"currencyId",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex",isSubscription:!1,jsonrpc:"tokens_queryExistentialDeposit",method:"queryExistentialDeposit",section:"tokens"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall, Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},router:{getBestRoute:{description:"Returns the route that results in the largest amount out for amount in",params:[{name:"amount",type:"Balance"},{name:"token_in",type:"CurrencyId"},{name:"token_out",type:"CurrencyId"},{name:"reversed",type:"bool"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Vec, FixedU128)",isSubscription:!1,jsonrpc:"router_getBestRoute",method:"getBestRoute",section:"router"}}},instances:{council:["generalCouncil"]},types:[{minmax:[0,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},AuthorityOrigin:"DelayedOrigin",StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",reserved:"Balance",frozen:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",OrmlCurrencyId:"u8",PoolInfo:{isActive:"bool",totalDeposited:"Balance",unlockHeight:"BlockNumber",coolDownDuration:"BlockNumber",rewardDuration:"BlockNumber",periodFinish:"BlockNumber",lastUpdateBlock:"BlockNumber",rewardRate:"Balance",rewardPerShareStored:"Balance"},CompactBalance:"Compact",PoolInfoV0:{totalShares:"Compact",totalRewards:"CompactBalance",totalWithdrawnRewards:"CompactBalance"},Share:"u128",OracleValue:"Price",Deposits:{voucherBalance:"Balance",isCollateral:"bool"},BorrowSnapshot:{principal:"Balance",borrowIndex:"u128"},EarnedSnapshot:{totalEarnedPrior:"Balance",exchangeRatePrior:"u128"},JumpModel:{baseRate:"Rate",jumpRate:"Rate",fullRate:"Rate",jumpUtilization:"Ratio"},CurveModel:{baseRate:"Rate"},InterestRateModel:{_enum:{JumpModel:"JumpModel",CurveModel:"CurveModel"}},Market:{collateralFactor:"Ratio",liquidationThreshold:"Ratio",reserveFactor:"Ratio",closeFactor:"Ratio",liquidateIncentive:"Rate",liquidateIncentiveReservedFactor:"Ratio",rateModel:"InterestRateModel",state:"MarketState",supplyCap:"Balance",borrowCap:"Balance",ptokenId:"CurrencyId"},MarketState:{_enum:["Active","Pending","Supervision"]},RewardMarketState:{index:"Balance",block:"BlockNumber"},Liquidity:"FixedU128",Shortfall:"FixedU128",ReservableAmount:{total:"Balance",reserved:"Balance"},MatchingLedger:{totalStakeAmount:"ReservableAmount",totalUnstakeAmount:"ReservableAmount"},UnlockChunk:{value:"Balance",era:"EraIndex"},StakingLedger:{stash:"AccountId",total:"Balance",active:"Balance",unlocking:"Vec",claimedRewards:"Vec"},DerivativeIndex:"u16",Pool:{baseAmount:"Balance",quoteAmount:"Balance",baseAmountLast:"Balance",quoteAmountLast:"Balance",lpTokenId:"AssetId",blockTimestampLast:"BlockNumber",price0CumulativeLast:"Balance",price1CumulativeLast:"Balance"},Amount:"i128",AmountOf:"Amount",Rate:"FixedU128",Ratio:"Permill",Timestamp:"u64",PriceDetail:"(Price, Timestamp)",CurrencyId:"AssetId",CurrencyIdOf:"CurrencyId",Currency:"CurrencyId",AssetIdOf:"AssetId",OracleKey:"AssetId",BoundedBalance:"BoundedVec<(Balance, BlockNumber), u32>",UserPosition:{depositBalance:"Balance",lockBalanceItems:"BoundedBalance",rewardAmount:"Balance",rewardPerSharePaid:"Balance"},Route:"Vec<(AssetId, AssetId)>",VaultPhase:{_enum:["Pending","Contributing","Closed","Failed","Succeeded","Expired"]},ContributionStrategy:{_enum:["XCM","XCMPROXY"]},ChildStorageKind:{_enum:["Pending","Flying","Contributed"]},TrieIndex:"u32",LeasePeriod:"BlockNumber",Vault:{ctoken:"AssetId",phase:"VaultPhase",contributed:"Balance",pending:"Balance",flying:"Balance",contributionStrategy:"ContributionStrategy",cap:"Balance",endBlock:"BlockNumber",trieIndex:"TrieIndex",leaseStart:"LeasePeriod",leaseEnd:"LeasePeriod"},XcmWeightFeeMisc:{weight:"Weight",fee:"Balance"},XcmCall:{_enum:["Bond","BondExtra","Unbond","Rebond","WithdrawUnbonded","Nominate","Contribute","Withdraw","AddMemo"]},BridgeToken:{id:"CurrencyId",external:"bool",fee:"Balance"},ProposalStatus:{_enum:["Initiated","Approved","Rejected"]},Address:"MultiAddress",LookupSource:"MultiAddress",TAssetBalance:"u128"}}],alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}}},khala:{alias:{},rpc:{},types:[{minmax:[0,10],types:{ChainId:"u8",Address:"MultiAddress",LookupSource:"MultiAddress",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"AccountId",BridgeChainId:"u8",BridgeEvent:{_enum:{FungibleTransfer:"FungibleTransfer",NonFungibleTransfer:"NonFungibleTransfer",GenericTransfer:"GenericTransfer"}},FungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",amount:"U256",recipient:"Vec"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"U256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Governance","Collator","StakePoolManager"]},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}}},{minmax:[11,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"AccountId",BridgeChainId:"u8",BridgeEvent:{_enum:{FungibleTransfer:"FungibleTransfer",NonFungibleTransfer:"NonFungibleTransfer",GenericTransfer:"GenericTransfer"}},FungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",amount:"U256",recipient:"Vec"},NonFungibleTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",tokenId:"Vec",recipient:"Vec",metadata:"Vec"},GenericTransfer:{destId:"BridgeChainId",nonce:"DepositNonce",resourceId:"ResourceId",metadata:"Vec"},ResourceId:"[u8; 32]",TokenId:"U256",DepositNonce:"u64",ProposalStatus:{_enum:{Initiated:null,Approved:null,Rejected:null}},ProposalVotes:{votesFor:"Vec",votesAgainst:"Vec",status:"ProposalStatus",expiry:"BlockNumber"},AssetInfo:{destId:"BridgeChainId",assetIdentity:"Vec"},ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Governance","Collator","StakePoolManager"]},Sr25519PublicKey:"[u8; 32]",MasterPublicKey:"Sr25519PublicKey",WorkerPublicKey:"Sr25519PublicKey",ContractPublicKey:"Sr25519PublicKey",EcdhPublicKey:"[u8; 32]",MessageOrigin:{_enum:{Pallet:"Vec",Contract:"H256",Worker:"Sr25519PublicKey",AccountId:"H256",MultiLocation:"Vec",Gatekeeper:null,Cluster:"H256"}},Attestation:{_enum:{SgxIas:"AttestationSgxIas"}},AttestationSgxIas:{raReport:"Vec",signature:"Vec",rawSigningCert:"Vec"},SenderId:"MessageOrigin",Path:"Vec",Topic:"Path",Message:{sender:"SenderId",destination:"Topic",payload:"Vec"},SignedMessage:{message:"Message",sequence:"u64",signature:"Vec"},WorkerRegistrationInfo:{version:"u32",machineId:"Vec",pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",genesisBlockHash:"H256",features:"Vec",operator:"Option"},PoolInfo:{pid:"u64",owner:"AccountId",payoutCommission:"Option",ownerReward:"Balance",cap:"Option",rewardAcc:"u128",totalShares:"Balance",totalStake:"Balance",freeStake:"Balance",releasingStake:"Balance",workers:"Vec",withdrawQueue:"Vec"},WithdrawInfo:{user:"AccountId",shares:"Balance",startTime:"u64"},WorkerInfo:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",runtimeVersion:"u32",lastUpdated:"u64",operator:"Option",confidenceLevel:"u8",initialScore:"Option",features:"Vec"},MinerInfo:{state:"MinerState",ve:"u128",v:"u128",vUpdatedAt:"u64",benchmark:"Benchmark",coolDownStart:"u64",stats:"MinerStats"},Benchmark:{pInit:"u32",pInstant:"u32",iterations:"u64",miningStartTime:"u64",challengeTimeLast:"u64"},MinerState:{_enum:{Ready:null,MiningIdle:null,MiningActive:null,MiningUnresponsive:null,MiningCoolingDown:null}},MinerStats:{totalReward:"Balance"},HeartbeatChallenge:{seed:"U256",onlineTarget:"U256"},KeyDistribution:{_enum:{MasterKeyDistribution:"DispatchMasterKeyEvent"}},GatekeeperLaunch:{_enum:{FirstGatekeeper:"NewGatekeeperEvent",MasterPubkeyOnChain:null}},GatekeeperChange:{_enum:{GatekeeperRegistered:"NewGatekeeperEvent"}},GatekeeperEvent:{_enum:{NewRandomNumber:"RandomNumberEvent",TokenomicParametersChanged:"TokenomicParameters"}},NewGatekeeperEvent:{pubkey:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey"},DispatchMasterKeyEvent:{dest:"WorkerPublicKey",ecdhPubkey:"EcdhPublicKey",encryptedMasterKey:"Vec",iv:"[u8; 12]"},RandomNumberEvent:{blockNumber:"u32",randomNumber:"[u8; 32]",lastRandomNumber:"[u8; 32]"},TokenomicParameters:{phaRate:"U64F64Bits",rho:"U64F64Bits",budgetPerBlock:"U64F64Bits",vMax:"U64F64Bits",costK:"U64F64Bits",costB:"U64F64Bits",slashRate:"U64F64Bits",treasuryRatio:"U64F64Bits",heartbeatWindow:"u32",rigK:"U64F64Bits",rigB:"U64F64Bits",re:"U64F64Bits",k:"U64F64Bits",kappa:"U64F64Bits"},TokenomicParams:"TokenomicParameters",U64F64Bits:"u128",UserStakeInfo:{user:"AccountId",locked:"Balance",shares:"Balance",availableRewards:"Balance",rewardDebt:"Balance"}}}]},"kintsugi-parachain":{default:{types:[{minmax:[0,null],types:{BalanceWrapper:{amount:"String"},CurrencyId:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",LendToken:"LendTokenId",LpToken:"(LpToken, LpToken)",StableLpToken:"StablePoolId"}},LpToken:{_enum:{Token:"TokenSymbol",ForeignAsset:"ForeignAssetId",StableLpToken:"StablePoolId"}},InterbtcPrimitivesCurrencyId:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",LendToken:"InterbtcLendTokenId",LpToken:"(InterbtcLpToken, InterbtcLpToken)",StableLpToken:"InterbtcStablePoolId"}},InterbtcLpToken:{_enum:{Token:"InterbtcPrimitivesTokenSymbol",ForeignAsset:"InterbtcForeignAssetId",StableLpToken:"InterbtcStablePoolId"}},InterbtcForeignAssetId:"u32",ForeignAssetId:"u32",InterbtcLendTokenId:"u32",InterbtcStablePoolId:"u32",LendTokenId:"u32",StablePoolId:"u32",NumberOrHex:{_enum:{Number:"u64",Hex:"U256"}},Rate:"FixedU128",Ratio:"Permill",Liquidity:"FixedU128",Shortfall:"FixedU128",FundAccountJsonRpcRequest:{account_id:"AccountId",currency_id:"InterbtcPrimitivesCurrencyId"},H256Le:"H256",SignedFixedPoint:"FixedU128",TokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},InterbtcPrimitivesTokenSymbol:{_enum:{DOT:0,IBTC:1,INTR:2,KSM:10,KBTC:11,KINT:12}},UnsignedFixedPoint:"FixedU128",VaultCurrencyPair:{collateral:"CurrencyId",wrapped:"CurrencyId"},VaultId:{account_id:"AccountId",currencies:"VaultCurrencyPair"}}}],rpc:{btcRelay:{verifyBlockHeaderInclusion:{description:"Verify that the block with the given hash is included",params:[{name:"block_hash",type:"H256Le"}],type:"void"}},escrow:{balanceAt:{description:"Get a given user's escrowed balance",params:[{name:"account_id",type:"AccountId"},{name:"height",type:"Option"}],type:"BalanceWrapper"},totalSupply:{description:"Get the total voting supply in the system",params:[{name:"height",type:"Option"}],type:"BalanceWrapper"},freeStakable:{description:"Amount of kint/intr that account can lock, taking into consideration the Limits.",params:[{name:"account_id",type:"AccountId"}],type:"BalanceWrapper"}},loans:{getCollateralLiquidity:{description:"Retrieves collateral liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getCollateralLiquidity",method:"getCollateralLiquidity",section:"loans"},getLiquidationThresholdLiquidity:{description:"Retrieves liquidation threshold liquidity for the given user.",params:[{name:"account",type:"AccountId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Liquidity, Shortfall)",isSubscription:!1,jsonrpc:"loans_getLiquidationThresholdLiquidity",method:"getLiquidationThresholdLiquidity",section:"loans"},getMarketStatus:{description:"Retrieves market status data for a given asset id.",params:[{name:"asset_id",type:"CurrencyId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)",isSubscription:!1,jsonrpc:"loans_getMarketStatus",method:"getMarketStatus",section:"loans"}},issue:{getIssueRequests:{description:"Get all issue request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultIssueRequests:{description:"Get all issue request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},oracle:{collateralToWrapped:{description:"Collateral to Wrapped exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},wrappedToCollateral:{description:"Wrapped to Collateral exchange rate",params:[{name:"amount",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},redeem:{getRedeemRequests:{description:"Get all redeem request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultRedeemRequests:{description:"Get all redeem request IDs for a particular vault",params:[{name:"vault_id",type:"AccountId"}],type:"Vec"}},refund:{getRefundRequests:{description:"Get all refund request IDs for a particular account",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getRefundRequestsByIssueId:{description:"Get all refund request IDs for a particular issue ID",params:[{name:"issue_id",type:"H256"}],type:"H256"},getVaultRefundRequests:{description:"Get all refund request IDs for a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},replace:{getNewVaultReplaceRequests:{description:"Get all replace request IDs to a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getOldVaultReplaceRequests:{description:"Get all replace request IDs from a particular vault",params:[{name:"account_id",type:"AccountId"}],type:"Vec"}},reward:{estimateEscrowRewardRate:{description:"Estimate the escrow reward rate for a given account",params:[{name:"account_id",type:"AccountId"},{name:"amount",type:"Option"},{name:"lock_time",type:"Option"}],type:"UnsignedFixedPoint"},estimateVaultRewardRate:{description:"Estimate the vault reward rate a given vault id",params:[{name:"vault_id",type:"VaultId"}],type:"UnsignedFixedPoint"},computeEscrowReward:{description:"Get a given user's rewards due",params:[{name:"account_id",type:"AccountId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeFarmingReward:{description:"Get a given user's farming rewards due",params:[{name:"account_id",type:"AccountId"},{name:"pool_currency_id",type:"CurrencyId"},{name:"reward_currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},computeVaultReward:{description:"Get a given vault's rewards due",params:[{name:"vault_id",type:"VaultId"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"}},vaultRegistry:{getCollateralizationFromVault:{description:"Returns the collateralization of a specific vault",params:[{name:"vault",type:"VaultId"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getCollateralizationFromVaultAndCollateral:{description:"Returns the collateralization of a specific vault and collateral",params:[{name:"vault",type:"VaultId"},{name:"collateral",type:"BalanceWrapper"},{name:"only_issued",type:"bool"}],type:"UnsignedFixedPoint"},getIssueableTokensFromVault:{description:"Get the amount of tokens a vault can issue",params:[{name:"vault",type:"VaultId"}],type:"BalanceWrapper"},getPremiumRedeemVaults:{description:"Get all vaults below the premium redeem threshold.",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getRequiredCollateralForVault:{description:"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getRequiredCollateralForWrapped:{description:"Get the amount of collateral required to issue an amount of InterBTC",params:[{name:"amount_btc",type:"BalanceWrapper"},{name:"currency_id",type:"CurrencyId"}],type:"BalanceWrapper"},getVaultCollateral:{description:"Get the vault's collateral (excluding nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultTotalCollateral:{description:"Get the vault's collateral (including nomination)",params:[{name:"vault_id",type:"VaultId"}],type:"BalanceWrapper"},getVaultsByAccountId:{description:"Get all vaults that are registered using the given account _id",params:[{name:"account_id",type:"AccountId"}],type:"Vec"},getVaultsWithIssuableTokens:{description:"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"},getVaultsWithRedeemableTokens:{description:"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount",params:[],type:"Vec<(VaultId, BalanceWrapper)>"}},dexStable:{getA:{description:"Get amplification coefficient of pool",params:[{name:"pool_id",type:"StablePoolId"},{name:"at",type:"BlockHash",isHistoric:!0,isOptional:!0}],type:"NumberOrHex"}}},alias:{tokens:{AccountData:"OrmlAccountData",BalanceLock:"OrmlBalanceLock"}},instances:{balances:["ksm","kbtc","kint","dot","ibtc","intr"]}}},konomi:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},kpron:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},kulupu:{types:[{minmax:[0,null],types:{CurvePoint:{start:"BlockNumber",reward:"Balance",taxation:"Perbill"},Difficulty:"U256",DifficultyAndTimestamp:{difficulty:"Difficulty",timestamp:"Moment"},Era:{genesisBlockHash:"H256",finalBlockHash:"H256",finalStateRoot:"H256"}}},{minmax:[13,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress"}},{minmax:[17,null],types:{CampaignIdentifier:"[u8; 4]"}},{minmax:[24,null],types:{HashedProof:"[u8; 32]",PendingSwap:{source:"AccountId",action:"SwapAction",endBlock:"BlockNumber"},SwapAction:{value:"Balance"}}}]},kusari:{types:[{minmax:[0,null],types:{EvmAddress:"H160",EthereumTxHash:"H256",Address:"MultiAddress",LookupSource:"MultiAddress",AccountInfo:"AccountInfoWithTripleRefCount",Account:{nonce:"U256",balance:"U256"},Transaction:{nonce:"U256",action:"String",gas_price:"u64",gas_limit:"u64",value:"U256",input:"Vec",signature:"Signature"},Signature:{v:"u64",r:"H256",s:"H256"},ClassId:"u64",TokenId:"u64",ClassData:"Vec",TokenData:"Vec",ReportReason:{_enum:["None","Illigal","Plagiarism","Duplicate","Reported"]},ClassInfoOf:{metadata:"Vec",total_issuance:"TokenId",owner:"AccountId",class_data:"ClassData"},ExtendedInfo:{display_flag:"bool",report:"ReportReason",frozen:"bool"},TokenInfoOf:{metadata:"Vec",owner:"AccountId",class_data:"ClassData"},"bridge::ChainId":"u8",ChainId:"u8",ResourceId:"[u8; 32]",DepositNonce:"u64",ProposalVotes:{votes_for:"Vec",votes_against:"Vec",status:"enum"}}}]},kylin:{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",DataRequest:{para_id:"Option",account_id:"Option",requested_block_number:"BlockNumber",processed_block_number:"Option",requested_timestamp:"u128",processed_timestamp:"Option",payload:"Text",feed_name:"Text",is_query:"bool",url:"Option"}}}]},laminar:{types:[{minmax:[0,299],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"},Share:"u128",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},OracleValue:"Price",MarginPoolState:{enp:"FixedI128",ell:"FixedI128",required_deposit:"FixedI128"},MarginTraderState:{equity:"FixedI128",margin_held:"FixedI128",margin_level:"FixedI128",free_margin:"FixedI128",unrealized_pl:"FixedI128"},CurrencyId:{_enum:["LAMI","AUSD","DOT","FEUR","FJPY","FBTC","FETH","FAUD","FCAD","FCHF","FXAU","FOIL","FGBP"]},Leverage:{_enum:["LongTwo","LongThree","LongFive","LongTen","LongTwenty","LongThirty","LongFifty","LongReserved","ShortTwo","ShortThree","ShortFive","ShortTen","ShortTwenty","ShortThirty","ShortFifty","ShortReserved"]},SwapRate:{long:"Rate",short:"Rate"},CurrencyIdOf:"CurrencyId",Amount:"FixedI128",AmountOf:"Amount",OracleKey:"CurrencyId",LiquidityPoolId:"u32",Leverages:{_set:{_bitLength:16,LongTwo:1,LongThree:2,LongFive:4,LongTen:8,LongTwenty:16,LongThirty:32,LongFifty:64,LongReserved:128,ShortTwo:256,ShortThree:512,ShortFive:1024,ShortTen:2048,ShortTwenty:4096,ShortThirty:8192,ShortFifty:16384,ShortReserved:32768}},TradingPair:{base:"CurrencyId",quote:"CurrencyId"},AccumulateConfig:{frequency:"Moment",offset:"Moment"},IdentityDepositBalanceOf:"Balance",Pool:{owner:"AccountId",balance:"Balance"},MarginTradingPairOption:{enabled:"bool",maxSpread:"Option",swapRate:"SwapRate",accumulateConfig:"Option"},MarginPoolOption:{additionalSwapRate:"FixedI128",minLeveragedAmount:"FixedU128"},MarginPoolTradingPairOption:{enabled:"bool",bidSpread:"Option",askSpread:"Option",enabledTrades:"Leverages"},SyntheticPoolCurrencyOption:{bidSpread:"Option",askSpread:"Option",additionalCollateralRatio:"Option",syntheticEnabled:"bool"},MarginPosition:{owner:"AccountId",poolId:"LiquidityPoolId",pair:"TradingPair",leverage:"Leverage",leveragedHeld:"FixedI128",leveragedDebits:"FixedI128",openAccumulatedSwapRate:"Rate",marginHeld:"FixedI128"},SyntheticPosition:{collateral:"FixedU128",synthetic:"FixedU128"},RiskThreshold:{marginCall:"Permill",stopOut:"Permill"},PositionId:"u64",Rate:"FixedI128",PoolTraderInfo:{positionNum:"PositionId",long:"PairInfo",short:"PairInfo"},PairInfo:{baseAmount:"FixedI128",quoteAmount:"FixedI128"},TradingPairRiskThreshold:{trader:"Option",enp:"Option",ell:"Option"},SyntheticTokensRatio:{extreme:"Option",liquidation:"Option",collateral:"Option"},PositionsSnapshot:{positionsCount:"PositionId",long:"LeveragedAmounts",short:"LeveragedAmounts"},LeveragedAmounts:{held:"FixedI128",debits:"FixedI128"},LiquidityPoolIdentityInfo:{legalName:"Vec",displayName:"Vec",web:"Vec",email:"Vec",image_url:"Vec"},SyntheticPoolState:{collateral_ratio:"FixedI128",is_safe:"boolean"},Keys:"SessionKeys2",RefCount:"RefCountTo259"}},{minmax:[300,399],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"},Share:"u128",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},OracleValue:"Price",MarginPoolState:{enp:"FixedI128",ell:"FixedI128",required_deposit:"FixedI128"},MarginTraderState:{equity:"FixedI128",margin_held:"FixedI128",margin_level:"FixedI128",free_margin:"FixedI128",unrealized_pl:"FixedI128"},CurrencyId:{_enum:["LAMI","AUSD","FEUR","FJPY","FBTC","FETH","FAUD","FCAD","FCHF","FXAU","FOIL","FGBP"]},Leverage:{_enum:["LongTwo","LongThree","LongFive","LongTen","LongTwenty","LongThirty","LongFifty","LongReserved","ShortTwo","ShortThree","ShortFive","ShortTen","ShortTwenty","ShortThirty","ShortFifty","ShortReserved"]},SwapRate:{long:"Rate",short:"Rate"},CurrencyIdOf:"CurrencyId",Amount:"FixedI128",AmountOf:"Amount",OracleKey:"CurrencyId",LiquidityPoolId:"u32",Leverages:{_set:{_bitLength:16,LongTwo:1,LongThree:2,LongFive:4,LongTen:8,LongTwenty:16,LongThirty:32,LongFifty:64,LongReserved:128,ShortTwo:256,ShortThree:512,ShortFive:1024,ShortTen:2048,ShortTwenty:4096,ShortThirty:8192,ShortFifty:16384,ShortReserved:32768}},TradingPair:{base:"CurrencyId",quote:"CurrencyId"},AccumulateConfig:{frequency:"Moment",offset:"Moment"},IdentityDepositBalanceOf:"Balance",Pool:{owner:"AccountId",balance:"Balance"},MarginTradingPairOption:{enabled:"bool",maxSpread:"Option",swapRate:"SwapRate",accumulateConfig:"Option"},MarginPoolOption:{additionalSwapRate:"FixedI128",minLeveragedAmount:"FixedU128"},MarginPoolTradingPairOption:{enabled:"bool",bidSpread:"Option",askSpread:"Option",enabledTrades:"Leverages"},SyntheticPoolCurrencyOption:{bidSpread:"Option",askSpread:"Option",additionalCollateralRatio:"Option",syntheticEnabled:"bool"},MarginPosition:{owner:"AccountId",poolId:"LiquidityPoolId",pair:"TradingPair",leverage:"Leverage",leveragedHeld:"FixedI128",leveragedDebits:"FixedI128",openAccumulatedSwapRate:"Rate",marginHeld:"FixedI128"},SyntheticPosition:{collateral:"FixedU128",synthetic:"FixedU128"},RiskThreshold:{marginCall:"Permill",stopOut:"Permill"},PositionId:"u64",Rate:"FixedI128",PoolTraderInfo:{positionNum:"PositionId",long:"PairInfo",short:"PairInfo"},PairInfo:{baseAmount:"FixedI128",quoteAmount:"FixedI128"},TradingPairRiskThreshold:{trader:"Option",enp:"Option",ell:"Option"},SyntheticTokensRatio:{extreme:"Option",liquidation:"Option",collateral:"Option"},PositionsSnapshot:{positionsCount:"PositionId",long:"LeveragedAmounts",short:"LeveragedAmounts"},LeveragedAmounts:{held:"FixedI128",debits:"FixedI128"},LiquidityPoolIdentityInfo:{legalName:"Vec",displayName:"Vec",web:"Vec",email:"Vec",image_url:"Vec"},SyntheticPoolState:{collateral_ratio:"FixedI128",is_safe:"boolean"},Keys:"SessionKeys2"}},{minmax:[400,null],types:{CallOf:"Call",DispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},ScheduleTaskIndex:"u32",DelayedOrigin:{delay:"BlockNumber",origin:"PalletsOrigin"},StorageValue:"Vec",GraduallyUpdate:{key:"StorageKey",targetValue:"StorageValue",perBlock:"StorageValue"},StorageKeyBytes:"Vec",StorageValueBytes:"Vec",RpcDataProviderId:"Text",DataProviderId:"u8",TimestampedValue:{value:"OracleValue",timestamp:"Moment"},TimestampedValueOf:"TimestampedValue",OrderedSet:"Vec",OrmlAccountData:{free:"Balance",frozen:"Balance",reserved:"Balance"},OrmlBalanceLock:{amount:"Balance",id:"LockIdentifier"},AuctionInfo:{bid:"Option<(AccountId, Balance)>",start:"BlockNumber",end:"Option"},DelayedDispatchTime:{_enum:{At:"BlockNumber",After:"BlockNumber"}},DispatchId:"u32",Price:"FixedU128",OrmlVestingSchedule:{start:"BlockNumber",period:"BlockNumber",periodCount:"u32",perPeriod:"Compact"},VestingScheduleOf:"OrmlVestingSchedule",PoolInfo:{totalShares:"Compact",totalRewards:"Compact",totalWithdrawnRewards:"Compact"},Share:"u128",ChainId:{_enum:{RelayChain:"Null",ParaChain:"ParaId"}},XCurrencyId:{chainId:"ChainId",currencyId:"Vec"},OracleValue:"Price",MarginPoolState:{enp:"FixedI128",ell:"FixedI128",required_deposit:"FixedI128"},MarginTraderState:{equity:"FixedI128",margin_held:"FixedI128",margin_level:"FixedI128",free_margin:"FixedI128",unrealized_pl:"FixedI128"},CurrencyId:{_enum:["LAMI","AUSD","DOT","FEUR","FJPY","FBTC","FETH","FAUD","FCAD","FCHF","FXAU","FOIL","FGBP"]},Leverage:{_enum:["LongTwo","LongThree","LongFive","LongTen","LongTwenty","LongThirty","LongFifty","LongReserved","ShortTwo","ShortThree","ShortFive","ShortTen","ShortTwenty","ShortThirty","ShortFifty","ShortReserved"]},SwapRate:{long:"Rate",short:"Rate"},CurrencyIdOf:"CurrencyId",Amount:"FixedI128",AmountOf:"Amount",OracleKey:"CurrencyId",LiquidityPoolId:"u32",Leverages:{_set:{_bitLength:16,LongTwo:1,LongThree:2,LongFive:4,LongTen:8,LongTwenty:16,LongThirty:32,LongFifty:64,LongReserved:128,ShortTwo:256,ShortThree:512,ShortFive:1024,ShortTen:2048,ShortTwenty:4096,ShortThirty:8192,ShortFifty:16384,ShortReserved:32768}},TradingPair:{base:"CurrencyId",quote:"CurrencyId"},AccumulateConfig:{frequency:"Moment",offset:"Moment"},IdentityDepositBalanceOf:"Balance",Pool:{owner:"AccountId",balance:"Balance"},MarginTradingPairOption:{enabled:"bool",maxSpread:"Option",swapRate:"SwapRate",accumulateConfig:"Option"},MarginPoolOption:{additionalSwapRate:"FixedI128",minLeveragedAmount:"FixedU128"},MarginPoolTradingPairOption:{enabled:"bool",bidSpread:"Option",askSpread:"Option",enabledTrades:"Leverages"},SyntheticPoolCurrencyOption:{bidSpread:"Option",askSpread:"Option",additionalCollateralRatio:"Option",syntheticEnabled:"bool"},MarginPosition:{owner:"AccountId",poolId:"LiquidityPoolId",pair:"TradingPair",leverage:"Leverage",leveragedHeld:"FixedI128",leveragedDebits:"FixedI128",openAccumulatedSwapRate:"Rate",marginHeld:"FixedI128"},SyntheticPosition:{collateral:"FixedU128",synthetic:"FixedU128"},RiskThreshold:{marginCall:"Permill",stopOut:"Permill"},PositionId:"u64",Rate:"FixedI128",PoolTraderInfo:{positionNum:"PositionId",long:"PairInfo",short:"PairInfo"},PairInfo:{baseAmount:"FixedI128",quoteAmount:"FixedI128"},TradingPairRiskThreshold:{trader:"Option",enp:"Option",ell:"Option"},SyntheticTokensRatio:{extreme:"Option",liquidation:"Option",collateral:"Option"},PositionsSnapshot:{positionsCount:"PositionId",long:"LeveragedAmounts",short:"LeveragedAmounts"},LeveragedAmounts:{held:"FixedI128",debits:"FixedI128"},LiquidityPoolIdentityInfo:{legalName:"Vec",displayName:"Vec",web:"Vec",email:"Vec",image_url:"Vec"},SyntheticPoolState:{collateral_ratio:"FixedI128",is_safe:"boolean"},Keys:"SessionKeys2"}}]},litentry:{types:[{minmax:[0,null],types:{Address:"AccountId",LookupSource:"AccountId"}}]},logion:{alias:{loAuthorityList:{StorageVersion:"LoAuthorityListStorageVersion"}},types:[{minmax:[0,109],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PeerId:"(Vec)",AccountInfo:"AccountInfoWithDualRefCount",TAssetBalance:"u128",AssetId:"u64",AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"DepositBalance",max_zombies:"u32",min_balance:"Balance",zombies:"u32",accounts:"u32",is_frozen:"bool"},AssetMetadata:{deposit:"DepositBalance",name:"Vec",symbol:"Vec",decimals:"u8"},LocId:"u128",LegalOfficerCaseOf:{owner:"AccountId",requester:"Requester",metadata:"Vec",files:"Vec",closed:"bool",loc_type:"LocType",links:"Vec",void_info:"Option>",replacer_of:"Option",collection_last_block_submission:"Option",collection_max_size:"Option"},MetadataItem:{name:"Vec",value:"Vec",submitter:"AccountId"},LocType:{_enum:["Transaction","Identity","Collection"]},LocLink:{id:"LocId",nature:"Vec"},File:{hash:"Hash",nature:"Vec",submitter:"AccountId"},LocVoidInfo:{replacer:"Option"},StorageVersion:{_enum:["V1","V2MakeLocVoid","V3RequesterEnum","V4ItemSubmitter","V5Collection"]},Requester:{_enum:{None:null,Account:"AccountId",Loc:"LocId"}},CollectionSize:"u32",CollectionItemId:"Hash",CollectionItem:{description:"Vec"},BeefyKey:"[u8; 33]",Keys:"SessionKeys2",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}},{minmax:[110,111],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PeerId:"(Vec)",AccountInfo:"AccountInfoWithDualRefCount",TAssetBalance:"u128",AssetId:"u64",AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"DepositBalance",max_zombies:"u32",min_balance:"Balance",zombies:"u32",accounts:"u32",is_frozen:"bool"},AssetMetadata:{deposit:"DepositBalance",name:"Vec",symbol:"Vec",decimals:"u8"},LocId:"u128",LegalOfficerCaseOf:{owner:"AccountId",requester:"Requester",metadata:"Vec",files:"Vec",closed:"bool",loc_type:"LocType",links:"Vec",void_info:"Option>",replacer_of:"Option",collection_last_block_submission:"Option",collection_max_size:"Option",collection_can_upload:"bool"},MetadataItem:{name:"Vec",value:"Vec",submitter:"AccountId"},LocType:{_enum:["Transaction","Identity","Collection"]},LocLink:{id:"LocId",nature:"Vec"},File:{hash:"Hash",nature:"Vec",submitter:"AccountId"},LocVoidInfo:{replacer:"Option"},StorageVersion:{_enum:["V1","V2MakeLocVoid","V3RequesterEnum","V4ItemSubmitter","V5Collection","V6ItemUpload"]},Requester:{_enum:{None:null,Account:"AccountId",Loc:"LocId"}},CollectionSize:"u32",CollectionItemId:"Hash",CollectionItem:{description:"Vec",files:"Vec>"},CollectionItemFile:{name:"Vec",content_type:"Vec",fileSize:"u32",hash:"Hash"},BeefyKey:"[u8; 33]",Keys:"SessionKeys2",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}},{minmax:[112,116],types:{Address:"MultiAddress",LookupSource:"MultiAddress",OpaquePeerId:"Vec",AccountInfo:"AccountInfoWithDualRefCount",TAssetBalance:"u128",AssetId:"u64",AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"DepositBalance",max_zombies:"u32",min_balance:"Balance",zombies:"u32",accounts:"u32",is_frozen:"bool"},AssetMetadata:{deposit:"DepositBalance",name:"Vec",symbol:"Vec",decimals:"u8"},LocId:"u128",LegalOfficerCaseOf:{owner:"AccountId",requester:"Requester",metadata:"Vec",files:"Vec",closed:"bool",loc_type:"LocType",links:"Vec",void_info:"Option>",replacer_of:"Option",collection_last_block_submission:"Option",collection_max_size:"Option",collection_can_upload:"bool"},MetadataItem:{name:"Vec",value:"Vec",submitter:"AccountId"},LocType:{_enum:["Transaction","Identity","Collection"]},LocLink:{id:"LocId",nature:"Vec"},File:{hash:"Hash",nature:"Vec",submitter:"AccountId"},LocVoidInfo:{replacer:"Option"},StorageVersion:{_enum:["V1","V2MakeLocVoid","V3RequesterEnum","V4ItemSubmitter","V5Collection","V6ItemUpload","V7ItemToken"]},Requester:{_enum:{None:null,Account:"AccountId",Loc:"LocId"}},CollectionSize:"u32",CollectionItemId:"Hash",CollectionItem:{description:"Vec",files:"Vec>",token:"Option",restricted_delivery:"bool"},CollectionItemFile:{name:"Vec",content_type:"Vec",fileSize:"u32",hash:"Hash"},CollectionItemToken:{token_type:"Vec",token_id:"Vec"},BeefyKey:"[u8; 33]",Keys:"SessionKeys2",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}},{minmax:[117,null],types:{OpaquePeerId:"Vec",AccountInfo:"AccountInfoWithDualRefCount",TAssetBalance:"u128",AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"DepositBalance",max_zombies:"u32",min_balance:"Balance",zombies:"u32",accounts:"u32",is_frozen:"bool"},AssetMetadata:{deposit:"DepositBalance",name:"Vec",symbol:"Vec",decimals:"u8"},LocId:"u128",LegalOfficerCaseOf:{owner:"AccountId",requester:"Requester",metadata:"Vec",files:"Vec",closed:"bool",loc_type:"LocType",links:"Vec",void_info:"Option>",replacer_of:"Option",collection_last_block_submission:"Option",collection_max_size:"Option",collection_can_upload:"bool",seal:"Option",sponsorship_id:"Option",value_fee:"Balance",legal_fee:"Balance",collection_item_fee:"Balance",tokens_record_fee:"Balance"},MetadataItemParams:{name:"Hash",value:"Hash",submitter:"SupportedAccountId"},MetadataItem:{name:"Hash",value:"Hash",submitter:"SupportedAccountId",acknowledgedByOwner:"bool",acknowledgedByVerifiedIssuer:"bool"},LocType:{_enum:["Transaction","Identity","Collection"]},LocLinkParams:{id:"LocId",nature:"Hash",submitter:"SupportedAccountId"},LocLink:{id:"LocId",nature:"Hash",submitter:"SupportedAccountId",acknowledgedByOwner:"bool",acknowledgedByVerifiedIssuer:"bool"},FileParams:{hash:"Hash",nature:"Hash",submitter:"SupportedAccountId"},File:{hash:"Hash",nature:"Hash",submitter:"SupportedAccountId",acknowledgedByOwner:"bool",acknowledgedByVerifiedIssuer:"bool"},LocVoidInfo:{replacer:"Option"},StorageVersion:{_enum:["V1","V2MakeLocVoid","V3RequesterEnum","V4ItemSubmitter","V5Collection","V6ItemUpload","V7ItemToken","V8AddSeal","V9TermsAndConditions","V10AddLocFileSize","V11EnableEthereumSubmitter","V12Sponsorship","V13AcknowledgeItems","V14HashLocPublicData","V15AddTokenIssuance","V16MoveTokenIssuance","V17HashItemRecordPublicData","V18AddValueFee","V19AcknowledgeItemsByIssuer","V20AddCustomLegalFee","V21EnableRequesterLinks","V22AddRecurrentFees"]},Requester:{_enum:{None:null,Account:"AccountId",Loc:"LocId",OtherAccount:"OtherAccountId"}},CollectionSize:"u32",CollectionItemId:"Hash",CollectionItem:{description:"Hash",files:"Vec",token:"Option",restricted_delivery:"bool",terms_and_conditions:"Vec"},TokenIssuance:"u64",CollectionItemFile:{name:"Hash",content_type:"Hash",fileSize:"u32",hash:"Hash"},CollectionItemToken:{token_type:"Hash",token_id:"Hash",token_issuance:"TokenIssuance"},LegalOfficerData:{_enum:{Host:"HostData",Guest:"AccountId"}},HostData:{node_id:"Option",base_url:"Option>",region:"Region"},Region:{_enum:["Europe"]},LoAuthorityListStorageVersion:{_enum:["V1","V2AddOnchainSettings","V3GuestLegalOfficers","V4Region"]},TermsAndConditionsElement:{tcType:"Hash",tcLoc:"LocId",details:"Hash"},LogionVote:{locId:"LocId",ballots:"Vec"},Ballot:{voter:"LocId",status:"AccountId"},BallotStatus:{_enum:["NotVoted","VotedYes","VotedNo"]},VoteId:"u64",VoteClosed:"bool",VoteApproved:"bool",LegalOfficerCaseSummary:{owner:"AccountId",requester:"Option"},TokensRecord:{description:"Hash",files:"Vec",submitter:"AccountId"},TokensRecordFile:{name:"Hash",contentType:"Hash",file_size:"u32",hash:"Hash"},VerifiedIssuer:{identityLoc:"LocId"},OtherAccountId:{_enum:{Ethereum:"H160"}},SupportedAccountId:{_enum:{None:null,Polkadot:"AccountId",Other:"OtherAccountId"}},SponsorshipId:"u128",Sponsorship:{sponsor:"AccountId",sponsored_account:"SupportedAccountId",legal_officer:"AccountId",loc_id:"Option"},Beneficiary:{_enum:{Other:null,LegalOfficer:"AccountId"}},ItemsParams:{metadata:"Vec",files:"Vec",links:"Vec"},Fixed64:"Int<64, Fixed64>",FixedI64:"Int<64, FixedI64>",FixedU64:"UInt<64, FixedU64>",Fixed128:"Int<128, Fixed128>",FixedI128:"Int<128, FixedI128>",FixedU128:"UInt<128, FixedU128>",I32F32:"Int<64, I32F32>",U32F32:"UInt<64, U32F32>",PerU16:"UInt<16, PerU16>",Perbill:"UInt<32, Perbill>",Percent:"UInt<8, Percent>",Permill:"UInt<32, Permill>",Perquintill:"UInt<64, Perquintill>",AccountId:"AccountId32",AccountId20:"GenericEthereumAccountId",AccountId32:"GenericAccountId32",AccountId33:"GenericAccountId33",AccountIdOf:"AccountId",AccountIndex:"GenericAccountIndex",Address:"MultiAddress",AssetId:"u64",Balance:"UInt<128, Balance>",BalanceOf:"Balance",Block:"GenericBlock",BlockNumber:"u32",BlockNumberFor:"BlockNumber",BlockNumberOf:"BlockNumber",Call:"GenericCall",CallHash:"Hash",CallHashOf:"CallHash",ChangesTrieConfiguration:{digestInterval:"u32",digestLevels:"u32"},ChangesTrieSignal:{_enum:{NewConfiguration:"Option"}},ConsensusEngineId:"GenericConsensusEngineId",CodecHash:"Hash",CrateVersion:{major:"u16",minor:"u8",patch:"u8"},Digest:{logs:"Vec"},DigestItem:{_enum:{Other:"Bytes",AuthoritiesChange:"Vec",ChangesTrieRoot:"Hash",SealV0:"SealV0",Consensus:"Consensus",Seal:"Seal",PreRuntime:"PreRuntime",ChangesTrieSignal:"ChangesTrieSignal",RuntimeEnvironmentUpdated:"Null"}},ExtrinsicsWeight:{normal:"Weight",operational:"Weight"},H32:"[u8; 4; H32]",H64:"[u8; 8; H64]",H128:"[u8; 16; H128]",H160:"[u8; 20; H160]",H256:"[u8; 32; H256]",H512:"[u8; 64; H512]",H1024:"[u8; 128; H1024]",H2048:"[u8; 256; H2048]",Hash:"H256",Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest"},HeaderPartial:{parentHash:"Hash",number:"BlockNumber"},IndicesLookupSource:"GenericLookupSource",Index:"u32",Justification:"(ConsensusEngineId, EncodedJustification)",EncodedJustification:"Bytes",Justifications:"Vec",KeyValue:"(StorageKey, StorageData)",KeyTypeId:"u32",LockIdentifier:"[u8; 8]",LookupSource:"MultiAddress",LookupTarget:"AccountId",ModuleId:"LockIdentifier",MultiAddress:"GenericMultiAddress",MultiSigner:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Ecdsa:"[u8; 33]"}},Moment:"UInt<64, Moment>",OpaqueCall:"Bytes",Origin:"DoNotConstruct",OriginCaller:{_enum:{System:"SystemOrigin"}},PalletId:"LockIdentifier",PalletsOrigin:"OriginCaller",PalletVersion:{major:"u16",minor:"u8",patch:"u8"},Pays:{_enum:["Yes","No"]},Phantom:"Null",PhantomData:"Null",Releases:{_enum:["V1","V2","V3","V4","V5","V6","V7","V8","V9","V10"]},RuntimeCall:"Call",RuntimeEvent:"Event",RuntimeDbWeight:{read:"Weight",write:"Weight"},SignedBlock:"SignedBlockWithJustifications",SignedBlockWithJustification:{block:"Block",justification:"Option"},SignedBlockWithJustifications:{block:"Block",justifications:"Option"},Slot:"u64",SlotDuration:"u64",StorageData:"Bytes",StorageInfo:{palletName:"Bytes",storage_name:"Bytes",prefix:"Bytes",maxValues:"Option",maxSize:"Option"},StorageProof:{trieNodes:"Vec"},TransactionPriority:"u64",TransactionLongevity:"u64",TransactionTag:"Bytes",TransactionInfo:{_alias:{dataSize:"size"},chunkRoot:"H256",contentHash:"H256",dataSize:"u32",blockChunks:"u32"},TransactionStorageProof:{chunk:"Vec",proof:"Vec>"},ValidatorId:"AccountId",ValidatorIdOf:"ValidatorId",WeightV0:"u32",WeightV1:"u64",WeightV2:{refTime:"Compact",proofSize:"Compact"},Weight:"WeightV2",WeightMultiplier:"Fixed64",PreRuntime:"(ConsensusEngineId, Bytes)",SealV0:"(u64, Signature)",Seal:"(ConsensusEngineId, Bytes)",Consensus:"(ConsensusEngineId, Bytes)",ExtrinsicInclusionMode:{_enum:["AllExtrinsics","OnlyInherents"]},BeefyKey:"[u8; 33]",Keys:"SessionKeys2",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}}]},"logion-parachain":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",PeerId:"(Vec)",AccountInfo:"AccountInfoWithDualRefCount",TAssetBalance:"u128",AssetId:"u64",AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"Balance",deposit:"DepositBalance",max_zombies:"u32",min_balance:"Balance",zombies:"u32",accounts:"u32",is_frozen:"bool"},AssetMetadata:{deposit:"DepositBalance",name:"Vec",symbol:"Vec",decimals:"u8"},LocId:"u128",LegalOfficerCaseOf:{owner:"AccountId",requester:"Requester",metadata:"Vec",files:"Vec",closed:"bool",loc_type:"LocType",links:"Vec",void_info:"Option>",replacer_of:"Option",collection_last_block_submission:"Option",collection_max_size:"Option"},MetadataItem:{name:"Vec",value:"Vec",submitter:"AccountId"},LocType:{_enum:["Transaction","Identity","Collection"]},LocLink:{id:"LocId",nature:"Vec"},File:{hash:"Hash",nature:"Vec",submitter:"AccountId"},LocVoidInfo:{replacer:"Option"},StorageVersion:{_enum:["V1","V2MakeLocVoid","V3RequesterEnum","V4ItemSubmitter","V5Collection"]},Requester:{_enum:{None:null,Account:"AccountId",Loc:"LocId"}},CollectionSize:"u32",CollectionItemId:"Hash",CollectionItem:{description:"Vec"}}}]},mangata:{types:[{minmax:[0,null],types:{ShufflingSeed:{seed:"H256",proof:"H512"},Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest",seed:"ShufflingSeed",count:"BlockNumber"},RpcAssetMetadata:{tokenId:"TokenId",decimals:"u32",name:"Vec",symbol:"Vec"},TokenId:"u32"}}],rpc:{xyk:{calculate_buy_price:{description:"Calculates and returns sold_token_amount while providing bought_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_sell_price:{description:"Calculates and returns bought_token_amount while providing sold_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},get_burn_amount:{description:"Returns amounts of tokens received by burning provided liquidity_token_amount in pool of provided token ids",params:[{name:"first_asset_id",type:"TokenId"},{name:"second_asset_id",type:"TokenId"},{name:"liquidity_asset_amount",type:"Balance"}],type:"(Balance,Balance)"},calculate_sell_price_id:{description:"Same as calculate_sell_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_buy_price_id:{description:"Same as calculate_buy_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"buy_amount",type:"Balance"}],type:"Balance"},calculate_rewards_amount:{description:"Calculate rewards amount of liquidity token id for the user",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},calculate_balanced_sell_amount:{description:"Calculates how much amount x we need to swap from total_amount, so that after y = swap(x), the resulting balance equals (total_amount - x) / y = pool_x / pool_y - the resulting amounts can then be used to `mint_liquidity` with minimal leftover after operation",params:[{name:"total_amount",type:"Balance"},{name:"reserve_amount",type:"Balance"}],type:"Balance"},get_max_instant_unreserve_amount:{description:"Instant unreserve amount",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},get_max_instant_burn_amount:{description:"",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},is_sell_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},is_buy_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},get_tradeable_tokens:{description:"",params:[],type:"Vec>"},get_liq_tokens_for_trading:{description:"",params:[],type:"Vec"}},pos:{calculate_native_rewards_amount:{description:"Calculates amount of available native rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_amount:{description:"Calculates amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"},{name:"rewards_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_all:{description:"Calculates all amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"}],type:"Vec<(TokenId, TokenId, Balance)>"}}}},"mangata-parachain":{types:[{minmax:[0,null],types:{ShufflingSeed:{seed:"H256",proof:"H512"},Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest",seed:"ShufflingSeed",count:"BlockNumber"},RpcAssetMetadata:{tokenId:"TokenId",decimals:"u32",name:"Vec",symbol:"Vec"},TokenId:"u32"}}],rpc:{xyk:{calculate_buy_price:{description:"Calculates and returns sold_token_amount while providing bought_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_sell_price:{description:"Calculates and returns bought_token_amount while providing sold_token_amount and respective reserves",params:[{name:"input_reserve",type:"Balance"},{name:"output_reserve",type:"Balance"},{name:"sell_amount",type:"Balance"}],type:"Balance"},get_burn_amount:{description:"Returns amounts of tokens received by burning provided liquidity_token_amount in pool of provided token ids",params:[{name:"first_asset_id",type:"TokenId"},{name:"second_asset_id",type:"TokenId"},{name:"liquidity_asset_amount",type:"Balance"}],type:"(Balance,Balance)"},calculate_sell_price_id:{description:"Same as calculate_sell_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"sell_amount",type:"Balance"}],type:"Balance"},calculate_buy_price_id:{description:"Same as calculate_buy_price, but providing token_id instead of reserves. Reserves are fetched by function.",params:[{name:"sold_token_id",type:"TokenId"},{name:"bought_token_id",type:"TokenId"},{name:"buy_amount",type:"Balance"}],type:"Balance"},calculate_rewards_amount:{description:"Calculate rewards amount of liquidity token id for the user",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},calculate_balanced_sell_amount:{description:"Calculates how much amount x we need to swap from total_amount, so that after y = swap(x), the resulting balance equals (total_amount - x) / y = pool_x / pool_y - the resulting amounts can then be used to `mint_liquidity` with minimal leftover after operation",params:[{name:"total_amount",type:"Balance"},{name:"reserve_amount",type:"Balance"}],type:"Balance"},get_max_instant_unreserve_amount:{description:"Instant unreserve amount",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},get_max_instant_burn_amount:{description:"",params:[{name:"user",type:"AccountId"},{name:"liquidity_asset_id",type:"TokenId"}],type:"Balance"},is_sell_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},is_buy_asset_lock_free:{description:"",params:[{name:"path",type:"Vec"},{name:"input_amount",type:"Balance"}],type:"Option"},get_tradeable_tokens:{description:"",params:[],type:"Vec>"},get_liq_tokens_for_trading:{description:"",params:[],type:"Vec"}},pos:{calculate_native_rewards_amount:{description:"Calculates amount of available native rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_amount:{description:"Calculates amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"},{name:"liquidity_token",type:"TokenId"},{name:"rewards_token",type:"TokenId"}],type:"Balance"},calculate_3rdparty_rewards_all:{description:"Calculates all amount of available 3rdparty rewards",params:[{name:"account",type:"AccountId"}],type:"Vec<(TokenId, TokenId, Balance)>"}}}},"manta-node":{types:[{minmax:[0,null],types:{CurrencyId:{_enum:["MA"]},CurrencyIdOf:"CurrencyId",Amount:"i128",AmountOf:"Amount",AccountInfo:"AccountInfoWithDualRefCount"}}]},mathchain:{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",Balance:"u128",RefCount:"u32",Account:{nonce:"U256",balance:"U256"},AccountServiceEnum:{_enum:{Nickname:"String",Ethereum:"H160"}},MultiAddressDetails:{nickname:"AccountServiceEnum",ethereum:"AccountServiceEnum"},Nickname:"String",Ethereum:"H160",TransferAmountInfo:{date:"u64",daily_info:"Balance",monthly_info:"Balance",yearly_info:"Balance"},AccountLimit:{daily_limit:"Balance",monthly_limit:"Balance",yearly_limit:"Balance"},Keys:"SessionKeys2"}}]},"mathchain-galois":{types:[{minmax:[0,null],types:{Address:"MultiAddress",LookupSource:"MultiAddress",Balance:"u128",RefCount:"u32",Account:{nonce:"U256",balance:"U256"},AccountServiceEnum:{_enum:{Nickname:"String",Ethereum:"H160"}},MultiAddressDetails:{nickname:"AccountServiceEnum",ethereum:"AccountServiceEnum"},Nickname:"String",Ethereum:"H160",TransferAmountInfo:{date:"u64",daily_info:"Balance",monthly_info:"Balance",yearly_info:"Balance"},AccountLimit:{daily_limit:"Balance",monthly_limit:"Balance",yearly_limit:"Balance"},Keys:"SessionKeys2"}}]},moonbase:{alias:{assetManager:{Balance:"TAssetBalance"},xTokens:{Balance:"TAssetBalance"}},rpc:{txpool:{content:{aliasSection:"txpool",description:"The detailed information regarding Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultContent"},inspect:{aliasSection:"txpool",description:"Summarized information of the Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultInspect"},status:{aliasSection:"txpool",description:"The number of Ethereum transaction that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultStatus"}},trace:{filter:{aliasSection:"trace",description:"Trace Filter",params:[{name:"filter",type:"FilterRequest"}],type:"Result>"}},debug:{traceTransaction:{aliasSection:"debug",description:"Debug trace tx",params:[{name:"transaction_hash",type:"H256"}],type:"Result>"}},xcm:{injectDownwardMessage:{description:"Inject a downward message from the relay chain.",params:[{name:"message",type:"Vec"}],type:"Result<()>"},injectHrmpMessage:{description:"Inject an HRMP message from a dedicated channel from a sibling parachain",params:[{name:"sender",type:"ParaId"},{name:"message",type:"Vec"}],type:"Result<()>"}},moon:{isBlockFinalized:{description:"Returns whether an Ethereum block is finalized",params:[{name:"blockHash",type:"Hash"}],type:"bool"},isTxFinalized:{description:"Returns whether an Ethereum transaction is finalized",params:[{name:"txHash",type:"Hash"}],type:"bool"}}},instances:{council:["councilCollective"],technicalCommittee:["techCommitteeCollective","openTechCommitteeCollective"]},types:[{minmax:[0,4],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",RefCount:"u8",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[5,5],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[6,19],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"ValidatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"}}},{minmax:[19,35],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"}}},{minmax:[36,36],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId"}},{minmax:[37,42],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"}}},{minmax:[43,154],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"}}},{minmax:[155,199],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"}}},{minmax:[200,399],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[400,599],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[600,799],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV0"}},{minmax:[800,899],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV1",JunctionV1:{_enum:{Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}}}},{minmax:[900,null],types:{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]}}}]},moonbeam:{alias:{assetManager:{Balance:"TAssetBalance"},xTokens:{Balance:"TAssetBalance"}},rpc:{txpool:{content:{aliasSection:"txpool",description:"The detailed information regarding Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultContent"},inspect:{aliasSection:"txpool",description:"Summarized information of the Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultInspect"},status:{aliasSection:"txpool",description:"The number of Ethereum transaction that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultStatus"}},trace:{filter:{aliasSection:"trace",description:"Trace Filter",params:[{name:"filter",type:"FilterRequest"}],type:"Result>"}},debug:{traceTransaction:{aliasSection:"debug",description:"Debug trace tx",params:[{name:"transaction_hash",type:"H256"}],type:"Result>"}},xcm:{injectDownwardMessage:{description:"Inject a downward message from the relay chain.",params:[{name:"message",type:"Vec"}],type:"Result<()>"},injectHrmpMessage:{description:"Inject an HRMP message from a dedicated channel from a sibling parachain",params:[{name:"sender",type:"ParaId"},{name:"message",type:"Vec"}],type:"Result<()>"}},moon:{isBlockFinalized:{description:"Returns whether an Ethereum block is finalized",params:[{name:"blockHash",type:"Hash"}],type:"bool"},isTxFinalized:{description:"Returns whether an Ethereum transaction is finalized",params:[{name:"txHash",type:"Hash"}],type:"bool"}}},instances:{council:["councilCollective"],technicalCommittee:["techCommitteeCollective","openTechCommitteeCollective"]},types:[{minmax:[0,4],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",RefCount:"u8",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[5,5],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[6,19],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"ValidatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"}}},{minmax:[19,35],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"}}},{minmax:[36,36],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId"}},{minmax:[37,42],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"}}},{minmax:[43,154],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"}}},{minmax:[155,199],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"}}},{minmax:[200,399],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[400,599],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[600,799],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV0"}},{minmax:[800,899],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV1",JunctionV1:{_enum:{Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}}}},{minmax:[900,null],types:{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]}}}]},moonriver:{alias:{assetManager:{Balance:"TAssetBalance"},xTokens:{Balance:"TAssetBalance"}},rpc:{txpool:{content:{aliasSection:"txpool",description:"The detailed information regarding Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultContent"},inspect:{aliasSection:"txpool",description:"Summarized information of the Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultInspect"},status:{aliasSection:"txpool",description:"The number of Ethereum transaction that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultStatus"}},trace:{filter:{aliasSection:"trace",description:"Trace Filter",params:[{name:"filter",type:"FilterRequest"}],type:"Result>"}},debug:{traceTransaction:{aliasSection:"debug",description:"Debug trace tx",params:[{name:"transaction_hash",type:"H256"}],type:"Result>"}},xcm:{injectDownwardMessage:{description:"Inject a downward message from the relay chain.",params:[{name:"message",type:"Vec"}],type:"Result<()>"},injectHrmpMessage:{description:"Inject an HRMP message from a dedicated channel from a sibling parachain",params:[{name:"sender",type:"ParaId"},{name:"message",type:"Vec"}],type:"Result<()>"}},moon:{isBlockFinalized:{description:"Returns whether an Ethereum block is finalized",params:[{name:"blockHash",type:"Hash"}],type:"bool"},isTxFinalized:{description:"Returns whether an Ethereum transaction is finalized",params:[{name:"txHash",type:"Hash"}],type:"bool"}}},instances:{council:["councilCollective"],technicalCommittee:["techCommitteeCollective","openTechCommitteeCollective"]},types:[{minmax:[0,4],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",RefCount:"u8",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[5,5],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[6,19],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"ValidatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"}}},{minmax:[19,35],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"}}},{minmax:[36,36],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId"}},{minmax:[37,42],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"}}},{minmax:[43,154],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"}}},{minmax:[155,199],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"}}},{minmax:[200,399],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[400,599],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[600,799],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV0"}},{minmax:[800,899],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV1",JunctionV1:{_enum:{Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}}}},{minmax:[900,null],types:{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]}}}]},moonshadow:{alias:{assetManager:{Balance:"TAssetBalance"},xTokens:{Balance:"TAssetBalance"}},rpc:{txpool:{content:{aliasSection:"txpool",description:"The detailed information regarding Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultContent"},inspect:{aliasSection:"txpool",description:"Summarized information of the Ethereum transactions that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultInspect"},status:{aliasSection:"txpool",description:"The number of Ethereum transaction that are currently in the Substrate transaction pool.",params:[],type:"TxPoolResultStatus"}},trace:{filter:{aliasSection:"trace",description:"Trace Filter",params:[{name:"filter",type:"FilterRequest"}],type:"Result>"}},debug:{traceTransaction:{aliasSection:"debug",description:"Debug trace tx",params:[{name:"transaction_hash",type:"H256"}],type:"Result>"}},xcm:{injectDownwardMessage:{description:"Inject a downward message from the relay chain.",params:[{name:"message",type:"Vec"}],type:"Result<()>"},injectHrmpMessage:{description:"Inject an HRMP message from a dedicated channel from a sibling parachain",params:[{name:"sender",type:"ParaId"},{name:"message",type:"Vec"}],type:"Result<()>"}},moon:{isBlockFinalized:{description:"Returns whether an Ethereum block is finalized",params:[{name:"blockHash",type:"Hash"}],type:"bool"},isTxFinalized:{description:"Returns whether an Ethereum transaction is finalized",params:[{name:"txHash",type:"Hash"}],type:"bool"}}},instances:{council:["councilCollective"],technicalCommittee:["techCommitteeCollective","openTechCommitteeCollective"]},types:[{minmax:[0,4],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",RefCount:"u8",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[5,5],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8"}},{minmax:[6,19],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"ValidatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},ValidatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"}}},{minmax:[19,35],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"}}},{minmax:[36,36],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId"}},{minmax:[37,42],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"}}},{minmax:[43,154],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToBottom:"Null",AddedToTop:"Balance"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"}}},{minmax:[155,199],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"}}},{minmax:[200,399],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[400,599],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"}}},{minmax:[600,799],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV0"}},{minmax:[800,899],types:{AccountId:"EthereumAccountId",Address:"AccountId",Balance:"u128",LookupSource:"AccountId",Account:{nonce:"U256",balance:"u128"},EthTransaction:"LegacyTransaction",DispatchErrorModule:"DispatchErrorModuleU8",ExtrinsicSignature:"EthereumSignature",RoundIndex:"u32",Candidate:{id:"AccountId",fee:"Perbill",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},Nominator:{nominations:"Vec",total:"Balance"},Bond:{owner:"AccountId",amount:"Balance"},TxPoolResultContent:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultInspect:{pending:"HashMap>",queued:"HashMap>"},TxPoolResultStatus:{pending:"U256",queued:"U256"},Summary:"Bytes",PoolTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"U256",gas:"U256",input:"Bytes"},AccountInfo:"AccountInfoWithTripleRefCount",CollatorStatus:{_enum:{Active:"Null",Idle:"Null",Leaving:"RoundIndex"}},Range:"RangeBalance",RangeBalance:{min:"Balance",ideal:"Balance",max:"Balance"},RangePerbill:{min:"Perbill",ideal:"Perbill",max:"Perbill"},InflationInfo:{expect:"RangeBalance",annual:"RangePerbill",round:"RangePerbill"},OrderedSet:"Vec",Collator:{id:"AccountId",bond:"Balance",nominators:"Vec",total:"Balance",state:"CollatorStatus"},CollatorSnapshot:{bond:"Balance",nominators:"Vec",total:"Balance"},SystemInherentData:{validationData:"PersistedValidationData",relayChain_state:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap>"},RoundInfo:{current:"RoundIndex",first:"BlockNumber",length:"u32"},AuthorId:"AccountId32",AccountId32:"H256",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]},RelayChainAccountId:"AccountId32",RewardInfo:{totalReward:"Balance",claimedReward:"Balance",contributedRelayAddresses:"Vec"},Collator2:{id:"AccountId",bond:"Balance",nominators:"Vec",topNominators:"Vec",bottomNominators:"Vec",totalCounted:"Balance",totalBacking:"Balance",state:"CollatorStatus"},NominatorAdded:{_enum:{AddedToTop:"Balance",AddedToBottom:"Null"}},RegistrationInfo:{account:"AccountId",deposit:"Balance"},ParachainBondConfig:{account:"AccountId",percent:"Percent"},EthereumSignature:{r:"H256",s:"H256",v:"U8"},NominatorStatus:{_enum:{Active:"Null",Leaving:"RoundIndex"}},Nominator2:{nominations:"Vec",revocations:"Vec",total:"Balance",scheduledRevocationsCount:"u32",scheduledRevocationsTotal:"Balance",status:"NominatorStatus"},ExitQ:{candidates:"Vec",nominatorsLeaving:"Vec",candidateSchedule:"Vec<(AccountId, RoundIndex)>",nominatorSchedule:"Vec<(AccountId, Option, RoundIndex)>"},AssetType:{_enum:{Xcm:"MultiLocation"}},AssetId:"u128",TAssetBalance:"u128",ENUM_AccountId32:{network:"NetworkId",id:"[u8; 32]"},ENUM_AccountKey20:{network:"NetworkId",key:"[u8; 20]"},ENUM_AccountIndex64:{network:"NetworkId",index:"Compact"},ENUM_Plurality:{id:"BodyId",part:"BodyPart"},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}},CurrencyId:{_enum:{SelfReserve:"Null",OtherReserve:"u128"}},AssetRegistrarMetadata:{name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},VestingBlockNumber:"u32",MultiLocation:"MultiLocationV1",JunctionV1:{_enum:{Parachain:"Compact",AccountId32:"ENUM_AccountId32",AccountIndex64:"ENUM_AccountIndex64",AccountKey20:"ENUM_AccountKey20",PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:"ENUM_Plurality"}}}},{minmax:[900,null],types:{ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","CancelProxy","Balances","AuthorMapping"]}}}]},muse:{types:[{minmax:[0,null],types:{AccountId:"EthereumAccountId",Address:"AccountId",LookupSource:"AccountId"}}]},"mybank.network Testnet":{types:[{minmax:[0,null],types:{Token:"u8",DEXShare:"(u8, u8)",CurrencyId:{_enum:{Token:"Token",DEXShare:"DEXShare"}},TradingPair:"(CurrencyId, CurrencyId)",CurrencyIds:{_:"Vec"},TradingPairProvisionParameters:{min_contribution:"(Balance, Balance)",target_provision:"(Balance, Balance)",accumulated_provision:"(Balance, Balance)",not_before:"BlockNumber"},TradingPairStatus:{_enum:{NotEnabled:null,Provisioning:"TradingPairProvisionParameters",Enabled:null}},PoolId:"CurrencyId",Price:"FixedU128",OracleKey:"u8",OracleValue:"FixedU128",Amount:"i128",Balance:"u128",Ratio:"FixedU128",InterestInfo:{critical_point:"Ratio",base:"Ratio",slope_1:"Ratio",slope_2:"Ratio"},AssetPoolInfo:{maximum_total_debit_ratio:"Ratio",minimum_deposit:"Balance",minimum_debit:"Balance",health_ratio:"Ratio",total_deposit:"Balance",total_debit:"Balance",deposit_rate:"Ratio",debit_rate:"Ratio",deposit_apy:"Ratio",debit_apy:"Ratio",reserve_factor:"Ratio",interest_info:"InterestInfo"},LoanInfo:{deposit:"Balance",debit:"Balance"},TimestampedValue:{value:"OracleValue",timestamp:"u64"},PoolInfo:{total_shares:"Compact",total_rewards:"Compact",total_withdrawn_rewards:"Compact"}}}]},mythos:{types:[{minmax:[0,null],types:{AccountId:"EthereumAccountId",Address:"AccountId",LookupSource:"AccountId"}}]},neatcoin:{types:[{minmax:[0,null],types:{Label:"Vec",Name:"Vec