@wormhole-foundation/wormhole-connect 0.3.20-beta.2-development → 0.3.20-beta.3-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ccip-DdNm3TF5.js → ccip-CEh7qOGs.js} +1 -1
- package/dist/assets/{evm-CKqqF_gg.js → evm-BMVFqnvw.js} +4 -4
- package/dist/assets/{index-DCoDtnSU.js → index-Bmag2z4V.js} +2 -2
- package/dist/assets/{index-3j5fAG22.js → index-CdswXJGj.js} +1 -1
- package/dist/assets/{index.es-C0U6RTlJ.js → index.es-CHyddDTZ.js} +2 -2
- package/dist/main.js +6 -6
- package/dist/src/components/ConnectWallet.d.ts.map +1 -1
- package/dist/src/views/WalletModal.d.ts.map +1 -1
- package/lib/{algorand-C42rWZhH.mjs → algorand-CksHf-nC.mjs} +4 -4
- package/lib/{algorand-Cbas9Znf.js → algorand-D63qAh_0.js} +1 -1
- package/lib/{aptos-F1YTs7RF.js → aptos-BYKoW69E.js} +1 -1
- package/lib/{aptos-CKQLwso5.mjs → aptos-BovHb62p.mjs} +2 -2
- package/lib/{aptos-Db9jr6Zj.mjs → aptos-ah8FA8Kh.mjs} +4 -4
- package/lib/{aptos-BEj1KbgQ.js → aptos-dgPXPfjQ.js} +2 -2
- package/lib/{browser-DhMUdQaV.js → browser-BX61K5uA.js} +1 -1
- package/lib/{browser-yMGaDO6I.mjs → browser-DefkXlAB.mjs} +2 -2
- package/lib/{ccip-CugBSg-r.js → ccip-DEcCBznF.js} +1 -1
- package/lib/{ccip-Xn9GhzKj.mjs → ccip-T0xk_rVW.mjs} +1 -1
- package/lib/{chain-Cn2ZNybw.js → chain-DESUv4bK.js} +1 -1
- package/lib/{chain-Cr3doQOx.mjs → chain-W4Reg-jx.mjs} +1 -1
- package/lib/{constants-J-2u_jlI.js → constants-Bl4uBq_U.js} +1 -1
- package/lib/{constants-BzLgb7Uu.mjs → constants-DNe7TeKH.mjs} +1 -1
- package/lib/{cosmos-Y-IU1Ppo.js → cosmos-CKM4kpVV.js} +1 -1
- package/lib/{cosmos-Cxz97m-S.mjs → cosmos-nU5ZbUmb.mjs} +3 -3
- package/lib/{cosmwasm-CNBqqZki.js → cosmwasm-B4a7aEbr.js} +2 -2
- package/lib/{cosmwasm-DXTIPYzt.mjs → cosmwasm-DH2dSUxf.mjs} +6 -6
- package/lib/{create-Sh6YOFDG.mjs → create-DXtwSaGk.mjs} +1 -1
- package/lib/{create-BxMuI9LT.js → create-sKIrLo5f.js} +1 -1
- package/lib/{ens-validation.es6-0JM8LWw0.mjs → ens-validation.es6-BBMnE4UL.mjs} +2 -2
- package/lib/{ens-validation.es6-C69MtHHj.js → ens-validation.es6-cB46D52E.js} +1 -1
- package/lib/{evm-6mHBMvQY.js → evm-CDNdFiVY.js} +4 -4
- package/lib/{evm-Bmxn_-Fq.mjs → evm-ChDzlw1v.mjs} +6 -6
- package/lib/{evm-2YfDqIgh.mjs → evm-DHGTXHXl.mjs} +6 -6
- package/lib/{evm-CNwWpuUy.js → evm-ivqxGCPw.js} +2 -2
- package/lib/{index-qhCBneZC.mjs → index-2B9fTTgC.mjs} +4 -4
- package/lib/{index-Cy7ifYs5.js → index-6fKsS_Ak.js} +1 -1
- package/lib/{index-BHGrmD13.js → index-B1ojvQzq.js} +1 -1
- package/lib/{index-BQxLsVB0.js → index-B6Vej3hm.js} +1 -1
- package/lib/{index-DKG3HddZ.js → index-BAJoDFMP.js} +1 -1
- package/lib/{index-D9E9_uH-.js → index-BDmx_rJ8.js} +1 -1
- package/lib/{index-CzG0cgVl.js → index-BEw9DWLc.js} +1 -1
- package/lib/{index--8rKiIkr.mjs → index-BOi-Jam_.mjs} +3 -3
- package/lib/{index-B4KykMqE.mjs → index-BTwe5rFf.mjs} +2 -2
- package/lib/{index-CSC8gV3x.js → index-BXHI118v.js} +1 -1
- package/lib/{index-MdvWz0xU.mjs → index-BczaI6ny.mjs} +56 -41
- package/lib/{index-E3J37Ufa.mjs → index-BdHhHhEK.mjs} +4 -4
- package/lib/{index-CZTDsE_a.js → index-BdlJaWR9.js} +1 -1
- package/lib/{index-kU6hfRjL.js → index-Bk5b__uz.js} +1 -1
- package/lib/{index-d2mNVM5g.mjs → index-BmkQB7mD.mjs} +4 -4
- package/lib/{index-bpTOt1KJ.js → index-BqPnD-p6.js} +1 -1
- package/lib/{index-9Ztr7evQ.js → index-C0VhGw21.js} +1 -1
- package/lib/{index-C0HEAh9V.mjs → index-C3soDe1H.mjs} +5 -5
- package/lib/{index-pt7Ykf4X.js → index-C5RpglHM.js} +1 -1
- package/lib/{index-BEUdOtQ4.mjs → index-C7PDQQH4.mjs} +1 -1
- package/lib/{index-B-dHQ1eQ.js → index-C8h2vQJZ.js} +1 -1
- package/lib/{index-9tpTQOlv.js → index-CHt0Dq8R.js} +1 -1
- package/lib/{index-Dkni0NGA.js → index-CNN5-hWl.js} +1 -1
- package/lib/{index-tKhs-WV9.mjs → index-CPD4t9J5.mjs} +4 -4
- package/lib/{index-CP809oMf.mjs → index-CPlJ0KAn.mjs} +2 -2
- package/lib/{index-Db9fx8vT.mjs → index-CXtObjgh.mjs} +3 -3
- package/lib/{index-B-QSGC7b.mjs → index-Caureu7-.mjs} +5 -5
- package/lib/{index-O_j9XFw3.js → index-CnkI51jx.js} +1 -1
- package/lib/{index-BoNvLS-N.mjs → index-Cq7_6fnd.mjs} +4 -4
- package/lib/{index-C7YZnpfO.mjs → index-CyUNpU91.mjs} +4 -4
- package/lib/{index-PCAxot3y.mjs → index-D1xFkyWK.mjs} +3 -3
- package/lib/{index-DrtrF3dG.js → index-D9_icWgq.js} +1 -1
- package/lib/{index-BQwAGLXV.mjs → index-DC9jOEYD.mjs} +4 -4
- package/lib/{index-DihGlmwO.mjs → index-DIw6mTJY.mjs} +5 -5
- package/lib/{index-EA3-t_Qq.mjs → index-DNiGjg6q.mjs} +2 -2
- package/lib/{index-BwiAAhG8.js → index-DfFjBHmw.js} +1 -1
- package/lib/{index-CPz1Acuo.js → index-DgC-9oPt.js} +1 -1
- package/lib/{index-8gU2g7yf.mjs → index-DjKeoY4m.mjs} +4 -4
- package/lib/{index-ClXBhJ0W.mjs → index-DnM2fNFZ.mjs} +1 -1
- package/lib/{index-DB0a8u4r.js → index-DqeiB68_.js} +1 -1
- package/lib/{index-BcB_yKKW.js → index-DwcGra2Y.js} +1 -1
- package/lib/{index-DRUAUgNl.mjs → index-HQr2H4S3.mjs} +4 -4
- package/lib/{index-CfLwiYOK.mjs → index-WUmJ5o5x.mjs} +5 -5
- package/lib/{index-BQYVWsSs.mjs → index-Y6lJNdxz.mjs} +4 -4
- package/lib/{index-CvHTtSDS.js → index-nk-Z22as.js} +6 -6
- package/lib/{index-BG-65hXv.js → index-qiskyaec.js} +1 -1
- package/lib/{index.es-BGLcfmEq.mjs → index.es-D2Z6WbrX.mjs} +4 -4
- package/lib/{index.es-CrI023EX.js → index.es-DyFNXdF2.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-ClbmX2fx.js → libsodium-wrappers-BpvsutBP.js} +1 -1
- package/lib/{libsodium-wrappers-BCnMqPBR.mjs → libsodium-wrappers-XJBOztDV.mjs} +1 -1
- package/lib/{sei-2ilailX5.mjs → sei-BvWM-9uy.mjs} +3 -3
- package/lib/{sei-BUWJJNPx.js → sei-DZTZBksS.js} +1 -1
- package/lib/{solana-DzEXI4x4.mjs → solana-BGgv5A-r.mjs} +6 -6
- package/lib/{solana-DWgKegjl.js → solana-BQ7q5qa6.js} +1 -1
- package/lib/{solana-BbkZSoJO.mjs → solana-DZGFYmED.mjs} +4 -4
- package/lib/{solana-B1NFFf-A.js → solana-kGlH38Gh.js} +2 -2
- package/lib/{solanaEmbed.esm-CoFrO8bm.mjs → solanaEmbed.esm-BSxJdaVr.mjs} +2 -2
- package/lib/{solanaEmbed.esm-D_4gBD-W.js → solanaEmbed.esm-DLccNxIY.js} +1 -1
- package/lib/src/components/ConnectWallet.d.ts.map +1 -1
- package/lib/src/views/WalletModal.d.ts.map +1 -1
- package/lib/{sui-Cg0WA-kZ.mjs → sui-ByOI3kYe.mjs} +4 -4
- package/lib/{sui-Z1wu4BUG.mjs → sui-CL8w06Io.mjs} +2 -2
- package/lib/{sui-DHuzLior.js → sui-DSNK2SCY.js} +2 -2
- package/lib/{sui-rauXckty.js → sui-Ky0-4pfR.js} +1 -1
- package/lib/{unsignedTransaction-C7qYSgcK.mjs → unsignedTransaction-CfXY_-_P.mjs} +2 -2
- package/lib/{unsignedTransaction-T5_2g-jm.js → unsignedTransaction-DO4HKGzM.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var t8 = Object.defineProperty;
|
|
2
2
|
var r8 = (e, a, d) => a in e ? t8(e, a, { enumerable: !0, configurable: !0, writable: !0, value: d }) : e[a] = d;
|
|
3
3
|
var ee = (e, a, d) => (r8(e, typeof a != "symbol" ? a + "" : a, d), d);
|
|
4
|
-
import { r as cb, n as n8, o as U, p as x8, u as i8, q as fb, s as F3, t as H3, v as o8, w as bb, d as N, x as Ze, y as s8, W as u8, z as l8, A as h8, c as Kd, e as bf, B as p8, D as m8, E as tf, F as g8, G as b1, _ as p, L as B, H as na, S as y8, I as v8, J as w8, K as I8, M as S8, O as A8, P as E8, Q as P8, R as N8, T as W3, U as T8, V as _8, X as J3, Y as k8, Z as M8, $ as O8, a0 as lc, m as rf, a1 as B8 } from "./index-
|
|
5
|
-
import { g as tb, s as kd, R as D8, N as L8, a as q3, k as U8 } from "./ens-validation.es6-
|
|
6
|
-
import { l as R8 } from "./libsodium-wrappers-
|
|
4
|
+
import { r as cb, n as n8, o as U, p as x8, u as i8, q as fb, s as F3, t as H3, v as o8, w as bb, d as N, x as Ze, y as s8, W as u8, z as l8, A as h8, c as Kd, e as bf, B as p8, D as m8, E as tf, F as g8, G as b1, _ as p, L as B, H as na, S as y8, I as v8, J as w8, K as I8, M as S8, O as A8, P as E8, Q as P8, R as N8, T as W3, U as T8, V as _8, X as J3, Y as k8, Z as M8, $ as O8, a0 as lc, m as rf, a1 as B8 } from "./index-BczaI6ny.mjs";
|
|
5
|
+
import { g as tb, s as kd, R as D8, N as L8, a as q3, k as U8 } from "./ens-validation.es6-BBMnE4UL.mjs";
|
|
6
|
+
import { l as R8 } from "./libsodium-wrappers-XJBOztDV.mjs";
|
|
7
7
|
const G8 = cb().ec, $8 = new G8("secp256k1"), z8 = $8.curve;
|
|
8
8
|
z8.n.constructor;
|
|
9
9
|
var Y3 = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var cf=Object.defineProperty;var uf=(e,t,n)=>t in e?cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>(uf(e,typeof t!="symbol"?t+"":t,n),n);const a=require("./index-CvHTtSDS.js"),Vl=require("./chain-Cn2ZNybw.js"),it=require("./ens-validation.es6-C69MtHHj.js");var Oc;(function(e){e.Erc20Contract="erc20-contract",e.Peggy="peggy-contract",e.PeggyOld="peggy-old-contract"})(Oc||(Oc={}));var oa;(function(e){e.Auction="chain-auction",e.Auth="chain-auth",e.Authz="chain-authz",e.Bank="chain-bank",e.Distribution="chain-distribution",e.Exchange="chain-exchange",e.Gov="chain-gov",e.Ibc="chain-ibc",e.InsuranceFund="chain-insurance",e.Mint="chain-mint",e.Oracle="chain-oracle",e.Peggy="chain-peggy",e.Staking="chain-staking",e.Wasm="chain-wasm",e.WasmX="chain-wasmx",e.Tendermint="chain-tendermint"})(oa||(oa={}));var ia;(function(e){e.Account="indexer-account",e.Auction="indexer-auction",e.Derivatives="indexer-derivatives",e.Explorer="indexer-explorer",e.InsuranceFund="indexer-insurance-fund",e.Meta="indexer-meta",e.Mito="indexer-mito",e.Dmm="dmm",e.Oracle="indexer-oracle",e.Portfolio="indexer-portfolio",e.Spot="indexer-spot",e.Transaction="indexer-transaction",e.Trading="indexer-trading",e.ChronosDerivative="indexer-chronos-derivative",e.ChronosSpot="indexer-chronos-spot",e.ChronosMarkets="indexer-chronos-markets",e.Campaign="indexer-campaign"})(ia||(ia={}));var Ic;(function(e){e.SignTransaction="sign-transaction",e.SignEthereumTransaction="sign-ethereum-transaction",e.SendTransaction="send-transaction",e.SendEthereumTransaction="send-ethereum-transaction",e.SignArbitrary="sign-arbitrary",e.GetAccounts="get-accounts",e.GetNetworkId="get-network-id",e.GetChainId="get-chain-id",e.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(Ic||(Ic={}));var Bc;(function(e){e.Auction="auction",e.CosmosSdk="sdk",e.Staking="staking",e.Bank="bank",e.Distribution="distribution",e.Gov="gov",e.Exchange="exchange",e.Insurance="insurance",e.Ocr="ocr",e.Oracle="oracle",e.Peggy="peggy",e.TokenFactory="tokenfactory",e.Wasmx="wasmx",e.Wasm="wasm",e.AuthZ="authz"})(Bc||(Bc={}));var Nc;(function(e){e[e.ErrTxDecode=2]="ErrTxDecode",e[e.ErrInvalidSequence=3]="ErrInvalidSequence",e[e.ErrUnauthorized=4]="ErrUnauthorized",e[e.ErrInsufficientFunds=5]="ErrInsufficientFunds",e[e.ErrUnknownRequest=6]="ErrUnknownRequest",e[e.ErrInvalidAddress=7]="ErrInvalidAddress",e[e.ErrInvalidPubKey=8]="ErrInvalidPubKey",e[e.ErrUnknownAddress=9]="ErrUnknownAddress",e[e.ErrInvalidCoins=10]="ErrInvalidCoins",e[e.ErrOutOfGas=11]="ErrOutOfGas",e[e.ErrMemoTooLarge=12]="ErrMemoTooLarge",e[e.ErrInsufficientFee=13]="ErrInsufficientFee",e[e.ErrTooManySignatures=14]="ErrTooManySignatures",e[e.ErrNoSignatures=15]="ErrNoSignatures",e[e.ErrJSONMarshal=16]="ErrJSONMarshal",e[e.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",e[e.ErrInvalidRequest=18]="ErrInvalidRequest",e[e.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",e[e.ErrMempoolIsFull=20]="ErrMempoolIsFull",e[e.ErrTxTooLarge=21]="ErrTxTooLarge",e[e.ErrKeyNotFound=22]="ErrKeyNotFound",e[e.ErrWrongPassword=23]="ErrWrongPassword",e[e.ErrorInvalidSigner=24]="ErrorInvalidSigner",e[e.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",e[e.ErrInvalidHeight=26]="ErrInvalidHeight",e[e.ErrInvalidVersion=27]="ErrInvalidVersion",e[e.ErrInvalidChainID=28]="ErrInvalidChainID",e[e.ErrInvalidType=29]="ErrInvalidType",e[e.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",e[e.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",e[e.ErrWrongSequence=32]="ErrWrongSequence",e[e.ErrPackAny=33]="ErrPackAny",e[e.ErrUnpackAny=34]="ErrUnpackAny",e[e.ErrLogic=35]="ErrLogic",e[e.ErrConflict=36]="ErrConflict",e[e.ErrNotSupported=37]="ErrNotSupported",e[e.ErrNotFound=38]="ErrNotFound",e[e.ErrIO=39]="ErrIO",e[e.ErrAppConfig=40]="ErrAppConfig",e[e.ErrInvalidGasLimit=41]="ErrInvalidGasLimit"})(Nc||(Nc={}));var Mc;(function(e){e[e.ErrOrderInvalid=1]="ErrOrderInvalid",e[e.ErrSpotMarketNotFound=2]="ErrSpotMarketNotFound",e[e.ErrSpotMarketExists=3]="ErrSpotMarketExists",e[e.ErrBadField=4]="ErrBadField",e[e.ErrMarketInvalid=5]="ErrMarketInvalid",e[e.ErrInsufficientDeposit=6]="ErrInsufficientDeposit",e[e.ErrUnrecognizedOrderType=7]="ErrUnrecognizedOrderType",e[e.ErrInsufficientPositionQuantity=8]="ErrInsufficientPositionQuantity",e[e.ErrOrderHashInvalid=9]="ErrOrderHashInvalid",e[e.ErrBadSubaccountID=10]="ErrBadSubaccountID",e[e.ErrInvalidTicker=11]="ErrInvalidTicker",e[e.ErrInvalidBaseDenom=12]="ErrInvalidBaseDenom",e[e.ErrInvalidQuoteDenom=13]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=14]="ErrInvalidOracle",e[e.ErrInvalidExpiry=15]="ErrInvalidExpiry",e[e.ErrInvalidPrice=16]="ErrInvalidPrice",e[e.ErrInvalidQuantity=17]="ErrInvalidQuantity",e[e.ErrUnsupportedOracleType=18]="ErrUnsupportedOracleType",e[e.ErrOrderDoesntExist=19]="ErrOrderDoesntExist",e[e.ErrOrderbookFillInvalid=20]="ErrOrderbookFillInvalid",e[e.ErrPerpetualMarketExists=21]="ErrPerpetualMarketExists",e[e.ErrExpiryFuturesMarketExists=22]="ErrExpiryFuturesMarketExists",e[e.ErrExpiryFuturesMarketExpired=23]="ErrExpiryFuturesMarketExpired",e[e.ErrNoLiquidity=24]="ErrNoLiquidity",e[e.ErrSlippageExceedsWorstPrice=25]="ErrSlippageExceedsWorstPrice",e[e.ErrInsufficientOrderMargin=26]="ErrInsufficientOrderMargin",e[e.ErrDerivativeMarketNotFound=27]="ErrDerivativeMarketNotFound",e[e.ErrPositionNotFound=28]="ErrPositionNotFound",e[e.ErrInvalidReduceOnlyPositionDirection=29]="ErrInvalidReduceOnlyPositionDirection",e[e.ErrPriceSurpassesBankruptcyPrice=30]="ErrPriceSurpassesBankruptcyPrice",e[e.ErrPositionNotLiquidable=31]="ErrPositionNotLiquidable",e[e.ErrInvalidTriggerPrice=32]="ErrInvalidTriggerPrice",e[e.ErrInvalidOracleType=33]="ErrInvalidOracleType",e[e.ErrInvalidPriceTickSize=34]="ErrInvalidPriceTickSize",e[e.ErrInvalidQuantityTickSize=35]="ErrInvalidQuantityTickSize",e[e.ErrInvalidMargin=36]="ErrInvalidMargin",e[e.ErrExceedsOrderSideCount=37]="ErrExceedsOrderSideCount",e[e.ErrMarketOrderAlreadyExists=38]="ErrMarketOrderAlreadyExists",e[e.ErrConditionalMarketOrderAlreadyExists=39]="ErrConditionalMarketOrderAlreadyExists",e[e.ErrMarketLaunchProposalAlreadyExists=40]="ErrMarketLaunchProposalAlreadyExists",e[e.ErrInvalidMarketStatus=41]="ErrInvalidMarketStatus",e[e.ErrSameDenoms=42]="ErrSameDenoms",e[e.ErrSameOracles=43]="ErrSameOracles",e[e.ErrFeeRatesRelation=44]="ErrFeeRatesRelation",e[e.ErrMarginsRelation=45]="ErrMarginsRelation",e[e.ErrExceedsMaxOracleScaleFactor=46]="ErrExceedsMaxOracleScaleFactor",e[e.ErrSpotExchangeNotEnabled=47]="ErrSpotExchangeNotEnabled",e[e.ErrDerivativesExchangeNotEnabled=48]="ErrDerivativesExchangeNotEnabled",e[e.ErrOraclePriceDeltaExceedsThreshold=49]="ErrOraclePriceDeltaExceedsThreshold",e[e.ErrInvalidHourlyInterestRate=50]="ErrInvalidHourlyInterestRate",e[e.ErrInvalidHourlyFundingRateCap=51]="ErrInvalidHourlyFundingRateCap",e[e.ErrInvalidMarketFundingParamUpdate=52]="ErrInvalidMarketFundingParamUpdate",e[e.ErrInvalidTradingRewardCampaign=53]="ErrInvalidTradingRewardCampaign",e[e.ErrInvalidFeeDiscountSchedule=54]="ErrInvalidFeeDiscountSchedule",e[e.ErrInvalidLiquidationOrder=55]="ErrInvalidLiquidationOrder",e[e.ErrTradingRewardCampaignDistributionError=56]="ErrTradingRewardCampaignDistributionError",e[e.ErrInvalidTradingRewardsPendingPointsUpdate=57]="ErrInvalidTradingRewardsPendingPointsUpdate",e[e.ErrInvalidBatchMsgUpdate=58]="ErrInvalidBatchMsgUpdate",e[e.ErrExceedsTopOfBookPrice=59]="ErrExceedsTopOfBookPrice",e[e.ErrInvalidOrderTypeForMessage=60]="ErrInvalidOrderTypeForMessage",e[e.ErrInvalidDMMSender=61]="ErrInvalidDMMSender",e[e.ErrAlreadyOptedOutOfRewards=62]="ErrAlreadyOptedOutOfRewards",e[e.ErrInvalidMarginRatio=63]="ErrInvalidMarginRatio",e[e.ErrBelowMinimalContribution=64]="ErrBelowMinimalContribution",e[e.ErrLowPositionMargin=65]="ErrLowPositionMargin",e[e.ErrInvalidTotalSupply=66]="ErrInvalidTotalSupply",e[e.ErrInvalidLpTokenBurnAmount=67]="ErrInvalidLpTokenBurnAmount",e[e.ErrUnsupportedAction=68]="ErrUnsupportedAction",e[e.ErrNegativePositionQuantity=69]="ErrNegativePositionQuantity",e[e.ErrBinaryOptionsMarketExists=70]="ErrBinaryOptionsMarketExists",e[e.ErrBinaryOptionsMarketNotFound=71]="ErrBinaryOptionsMarketNotFound",e[e.ErrInvalidSettlement=72]="ErrInvalidSettlement",e[e.ErrAccountDoesntExist=73]="ErrAccountDoesntExist",e[e.ErrSenderIsNotAnAdmin=74]="ErrSenderIsNotAnAdmin",e[e.ErrMarketAlreadyScheduledToSettle=75]="ErrMarketAlreadyScheduledToSettle",e[e.ErrGenericMarketNotFound=76]="ErrGenericMarketNotFound",e[e.ErrInvalidDenomDecimal=77]="ErrInvalidDenomDecimal",e[e.ErrInvalidState=78]="ErrInvalidState",e[e.ErrTransientOrdersUpToCancelNotSupported=79]="ErrTransientOrdersUpToCancelNotSupported",e[e.ErrInvalidTrade=80]="ErrInvalidTrade",e[e.ErrNoMarginLocked=81]="ErrNoMarginLocked",e[e.ErrInvalidAccessLevel=82]="ErrInvalidAccessLevel",e[e.ErrInvalidAddress=83]="ErrInvalidAddress",e[e.ErrInvalidArgument=84]="ErrInvalidArgument",e[e.ErrInvalidFundsDirection=85]="ErrInvalidFundsDirection",e[e.ErrNoFundsProvided=86]="ErrNoFundsProvided",e[e.ErrInvalidSignature=87]="ErrInvalidSignature",e[e.ErrNoFundsToUnlock=88]="ErrNoFundsToUnlock",e[e.ErrNoMsgsProvided=89]="ErrNoMsgsProvided",e[e.ErrNoMsgProvided=90]="ErrNoMsgProvided",e[e.ErrInvalidAmount=91]="ErrInvalidAmount",e[e.ErrFeatureDisabled=92]="ErrFeatureDisabled",e[e.ErrTooMuchOrderMargin=93]="ErrTooMuchOrderMargin",e[e.ErrBadSubaccountNonce=94]="ErrBadSubaccountNonce",e[e.ErrInsufficientFunds=95]="ErrInsufficientFunds",e[e.ErrPostOnlyMode=96]="ErrPostOnlyMode",e[e.ErrClientOrderIdAlreadyExists=97]="ErrClientOrderIdAlreadyExists",e[e.ErrInvalidCid=98]="ErrInvalidCid"})(Mc||(Mc={}));var Rc;(function(e){e[e.ErrBidInvalid=1]="ErrBidInvalid",e[e.ErrBidRound=2]="ErrBidRound"})(Rc||(Rc={}));var jc;(function(e){e[e.ErrNoAuthorizationFound=2]="ErrNoAuthorizationFound",e[e.ErrInvalidExpirationTime=3]="ErrInvalidExpirationTime",e[e.ErrUnknownAuthorizationType=4]="ErrUnknownAuthorizationType",e[e.ErrNoGrantKeyFound=5]="ErrNoGrantKeyFound",e[e.ErrAuthorizationExpired=6]="ErrAuthorizationExpired",e[e.ErrGranteeIsGranter=7]="ErrGranteeIsGranter",e[e.ErrAuthorizationNumOfSigners=9]="ErrAuthorizationNumOfSigners",e[e.ErrNegativeMaxTokens=12]="ErrNegativeMaxTokens"})(jc||(jc={}));var Dc;(function(e){e[e.ErrInsuranceFundAlreadyExists=1]="ErrInsuranceFundAlreadyExists",e[e.ErrInsuranceFundNotFound=2]="ErrInsuranceFundNotFound",e[e.ErrRedemptionAlreadyExists=3]="ErrRedemptionAlreadyExists",e[e.ErrInvalidDepositAmount=4]="ErrInvalidDepositAmount",e[e.ErrInvalidDepositDenom=5]="ErrInvalidDepositDenom",e[e.ErrPayoutTooLarge=6]="ErrPayoutTooLarge",e[e.ErrInvalidTicker=7]="ErrInvalidTicker",e[e.ErrInvalidQuoteDenom=8]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=9]="ErrInvalidOracle",e[e.ErrInvalidExpirationTime=10]="ErrInvalidExpirationTime",e[e.ErrInvalidMarketID=11]="ErrInvalidMarketID",e[e.ErrInvalidShareDenom=12]="ErrInvalidShareDenom"})(Dc||(Dc={}));var Uc;(function(e){e[e.ErrStaleReport=1]="ErrStaleReport",e[e.ErrIncompleteProposal=2]="ErrIncompleteProposal",e[e.ErrRepeatedAddress=3]="ErrRepeatedAddress",e[e.ErrTooManySigners=4]="ErrTooManySigners",e[e.ErrIncorrectConfig=5]="ErrIncorrectConfig",e[e.ErrConfigDigestNotMatch=6]="ErrConfigDigestNotMatch",e[e.ErrWrongNumberOfSignatures=7]="ErrWrongNumberOfSignatures",e[e.ErrIncorrectSignature=8]="ErrIncorrectSignature",e[e.ErrNoTransmitter=9]="ErrNoTransmitter",e[e.ErrIncorrectTransmissionData=10]="ErrIncorrectTransmissionData",e[e.ErrNoTransmissionsFound=11]="ErrNoTransmissionsFound",e[e.ErrMedianValueOutOfBounds=12]="ErrMedianValueOutOfBounds",e[e.ErrIncorrectRewardPoolDenom=13]="ErrIncorrectRewardPoolDenom",e[e.ErrNoRewardPool=14]="ErrNoRewardPool",e[e.ErrInvalidPayees=15]="ErrInvalidPayees",e[e.ErrModuleAdminRestricted=16]="ErrModuleAdminRestricted",e[e.ErrFeedAlreadyExists=17]="ErrFeedAlreadyExists",e[e.ErrFeedDoesntExists=19]="ErrFeedDoesntExists",e[e.ErrAdminRestricted=20]="ErrAdminRestricted",e[e.ErrInsufficientRewardPool=21]="ErrInsufficientRewardPool",e[e.ErrPayeeAlreadySet=22]="ErrPayeeAlreadySet",e[e.ErrPayeeRestricted=23]="ErrPayeeRestricted",e[e.ErrFeedConfigNotFound=24]="ErrFeedConfigNotFound"})(Uc||(Uc={}));var $c;(function(e){e[e.ErrEmptyRelayerAddr=1]="ErrEmptyRelayerAddr",e[e.ErrBadRatesCount=2]="ErrBadRatesCount",e[e.ErrBadResolveTimesCount=3]="ErrBadResolveTimesCount",e[e.ErrBadRequestIDsCount=4]="ErrBadRequestIDsCount",e[e.ErrRelayerNotAuthorized=5]="ErrRelayerNotAuthorized",e[e.ErrBadPriceFeedBaseCount=6]="ErrBadPriceFeedBaseCount",e[e.ErrBadPriceFeedQuoteCount=7]="ErrBadPriceFeedQuoteCount",e[e.ErrUnsupportedOracleType=8]="ErrUnsupportedOracleType",e[e.ErrBadMessagesCount=9]="ErrBadMessagesCount",e[e.ErrBadCoinbaseMessage=10]="ErrBadCoinbaseMessage",e[e.ErrInvalidEthereumSignature=11]="ErrInvalidEthereumSignature",e[e.ErrBadCoinbaseMessageTimestamp=12]="ErrBadCoinbaseMessageTimestamp",e[e.ErrCoinbasePriceNotFound=13]="ErrCoinbasePriceNotFound",e[e.ErrBadPrice=14]="ErrBadPrice",e[e.ErrPriceTooLarge=15]="ErrPriceTooLarge",e[e.ErrInvalidBandIBCRequest=16]="ErrInvalidBandIBCRequest",e[e.ErrSample=17]="ErrSample",e[e.ErrInvalidPacketTimeout=18]="ErrInvalidPacketTimeout",e[e.ErrBadSymbolsCount=19]="ErrBadSymbolsCount",e[e.ErrBadIBCPortBind=20]="ErrBadIBCPortBind",e[e.ErrInvalidPortID=21]="ErrInvalidPortID",e[e.ErrInvalidChannelID=22]="ErrInvalidChannelID",e[e.ErrBadRequestInterval=23]="ErrBadRequestInterval",e[e.ErrInvalidBandIBCUpdateRequest=24]="ErrInvalidBandIBCUpdateRequest",e[e.ErrBandIBCRequestNotFound=25]="ErrBandIBCRequestNotFound",e[e.ErrEmptyBaseInfo=26]="ErrEmptyBaseInfo",e[e.ErrEmptyProvider=27]="ErrEmptyProvider",e[e.ErrInvalidProvider=28]="ErrInvalidProvider",e[e.ErrInvalidSymbol=29]="ErrInvalidSymbol",e[e.ErrRelayerAlreadyExists=30]="ErrRelayerAlreadyExists",e[e.ErrProviderPriceNotFound=31]="ErrProviderPriceNotFound",e[e.ErrInvalidOracleRequest=32]="ErrInvalidOracleRequest",e[e.ErrOraclePriceNotFound=33]="ErrOraclePriceNotFound"})($c||($c={}));var xc;(function(e){e[e.ErrInternal=1]="ErrInternal",e[e.ErrDuplicate=2]="ErrDuplicate",e[e.ErrInvalid=3]="ErrInvalid",e[e.ErrTimeout=4]="ErrTimeout",e[e.ErrUnknown=5]="ErrUnknown",e[e.ErrEmpty=6]="ErrEmpty",e[e.ErrOutdated=7]="ErrOutdated",e[e.ErrUnsupported=8]="ErrUnsupported",e[e.ErrNonContiguousEventNonce=9]="ErrNonContiguousEventNonce",e[e.ErrNoUnbatchedTxsFound=10]="ErrNoUnbatchedTxsFound",e[e.ErrResetDelegateKeys=11]="ErrResetDelegateKeys",e[e.ErrSupplyOverflow=12]="ErrSupplyOverflow",e[e.ErrInvalidEthSender=13]="ErrInvalidEthSender",e[e.ErrInvalidEthDestination=14]="ErrInvalidEthDestination"})(xc||(xc={}));var Hc;(function(e){e[e.ErrDenomExists=2]="ErrDenomExists",e[e.ErrUnauthorized=3]="ErrUnauthorized",e[e.ErrInvalidDenom=4]="ErrInvalidDenom",e[e.ErrInvalidCreator=5]="ErrInvalidCreator",e[e.ErrInvalidAuthorityMetadata=6]="ErrInvalidAuthorityMetadata",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrSubdenomTooLong=8]="ErrSubdenomTooLong",e[e.ErrSubdenomTooShort=9]="ErrSubdenomTooShort",e[e.ErrSubdenomNestedTooShort=10]="ErrSubdenomNestedTooShort",e[e.ErrCreatorTooLong=11]="ErrCreatorTooLong",e[e.ErrDenomDoesNotExist=12]="ErrDenomDoesNotExist",e[e.ErrAmountNotPositive=13]="ErrAmountNotPositive"})(Hc||(Hc={}));var qc;(function(e){e[e.ErrInvalidGasLimit=1]="ErrInvalidGasLimit",e[e.ErrInvalidGasPrice=2]="ErrInvalidGasPrice",e[e.ErrInvalidContractAddress=3]="ErrInvalidContractAddress",e[e.ErrAlreadyRegistered=4]="ErrAlreadyRegistered",e[e.ErrDuplicateContract=5]="ErrDuplicateContract",e[e.ErrNoContractAddresses=6]="ErrNoContractAddresses",e[e.ErrInvalidCodeId=7]="ErrInvalidCodeId"})(qc||(qc={}));var Fc;(function(e){e[e.ErrEmptyValidatorAddr=2]="ErrEmptyValidatorAddr",e[e.ErrNoValidatorFound=3]="ErrNoValidatorFound",e[e.ErrValidatorOwnerExists=4]="ErrValidatorOwnerExists",e[e.ErrValidatorPubKeyExists=5]="ErrValidatorPubKeyExists",e[e.ErrValidatorPubKeyTypeNotSupported=6]="ErrValidatorPubKeyTypeNotSupported",e[e.ErrValidatorJailed=7]="ErrValidatorJailed",e[e.ErrBadRemoveValidator=8]="ErrBadRemoveValidator",e[e.ErrCommissionNegative=9]="ErrCommissionNegative",e[e.ErrCommissionHuge=10]="ErrCommissionHuge",e[e.ErrCommissionGTMaxRate=11]="ErrCommissionGTMaxRate",e[e.ErrCommissionUpdateTime=12]="ErrCommissionUpdateTime",e[e.ErrCommissionChangeRateNegative=13]="ErrCommissionChangeRateNegative",e[e.ErrCommissionChangeRateGTMaxRate=14]="ErrCommissionChangeRateGTMaxRate",e[e.ErrCommissionGTMaxChangeRate=15]="ErrCommissionGTMaxChangeRate",e[e.ErrSelfDelegationBelowMinimum=16]="ErrSelfDelegationBelowMinimum",e[e.ErrMinSelfDelegationDecreased=17]="ErrMinSelfDelegationDecreased",e[e.ErrEmptyDelegatorAddr=18]="ErrEmptyDelegatorAddr",e[e.ErrNoDelegation=19]="ErrNoDelegation",e[e.ErrBadDelegatorAddr=20]="ErrBadDelegatorAddr",e[e.ErrNoDelegatorForAddress=21]="ErrNoDelegatorForAddress",e[e.ErrInsufficientShares=22]="ErrInsufficientShares",e[e.ErrDelegationValidatorEmpty=23]="ErrDelegationValidatorEmpty",e[e.ErrNotEnoughDelegationShares=24]="ErrNotEnoughDelegationShares",e[e.ErrNotMature=25]="ErrNotMature",e[e.ErrNoUnbondingDelegation=26]="ErrNoUnbondingDelegation",e[e.ErrMaxUnbondingDelegationEntries=27]="ErrMaxUnbondingDelegationEntries",e[e.ErrNoRedelegation=28]="ErrNoRedelegation",e[e.ErrSelfRedelegation=29]="ErrSelfRedelegation",e[e.ErrTinyRedelegationAmount=30]="ErrTinyRedelegationAmount",e[e.ErrBadRedelegationDst=31]="ErrBadRedelegationDst",e[e.ErrTransitiveRedelegation=32]="ErrTransitiveRedelegation",e[e.ErrMaxRedelegationEntries=33]="ErrMaxRedelegationEntries",e[e.ErrDelegatorShareExRateInvalid=34]="ErrDelegatorShareExRateInvalid",e[e.ErrBothShareMsgsGiven=35]="ErrBothShareMsgsGiven",e[e.ErrNeitherShareMsgsGiven=36]="ErrNeitherShareMsgsGiven",e[e.ErrInvalidHistoricalInfo=37]="ErrInvalidHistoricalInfo",e[e.ErrNoHistoricalInfo=38]="ErrNoHistoricalInfo",e[e.ErrEmptyValidatorPubKey=39]="ErrEmptyValidatorPubKey",e[e.ErrCommissionLTMinRate=40]="ErrCommissionLTMinRate",e[e.ErrUnbondingNotFound=41]="ErrUnbondingNotFound",e[e.ErrUnbondingOnHoldRefCountNegative=42]="ErrUnbondingOnHoldRefCountNegative"})(Fc||(Fc={}));var Vc;(function(e){e[e.ErrUnknownProposal=2]="ErrUnknownProposal",e[e.ErrInactiveProposal=3]="ErrInactiveProposal",e[e.ErrAlreadyActiveProposal=4]="ErrAlreadyActiveProposal",e[e.ErrInvalidProposalContent=5]="ErrInvalidProposalContent",e[e.ErrInvalidProposalType=6]="ErrInvalidProposalType",e[e.ErrInvalidVote=7]="ErrInvalidVote",e[e.ErrInvalidGenesis=8]="ErrInvalidGenesis",e[e.ErrNoProposalHandlerExists=9]="ErrNoProposalHandlerExists",e[e.ErrUnroutableProposalMsg=10]="ErrUnroutableProposalMsg",e[e.ErrNoProposalMsgs=11]="ErrNoProposalMsgs",e[e.ErrInvalidProposalMsg=12]="ErrInvalidProposalMsg",e[e.ErrInvalidSigner=13]="ErrInvalidSigner",e[e.ErrInvalidSignalMsg=14]="ErrInvalidSignalMsg",e[e.ErrMetadataTooLong=15]="ErrMetadataTooLong",e[e.ErrMinDepositTooSmall=16]="ErrMinDepositTooSmall",e[e.ErrProposalNotFound=17]="ErrProposalNotFound",e[e.ErrInvalidProposer=18]="ErrInvalidProposer",e[e.ErrNoDeposits=19]="ErrNoDeposits",e[e.ErrVotingPeriodEnded=20]="ErrVotingPeriodEnded",e[e.ErrInvalidProposal=21]="ErrInvalidProposal"})(Vc||(Vc={}));var Lc;(function(e){e[e.ErrEmptyDelegatorAddr=2]="ErrEmptyDelegatorAddr",e[e.ErrEmptyWithdrawAddr=3]="ErrEmptyWithdrawAddr",e[e.ErrEmptyValidatorAddr=4]="ErrEmptyValidatorAddr",e[e.ErrEmptyDelegationDistInfo=5]="ErrEmptyDelegationDistInfo",e[e.ErrNoValidatorDistInfo=6]="ErrNoValidatorDistInfo",e[e.ErrNoValidatorCommission=7]="ErrNoValidatorCommission",e[e.ErrSetWithdrawAddrDisabled=8]="ErrSetWithdrawAddrDisabled",e[e.ErrBadDistribution=9]="ErrBadDistribution",e[e.ErrInvalidProposalAmount=10]="ErrInvalidProposalAmount",e[e.ErrEmptyProposalRecipient=11]="ErrEmptyProposalRecipient",e[e.ErrNoValidatorExists=12]="ErrNoValidatorExists",e[e.ErrNoDelegationExists=13]="ErrNoDelegationExists"})(Lc||(Lc={}));var Gc;(function(e){e[e.ErrNoInputs=2]="ErrNoInputs",e[e.ErrNoOutputs=3]="ErrNoOutputs",e[e.ErrInputOutputMismatch=4]="ErrInputOutputMismatch",e[e.ErrSendDisabled=5]="ErrSendDisabled",e[e.ErrDenomMetadataNotFound=6]="ErrDenomMetadataNotFound",e[e.ErrInvalidKey=7]="ErrInvalidKey",e[e.ErrDuplicateEntry=8]="ErrDuplicateEntry",e[e.ErrMultipleSenders=9]="ErrMultipleSenders"})(Gc||(Gc={}));var Wc;(function(e){e[e.ErrCreateFailed=2]="ErrCreateFailed",e[e.ErrAccountExists=3]="ErrAccountExists",e[e.ErrInstantiateFailed=4]="ErrInstantiateFailed",e[e.ErrExecuteFailed=5]="ErrExecuteFailed",e[e.ErrGasLimit=6]="ErrGasLimit",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrNotFound=8]="ErrNotFound",e[e.ErrQueryFailed=9]="ErrQueryFailed",e[e.ErrInvalidMsg=10]="ErrInvalidMsg",e[e.ErrMigrationFailed=11]="ErrMigrationFailed",e[e.ErrEmpty=12]="ErrEmpty",e[e.ErrLimit=13]="ErrLimit",e[e.ErrInvalid=14]="ErrInvalid",e[e.ErrDuplicate=15]="ErrDuplicate",e[e.ErrMaxIBCChannels=16]="ErrMaxIBCChannels",e[e.ErrUnsupportedForContract=17]="ErrUnsupportedForContract",e[e.ErrPinContractFailed=18]="ErrPinContractFailed",e[e.ErrUnpinContractFailed=19]="ErrUnpinContractFailed",e[e.ErrUnknownMsg=20]="ErrUnknownMsg",e[e.ErrInvalidEvent=21]="ErrInvalidEvent"})(Wc||(Wc={}));const dn=-1;it.grpcWebClient_umdExports.grpc.Code.Unavailable;var st;(function(e){e.Get="GET",e.Post="POST",e.Options="OPTIONS"})(st||(st={}));var mn;(function(e){e.Unspecified="unspecified",e.ChainError="chain-error",e.ExecutionError="execution-error",e.NotFoundError="not-found-error",e.ValidationError="validation-error",e.WalletError="wallet-error",e.WalletNotInstalledError="wallet-not-installed-error",e.GrpcUnaryRequest="grpc-unary-request",e.HttpRequest="http-request",e.Web3="web3"})(mn||(mn={}));const Pi=e=>`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(t,n,r)=>`${n.toUpperCase()+r}`).replace(new RegExp(/\w/),t=>t.toUpperCase());class $a extends Error{constructor(n,r){super(n.message);E(this,"type",mn.Unspecified);E(this,"code",dn);E(this,"name");E(this,"errorClass");E(this,"context");E(this,"contextModule");E(this,"contextCode");E(this,"message","");E(this,"stack","");E(this,"originalMessage","");this.parseError(n),this.parseContext(r),this.parse()}parse(){}parseError(n){this.setName(this.errorClass||this.constructor.name),this.setStack(n.stack||""),this.setMessage(n.message),this.originalMessage=n.message}parseContext(n){const{contextModule:r,type:s,code:o,context:i}=n||{contextModule:"",context:"",code:dn,type:mn.Unspecified};this.context=i,this.contextModule=r,this.type=s||mn.Unspecified,this.code=o||dn}setType(n){this.type=n}setCode(n){this.code=n}setContext(n){this.context=n}setOriginalMessage(n){this.originalMessage=n}setStack(n){try{this.stack=n}catch{}}setName(n){super.name=n,this.name=n,this.errorClass=n}setMessage(n){super.message=n,this.message=n}setContextModule(n){this.contextModule=n}setContextCode(n){this.contextCode=n}toOriginalError(){const n=new Error(this.originalMessage);return n.stack=this.stack,n.name=this.name||"",n}toError(){const n=new Error(this.message);return n.stack=this.stack,n.name=this.name||"",n}toCompactError(){const n=this.name||Pi(this.type),r=new Error(`${this.message} | ${JSON.stringify({originalMessage:this.originalMessage,message:this.message,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
|
|
1
|
+
"use strict";var cf=Object.defineProperty;var uf=(e,t,n)=>t in e?cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>(uf(e,typeof t!="symbol"?t+"":t,n),n);const a=require("./index-nk-Z22as.js"),Vl=require("./chain-DESUv4bK.js"),it=require("./ens-validation.es6-cB46D52E.js");var Oc;(function(e){e.Erc20Contract="erc20-contract",e.Peggy="peggy-contract",e.PeggyOld="peggy-old-contract"})(Oc||(Oc={}));var oa;(function(e){e.Auction="chain-auction",e.Auth="chain-auth",e.Authz="chain-authz",e.Bank="chain-bank",e.Distribution="chain-distribution",e.Exchange="chain-exchange",e.Gov="chain-gov",e.Ibc="chain-ibc",e.InsuranceFund="chain-insurance",e.Mint="chain-mint",e.Oracle="chain-oracle",e.Peggy="chain-peggy",e.Staking="chain-staking",e.Wasm="chain-wasm",e.WasmX="chain-wasmx",e.Tendermint="chain-tendermint"})(oa||(oa={}));var ia;(function(e){e.Account="indexer-account",e.Auction="indexer-auction",e.Derivatives="indexer-derivatives",e.Explorer="indexer-explorer",e.InsuranceFund="indexer-insurance-fund",e.Meta="indexer-meta",e.Mito="indexer-mito",e.Dmm="dmm",e.Oracle="indexer-oracle",e.Portfolio="indexer-portfolio",e.Spot="indexer-spot",e.Transaction="indexer-transaction",e.Trading="indexer-trading",e.ChronosDerivative="indexer-chronos-derivative",e.ChronosSpot="indexer-chronos-spot",e.ChronosMarkets="indexer-chronos-markets",e.Campaign="indexer-campaign"})(ia||(ia={}));var Ic;(function(e){e.SignTransaction="sign-transaction",e.SignEthereumTransaction="sign-ethereum-transaction",e.SendTransaction="send-transaction",e.SendEthereumTransaction="send-ethereum-transaction",e.SignArbitrary="sign-arbitrary",e.GetAccounts="get-accounts",e.GetNetworkId="get-network-id",e.GetChainId="get-chain-id",e.GetEthereumTransactionReceipt="get-ethereum-transaction-receipt"})(Ic||(Ic={}));var Bc;(function(e){e.Auction="auction",e.CosmosSdk="sdk",e.Staking="staking",e.Bank="bank",e.Distribution="distribution",e.Gov="gov",e.Exchange="exchange",e.Insurance="insurance",e.Ocr="ocr",e.Oracle="oracle",e.Peggy="peggy",e.TokenFactory="tokenfactory",e.Wasmx="wasmx",e.Wasm="wasm",e.AuthZ="authz"})(Bc||(Bc={}));var Nc;(function(e){e[e.ErrTxDecode=2]="ErrTxDecode",e[e.ErrInvalidSequence=3]="ErrInvalidSequence",e[e.ErrUnauthorized=4]="ErrUnauthorized",e[e.ErrInsufficientFunds=5]="ErrInsufficientFunds",e[e.ErrUnknownRequest=6]="ErrUnknownRequest",e[e.ErrInvalidAddress=7]="ErrInvalidAddress",e[e.ErrInvalidPubKey=8]="ErrInvalidPubKey",e[e.ErrUnknownAddress=9]="ErrUnknownAddress",e[e.ErrInvalidCoins=10]="ErrInvalidCoins",e[e.ErrOutOfGas=11]="ErrOutOfGas",e[e.ErrMemoTooLarge=12]="ErrMemoTooLarge",e[e.ErrInsufficientFee=13]="ErrInsufficientFee",e[e.ErrTooManySignatures=14]="ErrTooManySignatures",e[e.ErrNoSignatures=15]="ErrNoSignatures",e[e.ErrJSONMarshal=16]="ErrJSONMarshal",e[e.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",e[e.ErrInvalidRequest=18]="ErrInvalidRequest",e[e.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",e[e.ErrMempoolIsFull=20]="ErrMempoolIsFull",e[e.ErrTxTooLarge=21]="ErrTxTooLarge",e[e.ErrKeyNotFound=22]="ErrKeyNotFound",e[e.ErrWrongPassword=23]="ErrWrongPassword",e[e.ErrorInvalidSigner=24]="ErrorInvalidSigner",e[e.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",e[e.ErrInvalidHeight=26]="ErrInvalidHeight",e[e.ErrInvalidVersion=27]="ErrInvalidVersion",e[e.ErrInvalidChainID=28]="ErrInvalidChainID",e[e.ErrInvalidType=29]="ErrInvalidType",e[e.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",e[e.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",e[e.ErrWrongSequence=32]="ErrWrongSequence",e[e.ErrPackAny=33]="ErrPackAny",e[e.ErrUnpackAny=34]="ErrUnpackAny",e[e.ErrLogic=35]="ErrLogic",e[e.ErrConflict=36]="ErrConflict",e[e.ErrNotSupported=37]="ErrNotSupported",e[e.ErrNotFound=38]="ErrNotFound",e[e.ErrIO=39]="ErrIO",e[e.ErrAppConfig=40]="ErrAppConfig",e[e.ErrInvalidGasLimit=41]="ErrInvalidGasLimit"})(Nc||(Nc={}));var Mc;(function(e){e[e.ErrOrderInvalid=1]="ErrOrderInvalid",e[e.ErrSpotMarketNotFound=2]="ErrSpotMarketNotFound",e[e.ErrSpotMarketExists=3]="ErrSpotMarketExists",e[e.ErrBadField=4]="ErrBadField",e[e.ErrMarketInvalid=5]="ErrMarketInvalid",e[e.ErrInsufficientDeposit=6]="ErrInsufficientDeposit",e[e.ErrUnrecognizedOrderType=7]="ErrUnrecognizedOrderType",e[e.ErrInsufficientPositionQuantity=8]="ErrInsufficientPositionQuantity",e[e.ErrOrderHashInvalid=9]="ErrOrderHashInvalid",e[e.ErrBadSubaccountID=10]="ErrBadSubaccountID",e[e.ErrInvalidTicker=11]="ErrInvalidTicker",e[e.ErrInvalidBaseDenom=12]="ErrInvalidBaseDenom",e[e.ErrInvalidQuoteDenom=13]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=14]="ErrInvalidOracle",e[e.ErrInvalidExpiry=15]="ErrInvalidExpiry",e[e.ErrInvalidPrice=16]="ErrInvalidPrice",e[e.ErrInvalidQuantity=17]="ErrInvalidQuantity",e[e.ErrUnsupportedOracleType=18]="ErrUnsupportedOracleType",e[e.ErrOrderDoesntExist=19]="ErrOrderDoesntExist",e[e.ErrOrderbookFillInvalid=20]="ErrOrderbookFillInvalid",e[e.ErrPerpetualMarketExists=21]="ErrPerpetualMarketExists",e[e.ErrExpiryFuturesMarketExists=22]="ErrExpiryFuturesMarketExists",e[e.ErrExpiryFuturesMarketExpired=23]="ErrExpiryFuturesMarketExpired",e[e.ErrNoLiquidity=24]="ErrNoLiquidity",e[e.ErrSlippageExceedsWorstPrice=25]="ErrSlippageExceedsWorstPrice",e[e.ErrInsufficientOrderMargin=26]="ErrInsufficientOrderMargin",e[e.ErrDerivativeMarketNotFound=27]="ErrDerivativeMarketNotFound",e[e.ErrPositionNotFound=28]="ErrPositionNotFound",e[e.ErrInvalidReduceOnlyPositionDirection=29]="ErrInvalidReduceOnlyPositionDirection",e[e.ErrPriceSurpassesBankruptcyPrice=30]="ErrPriceSurpassesBankruptcyPrice",e[e.ErrPositionNotLiquidable=31]="ErrPositionNotLiquidable",e[e.ErrInvalidTriggerPrice=32]="ErrInvalidTriggerPrice",e[e.ErrInvalidOracleType=33]="ErrInvalidOracleType",e[e.ErrInvalidPriceTickSize=34]="ErrInvalidPriceTickSize",e[e.ErrInvalidQuantityTickSize=35]="ErrInvalidQuantityTickSize",e[e.ErrInvalidMargin=36]="ErrInvalidMargin",e[e.ErrExceedsOrderSideCount=37]="ErrExceedsOrderSideCount",e[e.ErrMarketOrderAlreadyExists=38]="ErrMarketOrderAlreadyExists",e[e.ErrConditionalMarketOrderAlreadyExists=39]="ErrConditionalMarketOrderAlreadyExists",e[e.ErrMarketLaunchProposalAlreadyExists=40]="ErrMarketLaunchProposalAlreadyExists",e[e.ErrInvalidMarketStatus=41]="ErrInvalidMarketStatus",e[e.ErrSameDenoms=42]="ErrSameDenoms",e[e.ErrSameOracles=43]="ErrSameOracles",e[e.ErrFeeRatesRelation=44]="ErrFeeRatesRelation",e[e.ErrMarginsRelation=45]="ErrMarginsRelation",e[e.ErrExceedsMaxOracleScaleFactor=46]="ErrExceedsMaxOracleScaleFactor",e[e.ErrSpotExchangeNotEnabled=47]="ErrSpotExchangeNotEnabled",e[e.ErrDerivativesExchangeNotEnabled=48]="ErrDerivativesExchangeNotEnabled",e[e.ErrOraclePriceDeltaExceedsThreshold=49]="ErrOraclePriceDeltaExceedsThreshold",e[e.ErrInvalidHourlyInterestRate=50]="ErrInvalidHourlyInterestRate",e[e.ErrInvalidHourlyFundingRateCap=51]="ErrInvalidHourlyFundingRateCap",e[e.ErrInvalidMarketFundingParamUpdate=52]="ErrInvalidMarketFundingParamUpdate",e[e.ErrInvalidTradingRewardCampaign=53]="ErrInvalidTradingRewardCampaign",e[e.ErrInvalidFeeDiscountSchedule=54]="ErrInvalidFeeDiscountSchedule",e[e.ErrInvalidLiquidationOrder=55]="ErrInvalidLiquidationOrder",e[e.ErrTradingRewardCampaignDistributionError=56]="ErrTradingRewardCampaignDistributionError",e[e.ErrInvalidTradingRewardsPendingPointsUpdate=57]="ErrInvalidTradingRewardsPendingPointsUpdate",e[e.ErrInvalidBatchMsgUpdate=58]="ErrInvalidBatchMsgUpdate",e[e.ErrExceedsTopOfBookPrice=59]="ErrExceedsTopOfBookPrice",e[e.ErrInvalidOrderTypeForMessage=60]="ErrInvalidOrderTypeForMessage",e[e.ErrInvalidDMMSender=61]="ErrInvalidDMMSender",e[e.ErrAlreadyOptedOutOfRewards=62]="ErrAlreadyOptedOutOfRewards",e[e.ErrInvalidMarginRatio=63]="ErrInvalidMarginRatio",e[e.ErrBelowMinimalContribution=64]="ErrBelowMinimalContribution",e[e.ErrLowPositionMargin=65]="ErrLowPositionMargin",e[e.ErrInvalidTotalSupply=66]="ErrInvalidTotalSupply",e[e.ErrInvalidLpTokenBurnAmount=67]="ErrInvalidLpTokenBurnAmount",e[e.ErrUnsupportedAction=68]="ErrUnsupportedAction",e[e.ErrNegativePositionQuantity=69]="ErrNegativePositionQuantity",e[e.ErrBinaryOptionsMarketExists=70]="ErrBinaryOptionsMarketExists",e[e.ErrBinaryOptionsMarketNotFound=71]="ErrBinaryOptionsMarketNotFound",e[e.ErrInvalidSettlement=72]="ErrInvalidSettlement",e[e.ErrAccountDoesntExist=73]="ErrAccountDoesntExist",e[e.ErrSenderIsNotAnAdmin=74]="ErrSenderIsNotAnAdmin",e[e.ErrMarketAlreadyScheduledToSettle=75]="ErrMarketAlreadyScheduledToSettle",e[e.ErrGenericMarketNotFound=76]="ErrGenericMarketNotFound",e[e.ErrInvalidDenomDecimal=77]="ErrInvalidDenomDecimal",e[e.ErrInvalidState=78]="ErrInvalidState",e[e.ErrTransientOrdersUpToCancelNotSupported=79]="ErrTransientOrdersUpToCancelNotSupported",e[e.ErrInvalidTrade=80]="ErrInvalidTrade",e[e.ErrNoMarginLocked=81]="ErrNoMarginLocked",e[e.ErrInvalidAccessLevel=82]="ErrInvalidAccessLevel",e[e.ErrInvalidAddress=83]="ErrInvalidAddress",e[e.ErrInvalidArgument=84]="ErrInvalidArgument",e[e.ErrInvalidFundsDirection=85]="ErrInvalidFundsDirection",e[e.ErrNoFundsProvided=86]="ErrNoFundsProvided",e[e.ErrInvalidSignature=87]="ErrInvalidSignature",e[e.ErrNoFundsToUnlock=88]="ErrNoFundsToUnlock",e[e.ErrNoMsgsProvided=89]="ErrNoMsgsProvided",e[e.ErrNoMsgProvided=90]="ErrNoMsgProvided",e[e.ErrInvalidAmount=91]="ErrInvalidAmount",e[e.ErrFeatureDisabled=92]="ErrFeatureDisabled",e[e.ErrTooMuchOrderMargin=93]="ErrTooMuchOrderMargin",e[e.ErrBadSubaccountNonce=94]="ErrBadSubaccountNonce",e[e.ErrInsufficientFunds=95]="ErrInsufficientFunds",e[e.ErrPostOnlyMode=96]="ErrPostOnlyMode",e[e.ErrClientOrderIdAlreadyExists=97]="ErrClientOrderIdAlreadyExists",e[e.ErrInvalidCid=98]="ErrInvalidCid"})(Mc||(Mc={}));var Rc;(function(e){e[e.ErrBidInvalid=1]="ErrBidInvalid",e[e.ErrBidRound=2]="ErrBidRound"})(Rc||(Rc={}));var jc;(function(e){e[e.ErrNoAuthorizationFound=2]="ErrNoAuthorizationFound",e[e.ErrInvalidExpirationTime=3]="ErrInvalidExpirationTime",e[e.ErrUnknownAuthorizationType=4]="ErrUnknownAuthorizationType",e[e.ErrNoGrantKeyFound=5]="ErrNoGrantKeyFound",e[e.ErrAuthorizationExpired=6]="ErrAuthorizationExpired",e[e.ErrGranteeIsGranter=7]="ErrGranteeIsGranter",e[e.ErrAuthorizationNumOfSigners=9]="ErrAuthorizationNumOfSigners",e[e.ErrNegativeMaxTokens=12]="ErrNegativeMaxTokens"})(jc||(jc={}));var Dc;(function(e){e[e.ErrInsuranceFundAlreadyExists=1]="ErrInsuranceFundAlreadyExists",e[e.ErrInsuranceFundNotFound=2]="ErrInsuranceFundNotFound",e[e.ErrRedemptionAlreadyExists=3]="ErrRedemptionAlreadyExists",e[e.ErrInvalidDepositAmount=4]="ErrInvalidDepositAmount",e[e.ErrInvalidDepositDenom=5]="ErrInvalidDepositDenom",e[e.ErrPayoutTooLarge=6]="ErrPayoutTooLarge",e[e.ErrInvalidTicker=7]="ErrInvalidTicker",e[e.ErrInvalidQuoteDenom=8]="ErrInvalidQuoteDenom",e[e.ErrInvalidOracle=9]="ErrInvalidOracle",e[e.ErrInvalidExpirationTime=10]="ErrInvalidExpirationTime",e[e.ErrInvalidMarketID=11]="ErrInvalidMarketID",e[e.ErrInvalidShareDenom=12]="ErrInvalidShareDenom"})(Dc||(Dc={}));var Uc;(function(e){e[e.ErrStaleReport=1]="ErrStaleReport",e[e.ErrIncompleteProposal=2]="ErrIncompleteProposal",e[e.ErrRepeatedAddress=3]="ErrRepeatedAddress",e[e.ErrTooManySigners=4]="ErrTooManySigners",e[e.ErrIncorrectConfig=5]="ErrIncorrectConfig",e[e.ErrConfigDigestNotMatch=6]="ErrConfigDigestNotMatch",e[e.ErrWrongNumberOfSignatures=7]="ErrWrongNumberOfSignatures",e[e.ErrIncorrectSignature=8]="ErrIncorrectSignature",e[e.ErrNoTransmitter=9]="ErrNoTransmitter",e[e.ErrIncorrectTransmissionData=10]="ErrIncorrectTransmissionData",e[e.ErrNoTransmissionsFound=11]="ErrNoTransmissionsFound",e[e.ErrMedianValueOutOfBounds=12]="ErrMedianValueOutOfBounds",e[e.ErrIncorrectRewardPoolDenom=13]="ErrIncorrectRewardPoolDenom",e[e.ErrNoRewardPool=14]="ErrNoRewardPool",e[e.ErrInvalidPayees=15]="ErrInvalidPayees",e[e.ErrModuleAdminRestricted=16]="ErrModuleAdminRestricted",e[e.ErrFeedAlreadyExists=17]="ErrFeedAlreadyExists",e[e.ErrFeedDoesntExists=19]="ErrFeedDoesntExists",e[e.ErrAdminRestricted=20]="ErrAdminRestricted",e[e.ErrInsufficientRewardPool=21]="ErrInsufficientRewardPool",e[e.ErrPayeeAlreadySet=22]="ErrPayeeAlreadySet",e[e.ErrPayeeRestricted=23]="ErrPayeeRestricted",e[e.ErrFeedConfigNotFound=24]="ErrFeedConfigNotFound"})(Uc||(Uc={}));var $c;(function(e){e[e.ErrEmptyRelayerAddr=1]="ErrEmptyRelayerAddr",e[e.ErrBadRatesCount=2]="ErrBadRatesCount",e[e.ErrBadResolveTimesCount=3]="ErrBadResolveTimesCount",e[e.ErrBadRequestIDsCount=4]="ErrBadRequestIDsCount",e[e.ErrRelayerNotAuthorized=5]="ErrRelayerNotAuthorized",e[e.ErrBadPriceFeedBaseCount=6]="ErrBadPriceFeedBaseCount",e[e.ErrBadPriceFeedQuoteCount=7]="ErrBadPriceFeedQuoteCount",e[e.ErrUnsupportedOracleType=8]="ErrUnsupportedOracleType",e[e.ErrBadMessagesCount=9]="ErrBadMessagesCount",e[e.ErrBadCoinbaseMessage=10]="ErrBadCoinbaseMessage",e[e.ErrInvalidEthereumSignature=11]="ErrInvalidEthereumSignature",e[e.ErrBadCoinbaseMessageTimestamp=12]="ErrBadCoinbaseMessageTimestamp",e[e.ErrCoinbasePriceNotFound=13]="ErrCoinbasePriceNotFound",e[e.ErrBadPrice=14]="ErrBadPrice",e[e.ErrPriceTooLarge=15]="ErrPriceTooLarge",e[e.ErrInvalidBandIBCRequest=16]="ErrInvalidBandIBCRequest",e[e.ErrSample=17]="ErrSample",e[e.ErrInvalidPacketTimeout=18]="ErrInvalidPacketTimeout",e[e.ErrBadSymbolsCount=19]="ErrBadSymbolsCount",e[e.ErrBadIBCPortBind=20]="ErrBadIBCPortBind",e[e.ErrInvalidPortID=21]="ErrInvalidPortID",e[e.ErrInvalidChannelID=22]="ErrInvalidChannelID",e[e.ErrBadRequestInterval=23]="ErrBadRequestInterval",e[e.ErrInvalidBandIBCUpdateRequest=24]="ErrInvalidBandIBCUpdateRequest",e[e.ErrBandIBCRequestNotFound=25]="ErrBandIBCRequestNotFound",e[e.ErrEmptyBaseInfo=26]="ErrEmptyBaseInfo",e[e.ErrEmptyProvider=27]="ErrEmptyProvider",e[e.ErrInvalidProvider=28]="ErrInvalidProvider",e[e.ErrInvalidSymbol=29]="ErrInvalidSymbol",e[e.ErrRelayerAlreadyExists=30]="ErrRelayerAlreadyExists",e[e.ErrProviderPriceNotFound=31]="ErrProviderPriceNotFound",e[e.ErrInvalidOracleRequest=32]="ErrInvalidOracleRequest",e[e.ErrOraclePriceNotFound=33]="ErrOraclePriceNotFound"})($c||($c={}));var xc;(function(e){e[e.ErrInternal=1]="ErrInternal",e[e.ErrDuplicate=2]="ErrDuplicate",e[e.ErrInvalid=3]="ErrInvalid",e[e.ErrTimeout=4]="ErrTimeout",e[e.ErrUnknown=5]="ErrUnknown",e[e.ErrEmpty=6]="ErrEmpty",e[e.ErrOutdated=7]="ErrOutdated",e[e.ErrUnsupported=8]="ErrUnsupported",e[e.ErrNonContiguousEventNonce=9]="ErrNonContiguousEventNonce",e[e.ErrNoUnbatchedTxsFound=10]="ErrNoUnbatchedTxsFound",e[e.ErrResetDelegateKeys=11]="ErrResetDelegateKeys",e[e.ErrSupplyOverflow=12]="ErrSupplyOverflow",e[e.ErrInvalidEthSender=13]="ErrInvalidEthSender",e[e.ErrInvalidEthDestination=14]="ErrInvalidEthDestination"})(xc||(xc={}));var Hc;(function(e){e[e.ErrDenomExists=2]="ErrDenomExists",e[e.ErrUnauthorized=3]="ErrUnauthorized",e[e.ErrInvalidDenom=4]="ErrInvalidDenom",e[e.ErrInvalidCreator=5]="ErrInvalidCreator",e[e.ErrInvalidAuthorityMetadata=6]="ErrInvalidAuthorityMetadata",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrSubdenomTooLong=8]="ErrSubdenomTooLong",e[e.ErrSubdenomTooShort=9]="ErrSubdenomTooShort",e[e.ErrSubdenomNestedTooShort=10]="ErrSubdenomNestedTooShort",e[e.ErrCreatorTooLong=11]="ErrCreatorTooLong",e[e.ErrDenomDoesNotExist=12]="ErrDenomDoesNotExist",e[e.ErrAmountNotPositive=13]="ErrAmountNotPositive"})(Hc||(Hc={}));var qc;(function(e){e[e.ErrInvalidGasLimit=1]="ErrInvalidGasLimit",e[e.ErrInvalidGasPrice=2]="ErrInvalidGasPrice",e[e.ErrInvalidContractAddress=3]="ErrInvalidContractAddress",e[e.ErrAlreadyRegistered=4]="ErrAlreadyRegistered",e[e.ErrDuplicateContract=5]="ErrDuplicateContract",e[e.ErrNoContractAddresses=6]="ErrNoContractAddresses",e[e.ErrInvalidCodeId=7]="ErrInvalidCodeId"})(qc||(qc={}));var Fc;(function(e){e[e.ErrEmptyValidatorAddr=2]="ErrEmptyValidatorAddr",e[e.ErrNoValidatorFound=3]="ErrNoValidatorFound",e[e.ErrValidatorOwnerExists=4]="ErrValidatorOwnerExists",e[e.ErrValidatorPubKeyExists=5]="ErrValidatorPubKeyExists",e[e.ErrValidatorPubKeyTypeNotSupported=6]="ErrValidatorPubKeyTypeNotSupported",e[e.ErrValidatorJailed=7]="ErrValidatorJailed",e[e.ErrBadRemoveValidator=8]="ErrBadRemoveValidator",e[e.ErrCommissionNegative=9]="ErrCommissionNegative",e[e.ErrCommissionHuge=10]="ErrCommissionHuge",e[e.ErrCommissionGTMaxRate=11]="ErrCommissionGTMaxRate",e[e.ErrCommissionUpdateTime=12]="ErrCommissionUpdateTime",e[e.ErrCommissionChangeRateNegative=13]="ErrCommissionChangeRateNegative",e[e.ErrCommissionChangeRateGTMaxRate=14]="ErrCommissionChangeRateGTMaxRate",e[e.ErrCommissionGTMaxChangeRate=15]="ErrCommissionGTMaxChangeRate",e[e.ErrSelfDelegationBelowMinimum=16]="ErrSelfDelegationBelowMinimum",e[e.ErrMinSelfDelegationDecreased=17]="ErrMinSelfDelegationDecreased",e[e.ErrEmptyDelegatorAddr=18]="ErrEmptyDelegatorAddr",e[e.ErrNoDelegation=19]="ErrNoDelegation",e[e.ErrBadDelegatorAddr=20]="ErrBadDelegatorAddr",e[e.ErrNoDelegatorForAddress=21]="ErrNoDelegatorForAddress",e[e.ErrInsufficientShares=22]="ErrInsufficientShares",e[e.ErrDelegationValidatorEmpty=23]="ErrDelegationValidatorEmpty",e[e.ErrNotEnoughDelegationShares=24]="ErrNotEnoughDelegationShares",e[e.ErrNotMature=25]="ErrNotMature",e[e.ErrNoUnbondingDelegation=26]="ErrNoUnbondingDelegation",e[e.ErrMaxUnbondingDelegationEntries=27]="ErrMaxUnbondingDelegationEntries",e[e.ErrNoRedelegation=28]="ErrNoRedelegation",e[e.ErrSelfRedelegation=29]="ErrSelfRedelegation",e[e.ErrTinyRedelegationAmount=30]="ErrTinyRedelegationAmount",e[e.ErrBadRedelegationDst=31]="ErrBadRedelegationDst",e[e.ErrTransitiveRedelegation=32]="ErrTransitiveRedelegation",e[e.ErrMaxRedelegationEntries=33]="ErrMaxRedelegationEntries",e[e.ErrDelegatorShareExRateInvalid=34]="ErrDelegatorShareExRateInvalid",e[e.ErrBothShareMsgsGiven=35]="ErrBothShareMsgsGiven",e[e.ErrNeitherShareMsgsGiven=36]="ErrNeitherShareMsgsGiven",e[e.ErrInvalidHistoricalInfo=37]="ErrInvalidHistoricalInfo",e[e.ErrNoHistoricalInfo=38]="ErrNoHistoricalInfo",e[e.ErrEmptyValidatorPubKey=39]="ErrEmptyValidatorPubKey",e[e.ErrCommissionLTMinRate=40]="ErrCommissionLTMinRate",e[e.ErrUnbondingNotFound=41]="ErrUnbondingNotFound",e[e.ErrUnbondingOnHoldRefCountNegative=42]="ErrUnbondingOnHoldRefCountNegative"})(Fc||(Fc={}));var Vc;(function(e){e[e.ErrUnknownProposal=2]="ErrUnknownProposal",e[e.ErrInactiveProposal=3]="ErrInactiveProposal",e[e.ErrAlreadyActiveProposal=4]="ErrAlreadyActiveProposal",e[e.ErrInvalidProposalContent=5]="ErrInvalidProposalContent",e[e.ErrInvalidProposalType=6]="ErrInvalidProposalType",e[e.ErrInvalidVote=7]="ErrInvalidVote",e[e.ErrInvalidGenesis=8]="ErrInvalidGenesis",e[e.ErrNoProposalHandlerExists=9]="ErrNoProposalHandlerExists",e[e.ErrUnroutableProposalMsg=10]="ErrUnroutableProposalMsg",e[e.ErrNoProposalMsgs=11]="ErrNoProposalMsgs",e[e.ErrInvalidProposalMsg=12]="ErrInvalidProposalMsg",e[e.ErrInvalidSigner=13]="ErrInvalidSigner",e[e.ErrInvalidSignalMsg=14]="ErrInvalidSignalMsg",e[e.ErrMetadataTooLong=15]="ErrMetadataTooLong",e[e.ErrMinDepositTooSmall=16]="ErrMinDepositTooSmall",e[e.ErrProposalNotFound=17]="ErrProposalNotFound",e[e.ErrInvalidProposer=18]="ErrInvalidProposer",e[e.ErrNoDeposits=19]="ErrNoDeposits",e[e.ErrVotingPeriodEnded=20]="ErrVotingPeriodEnded",e[e.ErrInvalidProposal=21]="ErrInvalidProposal"})(Vc||(Vc={}));var Lc;(function(e){e[e.ErrEmptyDelegatorAddr=2]="ErrEmptyDelegatorAddr",e[e.ErrEmptyWithdrawAddr=3]="ErrEmptyWithdrawAddr",e[e.ErrEmptyValidatorAddr=4]="ErrEmptyValidatorAddr",e[e.ErrEmptyDelegationDistInfo=5]="ErrEmptyDelegationDistInfo",e[e.ErrNoValidatorDistInfo=6]="ErrNoValidatorDistInfo",e[e.ErrNoValidatorCommission=7]="ErrNoValidatorCommission",e[e.ErrSetWithdrawAddrDisabled=8]="ErrSetWithdrawAddrDisabled",e[e.ErrBadDistribution=9]="ErrBadDistribution",e[e.ErrInvalidProposalAmount=10]="ErrInvalidProposalAmount",e[e.ErrEmptyProposalRecipient=11]="ErrEmptyProposalRecipient",e[e.ErrNoValidatorExists=12]="ErrNoValidatorExists",e[e.ErrNoDelegationExists=13]="ErrNoDelegationExists"})(Lc||(Lc={}));var Gc;(function(e){e[e.ErrNoInputs=2]="ErrNoInputs",e[e.ErrNoOutputs=3]="ErrNoOutputs",e[e.ErrInputOutputMismatch=4]="ErrInputOutputMismatch",e[e.ErrSendDisabled=5]="ErrSendDisabled",e[e.ErrDenomMetadataNotFound=6]="ErrDenomMetadataNotFound",e[e.ErrInvalidKey=7]="ErrInvalidKey",e[e.ErrDuplicateEntry=8]="ErrDuplicateEntry",e[e.ErrMultipleSenders=9]="ErrMultipleSenders"})(Gc||(Gc={}));var Wc;(function(e){e[e.ErrCreateFailed=2]="ErrCreateFailed",e[e.ErrAccountExists=3]="ErrAccountExists",e[e.ErrInstantiateFailed=4]="ErrInstantiateFailed",e[e.ErrExecuteFailed=5]="ErrExecuteFailed",e[e.ErrGasLimit=6]="ErrGasLimit",e[e.ErrInvalidGenesis=7]="ErrInvalidGenesis",e[e.ErrNotFound=8]="ErrNotFound",e[e.ErrQueryFailed=9]="ErrQueryFailed",e[e.ErrInvalidMsg=10]="ErrInvalidMsg",e[e.ErrMigrationFailed=11]="ErrMigrationFailed",e[e.ErrEmpty=12]="ErrEmpty",e[e.ErrLimit=13]="ErrLimit",e[e.ErrInvalid=14]="ErrInvalid",e[e.ErrDuplicate=15]="ErrDuplicate",e[e.ErrMaxIBCChannels=16]="ErrMaxIBCChannels",e[e.ErrUnsupportedForContract=17]="ErrUnsupportedForContract",e[e.ErrPinContractFailed=18]="ErrPinContractFailed",e[e.ErrUnpinContractFailed=19]="ErrUnpinContractFailed",e[e.ErrUnknownMsg=20]="ErrUnknownMsg",e[e.ErrInvalidEvent=21]="ErrInvalidEvent"})(Wc||(Wc={}));const dn=-1;it.grpcWebClient_umdExports.grpc.Code.Unavailable;var st;(function(e){e.Get="GET",e.Post="POST",e.Options="OPTIONS"})(st||(st={}));var mn;(function(e){e.Unspecified="unspecified",e.ChainError="chain-error",e.ExecutionError="execution-error",e.NotFoundError="not-found-error",e.ValidationError="validation-error",e.WalletError="wallet-error",e.WalletNotInstalledError="wallet-not-installed-error",e.GrpcUnaryRequest="grpc-unary-request",e.HttpRequest="http-request",e.Web3="web3"})(mn||(mn={}));const Pi=e=>`${e}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(t,n,r)=>`${n.toUpperCase()+r}`).replace(new RegExp(/\w/),t=>t.toUpperCase());class $a extends Error{constructor(n,r){super(n.message);E(this,"type",mn.Unspecified);E(this,"code",dn);E(this,"name");E(this,"errorClass");E(this,"context");E(this,"contextModule");E(this,"contextCode");E(this,"message","");E(this,"stack","");E(this,"originalMessage","");this.parseError(n),this.parseContext(r),this.parse()}parse(){}parseError(n){this.setName(this.errorClass||this.constructor.name),this.setStack(n.stack||""),this.setMessage(n.message),this.originalMessage=n.message}parseContext(n){const{contextModule:r,type:s,code:o,context:i}=n||{contextModule:"",context:"",code:dn,type:mn.Unspecified};this.context=i,this.contextModule=r,this.type=s||mn.Unspecified,this.code=o||dn}setType(n){this.type=n}setCode(n){this.code=n}setContext(n){this.context=n}setOriginalMessage(n){this.originalMessage=n}setStack(n){try{this.stack=n}catch{}}setName(n){super.name=n,this.name=n,this.errorClass=n}setMessage(n){super.message=n,this.message=n}setContextModule(n){this.contextModule=n}setContextCode(n){this.contextCode=n}toOriginalError(){const n=new Error(this.originalMessage);return n.stack=this.stack,n.name=this.name||"",n}toError(){const n=new Error(this.message);return n.stack=this.stack,n.name=this.name||"",n}toCompactError(){const n=this.name||Pi(this.type),r=new Error(`${this.message} | ${JSON.stringify({originalMessage:this.originalMessage,message:this.message,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
|
|
2
2
|
`).map(s=>s.trim())})}`);return r.stack=this.stack,r.name=this.name||Pi(this.type),r}toJson(){return JSON.stringify({error:this.message,stack:this.stack})}toObject(){const n=this.name||Pi(this.type);return{message:this.message,originalMessage:this.originalMessage,errorClass:n,code:this.code,type:this.type,context:this.context,contextModule:this.contextModule,contextCode:this.contextCode,stack:(this.stack||"").split(`
|
|
3
3
|
`).map(r=>r.trim())}}toString(){return this.message}}E($a,"errorClass","");class ot extends $a{constructor(n,r){super(n,r);E(this,"errorClass","HttpRequestException");E(this,"method",st.Get);this.type=mn.HttpRequest,this.method=r&&r.method||st.Get}}class Dr extends $a{constructor(){super(...arguments);E(this,"errorClass","GeneralException")}}var un;(function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(un||(un={}));const xn="Cosmwasm";function Jc(e){try{const t=a.bech32$1.decodeToBytes(e);return{data:t.bytes,prefix:t.prefix}}catch{}try{return{data:a.hex.decode(e)}}catch{}try{return{data:a.b64.decode(e)}}catch{}throw new Error(`Cannot decode: ${e}`)}const ye=class ye{constructor(t){E(this,"platform",xn);E(this,"address");E(this,"domain");E(this,"denom");E(this,"denomType");if(ye.instanceof(t)){const n=t;this.address=n.address,this.domain=n.domain,this.denom=n.denom,this.denomType=n.denomType;return}if(typeof t=="string"){if(t.length<=8){this.address=new Uint8Array(0),this.denom=t,this.denomType="native";return}if(t.indexOf("/")!==-1){const n=t.split("/");if(n.length>=3){const{data:r,prefix:s}=Jc(n[n.length-2]);this.address=r,this.domain=s,this.denom=n[n.length-1],this.denomType=n.slice(0,n.length-2).join("/")}else{const{data:r}=Jc(n[1]);this.address=r,this.denomType=n[0]}}else{if(!ye.isValidAddress(t))throw new Error(`Invalid Cosmwasm address: ${t}`);const{bytes:n,prefix:r}=a.bech32$1.decodeToBytes(t);this.address=n,this.domain=r}}else if(t instanceof Uint8Array)this.address=t;else if(a.UniversalAddress.instanceof(t))this.address=t.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${t}`);if(!ye.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${a.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${ye.encode(this.domain,this.address)}/${this.denom}`:ye.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const t=new Uint8Array(a.UniversalAddress.byteSize);return t.set(this.address,a.UniversalAddress.byteSize-this.address.length),new a.UniversalAddress(t)}static isValidAddress(t){try{const n=a.bech32$1.decodeToBytes(t);return ye.validAddressLength(n.bytes)}catch{}return!1}static encode(t,n){return a.bech32$1.encode(t,a.bech32$1.toWords(n))}static validAddressLength(t){if(t.length!==ye.contractAddressByteSize&&t.length!==ye.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${ye.contractAddressByteSize} or ${ye.accountAddressByteSize} bytes but got ${t.length}`);return!0}static instanceof(t){return t.platform===xn}equals(t){return ye.instanceof(t)?this.toString()===t.toString():t.equals(this.toUniversalAddress())}};E(ye,"contractAddressByteSize",32),E(ye,"accountAddressByteSize",20);let he=ye;a.registerNative(xn,he);const lf=1e6,df="/cosmwasm.wasm.v1.MsgExecuteContract",mf="/ibc.applications.transfer.v1.MsgTransfer",xa="transfer",ff="send_packet",pf="recv_packet",gf="packet_dst_channel",yf="packet_src_channel",hf="packet_src_port",bf="packet_dst_port",vf="packet_sequence",wf="packet_data",_f=60*60*1e3,Ll=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Terra","terra"],["Terra2","terra"],["Wormchain","wormhole"],["Xpla","xpla"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"]],Gl=a.constMap(Ll);a.constMap(Ll,[1,[0]]);const Wl=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Terra","luna"],["Terra2","uluna"],["Wormchain","uworm"],["Xpla","uxpla"]]]],Sf=a.constMap(Wl);a.constMap(Wl,[[0,2],[1]]);const Af=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Osmosis:"channel-9"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Osmosis",{Wormchain:"channel-3906"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]],aa=a.constMap(Af),Pf=["Evmos","Injective"],Ef=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]],kf=a.constMap(Ef),Tf=[["Mainnet",[["Terra","28.325"],["Terra2","0.015"],["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Xpla","1147500000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"]]]],Of=a.constMap(Tf);var jt={},Xr={},ne={},uo={},If=a.commonjsGlobal&&a.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uo,"__esModule",{value:!0});uo.Decimal=void 0;const nt=If(a.bnExports),Kc=100;class ee{static fromUserInput(t,n){ee.verifyFractionalDigits(n);const r=t.match(/[^0-9.]/);if(r)throw new Error(`Invalid character at position ${r.index+1}`);let s,o;if(t==="")s="0",o="";else if(t.search(/\./)===-1)s=t,o="";else{const c=t.split(".");switch(c.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!c[1])throw new Error("Fractional part missing");s=c[0],o=c[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>n)throw new Error("Got more fractional digits than supported");const i=`${s}${o.padEnd(n,"0")}`;return new ee(i,n)}static fromAtomics(t,n){return ee.verifyFractionalDigits(n),new ee(t,n)}static zero(t){return ee.verifyFractionalDigits(t),new ee("0",t)}static one(t){return ee.verifyFractionalDigits(t),new ee("1"+"0".repeat(t),t)}static verifyFractionalDigits(t){if(!Number.isInteger(t))throw new Error("Fractional digits is not an integer");if(t<0)throw new Error("Fractional digits must not be negative");if(t>Kc)throw new Error(`Fractional digits must not exceed ${Kc}`)}static compare(t,n){if(t.fractionalDigits!==n.fractionalDigits)throw new Error("Fractional digits do not match");return t.data.atomics.cmp(new nt.default(n.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(t,n){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new nt.default(t),fractionalDigits:n}}clone(){return new ee(this.atomics,this.fractionalDigits)}floor(){const t=new nt.default(10).pow(new nt.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():ee.fromAtomics(n.mul(t).toString(),this.fractionalDigits)}ceil(){const t=new nt.default(10).pow(new nt.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():ee.fromAtomics(n.addn(1).mul(t).toString(),this.fractionalDigits)}toString(){const t=new nt.default(10).pow(new nt.default(this.data.fractionalDigits)),n=this.data.atomics.div(t),r=this.data.atomics.mod(t);if(r.isZero())return n.toString();{const o=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${n.toString()}.${o}`}}toFloatApproximation(){const t=Number(this.toString());if(Number.isNaN(t))throw new Error("Conversion to number failed");return t}plus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");const n=this.data.atomics.add(new nt.default(t.atomics));return new ee(n.toString(),this.fractionalDigits)}minus(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");const n=this.data.atomics.sub(new nt.default(t.atomics));if(n.ltn(0))throw new Error("Difference must not be negative");return new ee(n.toString(),this.fractionalDigits)}multiply(t){const n=this.data.atomics.mul(new nt.default(t.toString()));return new ee(n.toString(),this.fractionalDigits)}equals(t){return ee.compare(this,t)===0}isLessThan(t){return ee.compare(this,t)<0}isLessThanOrEqual(t){return ee.compare(this,t)<=0}isGreaterThan(t){return ee.compare(this,t)>0}isGreaterThanOrEqual(t){return ee.compare(this,t)>=0}}uo.Decimal=ee;var pt={},Bf=a.commonjsGlobal&&a.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pt,"__esModule",{value:!0});pt.Uint64=pt.Uint53=pt.Int53=pt.Uint32=void 0;const xs=Bf(a.bnExports),Nf=new xs.default("18446744073709551615",10,"be");class Hr{static fromBigEndianBytes(t){return Hr.fromBytes(t)}static fromBytes(t,n="be"){if(t.length!==4)throw new Error("Invalid input length. Expected 4 bytes.");for(let s=0;s<t.length;++s)if(!Number.isInteger(t[s])||t[s]>255||t[s]<0)throw new Error("Invalid value in byte. Found: "+t[s]);const r=n==="be"?t:Array.from(t).reverse();return new Hr(r[0]*2**24+r[1]*2**16+r[2]*2**8+r[3])}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Hr(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<0||t>4294967295)throw new Error("Input not in uint32 range: "+t.toString());this.data=t}toBytesBigEndian(){return new Uint8Array([Math.floor(this.data/2**24)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**0)&255])}toBytesLittleEndian(){return new Uint8Array([Math.floor(this.data/2**0)&255,Math.floor(this.data/2**8)&255,Math.floor(this.data/2**16)&255,Math.floor(this.data/2**24)&255])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}pt.Uint32=Hr;class Jr{static fromString(t){if(!t.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new Jr(Number.parseInt(t,10))}constructor(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+t.toString());this.data=t}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}pt.Int53=Jr;class Ha{static fromString(t){const n=Jr.fromString(t);return new Ha(n.toNumber())}constructor(t){const n=new Jr(t);if(n.toNumber()<0)throw new Error("Input is negative");this.data=n}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}}pt.Uint53=Ha;class Mn{static fromBytesBigEndian(t){return Mn.fromBytes(t)}static fromBytes(t,n="be"){if(t.length!==8)throw new Error("Invalid input length. Expected 8 bytes.");for(let s=0;s<t.length;++s)if(!Number.isInteger(t[s])||t[s]>255||t[s]<0)throw new Error("Invalid value in byte. Found: "+t[s]);const r=n==="be"?Array.from(t):Array.from(t).reverse();return new Mn(new xs.default(r))}static fromString(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new Mn(new xs.default(t,10,"be"))}static fromNumber(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");let n;try{n=new xs.default(t)}catch{throw new Error("Input is not a safe integer")}return new Mn(n)}constructor(t){if(t.isNeg())throw new Error("Input is negative");if(t.gt(Nf))throw new Error("Input exceeds uint64 range");this.data=t}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}}pt.Uint64=Mn;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Uint64=e.Uint53=e.Uint32=e.Int53=e.Decimal=void 0;var t=uo;Object.defineProperty(e,"Decimal",{enumerable:!0,get:function(){return t.Decimal}});var n=pt;Object.defineProperty(e,"Int53",{enumerable:!0,get:function(){return n.Int53}}),Object.defineProperty(e,"Uint32",{enumerable:!0,get:function(){return n.Uint32}}),Object.defineProperty(e,"Uint53",{enumerable:!0,get:function(){return n.Uint53}}),Object.defineProperty(e,"Uint64",{enumerable:!0,get:function(){return n.Uint64}})})(ne);var St={},lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.decodeTxRaw=void 0;const Ei=a.tx;function Mf(e){const t=Ei.TxRaw.decode(e);return{authInfo:Ei.AuthInfo.decode(t.authInfoBytes),body:Ei.TxBody.decode(t.bodyBytes),signatures:t.signatures}}lo.decodeTxRaw=Mf;var Hn={},dt={},$e={},ge={},gt={},R={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.fromAscii=qn.toAscii=void 0;function Rf(e){const t=n=>n.split("").map(r=>{const s=r.charCodeAt(0);if(s<32||s>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+s);return s});return Uint8Array.from(t(e))}qn.toAscii=Rf;function jf(e){return(n=>n.map(r=>{if(r<32||r>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+r);return String.fromCharCode(r)}))(Array.from(e)).join("")}qn.fromAscii=jf;var Fn={},Df=a.commonjsGlobal&&a.commonjsGlobal.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Uf=a.commonjsGlobal&&a.commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),$f=a.commonjsGlobal&&a.commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Df(t,e,n);return Uf(t,e),t};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.fromBase64=Fn.toBase64=void 0;const Jl=$f(a.base64Js);function xf(e){return Jl.fromByteArray(e)}Fn.toBase64=xf;function Hf(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return Jl.toByteArray(e)}Fn.fromBase64=Hf;var Dt={},Ws="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ca={};for(var gs=0;gs<Ws.length;gs++){var ki=Ws.charAt(gs);if(ca[ki]!==void 0)throw new TypeError(ki+" is ambiguous");ca[ki]=gs}function $n(e){var t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function Kl(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=$n(t)^r>>5}for(t=$n(t),n=0;n<e.length;++n){var s=e.charCodeAt(n);t=$n(t)^s&31}return t}function qf(e,t,n){if(n=n||90,e.length+7+t.length>n)throw new TypeError("Exceeds length limit");e=e.toLowerCase();var r=Kl(e);if(typeof r=="string")throw new Error(r);for(var s=e+"1",o=0;o<t.length;++o){var i=t[o];if(i>>5)throw new Error("Non 5-bit word");r=$n(r)^i,s+=Ws.charAt(i)}for(o=0;o<6;++o)r=$n(r);for(r^=1,o=0;o<6;++o){var c=r>>(5-o)*5&31;s+=Ws.charAt(c)}return s}function zl(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;e=n;var s=e.lastIndexOf("1");if(s===-1)return"No separator character for "+e;if(s===0)return"Missing prefix for "+e;var o=e.slice(0,s),i=e.slice(s+1);if(i.length<6)return"Data too short";var c=Kl(o);if(typeof c=="string")return c;for(var u=[],l=0;l<i.length;++l){var d=i.charAt(l),m=ca[d];if(m===void 0)return"Unknown character "+d;c=$n(c)^m,!(l+6>=i.length)&&u.push(m)}return c!==1?"Invalid checksum for "+e:{prefix:o,words:u}}function Ff(){var e=zl.apply(null,arguments);if(typeof e=="object")return e}function Vf(e){var t=zl.apply(null,arguments);if(typeof t=="object")return t;throw new Error(t)}function mo(e,t,n,r){for(var s=0,o=0,i=(1<<n)-1,c=[],u=0;u<e.length;++u)for(s=s<<t|e[u],o+=t;o>=n;)o-=n,c.push(s>>o&i);if(r)o>0&&c.push(s<<n-o&i);else{if(o>=t)return"Excess padding";if(s<<n-o&i)return"Non-zero padding"}return c}function Lf(e){var t=mo(e,8,5,!0);if(Array.isArray(t))return t}function Gf(e){var t=mo(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)}function Wf(e){var t=mo(e,5,8,!1);if(Array.isArray(t))return t}function Jf(e){var t=mo(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}var Kf={decodeUnsafe:Ff,decode:Vf,encode:qf,toWordsUnsafe:Lf,toWords:Gf,fromWordsUnsafe:Wf,fromWords:Jf},zf=a.commonjsGlobal&&a.commonjsGlobal.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Qf=a.commonjsGlobal&&a.commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Cf=a.commonjsGlobal&&a.commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&zf(t,e,n);return Qf(t,e),t};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.normalizeBech32=Dt.fromBech32=Dt.toBech32=void 0;const Js=Cf(Kf);function Ql(e,t,n){return Js.encode(e,Js.toWords(t),n)}Dt.toBech32=Ql;function Cl(e,t=1/0){const n=Js.decode(e,t);return{prefix:n.prefix,data:new Uint8Array(Js.fromWords(n.words))}}Dt.fromBech32=Cl;function Yf(e){const{prefix:t,data:n}=Cl(e);return Ql(t,n)}Dt.normalizeBech32=Yf;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.fromHex=Vn.toHex=void 0;function Xf(e){let t="";for(const n of e)t+=("0"+n.toString(16)).slice(-2);return t}Vn.toHex=Xf;function Zf(e){if(e.length%2!==0)throw new Error("hex string length must be a multiple of 2");const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=2*n,s=e.slice(r,r+2);if(!s.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t[n]=parseInt(s,16)}return t}Vn.fromHex=Zf;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.toRfc3339=Ln.fromRfc3339=void 0;const ep=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function _n(e,t=2){return e.toString().padStart(t,"0")}function tp(e){const t=ep.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const n=+t[1],r=+t[2],s=+t[3],o=+t[4],i=+t[5],c=+t[6],u=t[7]?Math.floor(+t[7]*1e3):0;let l,d,m;t[8]==="Z"?(l=1,d=0,m=0):(l=t[8].substring(0,1)==="-"?-1:1,d=+t[8].substring(1,3),m=+t[8].substring(4,6));const b=l*(d*60+m)*60,h=new Date;return h.setUTCFullYear(n,r-1,s),h.setUTCHours(o,i,c,u),new Date(h.getTime()-b*1e3)}Ln.fromRfc3339=tp;function np(e){const t=e.getUTCFullYear(),n=_n(e.getUTCMonth()+1),r=_n(e.getUTCDate()),s=_n(e.getUTCHours()),o=_n(e.getUTCMinutes()),i=_n(e.getUTCSeconds()),c=_n(e.getUTCMilliseconds(),3);return`${t}-${n}-${r}T${s}:${o}:${i}.${c}Z`}Ln.toRfc3339=np;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.fromUtf8=Gn.toUtf8=void 0;function rp(e){return new TextEncoder().encode(e)}Gn.toUtf8=rp;function sp(e,t=!1){const n=!t;return new TextDecoder("utf-8",{fatal:n}).decode(e)}Gn.fromUtf8=sp;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=e.toRfc3339=e.fromRfc3339=e.toHex=e.fromHex=e.toBech32=e.normalizeBech32=e.fromBech32=e.toBase64=e.fromBase64=e.toAscii=e.fromAscii=void 0;var t=qn;Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return t.fromAscii}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return t.toAscii}});var n=Fn;Object.defineProperty(e,"fromBase64",{enumerable:!0,get:function(){return n.fromBase64}}),Object.defineProperty(e,"toBase64",{enumerable:!0,get:function(){return n.toBase64}});var r=Dt;Object.defineProperty(e,"fromBech32",{enumerable:!0,get:function(){return r.fromBech32}}),Object.defineProperty(e,"normalizeBech32",{enumerable:!0,get:function(){return r.normalizeBech32}}),Object.defineProperty(e,"toBech32",{enumerable:!0,get:function(){return r.toBech32}});var s=Vn;Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return s.fromHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return s.toHex}});var o=Ln;Object.defineProperty(e,"fromRfc3339",{enumerable:!0,get:function(){return o.fromRfc3339}}),Object.defineProperty(e,"toRfc3339",{enumerable:!0,get:function(){return o.toRfc3339}});var i=Gn;Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(e,"toUtf8",{enumerable:!0,get:function(){return i.toUtf8}})})(R);var Ee={},Z={},Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.arrayContentStartsWith=Wn.arrayContentEquals=void 0;function op(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}Wn.arrayContentEquals=op;function ip(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;++n)if(e[n]!==t[n])return!1;return!0}Wn.arrayContentStartsWith=ip;var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.assertDefinedAndNotNull=Ut.assertDefined=Ut.assert=void 0;function ap(e,t){if(!e)throw new Error(t||"condition is not truthy")}Ut.assert=ap;function cp(e,t){if(e===void 0)throw new Error(t??"value is undefined")}Ut.assertDefined=cp;function up(e,t){if(e==null)throw new Error(t??"value is undefined or null")}Ut.assertDefinedAndNotNull=up;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});fo.sleep=void 0;async function lp(e){return new Promise(t=>setTimeout(t,e))}fo.sleep=lp;var $t={};Object.defineProperty($t,"__esModule",{value:!0});$t.isDefined=$t.isUint8Array=$t.isNonNullObject=void 0;function Yl(e){return typeof e=="object"&&e!==null}$t.isNonNullObject=Yl;function dp(e){return!(!Yl(e)||Object.prototype.toString.call(e)!=="[object Uint8Array]"||typeof a.dist.Buffer<"u"&&typeof a.dist.Buffer.isBuffer<"u"&&a.dist.Buffer.isBuffer(e))}$t.isUint8Array=dp;function mp(e){return e!==void 0}$t.isDefined=mp;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isUint8Array=e.isNonNullObject=e.isDefined=e.sleep=e.assertDefinedAndNotNull=e.assertDefined=e.assert=e.arrayContentStartsWith=e.arrayContentEquals=void 0;var t=Wn;Object.defineProperty(e,"arrayContentEquals",{enumerable:!0,get:function(){return t.arrayContentEquals}}),Object.defineProperty(e,"arrayContentStartsWith",{enumerable:!0,get:function(){return t.arrayContentStartsWith}});var n=Ut;Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return n.assert}}),Object.defineProperty(e,"assertDefined",{enumerable:!0,get:function(){return n.assertDefined}}),Object.defineProperty(e,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return n.assertDefinedAndNotNull}});var r=fo;Object.defineProperty(e,"sleep",{enumerable:!0,get:function(){return r.sleep}});var s=$t;Object.defineProperty(e,"isDefined",{enumerable:!0,get:function(){return s.isDefined}}),Object.defineProperty(e,"isNonNullObject",{enumerable:!0,get:function(){return s.isNonNullObject}}),Object.defineProperty(e,"isUint8Array",{enumerable:!0,get:function(){return s.isUint8Array}})})(Z);var fp=a.commonjsGlobal&&a.commonjsGlobal.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),pp=a.commonjsGlobal&&a.commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),gp=a.commonjsGlobal&&a.commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&fp(t,e,n);return pp(t,e),t};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.pbkdf2Sha512=Ee.pbkdf2Sha512Noble=Ee.pbkdf2Sha512NodeCrypto=Ee.pbkdf2Sha512Subtle=Ee.getSubtle=Ee.getNodeCrypto=void 0;const ln=Z,yp=a.require$$1,hp=a.require$$1$1;async function Xl(){try{const e=await Promise.resolve().then(()=>gp(a.requireCryptoBrowserify()));return typeof e=="object"&&Object.keys(e).length<=1?void 0:e}catch{return}}Ee.getNodeCrypto=Xl;async function Zl(){var t,n,r;let e=(t=globalThis==null?void 0:globalThis.crypto)==null?void 0:t.subtle;return e||(e=(r=(n=globalThis==null?void 0:globalThis.crypto)==null?void 0:n.webcrypto)==null?void 0:r.subtle),e}Ee.getSubtle=Zl;async function ed(e,t,n,r,s){return(0,ln.assert)(e,"Argument subtle is falsy"),(0,ln.assert)(typeof e=="object","Argument subtle is not of type object"),(0,ln.assert)(typeof e.importKey=="function","subtle.importKey is not a function"),(0,ln.assert)(typeof e.deriveBits=="function","subtle.deriveBits is not a function"),e.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(o=>e.deriveBits({name:"PBKDF2",salt:n,iterations:r,hash:{name:"SHA-512"}},o,s*8).then(i=>new Uint8Array(i)))}Ee.pbkdf2Sha512Subtle=ed;async function td(e,t,n,r,s){return(0,ln.assert)(e,"Argument nodeCrypto is falsy"),(0,ln.assert)(typeof e=="object","Argument nodeCrypto is not of type object"),(0,ln.assert)(typeof e.pbkdf2=="function","nodeCrypto.pbkdf2 is not a function"),new Promise((o,i)=>{e.pbkdf2(t,n,r,s,"sha512",(c,u)=>{c?i(c):o(Uint8Array.from(u))})})}Ee.pbkdf2Sha512NodeCrypto=td;async function nd(e,t,n,r){return(0,yp.pbkdf2Async)(hp.sha512,e,t,{c:n,dkLen:r})}Ee.pbkdf2Sha512Noble=nd;async function bp(e,t,n,r){const s=await Zl();if(s)return ed(s,e,t,n,r);{const o=await Xl();return o?td(o,e,t,n,r):nd(e,t,n,r)}}Ee.pbkdf2Sha512=bp;var et={},br={};Object.defineProperty(br,"__esModule",{value:!0});br.toRealUint8Array=void 0;function vp(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}br.toRealUint8Array=vp;Object.defineProperty(et,"__esModule",{value:!0});et.sha512=et.Sha512=et.sha256=et.Sha256=void 0;const wp=a.require$$0,_p=a.require$$1$1,rd=br;class sd{constructor(t){this.blockSize=512/8,this.impl=wp.sha256.create(),t&&this.update(t)}update(t){return this.impl.update((0,rd.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}et.Sha256=sd;function Sp(e){return new sd(e).digest()}et.sha256=Sp;class od{constructor(t){this.blockSize=1024/8,this.impl=_p.sha512.create(),t&&this.update(t)}update(t){return this.impl.update((0,rd.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}et.Sha512=od;function Ap(e){return new od(e).digest()}et.sha512=Ap;Object.defineProperty(gt,"__esModule",{value:!0});gt.Bip39=gt.EnglishMnemonic=gt.mnemonicToEntropy=gt.entropyToMnemonic=void 0;const zc=R,Pp=Ee,Ep=et,qa=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function id(e){return Array.from(e).map(t=>t.toString(2).padStart(8,"0")).join("")}function ad(e){const n=e.length*8/32,r=(0,Ep.sha256)(e);return id(r).slice(0,n)}function cd(e){return parseInt(e,2)}const kp=[16,20,24,28,32],Tp=[12,15,18,21,24];function ud(e){if(kp.indexOf(e.length)===-1)throw new Error("invalid input length");const t=id(e),n=ad(e);return(t+n).match(/(.{11})/g).map(i=>{const c=cd(i);return qa[c]}).join(" ")}gt.entropyToMnemonic=ud;const Op="Invalid number of words",Ip="Found word that is not in the wordlist",Bp="Invalid entropy",Np="Invalid mnemonic checksum";function ua(e){return e.normalize("NFKD")}function Fa(e){const t=ua(e).split(" ");if(!Tp.includes(t.length))throw new Error(Op);const n=t.map(l=>{const d=qa.indexOf(l);if(d===-1)throw new Error(Ip);return d.toString(2).padStart(11,"0")}).join(""),r=Math.floor(n.length/33)*32,s=n.slice(0,r),o=n.slice(r),i=s.match(/(.{1,8})/g).map(cd);if(i.length<16||i.length>32||i.length%4!==0)throw new Error(Bp);const c=Uint8Array.from(i);if(ad(c)!==o)throw new Error(Np);return c}gt.mnemonicToEntropy=Fa;class fn{constructor(t){if(!fn.mnemonicMatcher.test(t))throw new Error("Invalid mnemonic format");const n=t.split(" "),r=[12,15,18,21,24];if(r.indexOf(n.length)===-1)throw new Error(`Invalid word count in mnemonic (allowed: ${r} got: ${n.length})`);for(const s of n)if(fn.wordlist.indexOf(s)===-1)throw new Error("Mnemonic contains invalid word");Fa(t),this.data=t}toString(){return this.data}}gt.EnglishMnemonic=fn;fn.wordlist=qa;fn.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;class Mp{static encode(t){return new fn(ud(t))}static decode(t){return Fa(t.toString())}static async mnemonicToSeed(t,n){const r=(0,zc.toUtf8)(ua(t.toString())),s="mnemonic"+(n?ua(n):""),o=(0,zc.toUtf8)(s);return(0,Pp.pbkdf2Sha512)(r,o,2048,64)}}gt.Bip39=Mp;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.Hmac=void 0;class Rp{constructor(t,n){const r=new t().blockSize;this.hash=o=>new t().update(o).digest();let s=n;if(s.length>r&&(s=this.hash(s)),s.length<r){const o=new Uint8Array(r-s.length);s=new Uint8Array([...s,...o])}this.oKeyPad=s.map(o=>o^92),this.iKeyPad=s.map(o=>o^54),this.messageHasher=new t,this.blockSize=r,this.update(this.iKeyPad)}update(t){return this.messageHasher.update(t),this}digest(){const t=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...t]))}}Zr.Hmac=Rp;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.keccak256=Jn.Keccak256=void 0;const jp=a.require$$0$1,Dp=br;class ld{constructor(t){this.blockSize=512/8,this.impl=jp.keccak_256.create(),t&&this.update(t)}update(t){return this.impl.update((0,Dp.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}Jn.Keccak256=ld;function Up(e){return new ld(e).digest()}Jn.keccak256=Up;var ke={},$p=a.commonjsGlobal&&a.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ke,"__esModule",{value:!0});ke.Xchacha20poly1305Ietf=ke.xchacha20NonceLength=ke.Ed25519=ke.Ed25519Keypair=ke.Argon2id=ke.isArgon2idOptions=void 0;const xp=Z,De=$p(a.libsodiumWrappers);function Hp(e){return!(!(0,xp.isNonNullObject)(e)||typeof e.outputLength!="number"||typeof e.opsLimit!="number"||typeof e.memLimitKib!="number")}ke.isArgon2idOptions=Hp;class qp{static async execute(t,n,r){return await De.default.ready,De.default.crypto_pwhash(r.outputLength,t,n,r.opsLimit,r.memLimitKib*1024,De.default.crypto_pwhash_ALG_ARGON2ID13)}}ke.Argon2id=qp;class po{static fromLibsodiumPrivkey(t){if(t.length!==64)throw new Error(`Unexpected key length ${t.length}. Must be 64.`);return new po(t.slice(0,32),t.slice(32,64))}constructor(t,n){this.privkey=t,this.pubkey=n}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}ke.Ed25519Keypair=po;class Fp{static async makeKeypair(t){await De.default.ready;const n=De.default.crypto_sign_seed_keypair(t);return po.fromLibsodiumPrivkey(n.privateKey)}static async createSignature(t,n){return await De.default.ready,De.default.crypto_sign_detached(t,n.toLibsodiumPrivkey())}static async verifySignature(t,n,r){return await De.default.ready,De.default.crypto_sign_verify_detached(t,n,r)}}ke.Ed25519=Fp;ke.xchacha20NonceLength=24;class Vp{static async encrypt(t,n,r){return await De.default.ready,De.default.crypto_aead_xchacha20poly1305_ietf_encrypt(t,null,null,r,n)}static async decrypt(t,n,r){return await De.default.ready,De.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,t,null,r,n)}}ke.Xchacha20poly1305Ietf=Vp;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.Random=void 0;class Lp{static getBytes(t){try{const n=typeof window=="object"?window:self,r=typeof n.crypto<"u"?n.crypto:n.msCrypto,s=new Uint8Array(t);return r.getRandomValues(s),s}catch{try{const n=a.requireCryptoBrowserify();return new Uint8Array([...n.randomBytes(t)])}catch{throw new Error("No secure random number generator found")}}}}go.Random=Lp;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.ripemd160=Kn.Ripemd160=void 0;const Gp=a.require$$0$2,Wp=br;class dd{constructor(t){this.blockSize=512/8,this.impl=Gp.ripemd160.create(),t&&this.update(t)}update(t){return this.impl.update((0,Wp.toRealUint8Array)(t)),this}digest(){return this.impl.digest()}}Kn.Ripemd160=dd;function Jp(e){return new dd(e).digest()}Kn.ripemd160=Jp;var yo={},pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.ExtendedSecp256k1Signature=pn.Secp256k1Signature=void 0;function Rn(e){let t=0;for(const n of e)if(n===0)t++;else break;return e.slice(t)}const ys=2;class Kr{static fromFixedLength(t){if(t.length!==64)throw new Error(`Got invalid data length: ${t.length}. Expected 2x 32 bytes for the pair (r, s)`);return new Kr(Rn(t.slice(0,32)),Rn(t.slice(32,64)))}static fromDer(t){let n=0;if(t[n++]!==48)throw new Error("Prefix 0x30 expected");const r=t[n++];if(t.length-n!==r)throw new Error("Data length mismatch detected");if(t[n++]!==ys)throw new Error("INTEGER tag expected");const o=t[n++];if(o>=128)throw new Error("Decoding length values above 127 not supported");const i=t.slice(n,n+o);if(n+=o,t[n++]!==ys)throw new Error("INTEGER tag expected");const u=t[n++];if(u>=128)throw new Error("Decoding length values above 127 not supported");const l=t.slice(n,n+u);return n+=u,new Kr(Rn(i),Rn(l))}constructor(t,n){if(t.length>32||t.length===0||t[0]===0)throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(n.length>32||n.length===0||n[0]===0)throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:t,s:n}}r(t){if(t===void 0)return this.data.r;{const n=t-this.data.r.length;if(n<0)throw new Error("Length too small to hold parameter r");const r=new Uint8Array(n);return new Uint8Array([...r,...this.data.r])}}s(t){if(t===void 0)return this.data.s;{const n=t-this.data.s.length;if(n<0)throw new Error("Length too small to hold parameter s");const r=new Uint8Array(n);return new Uint8Array([...r,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const t=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,n=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,r=t.length,s=n.length,o=new Uint8Array([ys,r,...t,ys,s,...n]);return new Uint8Array([48,o.length,...o])}}pn.Secp256k1Signature=Kr;class Va extends Kr{static fromFixedLength(t){if(t.length!==65)throw new Error(`Got invalid data length ${t.length}. Expected 32 + 32 + 1`);return new Va(Rn(t.slice(0,32)),Rn(t.slice(32,64)),t[64])}constructor(t,n,r){if(super(t,n),!Number.isInteger(r))throw new Error("The recovery parameter must be an integer.");if(r<0||r>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=r}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}pn.ExtendedSecp256k1Signature=Va;var md=a.commonjsGlobal&&a.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yo,"__esModule",{value:!0});yo.Secp256k1=void 0;const hs=R,fd=md(a.bnExports),Kp=md(a.requireElliptic()),zp=pn,Wt=new Kp.default.ec("secp256k1"),Qp=new fd.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");class Cp{static async makeKeypair(t){if(t.length!==32)throw new Error("input data is not a valid secp256k1 private key");const n=Wt.keyFromPrivate(t);if(n.validate().result!==!0)throw new Error("input data is not a valid secp256k1 private key");if(new fd.default(t).gte(Qp))throw new Error("input data is not a valid secp256k1 private key");return{privkey:(0,hs.fromHex)(n.getPrivate("hex")),pubkey:Uint8Array.from(n.getPublic("array"))}}static async createSignature(t,n){if(t.length===0)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=Wt.keyFromPrivate(n),{r:s,s:o,recoveryParam:i}=r.sign(t,{canonical:!0});if(typeof i!="number")throw new Error("Recovery param missing");return new zp.ExtendedSecp256k1Signature(Uint8Array.from(s.toArray()),Uint8Array.from(o.toArray()),i)}static async verifySignature(t,n,r){if(n.length===0)throw new Error("Message hash must not be empty");if(n.length>32)throw new Error("Message hash length must not exceed 32 bytes");const s=Wt.keyFromPublic(r);try{return s.verify(n,t.toDer())}catch{return!1}}static recoverPubkey(t,n){const r={r:(0,hs.toHex)(t.r()),s:(0,hs.toHex)(t.s())},s=Wt.recoverPubKey(n,r,t.recovery),o=Wt.keyFromPublic(s);return(0,hs.fromHex)(o.getPublic(!1,"hex"))}static compressPubkey(t){switch(t.length){case 33:return t;case 65:return Uint8Array.from(Wt.keyFromPublic(t).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static uncompressPubkey(t){switch(t.length){case 33:return Uint8Array.from(Wt.keyFromPublic(t).getPublic(!1,"array"));case 65:return t;default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(t){switch(t.length){case 64:return t;case 65:return t.slice(0,64);default:throw new Error("Invalid signature length")}}}yo.Secp256k1=Cp;var pd={};(function(e){var t=a.commonjsGlobal&&a.commonjsGlobal.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.stringToPath=e.pathToString=e.Slip10=e.Slip10RawIndex=e.slip10CurveFromString=e.Slip10Curve=void 0;const n=R,r=ne,s=t(a.bnExports),o=t(a.requireElliptic()),i=Zr,c=et;var u;(function(v){v.Secp256k1="Bitcoin seed",v.Ed25519="ed25519 seed"})(u=e.Slip10Curve||(e.Slip10Curve={}));function l(v){switch(v){case u.Ed25519:return u.Ed25519;case u.Secp256k1:return u.Secp256k1;default:throw new Error(`Unknown curve string: '${v}'`)}}e.slip10CurveFromString=l;class d extends r.Uint32{static hardened(f){return new d(f+2**31)}static normal(f){return new d(f)}isHardened(){return this.data>=2**31}}e.Slip10RawIndex=d;const m=new o.default.ec("secp256k1");class b{static derivePath(f,_,j){let B=this.master(f,_);for(const Q of j)B=this.child(f,B.privkey,B.chainCode,Q);return B}static master(f,_){const j=new i.Hmac(c.Sha512,(0,n.toAscii)(f)).update(_).digest(),B=j.slice(0,32),Q=j.slice(32,64);return f!==u.Ed25519&&(this.isZero(B)||this.isGteN(f,B))?this.master(f,j):{chainCode:Q,privkey:B}}static child(f,_,j,B){let Q;if(B.isHardened()){const w=new Uint8Array([0,..._,...B.toBytesBigEndian()]);Q=new i.Hmac(c.Sha512,j).update(w).digest()}else{if(f===u.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const w=new Uint8Array([...b.serializedPoint(f,new s.default(_)),...B.toBytesBigEndian()]);Q=new i.Hmac(c.Sha512,j).update(w).digest()}}return this.childImpl(f,_,j,B,Q)}static serializedPoint(f,_){switch(f){case u.Secp256k1:return(0,n.fromHex)(m.g.mul(_).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(f,_,j,B,Q){const w=Q.slice(0,32),P=Q.slice(32,64),S=P;if(f===u.Ed25519)return{chainCode:S,privkey:w};const D=this.n(f),V=new s.default(w).add(new s.default(_)).mod(D),L=Uint8Array.from(V.toArray("be",32));if(this.isGteN(f,w)||this.isZero(L)){const G=new i.Hmac(c.Sha512,j).update(new Uint8Array([1,...P,...B.toBytesBigEndian()])).digest();return this.childImpl(f,_,j,B,G)}return{chainCode:S,privkey:L}}static isZero(f){return f.every(_=>_===0)}static isGteN(f,_){return new s.default(_).gte(this.n(f))}static n(f){switch(f){case u.Secp256k1:return new s.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}e.Slip10=b;function h(v){return v.reduce((f,_)=>{const j=_.isHardened()?`${_.toNumber()-2147483648}'`:_.toString();return f+"/"+j},"m")}e.pathToString=h;function A(v){if(!v.startsWith("m"))throw new Error("Path string must start with 'm'");let f=v.slice(1);const _=new Array;for(;f;){const j=f.match(/^\/([0-9]+)('?)/);if(!j)throw new Error("Syntax error while reading path component");const[B,Q,w]=j,P=r.Uint53.fromString(Q).toNumber();if(P>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");w?_.push(d.hardened(P)):_.push(d.normal(P)),f=f.slice(B.length)}return _}e.stringToPath=A})(pd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringToPath=e.Slip10RawIndex=e.slip10CurveFromString=e.Slip10Curve=e.Slip10=e.pathToString=e.sha512=e.Sha512=e.sha256=e.Sha256=e.Secp256k1Signature=e.ExtendedSecp256k1Signature=e.Secp256k1=e.ripemd160=e.Ripemd160=e.Random=e.Xchacha20poly1305Ietf=e.xchacha20NonceLength=e.isArgon2idOptions=e.Ed25519Keypair=e.Ed25519=e.Argon2id=e.keccak256=e.Keccak256=e.Hmac=e.EnglishMnemonic=e.Bip39=void 0;var t=gt;Object.defineProperty(e,"Bip39",{enumerable:!0,get:function(){return t.Bip39}}),Object.defineProperty(e,"EnglishMnemonic",{enumerable:!0,get:function(){return t.EnglishMnemonic}});var n=Zr;Object.defineProperty(e,"Hmac",{enumerable:!0,get:function(){return n.Hmac}});var r=Jn;Object.defineProperty(e,"Keccak256",{enumerable:!0,get:function(){return r.Keccak256}}),Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return r.keccak256}});var s=ke;Object.defineProperty(e,"Argon2id",{enumerable:!0,get:function(){return s.Argon2id}}),Object.defineProperty(e,"Ed25519",{enumerable:!0,get:function(){return s.Ed25519}}),Object.defineProperty(e,"Ed25519Keypair",{enumerable:!0,get:function(){return s.Ed25519Keypair}}),Object.defineProperty(e,"isArgon2idOptions",{enumerable:!0,get:function(){return s.isArgon2idOptions}}),Object.defineProperty(e,"xchacha20NonceLength",{enumerable:!0,get:function(){return s.xchacha20NonceLength}}),Object.defineProperty(e,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return s.Xchacha20poly1305Ietf}});var o=go;Object.defineProperty(e,"Random",{enumerable:!0,get:function(){return o.Random}});var i=Kn;Object.defineProperty(e,"Ripemd160",{enumerable:!0,get:function(){return i.Ripemd160}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});var c=yo;Object.defineProperty(e,"Secp256k1",{enumerable:!0,get:function(){return c.Secp256k1}});var u=pn;Object.defineProperty(e,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return u.ExtendedSecp256k1Signature}}),Object.defineProperty(e,"Secp256k1Signature",{enumerable:!0,get:function(){return u.Secp256k1Signature}});var l=et;Object.defineProperty(e,"Sha256",{enumerable:!0,get:function(){return l.Sha256}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(e,"Sha512",{enumerable:!0,get:function(){return l.Sha512}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return l.sha512}});var d=pd;Object.defineProperty(e,"pathToString",{enumerable:!0,get:function(){return d.pathToString}}),Object.defineProperty(e,"Slip10",{enumerable:!0,get:function(){return d.Slip10}}),Object.defineProperty(e,"Slip10Curve",{enumerable:!0,get:function(){return d.Slip10Curve}}),Object.defineProperty(e,"slip10CurveFromString",{enumerable:!0,get:function(){return d.slip10CurveFromString}}),Object.defineProperty(e,"Slip10RawIndex",{enumerable:!0,get:function(){return d.Slip10RawIndex}}),Object.defineProperty(e,"stringToPath",{enumerable:!0,get:function(){return d.stringToPath}})})(ge);var pe={},es={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isMultisigThresholdPubkey=e.isSinglePubkey=e.pubkeyType=e.isSecp256k1Pubkey=e.isEd25519Pubkey=void 0;function t(o){return o.type==="tendermint/PubKeyEd25519"}e.isEd25519Pubkey=t;function n(o){return o.type==="tendermint/PubKeySecp256k1"}e.isSecp256k1Pubkey=n,e.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"};function r(o){return[e.pubkeyType.ed25519,e.pubkeyType.secp256k1,e.pubkeyType.sr25519].includes(o.type)}e.isSinglePubkey=r;function s(o){return o.type==="tendermint/PubKeyMultisigThreshold"}e.isMultisigThresholdPubkey=s})(es);Object.defineProperty(pe,"__esModule",{value:!0});pe.encodeBech32Pubkey=pe.encodeAminoPubkey=pe.decodeBech32Pubkey=pe.decodeAminoPubkey=pe.encodeEd25519Pubkey=pe.encodeSecp256k1Pubkey=void 0;const Ie=R,Yp=ne,Ur=Z,kt=es;function Xp(e){if(e.length!==33||e[0]!==2&&e[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:kt.pubkeyType.secp256k1,value:(0,Ie.toBase64)(e)}}pe.encodeSecp256k1Pubkey=Xp;function Zp(e){if(e.length!==32)throw new Error("Ed25519 public key must be 32 bytes long");return{type:kt.pubkeyType.ed25519,value:(0,Ie.toBase64)(e)}}pe.encodeEd25519Pubkey=Zp;const la=(0,Ie.fromHex)("eb5ae98721"),da=(0,Ie.fromHex)("1624de6420"),Qc=(0,Ie.fromHex)("0dfb100520"),Ks=(0,Ie.fromHex)("22c1f7e2");function La(e){if((0,Ur.arrayContentStartsWith)(e,la)){const t=e.slice(la.length);if(t.length!==33)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:kt.pubkeyType.secp256k1,value:(0,Ie.toBase64)(t)}}else if((0,Ur.arrayContentStartsWith)(e,da)){const t=e.slice(da.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:kt.pubkeyType.ed25519,value:(0,Ie.toBase64)(t)}}else if((0,Ur.arrayContentStartsWith)(e,Qc)){const t=e.slice(Qc.length);if(t.length!==32)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:kt.pubkeyType.sr25519,value:(0,Ie.toBase64)(t)}}else{if((0,Ur.arrayContentStartsWith)(e,Ks))return tg(e);throw new Error("Unsupported public key type. Amino data starts with: "+(0,Ie.toHex)(e.slice(0,5)))}}pe.decodeAminoPubkey=La;function eg(e){const{data:t}=(0,Ie.fromBech32)(e);return La(t)}pe.decodeBech32Pubkey=eg;function Cc(e){if(e.length<1)throw new Error("Can't decode varint. EOF");if(e[0]>127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function tg(e){const t=Array.from(e),n=t.splice(0,Ks.length);if(!(0,Ur.arrayContentStartsWith)(n,Ks))throw new Error("Invalid multisig prefix.");if(t.shift()!=8)throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");const[r,s]=Cc(t);t.splice(0,s);const o=[];for(;t.length>0;){if(t.shift()!=18)throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");const[i,c]=Cc(t);if(t.splice(0,c),t.length<i)throw new Error("Invalid multisig data length.");const u=t.splice(0,i),l=La(Uint8Array.from(u));o.push(l)}return{type:kt.pubkeyType.multisigThreshold,value:{threshold:r.toString(),pubkeys:o}}}function Yc(e){const t=Yp.Uint53.fromString(e.toString()).toNumber();if(t>127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function Ga(e){if((0,kt.isMultisigThresholdPubkey)(e)){const t=Array.from(Ks);t.push(8),t.push(...Yc(e.value.threshold));for(const n of e.value.pubkeys.map(r=>Ga(r)))t.push(18),t.push(...Yc(n.length)),t.push(...n);return new Uint8Array(t)}else{if((0,kt.isEd25519Pubkey)(e))return new Uint8Array([...da,...(0,Ie.fromBase64)(e.value)]);if((0,kt.isSecp256k1Pubkey)(e))return new Uint8Array([...la,...(0,Ie.fromBase64)(e.value)]);throw new Error("Unsupported pubkey type")}}pe.encodeAminoPubkey=Ga;function ng(e,t){return(0,Ie.toBech32)(t,Ga(e))}pe.encodeBech32Pubkey=ng;Object.defineProperty($e,"__esModule",{value:!0});$e.pubkeyToAddress=$e.pubkeyToRawAddress=$e.rawSecp256k1PubkeyToRawAddress=$e.rawEd25519PubkeyToRawAddress=void 0;const zs=ge,ma=R,rg=pe,Ti=es;function gd(e){if(e.length!==32)throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`);return(0,zs.sha256)(e).slice(0,20)}$e.rawEd25519PubkeyToRawAddress=gd;function yd(e){if(e.length!==33)throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`);return(0,zs.ripemd160)((0,zs.sha256)(e))}$e.rawSecp256k1PubkeyToRawAddress=yd;function hd(e){if((0,Ti.isSecp256k1Pubkey)(e)){const t=(0,ma.fromBase64)(e.value);return yd(t)}else if((0,Ti.isEd25519Pubkey)(e)){const t=(0,ma.fromBase64)(e.value);return gd(t)}else if((0,Ti.isMultisigThresholdPubkey)(e)){const t=(0,rg.encodeAminoPubkey)(e);return(0,zs.sha256)(t).slice(0,20)}else throw new Error("Unsupported public key type")}$e.pubkeyToRawAddress=hd;function sg(e,t){return(0,ma.toBech32)(t,hd(e))}$e.pubkeyToAddress=sg;var yt={};Object.defineProperty(yt,"__esModule",{value:!0});yt.addCoins=yt.parseCoins=yt.coins=yt.coin=void 0;const fa=ne;function bd(e,t){let n;if(typeof e=="number")try{n=new fa.Uint53(e).toString()}catch{throw new Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!e.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");n=e.replace(/^0*/,"")||"0"}return{amount:n,denom:t}}yt.coin=bd;function og(e,t){return[bd(e,t)]}yt.coins=og;function ig(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(t=>{const n=t.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!n)throw new Error("Got an invalid coin string");return{amount:n[1].replace(/^0+/,"")||"0",denom:n[2]}})}yt.parseCoins=ig;function ag(e,t){if(e.denom!==t.denom)throw new Error("Trying to add two coins with different denoms");return{amount:fa.Decimal.fromAtomics(e.amount,0).plus(fa.Decimal.fromAtomics(t.amount,0)).atomics,denom:e.denom}}yt.addCoins=ag;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.createMultisigThresholdPubkey=zn.compareArrays=void 0;const Xc=R,cg=ne,Zc=$e;function vd(e,t){const n=(0,Xc.toHex)(e),r=(0,Xc.toHex)(t);return n===r?0:n<r?-1:1}zn.compareArrays=vd;function ug(e,t,n=!1){const r=new cg.Uint53(t);if(r.toNumber()>e.length)throw new Error(`Threshold k = ${r.toNumber()} exceeds number of keys n = ${e.length}`);const s=n?e:Array.from(e).sort((o,i)=>{const c=(0,Zc.pubkeyToRawAddress)(o),u=(0,Zc.pubkeyToRawAddress)(i);return vd(c,u)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:r.toString(),pubkeys:s}}}zn.createMultisigThresholdPubkey=ug;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.omitDefault=void 0;function lg(e){switch(typeof e){case"string":return e===""?void 0:e;case"number":return e===0?void 0:e;case"bigint":return e===BigInt(0)?void 0:e;case"boolean":return e||void 0;default:throw new Error(`Got unsupported type '${typeof e}'`)}}ho.omitDefault=lg;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});ts.makeCosmoshubPath=void 0;const _r=ge;function dg(e){return[_r.Slip10RawIndex.hardened(44),_r.Slip10RawIndex.hardened(118),_r.Slip10RawIndex.hardened(0),_r.Slip10RawIndex.normal(0),_r.Slip10RawIndex.normal(e)]}ts.makeCosmoshubPath=dg;var Qn={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.decodeSignature=Gt.encodeSecp256k1Signature=void 0;const pa=R,mg=pe,fg=es;function pg(e,t){if(t.length!==64)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,mg.encodeSecp256k1Pubkey)(e),signature:(0,pa.toBase64)(t)}}Gt.encodeSecp256k1Signature=pg;function gg(e){switch(e.pub_key.type){case fg.pubkeyType.secp256k1:return{pubkey:(0,pa.fromBase64)(e.pub_key.value),signature:(0,pa.fromBase64)(e.signature)};default:throw new Error("Unsupported pubkey type")}}Gt.decodeSignature=gg;var tt={};Object.defineProperty(tt,"__esModule",{value:!0});tt.serializeSignDoc=tt.escapeCharacters=tt.makeSignDoc=tt.sortedJsonStringify=void 0;const yg=R,eu=ne;function ga(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(ga);const t=Object.keys(e).sort(),n={};return t.forEach(r=>{n[r]=ga(e[r])}),n}function wd(e){return JSON.stringify(ga(e))}tt.sortedJsonStringify=wd;function hg(e,t,n,r,s,o,i){return{chain_id:n,account_number:eu.Uint53.fromString(s.toString()).toString(),sequence:eu.Uint53.fromString(o.toString()).toString(),fee:t,msgs:e,memo:r||"",...i&&{timeout_height:i.toString()}}}tt.makeSignDoc=hg;function _d(e){const t=/&/g,n=/</g,r=/>/g;return e.replace(t,"\\u0026").replace(n,"\\u003c").replace(r,"\\u003e")}tt.escapeCharacters=_d;function bg(e){const t=_d(wd(e));return(0,yg.toUtf8)(t)}tt.serializeSignDoc=bg;var Wa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=e.supportedAlgorithms=e.executeKdf=e.cosmjsSalt=void 0;const t=ge,n=R;e.cosmjsSalt=(0,n.toAscii)("The CosmJS salt.");async function r(i,c){switch(c.algorithm){case"argon2id":{const u=c.params;if(!(0,t.isArgon2idOptions)(u))throw new Error("Invalid format of argon2id params");return t.Argon2id.execute(i,e.cosmjsSalt,u)}default:throw new Error("Unsupported KDF algorithm")}}e.executeKdf=r,e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function s(i,c,u){switch(u.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const l=t.Random.getBytes(t.xchacha20NonceLength);return new Uint8Array([...l,...await t.Xchacha20poly1305Ietf.encrypt(i,c,l)])}default:throw new Error(`Unsupported encryption algorithm: '${u.algorithm}'`)}}e.encrypt=s;async function o(i,c,u){switch(u.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const l=i.slice(0,t.xchacha20NonceLength);return t.Xchacha20poly1305Ietf.decrypt(i.slice(t.xchacha20NonceLength),c,l)}default:throw new Error(`Unsupported encryption algorithm: '${u.algorithm}'`)}}e.decrypt=o})(Wa);Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Secp256k1HdWallet=Qn.extractKdfConfiguration=void 0;const qe=ge,Sr=R,jn=Z,vg=$e,wg=ts,_g=Gt,Sg=tt,Ar=Wa,Hs="secp256k1wallet-v1",Ag={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function Pg(e){return!(!(0,jn.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function Eg(e){return e.kdf}function kg(e){const t=JSON.parse(e);if(!(0,jn.isNonNullObject)(t))throw new Error("Root document is not an object.");switch(t.type){case Hs:return Eg(t);default:throw new Error("Unsupported serialization type")}}Qn.extractKdfConfiguration=kg;const tu={bip39Password:"",hdPaths:[(0,wg.makeCosmoshubPath)(0)],prefix:"cosmos"};class tn{static async fromMnemonic(t,n={}){const r=new qe.EnglishMnemonic(t),s=await qe.Bip39.mnemonicToSeed(r,n.bip39Password);return new tn(r,{...n,seed:s})}static async generate(t=12,n={}){const r=4*Math.floor(11*t/33),s=qe.Random.getBytes(r),o=qe.Bip39.encode(s);return tn.fromMnemonic(o.toString(),n)}static async deserialize(t,n){const r=JSON.parse(t);if(!(0,jn.isNonNullObject)(r))throw new Error("Root document is not an object.");switch(r.type){case Hs:return tn.deserializeTypeV1(t,n);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(t,n){const r=JSON.parse(t);if(!(0,jn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=r;switch(s.type){case Hs:{const o=await(0,Ar.decrypt)((0,Sr.fromBase64)(s.data),n,s.encryption),i=JSON.parse((0,Sr.fromUtf8)(o)),{mnemonic:c,accounts:u}=i;if((0,jn.assert)(typeof c=="string"),!Array.isArray(u))throw new Error("Property 'accounts' is not an array");if(!u.every(m=>Pg(m)))throw new Error("Account is not in the correct format.");const l=u[0].prefix;if(!u.every(({prefix:m})=>m===l))throw new Error("Accounts do not all have the same prefix");const d=u.map(({hdPath:m})=>(0,qe.stringToPath)(m));return tn.fromMnemonic(c,{hdPaths:d,prefix:l})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,n){const r=JSON.parse(t);if(!(0,jn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=await(0,Ar.executeKdf)(n,r.kdf);return tn.deserializeWithEncryptionKey(t,s)}constructor(t,n){const r=n.hdPaths??tu.hdPaths,s=n.prefix??tu.prefix;this.secret=t,this.seed=n.seed,this.accounts=r.map(o=>({hdPath:o,prefix:s}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:n,pubkey:r,address:s})=>({algo:n,pubkey:r,address:s}))}async signAmino(t,n){const s=(await this.getAccountsWithPrivkeys()).find(({address:d})=>d===t);if(s===void 0)throw new Error(`Address ${t} not found in wallet`);const{privkey:o,pubkey:i}=s,c=(0,qe.sha256)((0,Sg.serializeSignDoc)(n)),u=await qe.Secp256k1.createSignature(c,o),l=new Uint8Array([...u.r(32),...u.s(32)]);return{signed:n,signature:(0,_g.encodeSecp256k1Signature)(i,l)}}async serialize(t){const n=Ag,r=await(0,Ar.executeKdf)(t,n);return this.serializeWithEncryptionKey(r,n)}async serializeWithEncryptionKey(t,n){const r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:u,prefix:l})=>({hdPath:(0,qe.pathToString)(u),prefix:l}))},s=(0,Sr.toUtf8)(JSON.stringify(r)),o={algorithm:Ar.supportedAlgorithms.xchacha20poly1305Ietf},i=await(0,Ar.encrypt)(s,t,o),c={type:Hs,kdf:n,encryption:o,data:(0,Sr.toBase64)(i)};return JSON.stringify(c)}async getKeyPair(t){const{privkey:n}=qe.Slip10.derivePath(qe.Slip10Curve.Secp256k1,this.seed,t),{pubkey:r}=await qe.Secp256k1.makeKeypair(n);return{privkey:n,pubkey:qe.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:n})=>{const{privkey:r,pubkey:s}=await this.getKeyPair(t),o=(0,Sr.toBech32)(n,(0,vg.rawSecp256k1PubkeyToRawAddress)(s));return{algo:"secp256k1",privkey:r,pubkey:s,address:o}}))}}Qn.Secp256k1HdWallet=tn;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.Secp256k1Wallet=void 0;const bs=ge,Tg=R,Og=$e,Ig=Gt,Bg=tt;class Ja{static async fromKey(t,n="cosmos"){const r=(await bs.Secp256k1.makeKeypair(t)).pubkey;return new Ja(t,bs.Secp256k1.compressPubkey(r),n)}constructor(t,n,r){this.privkey=t,this.pubkey=n,this.prefix=r}get address(){return(0,Tg.toBech32)(this.prefix,(0,Og.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(t,n){if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);const r=new bs.Sha256((0,Bg.serializeSignDoc)(n)).digest(),s=await bs.Secp256k1.createSignature(r,this.privkey),o=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:n,signature:(0,Ig.encodeSecp256k1Signature)(this.pubkey,o)}}}bo.Secp256k1Wallet=Ja;var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.makeStdTx=Cn.isStdTx=void 0;function Ng(e){const{memo:t,msg:n,fee:r,signatures:s}=e;return typeof t=="string"&&Array.isArray(n)&&typeof r=="object"&&Array.isArray(s)}Cn.isStdTx=Ng;function Mg(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}Cn.makeStdTx=Mg;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.executeKdf=e.makeStdTx=e.isStdTx=e.serializeSignDoc=e.makeSignDoc=e.encodeSecp256k1Signature=e.decodeSignature=e.Secp256k1Wallet=e.Secp256k1HdWallet=e.extractKdfConfiguration=e.pubkeyType=e.isSinglePubkey=e.isSecp256k1Pubkey=e.isMultisigThresholdPubkey=e.isEd25519Pubkey=e.makeCosmoshubPath=e.omitDefault=e.createMultisigThresholdPubkey=e.encodeSecp256k1Pubkey=e.encodeEd25519Pubkey=e.encodeBech32Pubkey=e.encodeAminoPubkey=e.decodeBech32Pubkey=e.decodeAminoPubkey=e.parseCoins=e.coins=e.coin=e.addCoins=e.rawSecp256k1PubkeyToRawAddress=e.rawEd25519PubkeyToRawAddress=e.pubkeyToRawAddress=e.pubkeyToAddress=void 0;var t=$e;Object.defineProperty(e,"pubkeyToAddress",{enumerable:!0,get:function(){return t.pubkeyToAddress}}),Object.defineProperty(e,"pubkeyToRawAddress",{enumerable:!0,get:function(){return t.pubkeyToRawAddress}}),Object.defineProperty(e,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return t.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(e,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return t.rawSecp256k1PubkeyToRawAddress}});var n=yt;Object.defineProperty(e,"addCoins",{enumerable:!0,get:function(){return n.addCoins}}),Object.defineProperty(e,"coin",{enumerable:!0,get:function(){return n.coin}}),Object.defineProperty(e,"coins",{enumerable:!0,get:function(){return n.coins}}),Object.defineProperty(e,"parseCoins",{enumerable:!0,get:function(){return n.parseCoins}});var r=pe;Object.defineProperty(e,"decodeAminoPubkey",{enumerable:!0,get:function(){return r.decodeAminoPubkey}}),Object.defineProperty(e,"decodeBech32Pubkey",{enumerable:!0,get:function(){return r.decodeBech32Pubkey}}),Object.defineProperty(e,"encodeAminoPubkey",{enumerable:!0,get:function(){return r.encodeAminoPubkey}}),Object.defineProperty(e,"encodeBech32Pubkey",{enumerable:!0,get:function(){return r.encodeBech32Pubkey}}),Object.defineProperty(e,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return r.encodeEd25519Pubkey}}),Object.defineProperty(e,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return r.encodeSecp256k1Pubkey}});var s=zn;Object.defineProperty(e,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return s.createMultisigThresholdPubkey}});var o=ho;Object.defineProperty(e,"omitDefault",{enumerable:!0,get:function(){return o.omitDefault}});var i=ts;Object.defineProperty(e,"makeCosmoshubPath",{enumerable:!0,get:function(){return i.makeCosmoshubPath}});var c=es;Object.defineProperty(e,"isEd25519Pubkey",{enumerable:!0,get:function(){return c.isEd25519Pubkey}}),Object.defineProperty(e,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return c.isMultisigThresholdPubkey}}),Object.defineProperty(e,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return c.isSecp256k1Pubkey}}),Object.defineProperty(e,"isSinglePubkey",{enumerable:!0,get:function(){return c.isSinglePubkey}}),Object.defineProperty(e,"pubkeyType",{enumerable:!0,get:function(){return c.pubkeyType}});var u=Qn;Object.defineProperty(e,"extractKdfConfiguration",{enumerable:!0,get:function(){return u.extractKdfConfiguration}}),Object.defineProperty(e,"Secp256k1HdWallet",{enumerable:!0,get:function(){return u.Secp256k1HdWallet}});var l=bo;Object.defineProperty(e,"Secp256k1Wallet",{enumerable:!0,get:function(){return l.Secp256k1Wallet}});var d=Gt;Object.defineProperty(e,"decodeSignature",{enumerable:!0,get:function(){return d.decodeSignature}}),Object.defineProperty(e,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return d.encodeSecp256k1Signature}});var m=tt;Object.defineProperty(e,"makeSignDoc",{enumerable:!0,get:function(){return m.makeSignDoc}}),Object.defineProperty(e,"serializeSignDoc",{enumerable:!0,get:function(){return m.serializeSignDoc}});var b=Cn;Object.defineProperty(e,"isStdTx",{enumerable:!0,get:function(){return b.isStdTx}}),Object.defineProperty(e,"makeStdTx",{enumerable:!0,get:function(){return b.makeStdTx}});var h=Wa;Object.defineProperty(e,"executeKdf",{enumerable:!0,get:function(){return h.executeKdf}})})(dt);var _t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.makeSignBytes=_t.makeSignDoc=_t.makeAuthInfoBytes=void 0;const nu=Z,Rg=a.signing,Qs=a.tx;function jg(e,t){return e.map(({pubkey:n,sequence:r})=>({publicKey:n,modeInfo:{single:{mode:t}},sequence:BigInt(r)}))}function Dg(e,t,n,r,s,o=Rg.SignMode.SIGN_MODE_DIRECT){(0,nu.assert)(r===void 0||typeof r=="string","feeGranter must be undefined or string"),(0,nu.assert)(s===void 0||typeof s=="string","feePayer must be undefined or string");const i=Qs.AuthInfo.fromPartial({signerInfos:jg(e,o),fee:{amount:[...t],gasLimit:BigInt(n),granter:r,payer:s}});return Qs.AuthInfo.encode(i).finish()}_t.makeAuthInfoBytes=Dg;function Ug(e,t,n,r){return{bodyBytes:e,authInfoBytes:t,chainId:n,accountNumber:BigInt(r)}}_t.makeSignDoc=Ug;function $g({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r}){const s=Qs.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r});return Qs.SignDoc.encode(s).finish()}_t.makeSignBytes=$g;var Ka={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=e.supportedAlgorithms=e.executeKdf=e.cosmjsSalt=void 0;const t=ge,n=R;e.cosmjsSalt=(0,n.toAscii)("The CosmJS salt.");async function r(i,c){switch(c.algorithm){case"argon2id":{const u=c.params;if(!(0,t.isArgon2idOptions)(u))throw new Error("Invalid format of argon2id params");return t.Argon2id.execute(i,e.cosmjsSalt,u)}default:throw new Error("Unsupported KDF algorithm")}}e.executeKdf=r,e.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"};async function s(i,c,u){switch(u.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const l=t.Random.getBytes(t.xchacha20NonceLength);return new Uint8Array([...l,...await t.Xchacha20poly1305Ietf.encrypt(i,c,l)])}default:throw new Error(`Unsupported encryption algorithm: '${u.algorithm}'`)}}e.encrypt=s;async function o(i,c,u){switch(u.algorithm){case e.supportedAlgorithms.xchacha20poly1305Ietf:{const l=i.slice(0,t.xchacha20NonceLength);return t.Xchacha20poly1305Ietf.decrypt(i.slice(t.xchacha20NonceLength),c,l)}default:throw new Error(`Unsupported encryption algorithm: '${u.algorithm}'`)}}e.decrypt=o})(Ka);Object.defineProperty(Hn,"__esModule",{value:!0});Hn.DirectSecp256k1HdWallet=Hn.extractKdfConfiguration=void 0;const ya=dt,Fe=ge,Pr=R,Dn=Z,xg=_t,Er=Ka,qs="directsecp256k1hdwallet-v1",Hg={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12*1024}};function qg(e){return!(!(0,Dn.isNonNullObject)(e)||typeof e.hdPath!="string"||typeof e.prefix!="string")}function Fg(e){return e.kdf}function Vg(e){const t=JSON.parse(e);if(!(0,Dn.isNonNullObject)(t))throw new Error("Root document is not an object.");switch(t.type){case qs:return Fg(t);default:throw new Error("Unsupported serialization type")}}Hn.extractKdfConfiguration=Vg;const ru={bip39Password:"",hdPaths:[(0,ya.makeCosmoshubPath)(0)],prefix:"cosmos"};class nn{static async fromMnemonic(t,n={}){const r=new Fe.EnglishMnemonic(t),s=await Fe.Bip39.mnemonicToSeed(r,n.bip39Password);return new nn(r,{...n,seed:s})}static async generate(t=12,n={}){const r=4*Math.floor(11*t/33),s=Fe.Random.getBytes(r),o=Fe.Bip39.encode(s);return nn.fromMnemonic(o.toString(),n)}static async deserialize(t,n){const r=JSON.parse(t);if(!(0,Dn.isNonNullObject)(r))throw new Error("Root document is not an object.");switch(r.type){case qs:return nn.deserializeTypeV1(t,n);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(t,n){const r=JSON.parse(t);if(!(0,Dn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=r;switch(s.type){case qs:{const o=await(0,Er.decrypt)((0,Pr.fromBase64)(s.data),n,s.encryption),i=JSON.parse((0,Pr.fromUtf8)(o)),{mnemonic:c,accounts:u}=i;if((0,Dn.assert)(typeof c=="string"),!Array.isArray(u))throw new Error("Property 'accounts' is not an array");if(!u.every(m=>qg(m)))throw new Error("Account is not in the correct format.");const l=u[0].prefix;if(!u.every(({prefix:m})=>m===l))throw new Error("Accounts do not all have the same prefix");const d=u.map(({hdPath:m})=>(0,Fe.stringToPath)(m));return nn.fromMnemonic(c,{hdPaths:d,prefix:l})}default:throw new Error("Unsupported serialization type")}}static async deserializeTypeV1(t,n){const r=JSON.parse(t);if(!(0,Dn.isNonNullObject)(r))throw new Error("Root document is not an object.");const s=await(0,Er.executeKdf)(n,r.kdf);return nn.deserializeWithEncryptionKey(t,s)}constructor(t,n){const r=n.prefix??ru.prefix,s=n.hdPaths??ru.hdPaths;this.secret=t,this.seed=n.seed,this.accounts=s.map(o=>({hdPath:o,prefix:r}))}get mnemonic(){return this.secret.toString()}async getAccounts(){return(await this.getAccountsWithPrivkeys()).map(({algo:n,pubkey:r,address:s})=>({algo:n,pubkey:r,address:s}))}async signDirect(t,n){const s=(await this.getAccountsWithPrivkeys()).find(({address:b})=>b===t);if(s===void 0)throw new Error(`Address ${t} not found in wallet`);const{privkey:o,pubkey:i}=s,c=(0,xg.makeSignBytes)(n),u=(0,Fe.sha256)(c),l=await Fe.Secp256k1.createSignature(u,o),d=new Uint8Array([...l.r(32),...l.s(32)]),m=(0,ya.encodeSecp256k1Signature)(i,d);return{signed:n,signature:m}}async serialize(t){const n=Hg,r=await(0,Er.executeKdf)(t,n);return this.serializeWithEncryptionKey(r,n)}async serializeWithEncryptionKey(t,n){const r={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:u,prefix:l})=>({hdPath:(0,Fe.pathToString)(u),prefix:l}))},s=(0,Pr.toUtf8)(JSON.stringify(r)),o={algorithm:Er.supportedAlgorithms.xchacha20poly1305Ietf},i=await(0,Er.encrypt)(s,t,o),c={type:qs,kdf:n,encryption:o,data:(0,Pr.toBase64)(i)};return JSON.stringify(c)}async getKeyPair(t){const{privkey:n}=Fe.Slip10.derivePath(Fe.Slip10Curve.Secp256k1,this.seed,t),{pubkey:r}=await Fe.Secp256k1.makeKeypair(n);return{privkey:n,pubkey:Fe.Secp256k1.compressPubkey(r)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:t,prefix:n})=>{const{privkey:r,pubkey:s}=await this.getKeyPair(t),o=(0,Pr.toBech32)(n,(0,ya.rawSecp256k1PubkeyToRawAddress)(s));return{algo:"secp256k1",privkey:r,pubkey:s,address:o}}))}}Hn.DirectSecp256k1HdWallet=nn;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.DirectSecp256k1Wallet=void 0;const su=dt,vs=ge,Lg=R,Gg=_t;class za{static async fromKey(t,n="cosmos"){const r=(await vs.Secp256k1.makeKeypair(t)).pubkey;return new za(t,vs.Secp256k1.compressPubkey(r),n)}constructor(t,n,r){this.privkey=t,this.pubkey=n,this.prefix=r}get address(){return(0,Lg.toBech32)(this.prefix,(0,su.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(t,n){const r=(0,Gg.makeSignBytes)(n);if(t!==this.address)throw new Error(`Address ${t} not found in wallet`);const s=(0,vs.sha256)(r),o=await vs.Secp256k1.createSignature(s,this.privkey),i=new Uint8Array([...o.r(32),...o.s(32)]),c=(0,su.encodeSecp256k1Signature)(this.pubkey,i);return{signed:n,signature:c}}}vo.DirectSecp256k1Wallet=za;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});wo.makeCosmoshubPath=void 0;const kr=ge;function Wg(e){return[kr.Slip10RawIndex.hardened(44),kr.Slip10RawIndex.hardened(118),kr.Slip10RawIndex.hardened(0),kr.Slip10RawIndex.normal(0),kr.Slip10RawIndex.normal(e)]}wo.makeCosmoshubPath=Wg;var ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.decodeOptionalPubkey=ht.decodePubkey=ht.anyToSinglePubkey=ht.encodePubkey=void 0;const qr=dt,ou=R,Jg=ne,ha=a.keys,ba=a.keys$1,va=a.keys$2,Oi=a.any;function Sd(e){if((0,qr.isSecp256k1Pubkey)(e)){const t=va.PubKey.fromPartial({key:(0,ou.fromBase64)(e.value)});return Oi.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(va.PubKey.encode(t).finish())})}else if((0,qr.isEd25519Pubkey)(e)){const t=ha.PubKey.fromPartial({key:(0,ou.fromBase64)(e.value)});return Oi.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(ha.PubKey.encode(t).finish())})}else if((0,qr.isMultisigThresholdPubkey)(e)){const t=ba.LegacyAminoPubKey.fromPartial({threshold:Jg.Uint53.fromString(e.value.threshold).toNumber(),publicKeys:e.value.pubkeys.map(Sd)});return Oi.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(ba.LegacyAminoPubKey.encode(t).finish())})}else throw new Error(`Pubkey type ${e.type} not recognized`)}ht.encodePubkey=Sd;function wa(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:t}=va.PubKey.decode(e.value);return(0,qr.encodeSecp256k1Pubkey)(t)}case"/cosmos.crypto.ed25519.PubKey":{const{key:t}=ha.PubKey.decode(e.value);return(0,qr.encodeEd25519Pubkey)(t)}default:throw new Error(`Pubkey type_url ${e.typeUrl} not recognized as single public key type`)}}ht.anyToSinglePubkey=wa;function Ad(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return wa(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{const{threshold:t,publicKeys:n}=ba.LegacyAminoPubKey.decode(e.value);return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:t.toString(),pubkeys:n.map(wa)}}}default:throw new Error(`Pubkey type URL '${e.typeUrl}' not recognized`)}}ht.decodePubkey=Ad;function Kg(e){if(!e)return null;if(e.typeUrl){if(e.value.length)return Ad(e);throw new Error(`Pubkey is an Any with type URL '${e.typeUrl}' but an empty value`)}else{if(e.value.length)throw new Error("Pubkey is an Any with an empty type URL but a value set");return null}}ht.decodeOptionalPubkey=Kg;var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Registry=Ge.isTxBodyEncodeObject=Ge.isPbjsGeneratedType=Ge.isTsProtoGeneratedType=Ge.isTelescopeGeneratedType=void 0;const zg=a.tx$1,Qg=a.coin,Ii=a.tx,Cg=a.any;function Pd(e){const t=e;return typeof t.fromPartial=="function"&&typeof t.typeUrl=="string"}Ge.isTelescopeGeneratedType=Pd;function Qa(e){return typeof e.fromPartial=="function"}Ge.isTsProtoGeneratedType=Qa;function Yg(e){return!Qa(e)}Ge.isPbjsGeneratedType=Yg;const iu={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function Ed(e){return e.typeUrl==="/cosmos.tx.v1beta1.TxBody"}Ge.isTxBodyEncodeObject=Ed;class Xg{constructor(t){const{cosmosCoin:n,cosmosMsgSend:r}=iu;this.types=t?new Map([...t]):new Map([[n,Qg.Coin],[r,zg.MsgSend]])}register(t,n){this.types.set(t,n)}lookupType(t){return this.types.get(t)}lookupTypeWithError(t){const n=this.lookupType(t);if(!n)throw new Error(`Unregistered type url: ${t}`);return n}encode(t){const{value:n,typeUrl:r}=t;if(Ed(t))return this.encodeTxBody(n);const s=this.lookupTypeWithError(r),o=Pd(s)||Qa(s)?s.fromPartial(n):s.create(n);return s.encode(o).finish()}encodeAsAny(t){const n=this.encode(t);return Cg.Any.fromPartial({typeUrl:t.typeUrl,value:n})}encodeTxBody(t){var s;const n=t.messages.map(o=>this.encodeAsAny(o)),r=Ii.TxBody.fromPartial({...t,timeoutHeight:BigInt(((s=t.timeoutHeight)==null?void 0:s.toString())??"0"),messages:n});return Ii.TxBody.encode(r).finish()}decode({typeUrl:t,value:n}){if(t===iu.cosmosTxBody)return this.decodeTxBody(n);const s=this.lookupTypeWithError(t).decode(n);return Object.entries(s).forEach(([o,i])=>{typeof a.dist.Buffer<"u"&&typeof a.dist.Buffer.isBuffer<"u"&&a.dist.Buffer.isBuffer(i)&&(s[o]=Uint8Array.from(i))}),s}decodeTxBody(t){const n=Ii.TxBody.decode(t);return{...n,messages:n.messages.map(({typeUrl:r,value:s})=>{if(!r)throw new Error("Missing type_url in Any");if(!s)throw new Error("Missing value in Any");return this.decode({typeUrl:r,value:s})})}}}Ge.Registry=Xg;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});_o.isOfflineDirectSigner=void 0;function Zg(e){return e.signDirect!==void 0}_o.isOfflineDirectSigner=Zg;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseCoins=e.coins=e.coin=e.executeKdf=e.makeSignDoc=e.makeSignBytes=e.makeAuthInfoBytes=e.isOfflineDirectSigner=e.Registry=e.isTxBodyEncodeObject=e.isTsProtoGeneratedType=e.isPbjsGeneratedType=e.encodePubkey=e.decodePubkey=e.decodeOptionalPubkey=e.anyToSinglePubkey=e.makeCosmoshubPath=e.DirectSecp256k1Wallet=e.extractKdfConfiguration=e.DirectSecp256k1HdWallet=e.decodeTxRaw=void 0;var t=lo;Object.defineProperty(e,"decodeTxRaw",{enumerable:!0,get:function(){return t.decodeTxRaw}});var n=Hn;Object.defineProperty(e,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return n.DirectSecp256k1HdWallet}}),Object.defineProperty(e,"extractKdfConfiguration",{enumerable:!0,get:function(){return n.extractKdfConfiguration}});var r=vo;Object.defineProperty(e,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return r.DirectSecp256k1Wallet}});var s=wo;Object.defineProperty(e,"makeCosmoshubPath",{enumerable:!0,get:function(){return s.makeCosmoshubPath}});var o=ht;Object.defineProperty(e,"anyToSinglePubkey",{enumerable:!0,get:function(){return o.anyToSinglePubkey}}),Object.defineProperty(e,"decodeOptionalPubkey",{enumerable:!0,get:function(){return o.decodeOptionalPubkey}}),Object.defineProperty(e,"decodePubkey",{enumerable:!0,get:function(){return o.decodePubkey}}),Object.defineProperty(e,"encodePubkey",{enumerable:!0,get:function(){return o.encodePubkey}});var i=Ge;Object.defineProperty(e,"isPbjsGeneratedType",{enumerable:!0,get:function(){return i.isPbjsGeneratedType}}),Object.defineProperty(e,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return i.isTsProtoGeneratedType}}),Object.defineProperty(e,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return i.isTxBodyEncodeObject}}),Object.defineProperty(e,"Registry",{enumerable:!0,get:function(){return i.Registry}});var c=_o;Object.defineProperty(e,"isOfflineDirectSigner",{enumerable:!0,get:function(){return c.isOfflineDirectSigner}});var u=_t;Object.defineProperty(e,"makeAuthInfoBytes",{enumerable:!0,get:function(){return u.makeAuthInfoBytes}}),Object.defineProperty(e,"makeSignBytes",{enumerable:!0,get:function(){return u.makeSignBytes}}),Object.defineProperty(e,"makeSignDoc",{enumerable:!0,get:function(){return u.makeSignDoc}});var l=Ka;Object.defineProperty(e,"executeKdf",{enumerable:!0,get:function(){return l.executeKdf}});var d=dt;Object.defineProperty(e,"coin",{enumerable:!0,get:function(){return d.coin}}),Object.defineProperty(e,"coins",{enumerable:!0,get:function(){return d.coins}}),Object.defineProperty(e,"parseCoins",{enumerable:!0,get:function(){return d.parseCoins}})})(St);Object.defineProperty(Xr,"__esModule",{value:!0});Xr.accountFromAny=void 0;const ey=ne,ty=St,Tr=Z,au=a.auth,ws=a.vesting;function cu(e){return ey.Uint64.fromString(e.toString())}function Sn(e){const{address:t,pubKey:n,accountNumber:r,sequence:s}=e,o=(0,ty.decodeOptionalPubkey)(n);return{address:t,pubkey:o,accountNumber:cu(r).toNumber(),sequence:cu(s).toNumber()}}function ny(e){var r,s,o,i,c,u,l;const{typeUrl:t,value:n}=e;switch(t){case"/cosmos.auth.v1beta1.BaseAccount":return Sn(au.BaseAccount.decode(n));case"/cosmos.auth.v1beta1.ModuleAccount":{const d=au.ModuleAccount.decode(n).baseAccount;return(0,Tr.assert)(d),Sn(d)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{const d=(r=ws.BaseVestingAccount.decode(n))==null?void 0:r.baseAccount;return(0,Tr.assert)(d),Sn(d)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{const d=(o=(s=ws.ContinuousVestingAccount.decode(n))==null?void 0:s.baseVestingAccount)==null?void 0:o.baseAccount;return(0,Tr.assert)(d),Sn(d)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{const d=(c=(i=ws.DelayedVestingAccount.decode(n))==null?void 0:i.baseVestingAccount)==null?void 0:c.baseAccount;return(0,Tr.assert)(d),Sn(d)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{const d=(l=(u=ws.PeriodicVestingAccount.decode(n))==null?void 0:u.baseVestingAccount)==null?void 0:l.baseAccount;return(0,Tr.assert)(d),Sn(d)}default:throw new Error(`Unsupported type: '${t}'`)}}Xr.accountFromAny=ny;var ns={};Object.defineProperty(ns,"__esModule",{value:!0});ns.AminoTypes=void 0;class ry{constructor(t){this.register=t}toAmino({typeUrl:t,value:n}){const r=this.register[t];if(!r)throw new Error(`Type URL '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:r.aminoType,value:r.toAmino(n)}}fromAmino({type:t,value:n}){const r=Object.entries(this.register).filter(([s,{aminoType:o}])=>o===t);switch(r.length){case 0:throw new Error(`Amino type identifier '${t}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{const[s,o]=r[0];return{typeUrl:s,value:o.fromAmino(n)}}default:throw new Error(`Multiple types are registered with Amino type identifier '${t}': '`+r.map(([s,o])=>s).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}}ns.AminoTypes=ry;var rs={};Object.defineProperty(rs,"__esModule",{value:!0});rs.fromTendermintEvent=void 0;const uu=R;function sy(e){return{type:e.type,attributes:e.attributes.map(t=>({key:typeof t.key=="string"?t.key:(0,uu.fromUtf8)(t.key,!0),value:typeof t.value=="string"?t.value:(0,uu.fromUtf8)(t.value,!0)}))}}rs.fromTendermintEvent=sy;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.calculateFee=gn.GasPrice=void 0;const kd=ne,oy=St;function iy(e){if(e.length<3||e.length>128)throw new Error("Denom must be between 3 and 128 characters")}class So{constructor(t,n){this.amount=t,this.denom=n}static fromString(t){const n=t.match(/^([0-9.]+)([a-zA-Z][a-zA-Z0-9/:._-]*)$/);if(!n)throw new Error("Invalid gas price string");const[r,s,o]=n;iy(o);const c=kd.Decimal.fromUserInput(s,18);return new So(c,o)}toString(){return this.amount.toString()+this.denom}}gn.GasPrice=So;function ay(e,t){const n=typeof t=="string"?So.fromString(t):t,{denom:r,amount:s}=n,o=s.multiply(new kd.Uint53(e)).ceil().toString();return{amount:(0,oy.coins)(o,r),gas:e.toString()}}gn.calculateFee=ay;var Te={};Object.defineProperty(Te,"__esModule",{value:!0});Te.findAttribute=Te.parseRawLog=Te.parseLogs=Te.parseLog=Te.parseEvent=Te.parseAttribute=void 0;const Ca=Z;function Td(e){if(!(0,Ca.isNonNullObject)(e))throw new Error("Attribute must be a non-null object");const{key:t,value:n}=e;if(typeof t!="string"||!t)throw new Error("Attribute's key must be a non-empty string");if(typeof n!="string"&&typeof n<"u")throw new Error("Attribute's value must be a string or unset");return{key:t,value:n||""}}Te.parseAttribute=Td;function Od(e){if(!(0,Ca.isNonNullObject)(e))throw new Error("Event must be a non-null object");const{type:t,attributes:n}=e;if(typeof t!="string"||t==="")throw new Error("Event type must be a non-empty string");if(!Array.isArray(n))throw new Error("Event's attributes must be an array");return{type:t,attributes:n.map(Td)}}Te.parseEvent=Od;function Id(e){if(!(0,Ca.isNonNullObject)(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:n,events:r}=e;if(typeof t!="number")throw new Error("Log's msg_index must be a number");if(typeof n!="string")throw new Error("Log's log must be a string");if(!Array.isArray(r))throw new Error("Log's events must be an array");return{msg_index:t,log:n,events:r.map(Od)}}Te.parseLog=Id;function Bd(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(Id)}Te.parseLogs=Bd;function cy(e){if(!e)return[];const t=JSON.parse(e).map(({events:n},r)=>({msg_index:r,events:n,log:""}));return Bd(t)}Te.parseRawLog=cy;function uy(e,t,n){var o;const r=e.find(()=>!0),s=(o=r==null?void 0:r.events.find(i=>i.type===t))==null?void 0:o.attributes.find(i=>i.key===n);if(!s)throw new Error(`Could not find attribute '${n}' in first event of type '${t}' in first log.`);return s}Te.findAttribute=uy;var zr={},Ao={},ve={},Po={},ss={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.concat=void 0;const ly=a.xstream;function dy(...e){const t=new Array,n=new Array,r=new Set;let s=0;function o(){for(;t.length>0;)t.shift().unsubscribe();n.length=0,r.clear(),s=0}const i={start:c=>{e.forEach(d=>n.push([]));function u(d){for(;;){const m=n[d].shift();if(m===void 0)return;c.next(m)}}function l(){return s>=e.length}if(l()){c.complete();return}e.forEach((d,m)=>{t.push(d.subscribe({next:b=>{m===s?c.next(b):n[m].push(b)},complete:()=>{for(r.add(m);r.has(s);)u(s),s++;l()?c.complete():u(s)},error:b=>{c.error(b),o()}}))})},stop:()=>{o()}};return ly.Stream.create(i)}Eo.concat=dy;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.DefaultValueProducer=void 0;class my{get value(){return this.internalValue}constructor(t,n){this.callbacks=n,this.internalValue=t}update(t){this.internalValue=t,this.listener&&this.listener.next(t)}error(t){this.listener&&this.listener.error(t)}start(t){this.listener=t,t.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}}ko.DefaultValueProducer=my;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.dropDuplicates=void 0;function fy(e){return n=>{const r=new Set;return n.filter(o=>!r.has(e(o))).debug(o=>r.add(e(o)))}}To.dropDuplicates=fy;var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.firstEvent=xt.toListPromise=xt.fromListPromise=void 0;const py=a.xstream;function gy(e){const t={start:n=>{e.then(r=>{for(const s of r)n.next(s);n.complete()}).catch(r=>n.error(r))},stop:()=>{}};return py.Stream.create(t)}xt.fromListPromise=gy;async function Nd(e,t){return new Promise((n,r)=>{if(t===0){n([]);return}const s=new Array;e.take(t).subscribe({next:o=>{s.push(o),s.length===t&&n(s)},complete:()=>{r(`Stream completed before all events could be collected. Collected ${s.length}, expected ${t}`)},error:o=>r(o)})})}xt.toListPromise=Nd;async function yy(e){return(await Nd(e,1))[0]}xt.firstEvent=yy;var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.lastValue=bt.asArray=bt.countStream=bt.Reducer=void 0;class Oo{constructor(t,n,r){this.stream=t,this.reducer=n,this.state=r,this.completed=new Promise((s,o)=>{const i=this.stream.subscribe({next:c=>{this.state=this.reducer(this.state,c)},complete:()=>{s(),i.unsubscribe()},error:c=>{o(c),i.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}}bt.Reducer=Oo;function hy(e,t){return e+1}function by(e){return new Oo(e,hy,0)}bt.countStream=by;function vy(e,t){return[...e,t]}function wy(e){return new Oo(e,vy,[])}bt.asArray=wy;function _y(e,t){return t}function Sy(e){return new Oo(e,_y,void 0)}bt.lastValue=Sy;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.ValueAndUpdates=void 0;const Ay=a.xstream;class Py{get value(){return this.producer.value}constructor(t){this.producer=t,this.updates=Ay.MemoryStream.createWithMemory(this.producer)}async waitFor(t){const n=typeof t=="function"?t:r=>r===t;return new Promise((r,s)=>{const o=this.updates.subscribe({next:i=>{n(i)&&(r(i),setTimeout(()=>o.unsubscribe(),0))},complete:()=>{o.unsubscribe(),s("Update stream completed without expected value")},error:i=>{s(i)}})})}}Io.ValueAndUpdates=Py;(function(e){var t=a.commonjsGlobal&&a.commonjsGlobal.__createBinding||(Object.create?function(u,l,d,m){m===void 0&&(m=d);var b=Object.getOwnPropertyDescriptor(l,d);(!b||("get"in b?!l.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(u,m,b)}:function(u,l,d,m){m===void 0&&(m=d),u[m]=l[d]}),n=a.commonjsGlobal&&a.commonjsGlobal.__exportStar||function(u,l){for(var d in u)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&t(l,u,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.ValueAndUpdates=e.toListPromise=e.fromListPromise=e.firstEvent=e.dropDuplicates=e.DefaultValueProducer=e.concat=void 0;var r=Eo;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r.concat}});var s=ko;Object.defineProperty(e,"DefaultValueProducer",{enumerable:!0,get:function(){return s.DefaultValueProducer}});var o=To;Object.defineProperty(e,"dropDuplicates",{enumerable:!0,get:function(){return o.dropDuplicates}});var i=xt;Object.defineProperty(e,"firstEvent",{enumerable:!0,get:function(){return i.firstEvent}}),Object.defineProperty(e,"fromListPromise",{enumerable:!0,get:function(){return i.fromListPromise}}),Object.defineProperty(e,"toListPromise",{enumerable:!0,get:function(){return i.toListPromise}}),n(bt,e);var c=Io;Object.defineProperty(e,"ValueAndUpdates",{enumerable:!0,get:function(){return c.ValueAndUpdates}})})(ss);Object.defineProperty(Po,"__esModule",{value:!0});Po.QueryClient=void 0;const Zt=a.build$3,rn=R,Ey=ss,Pe=Z;function _s(e,t,n){if(e.type!==t)throw new Error(`Op expected to be ${t}, got "${e.type}`);if(!(0,Pe.arrayContentEquals)(n,e.key))throw new Error(`Proven key different than queried key.
|
|
4
4
|
Query: ${(0,rn.toHex)(n)}
|
|
@@ -38,4 +38,4 @@ Proven: ${(0,rn.toHex)(e.key)}`);return Zt.ics23.CommitmentProof.decode(e.data)}
|
|
|
38
38
|
blockHeight
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`;a._m0.util.Long!==a.Long&&(a._m0.util.Long=a.Long,a._m0.configure());var vP=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof a.dist.global<"u")return a.dist.global;throw"Unable to locate global object"})();a._m0.util.Long!==a.Long&&(a._m0.util.Long=a.Long,a._m0.configure());class RP extends vP.Error{constructor(t,n,r){super(t),this.code=n,this.metadata=r}}class Wr{constructor(t,n){E(this,"type");E(this,"key");this.key=t,this.type=n||"/injective.crypto.v1beta1.ethsecp256k1.PubKey"}static fromBase64(t){return new Wr(a.dist.Buffer.from(t,"base64"))}static fromBytes(t){return new Wr(t)}static fromHex(t){const r=typeof t=="string"&&t.startsWith("0x")?t.slice(2):t,s=a.dist.Buffer.from(r.toString(),"hex"),o=a.secp256k1$1.publicKeyCreate(s,!0),i="/injective.crypto.v1beta1.ethsecp256k1.PubKey";return new Wr(o,i)}toPubKeyBytes(){return this.key}toBase64(){return a.dist.Buffer.from(this.toPubKeyBytes()).toString("base64")}toHex(){return a.dist.Buffer.from(this.toPubKeyBytes()).toString("hex")}toBech32(){return a.bech32.encode(XA,a.bech32.toWords(a.dist.Buffer.from(this.toHex(),"hex")))}toAddress(){const t=this.toHex(),n=oP(t),r=a.dist.Buffer.from(a.sha3Exports.keccak256(a.dist_browser.toBuffer(n.startsWith("0x")?n:"0x"+n)),"hex").subarray(-20);return hr.fromHex(a.dist.Buffer.from(r).toString("hex").toLowerCase())}toProto(){const t=Ba.create();return t.key=this.key,t}toAny(){const t=this.toProto(),n=z.create();return n.typeUrl=this.type,n.value=a.dist.Buffer.from(Ba.encode(t).finish()),n}}class Un{constructor(t){E(this,"wallet");this.wallet=t}static generate(){const t=a.src.generateMnemonic();return{privateKey:Un.fromMnemonic(t),mnemonic:t}}static fromMnemonic(t,n=tP){return new Un(a.Wallet$1.fromMnemonic(t,n))}static fromPrivateKey(t){return new Un(new a.Wallet$1(t))}static fromHex(t){const n=typeof t=="string",r=n&&t.startsWith("0x")?t.slice(2):t,s=n?a.dist.Buffer.from(r.toString(),"hex"):t;return new Un(new a.Wallet$1(s))}toPrivateKeyHex(){return this.wallet.privateKey.startsWith("0x")?this.wallet.privateKey:`0x${this.wallet.privateKey}`}toPublicKey(){return Wr.fromHex(this.wallet.privateKey)}toHex(){return this.wallet.address.startsWith("0x")?this.wallet.address:`0x${this.wallet.address}`}toAddress(){return hr.fromHex(this.toHex())}toBech32(){return hr.fromHex(this.toHex()).toBech32()}async sign(t){const{wallet:n}=this,r=it.keccak256(t),s=await n._signingKey().signDigest(r),o=a.splitSignature(s);return a.arrayify(a.concat([o.r,o.s]))}async signEcda(t){const{wallet:n}=this,r=it.keccak256(t),s=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,o=Uint8Array.from(a.dist.Buffer.from(s,"hex")),{signature:i}=a.secp256k1$1.ecdsaSign(r,o);return i}async signHashed(t){const{wallet:n}=this,r=await n._signingKey().signDigest(t),s=a.splitSignature(r);return a.arrayify(a.concat([s.r,s.s]))}async signHashedEcda(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(a.dist.Buffer.from(r,"hex")),{signature:o}=a.secp256k1$1.ecdsaSign(t,s);return o}async signTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=it.dist.signTypedData({privateKey:a.dist.Buffer.from(r,"hex"),data:t,version:it.dist.SignTypedDataVersion.V4});return a.dist.Buffer.from(s.replace("0x",""),"hex")}async signHashedTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(a.dist.Buffer.from(r,"hex")),{signature:o}=a.secp256k1$1.ecdsaSign(t,s);return o}}const wP=({signers:e,chainId:t,message:n,timeoutHeight:r,memo:s="",fee:o=rf,signMode:i=cP})=>{const c=Array.isArray(e)?e:[e],[u]=c,l=lP({message:n,memo:s,timeoutHeight:r}),d=typeof o=="string"?GA(o):o,m=dP({fee:d.amount[0],payer:d.payer,granter:d.granter,gasLimit:parseInt(d.gas,10)}),b=mP({chainId:t,mode:i,signers:c}),h=pP({signerInfo:b,fee:m}),A=bc.encode(l).finish(),v=vc.encode(h).finish(),f=gP({chainId:t,bodyBytes:A,authInfoBytes:v,accountNumber:u.accountNumber}),_=hc.encode(f).finish(),j=a.dist.Buffer.from(_),B=it.keccak256(a.dist.Buffer.from(_)),Q=io.create();return Q.authInfoBytes=v,Q.bodyBytes=A,{txRaw:Q,signDoc:f,signers:e,signer:u,signBytes:j,signHashedBytes:B,bodyBytes:A,authInfoBytes:v}},_P=e=>wP({...e,signers:{pubKey:e.pubKey,accountNumber:e.accountNumber,sequence:e.sequence}});async function SP(e,t){const[n,r]=await yn.chainFromRpc(e);if(Pf.includes(r))return new PP(r,n,t);const s=await St.DirectSecp256k1HdWallet.fromMnemonic(t,{prefix:Gl(r)}),o=(await s.getAccounts())[0],i=await gc.SigningCosmWasmClient.connectWithSigner(a.rpcAddress(n,r),s);return new AP(r,i,o.address)}class AP{constructor(t,n,r,s){E(this,"_chain");E(this,"_signer");E(this,"_account");E(this,"_debug");this._chain=t,this._signer=n,this._account=r,this._debug=s}chain(){return this._chain}address(){return this._account}async sign(t){const n=[];for(const r of t){const{description:s,transaction:o}=r;this._debug&&(console.log(`Signing: ${s} for ${this.address()}`),console.log(o.msgs,o.fee,o.memo));const i=await this._signer.sign(this.address(),o.msgs,o.fee,o.memo),c=a.tx.TxRaw.encode(i).finish();n.push(c)}return n}}class PP{constructor(t,n,r){E(this,"_chain");E(this,"_chainId");E(this,"key");E(this,"prefix");E(this,"_rpc");this._chain=t,this._rpc=new hP(kf(n,t)),this._chainId=a.networkChainToNativeChainId.get(n,t),this.prefix=Gl(t),this.key=Un.fromMnemonic(r)}chain(){return this._chain}address(){return this.key.toAddress().toBech32(this.prefix)}async sign(t){const n=this.key.toPublicKey().toBase64(),{sequence:r,accountNumber:s}=await this.getSignerData(),o=[];for(const i of t){const{description:c,transaction:u}=i;console.log(`Signing ${c} for ${this.address()}`);const{signBytes:l,txRaw:d}=_P({message:u.msgs.map(m=>Ec.fromJSON({port:m.value.sourcePort,amount:m.value.token,memo:m.value.memo,sender:m.value.sender,receiver:m.value.receiver,channelId:m.value.sourceChannel,timeout:m.value.timeoutTimestamp,height:m.value.timeoutHeight})),pubKey:n,sequence:r,accountNumber:s,chainId:this._chainId,memo:u.memo,fee:u.fee});d.signatures=[await this.key.sign(l)],o.push(a.b64.decode(kc.encode(d)))}return o}async getSignerData(){const t=this.address(),{account:n}=await this._rpc.fetchAccount(t),r=parseInt(n.base_account.account_number,10),s=parseInt(n.base_account.sequence,10);return{address:t,sequence:s,accountNumber:r}}}const EP={Address:he,Platform:yn,getSigner:SP,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-
|
|
41
|
+
`;a._m0.util.Long!==a.Long&&(a._m0.util.Long=a.Long,a._m0.configure());var vP=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof a.dist.global<"u")return a.dist.global;throw"Unable to locate global object"})();a._m0.util.Long!==a.Long&&(a._m0.util.Long=a.Long,a._m0.configure());class RP extends vP.Error{constructor(t,n,r){super(t),this.code=n,this.metadata=r}}class Wr{constructor(t,n){E(this,"type");E(this,"key");this.key=t,this.type=n||"/injective.crypto.v1beta1.ethsecp256k1.PubKey"}static fromBase64(t){return new Wr(a.dist.Buffer.from(t,"base64"))}static fromBytes(t){return new Wr(t)}static fromHex(t){const r=typeof t=="string"&&t.startsWith("0x")?t.slice(2):t,s=a.dist.Buffer.from(r.toString(),"hex"),o=a.secp256k1$1.publicKeyCreate(s,!0),i="/injective.crypto.v1beta1.ethsecp256k1.PubKey";return new Wr(o,i)}toPubKeyBytes(){return this.key}toBase64(){return a.dist.Buffer.from(this.toPubKeyBytes()).toString("base64")}toHex(){return a.dist.Buffer.from(this.toPubKeyBytes()).toString("hex")}toBech32(){return a.bech32.encode(XA,a.bech32.toWords(a.dist.Buffer.from(this.toHex(),"hex")))}toAddress(){const t=this.toHex(),n=oP(t),r=a.dist.Buffer.from(a.sha3Exports.keccak256(a.dist_browser.toBuffer(n.startsWith("0x")?n:"0x"+n)),"hex").subarray(-20);return hr.fromHex(a.dist.Buffer.from(r).toString("hex").toLowerCase())}toProto(){const t=Ba.create();return t.key=this.key,t}toAny(){const t=this.toProto(),n=z.create();return n.typeUrl=this.type,n.value=a.dist.Buffer.from(Ba.encode(t).finish()),n}}class Un{constructor(t){E(this,"wallet");this.wallet=t}static generate(){const t=a.src.generateMnemonic();return{privateKey:Un.fromMnemonic(t),mnemonic:t}}static fromMnemonic(t,n=tP){return new Un(a.Wallet$1.fromMnemonic(t,n))}static fromPrivateKey(t){return new Un(new a.Wallet$1(t))}static fromHex(t){const n=typeof t=="string",r=n&&t.startsWith("0x")?t.slice(2):t,s=n?a.dist.Buffer.from(r.toString(),"hex"):t;return new Un(new a.Wallet$1(s))}toPrivateKeyHex(){return this.wallet.privateKey.startsWith("0x")?this.wallet.privateKey:`0x${this.wallet.privateKey}`}toPublicKey(){return Wr.fromHex(this.wallet.privateKey)}toHex(){return this.wallet.address.startsWith("0x")?this.wallet.address:`0x${this.wallet.address}`}toAddress(){return hr.fromHex(this.toHex())}toBech32(){return hr.fromHex(this.toHex()).toBech32()}async sign(t){const{wallet:n}=this,r=it.keccak256(t),s=await n._signingKey().signDigest(r),o=a.splitSignature(s);return a.arrayify(a.concat([o.r,o.s]))}async signEcda(t){const{wallet:n}=this,r=it.keccak256(t),s=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,o=Uint8Array.from(a.dist.Buffer.from(s,"hex")),{signature:i}=a.secp256k1$1.ecdsaSign(r,o);return i}async signHashed(t){const{wallet:n}=this,r=await n._signingKey().signDigest(t),s=a.splitSignature(r);return a.arrayify(a.concat([s.r,s.s]))}async signHashedEcda(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(a.dist.Buffer.from(r,"hex")),{signature:o}=a.secp256k1$1.ecdsaSign(t,s);return o}async signTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=it.dist.signTypedData({privateKey:a.dist.Buffer.from(r,"hex"),data:t,version:it.dist.SignTypedDataVersion.V4});return a.dist.Buffer.from(s.replace("0x",""),"hex")}async signHashedTypedData(t){const{wallet:n}=this,r=n.privateKey.startsWith("0x")?n.privateKey.slice(2):n.privateKey,s=Uint8Array.from(a.dist.Buffer.from(r,"hex")),{signature:o}=a.secp256k1$1.ecdsaSign(t,s);return o}}const wP=({signers:e,chainId:t,message:n,timeoutHeight:r,memo:s="",fee:o=rf,signMode:i=cP})=>{const c=Array.isArray(e)?e:[e],[u]=c,l=lP({message:n,memo:s,timeoutHeight:r}),d=typeof o=="string"?GA(o):o,m=dP({fee:d.amount[0],payer:d.payer,granter:d.granter,gasLimit:parseInt(d.gas,10)}),b=mP({chainId:t,mode:i,signers:c}),h=pP({signerInfo:b,fee:m}),A=bc.encode(l).finish(),v=vc.encode(h).finish(),f=gP({chainId:t,bodyBytes:A,authInfoBytes:v,accountNumber:u.accountNumber}),_=hc.encode(f).finish(),j=a.dist.Buffer.from(_),B=it.keccak256(a.dist.Buffer.from(_)),Q=io.create();return Q.authInfoBytes=v,Q.bodyBytes=A,{txRaw:Q,signDoc:f,signers:e,signer:u,signBytes:j,signHashedBytes:B,bodyBytes:A,authInfoBytes:v}},_P=e=>wP({...e,signers:{pubKey:e.pubKey,accountNumber:e.accountNumber,sequence:e.sequence}});async function SP(e,t){const[n,r]=await yn.chainFromRpc(e);if(Pf.includes(r))return new PP(r,n,t);const s=await St.DirectSecp256k1HdWallet.fromMnemonic(t,{prefix:Gl(r)}),o=(await s.getAccounts())[0],i=await gc.SigningCosmWasmClient.connectWithSigner(a.rpcAddress(n,r),s);return new AP(r,i,o.address)}class AP{constructor(t,n,r,s){E(this,"_chain");E(this,"_signer");E(this,"_account");E(this,"_debug");this._chain=t,this._signer=n,this._account=r,this._debug=s}chain(){return this._chain}address(){return this._account}async sign(t){const n=[];for(const r of t){const{description:s,transaction:o}=r;this._debug&&(console.log(`Signing: ${s} for ${this.address()}`),console.log(o.msgs,o.fee,o.memo));const i=await this._signer.sign(this.address(),o.msgs,o.fee,o.memo),c=a.tx.TxRaw.encode(i).finish();n.push(c)}return n}}class PP{constructor(t,n,r){E(this,"_chain");E(this,"_chainId");E(this,"key");E(this,"prefix");E(this,"_rpc");this._chain=t,this._rpc=new hP(kf(n,t)),this._chainId=a.networkChainToNativeChainId.get(n,t),this.prefix=Gl(t),this.key=Un.fromMnemonic(r)}chain(){return this._chain}address(){return this.key.toAddress().toBech32(this.prefix)}async sign(t){const n=this.key.toPublicKey().toBase64(),{sequence:r,accountNumber:s}=await this.getSignerData(),o=[];for(const i of t){const{description:c,transaction:u}=i;console.log(`Signing ${c} for ${this.address()}`);const{signBytes:l,txRaw:d}=_P({message:u.msgs.map(m=>Ec.fromJSON({port:m.value.sourcePort,amount:m.value.token,memo:m.value.memo,sender:m.value.sender,receiver:m.value.receiver,channelId:m.value.sourceChannel,timeout:m.value.timeoutTimestamp,height:m.value.timeoutHeight})),pubKey:n,sequence:r,accountNumber:s,chainId:this._chainId,memo:u.memo,fee:u.fee});d.signatures=[await this.key.sign(l)],o.push(a.b64.decode(kc.encode(d)))}return o}async getSignerData(){const t=this.address(),{account:n}=await this._rpc.fetchAccount(t),r=parseInt(n.base_account.account_number,10),s=parseInt(n.base_account.sequence,10);return{address:t,sequence:s,accountNumber:r}}}const EP={Address:he,Platform:yn,getSigner:SP,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-CHt0Dq8R.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-C0VhGw21.js")),IbcBridge:()=>Promise.resolve().then(()=>require("./index-C5RpglHM.js"))},getChain:(e,t,n)=>new yc(t,new yn(e,a.applyChainsConfigConfigOverrides(e,xn,{[t]:n})))},kP=Object.freeze(Object.defineProperty({__proto__:null,default:EP},Symbol.toStringTag,{value:"Module"}));exports.CosmwasmAddress=he;exports.CosmwasmPlatform=yn;exports.DEFAULT_FEE=lf;exports.Gateway=oo;exports.IBC_MSG_TYPE=mf;exports.IBC_PACKET_DATA=wf;exports.IBC_PACKET_DST=gf;exports.IBC_PACKET_DST_PORT=bf;exports.IBC_PACKET_RECEIVE=pf;exports.IBC_PACKET_SEND=ff;exports.IBC_PACKET_SEQ=vf;exports.IBC_PACKET_SRC=yf;exports.IBC_PACKET_SRC_PORT=hf;exports.IBC_TIMEOUT_MILLIS=_f;exports.IBC_TRANSFER_PORT=xa;exports.MSG_EXECUTE_CONTRACT_TYPE_URL=df;exports._platform=xn;exports.averageGasPrices=Of;exports.build=jt;exports.cosmwasm=kP;exports.networkChainToChannels=aa;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Jf = Object.defineProperty;
|
|
2
2
|
var Gf = (e, t, n) => t in e ? Jf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var E = (e, t, n) => (Gf(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { b9 as Fr, as as Ps, ar as tc, at as Kf, b2 as nc, ba as _n, o as h, a0 as _o, A as Rt, U as zf, d as U, w as yd, V as Qf, X as hd, Y as Cf, Z as Yf, bb as Xf, $ as Zf, r as bd, bc as is, bd as ep, be as tp, bf as np, bg as rc, bh as vd, bi as wd, bj as rp, bk as sp, ah as Sn, ai as op, bl as ip, bm as ap, bn as cp, bo as up, bp as lp, bq as sc, br as dp, bs as mp, bt as fp, bu as pp, bv as gp, bw as yp, bx as hp, by as bp, bz as oc, bA as vp, bB as wp, bC as _p, bD as Sp, bE as Ap, bF as Pp, bG as kp, bH as Ep, bI as Tp, bJ as Op, bK as Ip, bL as ic, bM as Bp, bN as Np, bO as Mp, bP as Rp, bQ as jp, aj as Dp, bR as _d, bS as Sd, bT as Ad, bU as Up, al as $p, bV as Ui, aY as $i, b3 as xp, aE as Hp, bW as qp, au as Fp, av as Vp, aw as Lp, ax as xi, ay as Wp, az as Jp, _ as w, L as ue, H as lt, g as Gp, b6 as Ge, x as zs, S as Kp, I as zp, bX as Qp, bY as Qs, ac as Cp, bZ as Yp, b_ as Hi, b$ as Yc, c0 as Xc, c1 as Zc, c2 as Xp, c3 as Zp, aC as eg } from "./index-
|
|
5
|
-
import { C as tg, P as ng } from "./chain-
|
|
6
|
-
import { g as rg, s as _a, a as Pd, k as Sa, d as eu } from "./ens-validation.es6-
|
|
4
|
+
import { b9 as Fr, as as Ps, ar as tc, at as Kf, b2 as nc, ba as _n, o as h, a0 as _o, A as Rt, U as zf, d as U, w as yd, V as Qf, X as hd, Y as Cf, Z as Yf, bb as Xf, $ as Zf, r as bd, bc as is, bd as ep, be as tp, bf as np, bg as rc, bh as vd, bi as wd, bj as rp, bk as sp, ah as Sn, ai as op, bl as ip, bm as ap, bn as cp, bo as up, bp as lp, bq as sc, br as dp, bs as mp, bt as fp, bu as pp, bv as gp, bw as yp, bx as hp, by as bp, bz as oc, bA as vp, bB as wp, bC as _p, bD as Sp, bE as Ap, bF as Pp, bG as kp, bH as Ep, bI as Tp, bJ as Op, bK as Ip, bL as ic, bM as Bp, bN as Np, bO as Mp, bP as Rp, bQ as jp, aj as Dp, bR as _d, bS as Sd, bT as Ad, bU as Up, al as $p, bV as Ui, aY as $i, b3 as xp, aE as Hp, bW as qp, au as Fp, av as Vp, aw as Lp, ax as xi, ay as Wp, az as Jp, _ as w, L as ue, H as lt, g as Gp, b6 as Ge, x as zs, S as Kp, I as zp, bX as Qp, bY as Qs, ac as Cp, bZ as Yp, b_ as Hi, b$ as Yc, c0 as Xc, c1 as Zc, c2 as Xp, c3 as Zp, aC as eg } from "./index-BczaI6ny.mjs";
|
|
5
|
+
import { C as tg, P as ng } from "./chain-W4Reg-jx.mjs";
|
|
6
|
+
import { g as rg, s as _a, a as Pd, k as Sa, d as eu } from "./ens-validation.es6-BBMnE4UL.mjs";
|
|
7
7
|
var tu;
|
|
8
8
|
(function(e) {
|
|
9
9
|
e.Erc20Contract = "erc20-contract", e.Peggy = "peggy-contract", e.PeggyOld = "peggy-old-contract";
|
|
@@ -16787,9 +16787,9 @@ const iE = {
|
|
|
16787
16787
|
Platform: Sr,
|
|
16788
16788
|
getSigner: rE,
|
|
16789
16789
|
protocols: {
|
|
16790
|
-
WormholeCore: () => import("./index-
|
|
16791
|
-
TokenBridge: () => import("./index-
|
|
16792
|
-
IbcBridge: () => import("./index-
|
|
16790
|
+
WormholeCore: () => import("./index-DC9jOEYD.mjs"),
|
|
16791
|
+
TokenBridge: () => import("./index-DIw6mTJY.mjs"),
|
|
16792
|
+
IbcBridge: () => import("./index-C3soDe1H.mjs")
|
|
16793
16793
|
},
|
|
16794
16794
|
getChain: (e, t, n) => new Hc(t, new Sr(e, eg(e, Zr, {
|
|
16795
16795
|
[t]: n
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cW as f, cX as d, cY as y, cZ as A, cF as p, cT as x, c_ as h, c$ as F, d0 as L } from "./index-
|
|
1
|
+
import { cW as f, cX as d, cY as y, cZ as A, cF as p, cT as x, c_ as h, c$ as F, d0 as L } from "./index-BczaI6ny.mjs";
|
|
2
2
|
function a(o, r) {
|
|
3
3
|
switch (o.binary) {
|
|
4
4
|
case "bytes":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-nk-Z22as.js");function c(t,e){switch(t.binary){case"bytes":if("layout"in t){const{custom:r}=t;return r===void 0||typeof r.from!="function"?i(t.layout,r?r.from:e):e}case"int":case"uint":{const{custom:r}=t;return t!=null&&t.omit?void 0:n.isPrimitiveType(r)?r:n.isFixedPrimitiveConversion(r)?r.to:e}case"array":return Array.isArray(e)?e.map(r=>i(t.layout,r)):void 0;case"switch":{const r=e[t.idTag??"id"],[s,o]=t.layouts.find(([u])=>(Array.isArray(u)?u[1]:u)==r);return{[t.idTag??"id"]:r,...i(o,e)}}}}function i(t,e){if(e=e??{},n.isLayoutItem(t))return c(t,e);const r={};for(const s of t){const o=c(s,e[s.name]??{});o!==void 0&&(r[s.name]=o)}return r}function f(t,e){return i(t,e)}function d(t){return[...n.envelopeLayout,n.payloadLiteralToPayloadItemLayout(t)]}function a(t,e){const[r,s]=n.decomposeLiteral(t),o=f(d(t),e);return{protocolName:r,payloadName:s,payloadLiteral:t,...f(n.headerLayout,e),...o,hash:n.keccak_256(n.serializeLayout(d(t),o))}}exports.createVAA=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aa as D8, g as at, o as Pu, a0 as i8, n as he, c4 as Ee, c5 as ot, bX as O1, r as st, d as N, c6 as ft, c7 as K2, c8 as G1, c9 as a8 } from "./index-
|
|
2
|
-
import { s as o8, h as s8, u as f8, p as F8 } from "./index-
|
|
1
|
+
import { aa as D8, g as at, o as Pu, a0 as i8, n as he, c4 as Ee, c5 as ot, bX as O1, r as st, d as N, c6 as ft, c7 as K2, c8 as G1, c9 as a8 } from "./index-BczaI6ny.mjs";
|
|
2
|
+
import { s as o8, h as s8, u as f8, p as F8 } from "./index-DnM2fNFZ.mjs";
|
|
3
3
|
var $2 = function() {
|
|
4
4
|
return $2 = Object.assign || function(r) {
|
|
5
5
|
for (var n, i = 1, o = arguments.length; i < o; i++) {
|