From 781663ea79781e84894bcb4f137f275dba209f7a Mon Sep 17 00:00:00 2001 From: dominhquang Date: Thu, 5 Sep 2024 15:45:54 +0700 Subject: [PATCH 1/3] [Issue-1781] Update web-runner v1.2.28 --- html/DevModeWeb.bundle/site/index.html | 2 +- .../site/locales/en/translation.json | 11 +- .../site/locales/ja/translation.json | 11 +- .../site/locales/ru/translation.json | 11 +- .../site/locales/vi/translation.json | 11 +- .../site/locales/zh/translation.json | 11 +- ....js => web-runner-f253b557cb9fdd018b95.js} | 4 +- html/Web.bundle/site/index.html | 2 +- .../site/locales/en/translation.json | 11 +- .../site/locales/ja/translation.json | 11 +- .../site/locales/ru/translation.json | 11 +- .../site/locales/vi/translation.json | 11 +- .../site/locales/zh/translation.json | 11 +- ....js => web-runner-dbeee7aa0f69e421c437.js} | 4 +- ios/Podfile.lock | 4 +- package.json | 14 +- ... @subwallet+extension-base+1.2.26-0.patch} | 4 +- src/screens/Home/Crypto/index.tsx | 9 +- yarn.lock | 301 +++++++++++++----- 19 files changed, 329 insertions(+), 125 deletions(-) rename html/DevModeWeb.bundle/site/{web-runner-c9f2c5a0c4e2cc835ad3.js => web-runner-f253b557cb9fdd018b95.js} (52%) rename html/Web.bundle/site/{web-runner-4fa0c4a3ab6f3552b853.js => web-runner-dbeee7aa0f69e421c437.js} (52%) rename patches/{@subwallet+extension-base+1.2.10-0.patch => @subwallet+extension-base+1.2.26-0.patch} (98%) diff --git a/html/DevModeWeb.bundle/site/index.html b/html/DevModeWeb.bundle/site/index.html index a03c2d396..cba95ab7b 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/locales/en/translation.json b/html/DevModeWeb.bundle/site/locales/en/translation.json index c56057d2b..66e40807f 100644 --- a/html/DevModeWeb.bundle/site/locales/en/translation.json +++ b/html/DevModeWeb.bundle/site/locales/en/translation.json @@ -1273,7 +1273,6 @@ "{{number}} {{account}} connected": "", "Re-enable the network or change RPC on the extension and try again": "", "Unstable network connection": "", - "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": "", "Network not supported": "", "Enter recipient address and try again": "", "Recipient address not found": "", @@ -1288,11 +1287,17 @@ "Insufficient balance on the sender address. Top up your balance and try again": "", "Unable to sign transaction": "", "An error occurred when signing this request. Try again or contact support at agent@subwallet.app": "", - "Unable to sign message": "", "This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app": "", "Method not supported": "", "The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again": "", "Do you still want to get the address?": "", "Ledger {{ledgerApp}} accounts are NOT compatible with {{networkName}} network. Tokens will get stuck (i.e., can’t be transferred out or staked) when sent to this account type.": "", - "Ledger {{ledgerApp}} address is not supported for this transfer": "" + "Ledger {{ledgerApp}} address is not supported for this transfer": "", + "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": "", + "An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app": "", + "You’re dual staking via both direct nomination and nomination pool, which": "", + "will not be supported": "", + "from one of the methods to avoid issues": "", + "Read update": "", + "Continue staking?": "" } diff --git a/html/DevModeWeb.bundle/site/locales/ja/translation.json b/html/DevModeWeb.bundle/site/locales/ja/translation.json index 4d8aaf113..fa80dde19 100644 --- a/html/DevModeWeb.bundle/site/locales/ja/translation.json +++ b/html/DevModeWeb.bundle/site/locales/ja/translation.json @@ -1273,7 +1273,6 @@ "{{number}} {{account}} connected": "", "Re-enable the network or change RPC on the extension and try again": "", "Unstable network connection": "", - "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": "", "Network not supported": "", "Enter recipient address and try again": "", "Recipient address not found": "", @@ -1288,11 +1287,17 @@ "Insufficient balance on the sender address. Top up your balance and try again": "", "Unable to sign transaction": "", "An error occurred when signing this request. Try again or contact support at agent@subwallet.app": "", - "Unable to sign message": "", "This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app": "", "Method not supported": "", "The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again": "", "Do you still want to get the address?": "", "Ledger {{ledgerApp}} accounts are NOT compatible with {{networkName}} network. Tokens will get stuck (i.e., can’t be transferred out or staked) when sent to this account type.": "", - "Ledger {{ledgerApp}} address is not supported for this transfer": "" + "Ledger {{ledgerApp}} address is not supported for this transfer": "", + "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": "", + "An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app": "", + "You’re dual staking via both direct nomination and nomination pool, which": "", + "will not be supported": "", + "from one of the methods to avoid issues": "", + "Read update": "", + "Continue staking?": "" } diff --git a/html/DevModeWeb.bundle/site/locales/ru/translation.json b/html/DevModeWeb.bundle/site/locales/ru/translation.json index fd21c0575..cdf8cb9a7 100644 --- a/html/DevModeWeb.bundle/site/locales/ru/translation.json +++ b/html/DevModeWeb.bundle/site/locales/ru/translation.json @@ -1273,7 +1273,6 @@ "{{number}} {{account}} connected": "", "Re-enable the network or change RPC on the extension and try again": "", "Unstable network connection": "", - "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": "", "Network not supported": "", "Enter recipient address and try again": "", "Recipient address not found": "", @@ -1288,11 +1287,17 @@ "Insufficient balance on the sender address. Top up your balance and try again": "", "Unable to sign transaction": "", "An error occurred when signing this request. Try again or contact support at agent@subwallet.app": "", - "Unable to sign message": "", "This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app": "", "Method not supported": "", "The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again": "", "Do you still want to get the address?": "", "Ledger {{ledgerApp}} accounts are NOT compatible with {{networkName}} network. Tokens will get stuck (i.e., can’t be transferred out or staked) when sent to this account type.": "", - "Ledger {{ledgerApp}} address is not supported for this transfer": "" + "Ledger {{ledgerApp}} address is not supported for this transfer": "", + "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": "", + "An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app": "", + "You’re dual staking via both direct nomination and nomination pool, which": "", + "will not be supported": "", + "from one of the methods to avoid issues": "", + "Read update": "", + "Continue staking?": "" } diff --git a/html/DevModeWeb.bundle/site/locales/vi/translation.json b/html/DevModeWeb.bundle/site/locales/vi/translation.json index e93325a23..15f2abbc7 100644 --- a/html/DevModeWeb.bundle/site/locales/vi/translation.json +++ b/html/DevModeWeb.bundle/site/locales/vi/translation.json @@ -1273,7 +1273,6 @@ "{{number}} {{account}} connected": "", "Re-enable the network or change RPC on the extension and try again": "", "Unstable network connection": "", - "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": "", "Network not supported": "", "Enter recipient address and try again": "", "Recipient address not found": "", @@ -1288,11 +1287,17 @@ "Insufficient balance on the sender address. Top up your balance and try again": "", "Unable to sign transaction": "", "An error occurred when signing this request. Try again or contact support at agent@subwallet.app": "", - "Unable to sign message": "", "This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app": "", "Method not supported": "", "The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again": "", "Do you still want to get the address?": "", "Ledger {{ledgerApp}} accounts are NOT compatible with {{networkName}} network. Tokens will get stuck (i.e., can’t be transferred out or staked) when sent to this account type.": "", - "Ledger {{ledgerApp}} address is not supported for this transfer": "" + "Ledger {{ledgerApp}} address is not supported for this transfer": "", + "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": "", + "An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app": "", + "You’re dual staking via both direct nomination and nomination pool, which": "", + "will not be supported": "", + "from one of the methods to avoid issues": "", + "Read update": "", + "Continue staking?": "" } diff --git a/html/DevModeWeb.bundle/site/locales/zh/translation.json b/html/DevModeWeb.bundle/site/locales/zh/translation.json index 4cdad4ac4..b1133b48a 100644 --- a/html/DevModeWeb.bundle/site/locales/zh/translation.json +++ b/html/DevModeWeb.bundle/site/locales/zh/translation.json @@ -1273,7 +1273,6 @@ "{{number}} {{account}} connected": "", "Re-enable the network or change RPC on the extension and try again": "", "Unstable network connection": "", - "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": "", "Network not supported": "", "Enter recipient address and try again": "", "Recipient address not found": "", @@ -1288,11 +1287,17 @@ "Insufficient balance on the sender address. Top up your balance and try again": "", "Unable to sign transaction": "", "An error occurred when signing this request. Try again or contact support at agent@subwallet.app": "", - "Unable to sign message": "", "This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app": "", "Method not supported": "", "The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again": "", "Do you still want to get the address?": "", "Ledger {{ledgerApp}} accounts are NOT compatible with {{networkName}} network. Tokens will get stuck (i.e., can’t be transferred out or staked) when sent to this account type.": "", - "Ledger {{ledgerApp}} address is not supported for this transfer": "" + "Ledger {{ledgerApp}} address is not supported for this transfer": "", + "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": "", + "An error occurred when attempting to sign this request. Contact support at email: agent@subwallet.app": "", + "You’re dual staking via both direct nomination and nomination pool, which": "", + "will not be supported": "", + "from one of the methods to avoid issues": "", + "Read update": "", + "Continue staking?": "" } diff --git a/html/DevModeWeb.bundle/site/web-runner-c9f2c5a0c4e2cc835ad3.js b/html/DevModeWeb.bundle/site/web-runner-f253b557cb9fdd018b95.js similarity index 52% rename from html/DevModeWeb.bundle/site/web-runner-c9f2c5a0c4e2cc835ad3.js rename to html/DevModeWeb.bundle/site/web-runner-f253b557cb9fdd018b95.js index a94110171..0622e95b6 100644 --- a/html/DevModeWeb.bundle/site/web-runner-c9f2c5a0c4e2cc835ad3.js +++ b/html/DevModeWeb.bundle/site/web-runner-f253b557cb9fdd018b95.js @@ -1,2 +1,2 @@ -/*! For license information please see web-runner-c9f2c5a0c4e2cc835ad3.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(36846));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]"}}}},36846:(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(53363),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(66379)),S=a(n(21370)),x=a(n(65633)),k=a(n(67140)),C=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:R}}t.typesAlias=R;const D={spec:{acala:N(k.default),mandala:N(C.default),karura:N(T.default)}};t.typesBundle=D;const V={spec:{acala:N(k.default),mandala:N(C.default),karura:N(T.default)}};t.typesBundleForPolkadot=V;const L=w.signedExtensions;t.signedExtensions=L},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},66379:(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"}}}},65633:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0,t.default={rpc:{},types:{ExchangeRate:"FixedU128",Rate:"FixedU128",Ratio:"FixedU128",Price:"FixedU128"}}},99694:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{S:()=>g,SQ:()=>m,W5:()=>b,Zf:()=>v,lI:()=>r,so:()=>y}),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}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;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)}}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.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 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_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 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_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 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_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)}}h.decode()},70459:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{$E:()=>y,Fi:()=>T,GD:()=>w,GX:()=>v,Nu:()=>g,QY:()=>A,S:()=>b,S6:()=>x,SQ:()=>O,W5:()=>_,WC:()=>m,_D:()=>k,aH:()=>S,bj:()=>E,cO:()=>P,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)>>>0;return o().subarray(a,a+n.length).set(n),i=n.length,a}let a=e.length,r=t(a)>>>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)>>>0;const t=o().subarray(r+l,r+a);l+=u(e,t).written}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)}}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,k=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),C=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),M=i;a.calculate_liquidity_out(g,b,v,_,A,w,I,S,x,k,C,T,E,P,O,B,M);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)}}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,k=l(s,a.__wbindgen_malloc,a.__wbindgen_realloc),C=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),M=i;a.calculate_liquidity_lrna_out(g,b,v,_,A,w,I,S,x,k,C,T,E,P,O,B,M);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)}}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),k=i,C=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,M=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),R=i,N=l(d,a.__wbindgen_malloc,a.__wbindgen_realloc),D=i;a.calculate_out_given_in(b,v,_,A,w,I,S,x,k,C,T,E,P,O,B,M,R,N,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)}}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)}}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),k=i,C=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,M=l(u,a.__wbindgen_malloc,a.__wbindgen_realloc),R=i,N=l(d,a.__wbindgen_malloc,a.__wbindgen_realloc),D=i;a.calculate_in_given_out(b,v,_,A,w,I,S,x,k,C,T,E,P,O,B,M,R,N,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)}}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)}}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)}}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)}}function S(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_cap_difference(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)}}function x(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 k(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)}}function C(e){return 0!==a.is_sell_allowed(e)}function T(e){return 0!==a.is_buy_allowed(e)}function E(e){return 0!==a.is_add_liquidity_allowed(e)}function P(e){return 0!==a.is_remove_liquidity_allowed(e)}function O(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)}}h.decode()},75302:(e,t,n)=>{"use strict";let a;function r(e){a=e}n.d(t,{M8:()=>b,NI:()=>_,NL:()=>w,S:()=>y,SQ:()=>m,W5:()=>g,WC:()=>v,Xy:()=>I,jm:()=>A,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}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;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)}}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_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 g(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 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_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 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_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 _(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 A(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 w(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),r}finally{a.__wbindgen_add_to_stack_pointer(16)}var i,s}function I(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)}}h.decode()},58732:(e,t,n)=>{"use strict";n.a(e,(async(a,r)=>{try{n.d(t,{S:()=>v,SQ:()=>g,W5:()=>_,WC:()=>w,Wu:()=>I,bd:()=>S,s6:()=>A,so:()=>b});var i=n(73644);e=n.hmd(e);var s=a([i]);i=(s.then?(await s)():s)[0];let o=0,c=null;function u(){return null!==c&&c.buffer===i.memory.buffer||(c=new Uint8Array(i.memory.buffer)),c}let l=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const d="function"==typeof l.encodeInto?function(e,t){return l.encodeInto(e,t)}:function(e,t){const n=l.encode(e);return t.set(n),{read:e.length,written:n.length}};function p(e,t,n){if(void 0===n){const n=l.encode(e),a=t(n.length);return u().subarray(a,a+n.length).set(n),o=n.length,a}let a=e.length,r=t(a);const i=u();let s=0;for(;s127)break;i[r+s]=t}if(s!==a){0!==s&&(e=e.slice(s)),r=n(r,a,a=s+3*e.length);const t=u().subarray(r+s,r+a);s+=d(e,t).written}return o=s,r}let h=null;function f(){return null!==h&&h.buffer===i.memory.buffer||(h=new Int32Array(i.memory.buffer)),h}let m=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function y(e,t){return m.decode(u().subarray(e,e+t))}function g(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o;i.calculate_pool_trade_fee(s,c,u,t,n);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function b(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o,l=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),d=o,h=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),m=o;i.get_spot_price(s,c,u,l,d,h,m);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function v(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o,l=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),d=o,h=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),m=o;i.calculate_out_given_in(s,c,u,l,d,h,m);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function _(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o,l=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),d=o,h=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),m=o;i.calculate_in_given_out(s,c,u,l,d,h,m);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function A(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o,l=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),d=o,h=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),m=o;i.calculate_liquidity_in(s,c,u,l,d,h,m);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function w(e,t,n){try{const s=i.__wbindgen_add_to_stack_pointer(-16),c=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),u=o,l=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),d=o,h=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),m=o;i.calculate_shares(s,c,u,l,d,h,m);var a=f()[s/4+0],r=f()[s/4+1];return y(a,r)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(a,r)}}function I(e,t,n,a){try{const c=i.__wbindgen_add_to_stack_pointer(-16),u=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),l=o,d=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),h=o,m=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),g=o,b=p(a,i.__wbindgen_malloc,i.__wbindgen_realloc),v=o;i.calculate_liquidity_out_asset_a(c,u,l,d,h,m,g,b,v);var r=f()[c/4+0],s=f()[c/4+1];return y(r,s)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(r,s)}}function S(e,t,n,a){try{const c=i.__wbindgen_add_to_stack_pointer(-16),u=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),l=o,d=p(t,i.__wbindgen_malloc,i.__wbindgen_realloc),h=o,m=p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),g=o,b=p(a,i.__wbindgen_malloc,i.__wbindgen_realloc),v=o;i.calculate_liquidity_out_asset_b(c,u,l,d,h,m,g,b,v);var r=f()[c/4+0],s=f()[c/4+1];return y(r,s)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_free(r,s)}}m.decode(),r()}catch(x){r(x)}}))},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}},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(53363),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"}}},53363:(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";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,k=l,C=d,T=p,E=h,P=f,O=m,B=y,M=g,R=b,N=v,D=_,V=0;V>>16|M<<16)|0)>>>20|x<<12,k=(k^=P=P+(R=(R^=w=w+k|0)>>>16|R<<16)|0)>>>20|k<<12,C=(C^=O=O+(N=(N^=I=I+C|0)>>>16|N<<16)|0)>>>20|C<<12,T=(T^=B=B+(D=(D^=S=S+T|0)>>>16|D<<16)|0)>>>20|T<<12,C=(C^=O=O+(N=(N^=I=I+C|0)>>>24|N<<8)|0)>>>25|C<<7,T=(T^=B=B+(D=(D^=S=S+T|0)>>>24|D<<8)|0)>>>25|T<<7,k=(k^=P=P+(R=(R^=w=w+k|0)>>>24|R<<8)|0)>>>25|k<<7,x=(x^=E=E+(M=(M^=A=A+x|0)>>>24|M<<8)|0)>>>25|x<<7,k=(k^=O=O+(D=(D^=A=A+k|0)>>>16|D<<16)|0)>>>20|k<<12,C=(C^=B=B+(M=(M^=w=w+C|0)>>>16|M<<16)|0)>>>20|C<<12,T=(T^=E=E+(R=(R^=I=I+T|0)>>>16|R<<16)|0)>>>20|T<<12,x=(x^=P=P+(N=(N^=S=S+x|0)>>>16|N<<16)|0)>>>20|x<<12,T=(T^=E=E+(R=(R^=I=I+T|0)>>>24|R<<8)|0)>>>25|T<<7,x=(x^=P=P+(N=(N^=S=S+x|0)>>>24|N<<8)|0)>>>25|x<<7,C=(C^=B=B+(M=(M^=w=w+C|0)>>>24|M<<8)|0)>>>25|C<<7,k=(k^=O=O+(D=(D^=A=A+k|0)>>>24|D<<8)|0)>>>25|k<<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(k+l|0,e,20),a.writeUint32LE(C+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(M+g|0,e,48),a.writeUint32LE(R+b|0,e,52),a.writeUint32LE(N+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,k=0,C=0,T=0,E=0,P=0,O=0,B=0,M=0,R=0,N=0,D=n[0],V=n[1],L=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*V,o+=a*L,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*V,c+=a*L,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*V,u+=a*L,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*V,l+=a*L,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*V,d+=a*L,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*V,p+=a*L,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*V,h+=a*L,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,k+=a*Y,a=t[7],p+=a*D,h+=a*V,f+=a*L,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,k+=a*J,C+=a*Y,a=t[8],h+=a*D,f+=a*V,m+=a*L,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,k+=a*Z,C+=a*J,T+=a*Y,a=t[9],f+=a*D,m+=a*V,y+=a*L,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,k+=a*X,C+=a*Z,T+=a*J,E+=a*Y,a=t[10],m+=a*D,y+=a*V,g+=a*L,b+=a*U,v+=a*H,_+=a*F,A+=a*K,w+=a*j,I+=a*q,S+=a*z,x+=a*G,k+=a*W,C+=a*X,T+=a*Z,E+=a*J,P+=a*Y,a=t[11],y+=a*D,g+=a*V,b+=a*L,v+=a*U,_+=a*H,A+=a*F,w+=a*K,I+=a*j,S+=a*q,x+=a*z,k+=a*G,C+=a*W,T+=a*X,E+=a*Z,P+=a*J,O+=a*Y,a=t[12],g+=a*D,b+=a*V,v+=a*L,_+=a*U,A+=a*H,w+=a*F,I+=a*K,S+=a*j,x+=a*q,k+=a*z,C+=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*V,_+=a*L,A+=a*U,w+=a*H,I+=a*F,S+=a*K,x+=a*j,k+=a*q,C+=a*z,T+=a*G,E+=a*W,P+=a*X,O+=a*Z,B+=a*J,M+=a*Y,a=t[14],v+=a*D,_+=a*V,A+=a*L,w+=a*U,I+=a*H,S+=a*F,x+=a*K,k+=a*j,C+=a*q,T+=a*z,E+=a*G,P+=a*W,O+=a*X,B+=a*Z,M+=a*J,R+=a*Y,a=t[15],_+=a*D,A+=a*V,w+=a*L,I+=a*U,S+=a*H,x+=a*F,k+=a*K,C+=a*j,T+=a*q,E+=a*z,P+=a*G,O+=a*W,B+=a*X,M+=a*Z,R+=a*J,N+=a*Y,i+=38*A,s+=38*w,o+=38*I,c+=38*S,u+=38*x,l+=38*k,d+=38*C,p+=38*T,h+=38*E,f+=38*P,m+=38*O,y+=38*B,g+=38*M,b+=38*R,v+=38*N,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 k=e[t+4]|e[t+5]<<8;s+=8191&(x>>>10|k<<6);var C=e[t+6]|e[t+7]<<8;o+=8191&(k>>>7|C<<9);var T=e[t+8]|e[t+9]<<8;c+=8191&(C>>>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,M=B;M+=r*f,M+=i*(5*I),M+=s*(5*w),M+=o*(5*A),B=(M+=c*(5*_))>>>13,M&=8191,M+=u*(5*v),M+=l*(5*b),M+=d*(5*g),M+=(p+=8191&(P>>>8|O<<8))*(5*y);var R=B+=(M+=(h+=O>>>5|a)*(5*m))>>>13;R+=r*m,R+=i*f,R+=s*(5*I),R+=o*(5*w),B=(R+=c*(5*A))>>>13,R&=8191,R+=u*(5*_),R+=l*(5*v),R+=d*(5*b),R+=p*(5*g),B+=(R+=h*(5*y))>>>13,R&=8191;var N=B;N+=r*y,N+=i*m,N+=s*f,N+=o*(5*I),B=(N+=c*(5*w))>>>13,N&=8191,N+=u*(5*A),N+=l*(5*_),N+=d*(5*v),N+=p*(5*b);var D=B+=(N+=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 V=B+=(D+=h*(5*b))>>>13;V+=r*b,V+=i*g,V+=s*y,V+=o*m,B=(V+=c*f)>>>13,V&=8191,V+=u*(5*I),V+=l*(5*w),V+=d*(5*A),V+=p*(5*_);var L=B+=(V+=h*(5*v))>>>13;L+=r*v,L+=i*b,L+=s*g,L+=o*y,B=(L+=c*m)>>>13,L&=8191,L+=u*f,L+=l*(5*I),L+=d*(5*w),L+=p*(5*A);var U=B+=(L+=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=M=8191&(B=(B=((B+=(K+=h*f)>>>13)<<2)+B|0)+(M&=8191)|0),i=R+=B>>>=13,s=N&=8191,o=D&=8191,c=V&=8191,u=L&=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],k=r[1],C=r[2],T=r[3],E=r[4],P=r[5],O=r[6],B=r[7];c>=128;){for(var M=0;M<16;M++){var R=8*M+o;e[M]=a.readUint32BE(i,R),t[M]=a.readUint32BE(i,R+4)}for(M=0;M<80;M++){var N,D,V=g,L=b,U=v,H=_,F=A,K=w,j=I,q=x,z=k,G=C,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*M],h+=65535&(l=s[2*M+1]),f+=l>>>16,m+=65535&u,y+=u>>>16,u=e[M%16],f+=(l=t[M%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&k^x&C^k&C)>>>16,m+=65535&(u=g&b^g&v^b&v),y+=u>>>16,N=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=V,v=L,_=U,A=H=65535&(m+=(f+=(h+=65535&l)>>>16)>>>16)|(y+=m>>>16)<<16,w=F,I=K,S=j,g=N,k=q,C=z,T=G,E=W=65535&h|f<<16,P=X,O=Z,B=J,x=D,M%16==15)for(R=0;R<16;R++)u=e[R],h=65535&(l=t[R]),f=l>>>16,m=65535&u,y=u>>>16,u=e[(R+9)%16],h+=65535&(l=t[(R+9)%16]),f+=l>>>16,m+=65535&u,y+=u>>>16,d=e[(R+1)%16],h+=65535&(l=((p=t[(R+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[(R+14)%16],f+=(l=((p=t[(R+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[R]=65535&m|y<<16,t[R]=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=k),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]=k=65535&h|f<<16,h=65535&(l=C),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]=C=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;t{"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:()=>k,__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 k(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:()=>{},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:()=>k,__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 k(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:()=>Ri,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:()=>Vr,GuA:()=>Vi,sc_:()=>Gr,xkc:()=>Dr,VBM:()=>Xr,aa1:()=>vi,n6V:()=>bi,Hjj:()=>Li,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:()=>Lr});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={}))M.call(t,n)&&N(e,n,t[n]);if(B)for(var n of B(t))R.call(t,n)&&N(e,n,t[n]);return e};const V="ReactNative",L={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},U="js";function H(){return typeof k<"u"&&typeof k.versions<"u"&&typeof k.versions.node<"u"}function F(){return!(0,y.getDocument)()&&!!(0,y.getNavigator)()&&navigator.product===V}function K(){return!H()&&!!(0,y.getNavigator)()&&!!(0,y.getDocument)()}function j(){return F()?L.reactNative:H()?L.node:K()?L.browser:L.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()===L.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===L.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===L.browser?s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===L.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 k&&k.versions&&k.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,k,C,T,E,P,O,B,M,R,N,D,V,L,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,N=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,V=e[14]<<6|e[15]>>>26,L=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,M=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,k=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,C=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^~C&E,e[11]=k^~T&P,e[20]=N^~V&U,e[21]=D^~L&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]=C^~E&O,e[13]=T^~P&B,e[22]=V^~U&F,e[23]=L^~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&M,e[15]=P^~B&R,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^~M&x,e[17]=B^~R&k,e[26]=F^~j&N,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]=M^~x&C,e[19]=R^~k&T,e[28]=j^~N&V,e[29]=q^~D&L,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 ke(e){return"number"==typeof e&&e==e&&e%1==0}function Ce(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!ke(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 Me(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 Re(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)||Ce(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=Me(t.r,32):Ie.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&Ee(t.s)?t.s=Me(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=Me(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 Ne(e){return"0x"+pe.keccak_256(Te(e))}var De={exports:{}},Ve=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:Ve.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],k=8191&x,C=x>>>13,T=0|s[6],E=8191&T,P=T>>>13,O=0|s[7],B=8191&O,M=O>>>13,R=0|s[8],N=8191&R,D=R>>>13,V=0|s[9],L=8191&V,U=V>>>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(k,F),r=(r=Math.imul(k,K))+Math.imul(C,F)|0,i=Math.imul(C,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(k,q)|0,r=(r=r+Math.imul(k,z)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,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(M,F)|0,i=Math.imul(M,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(k,W)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(C,W)|0,i=i+Math.imul(C,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(N,F),r=(r=Math.imul(N,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(M,q)|0,i=i+Math.imul(M,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(k,J)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,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(L,F),r=(r=Math.imul(L,K))+Math.imul(U,F)|0,i=Math.imul(U,K),a=a+Math.imul(N,q)|0,r=(r=r+Math.imul(N,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(M,W)|0,i=i+Math.imul(M,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(k,$)|0,r=(r=r+Math.imul(k,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,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(L,q),r=(r=Math.imul(L,z))+Math.imul(U,q)|0,i=Math.imul(U,z),a=a+Math.imul(N,W)|0,r=(r=r+Math.imul(N,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(M,J)|0,i=i+Math.imul(M,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(k,ne)|0,r=(r=r+Math.imul(k,ae)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,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 ke=(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)+(ke>>>26)|0,ke&=67108863,a=Math.imul(L,W),r=(r=Math.imul(L,X))+Math.imul(U,W)|0,i=Math.imul(U,X),a=a+Math.imul(N,J)|0,r=(r=r+Math.imul(N,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(M,$)|0,i=i+Math.imul(M,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(k,ie)|0,r=(r=r+Math.imul(k,se)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,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 Ce=(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)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(L,J),r=(r=Math.imul(L,Y))+Math.imul(U,J)|0,i=Math.imul(U,Y),a=a+Math.imul(N,$)|0,r=(r=r+Math.imul(N,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(M,ne)|0,i=i+Math.imul(M,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(k,ce)|0,r=(r=r+Math.imul(k,ue)|0)+Math.imul(C,ce)|0,i=i+Math.imul(C,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(L,$),r=(r=Math.imul(L,ee))+Math.imul(U,$)|0,i=Math.imul(U,ee),a=a+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,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(M,ie)|0,i=i+Math.imul(M,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(k,de)|0,r=(r=r+Math.imul(k,pe)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,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(L,ne),r=(r=Math.imul(L,ae))+Math.imul(U,ne)|0,i=Math.imul(U,ae),a=a+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,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(M,ce)|0,i=i+Math.imul(M,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(k,fe)|0)|0)+((8191&(r=(r=r+Math.imul(k,me)|0)+Math.imul(C,fe)|0))<<13)|0;u=((i=i+Math.imul(C,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(L,ie),r=(r=Math.imul(L,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),a=a+Math.imul(N,ce)|0,r=(r=r+Math.imul(N,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(M,de)|0,i=i+Math.imul(M,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(L,ce),r=(r=Math.imul(L,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),a=a+Math.imul(N,de)|0,r=(r=r+Math.imul(N,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(M,fe)|0))<<13)|0;u=((i=i+Math.imul(M,me)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,a=Math.imul(L,de),r=(r=Math.imul(L,pe))+Math.imul(U,de)|0,i=Math.imul(U,pe);var Me=(u+(a=a+Math.imul(N,fe)|0)|0)+((8191&(r=(r=r+Math.imul(N,me)|0)+Math.imul(D,fe)|0))<<13)|0;u=((i=i+Math.imul(D,me)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Re=(u+(a=Math.imul(L,fe))|0)+((8191&(r=(r=Math.imul(L,me))+Math.imul(U,fe)|0))<<13)|0;return u=((i=Math.imul(U,me))+(r>>>13)|0)+(Re>>>26)|0,Re&=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]=ke,c[11]=Ce,c[12]=Te,c[13]=Ee,c[14]=Pe,c[15]=Oe,c[16]=Be,c[17]=Me,c[18]=Re,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 Le=De.exports;const Ue="bignumber/5.7.0";var He=Le.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(Ce(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),Me(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||Ce(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=Me(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(Ce(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 kt="Ethereum Signed Message:\n";function Ct(e){return"string"==typeof e&&(e=ht(e)),Ne(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(kt),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(Ne(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 Mt=ze.from(0),Rt=ze.from(1);ze.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Me(Rt.toHexString(),32),Me(Mt.toHexString(),32);var Nt={},Dt={},Vt=Lt;function Lt(e,t){if(!e)throw new Error(t||"Assertion failed")}Lt.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=Vt,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=Vt;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=Na((function(e,t){var n=t;n.assert=Da,n.toArray=La.toArray,n.zero2=La.zero2,n.toHex=La.toHex,n.encode=La.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 Le(e,"hex","le")}})),Ha=Ua.getNAF,Fa=Ua.getJSF,Ka=Ua.assert;function ja(e,t){this.type=e,this.p=new Le(t.p,16),this.red=t.prime?Le.red(t.prime):Le.mont(this.p),this.zero=new Le(0).toRed(this.red),this.one=new Le(1).toRed(this.red),this.two=new Le(2).toRed(this.red),this.n=t.n&&new Le(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 Le(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 Le(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=Na((function(e,t){var n=t;n.base=qa,n.short=Za,n.mont=null,n.edwards=null})),$a=Na((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:Nt.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:Nt.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:Nt.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:Nt.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:Nt.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:Nt.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:Nt.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:Nt.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=La.toArray(e.entropy,e.entropyEnc||"hex"),n=La.toArray(e.nonce,e.nonceEnc||"hex"),a=La.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=La.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 Le(e.r,16),this.s=new Le(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 Le(i),this.s=new Le(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 Le(2));;){var r=new Le(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 Le(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 Le(1)),u=0;;u++){var l=a.k?a.k(u):new Le(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 Le(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 Le(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=Na((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 Re({recoveryParam:a.recoveryParam,r:Me("0x"+a.r.toString(16),32),s:Me("0x"+a.s.toString(16),32)})}computeSharedSecret(e){const t=vr().keyFromPrivate(Te(this.privateKey)),n=vr().keyFromPublic(Te(Ar(e)));return Me("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(Ne(Be(Ar(e),1)),12))}(function(e,t){const n=Re(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,kr=Object.defineProperties,Cr=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},Mr=(e,t)=>kr(e,Cr(t));const Rr=e=>e?.split(":"),Nr=e=>{const t=e&&Rr(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]},Dr=e=>{const t=e&&Rr(e);if(t)return t[2]+":"+t[3]},Vr=e=>{const t=e&&Rr(e);if(t)return t.pop()};async function Lr(e){const{cacao:t,projectId:n}=e,{s:a,p:r}=t,i=Ur(r,r.iss),s=Vr(r.iss);return await async function(e,t,n,a,r,i){switch(n.t){case"eip191":return function(e,t,n){return Ir(Ct(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+Ct(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,Nr(r.iss),n)}const Ur=(e,t)=>{const n=`${e.domain} wants you to sign in with your Ethereum account:`,a=Vr(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: ${Nr(t)}`,c=`Nonce: ${e.nonce}`,u=`Issued At: ${e.iat}`,l=e.resources?`Resources:${e.resources.map((e=>`\n- ${e}`)).join("")}`:void 0,d=Xr(e.resources);return d&&(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(d))),[n,a,"",r,"",i,s,o,c,u,l].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 C.from(JSON.stringify(e)).toString("base64")}(e).replace(/=/g,"")}`}function jr(e){const t=function(e){return JSON.parse(C.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]=Mr(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,ki=(e,t,n)=>t in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ci=(e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&ki(e,n,t[n]);if(Ii)for(var n of Ii(t))xi.call(t,n)&&ki(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(Ci(Ti(Ci({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 Mi(e){const t=[];return e.forEach((e=>{const[n,a]=e.split(":");t.push(`${n}:${a}`)})),t}function Ri(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 Ni={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 Vi(e,t){const{message:n,code:a}=Di[e];return{message:t?`${n} ${t}`:n,code:a}}function Li(e,t){const{message:n,code:a}=Ni[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=Mi(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=Vi("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=Li("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=Li("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=Li("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):zi(e)||(a=Li("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=Vi("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=Li("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=Li("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=Vi("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(...Mi(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=>{Mi(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=>{Mi(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=Mi(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=Vi("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${l.toString()}\n Received: ${Object.keys(t).toString()}`)),X(s,o)||(a=Vi("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=Mi(t[e].accounts);r.includes(e)||(a=Vi("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=Vi("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):a=Vi("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 L.browser:t(K()&&navigator?.onLine);break;case L.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 L.node:default:t(!0)}}))}function ms(e){switch(j()){case L.browser:!function(e){!F()&&K()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case L.reactNative:!function(e){F()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&n.g?.NetInfo.addEventListener((t=>e(t?.isConnected)))}(e);case L.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}}},12267:(e,t,n)=>{"use strict";const a=t;a.bignum=n(64361),a.define=n(70424).define,a.base=n(81284),a.constants=n(34962),a.decoders=n(98720),a.encoders=n(87912)},70424:(e,t,n)=>{"use strict";const a=n(87912),r=n(98720),i=n(35615);function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return i(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},s.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a[e])),this.encoders[e]},s.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},9428:(e,t,n)=>{"use strict";const a=n(35615),r=n(49963).a,i=n(19845).Buffer;function s(e,t){r.call(this,t),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}a(s,r),t.t=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"==typeof e&&i.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=o,o.isEncoderBuffer=function(e){return e instanceof o||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e||(e=i.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},81284:(e,t,n)=>{"use strict";const a=t;a.Reporter=n(49963).a,a.DecoderBuffer=n(9428).t,a.EncoderBuffer=n(9428).d,a.Node=n(67410)},67410:(e,t,n)=>{"use strict";const a=n(49963).a,r=n(9428).d,i=n(9428).t,s=n(7784),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(e,t,n){const a={};this._baseState=a,a.name=n,a.enc=e,a.parent=t||null,a.children=null,a.tag=null,a.args=null,a.reverseArgs=null,a.choice=null,a.optional=!1,a.any=!1,a.obj=!1,a.use=null,a.useDecoder=null,a.key=null,a.default=null,a.explicit=null,a.implicit=null,a.contains=null,a.parent||(a.children=[],this._wrap())}e.exports=u;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,t={};l.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){const e=this._baseState;c.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const a=e[n];t[a]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){u.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let a,r=n.default,s=!0,o=null;if(null!==n.key&&(o=e.enterKey(n.key)),n.optional){let a=null;if(null!==n.explicit?a=n.explicit:null!==n.implicit?a=n.implicit:null!==n.tag&&(a=n.tag),null!==a||n.any){if(s=this._peekTag(e,a,n.any),e.isError(s))return s}else{const a=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(a)}}if(n.obj&&s&&(a=e.enterObject()),s){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const a=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const a=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(a))return a;n.any?r=e.raw(t):e=a}if(t&&t.track&&null!==n.tag&&t.track(e.path(),a,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(r=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const a=new i(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(a,t)}}return n.obj&&s&&(r=e.leaveObject(a)),null===n.key||null===r&&!0!==s?null!==o&&e.exitKey(o):e.leaveKey(o,n.key,r),r},u.prototype._decodeGeneric=function(e,t,n){const a=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,a.args&&a.args[0],n):null!==a.use?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){const n=this._baseState;let a=null,r=!1;return Object.keys(n.choice).some((function(i){const s=e.save(),o=n.choice[i];try{const n=o._decode(e,t);if(e.isError(n))return!1;a={type:i,value:n},r=!0}catch(t){return e.restore(s),!1}return!0}),this),r?a:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},u.prototype._encode=function(e,t,n){const a=this._baseState;if(null!==a.default&&a.default===e)return;const r=this._encodeValue(e,t,n);return void 0===r||this._skipDefault(r,t,n)?void 0:r},u.prototype._encodeValue=function(e,t,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);let i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let s=null,o=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)s=this._getUse(r.contains,n)._encode(e,t),o=!0;else if(r.children)s=r.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const a=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const r=n._encode(e[n._baseState.key],t,e);return t.leaveKey(a),r}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(n){const a=this._baseState;return this._getUse(a.args[0],e)._encode(n,t)}),n))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(s=this._encodePrimitive(r.tag,e),o=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(e,o,n,s))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},u.prototype._encodeChoice=function(e,t){const n=this._baseState,a=n.choice[e.type];return a||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},49963:(e,t,n)=>{"use strict";const a=n(35615);function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.a=r,r.prototype.isError=function(e){return e instanceof i},r.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,n){const a=this._reporterState;this.exitKey(e),null!==a.obj&&(a.obj[t]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},r.prototype.error=function(e){let t;const n=this._reporterState,a=e instanceof i;if(t=a?e:new i(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t},r.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},a(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},76457:(e,t)=>{"use strict";function n(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const a=e[n];t[a]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},34962:(e,t,n)=>{"use strict";const a=t;a._reverse=function(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const a=e[n];t[a]=n})),t},a.der=n(76457)},23975:(e,t,n)=>{"use strict";const a=n(35615),r=n(64361),i=n(9428).t,s=n(67410),o=n(76457);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){s.call(this,"der",e)}function l(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const a=o.tagClass[n>>6],r=!(32&n);if(31&~n)n&=31;else{let a=n;for(n=0;!(128&~a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}return{cls:a,primitive:r,tag:n,tagStr:o.tag[n]}}function d(e,t,n){let a=e.readUInt8(n);if(e.isError(a))return a;if(!t&&128===a)return null;if(!(128&a))return a;const r=127&a;if(r>4)return e.error("length octect is too long");a=0;for(let t=0;t{"use strict";const a=t;a.der=n(23975),a.pem=n(13850)},13850:(e,t,n)=>{"use strict";const a=n(35615),r=n(19845).Buffer,i=n(23975);function s(e){i.call(this,e),this.enc="pem"}a(s,i),e.exports=s,s.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let o=-1,c=-1;for(let e=0;e{"use strict";const a=n(35615),r=n(19845).Buffer,i=n(67410),s=n(76457);function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){i.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},a(c,i),c.prototype._encodeComposite=function(e,t,n,a){const i=function(e,t,n,a){let r;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))r=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return a.error("Unknown tag: "+e);r=e}return r>=31?a.error("Multi-octet tag encoding unsupported"):(t||(r|=32),r|=s.tagClassByName[n||"universal"]<<6,r)}(e,t,n,this.reporter);if(a.length<128){const e=r.alloc(2);return e[0]=i,e[1]=a.length,this._createEncoderBuffer([e,a])}let o=1;for(let e=a.length;e>=256;e>>=8)o++;const c=r.alloc(2+o);c[0]=i,c[1]=128|o;for(let e=1+o,t=a.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,a])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=r.alloc(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let a=0;for(let t=0;t=128;n>>=7)a++}const i=r.alloc(a);let s=i.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(i[s--]=127&n;(n>>=7)>0;)i[s--]=128|127&n}return this._createEncoderBuffer(i)},c.prototype._encodeTime=function(e,t){let n;const a=new Date(e);return"gentime"===t?n=[u(a.getUTCFullYear()),u(a.getUTCMonth()+1),u(a.getUTCDate()),u(a.getUTCHours()),u(a.getUTCMinutes()),u(a.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(a.getUTCFullYear()%100),u(a.getUTCMonth()+1),u(a.getUTCDate()),u(a.getUTCHours()),u(a.getUTCMinutes()),u(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!r.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=r.from(t)}if(r.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=r.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const a=new Array(n);for(let t=a.length-1;t>=0;t--)a[t]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(r.from(a))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){const a=this._baseState;let r;if(null===a.default)return!1;const i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),i.length!==a.defaultBuffer.length)return!1;for(r=0;r{"use strict";const a=t;a.der=n(35775),a.pem=n(48962)},48962:(e,t,n)=>{"use strict";const a=n(35615),r=n(35775);function i(e){r.call(this,e),this.enc="pem"}a(i,r),e.exports=i,i.prototype.encode=function(e,t){const n=r.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var a=o(e,n);return n-1>=t&&(a|=o(e,n-1)<<4),a}function u(e,t,n,a){for(var r=0,i=Math.min(e.length,n),s=t;s=49?o-49+10:o>=17?o-17+10:o}return r}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),a(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"===n)for(r=0,i=0;r>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},i.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=c(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()},i.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,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var l=["","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"],d=[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],p=[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 h(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()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,i=0,s=0;s>>24-r&16777215)||s!==this.length-1?l[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,s--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],h=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(h).toString(e);n=(f=f.idivn(h)).isZero()?m+n:l[u-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}a(!1,"Base should be between 2 and 36")},i.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&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);a(r<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0"),this.strip();var s,o,c="le"===t,u=new e(i),l=this.clone();if(c){for(o=0;!l.isZero();o++)s=l.andln(255),l.iushrn(8),u[o]=s;for(;o=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},i.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},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.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)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.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)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|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)},i.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],k=8191&x,C=x>>>13,T=0|s[6],E=8191&T,P=T>>>13,O=0|s[7],B=8191&O,M=O>>>13,R=0|s[8],N=8191&R,D=R>>>13,V=0|s[9],L=8191&V,U=V>>>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(k,F),r=(r=Math.imul(k,K))+Math.imul(C,F)|0,i=Math.imul(C,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(k,q)|0,r=(r=r+Math.imul(k,z)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,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(M,F)|0,i=Math.imul(M,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(k,W)|0,r=(r=r+Math.imul(k,X)|0)+Math.imul(C,W)|0,i=i+Math.imul(C,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(N,F),r=(r=Math.imul(N,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(M,q)|0,i=i+Math.imul(M,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(k,J)|0,r=(r=r+Math.imul(k,Y)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,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(L,F),r=(r=Math.imul(L,K))+Math.imul(U,F)|0,i=Math.imul(U,K),a=a+Math.imul(N,q)|0,r=(r=r+Math.imul(N,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(M,W)|0,i=i+Math.imul(M,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(k,$)|0,r=(r=r+Math.imul(k,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,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(L,q),r=(r=Math.imul(L,z))+Math.imul(U,q)|0,i=Math.imul(U,z),a=a+Math.imul(N,W)|0,r=(r=r+Math.imul(N,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(M,J)|0,i=i+Math.imul(M,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(k,ne)|0,r=(r=r+Math.imul(k,ae)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,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 ke=(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)+(ke>>>26)|0,ke&=67108863,a=Math.imul(L,W),r=(r=Math.imul(L,X))+Math.imul(U,W)|0,i=Math.imul(U,X),a=a+Math.imul(N,J)|0,r=(r=r+Math.imul(N,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(M,$)|0,i=i+Math.imul(M,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(k,ie)|0,r=(r=r+Math.imul(k,se)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,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 Ce=(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)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(L,J),r=(r=Math.imul(L,Y))+Math.imul(U,J)|0,i=Math.imul(U,Y),a=a+Math.imul(N,$)|0,r=(r=r+Math.imul(N,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(M,ne)|0,i=i+Math.imul(M,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(k,ce)|0,r=(r=r+Math.imul(k,ue)|0)+Math.imul(C,ce)|0,i=i+Math.imul(C,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(L,$),r=(r=Math.imul(L,ee))+Math.imul(U,$)|0,i=Math.imul(U,ee),a=a+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,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(M,ie)|0,i=i+Math.imul(M,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(k,de)|0,r=(r=r+Math.imul(k,pe)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,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(L,ne),r=(r=Math.imul(L,ae))+Math.imul(U,ne)|0,i=Math.imul(U,ae),a=a+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,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(M,ce)|0,i=i+Math.imul(M,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(k,fe)|0)|0)+((8191&(r=(r=r+Math.imul(k,me)|0)+Math.imul(C,fe)|0))<<13)|0;u=((i=i+Math.imul(C,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(L,ie),r=(r=Math.imul(L,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),a=a+Math.imul(N,ce)|0,r=(r=r+Math.imul(N,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(M,de)|0,i=i+Math.imul(M,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(L,ce),r=(r=Math.imul(L,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),a=a+Math.imul(N,de)|0,r=(r=r+Math.imul(N,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(M,fe)|0))<<13)|0;u=((i=i+Math.imul(M,me)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,a=Math.imul(L,de),r=(r=Math.imul(L,pe))+Math.imul(U,de)|0,i=Math.imul(U,pe);var Me=(u+(a=a+Math.imul(N,fe)|0)|0)+((8191&(r=(r=r+Math.imul(N,me)|0)+Math.imul(D,fe)|0))<<13)|0;u=((i=i+Math.imul(D,me)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Re=(u+(a=Math.imul(L,fe))|0)+((8191&(r=(r=Math.imul(L,me))+Math.imul(U,fe)|0))<<13)|0;return u=((i=Math.imul(U,me))+(r>>>13)|0)+(Re>>>26)|0,Re&=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]=ke,c[11]=Ce,c[12]=Te,c[13]=Ee,c[14]=Pe,c[15]=Oe,c[16]=Be,c[17]=Me,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function m(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(f=h),i.prototype.mulTo=function(e,t){var n,a=this.length+e.length;return n=10===this.length&&10===e.length?f(this,e,t):a<63?h(this,e,t):a<1024?function(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()}(this,e,t):m(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,a=0;a>=1;return a},y.prototype.permute=function(e,t,n,a,r,i){for(var s=0;s>>=1)r++;return 1<>>=13,n[2*s+1]=8191&i,i>>>=13;for(s=2*t;s>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>r}return t}(e);if(0===t.length)return new i(1);for(var n=this,a=0;a=0);var t,n=e%26,r=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t>>26-n}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()},i.prototype.ishrn=function(e,t,n){return a(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<=0);var t=e%26,n=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,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},i.prototype.isubn=function(e){if(a("number"==typeof e),a(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+n]=67108863&i}for(;r>26,this.words[r+n]=67108863&i;if(0===o)return this.strip();for(a(-1===o),o=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),r=e,s=0|r.words[r.length-1];0!=(n=26-this._countBits(s))&&(r=r.ushln(n),a.iushln(n),s=0|r.words[r.length-1]);var o,c=a.length-r.length;if("mod"!==t){(o=new i(null)).length=c+1,o.words=new Array(o.length);for(var u=0;u=0;d--){var p=67108864*(0|a.words[r.length+d])+(0|a.words[r.length+d-1]);for(p=Math.min(p/s|0,67108863),a._ishlnsubmul(r,p,d);0!==a.negative;)p--,a.negative=0,a._ishlnsubmul(r,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}},i.prototype.divmod=function(e,t,n){return a(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(r=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:r,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(r=o.div.neg()),{div:r,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,s,o},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.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)},i.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},i.prototype.idivn=function(e){a(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new i(1),s=new i(0),o=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.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;)(r.isOdd()||s.isOdd())&&(r.iadd(l),s.isub(d)),r.iushrn(1),s.iushrn(1);for(var f=0,m=1;!(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(l),c.isub(d)),o.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(o),s.isub(c)):(n.isub(t),o.isub(r),c.isub(s))}return{a:o,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,s=new i(1),o=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;!(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var d=0,p=1;!(n.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(n.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(o)):(n.isub(t),o.isub(s))}return(r=0===t.cmpn(1)?s:o).cmpn(0)<0&&r.iadd(e),r},i.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)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<>>26,o&=67108863,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),a(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},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new I(e)},i.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.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},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(v,b),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},v.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},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new _;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},I.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){a(!(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.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)},I.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},I.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)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),s=0;!r.isZero()&&0===r.andln(1);)s++,r.iushrn(1);a(!r.isZero());var o=new i(1).toRed(this),c=o.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,r),p=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),f=s;0!==h.cmp(o);){for(var m=h,y=0;0!==m.cmp(o);y++)m=m.redSqr();a(y=0;a--){for(var u=t.words[a],l=c-1;l>=0;l--){var d=u>>l&1;r!==n[0]&&(r=this.sqr(r)),0!==d||0!==s?(s<<=1,s|=d,(4==++o||0===a&&0===l)&&(r=this.mul(r,n[s]),o=0,s=0)):o=0}c=26}return r},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},r(S,I),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.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)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(a).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},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=k,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 k(){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 k=u.split("\n");if(k.length>30)for(k[26]="".concat(y,"...").concat(v);k.length>27;)k.pop();return"".concat(_.notIdentical,"\n\n").concat(k.join("\n"),"\n")}h>3&&(o="\n".concat(y,"...").concat(v).concat(o),c=!0),""!==r&&(o="\n ".concat(r).concat(o),r="");var C=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]),C++),i+="\n ".concat(d[h-1]),C++),s=h,r+="\n".concat(b,"-").concat(v," ").concat(d[h]),C++;else if(d.length1&&h>2&&(P>4?(i+="\n".concat(y,"...").concat(v),c=!0):P>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),s=h,i+="\n".concat(g,"+").concat(v," ").concat(l[h]),C++;else{var O=d[h],B=l[h],M=B!==O&&(!m(B,",")||B.slice(0,-1)!==O);M&&m(O,",")&&O.slice(0,-1)===B&&(M=!1,B+=","),M?(P>1&&h>2&&(P>4?(i+="\n".concat(y,"...").concat(v),c=!0):P>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),s=h,i+="\n".concat(g,"+").concat(v," ").concat(B),r+="\n".concat(b,"-").concat(v," ").concat(O),C+=2):(i+=r,r="",1!==P&&0!==h||(i+="\n ".concat(B),C++))}if(C>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),k="",C=_[i];"notDeepEqual"===i||"notEqual"===i?(x="".concat(_[i],"\n\n").concat(x)).length>1024&&(x="".concat(x.slice(0,1021),"...")):(k="".concat(w(l)),x.length>512&&(x="".concat(x.slice(0,509),"...")),k.length>512&&(k="".concat(k.slice(0,509),"...")),"deepEqual"===i||"equal"===i?x="".concat(C,"\n\n").concat(x,"\n\nshould equal\n\n"):k=" ".concat(i," ").concat(k)),n=s(this,d(t).call(this,"".concat(x).concat(k)))}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,k=m.isBooleanObject,C=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 M(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(67425);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,x,k,C,T;n.d(t,{CB:()=>A,IG:()=>p,M_:()=>h,Ws:()=>g,Xf:()=>i,Ym:()=>w,_G:()=>d,_n:()=>k,c2:()=>x,cl:()=>C,cq:()=>c,eC:()=>a,eQ:()=>f,gK:()=>r,gM:()=>I,gy:()=>b,hh:()=>v,jG:()=>T,q0:()=>y,tI:()=>s,tf:()=>o,w3:()=>l,xu:()=>m}),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"}(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.NOT_ENOUGH_BALANCE="NOT_ENOUGH_BALANCE",e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.INVALID_PARAMS="INVALID_PARAMS",e.DUPLICATE_TRANSACTION="DUPLICATE_TRANSACTION",e.UNABLE_TO_SIGN="UNABLE_TO_SIGN",e.USER_REJECT_REQUEST="USER_REJECT_REQUEST",e.UNABLE_TO_SEND="UNABLE_TO_SEND",e.SEND_TRANSACTION_FAILED="SEND_TRANSACTION_FAILED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.UNSUPPORTED="UNSUPPORTED",e.TIMEOUT="TIMEOUT",e.NOT_ENOUGH_EXISTENTIAL_DEPOSIT="NOT_ENOUGH_EXISTENTIAL_DEPOSIT"}(m||(m={})),function(e){e.NOT_ENOUGH_MIN_STAKE="NOT_ENOUGH_MIN_STAKE",e.EXCEED_MAX_NOMINATIONS="EXCEED_MAX_NOMINATIONS",e.EXIST_UNSTAKING_REQUEST="EXIST_UNSTAKING_REQUEST",e.INVALID_ACTIVE_STAKE="INVALID_ACTIVE_STAKE",e.EXCEED_MAX_UNSTAKING="EXCEED_MAX_UNSTAKING",e.INACTIVE_NOMINATION_POOL="INACTIVE_NOMINATION_POOL",e.CAN_NOT_GET_METADATA="CAN_NOT_GET_METADATA",e.NOT_ENOUGH_MIN_UNSTAKE="NOT_ENOUGH_MIN_UNSTAKE"}(y||(y={})),function(e){e.NOT_ENOUGH_VALUE="NOT_ENOUGH_VALUE",e.NOT_ENOUGH_FEE="NOT_ENOUGH_FEE",e.INVALID_TOKEN="INVALID_TOKEN",e.TRANSFER_ERROR="TRANSFER_ERROR",e.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT="RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT"}(g||(g={})),function(e){e.NOT_ENOUGH_EXISTENTIAL_DEPOSIT="notEnoughExistentialDeposit"}(b||(b={})),function(e){e.NETWORK_ERROR="NETWORK_ERROR",e.TOKEN_ERROR="TOKEN_ERROR",e.TIMEOUT="TIMEOUT",e.GET_BALANCE_ERROR="GET_BALANCE_ERROR"}(v||(v={})),function(e){e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.INVALID_PARAMS="INVALID_PARAMS",e.INTERNAL_ERROR="INTERNAL_ERROR",e.USER_REJECT="USER_REJECT"}(_||(_={})),function(e){e.INVALID_ADDRESS="invalidToAccount",e.KEYRING_ERROR="keyringError",e.UNKNOWN_ERROR="unknownError"}(A||(A={})),function(e){e[e.PENDING=0]="PENDING",e[e.REJECTED=1]="REJECTED",e[e.FAILED=2]="FAILED",e[e.COMPLETED=3]="COMPLETED"}(w||(w={})),function(e){e.LIGHT="light",e.DARK="dark",e.SUBSPACE="subspace"}(I||(I={})),function(e){e.CONNECTED="connected",e.CONNECTING="connecting",e.DISCONNECTED="disconnected",e.PENDING="pending"}(S||(S={})),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"}(x||(x={})),function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(k||(k={})),function(e){e.WRONG_PASSWORD="WRONG_PASSWORD",e.CHAIN_DISCONNECTED="CHAIN_DISCONNECTED",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.SUCCESS="SUCCESS"}(C||(C={})),function(e){e.NOTIFICATION="notification",e.BANNER="banner"}(T||(T={}))},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)}}},18289:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var a=n(36508),r=n(35845),i=n(9492);const s={USER_REJECTED_REQUEST:{message:(0,r.c)("User Rejected Request"),code:4001},UNAUTHORIZED:{message:(0,r.c)("Failed to sign"),code:4100},UNSUPPORTED_METHOD:{message:(0,r.c)("Unsupported Method"),code:4200},DISCONNECTED:{message:(0,r.c)("Network is disconnected"),code:4900},CHAIN_DISCONNECTED:{message:(0,r.c)("Network is disconnected"),code:4901},INVALID_PARAMS:{message:(0,r.c)("Undefined error. Please contact SubWallet support"),code:-32602},INTERNAL_ERROR:{message:(0,r.c)("Undefined error. Please contact SubWallet support"),code:-32603}};class o extends a.T{constructor(e,t,n,a){const{code:r,message:o}=s[e];super(e,t||(0,i.t)(o||"")||e,r,n,a),this.errorType=e}}},36508:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});class a extends Error{constructor(e,t,n,a,r){super(t),this.errorType=e,this.code=n,this.data=a,r&&(this.name=r)}toJSON(){return{name:this.name,message:this.message,code:this.code}}}},89071:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var a=n(36508),r=n(35845);const i={ERROR_FETCHING_QUOTE:{message:(0,r.c)("No swap quote found. Adjust your amount or try again later"),code:void 0},NOT_MEET_MIN_SWAP:{message:(0,r.c)("Amount too low. Increase your amount and try again"),code:void 0},QUOTE_TIMEOUT:{message:(0,r.c)("Quote timeout"),code:void 0},UNKNOWN:{message:(0,r.c)("Undefined error. Check your Internet connection or contact support"),code:void 0},ASSET_NOT_SUPPORTED:{message:(0,r.c)("This swap pair is not supported"),code:void 0},INVALID_RECIPIENT:{message:(0,r.c)("Invalid recipient"),code:void 0},SWAP_EXCEED_ALLOWANCE:{message:(0,r.c)("You cannot swap all your balance. Lower your amount and try again"),code:void 0},SWAP_NOT_ENOUGH_BALANCE:{message:(0,r.c)("You must deposit more funds to swap"),code:void 0},NOT_ENOUGH_LIQUIDITY:{message:(0,r.c)("Insufficient liquidity to complete the swap. Lower your amount and try again"),code:void 0},AMOUNT_CANNOT_BE_ZERO:{message:(0,r.c)("Amount must be greater than 0"),code:void 0},MAKE_POOL_NOT_ENOUGH_EXISTENTIAL_DEPOSIT:{message:(0,r.c)("Insufficient liquidity to complete the swap. Lower your amount and try again"),code:void 0}};class s extends a.T{constructor(e,t,n){const{code:a,message:r}=i[e];super(e,t||r,a,n),this.errorType=e}}},340:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var a=n(36508),r=n(11266),i=n(8166),s=n(9507),o=n(35845),c=n(9492);const u={NOT_ENOUGH_BALANCE:{message:(0,o.c)("Insufficient balance"),code:void 0},CHAIN_DISCONNECTED:{message:(0,o.c)("Network is disconnected"),code:void 0},INVALID_PARAMS:{message:(0,o.c)("Undefined error. Please contact SubWallet support"),code:void 0},INTERNAL_ERROR:{message:(0,o.c)("Undefined error. Please contact SubWallet support"),code:void 0},DUPLICATE_TRANSACTION:{message:(0,o.c)("Another transaction is in queue. Please try again later"),code:void 0},UNABLE_TO_SIGN:{message:(0,o.c)("Unable to sign"),code:void 0},USER_REJECT_REQUEST:{message:(0,o.c)("Rejected by user"),code:void 0},UNABLE_TO_SEND:{message:(0,o.c)("Unable to send"),code:void 0},SEND_TRANSACTION_FAILED:{message:(0,o.c)("Send transaction failed"),code:void 0},NOT_ENOUGH_EXISTENTIAL_DEPOSIT:{message:(0,o.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,o.c)("This feature is not available with this token"),code:void 0},[r.xu.TIMEOUT]:{message:(0,o.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,o.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,o.c)("You reached the maximum number of unstake requests"),code:void 0},[r.q0.INACTIVE_NOMINATION_POOL]:{message:(0,o.c)("Invalid. Inactive nomination pool"),code:void 0},[r.q0.CAN_NOT_GET_METADATA]:{message:(0,o.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,o.c)("Receiver is not enough existential deposit"),code:void 0},[i.J.NOT_ENOUGH_FEE]:{message:(0,o.c)("Insufficient balance"),code:void 0},[i.J.NOT_ENOUGH_MIN_JOIN_POOL]:{message:(0,o.c)("Not enough min earning amount"),code:void 0},[s.A5.QUOTE_TIMEOUT]:{message:(0,o.c)("Quote timeout"),code:void 0},[s.A5.INVALID_RECIPIENT]:{message:(0,o.c)("Invalid recipient"),code:void 0}};class l extends a.T{constructor(e,t,n,a){const r=u[e];super(e,t||(0,c.t)((null==r?void 0:r.message)||"")||e,null==r?void 0:r.code,n,a),this.errorType=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}`)}},31355:(e,t,n)=>{"use strict";n.d(t,{$P:()=>r,$k:()=>p,Ap:()=>_,B3:()=>c,GQ:()=>y,H9:()=>i,RM:()=>a,U4:()=>g,Wf:()=>f,Wp:()=>u,XM:()=>w,_9:()=>A,c9:()=>h,eC:()=>s,fn:()=>b,m3:()=>o,qC:()=>v,rm:()=>l,vk:()=>m,zq:()=>d});const a=3e4,r=3e5,i=6e4,s=6e4,o=72e5,c=9e5,u=9e4,l=1e4,d=9e4,p=3e4,h=3e5,f=3e4,m=9e5,y="ALL",g=null,b=1.2,v=2,_=1.02,A=["*"],w="__Ordinal__"},44434:(e,t,n)=>{"use strict";n.d(t,{Np:()=>a,UM:()=>r,bv:()=>s,vs:()=>i});const a="current-language",r="current-currency",i="remind_export_account",s="general.latest-session"},1493:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>A,W4:()=>_,ob:()=>I,qP:()=>S,sR:()=>w,wM:()=>v});var a=n(18289),r=n(340),i=n(11266),s=n(58109),o=n(19203),c=n(85658),u=n(37550),l=n(38920),d=n(26763),p=n(83386),h=n(96483),f=n(82823),m=n.n(f),y=n(9492),g=n(13692),b=n(20258);async function v(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 _(e,t,n){const{address:a,errors:r}=n;if(a&&(0,g.K)(a))try{if(n.pair=d.AC.getPair(a),n.pair){const a=(await e.getAuthList())[(0,o.Cx)(t)];if(!a||!a.isAllowed||!a.isAllowedMap[n.pair.address]){n.errorPosition="dApp";const[e]=x("Account not in allowed list","");r.push(new Error(e))}n.authInfo=a}else{n.errorPosition="dApp";const[e]=x("Unable to find account");r.push(new Error(e))}}catch(e){const[t]=x(e.message);n.errorPosition="dApp",r.push(new Error(t))}else{n.errorPosition="dApp";const[e]=x("Not found address to sign");r.push(new Error(e))}return n}async function A(e,t,n){let r,s=!1,{address:c,authInfo:u,errors:l,networkKey:d}={...n};const p=e=>{n.errorPosition="ui",n.confirmationType="errorConnectNetwork";const[t,r]=x(e),s=new a.q(i.c2.CHAIN_DISCONNECTED,t,void 0,r);console.error(s),l.push(s)};null!=u&&u.currentEvmNetworkKey&&(r=null==u?void 0:u.currentEvmNetworkKey),null!=u&&u.isAllowed&&(s=!0);const h=e.requestService.getDAppChainInfo({autoActive:s,accessType:"evm",defaultChain:r,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 s=async()=>{try{i=!!await r.eth.getBalance(c)}catch(e){p(e.message)}};try{await Promise.race([s(),(0,o.uk)(3e3).then((async()=>{i||(await e.chainService.initSingleApi(d),await s())}))])}catch(e){p(e.message)}}else p("This network is currently not supported");return{...n,networkKey:d,errors:l}}async function w(e,t,n){const a=n.errors||[];let u="";const p=n.payloadAfterValidated,{address:f,networkKey:y,pair:g}=n,v=e.getEvmApi(y||""),_=null==v?void 0:v.api,A=e=>"string"==typeof e&&e.startsWith("0x")?new(m())(e.replace("0x",""),16).toString():"number"==typeof e?e.toString():e,w=e=>{n.errorPosition="ui",n.confirmationType="evmWatchTransactionRequest";const[t,s]=x(e),o=new r.J(i.xu.INVALID_PARAMS,t,void 0,s);console.error(o),a.push(o)};_||w("connection error");const I={from:p.from,to:p.to,value:A(p.value),gas:A(p.gas),gasPrice:A(p.gasPrice||p.gasLimit),maxPriorityFeePerGas:A(p.maxPriorityFeePerGas),maxFeePerGas:A(p.maxFeePerGas),data:p.data};if(f&&(0,b.q)(f)||w("the sender address must be the ethereum address type"),I.to&&!(0,b.q)(I.to)&&w("invalid recipient address"),f===I.to&&w("receiving address must be different from sending address"),!I.to)if(I.data){if(I.value)try{new h.A(I.value.toString()).eq(c.Yz)||w("Recipient address not found")}catch(e){w("invalid number")}}else w("Recipient address not found");if(!I.gas){const t=async()=>{try{I.gas=await _.eth.estimateGas({...I})}catch(e){w(e.message)}};try{await Promise.race([t(),(0,o.uk)(3e3).then((async()=>{I.gas||(await e.chainService.initSingleApi(y||""),await t())}))])}catch(e){w(e.message)}}if(I.gas){if(p.maxPriorityFeePerGas&&p.maxFeePerGas)u=new h.A(p.maxFeePerGas).multipliedBy(I.gas).toFixed(0);else if(p.gasPrice)u=new h.A(p.gasPrice).multipliedBy(I.gas).toFixed(0);else try{const e=await(0,s.oc)(v,y||"");e.baseGasFee?(I.maxPriorityFeePerGas=e.maxPriorityFeePerGas.toString(),I.maxFeePerGas=e.maxFeePerGas.toString(),u=e.maxFeePerGas.multipliedBy(I.gas).toFixed(0)):(I.gasPrice=e.gasPrice,u=new h.A(e.gasPrice).multipliedBy(I.gas).toFixed(0))}catch(e){w(e.message)}try{const e=new(m())(await _.eth.getBalance(f)||0);u?e.lt(new(m())(u).add(new(m())(A(p.value)||"0")))&&w("Insufficient balance"):w("Can't calculate estimate gas fee")}catch(e){w(e.message)}}else w(new r.J(i.xu.INTERNAL_ERROR).message);const S=g||d.AC.getPair(f),k={address:f,...null==S?void 0:S.meta};try{I.nonce=await _.eth.getTransactionCount(f)}catch(e){w(e.message)}const C=a&&a.length>0||!y,T=e.getChainInfo(y||"");let E=!1,P="",O="";try{P=C?"":e.transactionService.generateHashPayload(y,I),E=await(0,l.Dj)(I.to||"",v),O=E?I.data&&!C?(await(0,l.Yw)(I.data,I.to||"",T)).result:"":I.data||""}catch(e){w(e.message)}return{...n,errors:a,payloadAfterValidated:{...I,account:k,estimateGas:u,hashPayload:P,isToContract:E,parseData:O,canSign:!C}}}async function I(e,t,n){const{address:r,errors:s,method:o,pair:c}=n;let l=n.payloadAfterValidated;const{promise:p,resolve:h}=(0,u.y)();let f="",m=!1;const y=e=>{n.errorPosition="ui",n.confirmationType="evmSignatureRequest";const[t,r]=x(e),o=new a.q(i.c2.INVALID_PARAMS,t,void 0,r);console.error(o),s.push(new a.q(i.c2.INVALID_PARAMS,t,void 0,r))};""!==r&&l||y("Not found address or payload to sign");const g=c||d.AC.getPair(r),b={address:g.address,...g.meta};if(o)switch(["eth_sign","personal_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4"].indexOf(o)<0&&y("Unsupported action"),["eth_signTypedData_v3","eth_signTypedData_v4"].indexOf(o)>-1&&(l=JSON.parse(l)),o){case"personal_sign":m=!0,f=l;break;case"eth_sign":case"eth_signTypedData":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":b.isExternal||(m=!0);break;default:y("Unsupported action")}else y("Unsupported method");const v={account:b,type:o||"",payload:l,hashPayload:f,canSign:m,id:""};return h({...n,errors:s,payloadAfterValidated:v}),p}function S(e,t,n,a){const{promise:r,resolve:i}=(0,u.y)(),{address:s,errors:c}=n;if(a){const t=e.walletConnectService.getSession(a);let r=[];var l,h;if(r=(0,b.q)(s)?(null===(l=t.namespaces.eip155.accounts)||void 0===l?void 0:l.map((e=>e.split(":")[2])))||r:(null===(h=t.namespaces.polkadot.accounts)||void 0===h?void 0:h.map((e=>e.split(":")[2])))||r,s&&(0,g.K)(s))try{if(n.pair=d.AC.getPair(s),!n.pair){n.errorPosition="dApp";const[e]=x("Unable to find account");c.push(new Error(e))}if(!r.find((e=>(0,o.Lb)(e,s)))){n.errorPosition="dApp";const[e]=x("Account not in allowed list");c.push(new Error(e))}}catch(e){const[t]=x(e.message);n.errorPosition="dApp",c.push(new Error(t))}else{n.errorPosition="dApp";const[e]=x("Unable to find account");c.push(new Error(e))}}else n.errorPosition="dApp",c.push(new Error((0,p.Hjj)("UNAUTHORIZED_EXTEND_REQUEST").message));return i({...n,errors:c}),r}function x(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,y.t)("Re-enable the network or change RPC on the extension and try again"),(0,y.t)("Unstable network connection")]:n.includes("network is currently not supported")?[(0,y.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,y.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,y.t)("Enter recipient address and try again"),(0,y.t)("Recipient address not found")]:n.includes("is not a number")||n.includes("invalid number value")||n.includes("invalid bignumberish")?[(0,y.t)("Amount must be an integer. Enter an integer and try again"),(0,y.t)("Invalid amount")]:n.includes("calculate estimate gas fee")||n.includes("invalidcode")?[(0,y.t)("Unable to calculate estimated gas for this transaction. Try again or contact support at agent@subwallet.app"),(0,y.t)("Gas calculation error")]:n.includes("invalid recipient address")?[(0,y.t)("Make sure the recipient address is valid and in the same type as the sender address, then try again"),(0,y.t)("Invalid recipient address")]:n.includes("must be different from sending address")?[(0,y.t)("The recipient address must be different from the sender address"),(0,y.t)("Invalid recipient address")]:n.includes("the sender address must be the ethereum address type")?[(0,y.t)("The sender address must be the ethereum address type"),(0,y.t)("Invalid address type")]:n.includes("insufficient balance")||n.includes("insufficient funds")?[(0,y.t)("Insufficient balance on the sender address. Top up your balance and try again"),(0,y.t)("Unable to sign transaction")]:n.includes("not found address or payload to sign")?[(0,y.t)("An error occurred when signing this request. Try again or contact support at agent@subwallet.app"),(0,y.t)("Unable to sign message")]:n.includes("unsupported method")||n.includes("unsupported action")?[(0,y.t)("This sign method is not supported by SubWallet. Try again or contact support at agent@subwallet.app"),(0,y.t)("Method not supported")]:[n,t||""]}},43181:(e,t,n)=>{"use strict";n.d(t,{Hh:()=>y,Ie:()=>h,KA:()=>d,aL:()=>m,e1:()=>p,wm:()=>f});var a=n(89071),r=n(340),i=n(11266),s=n(91600),o=n(9507),c=n(85658),u=n(96483),l=n(20258);function d(e,t,n,a,l,d,p,h,f){const m=new u.A(l);if(!(0,s.Uy)(e)&&m.minus(p).lt((0,s.xe)(e))){const t=(0,c.ZV)(m.minus((0,s.xe)(e)),(0,s.W9)(e));return new r.J(o.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}if(new u.A(d).lte(a))return new r.J(i.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 u.A(a).plus(p)))return new r.J(i.xu.NOT_ENOUGH_BALANCE,`Insufficient balance. Deposit ${e.symbol} and try again.`);if(!h){if(f&&m.lte(f)){const t=(0,c.ZV)(f,(0,s.W9)(e));return new r.J(o.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 u.A(p).gte(l)){const t=(0,c.ZV)(l,(0,s.W9)(e));return new r.J(o.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}}}function p(e,t,n,a,l,d,p,h,f){const m=new u.A(l);if(new u.A(d).lte(a))return new r.J(i.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 u.A(a).plus(p)))return new r.J(i.xu.NOT_ENOUGH_BALANCE,`Insufficient balance. Deposit ${e.symbol} and try again.`);if(!h){if(f&&m.lte(f)){const t=(0,c.ZV)(f,(0,s.W9)(e));return new r.J(o.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 u.A(p).gte(l)){const t=(0,c.ZV)(l,(0,s.W9)(e));return new r.J(o.A5.SWAP_EXCEED_ALLOWANCE,`Amount too high. Lower your amount ${m.gt(0)?`below ${t} ${e.symbol}`:""} and try again`)}}}function h(e,t){const n=(0,l.q)(t),a=(0,s.d)(e);if(n&&!a||!n&&a)return new r.J(o.A5.INVALID_RECIPIENT)}function f(e,t){switch(e){case o.A5.NOT_MEET_MIN_SWAP:{const n=`Amount too low. Increase your amount above ${(0,c.ZV)(t.minSwap.value,t.minSwap.decimals)} ${t.minSwap.symbol} and try again`;return new a.k(e,n)}case o.A5.SWAP_EXCEED_ALLOWANCE:if(t.maxSwap){const n=(0,c.ZV)(t.maxSwap.value,t.maxSwap.decimals);return new a.k(e,`Amount too high. Lower your amount below ${n} ${t.maxSwap.symbol} and try again`)}return new a.k(e,"Amount too high. Lower your amount and try again");case o.A5.ASSET_NOT_SUPPORTED:return new a.k(e,"This swap pair is not supported");case o.A5.UNKNOWN:return new a.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case o.A5.ERROR_FETCHING_QUOTE:return new a.k(e,"No swap quote found. Adjust your amount or try again later.");default:return new a.k(e)}}function m(e,t){switch(e){case o.A5.AMOUNT_CANNOT_BE_ZERO:return new a.k(e,"Amount too low. Increase your amount above 0 and try again");case o.A5.ASSET_NOT_SUPPORTED:return new a.k(e,"This swap pair is not supported");case o.A5.UNKNOWN:return new a.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case o.A5.ERROR_FETCHING_QUOTE:return new a.k(e,"No swap quote found. Adjust your amount or try again later.");default:return new a.k(e)}}function y(e,t){switch(e){case o.A5.AMOUNT_CANNOT_BE_ZERO:return new a.k(e,"Amount too low. Increase your amount above 0 and try again");case o.A5.ASSET_NOT_SUPPORTED:return new a.k(e,"This swap pair is not supported");case o.A5.UNKNOWN:return new a.k(e,`Undefined error. Check your Internet and ${t.chain.slug} connection or contact support`);case o.A5.ERROR_FETCHING_QUOTE:return new a.k(e,"No swap quote found. Adjust your amount or try again later.");case o.A5.MAKE_POOL_NOT_ENOUGH_EXISTENTIAL_DEPOSIT:return new a.k(e,"You swap too much. It make pool not enough existential deposit");default:return new a.k(e)}}},84793:(e,t,n)=>{"use strict";n.d(t,{lC:()=>A,Dx:()=>I,PH:()=>C,qM:()=>k,F1:()=>S,Yj:()=>x,Dz:()=>_,z6:()=>w});var a=n(340),r=n(11266);class i{constructor(e,t,n,a){this.message=t,this.warningType=e,this.code=n,this.data=a}}var s=n(35845),o=n(9492);const c={[r.gy.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}};class u extends i{constructor(e,t,n,a){var r,i;super(e,t||(0,o.t)((null===(r=c[e])||void 0===r?void 0:r.message)||"")||e,null===(i=c[e])||void 0===i?void 0:i.code,a),this.warningType=e}}var l=n(31355),d=n(13687),p=n(45723),h=n(91600),f=n(58109),m=n(38157),y=n(85658),g=n(26763),b=n(96483),v=n(20258);function _(e,t,n,i,s){const c=[],u=g.AC.getPair(t);let l;return s||(void 0===i&&c.push(new a.J(r.xu.INVALID_PARAMS,(0,o.t)("Transfer amount is required"))),i&&(l=new b.A(i))),e||c.push(new a.J(r.xu.INVALID_PARAMS,(0,o.t)("Not found token from registry"))),(0,v.q)(t)&&(0,v.q)(n)&&(0,h.Bb)(e)&&0===(0,h._b)(e).length&&c.push(new a.J(r.xu.INVALID_PARAMS,(0,o.t)("Not found ERC20 address for this token"))),[c,u,l]}function A(e,t,n,i,s,c,l){const d=(0,h.xe)(e),p=(0,h.xe)(t),f=[],m=[];if(n===r.M_.TRANSFER_TOKEN&&c&&new b.A(c).minus(s).lt(d)){const e=new u(r.gy.NOT_ENOUGH_EXISTENTIAL_DEPOSIT);f.push(e)}if(n===r.M_.TRANSFER_TOKEN&&l&&new b.A(l).lt(p)){const n=new a.J(r.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,o.t)("The recipient account has {{amount}} {{nativeSymbol}} which can lead to your {{localSymbol}} being lost. Change recipient account and try again",{replace:{amount:l,nativeSymbol:t.symbol,localSymbol:e.symbol}}));m.push(n)}if(new b.A(i).plus(s).lt(d)){const t=new b.A(d).minus(i).plus(0===(e.decimals||0)?0:1),n=(0,y.ZV)(t,e.decimals||0,y.x1,{maxNumberFormat:e.decimals||6}),s=new a.J(r.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,o.t)("You must transfer at least {{amount}} {{symbol}} to keep the destination account alive",{replace:{amount:n,symbol:e.symbol}}));m.push(s)}return[f,m]}function w(e,t,n){const i=[],s=g.AC.getPair(t),c=new b.A(n);return e||i.push(new a.J(r.Ws.INVALID_TOKEN,(0,o.t)("Not found token from registry"))),[i,s,c]}function I(e,t,n,i,s,c,d=!1){const p=(0,h.xe)(t),f=new b.A(p).multipliedBy(l.fn);let m,g;if(new b.A(n).lt(f)){const n=(0,y.ZV)(f,t.decimals||0,y.x1,{maxNumberFormat:t.decimals||6});m=new a.J(r.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,o.t)("You must transfer at least {{amount}} {{symbol}} to keep the destination account alive",{replace:{amount:n,symbol:e.symbol}}))}const v=(0,h.Uy)(t)?new b.A(s).plus(n):new b.A(s);if(d&&v.lt((0,h.fK)(c))){const{decimals:e,symbol:t}=(0,h.N2)(c),n=(0,y.ZV)((0,h.fK)(c),e||0,y.x1,{maxNumberFormat:6});m=new a.J(r.Ws.RECEIVER_NOT_ENOUGH_EXISTENTIAL_DEPOSIT,(0,o.t)(" Insufficient {{symbol}} on {{chain}} to cover min balance ({{amount}} {{symbol}})",{replace:{amount:n,symbol:t,chain:c.name}}))}return(0,h.Uy)(e)||new b.A(i).minus(n).lt((0,h.xe)(e))&&(g=new u(r.gy.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)),[g,m]}function S(e,t){const{extrinsicType:n}=e;t||(n===r.M_.SEND_NFT?e.errors.push(new a.J(r.xu.UNSUPPORTED,(0,o.t)("This feature is not yet available for this NFT"))):e.errors.push(new a.J(r.xu.UNSUPPORTED)))}async function x(e,t,n,i){const s={symbol:"",decimals:0,value:"0",tooHigh:!1},{decimals:o,symbol:c}=(0,h.N2)(n);if(s.decimals=o,s.symbol=c,t)try{if((0,m.iW)(t))s.value=(await t.paymentInfo(e.address)).partialFee.toString();else{const e=await i.api.eth.estimateGas(t),a=await(0,f.oc)(i,n.slug);if(a.baseGasFee){const t=a.maxFeePerGas;s.value=t.multipliedBy(e).toFixed(0)}else s.value=new b.A(a.gasPrice).multipliedBy(e).toFixed(0);s.tooHigh=a.busyNetwork}}catch(t){const n=t;n.message.includes("gas required exceeds allowance")&&n.message.includes("insufficient funds")&&e.errors.push(new a.J(r.xu.NOT_ENOUGH_BALANCE))}return s}function k(e){const t=g.AC.getPair(e.address);var n;t?null!==(n=t.meta)&&void 0!==n&&n.isReadOnly&&e.errors.push(new a.J(r.xu.INTERNAL_ERROR,(0,o.t)("This account is watch-only"))):e.errors.push(new a.J(r.xu.INTERNAL_ERROR,(0,o.t)("Unable to find account")))}function C(e,t,n,i){if(!e.estimateFee)return;const{edAsWarning:s,extrinsicType:o,isTransferAll:c,skipFeeValidation:l}=t;if(l)return;const f=new b.A(e.estimateFee.value),m=new b.A(i.value),y=new b.A(e.transferNativeAmount||"0");m.gt(0)||e.errors.push(new a.J(r.xu.NOT_ENOUGH_BALANCE));const g=[...p.Lu.acala,...p.Lu.genshiro,...p.Lu.bitcountry,...p.Lu.statemine].includes(n.originChain);!y.plus(f).gt(m)||c&&!g||e.errors.push(new a.J(r.xu.NOT_ENOUGH_BALANCE));const v=!c&&o===r.M_.TRANSFER_BALANCE&&i.metadata&&(0,d.Hw)(i.metadata),_=m.minus(y).minus(f).lt((0,h.xe)(n));v&&_&&(s?e.warnings.push(new u(r.gy.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)):e.errors.push(new a.J(r.xu.NOT_ENOUGH_EXISTENTIAL_DEPOSIT)))}},13687:(e,t,n)=>{"use strict";n.d(t,{Hw:()=>o,cW:()=>s,zA:()=>c});var a=n(12688),r=n(39572);function i(e){return void 0!==e.data.miscFrozen&&void 0!==e.data.feeFrozen}function s(e,t,n){const s=(0,r.bF)(a.a.FrameSystemAccountInfo,n);return i(e)?function(e,t,n){const a=BigInt(u(e,t,n)),i=(0,r.Up)(BigInt(e.data.feeFrozen),BigInt(e.data.miscFrozen)),s=BigInt(e.data.free)-(0,r.Up)(i,a);return(0,r.Up)(s,BigInt(0))}(e,t,s):function(e,t,n){const a=BigInt(e.data.frozen)-BigInt(e.data.reserved),i=u(e,t,n),s=BigInt(e.data.free)-(0,r.Up)(a,i);return(0,r.Up)(s,BigInt(0))}(e,t,s)}function o(e){return 0===e.consumers}function c(e){return i(e),function(e){return BigInt(e.data.free)+BigInt(e.data.reserved)}(e)}function u(e,t,n){const a=BigInt(t);return n?a:o(e)?BigInt(0):a}},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.d(t,{SD:()=>d,Zw:()=>g,au:()=>p,eO:()=>f,eZ:()=>h,mj:()=>u,v4:()=>l});var a=n(45654),r=n(91600),i=n(89976),s=n(76515);const o=5e9,c="Unlimited";function u(e){return["pioneer"].includes(e.slug)?o:c}function l(e,t,n){return{[`V${n}`]:{parents:0,interior:{X1:n<4?y(e,t,n):[y(e,t,n)]}}}}function d(e,t,n){const a=function(e,t){const n=(0,r.q6)(e);if(!n)throw new Error("Asset must have multilocation");const a=g(structuredClone(n),t);return t>=4?a:{Concrete:a}}(e,n);return{[`V${n}`]:[{id:a,fun:{Fungible:t}}]}}function p(e,t,n,a){const i=h(e,t),s=function(e,t){let n=0;return(0,r.Ex)(e)&&(n+=1),t||(n+=1),n}(e,i),o=function(e,t,n,a){const i=[];return t||i.push({GlobalConsensus:m(e,n)}),(0,r.Ex)(e)&&i.push({Parachain:(0,r.mP)(e)}),a&&i.push(y(e,a,n)),0!==i.length||a?n<4&&1===i.length?{X1:i[0]}:{[`X${i.length}`]:i}:"Here"}(t,i,n,a);return{[`V${n}`]:{parents:s,interior:o}}}function h(e,t){return(0,r.md)(e)===t.slug||(0,r.md)(t)===e.slug||(0,r.md)(e)===(0,r.md)(t)}function f(e,t){return!h(e,t)&&((0,r.Rz)(e)||(0,r.Rz)(t))}function m(e,t){let n,i=e.slug;if((0,r.Ex)(e)){const t=(0,r.md)(e);if(!t)throw Error("Parachain must have a parent chainSlug");i=t}else n=(0,r.iO)(e);if(n)return{Ethereum:{chainId:n}};switch(i){case a.zF.POLKADOT:return t<4?{Polkadot:null}:"Polkadot";case a.zF.KUSAMA:return t<4?{Kusama:null}:"Kusama";default:return t<4?{Rococo:null}:"Rococo"}}function y(e,t,n){const o=function(e){switch(e){case 1:case 2:return"Any";default:return}}(n);if(e.slug===a.zF.ASTAR_EVM){const n=(0,i.a)(t,(0,r.U0)(e));return{AccountId32:{network:o,id:(0,s.F)(n)}}}return(0,r.d)(e)?{AccountKey20:{network:o,key:t}}:{AccountId32:{network:o,id:(0,s.F)(t)}}}function g(e,t){const n=e.interior,a="object"==typeof n&&null!==n,r=a&&"X1"in n,i=t<=4&&Array.isArray(n.X1);return a&&r&&i&&(n.X1=n.X1[0]),e}},39572:(e,t,n)=>{"use strict";n.d(t,{Up:()=>o,bF:()=>i,je:()=>s});var a=n(11266),r=n(12688);function i(e,t){return!(e!==r.a.FrameSystemAccountInfo||t&&[a.M_.TRANSFER_BALANCE].includes(t))}function s(e,t){return t?BigInt(e):BigInt(0)}function o(e,t){return e>t?e:t}},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.2.26-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:void 0,INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0}.EXTENSION_PREFIX||"",s={NODE_ENV:"production",PKG_NAME:"@subwallet/web-runner",PKG_VERSION:"1.2.26-0",TARGET_ENV:"mobile",BRANCH_NAME:void 0,NFT_MINTING_HOST:void 0,INFURA_API_KEY:void 0,INFURA_API_KEY_SECRET:void 0}.ID_PREFIX||i||"",o=`${i}mobile`,c=`${i}koni-content`,u=`${i}koni-extension`},12598:(e,t,n)=>{"use strict";n.d(t,{Ji:()=>i,WV:()=>s,o3:()=>o});var a=n(80562),r=n(58109);const i=(e,t,n={})=>new t.api.eth.Contract(a.tA,e,n);function s(e,t,n,a={}){return new t.api.eth.Contract(n,e,a)}async function o(e,t,n,a,s="115792089237316195423570985008687907853269984665640564039457584007913129639935"){var o,c;const u=i(n,a).methods.approve(e,s),l=u.encodeABI(),d=await u.estimateGas({from:t}),p=await(0,r.oc)(a,a.chainSlug);return{from:t,to:n,data:l,gas:d,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()}}},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})}},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,k=(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)),C=((s=C||{}).AlephZero="alephzero",s.AlephZeroTestnet="alephzero-testnet",s.Development="development",s),T=Object.values(C),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"}},M=(e,t,n)=>n?.[t]??B[e]?.[t],R=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)))(k(),1)))}[e])(n);if(!r)throw new Error(`No metadata found for contract '${n}'.`);let i=M(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}},N=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 V(e){return"object"==typeof e&&null!==e&&"Ok"in e}function L({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=V(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=V(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=M(t,"azns_router",n);if(F&&K&&a===K)return F;let{contract:r}=await R(e,t,"azns_router",n);return K=a,F=r},G=class extends N{},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}=L(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 N{},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}=L(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=C.AlephZero;"alephTest"===t&&(a=C.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=C.AlephZero;"alephTest"===t&&(a=C.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}},13587:(e,t,n)=>{"use strict";n.d(t,{Cd:()=>h,GA:()=>I,JA:()=>v,Rp:()=>r,T7:()=>l,TY:()=>u,Tc:()=>c,a0:()=>m,a9:()=>s,eJ:()=>p,k8:()=>o,kf:()=>d,lZ:()=>_,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://ipfs.subwallet.app/ipfs/";let g,b;!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"}(g||(g={})),function(e){e.moonbeam="moonbeam",e.moonbase="moonbase",e.astarEvm="astarEvm",e.moonriver="moonriver",e.shiden="shiden",e.shibuya="shibuya"}(b||(b={})),b.moonbase,b.moonbeam,b.moonriver,b.astarEvm,b.shiden,b.shibuya;const v=["unique_evm"];let _;b.moonbase,b.moonbeam,b.moonriver,b.astarEvm,b.shiden,b.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"}(_||(_={}));const A=[];a.gm&&A.push({provider:y,weight:5e3}),a.pn.protocol&&a.pn.protocol.startsWith("http")?a.pn.protocol.startsWith("https")&&A.push({provider:y,weight:10}):A.push({provider:"https://nftstorage.link/ipfs/",weight:50},{provider:"https://dweb.link/ipfs/",weight:5},{provider:"https://gateway.ipfs.io/ipfs/",weight:5}),0===A.length&&A.push({provider:y,weight:10});const w=A.reduce(((e,t)=>e+t.weight),0);function I(){const e=[];let t=0;for(;t{"use strict";n.d(t,{Ah:()=>N,Ei:()=>T,I1:()=>S,Ip:()=>P,Ji:()=>V,Mq:()=>j,NP:()=>C,Np:()=>O,Nu:()=>x,R3:()=>U,Wq:()=>E,by:()=>B,jU:()=>I,kr:()=>k,ls:()=>w,mW:()=>q,n1:()=>F,qN:()=>L,rT:()=>H,uI:()=>K,ut:()=>R,x6:()=>D});var a=n(11266),r=n(45723),i=n(91600),s=n(90233),o=n(98865),c=n(19203),u=n(35845),l=n(85658),d=n(96483),p=n(9492),h=n(79636),f=n(43075),m=n(81106),y=n(82823),g=n.n(y),b=n(74873);let v,_,A;function w(e,t,n,a){const r=(0,h.j)("modl"),i=new Uint8Array(32);return e.registry.createType("AccountId32",(0,f.z)(r,a,new Uint8Array([t]),(0,m.a)(new(g())(n.toString()),{bitLength:32,isLe:!0}),i)).toString()}function I(e,t,n,a){const i=function(e){return r.vF[e]||r.Vw}(a),{auctionAdjust:o,auctionMax:c,falloff:u,maxInflation:l,minInflation:d,stakeTarget:p}=i,h=p-Math.min(c,n)*o,f=l/h,m=e.mul(b.i5).div(t).toNumber()/b.i5.toNumber();return s.hG.aleph.includes(a)?i.yearlyInflationInTokens?100*function(e,t){const n=e.div(b.pr).div(b.EX).toNumber();return 0===n?0:t/n}(t,i.yearlyInflationInTokens):100*function(e,t,n,a,r){return e+(t<=n?t*(a-e/n):(a*n-e)*Math.pow(2,(n-t)/r))}(d,m,h,f,u):100*(d+(m<=h?m*(f-d/h):(f*h-d)*Math.pow(2,(h-m)/u)))}function S(e,t,n,a,r,s,o){const{decimals:c}=(0,i.N2)(e),u=new d.A(a).dividedBy(new d.A(10**c)),l=new d.A(t).dividedBy(new d.A(10**c)),p=u.dividedBy(l),h=r.multipliedBy(n).dividedBy(t).multipliedBy(100);let f;if(o){const e=h.dividedBy(100).plus(1).exponentiatedBy(365);f=new d.A(100).multipliedBy(e).minus(100)}else f=h.multipliedBy(365);return(["avail_mainnet","dentnet"].includes(e.slug)?s:f).dividedBy(p).toNumber()}function x(e,t){return e*(100-t)/100}function k(e,t,n){return e*((100-n)/100)/t*365*100}function C(e,t,n,a){const r=n.mul(b.cM).div(t).toNumber()*e;return(r>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:r)/100*(100-a)/100}function T(e){return parseFloat(e.split("%")[0])}function E(e,t){const n=(0,c.p9)(t.expect.min),a=(0,c.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 P(e){const t=[];let n=0;for(const a of e)n+=1,t.push((0,c.le)(a.validatorAddress,0));return{nominationCount:n,bondedValidators:t}}function O(e,t,n){let a=!1;for(const r of t)if((0,c.le)(r.validatorAddress,0)===(0,c.le)(e,0)){n===r.activeStake&&(a=!0);break}return a}function B(e,t){let n=o.j.EARNING_REWARD;if(e.isZero())n=o.j.NOT_EARNING;else{let e=0;for(const n of t)n.status===o.j.NOT_EARNING&&(e+=1);e>0&&e30?30:a}function D(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 d.A(n)}))})),t}function V(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 L(e){const t=[];for(const n of e){const e=n[0].toHuman()[0];n[1].toHuman().blocked&&t.push(e)}return t}function U(e){const t=[];for(const n of e){const e=n[0].toHuman()[0];n[1].toHuman().blocked||t.push(e)}return t}function H(e,t){const n={};for(const a of e)n[t]=a.toPrimitive(),t++;return n}async function F(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}!function(e){e.REVOKE="revoke",e.DECREASE="decrease",e.BOND_LESS="bondLess"}(v||(v={})),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"}(_||(_={})),function(e){e.STAKE="STAKE",e.UNSTAKE="UNSTAKE",e.WITHDRAW="WITHDRAW",e.CLAIM_REWARD="CLAIM_REWARD",e.CANCEL_UNSTAKE="CANCEL_UNSTAKE"}(A||(A={}));const K=(e,t)=>{const n=(0,i.N2)(e),a=(0,l.ZV)(t.toString(),n.decimals||0,l.x1);return(0,p.t)("Insufficient stake. You need to stake at least {{number}} {{tokenSymbol}} to earn rewards",{replace:{tokenSymbol:n.symbol,number:a}})},j=(e,t)=>{let n=(0,u.c)("You cannot select more than {{number}} validators for this network");const a=M(e.slug);if(t>1)switch(a){case"dApp":n=(0,u.c)("You cannot select more than {{number}} dApps for this network");break;case"Collator":n=(0,u.c)("You cannot select more than {{number}} collators for this network");break;case"Validator":n=(0,u.c)("You cannot select more than {{number}} validators for this network")}else switch(a){case"dApp":n=(0,u.c)("You cannot select more than {{number}} dApp for this network");break;case"Collator":n=(0,u.c)("You cannot select more than {{number}} collator for this network");break;case"Validator":n=(0,u.c)("You cannot select more than {{number}} validator for this network")}return(0,p.t)(n,{replace:{number:t}})},q=(e,t,n)=>{const r=M(e);if(n)switch(r){case"dApp":return(0,p.t)("You cannot stake more for a dApp you are unstaking from");case"Collator":return(0,p.t)("You cannot stake more for a collator you are unstaking from");case"Validator":return t===a.gK.POOLED?(0,p.t)("You cannot stake more for a pool you are unstaking from"):(0,p.t)("You cannot stake more for a validator you are unstaking from")}else switch(r){case"dApp":return(0,p.t)("You can unstake from a dApp once");case"Collator":return(0,p.t)("You can unstake from a collator once");case"Validator":return t===a.gK.POOLED?(0,p.t)("You can unstake from a pool once"):(0,p.t)("You can unstake from a validator once")}}},56340:(e,t,n)=>{"use strict";n.d(t,{Gr:()=>o,Hg:()=>u,Ip:()=>c});var a=n(11266),r=n(91600),i=n(85658),s=n(96483);const o=[a.M_.MINT_VDOT,a.M_.MINT_LDOT,a.M_.MINT_SDOT,a.M_.MINT_QDOT,a.M_.MINT_STDOT,a.M_.REDEEM_QDOT,a.M_.REDEEM_SDOT,a.M_.REDEEM_VDOT,a.M_.REDEEM_LDOT,a.M_.REDEEM_STDOT,a.M_.STAKING_JOIN_POOL,a.M_.STAKING_CLAIM_REWARD,a.M_.STAKING_LEAVE_POOL,a.M_.STAKING_POOL_WITHDRAW],c=9e4;function u(e,t,n,a){var o,c;const u=(0,r.W9)(n),l=(0,r.W9)(a),d=(null===(o=t.statistic)||void 0===o||null===(c=o.assetEarning)||void 0===c?void 0:c[0].exchangeRate)||1;return new s.A(e).dividedBy(i.Xx.pow(u)).multipliedBy(d).multipliedBy(i.Xx.pow(l)).toFixed(0)}},82908:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var a=n(31355),r=n(91600),i=n(19203),s=n(96004);class o{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 s.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.currentAccount,t=["account.add","account.remove","account.updateCurrent","chain.add","asset.updateState"],n=["account.add","account.remove"];this.eventHandler=(e,r)=>{var i;const s=this.state.getServiceInfo(),o=r.some((e=>t.includes(e))),c=r.some((e=>n.includes(e))),u=r.includes("chain.updateState"),l=r.includes("mantaPay.submitTransaction")||r.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.address;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,a.B3)),u&&(this.stopPoolInfo(),this.removeCron("fetchPoolInfo"),this.addCron("fetchPoolInfo",this.fetchPoolInfo,a.zq)),this.checkNetworkAvailable(s)&&((o||f)&&this.addCron("refreshNft",this.refreshNft(p,s.chainApiMap,this.state.getSmartContractNfts(),this.state.getActiveChainInfoMap()),a.m3),l&&this.addCron("syncMantaPay",this.syncMantaPay,a.c9))},this.state.eventService.onLazy(this.eventHandler),this.addCron("fetchPoolInfo",this.fetchPoolInfo,a.zq),this.addCron("fetchMktCampaignData",this.fetchMktCampaignData,a.B3),null!=e&&e.address&&(0===Object.keys(this.state.getSubstrateApiMap()).length&&0===Object.keys(this.state.getEvmApiMap()).length||(this.resetNft(e.address),this.addCron("refreshNft",this.refreshNft(e.address,this.state.getApiMap(),this.state.getSmartContractNfts(),this.state.getActiveChainInfoMap()),a.m3),this.addCron("syncMantaPay",this.syncMantaPay,a.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.currentAccount.address,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()),a.m3),await(0,i.j4)(1800),!0}async reloadStaking(){const e=this.state.keyringService.currentAccount.address;return console.log("reload staking",e),await(0,i.j4)(1800),!0}needUpdateNft(e,t){return!!(t&&t.length>0)&&t.some((t=>{const n=e[t];return(0,r.jO)(n)||(0,r.uu)(n)||(0,r.cC)(n)}))}}},15146:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ke});var a=n(30469),r=n(8520),i=n(340),s=n(53191),o=n(98552),c=n(11266),u=n(31355),l=n(44434),d=n(84793),p=n(97245),h=n(1555),f=n(12598),m=n(80562),y=n(1676),g=n(9492),b=n(83461);const v=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};var _=n(13587),A=n(19203);function w(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}}async function I(e,t,n,a,r){switch(e){case _.lZ.acala:case _.lZ.karura:return w(t,0,a,r);case _.lZ.kusama:return function(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}}(t,0,a,r);case _.lZ.uniqueNft:case _.lZ.quartz:case _.lZ.opal:return await async function(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}}(t,0,a,r);case _.lZ.statemine:case _.lZ.statemint:return function(e,t,n,a){try{const t=a.itemId,r=a.collectionId,i=a.assetHubType;return i===c.cq.NFTS?e.api.tx.nfts.transfer(r,t,n):i===c.cq.UNIQUES?e.api.tx.uniques.transfer(r,t,n):null}catch(e){return console.error(e),null}}(t,0,a,r);case _.lZ.bitcountry:case _.lZ.pioneer:return w(t,0,a,r)}return null}var S=n(10485),x=n(90233),k=n(82823),C=n.n(k),T=n(20258);var E=n(17171),P=n(98865),O=n(96483),B=n(87004),M=n(89640),R=n(74873);function N(e,t,n){const a=[],r=new(C())(n.activeStake).sub(new(C())(e)),s=new(C())(t.minJoinNominationPool||"0");return r.isZero()||r.gte(s)||a.push(new i.J(c.q0.INVALID_ACTIVE_STAKE)),n.unstakings.length>t.maxWithdrawalRequestPerValidator&&a.push(new i.J(c.q0.EXCEED_MAX_UNSTAKING,(0,g.t)("You cannot unstake more than {{number}} times",{replace:{number:t.maxWithdrawalRequestPerValidator}}))),a}async function D(e,t,n,a){return x.hG.para.includes(e)?async function(e,t){const n=await t.isReady,a=[],[r,i]=await Promise.all([n.api.query.parachainStaking.candidateInfo.entries(),n.api.query.parachainStaking.collatorCommission()]),s=n.api.consts.parachainStaking.maxTopDelegationsPerCandidate.toString(),o=i.toHuman(),c=parseFloat(o.split("%")[0]);for(const t of r){const n=t[0].toHuman()[0],r=t[1].toPrimitive(),i=new(C())(r.totalCounted),o=new(C())(r.bond),c=i.sub(o),u=new(C())(r.lowestTopDelegationAmount);a.push({commission:0,expectedReturn:0,address:n,totalStake:i.toString(),ownStake:o.toString(),otherStake:c.toString(),nominatorCount:r.delegationCount,blocked:!1,isVerified:!1,minBond:u.toString(),chain:e,isCrowded:parseInt(s)>0})}const u={};await Promise.all(a.map((async e=>{const[t,[a,r]]=await Promise.all([n.api.query.parachainStaking.candidateInfo(e.address),(0,E.aZ)(n,e.address)]),i=t.toHuman(),s="Active"===(null==i?void 0:i.status);u[e.address]={identity:a,isVerified:r,active:s}})));for(const e of a)e.blocked=!u[e.address].active,e.identity=u[e.address].identity,e.isVerified=u[e.address].isVerified,e.commission=c;return a}(e,t):x.hG.astar.includes(e)?async function(e,t){const n=await t.isReady,a=n.api.consts.dappsStaking.maxNumberOfStakersPerContract.toHuman(),r=[],i=(0,A.p9)(a),s=(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)})))(e),[o,c]=await Promise.all([n.api.query.dappsStaking.currentEra(),s]),u=(0,A.p9)(o.toHuman()),l=c;return await Promise.all(l.map((async t=>{const a=t.name,s=t.address,o=(0,A.gU)(t.iconUrl)?t.iconUrl:void 0,c=(0,T.q)(s)?{Evm:s}:{Wasm:s},l=(await n.api.query.dappsStaking.contractEraStake(c,u)).toPrimitive();let d="0",p=0;var h,f;null!==l&&(d=null==l||null===(h=l.total)||void 0===h?void 0:h.toString(),p=l.numberOfStakers),r.push({commission:0,expectedReturn:0,address:(f=s,(0,T.q)(f)?f.toLowerCase():f),totalStake:d,ownStake:"0",otherStake:d.toString(),nominatorCount:p,blocked:!1,isVerified:!1,minBond:"0",icon:o,identity:a,chain:e,isCrowded:p>=i})}))),r}(e,t):x.hG.amplitude.includes(e)?async function(e,t){const n=await t.isReady;if(x.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),c=a.sub(i);o.push({address:t.id,totalStake:a.toString(),ownStake:i.toString(),otherStake:c.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}}(e,t):async function(e,t,n,a){var r;const i=await t.isReady,s=(await i.api.query.staking.currentEra()).toString(),o=[],c=[],[u,l,d,p]=await Promise.all([i.api.query.staking.erasTotalStake(parseInt(s)),i.api.query.staking.erasStakers.entries(parseInt(s)),i.api.query.staking.minNominatorBond(),(null===(r=i.api.query.stakingRewards)||void 0===r?void 0:r.data)&&i.api.query.stakingRewards.data()]),h=null==p?void 0:p.toPrimitive(),f=void 0!==i.api.consts.staking.maxExposurePageSize,m=(i.api.consts.staking.maxNominatorRewardedPerValidator||0).toString(),y=new(C())(u.toString()),g=l,b=d.toHuman().replaceAll(",",""),v={},_=new(C())((10**n).toString());for(const e of g){const t=e[0].toHuman(),n=e[1].toHuman(),a=t[1],r=n.total,i=n.own,s=new(C())(r.replaceAll(",","")),u=new(C())(i.replaceAll(",","")),l=s.sub(u);v[a]=s;let d=0;"others"in n&&(d=n.others.length),o.push(a),c.push({address:a,totalStake:s.toString(),ownStake:u.toString(),otherStake:l.toString(),nominatorCount:d,commission:0,expectedReturn:0,blocked:!1,isVerified:!1,minBond:b,isCrowded:!f&&d>parseInt(m)})}const A={};await Promise.all(o.map((async e=>{const[t,[n,a]]=await Promise.all([i.api.query.staking.validators(e),(0,E.aZ)(i,e)]),r=t.toHuman();A[e]={commission:r.commission,blocked:r.blocked,identity:n,isVerified:a}})));const w=y.divn(c.length).div(_);for(const t of c){const n=A[t.address].commission,r=v[t.address].div(_);if(x.hG.aleph.includes(e))t.expectedReturn=(0,S.Nu)(a.expectedReturn,(0,S.Ei)(n));else if(x.hG.ternoa.includes(e)){const e=new(C())(h.sessionExtraRewardPayout).divn(o.length).div(_),a=v[t.address].div(_).toNumber();t.expectedReturn=(0,S.kr)(e.toNumber(),a,(0,S.Ei)(n))}else t.expectedReturn=(0,S.NP)(a.expectedReturn,r,w,(0,S.Ei)(n));t.commission=parseFloat(n.split("%")[0]),t.blocked=A[t.address].blocked,t.identity=A[t.address].identity,t.isVerified=A[t.address].isVerified}return c}(e,t,n,a)}var V=n(56340),L=n(1317),U=n(56534),H=n(52192),F=n(45723),K=n(35331),j=n(91600),q=n(19159),z=n(68498),G=n(29982),W=n(88826),X=n(72247),Z=n(34446),J=n(70445);const Y=e=>Object.values(e).map((e=>({address:e.json.address,type:e.type,...e.json.meta})));var Q=n(85658),$=n(19540),ee=n(12694),te=n(31882),ne=n(38920),ae=n(86972),re=n(99618),ie=n(26763),se=n(83386),oe=n(96004),ce=n(83141),ue=n(66357),le=n(60184),de=n(88624),pe=n(99128),he=n(44869),fe=n(73630),me=n(78068),ye=n(58502),ge=n(16353),be=n(26833),ve=n(76515),_e=n(54059),Ae=n(49292);function we(e,t){return"ethereum"===t?`${e}/m/44'/60'/0'/0/0`:e}function Ie(e){return Object.values(e).map((({json:{address:e,meta:t},type:n})=>({address:e,...t,type:n})))}const Se={address:u.GQ,name:"All"},xe=[12,15,18,21,24];class ke{#e=void 0;#t;#n=z.EM;#a=!1;#r=!0;#i=!1;#s=new oe.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=>{X.W.instance.setItem(l.bv,JSON.stringify({remind:!0,timeCalculate:e})).catch(console.error)};this.#t.settingService.getSettings(t),this.#t.settingService.getSubject().subscribe({next:t})}accountsCreateExternal({address:e,genesisHash:t,name:n}){return ie.AC.addExternal(e,{genesisHash:t,name:n}),!0}accountsCreateHardware({accountIndex:e,address:t,addressOffset:n,genesisHash:a,hardwareType:r,name:i}){return ie.AC.addHardware(t,r,{accountIndex:e,addressOffset:n,genesisHash:a,name:i}),!0}accountsCreateSuri({genesisHash:e,name:t,suri:n,type:a}){return ie.AC.addUri(we(n,a),{genesisHash:e,name:t},a),!0}accountsChangePassword({address:e,newPass:t,oldPass:n}){const a=ie.AC.getPair(e);(0,le.vA)(a,(0,g.t)("Unable to find account"));try{a.isLocked||a.lock(),a.decodePkcs8(n)}catch(e){throw new Error((0,g.t)("Wrong password"))}return ie.AC.encryptAccount(a,t),!0}accountsEdit({address:e,name:t}){const n=ie.AC.getPair(e);return(0,le.vA)(n,(0,g.t)("Unable to find account")),ie.AC.saveAccountMeta(n,{...n.meta,name:t}),!0}accountsExport({address:e,password:t}){return{exportedJson:ie.AC.backupAccount(ie.AC.getPair(e),t)}}accountsShow({address:e,isShowing:t}){const n=ie.AC.getPair(e);return(0,le.vA)(n,(0,g.t)("Unable to find account")),ie.AC.saveAccountMeta(n,{...n.meta,isHidden:!t}),!0}accountsValidate({address:e,password:t}){try{return ie.AC.backupAccount(ie.AC.getPair(e),t),!0}catch(e){return!1}}accountsSubscribe(e,t){const n=(0,o.Ky)(e,t),a=this.#t.keyringService.accountSubject.subscribe((e=>n(Ie(e))));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),!0}metadataApprove({id:e}){const t=this.#t.getMetaRequest(e);(0,le.vA)(t,(0,g.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,g.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new Error("Rejected")),!0}metadataSubscribe(e,t){const n=(0,o.Ky)(e,t),a=this.#t.metaSubject.subscribe((e=>n(e)));return t.onDisconnect.addListener((()=>{this.cancelSubscription(e),a.unsubscribe()})),this.#t.metaSubject.value}jsonRestore({file:e,password:t}){try{ie.AC.restoreAccount(e,t,!0)}catch(e){throw new Error(e.message)}}batchRestore({file:e,password:t}){try{ie.AC.restoreAccounts(e,t)}catch(e){throw new Error(e.message)}}jsonGetAccountInfo(e){try{const{address:t,meta:{genesisHash:n,name:a},type:r}=ie.AC.createFromJson(e);return{address:t,genesisHash:n,name:a,type:r}}catch(e){throw console.error(e),new Error(e.message)}}seedCreate({length:e=12,seed:t,type:n}){const a=t||(0,me.a)(e);return{address:ie.AC.createFromUri(we(a,n),{},n).address,seed:a}}seedValidate({suri:e,type:t}){const{phrase:n}=(0,ye.E)(e);return(0,B.qv)(n)?(0,le.vA)((0,B.qv)(n,256),(0,g.t)("Invalid seed phrase. Please try again.")):((0,le.vA)(xe.includes(n.split(" ").length),(0,g.t)("Seed phrase needs to contain {{x}} words",{replace:{x:xe.join(", ")}})),(0,le.vA)((0,ge.F)(n),(0,g.t)("Invalid seed phrase. Please try again."))),{address:ie.AC.createFromUri(we(e,t),{},t).address,suri:e}}signingApproveSignature({id:e,signature:t,signedTransaction:n}){const a=this.#t.getSignRequest(e);(0,le.vA)(a,(0,g.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,g.t)("Unable to proceed. Please try again"));const{reject:n}=t;return n(new i.J(c.xu.USER_REJECT_REQUEST)),!0}signingSubscribe(e,t){const n=(0,o.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)}derive(e,t,n,a){const r=ie.AC.getPair(e);try{r.decodePkcs8(n)}catch(e){throw new Error((0,g.t)("Wrong password"))}try{return r.derive(t,a)}catch(e){throw new Error((0,g.t)('"{{suri}}" is not a valid derivation path',{replace:{suri:t}}))}}derivationValidate({parentAddress:e,parentPassword:t,suri:n}){return{address:this.derive(e,n,t,{}).address,suri:n}}derivationCreate({genesisHash:e,name:t,parentAddress:n,parentPassword:a,suri:r}){const i=this.derive(n,r,a,{genesisHash:e,name:t,parentAddress:n,suri:r});return ie.AC.addPair(i,!0),!0}cancelSubscription(e){return this.#t.cancelSubscription(e)}createUnsubscriptionHandle(e,t){this.#t.createUnsubscriptionHandle(e,t)}decodeAddress=(e,t,n)=>ie.AC.decodeAddress(e,t,n);encodeAddress=(e,t)=>ie.AC.encodeAddress(e,t);accountExportPrivateKey({address:e,password:t}){return this.#t.accountExportPrivateKey({address:e,password:t})}checkPublicAndSecretKey(e){return this.#t.checkPublicAndSecretKey(e)}async accountsGetAllWithCurrentAddress(e,t){const n=(0,o.Ky)(e,t),a=this.#t.keyringService;await this.#t.eventService.waitAccountReady,await this.#t.eventService.waitInjectReady;const r=a.currentAccount,i=Ie(a.accounts),s={accounts:null!=i&&i.length?[{...Se},...i]:[],currentAddress:null==r?void 0:r.address,currentGenesisHash:null==r?void 0:r.currentGenesisHash},c=a.accountSubject.subscribe((e=>{const t=Ie(e);s.accounts=null!=t&&t.length?[{...Se},...t]:[],n(s)})),u=a.currentAccountSubject.subscribe((e=>{s.currentAddress=e.address,s.currentGenesisHash=e.currentGenesisHash,n(s)}));return this.createUnsubscriptionHandle(e,(()=>{c.unsubscribe(),u.unsubscribe()})),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),s}accountsGetAll(e,t){const n=(0,o.Ky)(e,t),a=ie.AC.keyringOption.optionsSubject.subscribe((e=>{n({options:e})}));return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),e}subscribeAddresses(e,t){const n=(0,o.Ky)(e,t);let a="";const r=this.#t.keyringService.addressesSubject.subscribe((e=>{const t=Y(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.addresses;return{addresses:Y(i)}}saveRecentAccount({accountId:e,chain:t}){if((0,be.P)(e)){const n=(0,A.le)(e),a=ie.AC.getAccount(n),r=ie.AC.getAddress(n,"address");if(a)return a;{let e;if(e=r?r.meta:ie.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,{...ie.AC.addresses.add(new Z.A,n,{address:n,meta:e}).json,publicKey:(0,ve.F)(n)}}}throw Error((0,g.t)("This is not an address"))}editContactAccount({address:e,meta:t}){if((0,be.P)(e)){const n=(0,A.le)(e);return ie.AC.saveAddress(n,t),!0}throw Error((0,g.t)("This is not an address"))}deleteContactAccount({address:e}){if((0,be.P)(e)){const t=(0,A.le)(e);return ie.AC.forgetAddress(t),!0}throw Error((0,g.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.accounts),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,o.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,g.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,g.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,g.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,o.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,o.Ky)(e,t);return this._forgetAllSite((e=>{n(e)})),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),!0}getAccounts(){return Ie(this.#t.keyringService.accounts).map((e=>e.address))}isAddressValidWithAuthType(e,t){return"substrate"===t?!(0,T.q)(e):"evm"!==t||(0,T.q)(e)}filterAccountsByAccountAuthType(e,t){return"substrate"===t?e.filter((e=>!(0,T.q)(e))):"evm"===t?e.filter((e=>(0,T.q)(e))):e}_changeAuthorizationAll(e,t){this.#t.getAuthorize((n=>{(0,le.vA)(n,"The source is not known");const a=this.getAccounts();Object.keys(n).forEach((t=>{n[t].isAllowed&&this.filterAccountsByAccountAuthType(a,n[t].accountAuthType).forEach((a=>{n[t].isAllowedMap[a]=e}))})),this.#t.setAuthorize(n,(()=>{t&&t(n)}))}))}changeAuthorizationAll(e,t,n){const a=(0,o.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.getAccounts();this.filterAccountsByAccountAuthType(r,a[e].accountAuthType).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,o.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].accountAuthType)?(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,o.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,o.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,o.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,o.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()}_saveCurrentAccountAddress(e,t){let n=this.#t.keyringService.currentAccount;if(n)if(n.address=e,e!==u.GQ)try{const t=ie.AC.getPair(e);n.currentGenesisHash=(null==t?void 0:t.meta.genesisHash)||u.U4}catch{n.currentGenesisHash=u.U4}else n.currentGenesisHash=n.allGenesisHash||u.U4;else n={address:e,currentGenesisHash:u.U4,allGenesisHash:u.U4||void 0};this.#t.setCurrentAccount(n,(()=>{t&&t(n)}))}updateCurrentAccountAddress(e){return this._saveCurrentAccountAddress(e),!0}async saveCurrentAccountAddress(e){return new Promise((t=>{this._saveCurrentAccountAddress(e.address,(e=>{t(e)}))}))}async getAssetSetting(){return this.#t.chainService.getAssetSettings()}subscribeAssetSetting(e,t){const n=(0,o.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,o.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,o.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,o.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)}validatePassword(e,t){const n=Array.isArray(e.encoding.content)?e.encoding.content[1]:"ed25519",a=Array.isArray(e.encoding.type)?e.encoding.type:[e.encoding.type],r=(0,re.x)({toSS58:this.encodeAddress,type:n},{publicKey:this.decodeAddress(e.address,!0)},e.meta,(0,B.qv)(e.encoded)?(0,b.V)(e.encoded):(0,_e.u)(e.encoded),a);try{return r.decodePkcs8(t),r.lock(),!0}catch(e){return console.error(e),!1}}validatedAccountsPassword(e,t){try{return(0,de.F)((0,Ae._)(e,t)),!0}catch(e){return!1}}_addAddressToAuthList(e,t){this.#t.getAuthorize((n=>{n&&Object.keys(n).length&&(Object.keys(n).forEach((a=>{this.isAddressValidWithAuthType(e,n[a].accountAuthType)&&(n[a].isAllowedMap[e]=t)})),this.#t.setAuthorize(n))}))}_addAddressesToAuthList(e,t){this.#t.getAuthorize((n=>{n&&Object.keys(n).length&&(Object.keys(n).forEach((a=>{e.forEach((e=>{this.isAddressValidWithAuthType(e,n[a].accountAuthType)&&(n[a].isAllowedMap[e]=t)}))})),this.#t.setAuthorize(n))}))}async accountsCreateSuriV2({genesisHash:e,isAllowed:t,name:n,password:a,suri:r,types:i}){const s={};let o=!1;if(!ie.AC.keyring.hasMasterPassword){if(!a)throw Error((0,g.t)("The password of each account is needed to set up master password"));ie.AC.changeMasterPassword(a),this.#t.updateKeyringState()}const c=this.#t.keyringService.currentAccount,l=(null==c?void 0:c.allGenesisHash)||void 0;return null==i||i.forEach((a=>{const c=we(r,a),d=ie.AC.createFromUri(c,{},a).address;s[a]=d;const p="ethereum"===a?`${n} - EVM`:n;ie.AC.addUri(c,{genesisHash:e,name:p},a),this._addAddressToAuthList(d,t),o||(1===i.length?this.#t.setCurrentAccount({address:d,currentGenesisHash:e||null,allGenesisHash:l}):this.#t.setCurrentAccount({address:u.GQ,currentGenesisHash:l||null,allGenesisHash:l},void 0,!0),o=!0)})),await new Promise((e=>{this.#t.addAccountRef(Object.values(s),(()=>{e()}))})),this.#i&&this.keyringLock(),s}async accountsForgetOverride({address:e,lockAfter:t}){return ie.AC.forgetAccount(e),await new Promise((t=>{this.#t.removeAccountRef(e,(()=>{t()}))})),await new Promise((t=>{this.#t.getAuthorize((n=>{n&&Object.keys(n).length?(Object.keys(n).forEach((t=>{delete n[t].isAllowedMap[e]})),this.#t.setAuthorize(n,t)):t()}))})),await new Promise((e=>{const t=this.#t.keyringService.currentAccount;this.#t.setCurrentAccount({currentGenesisHash:(null==t?void 0:t.allGenesisHash)||null,address:u.GQ},e)})),await this.#t.disableMantaPay(e),t&&this.checkLockAfterMigrate(),!0}seedCreateV2({length:e=12,seed:t,types:n}){const a=t||(0,me.a)(e),r={seed:a,addressMap:{}};return null==n||n.forEach((e=>{r.addressMap[e]=ie.AC.createFromUri(we(a,e),{},e).address})),r}seedValidateV2({suri:e,types:t}){const{phrase:n}=(0,ye.E)(e);(0,B.qv)(n)?(0,le.vA)((0,B.qv)(n,256),(0,g.t)("Invalid seed phrase. Please try again.")):((0,le.vA)(xe.includes(n.split(" ").length),(0,g.t)("Seed phrase needs to contain {{x}} words",{replace:{x:xe.join(", ")}})),(0,le.vA)((0,ge.F)(n),(0,g.t)("Invalid seed phrase. Please try again.")));const a={seed:e,addressMap:{}};return t&&t.forEach((t=>{a.addressMap[t]=ie.AC.createFromUri(we(e,t),{},t).address})),a}_checkValidatePrivateKey({suri:e,types:t},n=!1){const{phrase:a}=(0,ye.E)(e),r={autoAddPrefix:n,addressMap:{}};return t&&t.forEach((e=>{r.addressMap[e]=""})),(0,B.qv)(a)&&(0,B.qv)(a,256)?t&&t.forEach((t=>{r.addressMap[t]=ie.AC.createFromUri(we(e,t),{},t).address})):(r.autoAddPrefix=!1,(0,le.vA)(!1,(0,g.t)("Invalid private key. Please try again."))),r}metamaskPrivateKeyValidateV2({suri:e,types:t}){return e.startsWith("0x")?this._checkValidatePrivateKey({suri:e,types:t}):this._checkValidatePrivateKey({suri:`0x${e}`,types:t},!0)}deriveV2(e,t,n){const a=ie.AC.getPair(e);a.isLocked&&ie.AC.unlockPair(a.address);try{return a.derive(t,n)}catch(e){throw new Error((0,g.t)('"{{suri}}" is not a valid derivation path',{replace:{suri:t}}))}}derivationCreateV2({genesisHash:e,isAllowed:t,name:n,parentAddress:a,suri:r}){const i=this.deriveV2(a,r,{genesisHash:e,name:n,parentAddress:a,suri:r}),s=i.address;return this._saveCurrentAccountAddress(s,(()=>{ie.AC.addPair(i,!0),this._addAddressToAuthList(s,t)})),!0}jsonRestoreV2({address:e,file:t,isAllowed:n,password:a,withMasterPassword:r}){if(!this.validatePassword(t,a))throw new Error((0,g.t)("Wrong password"));try{this._saveCurrentAccountAddress(e,(()=>{var i,s;const o=ie.AC.restoreAccount(t,a,r);null!==(i=o.meta)&&void 0!==i&&i.genesisHash&&""!==(null===(s=o.meta)||void 0===s?void 0:s.genesisHash)&&ie.AC.saveAccountMeta(o,{...o.meta,genesisHash:""}),this._addAddressToAuthList(e,n)})),this.#i&&this.keyringLock()}catch(e){throw new Error(e.message)}}batchRestoreV2({accountsInfo:e,file:t,isAllowed:n,password:a}){const r=e.map((e=>e.address));if(!this.validatedAccountsPassword(t,a))throw new Error((0,g.t)("Wrong password"));try{this._saveCurrentAccountAddress(u.GQ,(()=>{ie.AC.restoreAccounts(t,a),this.#t.keyringService.removeNoneHardwareGenesisHash(),this._addAddressesToAuthList(r,n)}))}catch(e){throw new Error(e.message)}}async batchExportV2({addresses:e,password:t}){try{if(e&&!e.length)throw new Error((0,g.t)("No accounts found to export"));return{exportedJson:await ie.AC.backupAccounts(t,e)}}catch(e){const t=e;throw"Invalid master password"===t.message?new Error((0,g.t)("Wrong password")):t}}getNftCollection(){return this.#t.getNftCollection()}subscribeNftCollection(e,t){const n=(0,o.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,o.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,o.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,o.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,o.Ky)(e,t),a=await this.#t.historyService.getHistorySubject(),r=a.subscribe((e=>{const t=ie.AC.getAccounts().map((e=>e.address));n(e.filter((e=>t.some((t=>(0,A.Lb)(e.address,t))))))}));this.createUnsubscriptionHandle(e,r.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)}));const i=ie.AC.getAccounts().map((e=>e.address));return a.getValue().filter((e=>i.some((t=>(0,A.Lb)(e.address,t)))))}subscribeHistoryByChainAndAddress({address:e,chain:t},n,a){const r=(0,o.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,m.tM)(i))throw new Error("Only SnowBridge is supported");const s=this.#t.getEvmApi(n),o=await(0,f.o3)(i,r,a,s,t);return this.#t.transactionService.handleTransaction({errors:[],warnings:[],address:r,chain:n,chainType:c.IG.EVM,transferNativeAmount:"0",transaction:o,data:e,resolveOnDone:!0,extrinsicType:c.M_.TOKEN_SPENDING_APPROVAL,isTransferAll:!1})}async makeTransfer(e){const{from:t,networkKey:n,to:a,tokenSlug:r,transferAll:i,value:s}=e,o=this.#t.chainService.getAssetBySlug(r),[u,,]=(0,d.Dz)(o,t,a,s,i),l=this.#t.getEvmApiMap(),p=this.#t.getChainInfo(n),h=this.#t.getNativeTokenInfo(n),f=h.slug,m=f===r,y=m?c.M_.TRANSFER_BALANCE:c.M_.TRANSFER_TOKEN;let b=c.IG.SUBSTRATE;const v={value:"0",symbol:(0,j.e9)(o),decimals:(0,j.W9)(o)};let _;const A=await this.getAddressTransferableBalance({address:t,networkKey:n,token:r,extrinsicType:y});try{if((0,T.q)(t)&&(0,T.q)(a)&&(0,j.s9)(o)){b=c.IG.EVM;const e=i?A.value:s||"0",r=l[n];(0,j.Bb)(o)||(0,j.qF)(o)?[_,v.value]=await(0,L.si)((0,j._b)(o),p,t,a,e,!!i,r):[_,v.value]=await(0,L.O3)(p,t,a,e,!!i,r)}else if((0,j.K5)(o))_=void 0,v.value="0";else{const e=this.#t.getSubstrateApi(n);[_,v.value]=await(0,U.R)({transferAll:!!i,value:s||"0",from:t,networkKey:n,tokenInfo:o,to:a,substrateApi:e})}}catch(e){const t=e;throw t.message.includes("transfer amount exceeds balance")&&(t.message=(0,g.t)("Insufficient balance")),t}const w=m?v.value:"0";return this.#t.transactionService.handleTransaction({errors:u,warnings:[],address:t,chain:n,chainType:b,transferNativeAmount:w,transaction:_,data:e,extrinsicType:y,ignoreWarnings:i,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:c.M_.TRANSFER_BALANCE})]);i=e.value,s=o.value}const{value:u}=await this.getAddressTransferableBalance({address:a,networkKey:n,token:r,extrinsicType:y}),[l,p]=(0,d.lC)(o,h,y,u,v.value,i,s);l.length&&e.warnings.push(...l),p.length&&e.errors.push(...p)}})}async makeCrossChainTransfer(e){const{destinationNetworkKey:t,from:n,originNetworkKey:a,to:r,tokenSlug:i,value:s}=e,o=this.#t.getAssetBySlug(i),u=this.#t.getXcmEqualAssetByChain(t,i),[l,h]=(0,d.z6)(u,n,s);let f=null;if(l.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(l);const m=this.#t.getChainInfoMap(),y=(0,j.Rz)(m[a])&&(0,p.eO)(m[a],m[t]);let g,b;if(h&&u){if(y){const e=this.#t.getEvmApi(a);f=await(0,H.CA)({destinationTokenInfo:u,originTokenInfo:o,sendingValue:s,sender:n,recipient:r,chainInfoMap:m,evmApi:e})}else{const e=this.#t.getSubstrateApi(a);f=await(0,H.uo)({destinationTokenInfo:u,originTokenInfo:o,sendingValue:s,recipient:r,chainInfoMap:m,substrateApi:e})}g=async e=>{const{value:i}=await this.getAddressTransferableBalance({address:n,networkKey:a,token:o.slug}),l=(0,p.eO)(m[a],m[t]);let h="0";if(l){const{value:e}=await this.getAddressTransferableBalance({address:r,networkKey:t,extrinsicType:c.M_.TRANSFER_BALANCE});h=e}const[f,y]=(0,d.Dx)(o,u,s,i,h,m[t],l);y&&e.errors.push(y),f&&e.warnings.push(f)},b=e=>{e.on("send",(()=>{try{ie.AC.getPair(r)&&this.updateAssetSetting({autoEnableNativeToken:!1,tokenSlug:u.slug,assetSetting:{visible:!0}}).catch(console.error)}catch(e){}}))}}return await this.#t.transactionService.handleTransaction({url:q.mX,address:n,chain:a,transaction:f,data:e,extrinsicType:c.M_.TRANSFER_XCM,chainType:y?c.IG.EVM:c.IG.SUBSTRATE,transferNativeAmount:(0,j.Uy)(o)?s:"0",ignoreWarnings:e.transferAll,isTransferAll:e.transferAll,errors:l,additionalValidator:g,eventsHandler:b})}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:c.IG.EVM,data:e,extrinsicType:c.M_.SEND_NFT,transaction:null,url:q.mX});const o=await(0,L.Jy)(this.#t.getEvmApi(t),t,i,r,a,s);return await this.#t.transactionService.handleTransaction({address:r,chain:t,chainType:c.IG.EVM,data:e,extrinsicType:c.M_.SEND_NFT,transaction:o,url:q.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 upsertCustomToken(e){try{return await this.#t.upsertCustomToken(e),!0}catch(e){return console.error(e),!1}}async deleteCustomAsset(e){const t=this.#t.getAssetBySlug(e);return!(!t||!(0,j.pH)(e)||((0,j.ri)(t)&&await this.#t.deleteNftCollection(t.originChain,(0,j._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&&F.nY.includes(n)){const t=this.#t.chainService.getAssetBySlug(a);if(t.symbol.startsWith(F.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,j.Uy)(i)){let r;return r=n?await this.getXcmMaxTransferable(i,t,e):await this.getNativeTokenMaxTransferable(i,a,e),{value:r.gt(Q.Yz)&&r.toFixed(0)||"0",decimals:i.decimals,symbol:i.symbol}}return await this.getAddressTransferableBalance({extrinsicType:c.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);if(i){const[t,{value:s}]=await Promise.all([(0,H.ft)(a,r,e,i),this.getAddressTransferableBalance({extrinsicType:c.M_.TRANSFER_XCM,address:n,networkKey:e.originChain,token:e.slug})]),o=new O.A(s),l=t.multipliedBy(u.qC);return o.minus(l)}return new O.A(0)}async getNativeTokenMaxTransferable(e,t,n){const a=this.#t.chainService.getChainInfoByKey(t),r=(0,j.d)(a)&&(0,j.s9)(e)?this.#t.chainService.getEvmApi(t):this.#t.chainService.getSubstrateApi(t),[i,{value:s}]=await Promise.all([(0,U.C)(n,a,e,r),this.getAddressTransferableBalance({extrinsicType:c.M_.TRANSFER_BALANCE,address:n,networkKey:t,token:e.slug})]);return new O.A(s).minus(i)}async subscribeAddressTransferableBalance({address:e,extrinsicType:t,networkKey:n,token:a},r,i){const s=(0,o.Ky)(r,i),c=e=>({...e,id:r}),[u,l]=await this.#t.balanceService.subscribeTransferableBalance(e,n,a,t,(e=>{s(c(e))}));return this.createUnsubscriptionHandle(r,u),i.onDisconnect.addListener((()=>{this.cancelSubscription(r)})),c(l)}async substrateNftSubmitTransaction(e){const{params:t,recipientAddress:n,senderAddress:a}=e,r=function(e,t){return(0,A.le)(e,1)===(0,A.le)(t,1)}(a,n),i=null==t?void 0:t.isPsp34,s=null==t?void 0:t.networkKey,o=this.#t.getSubstrateApi(s),u=i?await(0,L.D0)(o,a,n,t||{}):await I(s,o,0,n,t||{});return{...await this.#t.transactionService.handleTransaction({address:a,chain:s,transaction:u,data:{...e,isSendingSelf:r},extrinsicType:c.M_.SEND_NFT,chainType:c.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}getAccountMeta({address:e}){const t=ie.AC.getPair(e);return(0,le.vA)(t,(0,g.t)("Unable to find account")),{meta:t.meta}}accountsTie2({address:e,genesisHash:t}){return this.#t.setAccountTie(e,t)}async accountsCreateExternalV2({address:e,genesisHash:t,isAllowed:n,isEthereum:a,isReadOnly:r,name:i}){try{let s;try{const t=ie.AC.getPair(e);if(t&&t.type===(a?"ethereum":"sr25519"))return[{code:c.CB.INVALID_ADDRESS,message:(0,g.t)("Account exists")}]}catch(e){}if(a){const n=this.#t.getChainInfoMap();let a="";if(t)for(const e of Object.values(n))(0,j.iO)(e)===parseInt(t)&&(a=(0,j.DZ)(e));s=ie.AC.keyring.addFromAddress(e,{name:i,isExternal:!0,isReadOnly:r,genesisHash:a},null,"ethereum"),ie.AC.saveAccount(s)}else s=ie.AC.addExternal(e,{genesisHash:t,name:i,isReadOnly:r}).pair;const o=s.address;return await new Promise((e=>{this.#t.addAccountRef([o],(()=>{e()}))})),await new Promise((e=>{this._saveCurrentAccountAddress(o,(()=>{this._addAddressToAuthList(o,n),e()}))})),[]}catch(e){return[{code:c.CB.KEYRING_ERROR,message:e.message}]}}async accountsCreateHardwareV2({accountIndex:e,address:t,addressOffset:n,genesisHash:a,hardwareType:r,isAllowed:i,name:s,originGenesisHash:o}){const c=ie.AC.addHardware(t,r,{accountIndex:e,addressOffset:n,genesisHash:a,name:s,originGenesisHash:o}).pair.address;return await new Promise((e=>{this.#t.addAccountRef([c],(()=>{e()}))})),await new Promise((e=>{this._saveCurrentAccountAddress(c,(()=>{this._addAddressToAuthList(c,i||!1),e()}))})),!0}async accountsCreateHardwareMultiple({accounts:e}){const t=[];if(!e.length)throw new Error((0,g.t)("Can't find an account. Please try again"));const n={};for(const a of e){const{accountIndex:e,address:r,addressOffset:i,genesisHash:s,hardwareType:o,isEthereum:c,isGeneric:u,name:l,originGenesisHash:d}=a;let p;const h={name:l,hardwareType:o,accountIndex:e,addressOffset:i,genesisHash:s,originGenesisHash:d,isGeneric:u};if(c)p=ie.AC.keyring.addFromAddress(r,{...h,isExternal:!0,isHardware:!0},null,"ethereum"),ie.AC.saveAccount(p),n.ethereum="ethereum";else{p=ie.AC.addHardware(r,o,{...h,availableGenesisHashes:[s]}).pair;const[e]=this.#t.findNetworkKeyByGenesisHash(s);e&&(n[e]=e)}const f=p.address;t.push(f),await new Promise((e=>{this._addAddressToAuthList(f,!0),e()}))}const a=this.#t.keyringService.currentAccount,r=(null==a?void 0:a.allGenesisHash)||void 0;return t.length<=1?this.#t.setCurrentAccount({address:t[0],currentGenesisHash:null,allGenesisHash:r}):this.#t.setCurrentAccount({address:u.GQ,currentGenesisHash:r||null,allGenesisHash:r}),await new Promise((e=>{this.#t.addAccountRef(t,(()=>{e()}))})),Object.keys(n).length&&this.enableChains({chainSlugs:Object.keys(n),enableTokens:!0}).catch(console.error),!0}async accountsCreateWithSecret({isAllow:e,isEthereum:t,name:n,publicKey:a,secretKey:r}){try{let i=null;if(t){const e=(0,pe.a)(r);if(64===e.length){const t=`0x${e}`,{phrase:a}=(0,ye.E)(t);if((0,B.qv)(a)&&(0,B.qv)(a,256)){const e="ethereum";i=ie.AC.addUri(we(t,e),{name:n},e).pair}}}else i=ie.AC.keyring.addFromPair({publicKey:(0,b.V)(a),secretKey:(0,b.V)(r)},{name:n}),ie.AC.addPair(i,!0);if(!i)return{success:!1,errors:[{code:c.CB.KEYRING_ERROR,message:(0,g.t)("Cannot create account")}]};const s=i.address;return await new Promise((e=>{this.#t.addAccountRef([s],(()=>{e()}))})),await new Promise((t=>{this._saveCurrentAccountAddress(s,(()=>{this._addAddressToAuthList(s,e),t()}))})),this.#i&&this.keyringLock(),{errors:[],success:!0}}catch(e){return{success:!1,errors:[{code:c.CB.KEYRING_ERROR,message:e.message}]}}}rejectExternalRequest(e){const{id:t,message:n,throwError:a}=e,r=this.#t.getExternalRequest(t);r.status===c.Ym.PENDING&&r.reject&&(a?r.reject(new Error(n)):r.reject(),this.#t.updateExternalRequest(t,{status:c.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===c.Ym.PENDING&&(a.resolve&&a.resolve(t),this.#t.updateExternalRequest(n,{status:c.Ym.COMPLETED,reject:void 0,resolve:void 0}))}subscribeConfirmations(e,t){const n=(0,o.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()}async completeConfirmation(e){return await this.#t.completeConfirmation(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,j.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,j.iO)(a)===e)return a}return null}parseSubstrateTransaction({data:e,networkKey:t}){return((e,t)=>{const n=t.registry,a=n.createType("ExtrinsicPayload",(0,b.V)(e)),r=a.nonce.toNumber(),i=a.tip.toNumber(),s=a.specVersion.toNumber(),o=a.era;let c=o.toString();o.isMortalEra&&(c={period:o.asMortalEra.period.toNumber(),phase:o.asMortalEra.phase.toNumber()});const u=a.method.toString(),l=n.createType("Call",u),d=`${l.section}.${l.method}`,p=[],h=l.args[0],f={era:c,tip:i,nonce:r,specVersion:s};if(null!=h&&h.toRawType().startsWith("Vec"))p.push({args:void 0,methodName:d}),h.forEach((e=>{n.createType("Call",e),p.push({args:v(e),methodName:`${e.section}.${e.method}`})}));else try{p.push({args:v(l),methodName:d})}catch(e){return{...f,message:(0,g.t)("Unable to decode the information"),method:u}}return{...f,method:p,message:""}})(e,this.#t.getSubstrateApi(t).api)}async parseEVMRLP({data:e}){return await(0,ne.wZ)(e,this.#t.getChainInfoMap(),this.#t.getEvmApiMap())}qrSignSubstrate({address:e,data:t,networkKey:n}){const a=ie.AC.getPair(e);(0,le.vA)(a,(0,g.t)("Unable to find account")),a.isLocked&&ie.AC.unlockPair(a.address);let r=(0,pe.a)((0,he.X)(a.sign(t,{withType:!0})));const i=this.#t.getChainInfo(n);return(0,j.d)(i)&&(r=r.substring(2)),{signature:r}}async qrSignEVM({address:e,chainId:t,message:n,type:i}){let s;const o=this.getNetworkJsonByChainId(t);if(!o)throw new Error((0,g.t)("Cannot find network"));const c=ie.AC.getPair(e);if(!c)throw Error((0,g.t)("Unable to find account"));if(c.isLocked&&ie.AC.unlockPair(c.address),"message"===i){let e=n;(0,B.qv)(n)?e=n:(0,fe.E)(n)&&(e=`0x${n}`),s=await c.evmSigner.signMessage(e,"personal_sign")}else{var u,l,d;const e=(0,$.LA)(n);if(!e)throw new Error((0,g.t)("Failed to decode data. Please use a valid QR code"));const t={gasPrice:new O.A(e.gasPrice).toNumber(),to:e.to,value:new O.A(e.value).toNumber(),data:e.data,nonce:new O.A(e.nonce).toNumber(),gas:new O.A(e.gas).toNumber()},i=a.y_.custom({name:o.name,networkId:(0,j.iO)(o),chainId:(0,j.iO)(o)},{hardfork:"petersburg"}),p=new r.cI(t,{common:i}),h=r.cI.fromSerializedTx((0,b.V)(c.evmSigner.signTransaction(p)));s=(0,$.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,pe.a)(s)}}async subscribeChainStakingMetadata(e,t){const n=(0,o.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,o.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,j.N2)(a);return await D(e,n,i,r)}async getNominationPoolOptions(e){const t=this.#t.getSubstrateApi(e);return await async function(e,t){return async function(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 i=e[0].toHuman()[0],s=e[1].toPrimitive(),o=t.api.consts.nominationPools.palletId.toString(),c=(0,S.ls)(t.api,0,s,o),[u,l,d,p]=await Promise.all([n.api.query.staking.nominators(c),n.api.query.nominationPools.bondedPools(s),n.api.query.nominationPools.metadata(s),n.api.query.staking.minimumActiveStake()]),h=p.toPrimitive(),f=u.toJSON(),m=d.toPrimitive(),y=l.toPrimitive(),g=(0,B.qv)(m)?(0,M.I)(m):m,b="Open"===y.state,v=!!f&&f.targets.length>0,_=y.points>h;a.push({id:s,address:i,name:g,bondedAmount:(null===(r=y.points)||void 0===r?void 0:r.toString())||"0",roles:y.roles,memberCounter:y.memberCounter,state:y.state,isProfitable:b&&v&&_})}))),a}(0,t)}(0,t)}async submitBonding(e){const{address:t,amount:n,chain:a,nominatorMetadata:r,selectedValidators:s}=e,o=this.#t.getChainInfo(a),u=await this.#t.getStakingMetadataByChain(a,c.gK.NOMINATED);if(!u){const e=(0,g.t)('Unable to fetch staking data. Re-enable "{{chainName}}" and try again.',{replace:{chainName:o.name}});return this.#t.transactionService.generateBeforeHandleResponseErrors([new i.J(c.q0.CAN_NOT_GET_METADATA,e)])}const l=function(e,t,n,a,r,s){return x.hG.relay.includes(e.slug)?function(e,t,n,a,r,s){const o=[];let u=new(C())(t);const l=new(C())(r.minStake),d=(0,S.uI)(e,l),p=(0,S.Mq)(e,r.maxValidatorPerNominator);if(!s||s.status===P.j.NOT_STAKING)return u.gte(l)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,d)),n.length>r.maxValidatorPerNominator&&o.push(new i.J(c.q0.EXCEED_MAX_NOMINATIONS,p)),o;const h=new(C())(s.activeStake);return u=u.add(h),u.gte(l)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,d)),n.length>r.maxValidatorPerNominator&&o.push(new i.J(c.q0.EXCEED_MAX_NOMINATIONS,p)),o}(e,t,n,0,r,s):function(e,t,n,a,r,s){const o=[],u=n[0];let l=new(C())(t);const d=new(C())(r.minStake||"0"),p=new(C())(u.minBond||"0"),h=p>d?p:d,f=(0,S.uI)(e,h),m=(0,S.Mq)(e,r.maxValidatorPerNominator),y=(0,S.mW)(e.slug,null==s?void 0:s.type,!0);if(!s||s.status===P.j.NOT_STAKING)return l.gte(h)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,f)),o;const{bondedValidators:g}=(0,S.Ip)(s.nominations),b=(0,A.le)(u.address,0);if(g.includes(b)){let e="0",t=!1;for(const n of s.nominations)if((0,A.le)(n.validatorAddress,0)===b){e=n.activeStake,t=!!n.hasUnstaking&&n.hasUnstaking;break}l=l.add(new(C())(e)),l.gte(h)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,f)),t&&o.push(new i.J(c.q0.EXIST_UNSTAKING_REQUEST,y))}else l.gte(h)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,f)),s.nominations.length+1>r.maxValidatorPerNominator&&o.push(new i.J(c.q0.EXCEED_MAX_NOMINATIONS,m));return o}(e,t,n,0,r,s)}(o,n,s,0,u,r);if(!n||!s||l.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(l);const d=this.#t.getSubstrateApi(a),p=await async function(e,t,n,a,r,i){return x.hG.para.includes(e.slug)?async function(e,t,n,a,r){const i=await t.isReady,s=new(C())(n);if(!r)return i.api.tx.parachainStaking.delegate(a.address,s,new(C())(a.nominatorCount),0);const{bondedValidators:o,nominationCount:c}=(0,S.Ip)(r.nominations),u=(0,A.le)(a.address,0);return o.includes(u)?i.api.tx.parachainStaking.delegatorBondMore(a.address,s):i.api.tx.parachainStaking.delegate(a.address,s,new(C())(a.nominatorCount),c)}(0,a,t,n[0],i):x.hG.astar.includes(e.slug)?async function(e,t,n){const a=await e.isReady,r=new(C())(t),i=(0,T.q)(n.address)?{Evm:n.address}:{Wasm:n.address};return a.api.tx.dappsStaking.bondAndStake(i,r)}(a,t,n[0]):x.hG.amplitude.includes(e.slug)?async function(e,t,n,a){const r=await e.isReady,i=new(C())(t);if(!a)return r.api.tx.parachainStaking.joinDelegators(n.address,i);const{bondedValidators:s}=(0,S.Ip)(a.nominations);return s.includes((0,A.le)(n.address,0))?2===r.api.tx.parachainStaking.delegatorStakeMore.toJSON().args.length?r.api.tx.parachainStaking.delegatorStakeMore(n.address,i):r.api.tx.parachainStaking.delegatorStakeMore(i):r.api.tx.parachainStaking.joinDelegators(n.address,i)}(a,t,n[0],i):async function(e,t,n,a,r,i,s="Staked"){const o=await e.isReady,c=new(C())(t);let u,l;const d=o.api.tx.staking.bond.toJSON().args.length,p=n.map((e=>e.address));return i?i.isBondedBefore?(c.gt(R.Yz)&&(u=o.api.tx.staking.bondExtra(c)),i.isBondedBefore&&n.length>0&&(l=o.api.tx.staking.nominate(p)),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(p),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(p),o.api.tx.utility.batchAll([u,l]))}(a,t,n,0,r,i)}(o,n,s,d,t,r);return await this.#t.transactionService.handleTransaction({address:t,chain:a,chainType:c.IG.SUBSTRATE,data:e,extrinsicType:c.M_.STAKING_BOND,transaction:p,url:q.mX,transferNativeAmount:n})}async submitUnbonding(e){const{amount:t,chain:n,nominatorMetadata:a,validatorAddress:r}=e,s=await this.#t.getStakingMetadataByChain(n,c.gK.NOMINATED);if(!s||!a)return this.#t.transactionService.generateBeforeHandleResponseErrors([new i.J(c.xu.INTERNAL_ERROR)]);const o=function(e,t,n,a,r){return e.type===c.gK.LIQUID_STAKING?[]:x.hG.relay.includes(n)?N(t,a,e):function(e,t,n,a){const r=[];let s;for(const e of t.nominations)if((0,A.Lb)(e.validatorAddress,a)){s=e;break}if(!s)return r.push(new i.J(c.xu.INTERNAL_ERROR)),r;const o=new(C())(s.activeStake).sub(new(C())(e)),u=new(C())(n.minStake||"0"),l=new(C())(s.validatorMinStake||"0"),d=C().max(l,u),p=(0,S.mW)(n.chain,null==t?void 0:t.type);return s.hasUnstaking&&r.push(new i.J(c.q0.EXIST_UNSTAKING_REQUEST,p)),o.isZero()||o.gte(d)||r.push(new i.J(c.q0.INVALID_ACTIVE_STAKE)),r}(t,e,a,r)}(a,t,n,s,r);if(!t||o.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(o);const u=this.#t.getSubstrateApi(n),l=await async function(e,t,n,a,r){return x.hG.para.includes(n)?async function(e,t,n,a){const r=await e.isReady,i=new(C())(t);return(0,S.Np)(a,n.nominations,t)?r.api.tx.parachainStaking.scheduleRevokeDelegation(a):r.api.tx.parachainStaking.scheduleDelegatorBondLess(a,i)}(a,t,e,r):x.hG.astar.includes(n)?async function(e,t,n){const a=await e.isReady,r=new(C())(t),i=(0,T.q)(n)?{Evm:n}:{Wasm:n};return a.api.tx.dappsStaking.unbondAndUnstake(i,r)}(a,t,r):x.hG.amplitude.includes(n)?async function(e,t,n,a){const r=await e.isReady,i=new(C())(t);return(0,S.Np)(a,n.nominations,t)?r.api.tx.parachainStaking.leaveDelegators():2===r.api.tx.parachainStaking.delegatorStakeMore.toJSON().args.length?r.api.tx.parachainStaking.delegatorStakeLess(a,i):r.api.tx.parachainStaking.delegatorStakeLess(i)}(a,t,e,r):async function(e,t,n){const a=await e.isReady,r=new(C())(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)}(a,t,e)}(a,t,n,u,r);return await this.#t.transactionService.handleTransaction({address:a.address,chain:n,transaction:l,data:e,extrinsicType:c.M_.STAKING_UNBOND,chainType:c.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 i.J(c.xu.INVALID_PARAMS)]);const s=r.chain,o=r.type===J.u.NOMINATION_POOL?c.gK.POOLED:c.gK.NOMINATED,u=this.#t.getSubstrateApi(s),l=await async function(e,t,n,a,r=!0){return a===c.gK.POOLED?async function(e,t=!0){const n=await e.isReady;return t?n.api.tx.nominationPools.bondExtra("Rewards"):n.api.tx.nominationPools.claimPayout()}(e,r):x.hG.amplitude.includes(t)?async function(e){const t=await e.isReady;return t.api.tx.utility.batch([t.api.tx.parachainStaking.incrementDelegatorRewards(),t.api.tx.parachainStaking.claimRewards()])}(e):async function(e,t){const n=await e.isReady,[a,r]=await Promise.all([n.api.query.dappsStaking.generalStakerInfo.entries(t),n.api.query.dappsStaking.currentEra()]),i=(0,A.p9)(r.toHuman()),s=[];for(const e of a){const t=e[0].toHuman()[1],a=e[1].toHuman().stakes,r=(0,T.q)(t.Evm)?t.Evm.toLowerCase():t.Evm;let c=0;const u=50;for(let e=0;e0&&e.isZero()&&o.push(new i.J(c.q0.EXIST_UNSTAKING_REQUEST,p))}return u.gte(l)||o.push(new i.J(c.q0.NOT_ENOUGH_MIN_STAKE,d)),o}(o,n,s,0,u,r);if(!n||l.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(l);const d=this.#t.getSubstrateApi(a),p=await async function(e,t,n,a){const r=await e.isReady;return new(C())((null==a?void 0:a.activeStake)||"0").gt(R.Yz)?r.api.tx.nominationPools.bondExtra({FreeBalance:t}):r.api.tx.nominationPools.join(t,n)}(d,n,s.id,r);return await this.#t.transactionService.handleTransaction({address:t,chain:a,transaction:p,data:e,extrinsicType:c.M_.STAKING_JOIN_POOL,chainType:c.IG.SUBSTRATE,transferNativeAmount:n})}async submitPoolingUnbonding(e){const{amount:t,chain:n,nominatorMetadata:a}=e,r=await this.#t.getStakingMetadataByChain(n,c.gK.NOMINATED);if(!r||!a){const e=this.#t.getChainInfo(n),t=(0,g.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 i.J(c.q0.CAN_NOT_GET_METADATA,t)])}const s=N(t,r,a);if(!t||s.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(s);const o=this.#t.getSubstrateApi(n),u=await async function(e,t,n){return(await e.isReady).api.tx.nominationPools.unbond({Id:n.address},t)}(o,t,a);return await this.#t.transactionService.handleTransaction({address:a.address,chain:n,transaction:u,data:e,extrinsicType:c.M_.STAKING_LEAVE_POOL,chainType:c.IG.SUBSTRATE})}async parseContractInput({chainId:e,contract:t,data:n}){const a=this.getNetworkJsonByChainId(e);return await(0,ne.Yw)(n,t,a)}async submitTuringStakeCompounding(e){const{accountMinimum:t,address:n,bondedAmount:a,collatorAddress:r,networkKey:s}=e;if(!n)return this.#t.transactionService.generateBeforeHandleResponseErrors([new i.J(c.xu.INVALID_PARAMS)]);const o=this.#t.getSubstrateApi(s),u=this.#t.getChainInfo(s),{decimals:l}=(0,j.N2)(u),d=parseFloat(t)*10**l,p=await async function(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)}(o,0,r,d.toString(),a);return await this.#t.transactionService.handleTransaction({address:n,chain:s,transaction:p,data:e,extrinsicType:c.M_.STAKING_COMPOUNDING,chainType:c.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 async function(e,t){return(await e.isReady).api.tx.automationTime.cancelTask(t)}(i,a);return await this.#t.transactionService.handleTransaction({address:t,chain:n,transaction:s,data:e,extrinsicType:c.M_.STAKING_CANCEL_COMPOUNDING,chainType:c.IG.SUBSTRATE})}keyringStateSubscribe(e,t){const n=(0,o.Ky)(e,t),a=this.#t.keyringService.keyringStateSubject.subscribe((e=>n(e)));return this.createUnsubscriptionHandle(e,a.unsubscribe),t.onDisconnect.addListener((()=>{this.cancelSubscription(e)})),this.#t.keyringService.keyringState}keyringChangeMasterPassword({createNew:e,newPassword:t,oldPassword:n}){try{if(e&&!ie.AC.keyring.hasMasterPassword){const e=ie.AC.getPairs();for(const t of e)if(t.meta.isInjected);else{const e={...t.meta,isMasterPassword:!1};e.originGenesisHash||(e.genesisHash=""),t.setMeta(e),ie.AC.saveAccountMeta(t,t.meta)}}ie.AC.changeMasterPassword(t,n)}catch(e){return console.error(e),{errors:[(0,g.t)(e.message)],status:!1}}return this.#t.updateKeyringState(),this.#i&&!e&&this.keyringLock(),{status:!0,errors:[]}}checkLockAfterMigrate(){ie.AC.getPairs().filter((e=>e.address!==u.GQ&&!e.meta.isExternal&&!e.meta.isInjected)).filter((e=>!e.meta.isMasterPassword)).length||this.#i&&this.keyringLock()}keyringMigrateMasterPassword({address:e,password:t}){try{ie.AC.migrateWithMasterPassword(e,t),this.checkLockAfterMigrate()}catch(e){return console.error(e),{errors:[e.message],status:!1}}return{status:!0,errors:[]}}keyringUnlock({password:e}){try{ie.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:ie.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,g.t)("Unable to proceed. Please try again"));const{reject:n,request:a,resolve:r}=t,i=ie.AC.getPair(t.account.address),{address:s}=i;if(!i)return n(new Error((0,g.t)("Unable to find account"))),!1;i.isLocked&&ie.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,ae.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;c=new ce.O;const n=new ue.O(c,t.hexValue);c.register(t.types),c.setChainProperties(c.createType("ChainProperties",{ss58Format:(null==e||null===(u=e.substrateInfo)||void 0===u?void 0:u.addressPrefix)||42,tokenDecimals:null==e||null===(l=e.substrateInfo)||void 0===l?void 0:l.decimals,tokenSymbol:null==e||null===(d=e.substrateInfo)||void 0===d?void 0:d.symbol})),c.setMetadata(n,o.signedExtensions,t.userExtensions)}else c=new ce.O,c.setSignedExtensions(o.signedExtensions);if(!t&&e&&(F.XJ.avail.includes(e.slug)||F.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({isAllowed:e,items:t,parentAddress:n}){const a=ie.AC.getPair(n),r="ethereum"===a.type;a.isLocked&&ie.AC.unlockPair(a.address);const i=({name:e,suri:t})=>{const i={name:e,parentAddress:n};if(r){let e=0;try{const n=/^\d+$/,a=t.split("//")[1];n.test(a)&&(e=parseInt(a))}catch(e){}if(!e)throw Error((0,g.t)("Invalid derive path"));return i.suri=`//${e}`,a.deriveEvm(e,i)}return i.suri=t,a.derive(t,i)},s=[];for(const n of t)try{const t=i(n),a=t.address;ie.AC.addPair(t,!0),this._addAddressToAuthList(a,e),s.push(t)}catch(e){console.log(e)}return 1===s.length?this._saveCurrentAccountAddress(s[0].address):this.#t.setCurrentAccount({address:u.GQ,currentGenesisHash:null}),!0}derivationCreateV3({address:e}){const t=ie.AC.getPair(e),n="ethereum"===t.type;t.isLocked&&ie.AC.unlockPair(t.address);const a=ie.AC.getPairs(),r=a.filter((t=>t.meta.parentAddress===e)),i=`Account ${a.length}`;let s=n?1:0,o=!1;do{r.find((e=>e.meta.suri===`//${s}`))?s++:o=!0}while(!o);const c={name:i,parentAddress:e,suri:`//${s}`},u=n?t.deriveEvm(s,c):t.derive(c.suri,c),l=u.address;return this._saveCurrentAccountAddress(l,(()=>{ie.AC.addPair(u,!0),this._addAddressToAuthList(l,!0)})),this.#i&&this.keyringLock(),!0}validateDerivePath({parentAddress:e,suri:t}){const n=ie.AC.getPair(e),a="ethereum"===n.type;n.isLocked&&ie.AC.unlockPair(n.address);const r={parentAddress:e};let i;if(a){let e=0;try{const n=/^\d+$/,a=t.split("//")[1];n.test(a)&&(e=parseInt(a))}catch(e){}if(!e)throw Error((0,g.t)("Invalid derive path"));r.suri=`//${e}`,i=n.deriveEvm(e,r)}else r.suri=t,i=n.derive(t,r);return{address:i.address,suri:r.suri}}getListDeriveAccounts({limit:e,page:t,parentAddress:n}){const a=ie.AC.getPair(n),r="ethereum"===a.type;a.isLocked&&ie.AC.unlockPair(a.address);const i=(t-1)*e+(r?1:0),s=i+e,o=[];for(let e=i;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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,W.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,W.iM)(e))throw new Error((0,se.Hjj)("UNSUPPORTED_NAMESPACE_KEY").message+" "+e);if(t.chains){const n=t.chains.filter((e=>!(0,W.UK)(e,u)));if(n.length)throw new Error((0,se.Hjj)("UNSUPPORTED_CHAINS").message+" "+n.toString());o[e]=t}})),Object.entries(s).forEach((([e,t])=>{if((0,W.iM)(e)&&t.chains){const n=t.chains.filter((e=>(0,W.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,ee.C)(n.chains);r.forEach((n=>{a.push(...e.filter((e=>(0,T.q)(e)===(t===G.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,W.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,o.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,o.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(F.xI),this.#t.chainService.setMantaZkAssetSettings(!0);const r=this.keyringExportMnemonic({address:e,password:t}),{connectionStatus:i}=this.#t.chainService.getChainStatusByKey(F.xI);i!==K.$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.saveCurrentAccountAddress({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?c.cl.SUCCESS:c.cl.UNKNOWN_ERROR}}catch(e){return"Error: Unable to decode using the supplied passphrase"===e.toString()?{success:!1,message:c.cl.WRONG_PASSWORD}:{success:!1,message:c.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||!te.py.MANTA_ZK)return;this.#a=!0,await this.saveCurrentAccountAddress({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)}subscribeMantaPayConfig(e,t){const n=(0,o.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,o.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,y.Fr)(e.domain,e.chain,t.api)}async resolveAddressByDomain(e){const t=this.#t.getSubstrateApi(e.chain);return await(0,y.BO)(e.address,e.chain,t.api)}addInjects(e){return this.#t.keyringService.addInjectAccounts(e.accounts),!0}removeInjects(e){return this.#t.keyringService.removeInjectAccounts(e.addresses),!0}async subscribeYieldPoolInfo(e,t){const n=(0,o.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 i.J(c.xu.INTERNAL_ERROR)]);const r=e.currentStep+1===n.steps.length,s=await this.#t.earningService.validateYieldJoin({data:t,path:n});if(s.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(s);const{chainType:o,extrinsic:u,extrinsicType:l,transferNativeAmount:d,txChain:p,txData:h}=await this.#t.earningService.handleYieldJoin(e),f=this.#t.earningService.isPoolSupportAlternativeFee(e.data.slug),m=V.Gr.includes(l);return await this.#t.transactionService.handleTransaction({address:a,chain:p,transaction:u,data:h,extrinsicType:l,chainType:o,resolveOnDone:!r,transferNativeAmount:d,skipFeeValidation:m&&f})}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)||c.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,o.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,o.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,o.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,o.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 i.J(c.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:c.M_.STAKING_WITHDRAW,chainType:(null==a?void 0:a.transactionChainType)||c.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 i.J(c.xu.INVALID_PARAMS)]);const s=r.chain,o=await this.#t.earningService.handleYieldCancelUnstake(e);return await this.#t.transactionService.handleTransaction({address:t,chain:s,transaction:o,data:e,extrinsicType:c.M_.STAKING_CANCEL_UNSTAKE,chainType:(null==r?void 0:r.transactionChainType)||c.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 i.J(c.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:c.M_.STAKING_CLAIM_REWARD,chainType:(null==a?void 0:a.transactionChainType)||c.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,o.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,o.Ky)(e,t),a=e=>{const t=[];for(const n of e)n.type===c.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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 i.J(c.xu.INTERNAL_ERROR)]);const s=e.currentStep+1===n.steps.length,o=await this.#t.swapService.validateSwapProcess({address:t,process:n,selectedQuote:a,recipient:r});if(o.length>0)return this.#t.transactionService.generateBeforeHandleResponseErrors(o);const{chainType:u,extrinsic:l,extrinsicType:d,transferNativeAmount:p,txChain:h,txData:f}=await this.#t.swapService.handleSwapProcess(e);return await this.#t.transactionService.handleTransaction({address:t,chain:h,transaction:l,data:f,extrinsicType:d,chainType:u,resolveOnDone:!s,transferNativeAmount:p})}async subscribeLedgerGenericAllowChains(e,t){const n=(0,o.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.create.external)":return this.accountsCreateExternal(n);case"pri(accounts.create.hardware)":return this.accountsCreateHardware(n);case"pri(accounts.create.suri)":return this.accountsCreateSuri(n);case"pri(accounts.changePassword)":return this.accountsChangePassword(n);case"pri(accounts.export)":return this.accountsExport(n);case"pri(accounts.show)":return this.accountsShow(n);case"pri(accounts.subscribe)":return this.accountsSubscribe(e,a);case"pri(accounts.validate)":return this.accountsValidate(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(derivation.create)":return this.derivationCreate(n);case"pri(derivation.validate)":return this.derivationValidate(n);case"pri(json.restore)":return this.jsonRestore(n);case"pri(json.batchRestore)":return this.batchRestore(n);case"pri(json.account.info)":return this.jsonGetAccountInfo(n);case"pri(seed.create)":return this.seedCreate(n);case"pri(seed.validate)":return this.seedValidate(n);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(derivation.createV2)":return this.derivationCreateV2(n);case"pri(accounts.batchExportV2)":return this.batchExportV2(n);case"pri(json.restoreV2)":return this.jsonRestoreV2(n);case"pri(json.batchRestoreV2)":return this.batchRestoreV2(n);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 await 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(seed.createV2)":return this.seedCreateV2(n);case"pri(accounts.forget)":return await this.accountsForgetOverride(n);case"pri(seed.validateV2)":return this.seedValidateV2(n);case"pri(privateKey.validateV2)":return this.metamaskPrivateKeyValidateV2(n);case"pri(accounts.checkPublicAndSecretKey)":return this.checkPublicAndSecretKey(n);case"pri(accounts.exportPrivateKey)":return this.accountExportPrivateKey(n);case"pri(accounts.subscribeWithCurrentAddress)":return await this.accountsGetAllWithCurrentAddress(e,a);case"pri(accounts.subscribeAccountsInputAddress)":return this.accountsGetAll(e,a);case"pri(currentAccount.saveAddress)":return await this.saveCurrentAccountAddress(n);case"pri(accounts.updateCurrentAddress)":return this.updateCurrentAccountAddress(n);case"pri(accounts.edit)":return this.accountsEdit(n);case"pri(accounts.saveRecent)":return this.saveRecentAccount(n);case"pri(accounts.editContact)":return this.editContactAccount(n);case"pri(accounts.deleteContact)":return this.deleteContactAccount(n);case"pri(accounts.subscribeAddresses)":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)":case"pri(transfer.subscribeMaxTransferable)":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(accounts.get.meta)":return this.getAccountMeta(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(accounts.tie)":return this.accountsTie2(n);case"pri(confirmations.subscribe)":return this.subscribeConfirmations(e,a);case"pri(confirmations.complete)":return await this.completeConfirmation(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(derivation.validateV2)":return this.validateDerivePath(n);case"pri(derivation.getList)":return this.getListDeriveAccounts(n);case"pri(derivation.create.multiple)":return this.derivationCreateMultiple(n);case"pri(derivation.createV3)":return this.derivationCreateV3(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(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}`)}}}},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:()=>me});var r=n(18289),i=n(53191),s=n(98552),o=n(11266),c=n(31355),u=n(44434),l=n(1493),d=n(3663),p=n(14875),h=n(93856),f=n(58021),m=n(479),y=n(45723),g=n(91600),b=n(5458),v=n(98779),_=n(73040),A=n(58109),w=n(75849),I=n(17985),S=n(65068),x=n(81674),k=n(39796),C=n(71348),T=n(46619),E=n(19500),P=n(9035),O=n(74125),B=n(15032),M=n(88407),R=n(97114),N=n(31696),D=n(14257),V=n(72247),L=n(95958),U=n(31882),H=n(19203),F=n(37550),K=n(13174),j=n(26763),q=n(82823),z=n.n(q),G=n(22026),W=n.n(G),X=n(9492),Z=n(96004),J=n(87574),Y=n(60184),Q=n(44869),$=n(99128),ee=n(87004),te=n(83461),ne=n(24318),ae=n(54059),re=n(58502),ie=n(20258),se=n(82908),oe=n(38653),ce=e([R]);R=(ce.then?(await ce)():ce)[0];const ue=n(23827),le="/m/44'/60'/0'/0/0",de=["errorConnectNetwork"],pe=(e,t)=>"ethereum"===t?`${e}${le}`:e,he=()=>({}),fe="USD";class me{injectedProviders=new Map;unsubscriptionMap={};accountRefStore=new L.A;externalRequest={};crowdloanMap=he();crowdloanSubject=new Z.B;nftSubject=new Z.B;mantaPayConfigSubject=new Z.B;isMantaPayEnabled=!1;stakingSubject=new Z.B;chainStakingMetadataSubject=new Z.B;stakingNominatorMetadataSubject=new Z.B;stakingRewardSubject=new Z.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.eventService),this.notificationService=new C.A,this.chainService=new m.N(this.dbService,this.eventService),this.subscanService=M.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 k.A(this),this.buyService=new h.A(this),this.transactionService=new N.A(this),this.earningService=new b.A(this),this.feeService=new _.A(this),this.swapService=new R.l(this),this.subscription=new oe.P(this,this.dbService),this.cron=new se.g(this,this.subscription,this.dbService),this.logger=(0,J.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,Y.vA)(n,"Cannot call pub(rpc.subscribe) before provider is set"),n.send(e.method,e.params)}rpcStartProvider(e,t){return(0,Y.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,Y.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,Y.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,Y.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,n){return this.requestService.sign(e,t,n)}get authSubjectV2(){return this.requestService.authSubjectV2}generateDefaultBalanceMap(e){const t={},n=this.chainService.getActiveChainInfoMap(),a=(0,H.pb)(this.keyringService.currentAccount.address);return(e||(a?Object.keys(this.keyringService.accounts):[this.keyringService.currentAccount.address])).forEach((e=>{const a={};Object.values(n).forEach((t=>{const n=this.chainService.getFungibleTokensByChain(t.slug);Object.keys(n).forEach((t=>{a[t]={address:e,tokenSlug:t,free:"",locked:"",state:o.Xf.PENDING}}))})),t[e]=a})),t}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()}getAddressList(e=!1){return Object.keys(this.keyringService.accounts).reduce(((t,n)=>({...t,[n]:e})),{})}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.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.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.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)}getAccountRefMap(e){const t={};this.accountRefStore.get("refList",(n=>{n&&n.forEach((e=>{e.forEach((n=>{t[n]=[...e].filter((e=>!(e===n)))}))})),e(t)}))}addAccountRef(e,t){this.accountRefStore.get("refList",(n=>{const a=n?[...n]:[];a.push(e),this.accountRefStore.set("refList",a,t)}))}removeAccountRef(e,t){this.accountRefStore.get("refList",(n=>{n?(n.forEach((t=>{t.indexOf(e)>-1&&t.splice(t.indexOf(e),1),t.length<2&&n.splice(n.indexOf(t),1)})),this.accountRefStore.set("refList",n,(()=>{t()}))):t()}))}getStakingReward(e){e(this.stakingRewardState)}subscribeStakingReward(){return this.stakingRewardSubject}setCurrentAccount(e,t,n){const{address:a,currentGenesisHash:r}=e,i={...e};if(a===c.GQ){const e=j.AC.getAccounts(),t=e[0],a=(null==t?void 0:t.meta.genesisHash)||"";e.length>1||!t||n?i.allGenesisHash=r||void 0:(i.address=t.address,i.currentGenesisHash=a||"",i.allGenesisHash=a||void 0)}this.keyringService.setCurrentAccount(i),t&&t()}setAccountTie(e,t){if(e!==c.GQ){const n=j.AC.getPair(e);(0,Y.vA)(n,(0,X.t)("Unable to find account")),j.AC.saveAccountMeta(n,{...n.meta,genesisHash:t})}const n=this.keyringService.currentAccount;return e===n.address&&(n.currentGenesisHash=t||c.U4,this.setCurrentAccount(n)),!0}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,X.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 switchNetworkAccount(e,t,n,a){const r=this.chainService.getChainInfoByKey(n),i=this.chainService.getChainStateByKey(n),{address:s,currentGenesisHash:o}=this.keyringService.currentAccount;return this.requestService.addConfirmation(e,t,"switchNetworkRequest",{networkKey:n,address:a},{address:a}).then((({isApproved:e})=>{if(e){const t=a||s;if(r&&!(0,g.gb)(i)&&this.enableChain(n).catch(console.error),t!==c.GQ){const e=j.AC.getPair(t);(0,Y.vA)(e,(0,X.t)("Unable to find account")),j.AC.saveAccountMeta(e,{...e.meta,genesisHash:(0,g.DZ)(r)})}(s!==a||(0,g.DZ)(r)!==o||e)&&this.setCurrentAccount({address:t,currentGenesisHash:(0,g.DZ)(r)})}return e}))}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()}getAccountAddress(){const e=this.keyringService.currentAccount.address;return""===e?null:e}getDecodedAddresses(e){let t=e;return e||(t=this.getAccountAddress()),t?t===c.GQ?this.getAllAddresses():[t]:[]}getAllAddresses(){return j.AC.getAccounts().map((e=>e.address))}async resetCrowdloanMap(e){const t=he(),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.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.currentAccount;this.dbService.updateCrowdloanStore(e,n.address,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)}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.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({address:e,password:t}){const n=j.AC.backupAccount(j.AC.getPair(e),t),a=(0,K.v)(t,(0,ae.u)(n.encoded),n.encoding.type);return{privateKey:(0,Q.X)(a.secretKey),publicKey:(0,Q.X)(a.publicKey)}}checkPublicAndSecretKey({publicKey:e,secretKey:t}){try{const n=(0,$.a)(t);if(64===n.length){const e=`0x${n}`,{phrase:t}=(0,re.E)(e);if((0,ee.qv)(t)&&(0,ee.qv)(t,256)){const t="ethereum";return{address:j.AC.createFromUri(pe(e,t),{},t).address,isValid:!0,isEthereum:!0}}return{address:"",isValid:!1,isEthereum:!0}}return{address:j.AC.keyring.addFromPair({publicKey:(0,te.V)(e),secretKey:(0,te.V)(t)}).address,isValid:!0,isEthereum:!1}}catch(e){return console.error(e),{address:"",isValid:!1,isEthereum:!1}}}getEthKeyring(e,t){return new Promise((n=>{const{privateKey:a}=this.accountExportPrivateKey({address:e,password:t});n(new(W())([a]))}))}async evmSign(e,t,n,a,i){let s,c="";const[u,d]=a;"string"==typeof u&&(0,ie.q)(u)?(c=u,s=d):"string"==typeof d&&(0,ie.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={...f.payloadAfterValidated,errors:f.errors,id:e};return this.requestService.addConfirmation(e,t,"evmSignatureRequest",m,{}).then((({isApproved:e,payload:t})=>{if(e){if(t)return t;throw new r.q(o.c2.INVALID_PARAMS,(0,X.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;if(p&&p.length>0&&d&&de.includes(d))return this.requestService.addConfirmation(e,t,d,u,{}).then((()=>{throw new r.q(o.c2.USER_REJECTED_REQUEST)}));const f=u.payloadAfterValidated,m=h||"",y={...f,errors:p},g=f.value?o.M_.TRANSFER_BALANCE:o.M_.EVM_EXECUTE,b={...f},v=this.chainService.getNativeTokenInfo(m);g===o.M_.TRANSFER_BALANCE&&(b.tokenSlug=v.slug);const _=await this.transactionService.addTransaction({transaction:y,address:y.from,chain:m,url:t,data:b,errors:p,extrinsicType:g,chainType:o.IG.EVM,estimateFee:{value:f.estimateGas,symbol:v.symbol,decimals:v.decimals||18},id:e});return new Promise(((e,t)=>{_.on("extrinsicHash",(t=>{e(t.extrinsicHash)})),_.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)||o.xu.INTERNAL_ERROR;if(i===o.xu.USER_REJECT_REQUEST||i===o.xu.UNABLE_TO_SIGN)a=new r.q(o.c2.USER_REJECTED_REQUEST);else if(i===o.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}async completeConfirmation(e){return await this.requestService.completeConfirmation(e)}async onMV3Update(){const e=await V.W.instance.getItem("mv3_migration");if(!e||"done"!==e){const e=`${chrome.runtime.getURL("index.html")}#/mv3-migration`;await(0,P.P)(e)}}async migrateMV3LocalStorage(e){try{const t=JSON.parse(e);return t.mv3_migration="done",await V.W.instance.setMap(t),this.walletConnectService.initClient().catch(console.error),!0}catch(e){return console.error(e),!1}}async onMV3Install(){await V.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)}async onHandleRemindExportAccount(){const e=await V.W.instance.getItem(u.vs);if(!e||!e.includes("done")){const e=e=>{if(""!==e.address){const e=`${chrome.runtime.getURL("index.html")}#/remind-export-account`;(0,P.P)(e).then(ne.l).catch(console.error).finally((()=>t.unsubscribe()))}else setTimeout((()=>{t.unsubscribe()}),3e3)},t=this.keyringService.currentAccountSubject.subscribe(e)}}async setStorageFromWS({key:e,value:t}){try{const n=JSON.stringify(t);return await V.W.instance.setItem(e,n),!0}catch(e){return console.error(e),!1}}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,F.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,F.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.currentAccount.address;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,H.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),this.accountRefStore.set("refList",[]),e&&(await this.priceService.setPriceCurrency(fe),this.settingService.resetWallet(),await this.priceService.setPriceCurrency(fe)),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,ie.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 ue.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,k,C,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 ue.decrypt(n,e.data),r=new Uint8Array(Object.values(a.proof_authorization_key));await(null===(k=this.chainService)||void 0===k||null===(C=k.mantaPay)||void 0===C||null===(T=C.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,M,R,N;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===(M=B.mantaPay)||void 0===M||null===(R=M.privateWallet)||void 0===R||null===(N=R.network)||void 0===N?void 0:N.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,ie.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,c.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 Z.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)}}))},23522:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var a=n(38397),r=n(18289),i=n(53191),s=n(98552),o=n(11266),c=n(17035),u=n(38495),l=n(31355),d=n(1493),p=n(1555),h=n(68468),f=n(91600),m=n(68498),y=n(19203);const g={};var b=n(20049),v=n.n(b);const _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")).fetch;function A(e,t){return async function(e,t=2e3){const n=new AbortController;let a=!1;const r=setTimeout((()=>{console.log(`Timeout on ${e}`),a=!0,n.abort()}),t);try{const t=await _(e,{signal:n.signal});return clearTimeout(r),t}catch(e){throw a||clearTimeout(r),e}}(e,t).then((e=>e.json()))}const w="https://polkadot.js.org/phishing",I={};function S(e){return e.split(".").reverse()}var x=n(90520);function k(e,t=!1,n,a){const r=n&&n.isAllowed?Object.keys(n.isAllowedMap).filter((e=>n.isAllowedMap[e])):[];let i=({type:e})=>!0;return"substrate"===a?i=({type:e})=>"ethereum"!==e:"evm"===a&&(i=({type:e})=>"ethereum"===e),Object.values(e).filter((({json:{meta:{isHidden:e}}})=>!e)).filter((({type:e})=>!!t||function(e){return!!e&&["ed25519","sr25519","ecdsa","ethereum"].includes(e)}(e))).filter(i).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})))}class C{#o={};#t;evmEventEmitterMap={};#c=m.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=t.address,a={address:n,networkKey:"",errors:[],payloadAfterValidated:t},{pair:r}=await(0,d.wM)(this.#t,e,a,[d.W4]);return this.#t.sign(e,new c.A(t),{address:n,...null==r?void 0:r.meta})}async extrinsicSign(e,t){const n=t.address,a={address:n,networkKey:"",errors:[],payloadAfterValidated:t},{pair:r}=await(0,d.wM)(this.#t,e,a,[d.W4]);return this.#t.sign(e,new u.A(t),{address:n,...null==r?void 0:r.meta})}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,s.Ky)(t,n),r=await this.#t.rpcSubscribe(e,((e,t)=>a(t)),n);return n.onDisconnect.addListener((()=>{(0,s.al)(t),(0,i.T)((()=>this.rpcUnsubscribe({...e,subscriptionId:r},n)))})),!0}rpcSubscribeConnected(e,t,n){const a=(0,s.Ky)(t,n);return this.#t.rpcSubscribeConnected(e,((e,t)=>a(t)),n),n.onDisconnect.addListener((()=>{(0,s.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")}#${p.c8}/${n}`;chrome.tabs.query({url:t},(e=>{e.map((({id:e})=>e)).filter((e=>(0,x.E)(e))).forEach((e=>(0,i.T)((()=>chrome.tabs.update(e,{url:a})))))}))}checkPassList(e){const t=(0,y.Cx)(e),n=this.#u[t];return!n||!n.pass}async checkPhishing(e){if(await async function(e,t=!0){try{const n=function(e){return S(e.replace(/https:\/\/|http:\/\/|wss:\/\/|ws:\/\//,"").split("/")[0])}(e);return function(e,t){return e.some((e=>e.length<=t.length&&e.every(((e,n)=>t[n]===e))))}((await async function(e=!0,t="*"){const n=Date.now();if(e&&I[t]&&nS(e)))},I[t]}(t,n[0])).parts,n)}catch{return!1}}(e))return this.checkPassList(e);if(this.#c){const t=await(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})(e);if(t)return this.checkPassList(e)}return!1}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,y.Cx)(e)]}async accountsListV2(e,{accountAuthType:t,anyType:n}){const a=await this.getAuthInfo(e);return k(this.#t.keyringService.accounts,n,a,(null==a?void 0:a.accountAuthType)||t)}accountsSubscribeV2(e,{accountAuthType:t},n,a){const r=(0,s.Ky)(n,a),i=this.#t.requestService.subscribeAuthorizeUrlSubject;return this.#o[n]={subscription:i.subscribe((n=>{this.getAuthInfo(e,n).then((e=>{const n=(null==e?void 0:e.accountAuthType)||t,a=this.#t.keyringService.accounts;return r(k(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,s.al)(t),n.subscription.unsubscribe(),0))}authorizeV2(e,t){return"evm"===t.accountAuthType?new Promise(((n,a)=>{this.#t.authorizeUrlV2(e,t).then(n).catch((e=>{a(new r.q(o.c2.USER_REJECTED_REQUEST))}))})):this.#t.authorizeUrlV2(e,t)}async getEvmCurrentAccount(e){return await new Promise((t=>{this.getAuthInfo(e).then((e=>{const n=k(this.#t.keyringService.accounts,!1,e,"evm").map((e=>e.address));let a=[];const r=this.#t.keyringService.currentAccount.address;if(r!==l.GQ&&r)if(n.includes(r)){const e=n.filter((e=>e!==r));e.unshift(r),a=e}else a=n;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 v().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 switchEvmChain(e,t,{params:n}){const a=n[0].chainId,i=parseInt(a,16);if((await this.getEvmState(t)).chainId===a)return null;const[s]=this.#t.findNetworkKeyByChainId(i);if(s)await this.#t.switchEvmNetworkByUrl((0,y.Cx)(t),s);else{const n=await async function(e){if(0===Object.keys(g).length){const e=await fetch("https://chainid.network/chains.json");(await e.json()).forEach((e=>{g[e.chainId]=e}))}return g[e]}(i);if(!n)throw new r.q(o.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 i,s,c,u,l,d;const p=n,h=(null==p||null===(i=p.type)||void 0===i?void 0:i.toLowerCase())||"";if("erc20"!==h&&"erc721"!==h)throw new r.q(o.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===(c=p.options)||void 0===c||!c.symbol)throw new r.q(o.c2.INVALID_PARAMS,"Unable to get contract address and token symbol");const f=(await this.getEvmState(t)).networkKey;if(!f)throw new r.q(o.c2.INTERNAL_ERROR,"The network on dApp is not supported in wallet. Please manually add the network to wallet");const m="erc20"===h?a.yH.ERC20:a.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:i,chainName:s,nativeCurrency:{decimals:c,symbol:u},rpcUrls:l}=a[0];if(i){const a=parseInt(i,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:i}]});if(l&&s){const i=l.filter((e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}));if(!i.length)throw new r.q(o.c2.INTERNAL_ERROR,"Currently support WSS provider for Substrate networks and HTTP provider for EVM network");const d=i[0],p={existentialDeposit:"0",genesisHash:"",success:!0,addressPrefix:"",evmChainId:a,decimals:c,symbol:u,paraId:null,name:s},m=(0,f.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:m,providers:{[m]: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=h.Y.NONE})).finally((()=>{y.unconfirmed=!1,this.#t.requestService.updateConfirmation(e,"addNetworkRequest",y)})),await this.#t.addNetworkConfirm(e,t,y)}throw new r.q(o.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,s.Ky)(t,n);let i=!1;const c=(e,t)=>{a({type:e,payload:t})};let u=await this.getEvmCurrentAccount(e);const d=async()=>{const t=await this.getEvmCurrentAccount(e);JSON.stringify(u)!==JSON.stringify(t)&&(c("accountsChanged",t),u=t)},p=this.#t.keyringService.currentAccountSubject.subscribe((()=>{d().catch(console.error)}));let h=(await this.getEvmState(e)).chainId;const f=async()=>{const{chainId:t}=await this.getEvmState(e);t!==h&&(c("chainChanged",t),h=t);const n=await this.getEvmCurrentAccount(e);JSON.stringify(u)!==JSON.stringify(n)&&(c("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&&!i?c("connect",{chainId:e.chainId}):!t&&i&&c("disconnect",new r.q(o.c2.CHAIN_DISCONNECTED)),i=t})).catch(console.error)})).catch(console.error)}),l.rm),g=await this.getEvmProvider(e),b={data:({method:e,params:t})=>{c("message",{type:e,data:t})},error:e=>{c("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]=c,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 r.q(o.c2.CHAIN_DISCONNECTED))}))})),new r.q(o.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 i=await this.#t.evmSign(e,t,n,a);if(i)return i;throw new r.q(o.c2.INVALID_PARAMS,"Failed to sign message")}async evmSendTransaction(e,t,{params:n}){const a=n[0],i=await this.#t.evmSendTransaction(e,t,a);if(!i)throw new r.q(o.c2.USER_REJECTED_REQUEST);return i}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:"",accountAuthType:"evm",reConfirm:!0}),await this.getEvmPermission(t,e);case"wallet_getPermissions":return await this.getEvmPermission(t,e);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 r.q(o.c2.INTERNAL_ERROR,null==e?void 0:e.toString()))}}async handleEvmSend(e,t,n,a){var r;const i=(0,s.Ky)(e,n),o=null===(r=(await this.getEvmState(t)).web3)||void 0===r?void 0:r.currentProvider;return this.checkAndHandleProviderStatus(o),o.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"].includes(null==t?void 0:t.method)}async addPspToken(e,t,{genesisHash:n,tokenInfo:i}){const s=i.type;if("psp22"!==s&&"psp34"!==s)throw new r.q(o.c2.INVALID_PARAMS,"Assets type {{tokenType}} is not supported".replace("{{tokenType}}",s));if(!i.address||!i.symbol)throw new r.q(o.c2.INVALID_PARAMS,"Unable to get contract address and token symbol");const[c]=this.#t.findNetworkKeyByGenesisHash(n);if(!c)throw new r.q(o.c2.INTERNAL_ERROR,"The network on dApp is not supported in wallet. Please manually add the network to wallet");if(!this.#t.getChainStateByKey(c).active){await this.#t.enableChain(c,!1);const e=this.#t.getSubstrateApi(c);await e.isReady}const u="psp22"===s?a.yH.PSP22:a.yH.PSP34,l={slug:"",type:u,name:i.symbol||"",contractAddress:i.address,symbol:i.symbol||"",decimals:i.decimals||0,originChain:c,contractError:!1,validated:!1};return this.#t.validateCustomAsset({type:u,contractAddress:i.address,originChain:c}).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,i){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)"===t||this.isEvmPublicRequest(t,n)||await this.#t.ensureUrlAuthorizedV2(a).catch((e=>{throw t.startsWith("evm")?new r.q(o.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,i);case"pub(rpc.startProvider)":return this.rpcStartProvider(n,i);case"pub(rpc.subscribe)":return this.rpcSubscribe(n,e,i);case"pub(rpc.subscribeConnected)":return this.rpcSubscribeConnected(n,e,i);case"pub(rpc.unsubscribe)":return this.rpcUnsubscribe(n,i);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.accountsSubscribeV2(a,n,e,i);case"pub(accounts.unsubscribe)":return this.accountsUnsubscribe(a,n);case"evm(events.subscribe)":return await this.evmSubscribeEvents(a,e,i);case"evm(request)":return await this.handleEvmRequest(e,a,n);case"evm(provider.send)":return await this.handleEvmSend(e,a,i,n);default:throw new Error(`Unable to handle message of type ${t}`)}}}},79782:(e,t,n)=>{"use strict";n.a(e,(async(e,a)=>{try{n.d(t,{V:()=>d});var r=n(1555),i=n(15146),s=n(33138),o=n(38563),c=n(23522),u=n(60184),l=e([o,s]);[o,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.Ay(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)}}))},38653:(e,t,n)=>{"use strict";n.d(t,{P:()=>le});var a=n(45654),r=n(38397),i=n(11266),s=n(31355);const o=new(n(83141).O);var c=n(63091),u=n(19203),l=n(12561),d=n(82823),p=n.n(d);const h={[r.$y.IN_AUCTION]:i.tf.ONGOING,[r.$y.WITHDRAW]:i.tf.FAILED,[r.$y.FAILED]:i.tf.FAILED,[r.$y.WON]:i.tf.COMPLETED},f=(0,l.j)("crowdloan-funds"),m=(async()=>function(e){const t={};return e.forEach((e=>{e.slug&&(t[e.slug]=e)})),t}(await(0,l.j)("chains")))();function y(e,t,n,a){const{auctionIndex:r,endTime:s,firstPeriod:o,fundId:c,lastPeriod:u,paraId:l,startTime:d,status:f}=t,m=e.api.derive.crowdloan.ownContributions(l,n,(e=>{let n=new(p())(0);Object.values(e).forEach((e=>{n=n.add(e.toBn())}));const m={state:i.Xf.READY,paraState:h[t.status],contribute:n.toString(),fundId:c,paraId:l,status:f,startTime:d,endTime:s,auctionIndex:r,firstPeriod:o,lastPeriod:u};a(m)}));return()=>{m.then((e=>{e()})).catch(console.error)}}var g=n(13587);class b{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,u.WX)(e)}}class v extends b{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,u.gU)(e)?e:e.includes("ipfs://")?(0,g.GA)()+e.split("ipfs://")[1]:(0,g.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 A(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:o&&o.description?o.description:null==c?void 0:c.description,externalUrl:"https://apps.acala.network/portfolio/nft/"+i,image:o&&o.image?this.parseUrl(null==o?void 0:o.image):null==c?void 0:c.image,collectionId:i,chain:this.chain,owner:e},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 _={"Content-Type":"application/json"},A=e=>{let t=e;return e?(t=(0,g.GA)()+e+"/metadata.json",fetch(t,{method:"GET",headers:_}).then((e=>e.json()))):null};class w extends b{constructor(e,t,n){super(n,e,t)}getMetadata(e){let t=e;if((0,u.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=[],r=[];await Promise.all(n.map((async n=>{const s=this.parseTokenId(n.classId),o=this.parseTokenId(n.tokenId);a.includes(s)||a.push(s),r.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:i.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}}var I=n(74873),S=n(28917);class x extends b{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,u.gU)(e)?e:e.includes("ipfs://")?g.k8+e.split("ipfs://")[1]:g.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(`${g.TY}/${e.classId}/${e.tokenId}/metadata.json`).then((e=>e.json())):t.metadata.startsWith("/avatar/")?await fetch(g.Tc+t.metadata).then((e=>e.json())):await fetch(g.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=I.Yz;try{r=(0,S.v)(a)}catch(e){console.warn("Error parsing metaverse id",e)}return{name:`${n} #${e}`,metaverseId:r.toString()}}return await fetch(g.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))))}}var k=n(89640);class C extends b{endpoint=g.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(C.parseNftRequestRemark())});return(await e.json()).data.remarks}async getNftMap(){const e={};return(await this.getAllInscriptions()).forEach((t=>{const n=JSON.parse((0,k.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(C.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 i of a){const a="AVAIL-OG-sqsu5a91qbu0s4oj3ldg8lrf"===(r=i)?JSON.parse('{"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"}'):"AVAIL-OG-zdttjyidincrjgsmwqbxoghz"===r?JSON.parse('{"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"}'):"AVAIL-OG-zy0n66yqtgw6z139hnf5vdxb"===r?JSON.parse('{"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"}'):void 0;if(!a)continue;const s=this.handleProperties(a),o={id:n,chain:this.chain,owner:n,name:a.name,image:a.imgUrl,collectionId:a.tick,properties:s};if(e.updateItem(this.chain,o,n),!t[a.tick]){const n={collectionId:a.tick,chain:this.chain,collectionName:"Avail OG"};t[a.tick]=n,e.updateCollection(this.chain,n)}}}var r})))}catch(e){console.error("Failed to fetch blob inscription",e)}}async fetchNfts(e){try{await this.handleNfts(e)}catch(e){return 0}return 1}}var T=n(80562),E=n(91600),P=n(20258);class O extends b{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,g.GA)()+e.split("ipfs://")[1]:(0,g.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,E._b)(e),i=new this.evmApi.api.eth.Contract(T.Po,a);let s,o=!1;const c={};if(await Promise.all(this.addresses.map((async t=>{if(!(0,P.q)(t))return;const u=[],l=await i.methods.balanceOf(t).call();if(0===Number(l))return;const d=[];for(let e=0;e{const l=await i.methods.tokenOfOwnerByIndex(t,c).call(),d=await i.methods.tokenURI(l).call(),p=this.parseUrl(d),h=l.toString();if(u.push(h),p)try{const i=await fetch(p),c=i&&i.ok&&await i.json();if(!c)return;const u=this.parseMetadata(c);u.collectionId=a,u.id=h,u.owner=t,u.type=r.yH.ERC721,u.originAsset=e.slug,u&&(u.image&&(s=u.image),n.updateItem(this.chain,u,t),o=!0)}catch(e){console.error(`${this.chain}`,e)}}))),c[t]=u}catch(e){console.error(`${this.chain}`,e)}}))),o){const r={collectionId:a,collectionName:t,image:s||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}}class B extends b{constructor(e,t,n){super(n,e,t)}parseUrl(e){if(e&&0!==e.length)return(0,u.gU)(e)?e:e.includes("ipfs://")?(0,g.GA)()+e.split("ipfs://")[1]:(0,g.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 M(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 M=e=>{let t=e;return e?(t=(0,g.GA)()+e+"/metadata.json",fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json()))):null};var R=n(88407);const N=(e,t,n,a)=>{const r=JSON.parse(e.value);if("p"in r){const e={};for(const[t,n]of Object.entries(r))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 i=[r.op.charAt(0).toUpperCase()+r.op.slice(1)];void 0!==r.amt&&i.push(r.amt),i.push(r.tick);const o=i.join(" ");return{chain:n,collectionId:s.XM,id:t.extrinsic_hash,description:JSON.stringify(r),name:o,owner:a,properties:e}}};class D extends b{constructor(e,t,n){super(t,void 0,e),this.subscanChain=n,this.subscanService=R.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=N(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=N(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}}var V;!function(e){e.BIRD_KANARIA="bird_kanaria",e.KANARIA="kanaria",e.SINGULAR_V1="singular_v1",e.SINGULAR_V2="singular_v2"}(V||(V={}));const L="KANBIRD";class U extends b{constructor(e,t){super(t,null,e)}async getMetadata(e){let t=e;if((0,u.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:g.Rp+e,source:V.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(L)&&(n=V.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,r=n&&n.metadata?n.metadata:t.metadata,i=await this.getMetadata(r);t.source===V.BIRD_KANARIA?a.push({...t,metadata:i,owner:e}):t.source===V.KANARIA?a.push({...t,metadata:{...i,image:this.parseUrl(null==i?void 0:i.image)},owner:e}):t.source===V.SINGULAR_V1?a.push({...t,metadata:{description:null==i?void 0:i.description,name:null==i?void 0:i.name,attributes:null==i?void 0:i.attributes,animation_url:this.parseUrl(null==i?void 0:i.animation_url),image:this.parseUrl(null==i?void 0:i.image)},owner:e}):t.source===V.SINGULAR_V2&&(t.id.toLowerCase().includes(L)||a.push({...t,metadata:{description:null==i?void 0:i.description,name:null==i?void 0:i.name,attributes:null==i?void 0:i.attributes,properties:null==i?void 0:i.properties,animation_url:this.parseUrl(null==i?void 0:i.animation_url),image:this.parseUrl(null==i?void 0:i.mediaUri)},owner:e}))}catch(e){console.log("error fetching RMRK NFT",e)}}))),a}async handleNft(e,t){let n=[];const a=[];try{const c=(0,u.le)(e,2);if(n=await this.getAllByAccount(c),n.length<=0)return;const l=[];for(const c of n){var r,s,o;const n={id:null==c?void 0:c.id,name:null==c||null===(r=c.metadata)||void 0===r?void 0:r.name,image:this.parseUrl(c.image?c.image:c.metadata.image?c.metadata.image:c.metadata.animation_url),description:null==c||null===(s=c.metadata)||void 0===s?void 0:s.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===(o=c.metadata)||void 0===o?void 0:o.properties,chain:this.chain,rmrk_ver:c.source&&c.source===V.SINGULAR_V1?i.tI.VER_1:i.tI.VER_2,owner:c.owner};t.updateItem(this.chain,n,e);let u="";u=c.source===V.SINGULAR_V1?g.rM+c.collectionId:g.a9+c.collectionId,l.includes(u)||(a.push({chain:"",collectionId:c.collectionId}),l.push(u.replace(" ","%20")))}const d=[];await Promise.all(l.map((async e=>{try{const t=await fetch(e,{method:"GET"}).then((e=>e.json())),n=t[0];return n&&"metadata"in n&&d.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 p={};await Promise.all(d.map((async e=>{let t={};try{e.url&&(t=await fetch(null==e?void 0:e.url,{method:"GET"}).then((e=>e.json()))),p[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:p[e.collectionId]?p[e.collectionId].name:null,image:p[e.collectionId]?this.parseUrl(p[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}}var H=n(45723),F=n(14143),K=n(76515);class j extends b{constructor(e,t){super(e,void 0,t)}parseUrl(e){return(0,u.WX)(e,g.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="",r="";["unique_network"].includes(this.chain)?(a=g.eJ,r=(0,F.j)((0,K.F)(e),7391)):["quartz"].includes(this.chain)?(a=g.Cd,r=(0,F.j)((0,K.F)(e),255)):["opal"].includes(this.chain)?(a=g.v0,r=e):H.ER.unique_evm.includes(this.chain)&&(a=g.eJ,r=e.toLowerCase());const i=await fetch(a,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(j.parseNftRequest(r))}),s=await i.json();return null==s||null===(t=s.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}}var q=n(78857),z=n(44869);class G extends b{endpoint=g.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,q.d)((0,z.X)((0,K.F)(e))),r=await fetch(this.endpoint,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(G.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}}var W=n(95821),X=n(17540),Z=n(1676);const J="https://a0-test-api.artzero.io/getCollectionByAddress",Y="https://a0-api.artzero.io/getCollectionByAddress",Q="https://astar-api.artzero.io/getCollectionByAddress";function $(e){return"alephTest"===e?"https://a0-test-api.artzero.io/getImage":"astar"===e?"https://astar-api.artzero.io/getImage":"https://a0-api.artzero.io/getImage"}function ee(e){return"alephTest"===e?"https://a0-test-api.artzero.io/getJSON":"astar"===e?"https://astar-api.artzero.io/getJSON":"https://a0-api.artzero.io/getJSON"}function te(e){return"astar"===e?"https://astar.artzero.io/#/marketplace":"https://a0.artzero.io/#/marketplace"}async function ne(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){var n;fetch((n=e,"alephTest"===n?J:"astar"===n?Q:Y),{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)}class ae extends b{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,X.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,u.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=`${$(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((a=this.chain,"alephTest"===a?J:"astar"===a?Q:Y),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});var a;const r=n&&n.ok&&await n.json();if(!r)return;const i=r.ret[0].avatarImage,s=this.parseFeaturedTokenUri(i);if(!s)return;const o=`${$(this.chain)}?input=${s}&size=500`,c=await fetch(o);return await c.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(`${ee(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=te(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 i={chain:"",collectionId:"",id:"",owner:"",name:n},s=a&&!Z.Fl.includes(e.address.toString()),o=await e.query[(0,W.ZL)(e.address.toString())](t,{gasLimit:(0,X.a)(null===(r=this.substrateApi)||void 0===r?void 0:r.api)},(0,W.i$)(e.address.toString())?{bytes:n}:n);if(o.output){let t=!1;const n=o.output.toJSON(),a=(0,W.vy)(e.address.toString())?n.ok.ok:n.Ok||n.ok;if(s){const e=this.parseFeaturedTokenUri(a);if(e){const n=await fetch(`${ee(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 c;t=n&&n.ok&&await n.json(),Z.Fl.includes(e.address.toString())&&(t=null===(c=t)||void 0===c?void 0:c.metadata)}}if(!t)return i;i.name=t.name,i.description=t.description,i.externalUrl=t.external_url;const r=t.image?t.image:t.image_url;s?(i.image=await this.parseFeaturedNftImage(r),i.externalUrl=te(this.chain)):i.image=this.parseUrl(r);const u={},l=t.attributes||t.traits;l&&(l.forEach((e=>{u[e.trait_type]={value:e.value}})),i.properties=u)}return i}async getItemsByCollection(e,t,n,a,i,s){let o,c=!1;const u=(0,E._b)(t),l={};if(await Promise.all(this.addresses.map((async n=>{var d,p;if((0,P.q)(n))return;const h=[],f=await e.query["psp34::balanceOf"](n,{gasLimit:(0,X.a)(null===(d=this.substrateApi)||void 0===d?void 0:d.api)},n),m=null==f||null===(p=f.output)||void 0===p?void 0:p.toJSON(),y=f.output?m.ok||m.Ok:"0";if(0===parseInt(y))return;const g=[];for(let e=0;e{var d;const p=await e.query["psp34Enumerable::ownersTokenByIndex"](n,{gasLimit:(0,X.a)(null===(d=this.substrateApi)||void 0===d?void 0:d.api)},n,l);if(p.output){const l=p.output.toHuman();let d=l.Ok.Ok||l.ok.ok;const y=Object.values(d)[0].replaceAll(",","");let g;(0,W.i$)(e.address.toString())&&(d={bytes:y}),h.push(y);try{if(s){var f,m;const t=null===(m=(await e.query["psp34Traits::getAttributes"](n,{gasLimit:(0,X.a)(null===(f=this.substrateApi)||void 0===f?void 0:f.api)},d,["metadata"])).output)||void 0===m?void 0:m.toJSON();g=(t.ok||t.Ok)[0]}}catch(e){console.debug(e)}if(g){const e=await this.processOnChainMetadata(y,!1,g);e.collectionId=u,e.chain=this.chain,e.type=r.yH.PSP34,e.id=y,e.owner=n,e.onChainOption=d,e.originAsset=t.slug,a.updateItem(this.chain,e,n),c=!0,i||o||!e.image||(o=e.image)}else{const s=await this.processOffChainMetadata(e,n,y,i);s.collectionId=u,s.chain=this.chain,s.type=r.yH.PSP34,s.id=y,s.owner=n,s.onChainOption=d,s.originAsset=t.slug,a.updateItem(this.chain,s,n),c=!0,i||o||!s.image||(o=s.image)}}}))),l[n]=h}catch(e){console.error(`${this.chain}`,e)}}))),i){const e=await this.parseFeaturedCollectionImage(u);e&&(o=e)}if(c){const e={collectionId:u,collectionName:n,image:o||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,W.WM)(n,(0,E._b)(t)),[r,i]=await Promise.all([this.isAttributeStoredOnChain(a),ne(this.chain,(0,E._b)(t))]);return await this.getItemsByCollection(a,t,t.name,e,i,r)})))}}var re=n(31882);class ie extends b{constructor(e,t,n){super(n,e,t)}getMetadata(e){let t=e;if((0,u.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=[],r=[];await Promise.all(n.map((async n=>{const s=this.parseTokenId(n.classId),o=this.parseTokenId(n.tokenId);a.includes(s)||a.push(s),r.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:i.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}}function se(e,t,n){const[a,r]=(0,u.ND)(n);return H.ER.acala.includes(e)?[new v(t,a,e)]:H.ER.karura.includes(e)?[new B(t,a,e)]:H.ER.rmrk.includes(e)?[new U(a,e)]:H.ER.statemine.includes(e)||H.ER.statemint.includes(e)?[new w(t,a,e),new ie(t,a,e)]:H.ER.unique_network.includes(e)?[new j(e,a)]:H.ER.unique_evm.includes(e)?[new j(e,r)]:H.ER.bitcountry.includes(e)?[new x(t,a,e)]:H.ER.vara.includes(e)?[new G(e,a)]:H.ER.avail.includes(e)?[new C(e,a)]:null}const oe=["account.updateCurrent","account.add","account.remove","asset.updateState","chain.updateState","chain.add","mantaPay.initSync","mantaPay.enable"];var ce=n(87574);const ue=new class{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[t,n]=(0,u.ND)(e);for(const e of this.handlers){const a=e.isEthereum?n:t;e.setAddresses(a)}}setupNftContracts(e){this.smartContractNfts=e;for(const t of this.handlers)if(t instanceof O||t instanceof ae){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[e,t]=(0,u.ND)(this.addresses);Object.entries(this.chainInfoMap).forEach((([n,a])=>{if((0,E.jO)(a)&&this.substrateApiMap[n]){const t=se(n,this.substrateApiMap[n],e);t&&t.length&&this.handlers.push(...t)}if((0,E.uu)(a)&&this.evmApiMap[n]){const e=function(e,t,n){const[,a]=(0,u.ND)(n);return new O(t,a,e)}(n,this.evmApiMap[n],t);e&&this.handlers.push(e)}if("unique_evm"===n){const e=se(n,null,t);e&&e.length&&this.handlers.push(...e)}if((0,E.cC)(a)&&this.substrateApiMap[n]){const t=function(e,t,n){const[a]=(0,u.ND)(n);return new ae(t,a,e)}(n,this.substrateApiMap[n],e);t&&!this.handlers.includes(t)&&this.handlers.push(t)}if((0,E.WB)(n)&&re.y3){var r;const t=null===(r=a.extraInfo)||void 0===r?void 0:r.subscanSlug;if(t){const a=((e,t,n)=>new D(n,e,t))(n,t,e);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})})))}};class le{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,ce.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.currentAccount)||void 0===e?void 0:e.address;t&&this.subscribeCrowdloans(t,this.state.getSubstrateApiMap()),this.eventHandler=(e,t)=>{var n;const a=this.state.getServiceInfo();if(!t.some((e=>oe.includes(e))))return;const r=null===(n=a.currentAccountInfo)||void 0===n?void 0:n.address;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.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 l=async function(e,t,n){const l={},d={},g=await f,b=await m;if(g.forEach((e=>{const t=e.chain;(function(e,t,n){return!e[t]||!n.auctionIndex&&n.status===r.$y.IN_AUCTION||n.auctionIndex>e[t].auctionIndex})(d,t,e)&&(d[t]=e)})),Object.keys(t).includes(a.zF.KUSAMA)&&Object.keys(t).includes(a.zF.POLKADOT)){const r=Date.now(),f=await t[a.zF.POLKADOT].isReady,m=await t[a.zF.KUSAMA].isReady,g=(0,u.ND)(e)[0],v=g.map((e=>o.createType("AccountId",e).toHex()));if(0===e.length)return;Object.values(d).forEach((e=>{var t;const o=e.chain,d=new Date(e.endTime).getTime(),_=e.relayChain,A=null===(t=b[o])||void 0===t?void 0:t.substrateInfo;if(o&&_&&h[e.status]&&e.paraId&&d>r&&A){const t=e=>{n(o,e)};if(e.paraId=A.crowdloanParaId||A.paraId||e.paraId,o===a.zF.ACALA){const n=g.map((e=>(0,u.le)(e,10,!1)));l.acala=((e,t,n)=>{const{auctionIndex:a,endTime:r,firstPeriod:o,fundId:u,lastPeriod:l,paraId:d,startTime:f,status:m}=t,y=h[t.status],g=()=>{Promise.all(e.map((e=>(0,c.x6)(`https://api.polkawallet.io/acala-distribution-v2/crowdloan?account=${e}`)))).then((e=>{let t=new(p())(0);e.forEach((e=>{var n,a,r;t=t.add(new(p())((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 s={state:i.Xf.READY,paraState:y,contribute:t.toString(),fundId:u,paraId:d,status:m,startTime:f,endTime:r,auctionIndex:a,firstPeriod:o,lastPeriod:l};n(s)})).catch(console.error)};g();const b=setInterval(g,s.$P);return()=>{clearInterval(b)}})(n,e,t)}else _===a.zF.POLKADOT?l[o]=y(f,e,v,t):_===a.zF.KUSAMA&&(l[o]=y(m,e,v,t))}}))}return()=>{Object.values(l).forEach((e=>{e&&e()}))}}(e,t,((e,t)=>{this.state.setCrowdloanItem(e,t)}));if(!n)return()=>{l.then((e=>null==e?void 0:e())).catch(this.logger.warn)};l.then((e=>null==e?void 0:e())).catch(this.logger.warn)}subscribeNft(e,t,n,a,r){const i=this.state.getDecodedAddresses(e);i.length&&this.initNftSubscription(i,t,n,a,r)}initNftSubscription(e,t,n,a,r){ue.setChainInfoMap(r),ue.setDotSamaApiMap(t),ue.setWeb3ApiMap(n),ue.setAddresses(e),ue.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.currentAccount)||void 0===e?void 0:e.address;this.subscribeCrowdloans(t,this.state.getSubstrateApiMap()),await(0,u.j4)(1800)}}},3663:(e,t,n)=>{"use strict";n.d(t,{o:()=>Y});var a=n(36508),r=n(11266),i=n(35845),s=n(9492);const o={[r.hh.NETWORK_ERROR]:{message:(0,i.c)("Network is inactive. Please enable network"),code:void 0},[r.hh.TOKEN_ERROR]:{message:(0,i.c)("Token is not supported"),code:void 0},[r.hh.TIMEOUT]:{message:(0,i.c)("Unable to get balance. Please re-enable the network"),code:void 0},[r.hh.GET_BALANCE_ERROR]:{message:(0,i.c)("Unable to get balance. Please re-enable the network"),code:void 0}};class c extends a.T{constructor(e,t,n){const a=o[e];super(e,t||(0,s.t)((null==a?void 0:a.message)||"")||e,null==a?void 0:a.code,n),this.errorType=e}}var u=n(31355),l=n(97245),d=n(45654),p=n(71672);function h(){return{totalFee:[p.bR,p.bR],steps:[p.q9,{id:1,type:p.o2.TRANSFER,name:"Transfer"}]}}var f=n(14875),m=n(91600),y=n(1555),g=n(37310);class b extends g.A{constructor(){super(y.Jb?`${y.Jb}DetectBalanceCache`:null)}}var v=n(37550),_=n(73509),A=n(19203),w=n(73109),I=n(25923),S=n(24318),x=n(96483);class k{constructor(e={}){this._map=e,this._mapSubject=new I.t(e)}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.computeAllAccountBalance(),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()}computeAllAccountBalance(){const e={},t={};Object.keys(this._map).filter((e=>!(0,A.pb)(e))).forEach((e=>{Object.keys(this._map[e]).forEach((n=>{t[n]||(t[n]=[]),t[n].push(this._map[e][n])}))})),Object.entries(t).forEach((([t,n])=>{e[t]=((e,t,n)=>{const a=e.map((e=>e.state));return{address:t,tokenSlug:n,free:x.A.sum.apply(null,e.map((e=>e.free))).toFixed(),locked:x.A.sum.apply(null,e.map((e=>e.locked))).toFixed(),state:a.every((e=>e===r.Xf.NOT_SUPPORT))?r.Xf.NOT_SUPPORT:a.some((e=>e===r.Xf.READY))?r.Xf.READY:r.Xf.PENDING}})(n,u.GQ,t)})),this._map[u.GQ]=e}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()}}var C=n(38397),T=n(63163),E=n(12598),P=n(82823),O=n.n(P);function B({addresses:e,assetMap:t,callback:n,chainInfo:a,evmApi:i}){const s=a.slug,o=(0,T.$)(t,s,[C.yH.ERC20]),c={};Object.entries(o).forEach((([e,t])=>{c[e]=(0,E.Ji)((0,m._b)(t),i)}));const l=()=>{Object.values(o).map((async t=>{try{const a=c[t.slug],i=(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(O())(n||0).toString(),locked:"0",state:r.Xf.READY})));n(i)}catch(e){console.log(t.slug,e)}}))};l();const d=setInterval(l,u.eC);return()=>{clearInterval(d)}}var M=n(12688),R=n(39572);var N=n(13687),D=n(95821),V=n(17540),L=n(45723),U=n(74873),H=n(9231),F=n(37475),K=n(44869),j=n(76515);const q=async({addresses:e,callback:t,chainInfo:n,extrinsicType:a,substrateApi:i})=>{var s,o;const c="query_system_account",u="query_nominationPools_poolMembers",l=!(null===(s=i.api.tx)||void 0===s||null===(o=s.nominationPools)||void 0===o||!o.migrateDelegation),d=[{section:"query",module:c.split("_")[1],method:c.split("_")[2],args:e}];l||d.push({section:"query",module:u.split("_")[1],method:u.split("_")[2],args:e});const p=i.subscribeDataWithMulti(d,(i=>{const s=i[c],o=i[u],d=s.map(((t,i)=>{const s=t,c=(0,N.cW)(s,(0,m.fK)(n),a);let u=(0,N.zA)(s)-c;if(!l){const e=o[i];u+=e?function(e){return BigInt(e.points)}(d=e)+function(e){return Object.values(e.unbondingEras).map((e=>BigInt(e))).reduce(((e,t)=>e+t),BigInt(0))}(d):BigInt(0)}var d;return{address:e[i],tokenSlug:(0,m.iD)(n),free:c.toString(),locked:u.toString(),state:r.Xf.READY,metadata:s}}));t(d)}));return()=>{p.unsubscribe()}},z=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:i,substrateApi:s})=>{const o="query_foreignAssets_account",c=(0,T.$)(t,a.slug,[C.yH.LOCAL]),u=await Promise.all(Object.values(c).map((t=>{try{if((0,m.wq)(t)){const a=[{section:"query",module:o.split("_")[1],method:o.split("_")[2],args:e.map((e=>[(0,m.px)(t)||(0,l.Zw)((0,m.q6)(t),3),e]))}];return s.subscribeDataWithMulti(a,(a=>{const s=a[o].map(((n,a)=>{const s=n,o=function(e,t,n){const a=(0,R.bF)(M.a.PalletAssetsAssetAccount,n);if(!e||"Liquid"!==e.status)return BigInt(0);const r=(0,R.je)(t,a);return BigInt(e.balance)-r}(s,(0,m.g_)(t),i),c=(u=s)&&"Liquid"!==u.status?BigInt(u.balance):BigInt(0);var u;return{address:e[a],tokenSlug:t.slug,free:o.toString(),locked:c.toString(),state:r.Xf.READY}}));n(s)}))}}catch(e){console.warn(e)}})));return()=>{u.forEach((e=>{e&&e.unsubscribe()}))}},G=({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:i})=>{const s=a.slug,o={},c=(0,T.$)(t,s,[C.yH.PSP22]);Object.entries(c).forEach((([e,t])=>{o[e]=(0,D.d4)(i.api,(0,m._b)(t))}));const l=()=>{Object.values(c).map((async t=>{try{const a=o[t.slug],s=await Promise.all(e.map((async e=>{try{var n;const o=await a.query["psp22::balanceOf"](e,{gasLimit:(0,V.a)(i.api)},e),c="ok"in(s=null==o||null===(n=o.output)||void 0===n?void 0:n.toPrimitive())?s.ok:"Ok"in s?s.Ok:void 0,u=c?new x.A(c).toString():"0";return{address:e,tokenSlug:t.slug,free:u,locked:"0",state:r.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:r.Xf.READY}}var s})));n(s)}catch(e){console.warn(t.slug,e)}}))};l();const d=setInterval(l,u.eC);return()=>{clearInterval(d)}},W=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:i,includeNativeToken:s,substrateApi:o})=>{const c="query_tokens_accounts",u=s?[C.yH.NATIVE,C.yH.LOCAL]:[C.yH.LOCAL],l=(0,T.$)(t,a.slug,u),d=await Promise.all(Object.values(l).map((t=>{try{const a=[{section:"query",module:c.split("_")[1],method:c.split("_")[2],args:e.map((e=>[e,(0,m.px)(t)||(0,m.AZ)(t)]))}];return o.subscribeDataWithMulti(a,(a=>{const s=a[c].map(((n,a)=>{const s=n,o=function(e,t,n){const a=(0,R.bF)(M.a.OrmlTokensAccountData,n),r=(0,R.je)(t,a);return BigInt(e.free)-(0,R.Up)(BigInt(e.frozen),r)}(s,(0,m.g_)(t),i),c=(u=s,BigInt(u.reserved)+BigInt(u.frozen));var u;return{address:e[a],tokenSlug:t.slug,state:r.Xf.READY,free:o.toString(),locked:c.toString()}}));n(s)}))}catch(e){console.warn(e)}})));return()=>{d.forEach((e=>{e&&e.unsubscribe()}))}},X=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:i,substrateApi:s})=>{const o="query_assets_account",c=(0,T.$)(t,a.slug,[C.yH.LOCAL]);Object.values(c).forEach((e=>{L.nY.includes(e.originChain)&&e.symbol.startsWith(L.NB)&&delete c[e.slug]}));const u=await Promise.all(Object.values(c).map((t=>{try{const a=(0,m.AZ)(t);if("-1"===a)return;const c=[{section:"query",module:o.split("_")[1],method:o.split("_")[2],args:e.map((e=>[a,e]))}];return s.subscribeDataWithMulti(c,(a=>{const s=a[o].map(((n,a)=>{const s=n,o=function(e,t,n){const a=(0,R.bF)(M.a.PalletAssetsAssetAccount,n),r=(0,R.je)(t,a);let i=BigInt(0);return e?(["Liquid"].includes(e.status)&&(i=BigInt(e.balance)-r),i):BigInt(0)}(s,(0,m.g_)(t),i),c=function(e){let t=BigInt(0);return e?(["Liquid"].includes(e.status)||(t=BigInt(e.balance)),t):t}(s);return{address:e[a],tokenSlug:t.slug,free:o.toString(),locked:c.toString(),state:r.Xf.READY}}));n(s)}))}catch(e){console.warn(e)}})));return()=>{u.forEach((e=>{e&&e.unsubscribe()}))}},Z=async({addresses:e,assetMap:t,callback:n,chainInfo:a,extrinsicType:i,substrateApi:s})=>{const o="query_ormlTokens_accounts",c=(0,T.$)(t,a.slug,[C.yH.LOCAL]),u=Object.values(c).map((t=>{try{const a=[{section:"query",module:o.split("_")[1],method:o.split("_")[2],args:e.map((e=>[e,(0,m.px)(t)]))}];return s.subscribeDataWithMulti(a,(a=>{const s=a[o].map(((n,a)=>{const s=n,o=function(e,t,n){const a=(0,R.bF)(M.a.OrmlTokensAccountData,n),r=(0,R.je)(t,a),i=BigInt(e.frozen);return BigInt(e.free)-(0,R.Up)(i,r)}(s,(0,m.g_)(t),i),c=function(e){const t=BigInt(e.frozen);return BigInt(e.reserved)+t}(s);return{address:e[a],tokenSlug:t.slug,state:r.Xf.READY,free:o.toString(),locked:c.toString()}}));n(s)}))}catch(e){return void console.warn(e)}}));return()=>{u.forEach((e=>{e&&e.unsubscribe()}))}};function J(e,t,n,a,i,s,o,c,l){const d=Object.fromEntries(Object.entries(a).filter((([e])=>n.includes(e)))),p=Object.fromEntries(Object.entries(i).filter((([e])=>t.includes(e)))),h=Object.values(p).map((async t=>{const n=t.slug,[a,i]=((e,t)=>{const n=(0,m.d)(t),[a,r]=(0,A.ND)(e);if(n)return[r,a];{const e=[],n=[];return a.forEach((a=>{const r=(e=>{try{const t=w.Ay.getPair(e);return t?{address:t.address,type:t.type,...t.meta}:null}catch(e){return console.warn(e),null}})(a);if(r)if(r.isHardware)if(r.isGeneric)e.push(a);else{const i=r.availableGenesisHashes||[],s=(0,m.DZ)(t);i.includes(s)?e.push(a):n.push(a)}else e.push(a);else e.push(a)})),[e,[...n,...r]]}})(e,t);if(i.length){const e=(0,T.$)(d,n,[C.yH.NATIVE,C.yH.ERC20,C.yH.PSP22,C.yH.LOCAL,C.yH.GRC20,C.yH.VFT]),t=(new Date).getTime();Object.values(e).forEach((e=>{const n=i.map((n=>({address:n,tokenSlug:e.slug,free:"0",locked:"0",state:r.Xf.NOT_SUPPORT,timestamp:t})));c(n)}))}const p=o[n];if((0,m.Rz)(t))return function(e){var t;const{addresses:n,assetMap:a,callback:i,chainInfo:s,evmApi:o}=e,c=s.slug,l=(0,T.$)(a,c,[C.yH.NATIVE]),d=(null===(t=Object.values(l)[0])||void 0===t?void 0:t.slug)||"";function p(){(async function(e,t){return await Promise.all(e.map((async e=>{try{return await t.api.eth.getBalance(e)}catch(e){return"0"}})))})(n,o).then((e=>e.map(((e,t)=>({address:n[t],tokenSlug:d,state:r.Xf.READY,free:new(O())(e||"0").toString(),locked:"0"}))))).catch((e=>(console.error(`Error on get native balance with token ${d}`,e),n.map((e=>({address:e,tokenSlug:d,state:r.Xf.READY,free:"0",locked:"0"})))))).then((e=>{i(e)})).catch(console.error)}p();const h=setInterval(p,u.H9),f=B(e);return()=>{clearInterval(h),f&&f()}}({addresses:a,assetMap:d,callback:c,chainInfo:t,evmApi:p});const h=await s[n].isReady;return(async(e,t,n,a,i,s,o)=>{let c,l,d,p,h,f,y;const g=t.slug,b={addresses:e,chainInfo:t,assetMap:n,callback:s,extrinsicType:o},v={...b,substrateApi:a};L.Wy.kintsugi.includes(g)||L.Wy.genshiro.includes(g)||L.Wy.equilibrium_parachain.includes(g)||(c=await q(v));try{L.Wy.bifrost.includes(g)?l=await W(v):L.Wy.kintsugi.includes(g)?l=await W({...v,includeNativeToken:!0}):L.Wy.statemine.includes(g)?l=await X(v):L.Wy.genshiro.includes(g)||L.Wy.equilibrium_parachain.includes(g)?l=await(async({addresses:e,assetMap:t,callback:n,chainInfo:a,includeNativeToken:i,substrateApi:s})=>{const o=a.slug,c=i?[C.yH.NATIVE,C.yH.LOCAL]:[C.yH.LOCAL],u=(0,T.$)(t,o,c);try{const t=await s.api.query.system.account.multi(e,(t=>{Object.values(u).forEach((a=>{const i=(0,m.AZ)(a),s=t.map(((t,n)=>{const s=JSON.parse(t.data.toString()).v0.balance.find((e=>e[0]===parseInt(i))),o=s?new(O())(new x.A(s[1].positive).toString()):U.Yz;return{address:e[n],free:o.toString(),locked:"0",state:r.Xf.READY,tokenSlug:a.slug}}));n(s)}))}));return()=>{t()}}catch(t){return Object.values(u).forEach((t=>{const a=e.map((e=>({address:e,free:"0",locked:"0",state:r.Xf.READY,tokenSlug:t.slug})));n(a)})),()=>{}}})({...v,includeNativeToken:!0}):L.Wy.centrifuge.includes(g)&&(l=await Z(v)),L.Wy.supportBridged.includes(g)&&(h=await z(v)),(0,m.d)(t)&&(0,m.Ji)(t).includes(C.yH.ERC20)&&(d=B({...b,evmApi:i})),(0,m.gk)(t,C.yH.PSP22)&&(p=G(v)),(0,m.gk)(t,C.yH.GRC20)&&(f=(({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:i})=>{if(!(i instanceof H._p))return console.warn("Cannot subscribe GRC20 balance without GearApi instance"),S.l;const s=a.slug,o={},c=(0,T.$)(t,s,[C.yH.GRC20]);Object.entries(c).forEach((([e,t])=>{o[e]=(0,F.ol)(i,(0,m._b)(t))}));const l=()=>{Object.values(c).map((async t=>{try{const a=o[t.slug],i=await Promise.all(e.map((async e=>{try{const n=(0,K.X)((0,j.F)(e)),i=await a.service.balanceOf(n,e);return{address:e,tokenSlug:t.slug,free:i.toString(10),locked:"0",state:r.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:r.Xf.READY}}})));n(i)}catch(e){console.warn(t.slug,e)}}))};l();const d=setInterval(l,u.eC);return()=>{clearInterval(d)}})(v)),(0,m.gk)(t,C.yH.VFT)&&(y=(({addresses:e,assetMap:t,callback:n,chainInfo:a,substrateApi:i})=>{if(!(i instanceof H._p))return console.warn("Cannot subscribe VFT balance without GearApi instance"),S.l;const s=a.slug,o={},c=(0,T.$)(t,s,[C.yH.VFT]);Object.entries(c).forEach((([e,t])=>{o[e]=(0,F.QN)(i,(0,m._b)(t))}));const l=()=>{Object.values(c).map((async t=>{try{const a=o[t.slug],i=await Promise.all(e.map((async e=>{try{const n=(0,K.X)((0,j.F)(e)),i=await a.service.balanceOf(n,e);return{address:e,tokenSlug:t.slug,free:i.toString(10),locked:"0",state:r.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:r.Xf.READY}}})));n(i)}catch(e){console.warn(t.slug,e)}}))};l();const d=setInterval(l,u.eC);return()=>{clearInterval(d)}})(v))}catch(e){console.warn(e)}return()=>{var e,t;c&&c(),l&&l(),d&&d(),p&&p(),h&&h(),null===(e=f)||void 0===e||e(),null===(t=y)||void 0===t||t()}})(a,t,d,h,p,c,l)}));return()=>{h.forEach((e=>{e.then((e=>{e&&e()})).catch(console.error)}))}}class Y{balanceUpdateCache=[];startPromiseHandler=(0,v.y)();stopPromiseHandler=(0,v.y)();status=f.E.NOT_INITIALIZED;isReload=!1;detectAccountBalanceStore=new b;balanceDetectSubject=new I.t({});intervalTime=18e4;cacheTime=9e5;constructor(e){this.state=e,this.balanceMap=new k}async init(){this.status=f.E.INITIALIZING,await this.state.eventService.waitChainReady,await this.state.eventService.waitAccountReady,await this.loadData(),this.status=f.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,!0)}async start(){if(this.status===f.E.STOPPING&&await this.waitForStopped(),this.status===f.E.STARTED||this.status===f.E.STARTING)return await this.waitForStarted();this.status=f.E.STARTING,await this.startScanBalance(),await this.runSubscribeBalances(),this.stopPromiseHandler=(0,v.y)(),this.status=f.E.STARTED,this.startPromiseHandler.resolve()}async stop(){if(this.status===f.E.STARTING&&await this.waitForStarted(),this.status===f.E.STOPPED||this.status===f.E.STOPPING)return await this.waitForStopped();this.runUnsubscribeBalances(),this.stopScanBalance(),this.startPromiseHandler=(0,v.y)(),this.status=f.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&&(n.push(e.data[0]),r=1e3)})),n.length>0&&(this.balanceMap.removeBalanceItems([...n,u.GQ]),a=!0),a&&(0,_.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,i){const o=this.state.chainService.getChainInfoByKey(t),u=this.state.chainService.getChainStateByKey(t);if(!o||!u||!u.active)return Promise.reject(new c(r.hh.NETWORK_ERROR,(0,s.t)("{{chain}} is inactive. Please enable network",{replace:{chain:o.name}})));const l=n||(0,m.iD)(o),d=this.state.chainService.getAssetBySlug(l);return d?new Promise(((n,r)=>{let o=!0;const c=this.state.chainService.getAssetRegistry(),u=this.state.chainService.getChainInfoMap(),p=this.state.chainService.getEvmApiMap(),h=this.state.chainService.getSubstrateApiMap();let f=S.l;f=J([e],[t],[l],c,u,h,p,(e=>{const t=e[0];if(t.tokenSlug===l){o=!1;const e={value:t.free,decimals:d.decimals||0,symbol:d.symbol,metadata:t.metadata};var a;i?i(e):null===(a=f)||void 0===a||a(),n([f,e])}}),a),setTimeout((()=>{var e;o&&(null===(e=f)||void 0===e||e(),r(new Error((0,s.t)("Failed to get balance. Please check your internet connection or change your network endpoint"))))}),9999)})):Promise.reject(new c(r.hh.TOKEN_ERROR,(0,s.t)("Transfer is currently not available for this token: {{tSlug}}",{replace:{slug:l}})))}async getTransferableBalance(e,t,n,a){const[,r]=await this.subscribeTransferableBalance(e,t,n,a);return r}removeBalanceByAddresses(e){this.balanceMap.removeBalanceItems([...e,u.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,_.U)("updateBalanceStore",(()=>{const e=(0,A.pb)(this.state.keyringService.currentAccount.address);this.balanceMap.updateBalanceItems(this.balanceUpdateCache,e),e&&(this.balanceUpdateCache=[...this.balanceUpdateCache,...Object.values(this.balanceMap.map[u.GQ])]),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.getDecodedAddresses();if(!e.length)return;await this.handleResetBalance();let t=!1;const n=this.state.chainService.getAssetRegistry(),a=this.state.chainService.getChainInfoMap(),i=this.state.chainService.getEvmApiMap(),s=this.state.chainService.getSubstrateApiMap(),o=Object.keys(this.state.getActiveChainInfoMap()),c=this.state.chainService.subscribeAssetSettings().value,u=Object.values(n).filter((e=>{var t;return o.includes(e.originChain)&&(null===(t=c[e.slug])||void 0===t?void 0:t.visible)})).map((e=>e.slug)),l=J(e,o,u,n,a,s,i,(e=>{!t&&this.setBalanceItem(e)}),r.M_.TRANSFER_BALANCE),d=this.state.subscribeMantaPayBalance();this._unsubscribeBalance=()=>{t=!0,l&&l(),d&&d()}}runUnsubscribeBalances(){this._unsubscribeBalance&&this._unsubscribeBalance(),this._unsubscribeBalance=void 0}async reloadBalance(){this.isReload=!0,await this.handleResetBalance(!0),await this.runSubscribeBalances(),await(0,A.j4)(1800),this.isReload=!1}async autoEnableChains(e){this.setBalanceDetectCache(e);const t=this.state.chainService.getAssetRegistry(),n=e.map((e=>this.state.subscanService.getMultiChainBalance(e).catch((e=>(console.error(e),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,v.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=w.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(S.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 h();const n=this.state.chainService.getChainInfoByKey(e.destChain);if(!(0,l.eZ)(t,n)&&(0,m.Rz)(t)){this.state.chainService.getEvmApi(t.slug);const n=this.state.chainService.getAssetBySlug(e.tokenSlug);return async function(e,t,n,a){if(![d.zF.ETHEREUM,d.zF.ETHEREUM_SEPOLIA].includes(n.originChain))throw new Error("Snowbridge only has support for Ethereum");const r={totalFee:[p.bR],steps:[p.q9]};return r.steps.push({id:r.steps.length,type:p.o2.TOKEN_APPROVAL,name:"Approve spending"}),r.totalFee.push(p.bR),r.steps.push({id:r.steps.length,type:p.o2.TRANSFER,name:"Transfer"}),r.totalFee.push(p.bR),Promise.resolve(r)}(e.address,0,n,e.amount)}return h()}}},1317:(e,t,n)=>{"use strict";n.d(t,{D0:()=>f,Jy:()=>p,O3:()=>l,si:()=>d});var a=n(12598),r=n(80562),i=n(95821),s=n(17540),o=n(45723),c=n(58109),u=n(96483);async function l(e,t,n,a,r,i){var s,l;const d=e.slug,p=await(0,c.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===(l=p.maxPriorityFeePerGas)||void 0===l?void 0:l.toString()},f=await i.api.eth.estimateGas(h);let m;if(h.gas=f,m=p.baseGasFee?p.maxFeePerGas.multipliedBy(f):new u.A(p.gasPrice).multipliedBy(f),h.value=r?new u.A(a).minus(m).toString():a,o.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 d(e,t,n,r,i,s,o){var l,d;const p=t.slug,h=(0,a.Ji)(e,o);let f=new u.A(0),m=i;if(s){const e=await h.methods.balanceOf(n).call();f=new u.A(e||"0"),m=f.toFixed(0)||"0"}function y(e,t){return h.methods.transfer(e,t).encodeABI()}const g=y(r,m),[b,v]=await Promise.all([h.methods.transfer(r,m).estimateGas({from:n}),(0,c.oc)(o,p)]),_={gas:b,from:n,value:"0",to:e,data:g,gasPrice:v.gasPrice,maxFeePerGas:null===(l=v.maxFeePerGas)||void 0===l?void 0:l.toString(),maxPriorityFeePerGas:null===(d=v.maxPriorityFeePerGas)||void 0===d?void 0:d.toString()};return s&&(m=f.toFixed(0),_.data=y(r,m)),[_,m]}async function p(e,t,n,a,i,s){var o,u;const l=new e.api.eth.Contract(r.Po,n),[d,p]=await Promise.all([l.methods.safeTransferFrom(a,i,s).estimateGas({from:a}),(0,c.oc)(e,t)]);return{from:a,gasPrice:p.gasPrice,maxFeePerGas:null===(o=p.maxFeePerGas)||void 0===o?void 0:o.toString(),maxPriorityFeePerGas:null===(u=p.maxPriorityFeePerGas)||void 0===u?void 0:u.toString(),gas:d,to:n,value:"0x00",data:l.methods.safeTransferFrom(a,i,s).encodeABI()}}const h=/^-?[0-9][0-9,.]+$/;async function f(e,t,n,a){const r=a.contractAddress,o=a.onChainOption;for(const[e,t]of Object.entries(o))h.test(t)&&(o[e]=t.replaceAll(",",""));try{const a=(0,i.WM)(e.api,r),c=await(0,s.x)(e.api,t,"psp34::transfer",a,{},[n,o,{}]);return a.tx["psp34::transfer"]({gasLimit:c},n,o,{})}catch(e){return console.debug(e),null}}},56534:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,R:()=>y});var a=n(9231),r=n(38397),i=n(95821),s=n(17540),o=n(45723),c=n(91600),u=n(58109),l=n(37475),d=n(96483),p=n(44869),h=n(82823),f=n.n(h),m=n(76515);const y=async({from:e,networkKey:t,substrateApi:n,to:u,tokenInfo:d,transferAll:h,value:y})=>{var g;const b=n.api;if(null===(g=d.metadata)||void 0===g?void 0:g.isDisableTransfer)return[null,y];let v=null;const _=!!b&&!!b.tx&&!!b.tx.currencies,A=!!b&&!!b.tx&&!!b.tx.balances,w=!!b&&!!b.tx&&!!b.tx.tokens,I=!!b&&!!b.tx&&!!b.tx.assets;let S;if((0,c.wq)(d)&&b.tx.foreignAssets){const e=(0,c.px)(d)||(0,c.q6)(d);v=h?b.tx.foreignAssets.transfer(e,u,y):b.tx.foreignAssets.transferKeepAlive(e,u,y)}else if((0,c.aD)(d)&&b.query.contracts){const t=(0,i.d4)(b,(0,c._b)(d)),n=await(0,s.x)(b,e,"psp22::transfer",t,{},[e,y,{}]);v=t.tx["psp22::transfer"]({gasLimit:n},u,y,{}),S=y}else if((0,c.P6)(d)&&b instanceof a._p){const t=d.assetType===r.yH.GRC20?(0,l.ol)(b,(0,c._b)(d)):(0,l.QN)(b,(0,c._b)(d));v=(await t.service.transfer((0,p.X)((0,m.F)(u)),y).withAccount(e).calculateGas()).extrinsic,S=y}else if(o.Lu.acala.includes(t))(0,c.Uy)(d)?h?v=b.tx.balances.transferAll(u,!1):y&&(v=b.tx.balances.transferKeepAlive(u,new(f())(y))):_&&(v=b.tx.currencies.transfer(u,(0,c.px)(d),y));else if(o.Lu.kintsugi.includes(t)&&w)h?v=b.tx.tokens.transferAll(u,(0,c.px)(d)||(0,c.AZ)(d),!1):y&&(v=b.tx.tokens.transfer(u,(0,c.px)(d)||(0,c.AZ)(d),new(f())(y)));else if(o.Lu.pendulum.includes(t)&&w&&!(0,c.Uy)(d))h?v=b.tx.tokens.transferAll(u,(0,c.px)(d)||(0,c.AZ)(d),!1):y&&(v=b.tx.tokens.transfer(u,(0,c.px)(d)||(0,c.AZ)(d),new(f())(y)));else if(o.Lu.bitcountry.includes(t)&&!(0,c.Uy)(d))v=b.tx.currencies.transfer(u,(0,c.px)(d),y);else if(o.Lu.statemine.includes(t)&&!(0,c.Uy)(d))v=b.tx.assets.transfer((0,c.AZ)(d),u,y);else if(o.Lu.sora_substrate.includes(t)&&I)v=b.tx.assets.transfer((0,c.AZ)(d),u,y);else if(A&&(0,c.Uy)(d)){if(o.Lu.disable_transfer.includes(t))return[null,S||y];h?v=b.tx.balances.transferAll(u,!1):y&&(v=b.tx.balances.transferKeepAlive?b.tx.balances.transferKeepAlive(u,new(f())(y)):b.tx.balances.transfer(u,new(f())(y)))}return[v,S||y]},g=async(e,t,n,a)=>{try{let i;if((0,c.d)(t)&&(0,c.s9)(n)){const n=a,r={value:0,to:"0x0000000000000000000000000000000000000000",from:e},s=await n.api.eth.estimateGas(r),o=await(0,u.oc)(n,t.slug);i=o.baseGasFee?o.maxFeePerGas.multipliedBy(s):new d.A(o.gasPrice).multipliedBy(s)}else{var r;const s=a,o=await s.isReady,[c]=await y({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 d.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 d.A(0)}}},52192:(e,t,n)=>{"use strict";n.d(t,{CA:()=>g,uo:()=>b,ft:()=>v});var a=n(97245);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}var i=n(91600),s=n(12598),o=n(80562),c=n(58109),u=n(44869),l=n(76515);async function d(e,t,n,a){const r=e.methods.quoteSendTokenFee(t,n,a);return await r.call()}function p(e,t,n,r,s,o){const c=(0,a.au)(t,n,3,r);if(!(0,i.q6)(e)){const n=function(e){return["moonbeam","moonbase","moonriver"].includes(e.originChain)?{[(0,i.yv)(e)]:(0,i.D4)(e)}:(0,i.px)(e)||(0,i.AZ)(e)}(e);return o.tx.xTokens.transfer(n,s,c,(0,a.mj)(t))}const u=(0,a.SD)(e,s,3);return o.tx.xTokens.transferMultiassets(u,0,c,(0,a.mj)(t))}var h=n(45723),f=n(96483),m=n(20258),y=n(7948);const g=async({chainInfoMap:e,destinationTokenInfo:t,evmApi:n,originTokenInfo:r,recipient:p,sender:h,sendingValue:f})=>{const m=e[r.originChain],y=e[t.originChain];if(!(0,a.eO)(m,y))throw new Error("This is not a valid SnowBridge transfer");return async function(e,t,n,a,r,p,h){var f,m;const y=(0,o.BP)(t.slug),g=(0,s.WV)(y,h,o.gH),b=(0,i._b)(e),v=(0,i.mP)(n),_={kind:1,data:(0,i.d)(n)?r:(0,u.X)((0,l.F)(r))},A=g.methods.sendToken(b,v,_,"0",p).encodeABI(),[w,I]=await Promise.all([(0,c.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,m,y,h,p,f,n)},b=async({chainInfoMap:e,destinationTokenInfo:t,originTokenInfo:n,recipient:s,sendingValue:o,substrateApi:c})=>{const u=e[n.originChain],l=e[t.originChain],d=(await c.isReady).api;let f;return f=h.KM.polkadotXcm.includes(n.originChain)?["astar","shiden"].includes(u.slug)&&!(0,i.Uy)(n)?p(n,u,l,s,o,d):function(e,t,n,s,o,c){let u=3,l="limitedReserveTransferAssets";(0,i.wq)(e)&&!(0,a.eZ)(t,n)&&(u=4,l="transferAssets"),r(t,n,e.slug)&&(l="limitedTeleportAssets");const d=(0,a.mj)(t),p=(0,a.au)(t,n,u),h=(0,a.v4)(n,s,u),f=(0,a.SD)(e,o,u);return c.tx.polkadotXcm[l](p,h,f,0,d)}(n,u,l,s,o,d):h.KM.xcmPallet.includes(n.originChain)?function(e,t,n,i,s,o){const c=(0,a.mj)(t),u=(0,a.au)(t,n,3),l=(0,a.v4)(n,i,3),d=(0,a.SD)(e,s,3);let p="limitedReserveTransferAssets";return r(t,n)&&(p="limitedTeleportAssets"),o.tx.xcmPallet[p](u,l,d,0,c)}(n,u,l,s,o,d):p(n,u,l,s,o,d),f},v=async(e,t,n,a)=>{try{var r;const s=t[a.originChain],o=t[n.originChain],c="5DRewsYzhJqZXU3SRaWy1FSt5iDr875ao91aw5fjrJmDG4Ap",l=(0,m.q)(c)||!(0,i.d)(s)||(0,i.d)(o)?c:(0,u.X)((0,y.c)(c)),d=await b({chainInfoMap:t,destinationTokenInfo:a,originTokenInfo:n,recipient:l,sendingValue:"1000000000000000000",substrateApi:e}),p=await d.paymentInfo(c);return new f.A((null==p||null===(r=p.partialFee)||void 0===r?void 0:r.toString())||"0")}catch(e){return console.error("error mocking xcm tx fee",e),new f.A(0)}}},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={}))},93856:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(12561),r=n(25923);const i={symbol:"",network:""},s={transak:{...i},banxa:{...i},coinbase:{...i},onramper:{...i},moonpay:{...i}};class o{#l;buyTokensSubject=new r.t({});buyServicesSubject=new r.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 e=await(0,a.j)("buy-token-configs"),t={};for(const n of e){const e={serviceInfo:{...s},support:n.support,services:[],slug:n.slug,symbol:n.symbol,network:n.network};for(const[t,a]of Object.entries(n.serviceInfo)){const n=t;a.isSuspended||(e.serviceInfo[n]={network:a.network,symbol:a.symbol},e.services.push(n))}e.services.length&&(t[e.slug]=e)}this.buyTokensSubject.next(t),this.#l.eventService.emit("buy.tokens.ready",!0)}async fetchServices(){const e=await(0,a.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()}}},58021:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var a=n(11266),r=n(31882),i=n(12561),s=n(25923),o=n(9492);const c=["extension","mobile"];class u{#l;popupVisibilitySubject=new s.t({value:!0});constructor(e){this.#l=e}init(){c.includes(r.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,i.j)("marketing-campaigns"),t=[];for(const n of e){const{condition:e,end_time:i,id:s,start_time:o}=n,c=new Date(i).getTime(),u=new Date(o).getTime();for(const i of n.banners){const{buttons:n,id:o,...l}=i,d=`${s}-banner-${o}`;i.environments.includes(r.En)&&t.push({slug:d,endTime:c,startTime:u,isDone:!1,isArchive:!1,campaignId:s,type:a.jG.BANNER,buttons:n,data:l,condition:e})}for(const r of n.notifications){const{buttons:n,id:i,...o}=r,l=`${s}-notification-${i}`;t.push({slug:l,endTime:c,startTime:u,isDone:!1,isArchive:!1,campaignId:s,type:a.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===a.jG.NOTIFICATION)).forEach((e=>{const{isDone:t,slug:n,type:r}=e;if(t)return;const i=()=>{this.completeCampaignNotification(n).catch((e=>{console.error("Error when complete campaign",n,e)}))};try{if(r!==a.jG.NOTIFICATION)throw new Error("Missing handle campaign");((e,t)=>{const{action:n,message:r,metadata:i,title:s}=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,o.t)(s),message:(0,o.t)(r),action:{buttonClick:e=>{const{metadata:t,type:n}=c[e];u(n,t)()},click:u(n,i)},notifyViaBrowser:!0,buttons:c.map((e=>({title:e.name})))})})(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})}}},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"]},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","bifrost","bifrost_dot"],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"],centrifuge:["centrifuge"],disable_transfer:["invarch","crab","pangolin"]},b=["calamari"],v="zk",_="calamari",A={polkadotXcm:["astar","shiden","statemine","statemint","equilibrium_parachain","rococo_assethub","mythos"],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"]),I={arbitrum_one:["*"],okxTest:["*"],astarZkEvm:["*"],xlayer:["*"],aleph_evm:["*"]},S={acala:["acala_evm","karura_evm"]},x=12e4},68468:(e,t,n)=>{"use strict";let a;n.d(t,{Y:()=>a}),function(e){e.INVALID_INFO_TYPE="invalidInfoType",e.INJECT_SCRIPT_DETECTED="injectScriptDetected",e.EXISTED_CHAIN="existedChain",e.EXISTED_PROVIDER="existedProvider",e.INVALID_PROVIDER="invalidProvider",e.NONE="none",e.CONNECTION_FAILURE="connectionFailure",e.PROVIDER_NOT_SAME_CHAIN="providerNotSameChain"}(a||(a={}))},479:(e,t,n)=>{"use strict";n.d(t,{N:()=>it});var a={};n.r(a),n.d(a,{AlreadyDestroyedError:()=>D,CrashError:()=>V,JsonRpcDisabledError:()=>L,WellKnownChain:()=>R,createScClient:()=>Y});var r=n(45654),i=n(38397),s=n(45723),o=n(80562),c=n(35331),u=n(25923);class l{apiStateMapSubject=new u.t({});isSleeping=!1;constructor(e){this.parent=e,this.recoverMap={}}handleConnection(e,t,n=!1){const a=this.apiStateMapSubject.getValue();a[e]!==t&&this.apiStateMapSubject.next({...a,[e]:t}),t===c.$J.CONNECTED&&this.cancelRecover(e),this.isRecovering(e)&&!n||t!==c.$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 a=this.recoverMap[e]||{retryTimes:0};clearTimeout(a.timeout);const r=a.retryTimes;r>=6&&(this.handleConnection(e,c.$J.UNSTABLE),this.cancelRecover(e));const i=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===r?3e3:2e4);this.recoverMap[e]={...a,retryTimes:r+1,timeout:i}}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)}))}}var d=n(37550),p=n(20049),h=n.n(p);class f{apiRetry=0;isApiConnectedSubject=new u.t(!1);connectionStatusSubject=new u.t(c.$J.DISCONNECTED);isApiReady=!1;isApiReadyOnce=!1;get isApiConnected(){return this.isApiConnectedSubject.getValue()}get connectionStatus(){return this.connectionStatusSubject.getValue()}updateConnectionStatus(e){const t=e===c.$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(h().providers.HttpProvider)(e):new(h().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(h())(this.provider),this.isReadyHandler=(0,d.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(c.$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(c.$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(c.$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(c.$J.CONNECTED)}onDisconnect(){this.updateConnectionStatus(c.$J.DISCONNECTED),this.isApiConnected&&(console.warn(`Disconnected from ${this.chainSlug} of ${this.apiUrl} (EVM)`),this.isApiReady=!1,this.isReadyHandler=(0,d.y)())}}var m=n(96483),y=n(87574);class g extends l{evmApiMap={};constructor(e){super(e),this.logger=(0,y.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 f(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 a,r="",s=-1,c="",u=!1;const l=this.getEvmApiByChain(n);try{if(t===i.yH.ERC721){a=new l.api.eth.Contract(o.Po,e);const[t,n]=await Promise.all([a.methods.name().call(),a.methods.symbol().call()]);r=t,c=n}else{a=new l.api.eth.Contract(o.tA,e);const[t,n,i]=await Promise.all([a.methods.decimals().call(),a.methods.symbol().call(),a.methods.name().call()]);r=i,s=new m.A(t).toNumber(),c=n}return""!==r&&""!==c||(u=!0),{name:r,decimals:s,symbol:c,contractError:u}}catch(e){return this.logger.error(e),{name:r,decimals:s,symbol:c,contractError:!0}}}}class b{}class v{}var _=n(96004);class A{_privateWallet=void 0;syncStateSubject=new _.B;constructor(e){this.dbService=e,this.syncState={isSyncing:!1,progress:0},this.syncStateSubject.next(this.syncState)}setCurrentAddress(e){this.currentAddress=e}getSyncState(){return this.syncState}get privateWallet(){return this._privateWallet}subscribeSyncState(){return this.syncStateSubject}async updateMantaPayConfig(e,t,n){await this.dbService.updateMantaPayData(`config_${t}_${e}`,n)}async saveMantaPayConfig(e){await this.dbService.setMantaPayData({key:`config_${e.chain}_${e.address}`,...e})}async getMantaPayConfig(e,t){return this.dbService.getMantaPayData(`config_${t}_${e}`)}async getMantaPayFirstConfig(e){return this.dbService.getMantaPayFirstConfig(e)}async deleteMantaPayConfig(e,t){return this.dbService.deleteMantaPayConfig(`config_${t}_${e}`)}async saveMantaAuthContext(e){await this.dbService.setMantaPayData({key:`authContext_${e.chain}_${e.address}`,...e})}async getMantaAuthContext(e,t){return this.dbService.getMantaPayData(`authContext_${t}_${e}`)}async deleteMantaAuthContext(e,t){return this.dbService.deleteMantaPayConfig(`authContext_${t}_${e}`)}async saveLedgerState(e,t,n){try{const a=this.currentAddress?`_${this.currentAddress}`:"";await this.dbService.setMantaPayData({key:`storage_state_${e}_${t}${a}`,...n})}catch(e){return console.error("manta-pay",e),!1}return!0}async getLedgerState(e,t){let n;try{const a=this.currentAddress?`_${this.currentAddress}`:"";n=await this.dbService.getMantaPayData(`storage_state_${e}_${t}${a}`)}catch(e){console.error(e)}return n||null}async initMantaPay(e,t){const n=t.charAt(0).toUpperCase()+t.slice(1),a=await b.init({apiEndpoint:e,loggingEnabled:!0,provingFilePath:"./manta-pay/proving",parametersFilePath:"./manta-pay/parameters",saveStorageStateToLocal:this.saveLedgerState.bind(this),getStorageStateFromLocal:this.getLedgerState.bind(this)});return this._privateWallet=v.init(n,a),this._privateWallet.api}async getCurrentLedgerState(){var e;const t=await this.getLedgerState("mantaPay","Calamari");return t?await(null===(e=this._privateWallet)||void 0===e?void 0:e.getLedgerCurrentCount(t.checkpoint)):0}setSyncState(e){this.syncState=e,this.syncStateSubject.next(this.syncState)}async subscribeSyncProgress(){var e;const t=await(null===(e=this._privateWallet)||void 0===e?void 0:e.getLedgerTotalCount()),n=setInterval((()=>{this.getCurrentLedgerState().then((e=>{const a=Math.floor(e/t*100);100===a?(this.syncState={isSyncing:!1,progress:a},clearInterval(n)):this.syncState={isSyncing:!0,progress:a},this.syncStateSubject.next(this.syncState)})).catch(console.error)}),1e3);return()=>{n&&clearInterval(n)}}}var w=n(9231),I=n(17540),S=n(62050),x=n(37209),k=Object.defineProperty,C=Object.defineProperties,T=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,B=(e,t,n)=>t in e?k(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())})),R=(e=>(e.polkadot="polkadot",e.ksmcc3="ksmcc3",e.rococo_v2_2="rococo_v2_2",e.westend2="westend2",e))(R||{}),N=new Map,D=class extends Error{constructor(){super(),this.name="AlreadyDestroyedError"}},V=class extends Error{constructor(e){super(e),this.name="CrashError"}},L=class extends Error{constructor(){super(),this.name="JsonRpcDisabledError"}},U=![typeof window,typeof document].includes("undefined"),H=class{},F=null,K=null,j=[],q=null,z=3,G=e=>{if(e.maxLogLevel&&e.maxLogLevel>z&&(z=e.maxLogLevel),q)return j.push(e),q instanceof Promise?q:Promise.resolve(q);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>z||(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?(K||(K=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)&&B(e,n,t[n]);if(E)for(var n of E(t))O.call(t,n)&&B(e,n,t[n]);return e})({},r),a={bytecode:new Promise((e=>{U?t.onmessage=t=>e(t.data):t.on("message",(t=>e(t)))}))},C(n,T(a))));var n,a})):(F||(F=Promise.all([n.e(911),n.e(998)]).then(n.bind(n,4998)).then((e=>(H=e.QueueFullError,e.start))))).then((e=>e(r)));return q=i,i.then((e=>(q===i?q=e:e.terminate(),e))),j.push(e),q},W=e=>{const t=j.indexOf(e);if(-1===t)throw new Error("Internal error within smoldot");j.splice(t,1),z=3;for(const e of j.values())e.maxLogLevel&&e.maxLogLevel>z&&(z=e.maxLogLevel);0===j.length&&(!q||q instanceof Promise||q.terminate(),q=null)},X=e=>{try{e()}catch(e){const t=e;if("JsonRpcDisabledError"===(null==t?void 0:t.name))throw new L;if("CrashError"===(null==t?void 0:t.name))throw new V(t.message);if("AlreadyDestroyedError"===(null==t?void 0:t.name))throw new D;throw new V(e instanceof Error?e.message:`Unexpected error ${e}`)}},Z=e=>{const t=e||{maxLogLevel:3},a=(e,n,r,i)=>M(void 0,null,(function*(){const s=yield G(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=>{X((()=>{try{o.sendJsonRpc(e)}catch(t){if(!(t instanceof H))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{X((()=>{o.remove()}))}finally{W(t)}},addChain:(e,t,n)=>a(e,t,n,o)}}catch(e){throw W(t),e}}));return{addChain:(e,t,n)=>a(e,t,n),addWellKnownChain:(e,r,i)=>M(void 0,null,(function*(){G(t);try{return yield a(yield function(e){return M(this,null,(function*(){if(!Object.keys(R).includes(e))throw new Error("Invalid chain name");const t=e;if(!N.has(t))switch(t){case"polkadot":N.set("polkadot",n.e(265).then(n.bind(n,45265)));break;case"ksmcc3":N.set("ksmcc3",n.e(307).then(n.bind(n,6307)));break;case"westend2":N.set("westend2",n.e(659).then(n.bind(n,54659)));break;case"rococo_v2_2":N.set("rococo_v2_2",n.e(201).then(n.bind(n,29201)))}return(yield N.get(t)).chainSpec}))}(e),r,i)}finally{W(t)}}))}},J={polkadot:"0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",ksmcc3:"0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",westend2:"0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",rococo_v2_2:"0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"},Y=e=>{if(null==e?void 0:e.forceEmbeddedNode)return Z(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===J[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):Z(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)}))}}},Q=n(80571);const $={kusama:R.ksmcc3,polkadot:R.polkadot,rococo:R.rococo_v2_2,westend:R.westend2},ee="https://raw.githubusercontent.com/polkadot-js/apps/master/packages/react-api/src/light/",te={"kusama/shiden":`${ee}kusama/shiden.json`,"kusama/tinkernet":`${ee}kusama/tinkernet.json`,"polkadot/astar":`${ee}polkadot/astar.json`};class ne{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 ae=n(39010),re=n(38509),ie=n(18045),se=n(56529),oe=n(76119),ce=n(57278),ue=n(45118),le=n(3473),de=n(25778),pe=n(1048).Buffer;const he=["eq"],fe=e=>e.reduce(((e,t,n)=>{const a=!n;return{...e,[t]:{customAccount:(e,n)=>{const{registry:r}=n,i=(e=>{const t=pe.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,le.p)(e,(e=>n.query.system.account(e).pipe((0,ie.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,le.p)(e,(e=>a?t.query.system.account(e).pipe((0,ie.T)((e=>[{amount:e.data.asV0.lock,id:new de.H(n),reasons:""}]))):(0,ue.of)([])))}}}}),{}),me={derives:fe(he),instances:{balances:he}},ye=["gens"],ge={derives:fe(ye),instances:{balances:ye}};var be=n(13937),ve=n(16342),_e=n(83141),Ae=n(82823),we=n.n(Ae),Ie=n(2835);function Se(e){return new ve.L(new _e.O,e)}function xe(e,t){const n=t.registry.chainTokens[0]||Ie.Q.getDefaults().unit;return(0,le.p)(e,(e=>(0,se.z)([t.query.tokens.accounts(e,{Token:n}),t.query.system.account(e)]).pipe((0,ie.T)((([n,a])=>({accountNonce:new Ae(1),additional:[],availableBalance:Se(0),freeBalance:Se(0),lockedBalance:Se(0),lockedBreakdown:[],namedReserves:[],reservedBalance:Se(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 ke={derives:{balances:{account:xe,all:xe}},...be};function Ce(e){return new ve.L(new _e.O,e)}function Te(e,t){return(0,le.p)(e,(e=>(0,se.z)([t.query.tokens.accounts(e,0),t.query.system.account(e)]).pipe((0,ie.T)((([n,a])=>({accountNonce:new Ae(1),additional:[],availableBalance:Ce(0),freeBalance:Ce(0),lockedBalance:Ce(0),lockedBreakdown:[],namedReserves:[],reservedBalance:Ce(0),vestingLocked: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 Ee={derives:{balances:{account:Te,all:Te}},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 Pe=n(2299),Oe=n(21497),Be=n(13283),Me=n(9947),Re=n(54448);function Ne(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 De=[[me,["Equilibrium","Equilibrium-parachain"]],[ge,["Genshiro","Gens-parachain"]],[ke,["interbtc-parachain","interbtc-standalone","interlay-parachain","kintsugi-parachain","testnet-kintsugi","testnet-interlay"]],[{derives:{chain:{bestNumber:Pe.s,bestNumberFinalized:Oe.k,bestNumberLag:Be.G,getBlock:Me.g,getHeader:function(e,t){return(0,le.p)(e,(e=>(0,se.z)([t.rpc.chain.getHeader(e)]).pipe((0,ie.T)((([e])=>Ne(e.registry,e,t))))))},subscribeNewBlocks:Re.b,subscribeNewHeads:function(e,t){return(0,le.p)(e,(()=>(0,se.z)([t.rpc.chain.subscribeNewHeads()]).pipe((0,ie.T)((([e])=>Ne(e.registry,e,t))))))}}},types:[{minmax:[0,void 0],types:{Solution:{public_key:"AccountId32",reward_address:"AccountId32"},SubPreDigest:{slot:"u64",solution:"Solution"}}}]},["subspace"]],[Ee,["mangata","mangata-parachain"]]];function Ve(e){return De.forEach((([{derives:t},n])=>{n.forEach((n=>{e.spec?.[n]&&(e.spec[n].derives=t)}))})),e}const Le={...Ve({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