@initia/initia.js 0.2.30 → 0.2.32

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/index.es.js CHANGED
@@ -1,120 +1,120 @@
1
- var hp = Object.defineProperty;
2
- var fp = (a, t, e) => t in a ? hp(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var _ = (a, t, e) => fp(a, typeof t != "symbol" ? t + "" : t, e);
4
- import gp, { AxiosHeaders as yp } from "axios";
5
- import { OrderBy as _p } from "@initia/initia.proto/cosmos/tx/v1beta1/service";
1
+ var pp = Object.defineProperty;
2
+ var hp = (a, t, e) => t in a ? pp(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var _ = (a, t, e) => hp(a, typeof t != "symbol" ? t + "" : t, e);
4
+ import fp, { AxiosHeaders as gp } from "axios";
5
+ import { OrderBy as yp } from "@initia/initia.proto/cosmos/tx/v1beta1/service";
6
6
  import { BigNumber as dt } from "bignumber.js";
7
7
  export * from "bignumber.js";
8
- import { Coin as vp } from "@initia/initia.proto/cosmos/base/v1beta1/coin";
8
+ import { Coin as _p } from "@initia/initia.proto/cosmos/base/v1beta1/coin";
9
9
  import { Any as f } from "@initia/initia.proto/google/protobuf/any";
10
10
  import { MsgAuctionBid as wi, MsgUpdateParams as Pi } from "@initia/initia.proto/sdk/auction/v1/tx";
11
- import { Params as wp } from "@initia/initia.proto/sdk/auction/v1/genesis";
12
- import { Duration as Pp } from "@initia/initia.proto/google/protobuf/duration";
13
- import { Params as bp, BaseAccount as bi, ModuleAccount as Ai } from "@initia/initia.proto/cosmos/auth/v1beta1/auth";
11
+ import { Params as vp } from "@initia/initia.proto/sdk/auction/v1/genesis";
12
+ import { Duration as wp } from "@initia/initia.proto/google/protobuf/duration";
13
+ import { Params as Pp, BaseAccount as bi, ModuleAccount as Ai } from "@initia/initia.proto/cosmos/auth/v1beta1/auth";
14
14
  import { MsgUpdateParams as Di } from "@initia/initia.proto/cosmos/auth/v1beta1/tx";
15
15
  import * as ba from "secp256k1";
16
- import { signatureImport as Ap } from "secp256k1";
17
- import { SHA256 as Pl } from "jscrypto/SHA256";
18
- import { RIPEMD160 as Dp } from "jscrypto/RIPEMD160";
19
- import { Base64 as kp } from "jscrypto/Base64";
20
- import { Word32Array as ld, SHA256 as xp } from "jscrypto";
21
- import bl from "keccak256";
16
+ import { signatureImport as bp } from "secp256k1";
17
+ import { SHA256 as wl } from "jscrypto/SHA256";
18
+ import { RIPEMD160 as Ap } from "jscrypto/RIPEMD160";
19
+ import { Base64 as Dp } from "jscrypto/Base64";
20
+ import { Word32Array as ld, SHA256 as kp } from "jscrypto";
21
+ import Pl from "keccak256";
22
22
  import { LegacyAminoPubKey as ki } from "@initia/initia.proto/cosmos/crypto/multisig/keys";
23
23
  import { PubKey as xi } from "@initia/initia.proto/cosmos/crypto/secp256k1/keys";
24
24
  import { PubKey as Mi } from "@initia/initia.proto/cosmos/crypto/ed25519/keys";
25
25
  import { PubKey as Ii } from "@initia/initia.proto/initia/crypto/v1beta1/ethsecp256k1/keys";
26
26
  import { bech32 as G } from "bech32";
27
- import { AuthorizationType as Mp, authorizationTypeFromJSON as Td, authorizationTypeToJSON as Rd, StakeAuthorization as Si, StakeAuthorization_Validators as Ip } from "@initia/initia.proto/initia/mstaking/v1/authz";
27
+ import { AuthorizationType as xp, authorizationTypeFromJSON as Td, authorizationTypeToJSON as Rd, StakeAuthorization as Si, StakeAuthorization_Validators as Mp } from "@initia/initia.proto/initia/mstaking/v1/authz";
28
28
  import { SendAuthorization as Bi } from "@initia/initia.proto/cosmos/bank/v1beta1/authz";
29
- import { GenericAuthorization as Ei, Grant as Sp } from "@initia/initia.proto/cosmos/authz/v1beta1/authz";
29
+ import { GenericAuthorization as Ei, Grant as Ip } from "@initia/initia.proto/cosmos/authz/v1beta1/authz";
30
30
  import { PublishAuthorization as Ui, ExecuteAuthorization as Ci } from "@initia/initia.proto/initia/move/v1/authz";
31
- import { ExecuteAuthorizationItem as Bp, UpgradePolicy as Oa, Params as Ep, upgradePolicyFromJSON as Ld, upgradePolicyToJSON as Hd, Module as Up } from "@initia/initia.proto/initia/move/v1/types";
32
- import { CodeGrant as Cp, StoreCodeAuthorization as $i, MaxCallsLimit as Ni, MaxFundsLimit as Oi, CombinedLimit as Fi, AllowAllMessagesFilter as Ti, AcceptedMessageKeysFilter as Ri, AcceptedMessagesFilter as Li, ContractGrant as $p, ContractExecutionAuthorization as Hi, ContractMigrationAuthorization as zi } from "@initia/initia.proto/cosmwasm/wasm/v1/authz";
33
- import { AccessType as Np, accessTypeFromJSON as ri, accessTypeToJSON as oi, AccessConfig as Op, Params as Fp, AbsoluteTxPosition as Tp, contractCodeHistoryOperationTypeFromJSON as Rp } from "@initia/initia.proto/cosmwasm/wasm/v1/types";
31
+ import { ExecuteAuthorizationItem as Sp, UpgradePolicy as Oa, Params as Bp, upgradePolicyFromJSON as Ld, upgradePolicyToJSON as Hd, Module as Ep } from "@initia/initia.proto/initia/move/v1/types";
32
+ import { CodeGrant as Up, StoreCodeAuthorization as $i, MaxCallsLimit as Ni, MaxFundsLimit as Oi, CombinedLimit as Fi, AllowAllMessagesFilter as Ti, AcceptedMessageKeysFilter as Ri, AcceptedMessagesFilter as Li, ContractGrant as Cp, ContractExecutionAuthorization as Hi, ContractMigrationAuthorization as zi } from "@initia/initia.proto/cosmwasm/wasm/v1/authz";
33
+ import { AccessType as $p, accessTypeFromJSON as ri, accessTypeToJSON as oi, AccessConfig as Np, Params as Op, AbsoluteTxPosition as Fp, contractCodeHistoryOperationTypeFromJSON as Tp } from "@initia/initia.proto/cosmwasm/wasm/v1/types";
34
34
  import { MsgStoreCode as qi, MsgInstantiateContract as Vi, MsgInstantiateContract2 as Ki, MsgExecuteContract as Wi, MsgMigrateContract as ji, MsgUpdateAdmin as Gi, MsgClearAdmin as Ji, MsgUpdateInstantiateConfig as Zi, MsgUpdateParams as Yi, MsgSudoContract as Xi, MsgPinCodes as Qi, MsgUnpinCodes as tc, MsgStoreAndInstantiateContract as ec, MsgStoreAndMigrateContract as rc, MsgAddCodeUploadParamsAddresses as oc, MsgRemoveCodeUploadParamsAddresses as sc, MsgUpdateContractLabel as nc } from "@initia/initia.proto/cosmwasm/wasm/v1/tx";
35
- import { Allocation as Lp, TransferAuthorization as ac } from "@initia/initia.proto/ibc/applications/transfer/v1/authz";
35
+ import { Allocation as Rp, TransferAuthorization as ac } from "@initia/initia.proto/ibc/applications/transfer/v1/authz";
36
36
  import { MsgTransfer as ic, MsgUpdateParams as cc } from "@initia/initia.proto/ibc/applications/transfer/v1/tx";
37
- import { Height as Hp, Params as zp, ConsensusStateWithHeight as qp, ClientConsensusStates as Vp, IdentifiedClientState as Kp } from "@initia/initia.proto/ibc/core/client/v1/client";
38
- import { Params as Wp, DenomTrace as jp } from "@initia/initia.proto/ibc/applications/transfer/v1/transfer";
39
- import { FungibleTokenPacketData as Gp } from "@initia/initia.proto/ibc/applications/transfer/v2/packet";
37
+ import { Height as Lp, Params as Hp, ConsensusStateWithHeight as zp, ClientConsensusStates as qp, IdentifiedClientState as Vp } from "@initia/initia.proto/ibc/core/client/v1/client";
38
+ import { Params as Kp, DenomTrace as Wp } from "@initia/initia.proto/ibc/applications/transfer/v1/transfer";
39
+ import { FungibleTokenPacketData as jp } from "@initia/initia.proto/ibc/applications/transfer/v2/packet";
40
40
  import { MsgGrant as mc, MsgRevoke as uc, MsgExec as dc } from "@initia/initia.proto/cosmos/authz/v1beta1/tx";
41
41
  import { MsgSend as lc, MsgMultiSend as pc, MsgUpdateParams as hc, MsgSetSendEnabled as fc } from "@initia/initia.proto/cosmos/bank/v1beta1/tx";
42
- import { Input as Jp, Output as Zp, SendEnabled as Yp, Params as Xp, DenomUnit as Qp, Metadata as th } from "@initia/initia.proto/cosmos/bank/v1beta1/bank";
42
+ import { Input as Gp, Output as Jp, SendEnabled as Zp, Params as Yp, DenomUnit as Xp, Metadata as Qp } from "@initia/initia.proto/cosmos/bank/v1beta1/bank";
43
43
  import { MsgSetDenomMetadata as gc } from "@initia/initia.proto/initia/bank/v1/tx";
44
44
  import { MsgPayForBlobs as yc } from "@initia/initia.proto/celestia/blob/v1/tx";
45
- import { Blob as eh, BlobTx as zd } from "@initia/initia.proto/celestia/blob/v1/blob";
46
- import { SignMode as Vt, signModeFromJSON as Al, signModeToJSON as Dl } from "@initia/initia.proto/cosmos/tx/signing/v1beta1/signing";
47
- import { Fee as rh, Tx as Ga, TxBody as qd, AuthInfo as Vd, SignerInfo as oh, ModeInfo as sh, ModeInfo_Single as nh, ModeInfo_Multi as ah, SignDoc as Kd } from "@initia/initia.proto/cosmos/tx/v1beta1/tx";
48
- import { CompactBitArray as ih, MultiSignature as Wd } from "@initia/initia.proto/cosmos/crypto/multisig/v1beta1/multisig";
49
- import { BlockParams as ch, EvidenceParams as mh, ValidatorParams as uh, ABCIParams as dh } from "@initia/initia.proto/tendermint/types/params";
45
+ import { Blob as th, BlobTx as zd } from "@initia/initia.proto/celestia/blob/v1/blob";
46
+ import { SignMode as Vt, signModeFromJSON as bl, signModeToJSON as Al } from "@initia/initia.proto/cosmos/tx/signing/v1beta1/signing";
47
+ import { Fee as eh, Tx as Ga, TxBody as qd, AuthInfo as Vd, SignerInfo as rh, ModeInfo as oh, ModeInfo_Single as sh, ModeInfo_Multi as nh, SignDoc as Kd } from "@initia/initia.proto/cosmos/tx/v1beta1/tx";
48
+ import { CompactBitArray as ah, MultiSignature as Wd } from "@initia/initia.proto/cosmos/crypto/multisig/v1beta1/multisig";
49
+ import { BlockParams as ih, EvidenceParams as ch, ValidatorParams as mh, ABCIParams as uh } from "@initia/initia.proto/tendermint/types/params";
50
50
  import { MsgUpdateParams as _c } from "@initia/initia.proto/cosmos/consensus/v1/tx";
51
51
  import { MsgVerifyInvariant as jd, MsgUpdateParams as vc } from "@initia/initia.proto/cosmos/crisis/v1beta1/tx";
52
52
  import { MsgSetWithdrawAddress as wc, MsgWithdrawDelegatorReward as Pc, MsgWithdrawValidatorCommission as bc, MsgFundCommunityPool as Ac, MsgCommunityPoolSpend as Dc } from "@initia/initia.proto/cosmos/distribution/v1beta1/tx";
53
- import { RewardWeight as lh, Params as ph } from "@initia/initia.proto/initia/distribution/v1/distribution";
53
+ import { RewardWeight as dh, Params as lh } from "@initia/initia.proto/initia/distribution/v1/distribution";
54
54
  import { MsgUpdateParams as kc, MsgDepositValidatorRewardsPool as xc } from "@initia/initia.proto/initia/distribution/v1/tx";
55
55
  import { MsgSubmitEvidence as Mc } from "@initia/initia.proto/cosmos/evidence/v1beta1/tx";
56
56
  import { Equivocation as Ic } from "@initia/initia.proto/cosmos/evidence/v1beta1/evidence";
57
- import { AccessTuple as hh, Params as fh } from "@initia/initia.proto/minievm/evm/v1/types";
57
+ import { AccessTuple as ph, Params as hh } from "@initia/initia.proto/minievm/evm/v1/types";
58
58
  import { MsgCreate as Sc, MsgCreate2 as Bc, MsgCall as Ec, MsgUpdateParams as Uc } from "@initia/initia.proto/minievm/evm/v1/tx";
59
59
  import { BasicAllowance as Cc, PeriodicAllowance as $c, AllowedMsgAllowance as Nc } from "@initia/initia.proto/cosmos/feegrant/v1beta1/feegrant";
60
60
  import { MsgGrantAllowance as Oc, MsgRevokeAllowance as Fc } from "@initia/initia.proto/cosmos/feegrant/v1beta1/tx";
61
61
  import { MsgRegisterAccount as Tc, MsgClearAccount as Rc } from "@initia/initia.proto/noble/forwarding/v1/tx";
62
62
  import { MsgCancelProposal as Lc, MsgDeposit as Hc, MsgSubmitProposal as zc, MsgVote as qc, MsgVoteWeighted as Vc } from "@initia/initia.proto/cosmos/gov/v1/tx";
63
63
  import { MsgDeposit as Kc, MsgSubmitProposal as Wc, MsgVote as jc, MsgVoteWeighted as Gc } from "@initia/initia.proto/cosmos/gov/v1beta1/tx";
64
- import { ParamChange as gh, ParameterChangeProposal as Jc } from "@initia/initia.proto/cosmos/params/v1beta1/params";
65
- import { TextProposal as Zc, VoteOption as yh } from "@initia/initia.proto/cosmos/gov/v1beta1/gov";
66
- import { TallyResult as _h, ProposalStatus as vh, proposalStatusFromJSON as Gd, proposalStatusToJSON as Jd, VoteOption as kl, Vote as wh, WeightedVoteOption as Ph, Deposit as bh } from "@initia/initia.proto/cosmos/gov/v1/gov";
67
- import { TallyResult as Ah, Proposal as Dh, Vesting as kh, Params as xh } from "@initia/initia.proto/initia/gov/v1/gov";
64
+ import { ParamChange as fh, ParameterChangeProposal as Jc } from "@initia/initia.proto/cosmos/params/v1beta1/params";
65
+ import { TextProposal as Zc, VoteOption as gh } from "@initia/initia.proto/cosmos/gov/v1beta1/gov";
66
+ import { TallyResult as yh, ProposalStatus as _h, proposalStatusFromJSON as Gd, proposalStatusToJSON as Jd, VoteOption as Dl, Vote as vh, WeightedVoteOption as wh, Deposit as Ph } from "@initia/initia.proto/cosmos/gov/v1/gov";
67
+ import { TallyResult as bh, Proposal as Ah, Vesting as Dh, Params as kh } from "@initia/initia.proto/initia/gov/v1/gov";
68
68
  import { MsgUpdateParams as Yc } from "@initia/initia.proto/initia/gov/v1/tx";
69
- import { GroupMember as Mh, Member as Ih, MemberRequest as Sh, DecisionPolicyWindows as Bh, ThresholdDecisionPolicy as Xc, PercentageDecisionPolicy as Qc, VoteOption as xl, voteOptionFromJSON as si, voteOptionToJSON as ni, GroupInfo as Eh, GroupPolicyInfo as Uh, ProposalStatus as Ch, ProposalExecutorResult as $h, proposalStatusFromJSON as Zd, proposalExecutorResultFromJSON as Yd, proposalStatusToJSON as Xd, proposalExecutorResultToJSON as Qd, TallyResult as Nh, Proposal as Oh, Vote as Fh } from "@initia/initia.proto/cosmos/group/v1/types";
70
- import { MsgCreateGroup as tm, MsgCreateGroupPolicy as em, MsgCreateGroupWithPolicy as rm, MsgExec as om, Exec as Ml, execFromJSON as ai, execToJSON as ii, MsgVote as sm, MsgLeaveGroup as nm, MsgSubmitProposal as am, MsgUpdateGroupAdmin as im, MsgUpdateGroupPolicyDecisionPolicy as cm, MsgUpdateGroupMembers as mm, MsgUpdateGroupMetadata as um, MsgUpdateGroupPolicyAdmin as dm, MsgUpdateGroupPolicyMetadata as lm } from "@initia/initia.proto/cosmos/group/v1/tx";
69
+ import { GroupMember as xh, Member as Mh, MemberRequest as Ih, DecisionPolicyWindows as Sh, ThresholdDecisionPolicy as Xc, PercentageDecisionPolicy as Qc, VoteOption as kl, voteOptionFromJSON as si, voteOptionToJSON as ni, GroupInfo as Bh, GroupPolicyInfo as Eh, ProposalStatus as Uh, ProposalExecutorResult as Ch, proposalStatusFromJSON as Zd, proposalExecutorResultFromJSON as Yd, proposalStatusToJSON as Xd, proposalExecutorResultToJSON as Qd, TallyResult as $h, Proposal as Nh, Vote as Oh } from "@initia/initia.proto/cosmos/group/v1/types";
70
+ import { MsgCreateGroup as tm, MsgCreateGroupPolicy as em, MsgCreateGroupWithPolicy as rm, MsgExec as om, Exec as xl, execFromJSON as ai, execToJSON as ii, MsgVote as sm, MsgLeaveGroup as nm, MsgSubmitProposal as am, MsgUpdateGroupAdmin as im, MsgUpdateGroupPolicyDecisionPolicy as cm, MsgUpdateGroupMembers as mm, MsgUpdateGroupMetadata as um, MsgUpdateGroupPolicyAdmin as dm, MsgUpdateGroupPolicyMetadata as lm } from "@initia/initia.proto/cosmos/group/v1/tx";
71
71
  import { MsgPayPacketFee as pm, MsgPayPacketFeeAsync as hm, MsgRegisterPayee as fm, MsgRegisterCounterpartyPayee as gm } from "@initia/initia.proto/ibc/applications/fee/v1/tx";
72
- import { Fee as Th, PacketFee as Rh } from "@initia/initia.proto/ibc/applications/fee/v1/fee";
73
- import { PacketId as Lh, Counterparty as Hh, Channel as zh, Timeout as qh, Params as Vh, Packet as Kh } from "@initia/initia.proto/ibc/core/channel/v1/channel";
74
- import { Metadata as Wh } from "@initia/initia.proto/ibc/applications/fee/v1/metadata";
72
+ import { Fee as Fh, PacketFee as Th } from "@initia/initia.proto/ibc/applications/fee/v1/fee";
73
+ import { PacketId as Rh, Counterparty as Lh, Channel as Hh, Timeout as zh, Params as qh, Packet as Vh } from "@initia/initia.proto/ibc/core/channel/v1/channel";
74
+ import { Metadata as Kh } from "@initia/initia.proto/ibc/applications/fee/v1/metadata";
75
75
  import { MsgUpdateACL as ym, MsgUpdateParams as _m } from "@initia/initia.proto/initia/ibchooks/v1/tx";
76
- import { Params as jh, ACL as Gh } from "@initia/initia.proto/initia/ibchooks/v1/types";
76
+ import { Params as Wh, ACL as jh } from "@initia/initia.proto/initia/ibchooks/v1/types";
77
77
  import { MsgTransfer as vm, MsgUpdateParams as wm } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/tx";
78
- import { Params as Jh, ClassTrace as Zh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/types";
79
- import { NonFungibleTokenPacketData as Yh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/packet";
78
+ import { Params as Gh, ClassTrace as Jh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/types";
79
+ import { NonFungibleTokenPacketData as Zh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/packet";
80
80
  import { MsgUpdateAdmin as Pm, MsgUpdatePermissionedRelayers as bm } from "@initia/initia.proto/ibc/applications/perm/v1/tx";
81
81
  import { MsgChannelOpenInit as Am, MsgChannelOpenTry as Dm, MsgChannelOpenConfirm as km, MsgChannelOpenAck as xm, MsgChannelCloseInit as Mm, MsgChannelCloseConfirm as Im, MsgRecvPacket as Sm, MsgAcknowledgement as Bm, MsgTimeout as Em, MsgTimeoutOnClose as Um, MsgUpdateParams as Cm } from "@initia/initia.proto/ibc/core/channel/v1/tx";
82
82
  import { MsgCreateClient as $m, MsgUpdateClient as Nm, MsgUpgradeClient as Om, MsgSubmitMisbehaviour as Fm, MsgRecoverClient as Tm, MsgIBCSoftwareUpgrade as Rm, MsgUpdateParams as Lm } from "@initia/initia.proto/ibc/core/client/v1/tx";
83
- import { Plan as Xh } from "@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade";
83
+ import { Plan as Yh } from "@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade";
84
84
  import { MsgSoftwareUpgrade as Hm, MsgCancelUpgrade as zm } from "@initia/initia.proto/cosmos/upgrade/v1beta1/tx";
85
- import { MerklePrefix as Qh, MerkleRoot as tf } from "@initia/initia.proto/ibc/core/commitment/v1/commitment";
86
- import { Counterparty as ef, Version as rf, stateFromJSON as tl, stateToJSON as el, IdentifiedConnection as of, Params as sf } from "@initia/initia.proto/ibc/core/connection/v1/connection";
87
- import { State as nw, stateFromJSON as aw, stateToJSON as iw } from "@initia/initia.proto/ibc/core/connection/v1/connection";
85
+ import { MerklePrefix as Xh, MerkleRoot as Qh } from "@initia/initia.proto/ibc/core/commitment/v1/commitment";
86
+ import { Counterparty as tf, Version as ef, stateFromJSON as tl, stateToJSON as el, IdentifiedConnection as rf, Params as of } from "@initia/initia.proto/ibc/core/connection/v1/connection";
87
+ import { State as sw, stateFromJSON as nw, stateToJSON as aw } from "@initia/initia.proto/ibc/core/connection/v1/connection";
88
88
  import { MsgConnectionOpenInit as qm, MsgConnectionOpenTry as Vm, MsgConnectionOpenConfirm as Km, MsgConnectionOpenAck as Wm, MsgUpdateParams as jm } from "@initia/initia.proto/ibc/core/connection/v1/tx";
89
89
  import { MsgRegisterAccount as Gm, MsgSubmitTx as Jm } from "@initia/initia.proto/initia/intertx/v1/tx";
90
90
  import { MsgCreateMarkets as Zm, MsgUpdateMarkets as Ym, MsgUpsertMarkets as Xm, MsgRemoveMarkets as Qm, MsgRemoveMarketAuthorities as tu, MsgParams as eu } from "@initia/initia.proto/connect/marketmap/v2/tx";
91
91
  import { MsgAddCurrencyPairs as ru, MsgRemoveCurrencyPairs as ou } from "@initia/initia.proto/connect/oracle/v2/tx";
92
- import { CurrencyPair as nf } from "@initia/initia.proto/connect/types/v2/currency_pair";
93
- import { QuotePrice as af } from "@initia/initia.proto/connect/oracle/v2/genesis";
94
- import { ProviderConfig as cf, Ticker as mf, Market as uf } from "@initia/initia.proto/connect/marketmap/v2/market";
95
- import { Params as df } from "@initia/initia.proto/connect/marketmap/v2/params";
92
+ import { CurrencyPair as sf } from "@initia/initia.proto/connect/types/v2/currency_pair";
93
+ import { QuotePrice as nf } from "@initia/initia.proto/connect/oracle/v2/genesis";
94
+ import { ProviderConfig as af, Ticker as cf, Market as mf } from "@initia/initia.proto/connect/marketmap/v2/market";
95
+ import { Params as uf } from "@initia/initia.proto/connect/marketmap/v2/params";
96
96
  import { MsgPublish as su, MsgExecute as nu, MsgExecuteJSON as au, MsgScript as iu, MsgScriptJSON as cu, MsgUpdateParams as mu, MsgWhitelist as uu, MsgDelist as du, MsgGovExecute as lu, MsgGovExecuteJSON as pu, MsgGovPublish as hu, MsgGovScript as fu, MsgGovScriptJSON as gu } from "@initia/initia.proto/initia/move/v1/tx";
97
97
  import { MsgDelegate as yu, MsgUndelegate as _u, MsgBeginRedelegate as vu, MsgCreateValidator as wu, MsgEditValidator as Pu, MsgCancelUnbondingDelegation as bu, MsgUpdateParams as Au } from "@initia/initia.proto/initia/mstaking/v1/tx";
98
- import { BondStatus as lf, Validator as pf, Description as hf, CommissionRates as ff, Commission as gf, Params as yf, DelegationResponse as _f, Delegation as vf, RedelegationResponse as wf, Redelegation as Pf, RedelegationEntryResponse as bf, RedelegationEntry as Af, UnbondingDelegation as Df, UnbondingDelegationEntry as kf } from "@initia/initia.proto/initia/mstaking/v1/staking";
98
+ import { BondStatus as df, Validator as lf, Description as pf, CommissionRates as hf, Commission as ff, Params as gf, DelegationResponse as yf, Delegation as _f, RedelegationResponse as vf, Redelegation as wf, RedelegationEntryResponse as Pf, RedelegationEntry as bf, UnbondingDelegation as Af, UnbondingDelegationEntry as Df } from "@initia/initia.proto/initia/mstaking/v1/staking";
99
99
  import { MsgAddValidator as Du, MsgRemoveValidator as ku, MsgFinalizeTokenDeposit as xu, MsgInitiateTokenWithdrawal as Mu, MsgExecuteMessages as Iu, MsgSpendFeePool as Su, MsgSetBridgeInfo as Bu, MsgUpdateOracle as Eu, MsgUpdateParams as Uu } from "@initia/opinit.proto/opinit/opchild/v1/tx";
100
- import { BridgeInfo as xf, Params as Mf, Validator as If } from "@initia/opinit.proto/opinit/opchild/v1/types";
100
+ import { BridgeInfo as kf, Params as xf, Validator as Mf } from "@initia/opinit.proto/opinit/opchild/v1/types";
101
101
  import { MsgRecordBatch as Cu, MsgCreateBridge as $u, MsgProposeOutput as Nu, MsgDeleteOutput as Ou, MsgInitiateTokenDeposit as Fu, MsgFinalizeTokenWithdrawal as Tu, MsgUpdateProposer as Ru, MsgUpdateChallenger as Lu, MsgUpdateBatchInfo as Hu, MsgUpdateOracleConfig as zu, MsgUpdateMetadata as qu, MsgUpdateParams as Vu } from "@initia/opinit.proto/opinit/ophost/v1/tx";
102
- import { batchInfo_ChainTypeFromJSON as rl, batchInfo_ChainTypeToJSON as ol, BatchInfo as Sf, BridgeConfig as Bf, Params as Ef, Output as Uf, BatchInfoWithOutput as Cf } from "@initia/opinit.proto/opinit/ophost/v1/types";
103
- import { Params as $f } from "@initia/initia.proto/initia/reward/v1/types";
102
+ import { batchInfo_ChainTypeFromJSON as rl, batchInfo_ChainTypeToJSON as ol, BatchInfo as If, BridgeConfig as Sf, Params as Bf, Output as Ef, BatchInfoWithOutput as Uf } from "@initia/opinit.proto/opinit/ophost/v1/types";
103
+ import { Params as Cf } from "@initia/initia.proto/initia/reward/v1/types";
104
104
  import { MsgUpdateParams as Ku } from "@initia/initia.proto/initia/reward/v1/tx";
105
105
  import { MsgUnjail as Wu, MsgUpdateParams as ju } from "@initia/initia.proto/cosmos/slashing/v1beta1/tx";
106
- import { Params as Nf, ValidatorSigningInfo as Of } from "@initia/initia.proto/cosmos/slashing/v1beta1/slashing";
106
+ import { Params as $f, ValidatorSigningInfo as Nf } from "@initia/initia.proto/cosmos/slashing/v1beta1/slashing";
107
107
  import { MsgCreateDenom as Gu, MsgMint as Ju, MsgBurn as Zu, MsgChangeAdmin as Yu, MsgSetDenomMetadata as Xu, MsgSetBeforeSendHook as Qu, MsgUpdateParams as td } from "@initia/initia.proto/miniwasm/tokenfactory/v1/tx";
108
- import { Params as Ff } from "@initia/initia.proto/miniwasm/tokenfactory/v1/params";
109
- import { ABCIMessageLog as Tf } from "@initia/initia.proto/cosmos/base/abci/v1beta1/abci";
108
+ import { Params as Of } from "@initia/initia.proto/miniwasm/tokenfactory/v1/params";
109
+ import { ABCIMessageLog as Ff } from "@initia/initia.proto/cosmos/base/abci/v1beta1/abci";
110
110
  import { bcs as qt } from "@mysten/bcs";
111
- import Rf from "ws";
112
- import Lf from "ripemd160";
113
- import * as Hf from "semver";
114
- import { BIP32Factory as zf } from "bip32";
115
- import { generateMnemonic as qf, mnemonicToSeedSync as Vf } from "bip39";
116
- const Gv = _p;
117
- class Kf {
111
+ import Tf from "ws";
112
+ import Rf from "ripemd160";
113
+ import * as Lf from "semver";
114
+ import { BIP32Factory as Hf } from "bip32";
115
+ import { generateMnemonic as zf, mnemonicToSeedSync as qf } from "bip39";
116
+ const jv = yp;
117
+ class Vf {
118
118
  constructor(t, e) {
119
119
  _(this, "axios");
120
120
  _(this, "baseURL");
@@ -125,7 +125,7 @@ class Kf {
125
125
  },
126
126
  timeout: 3e4
127
127
  };
128
- this.axios = gp.create({
128
+ this.axios = fp.create({
129
129
  ...r,
130
130
  ...e,
131
131
  headers: { ...r.headers, ...e == null ? void 0 : e.headers }
@@ -146,7 +146,7 @@ class Kf {
146
146
  const r = this.computeEndpoint(t);
147
147
  return this.axios.get(r, { params: e }).then((o) => o.data);
148
148
  }
149
- async get(t, e = {}, r = new yp()) {
149
+ async get(t, e = {}, r = new gp()) {
150
150
  this.validateEndpoint(t);
151
151
  const o = this.computeEndpoint(t);
152
152
  return this.axios.get(o, { params: e, headers: r }).then((s) => s.data);
@@ -175,11 +175,11 @@ class m {
175
175
  return JSON.stringify(ci(this.toAmino()));
176
176
  }
177
177
  }
178
- function Wf(a) {
178
+ function Kf(a) {
179
179
  return a !== null && typeof a == "object" ? Object.entries(a).filter(([, t]) => t != null).reduce(
180
180
  (t, [e, r]) => ({
181
181
  ...t,
182
- [e]: r === Object(r) && !Array.isArray(r) ? Wf(r) : r
182
+ [e]: r === Object(r) && !Array.isArray(r) ? Kf(r) : r
183
183
  }),
184
184
  {}
185
185
  ) : a;
@@ -341,7 +341,7 @@ class I extends m {
341
341
  return new I(e.denom, e.amount);
342
342
  }
343
343
  toProto() {
344
- return vp.fromPartial({
344
+ return _p.fromPartial({
345
345
  denom: this.denom,
346
346
  amount: this.isDecimal ? O(this.amount).toFixed(18) : this.amount
347
347
  });
@@ -528,7 +528,7 @@ class ys extends m {
528
528
  front_running_protection: s,
529
529
  proposer_fee: n
530
530
  } = this;
531
- return wp.fromPartial({
531
+ return vp.fromPartial({
532
532
  maxBundleSize: t,
533
533
  escrowAccountAddress: Buffer.from(e, "base64"),
534
534
  reserveFee: r.toProto(),
@@ -607,7 +607,7 @@ class W {
607
607
  this.c = t;
608
608
  }
609
609
  }
610
- class jf extends W {
610
+ class Wf extends W {
611
611
  /**
612
612
  * Query the parameters of the auction module.
613
613
  */
@@ -828,7 +828,7 @@ class F {
828
828
  return new F(Number(t.seconds), t.nanos);
829
829
  }
830
830
  toProto() {
831
- return Pp.fromPartial({
831
+ return wp.fromPartial({
832
832
  seconds: BigInt(this.seconds),
833
833
  nanos: this.nanos
834
834
  });
@@ -932,7 +932,7 @@ class _s extends m {
932
932
  sig_verify_cost_ed25519: o,
933
933
  sig_verify_cost_secp256k1: s
934
934
  } = this;
935
- return bp.fromPartial({
935
+ return Pp.fromPartial({
936
936
  maxMemoCharacters: BigInt(t),
937
937
  txSigLimit: BigInt(e),
938
938
  txSizeCostPerByte: BigInt(r),
@@ -1003,21 +1003,21 @@ class Me extends m {
1003
1003
  }
1004
1004
  }
1005
1005
  function nd(a) {
1006
- return Pl.hash(kp.parse(a)).toString().toUpperCase();
1006
+ return wl.hash(Dp.parse(a)).toString().toUpperCase();
1007
1007
  }
1008
1008
  function pd(a) {
1009
- return Pl.hash(new ld(a)).toUint8Array();
1009
+ return wl.hash(new ld(a)).toUint8Array();
1010
1010
  }
1011
- function Gf(a) {
1012
- return bl(Buffer.from(a));
1011
+ function jf(a) {
1012
+ return Pl(Buffer.from(a));
1013
1013
  }
1014
- function Jf(a) {
1015
- return Dp.hash(new ld(a)).toUint8Array();
1014
+ function Gf(a) {
1015
+ return Ap.hash(new ld(a)).toUint8Array();
1016
1016
  }
1017
- const Zf = Buffer.from(
1017
+ const Jf = Buffer.from(
1018
1018
  "eb5ae98721",
1019
1019
  "hex"
1020
- ), Yf = Buffer.from(
1020
+ ), Zf = Buffer.from(
1021
1021
  "22c1f7e2",
1022
1022
  "hex"
1023
1023
  ), sl = (a) => {
@@ -1111,13 +1111,13 @@ class pt extends m {
1111
1111
  }
1112
1112
  encodeAminoPubkey() {
1113
1113
  return Buffer.concat([
1114
- Zf,
1114
+ Jf,
1115
1115
  Buffer.from(this.key, "base64")
1116
1116
  ]);
1117
1117
  }
1118
1118
  rawAddress() {
1119
1119
  const t = Buffer.from(this.key, "base64");
1120
- return Jf(pd(t));
1120
+ return Gf(pd(t));
1121
1121
  }
1122
1122
  address() {
1123
1123
  return G.encode("init", G.toWords(this.rawAddress()));
@@ -1128,7 +1128,7 @@ class de extends m {
1128
1128
  super(), this.threshold = t, this.pubkeys = e;
1129
1129
  }
1130
1130
  encodeAminoPubkey() {
1131
- const t = Array.from(Yf);
1131
+ const t = Array.from(Zf);
1132
1132
  t.push(8), t.push(...sl(this.threshold));
1133
1133
  for (const e of this.pubkeys.map((r) => r.encodeAminoPubkey()))
1134
1134
  t.push(18), t.push(...sl(e.length)), t.push(...Array.from(e));
@@ -1286,7 +1286,7 @@ class le extends m {
1286
1286
  Buffer.from(this.key, "base64"),
1287
1287
  !1
1288
1288
  );
1289
- return Gf(e.slice(1)).slice(12);
1289
+ return jf(e.slice(1)).slice(12);
1290
1290
  }
1291
1291
  address() {
1292
1292
  return G.encode("init", G.toWords(this.rawAddress()));
@@ -1525,7 +1525,7 @@ class jt extends m {
1525
1525
  toAmino() {
1526
1526
  const { max_tokens: e, allow_list: r, deny_list: o, authorization_type: s } = this;
1527
1527
  return {
1528
- type: "mstake/StakeAuthorization",
1528
+ type: "mstaking/StakeAuthorization",
1529
1529
  value: {
1530
1530
  max_tokens: e.toAmino(),
1531
1531
  allow_list: r.toAmino(),
@@ -1608,13 +1608,13 @@ class Kt extends m {
1608
1608
  return new Kt(t.address);
1609
1609
  }
1610
1610
  toProto() {
1611
- return Ip.fromPartial({
1611
+ return Mp.fromPartial({
1612
1612
  address: this.address
1613
1613
  });
1614
1614
  }
1615
1615
  }
1616
1616
  ((a) => {
1617
- a.Type = Mp;
1617
+ a.Type = xp;
1618
1618
  })(jt || (jt = {}));
1619
1619
  class Ie extends m {
1620
1620
  /**
@@ -1871,7 +1871,7 @@ class Ws extends m {
1871
1871
  );
1872
1872
  }
1873
1873
  toProto() {
1874
- return Bp.fromPartial({
1874
+ return Sp.fromPartial({
1875
1875
  moduleAddress: this.module_address,
1876
1876
  moduleName: this.module_name,
1877
1877
  functionNames: this.function_names
@@ -1913,14 +1913,14 @@ class X extends m {
1913
1913
  }
1914
1914
  toProto() {
1915
1915
  const { permission: t, addresses: e } = this;
1916
- return Op.fromPartial({
1916
+ return Np.fromPartial({
1917
1917
  permission: t,
1918
1918
  addresses: e
1919
1919
  });
1920
1920
  }
1921
1921
  }
1922
1922
  ((a) => {
1923
- a.Type = Np;
1923
+ a.Type = $p;
1924
1924
  })(X || (X = {}));
1925
1925
  class js extends m {
1926
1926
  /**
@@ -1966,7 +1966,7 @@ class js extends m {
1966
1966
  }
1967
1967
  toProto() {
1968
1968
  const { code_hash: t, instantiate_permission: e } = this;
1969
- return Cp.fromPartial({
1969
+ return Up.fromPartial({
1970
1970
  codeHash: Buffer.from(t, "base64"),
1971
1971
  instantiatePermission: e == null ? void 0 : e.toProto()
1972
1972
  });
@@ -2424,7 +2424,7 @@ class re extends m {
2424
2424
  }
2425
2425
  toProto() {
2426
2426
  const { contract: t, limit: e, filter: r } = this;
2427
- return $p.fromPartial({
2427
+ return Cp.fromPartial({
2428
2428
  contract: t,
2429
2429
  limit: e.packAny(),
2430
2430
  filter: r.packAny()
@@ -3223,7 +3223,7 @@ class vs extends m {
3223
3223
  }
3224
3224
  toProto() {
3225
3225
  const { code_upload_access: t, instantiate_default_permission: e } = this;
3226
- return Fp.fromPartial({
3226
+ return Op.fromPartial({
3227
3227
  codeUploadAccess: t.toProto(),
3228
3228
  instantiateDefaultPermission: e
3229
3229
  });
@@ -3987,7 +3987,7 @@ class Mn extends m {
3987
3987
  }
3988
3988
  toProto() {
3989
3989
  const { block_height: t, tx_index: e } = this;
3990
- return Tp.fromPartial({
3990
+ return Fp.fromPartial({
3991
3991
  blockHeight: BigInt(t),
3992
3992
  txIndex: BigInt(e)
3993
3993
  });
@@ -4087,7 +4087,7 @@ class In extends m {
4087
4087
  allow_list: s,
4088
4088
  allowed_packet_data: n
4089
4089
  } = this;
4090
- return Lp.fromPartial({
4090
+ return Rp.fromPartial({
4091
4091
  sourcePort: e,
4092
4092
  sourceChannel: r,
4093
4093
  spendLimit: o.toProto(),
@@ -4179,7 +4179,7 @@ class U extends m {
4179
4179
  }
4180
4180
  toProto() {
4181
4181
  const { revision_number: t, revision_height: e } = this;
4182
- return Hp.fromPartial({
4182
+ return Lp.fromPartial({
4183
4183
  revisionNumber: BigInt(t),
4184
4184
  revisionHeight: BigInt(e)
4185
4185
  });
@@ -4395,7 +4395,7 @@ class Gs extends m {
4395
4395
  }
4396
4396
  toProto() {
4397
4397
  const { send_enabled: t, receive_enabled: e } = this;
4398
- return Wp.fromPartial({
4398
+ return Kp.fromPartial({
4399
4399
  sendEnabled: t,
4400
4400
  receiveEnabled: e
4401
4401
  });
@@ -4490,7 +4490,7 @@ class En extends m {
4490
4490
  }
4491
4491
  toProto() {
4492
4492
  const { path: t, base_denom: e } = this;
4493
- return jp.fromPartial({ path: t, baseDenom: e });
4493
+ return Wp.fromPartial({ path: t, baseDenom: e });
4494
4494
  }
4495
4495
  }
4496
4496
  class Ja extends m {
@@ -4543,7 +4543,7 @@ class Ja extends m {
4543
4543
  }
4544
4544
  toProto() {
4545
4545
  const { denom: t, amount: e, sender: r, receiver: o, memo: s } = this;
4546
- return Gp.fromPartial({
4546
+ return jp.fromPartial({
4547
4547
  denom: t,
4548
4548
  amount: e,
4549
4549
  sender: r,
@@ -4596,7 +4596,7 @@ class oe extends m {
4596
4596
  }
4597
4597
  toProto() {
4598
4598
  const { authorization: t, expiration: e } = this;
4599
- return Sp.fromPartial({
4599
+ return Ip.fromPartial({
4600
4600
  authorization: t.packAny(),
4601
4601
  expiration: e
4602
4602
  });
@@ -4610,7 +4610,7 @@ var ka;
4610
4610
  return Ie.fromAmino(o);
4611
4611
  case "cosmos-sdk/GenericAuthorization":
4612
4612
  return Se.fromAmino(o);
4613
- case "mstake/StakeAuthorization":
4613
+ case "mstaking/StakeAuthorization":
4614
4614
  return jt.fromAmino(o);
4615
4615
  case "move/ExecuteAuthorization":
4616
4616
  return Ee.fromAmino(o);
@@ -5049,7 +5049,7 @@ class ht extends m {
5049
5049
  }
5050
5050
  toProto() {
5051
5051
  const { address: s, coins: n } = this;
5052
- return Jp.fromPartial({
5052
+ return Gp.fromPartial({
5053
5053
  address: s,
5054
5054
  coins: n.toProto()
5055
5055
  });
@@ -5096,7 +5096,7 @@ class ht extends m {
5096
5096
  }
5097
5097
  toProto() {
5098
5098
  const { address: s, coins: n } = this;
5099
- return Zp.fromPartial({
5099
+ return Jp.fromPartial({
5100
5100
  address: s,
5101
5101
  coins: n.toProto()
5102
5102
  });
@@ -5133,7 +5133,7 @@ class se extends m {
5133
5133
  }
5134
5134
  toProto() {
5135
5135
  const { denom: t, enabled: e } = this;
5136
- return Yp.fromPartial({
5136
+ return Zp.fromPartial({
5137
5137
  denom: t,
5138
5138
  enabled: e
5139
5139
  });
@@ -5189,7 +5189,7 @@ class ws extends m {
5189
5189
  }
5190
5190
  toProto() {
5191
5191
  const { send_enabled: t, default_send_enabled: e } = this;
5192
- return Xp.fromPartial({
5192
+ return Yp.fromPartial({
5193
5193
  sendEnabled: t.map((r) => r.toProto()),
5194
5194
  defaultSendEnabled: e
5195
5195
  });
@@ -5368,7 +5368,7 @@ class Js extends m {
5368
5368
  }
5369
5369
  toProto() {
5370
5370
  const { denom: t, exponent: e, aliases: r } = this;
5371
- return Qp.fromPartial({
5371
+ return Xp.fromPartial({
5372
5372
  denom: t,
5373
5373
  exponent: e,
5374
5374
  aliases: r
@@ -5500,7 +5500,7 @@ class ne extends m {
5500
5500
  uri: i,
5501
5501
  uri_hash: c
5502
5502
  } = this;
5503
- return th.fromPartial({
5503
+ return Qp.fromPartial({
5504
5504
  description: t,
5505
5505
  denomUnits: e.map((d) => d.toProto()),
5506
5506
  base: r,
@@ -5709,7 +5709,7 @@ class Ca extends m {
5709
5709
  }
5710
5710
  toProto() {
5711
5711
  const { namespace_id: t, data: e, share_version: r, namespace_version: o } = this;
5712
- return eh.fromPartial({
5712
+ return th.fromPartial({
5713
5713
  namespaceId: Buffer.from(t, "base64"),
5714
5714
  data: Buffer.from(e, "base64"),
5715
5715
  shareVersion: r,
@@ -5773,7 +5773,7 @@ class he {
5773
5773
  return new he(t.extraBitsStored, Buffer.from(t.elems));
5774
5774
  }
5775
5775
  toProto() {
5776
- return ih.fromPartial({
5776
+ return ah.fromPartial({
5777
5777
  elems: this.elems,
5778
5778
  extraBitsStored: this.extra_bits_stored
5779
5779
  });
@@ -5826,7 +5826,7 @@ class Nt extends m {
5826
5826
  }
5827
5827
  toProto() {
5828
5828
  const { amount: e, gas_limit: r, payer: o, granter: s } = this;
5829
- return rh.fromPartial({
5829
+ return eh.fromPartial({
5830
5830
  amount: e.toProto(),
5831
5831
  gasLimit: BigInt(r),
5832
5832
  granter: s,
@@ -5928,12 +5928,12 @@ class nt {
5928
5928
  this.mode = n, this.signature = i;
5929
5929
  }
5930
5930
  static fromData(n) {
5931
- return new r(Al(n.mode), n.signature);
5931
+ return new r(bl(n.mode), n.signature);
5932
5932
  }
5933
5933
  toData() {
5934
5934
  const { mode: n, signature: i } = this;
5935
5935
  return {
5936
- mode: Dl(n),
5936
+ mode: Al(n),
5937
5937
  signature: i
5938
5938
  };
5939
5939
  }
@@ -6169,7 +6169,7 @@ class Ft {
6169
6169
  }
6170
6170
  toProto() {
6171
6171
  const { public_key: t, sequence: e, mode_info: r } = this;
6172
- return oh.fromPartial({
6172
+ return rh.fromPartial({
6173
6173
  modeInfo: r.toProto(),
6174
6174
  publicKey: t == null ? void 0 : t.packAny(),
6175
6175
  sequence: BigInt(e)
@@ -6207,7 +6207,7 @@ class J {
6207
6207
  }
6208
6208
  toProto() {
6209
6209
  var t, e;
6210
- return sh.fromPartial({
6210
+ return oh.fromPartial({
6211
6211
  multi: (t = this.multi) == null ? void 0 : t.toProto(),
6212
6212
  single: (e = this.single) == null ? void 0 : e.toProto()
6213
6213
  });
@@ -6220,18 +6220,18 @@ class J {
6220
6220
  this.mode = o;
6221
6221
  }
6222
6222
  static fromData(o) {
6223
- return new t(Al(o.mode));
6223
+ return new t(bl(o.mode));
6224
6224
  }
6225
6225
  toData() {
6226
6226
  return {
6227
- mode: Dl(this.mode)
6227
+ mode: Al(this.mode)
6228
6228
  };
6229
6229
  }
6230
6230
  static fromProto(o) {
6231
6231
  return new t(o.mode);
6232
6232
  }
6233
6233
  toProto() {
6234
- return nh.fromPartial({
6234
+ return sh.fromPartial({
6235
6235
  mode: this.mode
6236
6236
  });
6237
6237
  }
@@ -6260,7 +6260,7 @@ class J {
6260
6260
  );
6261
6261
  }
6262
6262
  toProto() {
6263
- return ah.fromPartial({
6263
+ return nh.fromPartial({
6264
6264
  bitarray: this.bitarray.toProto(),
6265
6265
  modeInfos: this.modeInfos.map((o) => o.toProto())
6266
6266
  });
@@ -6349,7 +6349,7 @@ class Zs extends m {
6349
6349
  }
6350
6350
  toProto() {
6351
6351
  const { max_bytes: t, max_gas: e } = this;
6352
- return ch.fromPartial({
6352
+ return ih.fromPartial({
6353
6353
  maxBytes: BigInt(t),
6354
6354
  maxGas: BigInt(e)
6355
6355
  });
@@ -6405,7 +6405,7 @@ class Ys extends m {
6405
6405
  }
6406
6406
  toProto() {
6407
6407
  const { max_age_num_blocks: t, max_age_duration: e, max_bytes: r } = this;
6408
- return mh.fromPartial({
6408
+ return ch.fromPartial({
6409
6409
  maxAgeNumBlocks: BigInt(t),
6410
6410
  maxAgeDuration: e.toProto(),
6411
6411
  maxBytes: BigInt(r)
@@ -6439,7 +6439,7 @@ class Xs extends m {
6439
6439
  return new Xs(t.pubKeyTypes);
6440
6440
  }
6441
6441
  toProto() {
6442
- return uh.fromPartial({
6442
+ return mh.fromPartial({
6443
6443
  pubKeyTypes: this.pub_key_types
6444
6444
  });
6445
6445
  }
@@ -6471,7 +6471,7 @@ class Qs extends m {
6471
6471
  return new Qs(Number(t.voteExtensionsEnableHeight));
6472
6472
  }
6473
6473
  toProto() {
6474
- return dh.fromPartial({
6474
+ return uh.fromPartial({
6475
6475
  voteExtensionsEnableHeight: BigInt(this.vote_extensions_enable_height)
6476
6476
  });
6477
6477
  }
@@ -6960,7 +6960,7 @@ class tn extends m {
6960
6960
  }
6961
6961
  toProto() {
6962
6962
  const { denom: t, weight: e } = this;
6963
- return lh.fromPartial({
6963
+ return dh.fromPartial({
6964
6964
  denom: t,
6965
6965
  weight: e
6966
6966
  });
@@ -7022,7 +7022,7 @@ class Ps extends m {
7022
7022
  }
7023
7023
  toProto() {
7024
7024
  const { community_tax: t, withdraw_addr_enabled: e, reward_weights: r } = this;
7025
- return ph.fromPartial({
7025
+ return lh.fromPartial({
7026
7026
  communityTax: t,
7027
7027
  withdrawAddrEnabled: e,
7028
7028
  rewardWeights: r.map((o) => o.toProto())
@@ -7450,7 +7450,7 @@ class Pt extends m {
7450
7450
  }
7451
7451
  toProto() {
7452
7452
  const { address: t, storage_keys: e } = this;
7453
- return hh.fromPartial({
7453
+ return ph.fromPartial({
7454
7454
  address: t,
7455
7455
  storageKeys: e
7456
7456
  });
@@ -7821,7 +7821,7 @@ class bs extends m {
7821
7821
  gas_refund_ratio: n,
7822
7822
  num_retain_block_hashes: i
7823
7823
  } = this;
7824
- return fh.fromPartial({
7824
+ return hh.fromPartial({
7825
7825
  extraEips: t.map((c) => BigInt(c)),
7826
7826
  allowedPublishers: e,
7827
7827
  allowCustomErc20: r,
@@ -8505,7 +8505,7 @@ class Cr extends m {
8505
8505
  }
8506
8506
  class $r extends m {
8507
8507
  /**
8508
- * @param proposal_id Id of porposal to deposit to
8508
+ * @param proposal_id id of proposal to deposit to
8509
8509
  * @param depositor depositor's account address
8510
8510
  * @param amount amount to deposit
8511
8511
  */
@@ -8707,7 +8707,7 @@ class rn extends m {
8707
8707
  }
8708
8708
  toProto() {
8709
8709
  const { subspace: t, key: e, value: r } = this;
8710
- return gh.fromPartial({
8710
+ return fh.fromPartial({
8711
8711
  key: e,
8712
8712
  subspace: t,
8713
8713
  value: r
@@ -8966,11 +8966,11 @@ class Ds extends m {
8966
8966
  total_vesting_power: r,
8967
8967
  v1_tally_result: o
8968
8968
  } = this;
8969
- return Ah.fromPartial({
8969
+ return bh.fromPartial({
8970
8970
  tallyHeight: BigInt(t),
8971
8971
  totalStakingPower: e,
8972
8972
  totalVestingPower: r,
8973
- v1TallyResult: _h.fromPartial({
8973
+ v1TallyResult: yh.fromPartial({
8974
8974
  yesCount: o.yes_count,
8975
8975
  abstainCount: o.abstain_count,
8976
8976
  noCount: o.no_count,
@@ -9216,7 +9216,7 @@ class ge extends m {
9216
9216
  emergency: j,
9217
9217
  failed_reason: S
9218
9218
  } = this;
9219
- return Dh.fromPartial({
9219
+ return Ah.fromPartial({
9220
9220
  id: BigInt(e),
9221
9221
  messages: r.map((Z) => Z.packAny()),
9222
9222
  status: o,
@@ -9239,7 +9239,7 @@ class ge extends m {
9239
9239
  }
9240
9240
  }
9241
9241
  ((a) => {
9242
- a.Status = vh;
9242
+ a.Status = _h;
9243
9243
  })(ge || (ge = {}));
9244
9244
  class Rr extends m {
9245
9245
  /**
@@ -9526,7 +9526,7 @@ class Gt extends m {
9526
9526
  }
9527
9527
  }
9528
9528
  ((a) => {
9529
- a.Option = yh;
9529
+ a.Option = gh;
9530
9530
  })(Gt || (Gt = {}));
9531
9531
  class Jt extends m {
9532
9532
  /**
@@ -9598,7 +9598,7 @@ class Jt extends m {
9598
9598
  }
9599
9599
  }
9600
9600
  ((a) => {
9601
- a.Option = kl;
9601
+ a.Option = Dl;
9602
9602
  })(Jt || (Jt = {}));
9603
9603
  class on extends m {
9604
9604
  /**
@@ -9656,7 +9656,7 @@ class on extends m {
9656
9656
  }
9657
9657
  toProto() {
9658
9658
  const { proposal_id: t, voter: e, options: r, metadata: o } = this;
9659
- return wh.fromPartial({
9659
+ return vh.fromPartial({
9660
9660
  options: r.map((s) => s.toProto()),
9661
9661
  proposalId: BigInt(t),
9662
9662
  voter: e,
@@ -9665,7 +9665,7 @@ class on extends m {
9665
9665
  }
9666
9666
  }
9667
9667
  ((a) => {
9668
- a.Option = kl;
9668
+ a.Option = Dl;
9669
9669
  })(on || (on = {}));
9670
9670
  class bt extends m {
9671
9671
  constructor(t, e) {
@@ -9698,7 +9698,7 @@ class bt extends m {
9698
9698
  }
9699
9699
  toProto() {
9700
9700
  const { option: t, weight: e } = this;
9701
- return Ph.fromPartial({
9701
+ return wh.fromPartial({
9702
9702
  option: t,
9703
9703
  weight: e.toString()
9704
9704
  });
@@ -9895,7 +9895,7 @@ class sn extends m {
9895
9895
  }
9896
9896
  toProto() {
9897
9897
  const { module_addr: t, module_name: e, creator_addr: r } = this;
9898
- return kh.fromPartial({
9898
+ return Dh.fromPartial({
9899
9899
  moduleAddr: t,
9900
9900
  moduleName: e,
9901
9901
  creatorAddr: r
@@ -10163,7 +10163,7 @@ class ks extends m {
10163
10163
  low_threshold_functions: Z,
10164
10164
  vesting: et
10165
10165
  } = this;
10166
- return xh.fromPartial({
10166
+ return kh.fromPartial({
10167
10167
  minDeposit: e.toProto(),
10168
10168
  maxDepositPeriod: r.toProto(),
10169
10169
  votingPeriod: o.toProto(),
@@ -10294,7 +10294,7 @@ class Ma extends m {
10294
10294
  }
10295
10295
  toProto() {
10296
10296
  const { proposal_id: e, depositor: r, amount: o } = this;
10297
- return bh.fromPartial({
10297
+ return Ph.fromPartial({
10298
10298
  proposalId: BigInt(e),
10299
10299
  depositor: r,
10300
10300
  amount: o.toProto()
@@ -10339,7 +10339,7 @@ class Ia extends m {
10339
10339
  }
10340
10340
  toProto() {
10341
10341
  const { group_id: t, member: e } = this;
10342
- return Mh.fromPartial({
10342
+ return xh.fromPartial({
10343
10343
  groupId: BigInt(t),
10344
10344
  member: e.toProto()
10345
10345
  });
@@ -10391,7 +10391,7 @@ class nn extends m {
10391
10391
  }
10392
10392
  toProto() {
10393
10393
  const { address: t, weight: e, metadata: r, added_at: o } = this;
10394
- return Ih.fromPartial({
10394
+ return Mh.fromPartial({
10395
10395
  address: t,
10396
10396
  weight: e,
10397
10397
  metadata: r,
@@ -10437,7 +10437,7 @@ class At extends m {
10437
10437
  }
10438
10438
  toProto() {
10439
10439
  const { address: t, weight: e, metadata: r } = this;
10440
- return Sh.fromPartial({
10440
+ return Ih.fromPartial({
10441
10441
  address: t,
10442
10442
  weight: e,
10443
10443
  metadata: r
@@ -10560,7 +10560,7 @@ class ae extends m {
10560
10560
  }
10561
10561
  toProto() {
10562
10562
  const { voting_period: t, min_execution_period: e } = this;
10563
- return Bh.fromPartial({
10563
+ return Sh.fromPartial({
10564
10564
  votingPeriod: t.toProto(),
10565
10565
  minExecutionPeriod: e.toProto()
10566
10566
  });
@@ -11090,7 +11090,7 @@ class Zt extends m {
11090
11090
  }
11091
11091
  }
11092
11092
  ((a) => {
11093
- a.Option = xl, a.Exec = Ml;
11093
+ a.Option = kl, a.Exec = xl;
11094
11094
  })(Zt || (Zt = {}));
11095
11095
  class Zr extends m {
11096
11096
  /**
@@ -11291,7 +11291,7 @@ class Yt extends m {
11291
11291
  }
11292
11292
  }
11293
11293
  ((a) => {
11294
- a.Exec = Ml;
11294
+ a.Exec = xl;
11295
11295
  })(Yt || (Yt = {}));
11296
11296
  class Yr extends m {
11297
11297
  /**
@@ -11783,7 +11783,7 @@ class oo extends m {
11783
11783
  }
11784
11784
  toProto() {
11785
11785
  const { id: t, admin: e, metadata: r, version: o, total_weight: s, created_at: n } = this;
11786
- return Eh.fromPartial({
11786
+ return Bh.fromPartial({
11787
11787
  id: BigInt(t),
11788
11788
  admin: e,
11789
11789
  metadata: r,
@@ -11907,7 +11907,7 @@ class an extends m {
11907
11907
  decision_policy: n,
11908
11908
  created_at: i
11909
11909
  } = this;
11910
- return Uh.fromPartial({
11910
+ return Eh.fromPartial({
11911
11911
  address: t,
11912
11912
  groupId: BigInt(e),
11913
11913
  admin: r,
@@ -12146,12 +12146,12 @@ class xs extends m {
12146
12146
  summary: E
12147
12147
  } = this;
12148
12148
  let $;
12149
- return d && ($ = Nh.fromPartial({
12149
+ return d && ($ = $h.fromPartial({
12150
12150
  yesCount: d.yes_count,
12151
12151
  noCount: d.no_count,
12152
12152
  abstainCount: d.abstain_count,
12153
12153
  noWithVetoCount: d.no_with_veto_count
12154
- })), Oh.fromPartial({
12154
+ })), Nh.fromPartial({
12155
12155
  id: BigInt(t),
12156
12156
  groupPolicyAddress: e,
12157
12157
  metadata: r,
@@ -12170,7 +12170,7 @@ class xs extends m {
12170
12170
  }
12171
12171
  }
12172
12172
  ((a) => {
12173
- a.Status = Ch, a.ExecutorResult = $h;
12173
+ a.Status = Uh, a.ExecutorResult = Ch;
12174
12174
  })(xs || (xs = {}));
12175
12175
  class ye extends m {
12176
12176
  /**
@@ -12234,7 +12234,7 @@ class ye extends m {
12234
12234
  }
12235
12235
  toProto() {
12236
12236
  const { proposal_id: t, voter: e, option: r, metadata: o, submit_time: s } = this;
12237
- return Fh.fromPartial({
12237
+ return Oh.fromPartial({
12238
12238
  proposalId: BigInt(t),
12239
12239
  voter: e,
12240
12240
  option: r,
@@ -12244,7 +12244,7 @@ class ye extends m {
12244
12244
  }
12245
12245
  }
12246
12246
  ((a) => {
12247
- a.Option = xl;
12247
+ a.Option = kl;
12248
12248
  })(ye || (ye = {}));
12249
12249
  class _e extends m {
12250
12250
  /**
@@ -12300,7 +12300,7 @@ class _e extends m {
12300
12300
  }
12301
12301
  toProto() {
12302
12302
  const { recv_fee: e, ack_fee: r, timeout_fee: o } = this;
12303
- return Th.fromPartial({
12303
+ return Fh.fromPartial({
12304
12304
  recvFee: e.toProto(),
12305
12305
  ackFee: r.toProto(),
12306
12306
  timeoutFee: o.toProto()
@@ -12311,7 +12311,7 @@ class Cn extends m {
12311
12311
  /**
12312
12312
  * @param fee encapsulates the recv, ack and timeout fees associated with an IBC packet
12313
12313
  * @param source_port_id the source port unique identifier
12314
- * @param source_channel_id the source channel unique identifer
12314
+ * @param source_channel_id the source channel unique identifier
12315
12315
  * @param signer account address to refund fee if necessary
12316
12316
  * @param relayers optional list of relayers permitted to the receive packet fees
12317
12317
  */
@@ -12412,7 +12412,7 @@ class ve extends m {
12412
12412
  }
12413
12413
  toProto() {
12414
12414
  const { port_id: t, channel_id: e, sequence: r } = this;
12415
- return Lh.fromPartial({
12415
+ return Rh.fromPartial({
12416
12416
  portId: t,
12417
12417
  channelId: e,
12418
12418
  sequence: BigInt(r)
@@ -12469,7 +12469,7 @@ class we extends m {
12469
12469
  }
12470
12470
  toProto() {
12471
12471
  const { fee: t, refund_address: e, relayers: r } = this;
12472
- return Rh.fromPartial({
12472
+ return Th.fromPartial({
12473
12473
  fee: t == null ? void 0 : t.toProto(),
12474
12474
  refundAddress: e,
12475
12475
  relayers: r
@@ -12686,7 +12686,7 @@ class Za extends m {
12686
12686
  }
12687
12687
  toProto() {
12688
12688
  const { fee_version: t, app_version: e } = this;
12689
- return Wh.fromPartial({
12689
+ return Kh.fromPartial({
12690
12690
  feeVersion: t,
12691
12691
  appVersion: e
12692
12692
  });
@@ -12814,7 +12814,7 @@ class Ms extends m {
12814
12814
  }
12815
12815
  toAmino() {
12816
12816
  return {
12817
- type: "ibc-hooks/Params",
12817
+ type: "ibchooks/Params",
12818
12818
  value: { default_allowed: this.default_allowed }
12819
12819
  };
12820
12820
  }
@@ -12831,7 +12831,7 @@ class Ms extends m {
12831
12831
  return new Ms(t.defaultAllowed);
12832
12832
  }
12833
12833
  toProto() {
12834
- return jh.fromPartial({
12834
+ return Wh.fromPartial({
12835
12835
  defaultAllowed: this.default_allowed
12836
12836
  });
12837
12837
  }
@@ -12932,7 +12932,7 @@ class Fn extends m {
12932
12932
  }
12933
12933
  toProto() {
12934
12934
  const { address: t, allowed: e } = this;
12935
- return Gh.fromPartial({
12935
+ return jh.fromPartial({
12936
12936
  address: t,
12937
12937
  allowed: e
12938
12938
  });
@@ -13164,7 +13164,7 @@ class Is extends m {
13164
13164
  }
13165
13165
  toProto() {
13166
13166
  const { send_enabled: t, receive_enabled: e } = this;
13167
- return Jh.fromPartial({
13167
+ return Gh.fromPartial({
13168
13168
  sendEnabled: t,
13169
13169
  receiveEnabled: e
13170
13170
  });
@@ -13367,7 +13367,7 @@ class Xa extends m {
13367
13367
  receiver: c,
13368
13368
  memo: d
13369
13369
  } = this;
13370
- return Yh.fromPartial({
13370
+ return Zh.fromPartial({
13371
13371
  classId: t,
13372
13372
  classUri: e,
13373
13373
  classData: r,
@@ -13415,7 +13415,7 @@ class Tn extends m {
13415
13415
  }
13416
13416
  toProto() {
13417
13417
  const { path: t, base_class_id: e } = this;
13418
- return Zh.fromPartial({ path: t, baseClassId: e });
13418
+ return Jh.fromPartial({ path: t, baseClassId: e });
13419
13419
  }
13420
13420
  }
13421
13421
  class co extends m {
@@ -13605,7 +13605,7 @@ class cn extends m {
13605
13605
  }
13606
13606
  toProto() {
13607
13607
  const { port_id: t, channel_id: e } = this;
13608
- return Hh.fromPartial({
13608
+ return Lh.fromPartial({
13609
13609
  portId: t,
13610
13610
  channelId: e
13611
13611
  });
@@ -13673,7 +13673,7 @@ class Rt extends m {
13673
13673
  }
13674
13674
  toProto() {
13675
13675
  const { state: t, ordering: e, counterparty: r, connection_hops: o, version: s } = this;
13676
- return zh.fromPartial({
13676
+ return Hh.fromPartial({
13677
13677
  state: t,
13678
13678
  ordering: e,
13679
13679
  counterparty: r == null ? void 0 : r.toProto(),
@@ -14093,7 +14093,7 @@ class ie extends m {
14093
14093
  }
14094
14094
  toProto() {
14095
14095
  const { name: t, height: e, info: r } = this;
14096
- return Xh.fromPartial({
14096
+ return Yh.fromPartial({
14097
14097
  name: t,
14098
14098
  height: BigInt(e),
14099
14099
  info: r
@@ -14302,7 +14302,7 @@ class mn extends m {
14302
14302
  }
14303
14303
  toProto() {
14304
14304
  const { allowed_clients: t } = this;
14305
- return zp.fromPartial({
14305
+ return Hp.fromPartial({
14306
14306
  allowedClients: t
14307
14307
  });
14308
14308
  }
@@ -14408,7 +14408,7 @@ class un extends m {
14408
14408
  }
14409
14409
  toProto() {
14410
14410
  const { height: e, consensus_state: r } = this;
14411
- return qp.fromPartial({
14411
+ return zp.fromPartial({
14412
14412
  height: e == null ? void 0 : e.toProto(),
14413
14413
  consensusState: r
14414
14414
  });
@@ -14460,7 +14460,7 @@ class Qa extends m {
14460
14460
  }
14461
14461
  toProto() {
14462
14462
  const { client_id: t, consensus_states: e } = this;
14463
- return Vp.fromPartial({
14463
+ return qp.fromPartial({
14464
14464
  clientId: t,
14465
14465
  consensusStates: e.map((r) => r.toProto())
14466
14466
  });
@@ -14501,7 +14501,7 @@ class Sa extends m {
14501
14501
  }
14502
14502
  toProto() {
14503
14503
  const { client_id: t, client_state: e } = this;
14504
- return Kp.fromPartial({
14504
+ return Vp.fromPartial({
14505
14505
  clientId: t,
14506
14506
  clientState: e
14507
14507
  });
@@ -14545,7 +14545,7 @@ class dn extends m {
14545
14545
  }
14546
14546
  toProto() {
14547
14547
  const { height: t, timestamp: e } = this;
14548
- return qh.fromPartial({
14548
+ return zh.fromPartial({
14549
14549
  height: t.toProto(),
14550
14550
  timestamp: BigInt(e)
14551
14551
  });
@@ -14580,7 +14580,7 @@ class jn extends m {
14580
14580
  );
14581
14581
  }
14582
14582
  toProto() {
14583
- return Vh.fromPartial({
14583
+ return qh.fromPartial({
14584
14584
  upgradeTimeout: this.upgrade_timeout.toProto()
14585
14585
  });
14586
14586
  }
@@ -14704,7 +14704,7 @@ class St extends m {
14704
14704
  timeout_height: i,
14705
14705
  timeout_timestamp: c
14706
14706
  } = this;
14707
- return Kh.fromPartial({
14707
+ return Vh.fromPartial({
14708
14708
  sequence: BigInt(t),
14709
14709
  sourcePort: e,
14710
14710
  sourceChannel: r,
@@ -14744,7 +14744,7 @@ class ln extends m {
14744
14744
  }
14745
14745
  toProto() {
14746
14746
  const { key_prefix: t } = this;
14747
- return Qh.fromPartial({
14747
+ return Xh.fromPartial({
14748
14748
  keyPrefix: Buffer.from(t, "base64")
14749
14749
  });
14750
14750
  }
@@ -14772,7 +14772,7 @@ class cd extends m {
14772
14772
  return new cd(Buffer.from(t.hash).toString("base64"));
14773
14773
  }
14774
14774
  toProto() {
14775
- return tf.fromPartial({
14775
+ return Qh.fromPartial({
14776
14776
  hash: Buffer.from(this.hash, "base64")
14777
14777
  });
14778
14778
  }
@@ -14827,7 +14827,7 @@ class Lt extends m {
14827
14827
  }
14828
14828
  toProto() {
14829
14829
  const { client_id: t, connection_id: e, prefix: r } = this;
14830
- return ef.fromPartial({
14830
+ return tf.fromPartial({
14831
14831
  clientId: t,
14832
14832
  connectionId: e,
14833
14833
  prefix: r == null ? void 0 : r.toProto()
@@ -14869,7 +14869,7 @@ class Dt extends m {
14869
14869
  }
14870
14870
  toProto() {
14871
14871
  const { identifier: t, features: e } = this;
14872
- return rf.fromPartial({ identifier: t, features: e });
14872
+ return ef.fromPartial({ identifier: t, features: e });
14873
14873
  }
14874
14874
  }
14875
14875
  class Gn extends m {
@@ -14940,7 +14940,7 @@ class Gn extends m {
14940
14940
  }
14941
14941
  toProto() {
14942
14942
  const { id: t, client_id: e, versions: r, state: o, counterparty: s, delay_period: n } = this;
14943
- return of.fromPartial({
14943
+ return rf.fromPartial({
14944
14944
  id: t,
14945
14945
  clientId: e,
14946
14946
  versions: r.map((i) => i.toProto()),
@@ -14982,7 +14982,7 @@ class Jn extends m {
14982
14982
  }
14983
14983
  toProto() {
14984
14984
  const { max_expected_time_per_block: t } = this;
14985
- return sf.fromPartial({
14985
+ return of.fromPartial({
14986
14986
  maxExpectedTimePerBlock: BigInt(t)
14987
14987
  });
14988
14988
  }
@@ -16369,7 +16369,7 @@ class vt extends m {
16369
16369
  return new vt(t.Base, t.Quote);
16370
16370
  }
16371
16371
  toProto() {
16372
- return nf.fromPartial({
16372
+ return sf.fromPartial({
16373
16373
  Base: this.Base,
16374
16374
  Quote: this.Quote
16375
16375
  });
@@ -16550,7 +16550,7 @@ class Ba extends m {
16550
16550
  }
16551
16551
  toProto() {
16552
16552
  const { price: t, block_timestamp: e, block_height: r } = this;
16553
- return af.fromPartial({
16553
+ return nf.fromPartial({
16554
16554
  price: t,
16555
16555
  blockTimestamp: e,
16556
16556
  blockHeight: BigInt(r)
@@ -16619,7 +16619,7 @@ class pn extends m {
16619
16619
  }
16620
16620
  toProto() {
16621
16621
  const { name: t, off_chain_ticker: e, normalize_by_pair: r, invert: o, metadata_JSON: s } = this;
16622
- return cf.fromPartial({
16622
+ return af.fromPartial({
16623
16623
  name: t,
16624
16624
  offChainTicker: e,
16625
16625
  normalizeByPair: r == null ? void 0 : r.toProto(),
@@ -16720,7 +16720,7 @@ class hn extends m {
16720
16720
  enabled: o,
16721
16721
  metadata_JSON: s
16722
16722
  } = this;
16723
- return mf.fromPartial({
16723
+ return cf.fromPartial({
16724
16724
  currencyPair: t,
16725
16725
  decimals: BigInt(e),
16726
16726
  minProviderCount: BigInt(r),
@@ -16773,7 +16773,7 @@ class ft extends m {
16773
16773
  }
16774
16774
  toProto() {
16775
16775
  const { ticker: t, provider_configs: e } = this;
16776
- return uf.fromPartial({
16776
+ return mf.fromPartial({
16777
16777
  ticker: t.toProto(),
16778
16778
  providerConfigs: e.map((r) => r.toProto())
16779
16779
  });
@@ -17097,7 +17097,7 @@ class Ss extends m {
17097
17097
  }
17098
17098
  toProto() {
17099
17099
  const { market_authorities: t, admin: e } = this;
17100
- return df.fromPartial({
17100
+ return uf.fromPartial({
17101
17101
  marketAuthorities: t,
17102
17102
  admin: e
17103
17103
  });
@@ -17742,7 +17742,7 @@ class Bs extends m {
17742
17742
  script_enabled: o,
17743
17743
  allowed_publishers: s
17744
17744
  } = this;
17745
- return Ep.fromPartial({
17745
+ return Bp.fromPartial({
17746
17746
  baseDenom: t,
17747
17747
  baseMinGasPrice: e,
17748
17748
  contractSharedRevenueRatio: r,
@@ -18521,7 +18521,7 @@ class Es extends m {
18521
18521
  }
18522
18522
  toProto() {
18523
18523
  const { address: t, module_name: e, abi: r, raw_bytes: o, upgrade_policy: s } = this;
18524
- return Up.fromPartial({
18524
+ return Ep.fromPartial({
18525
18525
  address: t,
18526
18526
  moduleName: e,
18527
18527
  abi: r,
@@ -18909,7 +18909,7 @@ class ot extends m {
18909
18909
  voting_powers: A,
18910
18910
  voting_power: k
18911
18911
  } = this;
18912
- return pf.fromPartial({
18912
+ return lf.fromPartial({
18913
18913
  operatorAddress: e,
18914
18914
  consensusPubkey: r.packAny(),
18915
18915
  jailed: o,
@@ -18926,7 +18926,7 @@ class ot extends m {
18926
18926
  }
18927
18927
  }
18928
18928
  ((a) => {
18929
- a.Status = lf;
18929
+ a.Status = df;
18930
18930
  class t extends m {
18931
18931
  /**
18932
18932
  * @param moniker identifying name, e.g. "Hashed"
@@ -18985,7 +18985,7 @@ class ot extends m {
18985
18985
  }
18986
18986
  toProto() {
18987
18987
  const { moniker: s, identity: n, website: i, details: c, security_contact: d } = this;
18988
- return hf.fromPartial({
18988
+ return pf.fromPartial({
18989
18989
  details: c,
18990
18990
  identity: n,
18991
18991
  moniker: s,
@@ -19033,7 +19033,7 @@ class ot extends m {
19033
19033
  }
19034
19034
  toProto() {
19035
19035
  const { rate: s, max_rate: n, max_change_rate: i } = this;
19036
- return ff.fromPartial({
19036
+ return hf.fromPartial({
19037
19037
  maxChangeRate: i,
19038
19038
  maxRate: n,
19039
19039
  rate: s
@@ -19083,7 +19083,7 @@ class ot extends m {
19083
19083
  }
19084
19084
  toProto() {
19085
19085
  const { commission_rates: s, update_time: n } = this;
19086
- return gf.fromPartial({
19086
+ return ff.fromPartial({
19087
19087
  commissionRates: s.toProto(),
19088
19088
  updateTime: n
19089
19089
  });
@@ -19470,7 +19470,7 @@ class Us extends m {
19470
19470
  min_voting_power: n,
19471
19471
  min_commission_rate: i
19472
19472
  } = this;
19473
- return yf.fromPartial({
19473
+ return gf.fromPartial({
19474
19474
  unbondingTime: t.toProto(),
19475
19475
  maxValidators: e,
19476
19476
  maxEntries: r,
@@ -19618,8 +19618,8 @@ class fn extends m {
19618
19618
  }
19619
19619
  toProto() {
19620
19620
  const { delegator_address: e, validator_address: r, shares: o, balance: s } = this;
19621
- return _f.fromPartial({
19622
- delegation: vf.fromPartial({
19621
+ return yf.fromPartial({
19622
+ delegation: _f.fromPartial({
19623
19623
  delegatorAddress: e,
19624
19624
  validatorAddress: r,
19625
19625
  shares: o.toProto()
@@ -19718,9 +19718,9 @@ class Wt extends m {
19718
19718
  validator_dst_address: r,
19719
19719
  entries: o
19720
19720
  } = this;
19721
- return wf.fromPartial({
19721
+ return vf.fromPartial({
19722
19722
  entries: o.map((s) => s.toProto()),
19723
- redelegation: Pf.fromPartial({
19723
+ redelegation: wf.fromPartial({
19724
19724
  delegatorAddress: t,
19725
19725
  entries: o.map(
19726
19726
  (s) => s.toProto().redelegationEntry
@@ -19822,9 +19822,9 @@ class Wt extends m {
19822
19822
  creation_height: i,
19823
19823
  completion_time: c
19824
19824
  } = this;
19825
- return bf.fromPartial({
19825
+ return Pf.fromPartial({
19826
19826
  balance: s.toProto(),
19827
- redelegationEntry: Af.fromPartial({
19827
+ redelegationEntry: bf.fromPartial({
19828
19828
  completionTime: c,
19829
19829
  creationHeight: BigInt(i),
19830
19830
  initialBalance: o.toProto(),
@@ -19873,7 +19873,7 @@ class It extends m {
19873
19873
  }
19874
19874
  toProto() {
19875
19875
  const { delegator_address: t, validator_address: e, entries: r } = this;
19876
- return Df.fromPartial({
19876
+ return Af.fromPartial({
19877
19877
  delegatorAddress: t,
19878
19878
  entries: r.map((o) => o.toProto()),
19879
19879
  validatorAddress: e
@@ -19946,7 +19946,7 @@ class It extends m {
19946
19946
  }
19947
19947
  toProto() {
19948
19948
  const { initial_balance: o, balance: s, creation_height: n, completion_time: i } = this;
19949
- return kf.fromPartial({
19949
+ return Df.fromPartial({
19950
19950
  balance: s.toProto(),
19951
19951
  completionTime: i,
19952
19952
  creationHeight: BigInt(n),
@@ -20485,7 +20485,7 @@ class kt extends m {
20485
20485
  }
20486
20486
  toProto() {
20487
20487
  const { submitter: t, chain_type: e } = this;
20488
- return Sf.fromPartial({
20488
+ return If.fromPartial({
20489
20489
  submitter: t,
20490
20490
  chainType: e
20491
20491
  });
@@ -20497,7 +20497,7 @@ class ce extends m {
20497
20497
  * @param proposer the address of the proposer
20498
20498
  * @param batch_info the information about batch submission
20499
20499
  * @param submission_interval the time interval at which checkpoints must be submitted
20500
- * @param finalization_period the minium time duration that must elapse before a withdrawal can be finalized
20500
+ * @param finalization_period the minimum time duration that must elapse before a withdrawal can be finalized
20501
20501
  * @param submission_start_height the first l2 block will be recorded on l1
20502
20502
  * @param oracle_enabled flag to enable oracle
20503
20503
  * @param metadata normally IBC channelID for permissioned IBC relayer
@@ -20616,7 +20616,7 @@ class ce extends m {
20616
20616
  oracle_enabled: i,
20617
20617
  metadata: c
20618
20618
  } = this;
20619
- return Bf.fromPartial({
20619
+ return Sf.fromPartial({
20620
20620
  challenger: t,
20621
20621
  proposer: e,
20622
20622
  batchInfo: r.toProto(),
@@ -21512,7 +21512,7 @@ class Cs extends m {
21512
21512
  return new Cs(l.fromProto(e.registrationFee));
21513
21513
  }
21514
21514
  toProto() {
21515
- return Ef.fromPartial({
21515
+ return Bf.fromPartial({
21516
21516
  registrationFee: this.registration_fee.toProto()
21517
21517
  });
21518
21518
  }
@@ -21634,7 +21634,7 @@ class me extends m {
21634
21634
  }
21635
21635
  toProto() {
21636
21636
  const { output_root: t, l1_block_number: e, l1_block_time: r, l2_block_number: o } = this;
21637
- return Uf.fromPartial({
21637
+ return Ef.fromPartial({
21638
21638
  outputRoot: Buffer.from(t, "base64"),
21639
21639
  l1BlockNumber: BigInt(e),
21640
21640
  l1BlockTime: r,
@@ -21686,7 +21686,7 @@ class Ea extends m {
21686
21686
  }
21687
21687
  toProto() {
21688
21688
  const { batch_info: t, output: e } = this;
21689
- return Cf.fromPartial({
21689
+ return Uf.fromPartial({
21690
21690
  batchInfo: t.toProto(),
21691
21691
  output: e.toProto()
21692
21692
  });
@@ -21754,7 +21754,7 @@ class ue extends m {
21754
21754
  }
21755
21755
  toProto() {
21756
21756
  const { bridge_id: t, bridge_addr: e, l1_chain_id: r, l1_client_id: o, bridge_config: s } = this;
21757
- return xf.fromPartial({
21757
+ return kf.fromPartial({
21758
21758
  bridgeId: BigInt(t),
21759
21759
  bridgeAddr: e,
21760
21760
  l1ChainId: r,
@@ -22008,7 +22008,7 @@ class $s extends m {
22008
22008
  fee_whitelist: i,
22009
22009
  hook_max_gas: c
22010
22010
  } = this;
22011
- return Mf.fromPartial({
22011
+ return xf.fromPartial({
22012
22012
  maxValidators: e,
22013
22013
  historicalEntries: r,
22014
22014
  minGasPrices: o.toProto(),
@@ -22139,7 +22139,7 @@ class da extends m {
22139
22139
  }
22140
22140
  toProto() {
22141
22141
  const { moniker: t, operator_address: e, consensus_pubkey: r, cons_power: o } = this;
22142
- return If.fromPartial({
22142
+ return Mf.fromPartial({
22143
22143
  moniker: t,
22144
22144
  operatorAddress: e,
22145
22145
  consensusPubkey: r.packAny(),
@@ -22245,7 +22245,7 @@ class Ns extends m {
22245
22245
  dilution_rate: o,
22246
22246
  release_enabled: s
22247
22247
  } = this;
22248
- return $f.fromPartial({
22248
+ return Cf.fromPartial({
22249
22249
  rewardDenom: t,
22250
22250
  dilutionPeriod: e.toProto(),
22251
22251
  releaseRate: r,
@@ -22465,7 +22465,7 @@ class Os extends m {
22465
22465
  slash_fraction_double_sign: o,
22466
22466
  slash_fraction_downtime: s
22467
22467
  } = this;
22468
- return Nf.fromPartial({
22468
+ return $f.fromPartial({
22469
22469
  signedBlocksWindow: BigInt(t),
22470
22470
  minSignedPerWindow: Buffer.from(e),
22471
22471
  downtimeJailDuration: r.toProto(),
@@ -22644,7 +22644,7 @@ class la extends m {
22644
22644
  tombstoned: s,
22645
22645
  missed_blocks_counter: n
22646
22646
  } = this;
22647
- return Of.fromPartial({
22647
+ return Nf.fromPartial({
22648
22648
  address: t,
22649
22649
  startHeight: BigInt(e),
22650
22650
  indexOffset: BigInt(r),
@@ -23066,7 +23066,7 @@ class Fs extends m {
23066
23066
  }
23067
23067
  toProto() {
23068
23068
  const { denom_creation_fee: e, denom_creation_gas_consume: r } = this;
23069
- return Ff.fromPartial({
23069
+ return Of.fromPartial({
23070
23070
  denomCreationFee: e.toProto(),
23071
23071
  denomCreationGasConsume: BigInt(r)
23072
23072
  });
@@ -24198,7 +24198,7 @@ var cl;
24198
24198
  }
24199
24199
  a.validate = t;
24200
24200
  })(cl || (cl = {}));
24201
- class Jv {
24201
+ class Gv {
24202
24202
  /**
24203
24203
  * MultiSignature constructor
24204
24204
  * public_keys order must be guaranteed
@@ -24245,7 +24245,7 @@ class Jv {
24245
24245
  );
24246
24246
  }
24247
24247
  }
24248
- class Xf extends m {
24248
+ class Yf extends m {
24249
24249
  /**
24250
24250
  * @param chain_id ID of blockchain to submit transaction to
24251
24251
  * @param account_number account number on blockchain
@@ -24404,14 +24404,14 @@ class fa {
24404
24404
  }
24405
24405
  toProto() {
24406
24406
  const { msg_index: t, log: e, events: r } = this;
24407
- return Tf.fromPartial({
24407
+ return Ff.fromPartial({
24408
24408
  msgIndex: t,
24409
24409
  log: e,
24410
24410
  events: r
24411
24411
  });
24412
24412
  }
24413
24413
  }
24414
- class Qf extends W {
24414
+ class Xf extends W {
24415
24415
  /**
24416
24416
  * Query the account info.
24417
24417
  * @param address address of account to look up
@@ -24438,7 +24438,7 @@ class Qf extends W {
24438
24438
  return this.c.get("/cosmos/auth/v1beta1/params", t).then((e) => _s.fromData(e.params));
24439
24439
  }
24440
24440
  }
24441
- class tg extends W {
24441
+ class Qf extends W {
24442
24442
  /**
24443
24443
  * Query the message authorization grants for a specific granter and grantee.
24444
24444
  * @param granter address of granter
@@ -24479,7 +24479,7 @@ class tg extends W {
24479
24479
  ]);
24480
24480
  }
24481
24481
  }
24482
- class eg extends W {
24482
+ class tg extends W {
24483
24483
  /**
24484
24484
  * Query the balance of an account by its address.
24485
24485
  * @param address address of account to look up
@@ -24518,7 +24518,7 @@ class eg extends W {
24518
24518
  return this.c.get("/cosmos/bank/v1beta1/params", t).then((e) => ws.fromData(e.params));
24519
24519
  }
24520
24520
  }
24521
- class rg extends W {
24521
+ class eg extends W {
24522
24522
  /**
24523
24523
  * Query a delegator's rewards.
24524
24524
  * @param delegator delegator's account address
@@ -24607,7 +24607,7 @@ class rg extends W {
24607
24607
  return this.c.get("/initia/distribution/v1/params", t).then((e) => Ps.fromData(e.params));
24608
24608
  }
24609
24609
  }
24610
- class og extends W {
24610
+ class rg extends W {
24611
24611
  /**
24612
24612
  * Query evidences of misbehavior (e.g. equivocation).
24613
24613
  */
@@ -24622,7 +24622,7 @@ class og extends W {
24622
24622
  return this.c.get(`/cosmos/evidence/v1beta1/evidence/${t}`, e).then((r) => en.fromData(r.evidence));
24623
24623
  }
24624
24624
  }
24625
- class sg extends W {
24625
+ class og extends W {
24626
24626
  /**
24627
24627
  * Query the module info of given contract address.
24628
24628
  * @param contract_addr contract address to look up
@@ -24689,7 +24689,7 @@ class sg extends W {
24689
24689
  return this.c.get("/minievm/evm/v1/params", t).then((e) => bs.fromData(e.params));
24690
24690
  }
24691
24691
  }
24692
- class ng extends W {
24692
+ class sg extends W {
24693
24693
  /**
24694
24694
  * Query all the grants for the given grantee address.
24695
24695
  * @param grantee grantee address to look up
@@ -24727,7 +24727,7 @@ class ng extends W {
24727
24727
  }));
24728
24728
  }
24729
24729
  }
24730
- class ag extends W {
24730
+ class ng extends W {
24731
24731
  /**
24732
24732
  * Query all the denoms that are allowed to be forwarded.
24733
24733
  */
@@ -24761,7 +24761,7 @@ class ag extends W {
24761
24761
  }));
24762
24762
  }
24763
24763
  }
24764
- class ig extends W {
24764
+ class ag extends W {
24765
24765
  /**
24766
24766
  * Query all proposals.
24767
24767
  */
@@ -24815,7 +24815,7 @@ class ig extends W {
24815
24815
  ]);
24816
24816
  }
24817
24817
  }
24818
- class cg extends W {
24818
+ class ig extends W {
24819
24819
  /**
24820
24820
  * Query the group info based on group id.
24821
24821
  * @param group_id the unique ID of the group
@@ -24923,7 +24923,7 @@ class cg extends W {
24923
24923
  return this.c.get("/cosmos/group/v1/groups", t).then((e) => [e.groups.map(oo.fromData), e.pagination]);
24924
24924
  }
24925
24925
  }
24926
- class mg extends W {
24926
+ class cg extends W {
24927
24927
  /**
24928
24928
  * Query all the IBC channels of a chain.
24929
24929
  */
@@ -25051,7 +25051,7 @@ class mg extends W {
25051
25051
  );
25052
25052
  }
25053
25053
  }
25054
- class ug extends W {
25054
+ class mg extends W {
25055
25055
  /**
25056
25056
  * Query all the ACL entries.
25057
25057
  */
@@ -25072,7 +25072,7 @@ class ug extends W {
25072
25072
  return this.c.get("/initia/ibchooks/v1/params", t).then((e) => Ms.fromData(e.params));
25073
25073
  }
25074
25074
  }
25075
- class dg extends W {
25075
+ class ug extends W {
25076
25076
  /**
25077
25077
  * Query a denomination trace information.
25078
25078
  * @param hash hash (in hex format) of the class id trace information
@@ -25111,7 +25111,7 @@ class dg extends W {
25111
25111
  return this.c.get("/ibc/apps/nft_transfer/v1/params", t).then((e) => Is.fromData(e.params));
25112
25112
  }
25113
25113
  }
25114
- class lg extends W {
25114
+ class dg extends W {
25115
25115
  /**
25116
25116
  * Query a denomination trace information.
25117
25117
  * @param hash hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information
@@ -25150,7 +25150,7 @@ class lg extends W {
25150
25150
  ).then((o) => o.escrow_address);
25151
25151
  }
25152
25152
  }
25153
- class pg extends W {
25153
+ class lg extends W {
25154
25154
  /**
25155
25155
  * Query all the channel states.
25156
25156
  */
@@ -25166,7 +25166,7 @@ class pg extends W {
25166
25166
  return this.c.get(`/ibc/apps/perm/v1/channel_states/${t}/${e}`).then((r) => r.channel_state);
25167
25167
  }
25168
25168
  }
25169
- class hg extends W {
25169
+ class pg extends W {
25170
25170
  /**
25171
25171
  * Query the interchain account for given owner address on a given connection pair.
25172
25172
  * @param owner owner address
@@ -25178,7 +25178,7 @@ class hg extends W {
25178
25178
  ).then((r) => r.interchain_account_address);
25179
25179
  }
25180
25180
  }
25181
- class fg extends W {
25181
+ class hg extends W {
25182
25182
  /**
25183
25183
  * Query the full market map stored in the marketmap module.
25184
25184
  */
@@ -25220,7 +25220,7 @@ class fg extends W {
25220
25220
  return this.c.get("/connect/marketmap/v2/params", t).then((e) => Ss.fromData(e.params));
25221
25221
  }
25222
25222
  }
25223
- class gg extends W {
25223
+ class fg extends W {
25224
25224
  /**
25225
25225
  * Query the module infos.
25226
25226
  * @param address the owner address of the modules to query
@@ -25390,7 +25390,7 @@ class gg extends W {
25390
25390
  return this.c.get("/initia/move/v1/params", t).then((e) => Bs.fromData(e.params));
25391
25391
  }
25392
25392
  }
25393
- class yg extends W {
25393
+ class gg extends W {
25394
25394
  /**
25395
25395
  * Query all delegations, filtered by delegator, validator, or both.
25396
25396
  * At least one of the parameters must be defined.
@@ -25496,6 +25496,15 @@ class yg extends W {
25496
25496
  async bondedValidators(t, e = {}) {
25497
25497
  return this.c.get(`/initia/mstaking/v1/delegators/${t}/validators`, e).then((r) => [r.validators.map(ot.fromData), r.pagination]);
25498
25498
  }
25499
+ /**
25500
+ * Query sum of all the delegations' balance of a delegator.
25501
+ */
25502
+ async totalDelegationBalance(t, e = {}) {
25503
+ return this.c.get(
25504
+ `/initia/mstaking/v1/delegators/${t}/total_delegation_balance`,
25505
+ e
25506
+ ).then((r) => l.fromData(r.balance));
25507
+ }
25499
25508
  /**
25500
25509
  * Query all current registered validators, including validators that are not currently in the validating set.
25501
25510
  */
@@ -25525,7 +25534,7 @@ class yg extends W {
25525
25534
  return this.c.get("/initia/mstaking/v1/params", t).then((e) => Us.fromData(e.params));
25526
25535
  }
25527
25536
  }
25528
- class _g extends W {
25537
+ class yg extends W {
25529
25538
  /**
25530
25539
  * Query all validators.
25531
25540
  */
@@ -25571,7 +25580,7 @@ class _g extends W {
25571
25580
  return this.c.get("/opinit/opchild/v1/params", t).then((e) => $s.fromData(e.params));
25572
25581
  }
25573
25582
  }
25574
- class vg extends W {
25583
+ class _g extends W {
25575
25584
  /**
25576
25585
  * Query all bridge infos.
25577
25586
  */
@@ -25691,7 +25700,7 @@ class vg extends W {
25691
25700
  return this.c.get("/opinit/ophost/v1/params", t).then((e) => Cs.fromData(e.params));
25692
25701
  }
25693
25702
  }
25694
- class wg extends W {
25703
+ class vg extends W {
25695
25704
  /**
25696
25705
  * Query all the currency pairs the oracle module is tracking price-data for.
25697
25706
  */
@@ -25709,7 +25718,7 @@ class wg extends W {
25709
25718
  }).then((r) => Ba.fromData(r.price));
25710
25719
  }
25711
25720
  }
25712
- class Pg extends W {
25721
+ class wg extends W {
25713
25722
  /**
25714
25723
  * Query the last release rate dilution timestamp.
25715
25724
  */
@@ -25729,7 +25738,7 @@ class Pg extends W {
25729
25738
  return this.c.get("/initia/reward/v1/params", t).then((e) => Ns.fromData(e.params));
25730
25739
  }
25731
25740
  }
25732
- class bg extends W {
25741
+ class Pg extends W {
25733
25742
  /**
25734
25743
  * Query the signing infos of all validators.
25735
25744
  */
@@ -25750,7 +25759,7 @@ class bg extends W {
25750
25759
  return this.c.get("/cosmos/slashing/v1beta1/params", t).then((e) => Os.fromData(e.params));
25751
25760
  }
25752
25761
  }
25753
- class Ag extends W {
25762
+ class bg extends W {
25754
25763
  /**
25755
25764
  * Query the node's information.
25756
25765
  */
@@ -25789,7 +25798,7 @@ class Ag extends W {
25789
25798
  return this.c.getRaw(r, e);
25790
25799
  }
25791
25800
  }
25792
- class Dg extends W {
25801
+ class Ag extends W {
25793
25802
  /**
25794
25803
  * Query the authority metadata for a specific denom.
25795
25804
  * @param denom denom to query
@@ -25825,7 +25834,7 @@ const ml = (a) => qt.bytes(32, a).transform({
25825
25834
  return Buffer.from(t, "hex");
25826
25835
  },
25827
25836
  output: (t) => `0x${Buffer.from(t).toString("hex")}`
25828
- }), kg = {
25837
+ }), Dg = {
25829
25838
  /**
25830
25839
  * Creates a BcsType that can be used to read and write an address.
25831
25840
  * @example
@@ -25900,9 +25909,9 @@ const ml = (a) => qt.bytes(32, a).transform({
25900
25909
  return O(e).div(new dt("1000000000000000000")).toNumber();
25901
25910
  }
25902
25911
  })
25903
- }, Zv = {
25912
+ }, Jv = {
25904
25913
  ...qt,
25905
- ...kg
25914
+ ...Dg
25906
25915
  };
25907
25916
  function ul(a) {
25908
25917
  const t = [];
@@ -25916,7 +25925,7 @@ function dl(a) {
25916
25925
  t = t * 256n + BigInt(a.pop());
25917
25926
  return t;
25918
25927
  }
25919
- function Yv(a) {
25928
+ function Zv(a) {
25920
25929
  return a.code !== void 0 && a.code !== 0 && a.code !== "0";
25921
25930
  }
25922
25931
  class mi {
@@ -25994,6 +26003,7 @@ class xn extends W {
25994
26003
  * @param options options for fee estimation
25995
26004
  */
25996
26005
  async estimateFee(t, e) {
26006
+ this.rest.config.gasPrices || (this.rest.config.gasPrices = await this.rest.gasPrices());
25997
26007
  const r = e.gasPrices ?? this.rest.config.gasPrices, o = e.gasAdjustment ?? this.rest.config.gasAdjustment, s = e.feeDenoms ?? ["uinit"];
25998
26008
  let n = e.gas, i;
25999
26009
  if (r && (i = new l(r), s)) {
@@ -26203,7 +26213,7 @@ class xn extends W {
26203
26213
  return this.c.get(`/initia/tx/v1/gas_prices/${t}`, e).then((r) => I.fromData(r.gas_price));
26204
26214
  }
26205
26215
  }
26206
- class xg extends W {
26216
+ class kg extends W {
26207
26217
  /**
26208
26218
  * Query a previously applied upgrade plan by its name.
26209
26219
  * It returns the height of the plan. If there's no plan with given name, it returns 0.
@@ -26227,7 +26237,7 @@ class xg extends W {
26227
26237
  );
26228
26238
  }
26229
26239
  }
26230
- class Mg extends W {
26240
+ class xg extends W {
26231
26241
  /**
26232
26242
  * Query the contract metadata.
26233
26243
  * @param address the address of the contract to query
@@ -26250,7 +26260,7 @@ class Mg extends W {
26250
26260
  async contractHistory(t, e = {}) {
26251
26261
  return this.c.get(`/cosmwasm/wasm/v1/contract/${t}/history`, e).then((r) => [
26252
26262
  r.entries.map((o) => ({
26253
- operation: Rp(o.operation),
26263
+ operation: Tp(o.operation),
26254
26264
  code_id: parseInt(o.code_id),
26255
26265
  updated: Mn.fromData(o.updated),
26256
26266
  msg: o.msg
@@ -26305,7 +26315,7 @@ class Mg extends W {
26305
26315
  ]);
26306
26316
  }
26307
26317
  /**
26308
- * Query the binary code and metadata for a singe wasm code.
26318
+ * Query the binary code and metadata for a single wasm code.
26309
26319
  * @param code_id unique code identifier
26310
26320
  */
26311
26321
  async codeInfo(t, e = {}) {
@@ -26341,7 +26351,7 @@ class Mg extends W {
26341
26351
  return this.c.get(`/cosmwasm/wasm/v1/contracts/creator/${t}`, e).then((r) => [r.contract_addresses, r.pagination]);
26342
26352
  }
26343
26353
  }
26344
- class Ig {
26354
+ class Mg {
26345
26355
  constructor(t, e) {
26346
26356
  _(this, "accAddress");
26347
26357
  /**
@@ -26394,14 +26404,10 @@ class Ig {
26394
26404
  });
26395
26405
  }
26396
26406
  }
26397
- const Sg = {
26407
+ const Ig = {
26398
26408
  gasAdjustment: "1.75"
26399
- }, ll = {
26400
- default: {
26401
- uinit: 0.15
26402
- }
26403
26409
  };
26404
- class Bg {
26410
+ class Sg {
26405
26411
  /**
26406
26412
  * @param config REST configuration
26407
26413
  */
@@ -26441,21 +26447,36 @@ class Bg {
26441
26447
  _(this, "upgrade");
26442
26448
  _(this, "wasm");
26443
26449
  this.URL = t, this.config = {
26444
- ...Sg,
26445
- gasPrices: ((e == null ? void 0 : e.chainId) && ll[e.chainId]) ?? ll.default,
26450
+ ...Ig,
26446
26451
  ...e
26447
- }, this.apiRequester = r ?? new Kf(this.URL), this.auction = new jf(this.apiRequester), this.auth = new Qf(this.apiRequester), this.authz = new tg(this.apiRequester), this.bank = new eg(this.apiRequester), this.distribution = new rg(this.apiRequester), this.evidence = new og(this.apiRequester), this.evm = new sg(this.apiRequester), this.feeGrant = new ng(this.apiRequester), this.forwarding = new ag(this.apiRequester), this.gov = new ig(this.apiRequester), this.group = new cg(this.apiRequester), this.ibc = new mg(this.apiRequester), this.ibcHooks = new ug(this.apiRequester), this.ibcNft = new dg(this.apiRequester), this.ibcTransfer = new lg(this.apiRequester), this.ibcPerm = new pg(this.apiRequester), this.interTx = new hg(this.apiRequester), this.marketmap = new fg(this.apiRequester), this.move = new gg(this.apiRequester), this.mstaking = new yg(this.apiRequester), this.opchild = new _g(this.apiRequester), this.ophost = new vg(this.apiRequester), this.oracle = new wg(this.apiRequester), this.reward = new Pg(this.apiRequester), this.slashing = new bg(this.apiRequester), this.tendermint = new Ag(this.apiRequester), this.tokenfactory = new Dg(this.apiRequester), this.tx = new xn(this), this.upgrade = new xg(this.apiRequester), this.wasm = new Mg(this.apiRequester);
26452
+ }, this.apiRequester = r ?? new Vf(this.URL), this.auction = new Wf(this.apiRequester), this.auth = new Xf(this.apiRequester), this.authz = new Qf(this.apiRequester), this.bank = new tg(this.apiRequester), this.distribution = new eg(this.apiRequester), this.evidence = new rg(this.apiRequester), this.evm = new og(this.apiRequester), this.feeGrant = new sg(this.apiRequester), this.forwarding = new ng(this.apiRequester), this.gov = new ag(this.apiRequester), this.group = new ig(this.apiRequester), this.ibc = new cg(this.apiRequester), this.ibcHooks = new mg(this.apiRequester), this.ibcNft = new ug(this.apiRequester), this.ibcTransfer = new dg(this.apiRequester), this.ibcPerm = new lg(this.apiRequester), this.interTx = new pg(this.apiRequester), this.marketmap = new hg(this.apiRequester), this.move = new fg(this.apiRequester), this.mstaking = new gg(this.apiRequester), this.opchild = new yg(this.apiRequester), this.ophost = new _g(this.apiRequester), this.oracle = new vg(this.apiRequester), this.reward = new wg(this.apiRequester), this.slashing = new Pg(this.apiRequester), this.tendermint = new bg(this.apiRequester), this.tokenfactory = new Ag(this.apiRequester), this.tx = new xn(this), this.upgrade = new kg(this.apiRequester), this.wasm = new xg(this.apiRequester);
26448
26453
  }
26449
26454
  /**
26450
26455
  * Creates a new wallet with the Key.
26451
26456
  */
26452
26457
  wallet(t) {
26453
- return new Ig(this, t);
26458
+ return new Mg(this, t);
26459
+ }
26460
+ async gasPrices() {
26461
+ var t;
26462
+ try {
26463
+ return ((t = (await this.opchild.parameters()).min_gas_prices.toArray()[0]) == null ? void 0 : t.toString()) ?? "0uinit";
26464
+ } catch {
26465
+ try {
26466
+ const e = await this.move.parameters();
26467
+ return new I(
26468
+ e.base_denom,
26469
+ e.base_min_gas_price
26470
+ ).toString();
26471
+ } catch {
26472
+ return;
26473
+ }
26474
+ }
26454
26475
  }
26455
26476
  }
26456
- class Xv extends Bg {
26477
+ class Yv extends Sg {
26457
26478
  }
26458
- function Eg(a) {
26479
+ function Bg(a) {
26459
26480
  if (a.__esModule) return a;
26460
26481
  var t = a.default;
26461
26482
  if (typeof t == "function") {
@@ -26474,7 +26495,7 @@ function Eg(a) {
26474
26495
  });
26475
26496
  }), e;
26476
26497
  }
26477
- var hd = { exports: {} }, pa = typeof Reflect == "object" ? Reflect : null, pl = pa && typeof pa.apply == "function" ? pa.apply : function(t, e, r) {
26498
+ var hd = { exports: {} }, pa = typeof Reflect == "object" ? Reflect : null, ll = pa && typeof pa.apply == "function" ? pa.apply : function(t, e, r) {
26478
26499
  return Function.prototype.apply.call(t, e, r);
26479
26500
  }, ti;
26480
26501
  pa && typeof pa.ownKeys == "function" ? ti = pa.ownKeys : Object.getOwnPropertySymbols ? ti = function(t) {
@@ -26482,22 +26503,22 @@ pa && typeof pa.ownKeys == "function" ? ti = pa.ownKeys : Object.getOwnPropertyS
26482
26503
  } : ti = function(t) {
26483
26504
  return Object.getOwnPropertyNames(t);
26484
26505
  };
26485
- function Ug(a) {
26506
+ function Eg(a) {
26486
26507
  console && console.warn && console.warn(a);
26487
26508
  }
26488
- var Il = Number.isNaN || function(t) {
26509
+ var Ml = Number.isNaN || function(t) {
26489
26510
  return t !== t;
26490
26511
  };
26491
26512
  function Y() {
26492
26513
  Y.init.call(this);
26493
26514
  }
26494
26515
  hd.exports = Y;
26495
- hd.exports.once = Og;
26516
+ hd.exports.once = Ng;
26496
26517
  Y.EventEmitter = Y;
26497
26518
  Y.prototype._events = void 0;
26498
26519
  Y.prototype._eventsCount = 0;
26499
26520
  Y.prototype._maxListeners = void 0;
26500
- var hl = 10;
26521
+ var pl = 10;
26501
26522
  function li(a) {
26502
26523
  if (typeof a != "function")
26503
26524
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof a);
@@ -26505,27 +26526,27 @@ function li(a) {
26505
26526
  Object.defineProperty(Y, "defaultMaxListeners", {
26506
26527
  enumerable: !0,
26507
26528
  get: function() {
26508
- return hl;
26529
+ return pl;
26509
26530
  },
26510
26531
  set: function(a) {
26511
- if (typeof a != "number" || a < 0 || Il(a))
26532
+ if (typeof a != "number" || a < 0 || Ml(a))
26512
26533
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + ".");
26513
- hl = a;
26534
+ pl = a;
26514
26535
  }
26515
26536
  });
26516
26537
  Y.init = function() {
26517
26538
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
26518
26539
  };
26519
26540
  Y.prototype.setMaxListeners = function(t) {
26520
- if (typeof t != "number" || t < 0 || Il(t))
26541
+ if (typeof t != "number" || t < 0 || Ml(t))
26521
26542
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
26522
26543
  return this._maxListeners = t, this;
26523
26544
  };
26524
- function Sl(a) {
26545
+ function Il(a) {
26525
26546
  return a._maxListeners === void 0 ? Y.defaultMaxListeners : a._maxListeners;
26526
26547
  }
26527
26548
  Y.prototype.getMaxListeners = function() {
26528
- return Sl(this);
26549
+ return Il(this);
26529
26550
  };
26530
26551
  Y.prototype.emit = function(t) {
26531
26552
  for (var e = [], r = 1; r < arguments.length; r++) e.push(arguments[r]);
@@ -26545,13 +26566,13 @@ Y.prototype.emit = function(t) {
26545
26566
  if (c === void 0)
26546
26567
  return !1;
26547
26568
  if (typeof c == "function")
26548
- pl(c, this, e);
26569
+ ll(c, this, e);
26549
26570
  else
26550
- for (var d = c.length, g = $l(c, d), r = 0; r < d; ++r)
26551
- pl(g[r], this, e);
26571
+ for (var d = c.length, g = Cl(c, d), r = 0; r < d; ++r)
26572
+ ll(g[r], this, e);
26552
26573
  return !0;
26553
26574
  };
26554
- function Bl(a, t, e, r) {
26575
+ function Sl(a, t, e, r) {
26555
26576
  var o, s, n;
26556
26577
  if (li(e), s = a._events, s === void 0 ? (s = a._events = /* @__PURE__ */ Object.create(null), a._eventsCount = 0) : (s.newListener !== void 0 && (a.emit(
26557
26578
  "newListener",
@@ -26559,33 +26580,33 @@ function Bl(a, t, e, r) {
26559
26580
  e.listener ? e.listener : e
26560
26581
  ), s = a._events), n = s[t]), n === void 0)
26561
26582
  n = s[t] = e, ++a._eventsCount;
26562
- else if (typeof n == "function" ? n = s[t] = r ? [e, n] : [n, e] : r ? n.unshift(e) : n.push(e), o = Sl(a), o > 0 && n.length > o && !n.warned) {
26583
+ else if (typeof n == "function" ? n = s[t] = r ? [e, n] : [n, e] : r ? n.unshift(e) : n.push(e), o = Il(a), o > 0 && n.length > o && !n.warned) {
26563
26584
  n.warned = !0;
26564
26585
  var i = new Error("Possible EventEmitter memory leak detected. " + n.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
26565
- i.name = "MaxListenersExceededWarning", i.emitter = a, i.type = t, i.count = n.length, Ug(i);
26586
+ i.name = "MaxListenersExceededWarning", i.emitter = a, i.type = t, i.count = n.length, Eg(i);
26566
26587
  }
26567
26588
  return a;
26568
26589
  }
26569
26590
  Y.prototype.addListener = function(t, e) {
26570
- return Bl(this, t, e, !1);
26591
+ return Sl(this, t, e, !1);
26571
26592
  };
26572
26593
  Y.prototype.on = Y.prototype.addListener;
26573
26594
  Y.prototype.prependListener = function(t, e) {
26574
- return Bl(this, t, e, !0);
26595
+ return Sl(this, t, e, !0);
26575
26596
  };
26576
- function Cg() {
26597
+ function Ug() {
26577
26598
  if (!this.fired)
26578
26599
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
26579
26600
  }
26580
- function El(a, t, e) {
26581
- var r = { fired: !1, wrapFn: void 0, target: a, type: t, listener: e }, o = Cg.bind(r);
26601
+ function Bl(a, t, e) {
26602
+ var r = { fired: !1, wrapFn: void 0, target: a, type: t, listener: e }, o = Ug.bind(r);
26582
26603
  return o.listener = e, r.wrapFn = o, o;
26583
26604
  }
26584
26605
  Y.prototype.once = function(t, e) {
26585
- return li(e), this.on(t, El(this, t, e)), this;
26606
+ return li(e), this.on(t, Bl(this, t, e)), this;
26586
26607
  };
26587
26608
  Y.prototype.prependOnceListener = function(t, e) {
26588
- return li(e), this.prependListener(t, El(this, t, e)), this;
26609
+ return li(e), this.prependListener(t, Bl(this, t, e)), this;
26589
26610
  };
26590
26611
  Y.prototype.removeListener = function(t, e) {
26591
26612
  var r, o, s, n, i;
@@ -26603,7 +26624,7 @@ Y.prototype.removeListener = function(t, e) {
26603
26624
  }
26604
26625
  if (s < 0)
26605
26626
  return this;
26606
- s === 0 ? r.shift() : $g(r, s), r.length === 1 && (o[t] = r[0]), o.removeListener !== void 0 && this.emit("removeListener", t, i || e);
26627
+ s === 0 ? r.shift() : Cg(r, s), r.length === 1 && (o[t] = r[0]), o.removeListener !== void 0 && this.emit("removeListener", t, i || e);
26607
26628
  }
26608
26629
  return this;
26609
26630
  };
@@ -26627,24 +26648,24 @@ Y.prototype.removeAllListeners = function(t) {
26627
26648
  this.removeListener(t, e[o]);
26628
26649
  return this;
26629
26650
  };
26630
- function Ul(a, t, e) {
26651
+ function El(a, t, e) {
26631
26652
  var r = a._events;
26632
26653
  if (r === void 0)
26633
26654
  return [];
26634
26655
  var o = r[t];
26635
- return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? Ng(o) : $l(o, o.length);
26656
+ return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? $g(o) : Cl(o, o.length);
26636
26657
  }
26637
26658
  Y.prototype.listeners = function(t) {
26638
- return Ul(this, t, !0);
26659
+ return El(this, t, !0);
26639
26660
  };
26640
26661
  Y.prototype.rawListeners = function(t) {
26641
- return Ul(this, t, !1);
26662
+ return El(this, t, !1);
26642
26663
  };
26643
26664
  Y.listenerCount = function(a, t) {
26644
- return typeof a.listenerCount == "function" ? a.listenerCount(t) : Cl.call(a, t);
26665
+ return typeof a.listenerCount == "function" ? a.listenerCount(t) : Ul.call(a, t);
26645
26666
  };
26646
- Y.prototype.listenerCount = Cl;
26647
- function Cl(a) {
26667
+ Y.prototype.listenerCount = Ul;
26668
+ function Ul(a) {
26648
26669
  var t = this._events;
26649
26670
  if (t !== void 0) {
26650
26671
  var e = t[a];
@@ -26658,22 +26679,22 @@ function Cl(a) {
26658
26679
  Y.prototype.eventNames = function() {
26659
26680
  return this._eventsCount > 0 ? ti(this._events) : [];
26660
26681
  };
26661
- function $l(a, t) {
26682
+ function Cl(a, t) {
26662
26683
  for (var e = new Array(t), r = 0; r < t; ++r)
26663
26684
  e[r] = a[r];
26664
26685
  return e;
26665
26686
  }
26666
- function $g(a, t) {
26687
+ function Cg(a, t) {
26667
26688
  for (; t + 1 < a.length; t++)
26668
26689
  a[t] = a[t + 1];
26669
26690
  a.pop();
26670
26691
  }
26671
- function Ng(a) {
26692
+ function $g(a) {
26672
26693
  for (var t = new Array(a.length), e = 0; e < t.length; ++e)
26673
26694
  t[e] = a[e].listener || a[e];
26674
26695
  return t;
26675
26696
  }
26676
- function Og(a, t) {
26697
+ function Ng(a, t) {
26677
26698
  return new Promise(function(e, r) {
26678
26699
  function o(n) {
26679
26700
  a.removeListener(t, s), r(n);
@@ -26681,13 +26702,13 @@ function Og(a, t) {
26681
26702
  function s() {
26682
26703
  typeof a.removeListener == "function" && a.removeListener("error", o), e([].slice.call(arguments));
26683
26704
  }
26684
- Nl(a, t, s, { once: !0 }), t !== "error" && Fg(a, o, { once: !0 });
26705
+ $l(a, t, s, { once: !0 }), t !== "error" && Og(a, o, { once: !0 });
26685
26706
  });
26686
26707
  }
26687
- function Fg(a, t, e) {
26688
- typeof a.on == "function" && Nl(a, "error", t, e);
26708
+ function Og(a, t, e) {
26709
+ typeof a.on == "function" && $l(a, "error", t, e);
26689
26710
  }
26690
- function Nl(a, t, e, r) {
26711
+ function $l(a, t, e, r) {
26691
26712
  if (typeof a.on == "function")
26692
26713
  r.once ? a.once(t, e) : a.on(t, e);
26693
26714
  else if (typeof a.addEventListener == "function")
@@ -26697,9 +26718,9 @@ function Nl(a, t, e, r) {
26697
26718
  else
26698
26719
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a);
26699
26720
  }
26700
- var Tg = hd.exports;
26701
- const fl = (a) => a.replace(/'/g, "\\'");
26702
- function Rg(a) {
26721
+ var Fg = hd.exports;
26722
+ const hl = (a) => a.replace(/'/g, "\\'");
26723
+ function Tg(a) {
26703
26724
  const t = [];
26704
26725
  for (const e of Object.keys(a)) {
26705
26726
  let r;
@@ -26713,7 +26734,7 @@ function Rg(a) {
26713
26734
  typeof o[1] != "number" ? r = `${e}${o[0]}${o[1].toISOString()}` : r = `${e}${o[0]}${o[1]}`;
26714
26735
  break;
26715
26736
  case "CONTAINS":
26716
- r = `${e} CONTAINS '${fl(o[1])}'`;
26737
+ r = `${e} CONTAINS '${hl(o[1])}'`;
26717
26738
  break;
26718
26739
  case "EXISTS":
26719
26740
  r = `${e} EXISTS`;
@@ -26725,7 +26746,7 @@ function Rg(a) {
26725
26746
  r = `${e}=${o}`;
26726
26747
  break;
26727
26748
  case "string":
26728
- r = `${e}='${fl(o)}'`;
26749
+ r = `${e}='${hl(o)}'`;
26729
26750
  break;
26730
26751
  default:
26731
26752
  r = `${e}=${o.toISOString()}`;
@@ -26734,7 +26755,7 @@ function Rg(a) {
26734
26755
  }
26735
26756
  return t.join(" AND ");
26736
26757
  }
26737
- class Qv extends Tg.EventEmitter {
26758
+ class Xv extends Fg.EventEmitter {
26738
26759
  /**
26739
26760
  * WebSocketClient constructor
26740
26761
  * @param URL the websocket endpoint URL on the Tendermint RPC server
@@ -26760,7 +26781,7 @@ class Qv extends Tg.EventEmitter {
26760
26781
  this.shouldAttemptReconnect = !1, this.reconnectTimeoutId && clearTimeout(this.reconnectTimeoutId), this.socket && this.socket.close();
26761
26782
  }
26762
26783
  start() {
26763
- this.socket = new Rf(this.URL), this.socket.onopen = this.onOpen.bind(this), this.socket.onmessage = this.onMessage.bind(this), this.socket.onclose = this.onClose.bind(this), this.socket.onerror = () => {
26784
+ this.socket = new Tf(this.URL), this.socket.onopen = this.onOpen.bind(this), this.socket.onmessage = this.onMessage.bind(this), this.socket.onclose = this.onClose.bind(this), this.socket.onerror = () => {
26764
26785
  };
26765
26786
  }
26766
26787
  onOpen() {
@@ -26795,7 +26816,7 @@ class Qv extends Tg.EventEmitter {
26795
26816
  }, this.reconnectInterval)) : this.emit("destroyed");
26796
26817
  }
26797
26818
  subscribe(e, r, o) {
26798
- this.queryParams = Rg({
26819
+ this.queryParams = Tg({
26799
26820
  "tm.event": e,
26800
26821
  ...r
26801
26822
  }), this.callback = o;
@@ -26805,10 +26826,10 @@ class Qv extends Tg.EventEmitter {
26805
26826
  this.subscribe("Tx", e, o);
26806
26827
  }
26807
26828
  }
26808
- const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26829
+ const Rg = {}, Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26809
26830
  __proto__: null,
26810
- default: Lg
26811
- }, Symbol.toStringTag, { value: "Module" })), Fa = 85, gl = 250, tw = "CSM", Ta = {
26831
+ default: Rg
26832
+ }, Symbol.toStringTag, { value: "Module" })), Fa = 85, fl = 250, Qv = "CSM", Ta = {
26812
26833
  GET_VERSION: 0,
26813
26834
  INS_PUBLIC_KEY_SECP256K1: 1,
26814
26835
  // Obsolete
@@ -26818,12 +26839,12 @@ const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
26818
26839
  INIT: 0,
26819
26840
  ADD: 1,
26820
26841
  LAST: 2
26821
- }, Ol = {
26842
+ }, Nl = {
26822
26843
  ONLY_RETRIEVE: 0,
26823
26844
  SHOW_ADDRESS_IN_DEVICE: 1
26824
26845
  }, ga = {
26825
26846
  NoError: 36864
26826
- }, yl = {
26847
+ }, gl = {
26827
26848
  1: "U2F: Unknown",
26828
26849
  2: "U2F: Bad request",
26829
26850
  3: "U2F: Configuration unsupported",
@@ -26849,14 +26870,14 @@ const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
26849
26870
  28417: "Sign/verify error"
26850
26871
  };
26851
26872
  function gn(a) {
26852
- return a in yl ? yl[a] : `Unknown Status Code: ${a}`;
26873
+ return a in gl ? gl[a] : `Unknown Status Code: ${a}`;
26853
26874
  }
26854
- function zg(a) {
26875
+ function Hg(a) {
26855
26876
  return typeof a == "object" && a !== null && !(a instanceof Array) && !(a instanceof Date);
26856
26877
  }
26857
26878
  function Hs(a) {
26858
26879
  if (a) {
26859
- if (zg(a)) {
26880
+ if (Hg(a)) {
26860
26881
  if (Object.prototype.hasOwnProperty.call(a, "statusCode"))
26861
26882
  return {
26862
26883
  return_code: a.statusCode,
@@ -26885,7 +26906,7 @@ function ei(a) {
26885
26906
  const t = Buffer.alloc(20);
26886
26907
  return t.writeUInt32LE(2147483648 + a[0], 0), t.writeUInt32LE(2147483648 + a[1], 4), t.writeUInt32LE(2147483648 + a[2], 8), t.writeUInt32LE(a[3], 12), t.writeUInt32LE(a[4], 16), t;
26887
26908
  }
26888
- async function qg(a) {
26909
+ async function zg(a) {
26889
26910
  return a.send(Fa, Ta.GET_VERSION, 0, 0).then((t) => {
26890
26911
  const e = t.slice(-2), r = e[0] * 256 + e[1];
26891
26912
  let o = 0;
@@ -26902,7 +26923,7 @@ async function qg(a) {
26902
26923
  };
26903
26924
  }).catch(Hs);
26904
26925
  }
26905
- async function Vg(a) {
26926
+ async function qg(a) {
26906
26927
  return a.send(176, 1, 0, 0).then((t) => {
26907
26928
  const e = t.slice(-2);
26908
26929
  let r = e[0] * 256 + e[1], o, s = "err", n = "err", i = 0, c = 0;
@@ -26937,7 +26958,7 @@ async function Vg(a) {
26937
26958
  };
26938
26959
  }).catch(Hs);
26939
26960
  }
26940
- async function Kg(a) {
26961
+ async function Vg(a) {
26941
26962
  return a.send(224, 1, 0, 0, Buffer.from([]), [ga.NoError, 28160]).then((t) => {
26942
26963
  const e = t.slice(-2), r = e[0] * 256 + e[1];
26943
26964
  if (r === 28160)
@@ -26971,7 +26992,7 @@ async function Kg(a) {
26971
26992
  };
26972
26993
  }).catch(Hs);
26973
26994
  }
26974
- async function Wg(a, t) {
26995
+ async function Kg(a, t) {
26975
26996
  return a.send(Fa, Ta.GET_ADDR_SECP256K1, 0, 0, t, [ga.NoError]).then((e) => {
26976
26997
  const r = e.slice(-2), o = r[0] * 256 + r[1], s = e ? Buffer.from(e.slice(0, 33)) : null;
26977
26998
  return {
@@ -26982,8 +27003,8 @@ async function Wg(a, t) {
26982
27003
  };
26983
27004
  }).catch(Hs);
26984
27005
  }
26985
- async function jg(a, t) {
26986
- return a.send(Fa, Ta.GET_ADDR_SECP256K1, Ol.ONLY_RETRIEVE, 0, t, [
27006
+ async function Wg(a, t) {
27007
+ return a.send(Fa, Ta.GET_ADDR_SECP256K1, Nl.ONLY_RETRIEVE, 0, t, [
26987
27008
  ga.NoError
26988
27009
  ]).then((e) => {
26989
27010
  const r = e.slice(-2), o = r[0] * 256 + r[1], s = Buffer.from(e.slice(0, 33));
@@ -26995,11 +27016,11 @@ async function jg(a, t) {
26995
27016
  };
26996
27017
  }).catch(Hs);
26997
27018
  }
26998
- async function Gg(a, t) {
27019
+ async function jg(a, t) {
26999
27020
  return a.send(
27000
27021
  Fa,
27001
27022
  Ta.GET_ADDR_SECP256K1,
27002
- Ol.SHOW_ADDRESS_IN_DEVICE,
27023
+ Nl.SHOW_ADDRESS_IN_DEVICE,
27003
27024
  0,
27004
27025
  t,
27005
27026
  [ga.NoError]
@@ -27013,19 +27034,19 @@ async function Gg(a, t) {
27013
27034
  };
27014
27035
  }).catch(Hs);
27015
27036
  }
27016
- function Jg(a, t) {
27037
+ function Gg(a, t) {
27017
27038
  const e = ei(a), r = [];
27018
27039
  if (e instanceof Buffer) {
27019
27040
  r.push(e);
27020
27041
  const o = Buffer.from(t);
27021
- for (let s = 0; s < o.length; s += gl) {
27022
- let n = s + gl;
27042
+ for (let s = 0; s < o.length; s += fl) {
27043
+ let n = s + fl;
27023
27044
  s > o.length && (n = o.length), r.push(o.slice(s, n));
27024
27045
  }
27025
27046
  }
27026
27047
  return r;
27027
27048
  }
27028
- async function _l(a, t, e, r) {
27049
+ async function yl(a, t, e, r) {
27029
27050
  let o = ed.ADD;
27030
27051
  return t === 1 && (o = ed.INIT), t === e && (o = ed.LAST), a.send(Fa, Ta.SIGN_SECP256K1, o, 0, r, [
27031
27052
  ga.NoError,
@@ -27043,15 +27064,15 @@ async function _l(a, t, e, r) {
27043
27064
  };
27044
27065
  }).catch(Hs);
27045
27066
  }
27046
- async function Zg(a, t, e) {
27047
- const r = Jg(t, e);
27048
- return _l(a, 1, r.length, r[0]).then(async (o) => {
27067
+ async function Jg(a, t, e) {
27068
+ const r = Gg(t, e);
27069
+ return yl(a, 1, r.length, r[0]).then(async (o) => {
27049
27070
  let s = {
27050
27071
  return_code: o.return_code,
27051
27072
  error_message: o.error_message,
27052
27073
  signature: { type: "Buffer", data: [] }
27053
27074
  };
27054
- for (let n = 1; n < r.length && (s = await _l(a, 1 + n, r.length, r[n]), s.return_code === ga.NoError); n += 1)
27075
+ for (let n = 1; n < r.length && (s = await yl(a, 1 + n, r.length, r[n]), s.return_code === ga.NoError); n += 1)
27055
27076
  ;
27056
27077
  return {
27057
27078
  return_code: s.return_code,
@@ -27060,7 +27081,7 @@ async function Zg(a, t, e) {
27060
27081
  };
27061
27082
  }).catch(Hs);
27062
27083
  }
27063
- const Yg = "Initia", Xg = "Cosmos";
27084
+ const Zg = "Initia", Yg = "Cosmos";
27064
27085
  class Ua {
27065
27086
  constructor(t) {
27066
27087
  _(this, "transport");
@@ -27079,7 +27100,7 @@ class Ua {
27079
27100
  static getBech32FromPK(t, e) {
27080
27101
  if (e.length !== 33)
27081
27102
  throw new Error("expected compressed public key [31 bytes]");
27082
- const r = (void 0)("sha256").update(e).digest(), o = new Lf().update(r).digest();
27103
+ const r = (void 0)("sha256").update(e).digest(), o = new Rf().update(r).digest();
27083
27104
  return G.encode(t, G.toWords(o));
27084
27105
  }
27085
27106
  validateCompatibility() {
@@ -27088,7 +27109,7 @@ class Ua {
27088
27109
  return this.info;
27089
27110
  if (this.version.return_code !== 36864)
27090
27111
  return this.version;
27091
- if (this.info.app_name === Yg && this.version.major === 1 || this.info.app_name === Xg && this.version.major === 2)
27112
+ if (this.info.app_name === Zg && this.version.major === 1 || this.info.app_name === Yg && this.version.major === 2)
27092
27113
  return;
27093
27114
  }
27094
27115
  return {
@@ -27100,7 +27121,7 @@ class Ua {
27100
27121
  * @returns CommonResponse returns CommonResponse if app is not compatible
27101
27122
  */
27102
27123
  async initialize() {
27103
- return Vg(this.transport).then((t) => (this.info = t, qg(this.transport))).then((t) => (this.version = t, this.validateCompatibility()));
27124
+ return qg(this.transport).then((t) => (this.info = t, zg(this.transport))).then((t) => (this.version = t, this.validateCompatibility()));
27104
27125
  }
27105
27126
  getInfo() {
27106
27127
  return this.info;
@@ -27109,25 +27130,25 @@ class Ua {
27109
27130
  return this.version;
27110
27131
  }
27111
27132
  getDeviceInfo() {
27112
- return Kg(this.transport);
27133
+ return Vg(this.transport);
27113
27134
  }
27114
27135
  getPublicKey(t) {
27115
27136
  const e = ei(t), r = Buffer.concat([Ua.serializeHRP("init"), e]);
27116
- return Wg(this.transport, r);
27137
+ return Kg(this.transport, r);
27117
27138
  }
27118
27139
  getAddressAndPubKey(t, e) {
27119
27140
  const r = ei(t), o = Buffer.concat([Ua.serializeHRP(e), r]);
27120
- return jg(this.transport, o);
27141
+ return Wg(this.transport, o);
27121
27142
  }
27122
27143
  showAddressAndPubKey(t, e) {
27123
27144
  const r = ei(t), o = Buffer.concat([Ua.serializeHRP(e), r]);
27124
- return Gg(this.transport, o);
27145
+ return jg(this.transport, o);
27125
27146
  }
27126
27147
  sign(t, e) {
27127
- return Zg(this.transport, t, e);
27148
+ return Jg(this.transport, t, e);
27128
27149
  }
27129
27150
  }
27130
- class Fl {
27151
+ class Ol {
27131
27152
  /**
27132
27153
  * Called to derive the relevant account and validator addresses and public keys from
27133
27154
  * the raw compressed public key in bytes.
@@ -27237,7 +27258,7 @@ class Fl {
27237
27258
  * @param tx
27238
27259
  */
27239
27260
  async signTx(t, e) {
27240
- const r = new lt(t.body, new Ot([], t.auth_info.fee), []), o = new Xf(
27261
+ const r = new lt(t.body, new Ot([], t.auth_info.fee), []), o = new Yf(
27241
27262
  e.chainId,
27242
27263
  e.accountNumber,
27243
27264
  e.sequence,
@@ -27264,12 +27285,12 @@ class Fl {
27264
27285
  ), r;
27265
27286
  }
27266
27287
  }
27267
- var st = {}, Tl = {};
27268
- const Qg = /* @__PURE__ */ Eg(Hg);
27288
+ var st = {}, Fl = {};
27289
+ const Xg = /* @__PURE__ */ Bg(Lg);
27269
27290
  (function(a) {
27270
27291
  /*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
27271
27292
  Object.defineProperty(a, "__esModule", { value: !0 }), a.utils = a.schnorr = a.verify = a.signSync = a.sign = a.getSharedSecret = a.recoverPublicKey = a.getPublicKey = a.Signature = a.Point = a.CURVE = void 0;
27272
- const t = Qg, e = BigInt(0), r = BigInt(1), o = BigInt(2), s = BigInt(3), n = BigInt(8), i = Object.freeze({
27293
+ const t = Xg, e = BigInt(0), r = BigInt(1), o = BigInt(2), s = BigInt(3), n = BigInt(8), i = Object.freeze({
27273
27294
  a: e,
27274
27295
  b: BigInt(7),
27275
27296
  P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
@@ -27315,7 +27336,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27315
27336
  return u.equals(R.ZERO) ? S.ZERO : new S(u.x, u.y, r);
27316
27337
  }
27317
27338
  static toAffineBatch(u) {
27318
- const p = ep(u.map((y) => y.z));
27339
+ const p = tp(u.map((y) => y.z));
27319
27340
  return u.map((y, w) => y.toAffine(p[w]));
27320
27341
  }
27321
27342
  static normalizeZ(u) {
@@ -27440,7 +27461,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27440
27461
  if (!Va(y))
27441
27462
  throw new Error("Point is not on curve");
27442
27463
  const w = $(y);
27443
- let P = tp(w);
27464
+ let P = Ql(w);
27444
27465
  const D = (P & r) === r;
27445
27466
  p ? D && (P = x(-P)) : (u[0] & 1) === 1 !== D && (P = x(-P));
27446
27467
  const M = new R(y, P);
@@ -27680,7 +27701,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27680
27701
  y *= y, y %= p;
27681
27702
  return y;
27682
27703
  }
27683
- function tp(h) {
27704
+ function Ql(h) {
27684
27705
  const { P: u } = i, p = BigInt(6), y = BigInt(11), w = BigInt(22), P = BigInt(23), D = BigInt(44), M = BigInt(88), N = h * h * h % u, B = N * N * h % u, T = xt(B, s) * B % u, H = xt(T, s) * B % u, z = xt(H, o) * N % u, mt = xt(z, y) * z % u, at = xt(mt, w) * mt % u, Ct = xt(at, D) * at % u, bn = xt(Ct, M) * Ct % u, An = xt(bn, D) * at % u, Dn = xt(An, s) * B % u, ja = xt(Dn, P) * mt % u, vi = xt(ja, p) * N % u, wa = xt(vi, o);
27685
27706
  if (wa * wa % u !== h)
27686
27707
  throw new Error("Cannot find square root");
@@ -27698,16 +27719,16 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27698
27719
  throw new Error("invert: does not exist");
27699
27720
  return x(w, u);
27700
27721
  }
27701
- function ep(h, u = i.P) {
27722
+ function tp(h, u = i.P) {
27702
27723
  const p = new Array(h.length), y = h.reduce((P, D, M) => D === e ? P : (p[M] = P, x(P * D, u)), r), w = _n(y, u);
27703
27724
  return h.reduceRight((P, D, M) => D === e ? P : (p[M] = x(P * p[M], u), x(P * D, u)), w), p;
27704
27725
  }
27705
- function rp(h) {
27726
+ function ep(h) {
27706
27727
  const u = h.length * 8 - v * 8, p = gt(h);
27707
27728
  return u > 0 ? p >> BigInt(u) : p;
27708
27729
  }
27709
27730
  function yi(h, u = !1) {
27710
- const p = rp(h);
27731
+ const p = ep(h);
27711
27732
  if (u)
27712
27733
  return p;
27713
27734
  const { n: y } = i;
@@ -27817,19 +27838,19 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27817
27838
  return Et.fromCompact(h);
27818
27839
  }
27819
27840
  }
27820
- function op(h, u = !1) {
27841
+ function rp(h, u = !1) {
27821
27842
  return R.fromPrivateKey(h).toRawBytes(u);
27822
27843
  }
27823
- a.getPublicKey = op;
27824
- function sp(h, u, p, y = !1) {
27844
+ a.getPublicKey = rp;
27845
+ function op(h, u, p, y = !1) {
27825
27846
  return R.fromSignature(h, u, p).toRawBytes(y);
27826
27847
  }
27827
- a.recoverPublicKey = sp;
27848
+ a.recoverPublicKey = op;
27828
27849
  function Id(h) {
27829
27850
  const u = h instanceof Uint8Array, p = typeof h == "string", y = (u || p) && h.length;
27830
27851
  return u ? y === k || y === E : p ? y === k * 2 || y === E * 2 : h instanceof R;
27831
27852
  }
27832
- function np(h, u, p = !1) {
27853
+ function sp(h, u, p = !1) {
27833
27854
  if (Id(h))
27834
27855
  throw new TypeError("getSharedSecret: first arg must be private key");
27835
27856
  if (!Id(u))
@@ -27837,12 +27858,12 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27837
27858
  const y = _i(u);
27838
27859
  return y.assertValidity(), y.multiply(Ks(h)).toRawBytes(p);
27839
27860
  }
27840
- a.getSharedSecret = np;
27861
+ a.getSharedSecret = sp;
27841
27862
  function Sd(h) {
27842
27863
  const u = h.length > g ? h.slice(0, g) : h;
27843
27864
  return gt(u);
27844
27865
  }
27845
- function ap(h) {
27866
+ function np(h) {
27846
27867
  const u = Sd(h), p = x(u, i.n);
27847
27868
  return Bd(p < e ? u : p);
27848
27869
  }
@@ -27852,7 +27873,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27852
27873
  function Ed(h, u, p) {
27853
27874
  if (h == null)
27854
27875
  throw new Error(`sign: expected valid message hash, not "${h}"`);
27855
- const y = zt(h), w = Ks(u), P = [Bd(w), ap(y)];
27876
+ const y = zt(h), w = Ks(u), P = [Bd(w), np(y)];
27856
27877
  if (p != null) {
27857
27878
  p === !0 && (p = a.utils.randomBytes(g));
27858
27879
  const N = zt(p);
@@ -27867,7 +27888,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27867
27888
  const { sig: p, recovery: y } = h, { der: w, recovered: P } = Object.assign({ canonical: !0, der: !0 }, u), D = w ? p.toDERRawBytes() : p.toCompactRawBytes();
27868
27889
  return P ? [D, y] : D;
27869
27890
  }
27870
- async function ip(h, u, p = {}) {
27891
+ async function ap(h, u, p = {}) {
27871
27892
  const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
27872
27893
  await D.reseed(y);
27873
27894
  let M;
@@ -27875,8 +27896,8 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27875
27896
  await D.reseed();
27876
27897
  return Ud(M, p);
27877
27898
  }
27878
- a.sign = ip;
27879
- function cp(h, u, p = {}) {
27899
+ a.sign = ap;
27900
+ function ip(h, u, p = {}) {
27880
27901
  const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
27881
27902
  D.reseedSync(y);
27882
27903
  let M;
@@ -27884,9 +27905,9 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27884
27905
  D.reseedSync();
27885
27906
  return Ud(M, p);
27886
27907
  }
27887
- a.signSync = cp;
27888
- const mp = { strict: !0 };
27889
- function up(h, u, p, y = mp) {
27908
+ a.signSync = ip;
27909
+ const cp = { strict: !0 };
27910
+ function mp(h, u, p, y = cp) {
27890
27911
  let w;
27891
27912
  try {
27892
27913
  w = Md(h), u = zt(u);
@@ -27906,7 +27927,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27906
27927
  const { n: B } = i, T = _n(D, B), H = x(M * T, B), z = x(P * T, B), mt = R.BASE.multiplyAndAddUnsafe(N, H, z);
27907
27928
  return mt ? x(mt.x, B) === P : !1;
27908
27929
  }
27909
- a.verify = up;
27930
+ a.verify = mp;
27910
27931
  function Ka(h) {
27911
27932
  return x(gt(h), i.n);
27912
27933
  }
@@ -27933,7 +27954,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27933
27954
  return Ut(this.toHex());
27934
27955
  }
27935
27956
  }
27936
- function dp(h) {
27957
+ function up(h) {
27937
27958
  return R.fromPrivateKey(h).toRawX();
27938
27959
  }
27939
27960
  class Cd {
@@ -27974,10 +27995,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27974
27995
  return Fd(H, u, y) || this.error(), H;
27975
27996
  }
27976
27997
  }
27977
- async function lp(h, u, p) {
27998
+ async function dp(h, u, p) {
27978
27999
  return new Cd(h, u, p).calc();
27979
28000
  }
27980
- function pp(h, u, p) {
28001
+ function lp(h, u, p) {
27981
28002
  return new Cd(h, u, p).calcSync();
27982
28003
  }
27983
28004
  function $d(h, u, p) {
@@ -28012,10 +28033,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
28012
28033
  }
28013
28034
  a.schnorr = {
28014
28035
  Signature: Pn,
28015
- getPublicKey: dp,
28016
- sign: lp,
28036
+ getPublicKey: up,
28037
+ sign: dp,
28017
28038
  verify: Od,
28018
- signSync: pp,
28039
+ signSync: lp,
28019
28040
  verifySync: Fd
28020
28041
  }, R.BASE._setWindowSize(8);
28021
28042
  const wt = {
@@ -28124,52 +28145,52 @@ const Qg = /* @__PURE__ */ Eg(Hg);
28124
28145
  }
28125
28146
  }
28126
28147
  });
28127
- })(Tl);
28128
- var Rl = {}, Bt = {};
28148
+ })(Fl);
28149
+ var Tl = {}, Bt = {};
28129
28150
  Object.defineProperty(Bt, "__esModule", { value: !0 });
28130
- Bt.isBytes = Hl;
28151
+ Bt.isBytes = Ll;
28131
28152
  Bt.number = ui;
28132
- Bt.bool = Ll;
28153
+ Bt.bool = Rl;
28133
28154
  Bt.bytes = fd;
28134
- Bt.hash = zl;
28135
- Bt.exists = ql;
28136
- Bt.output = Vl;
28155
+ Bt.hash = Hl;
28156
+ Bt.exists = zl;
28157
+ Bt.output = ql;
28137
28158
  function ui(a) {
28138
28159
  if (!Number.isSafeInteger(a) || a < 0)
28139
28160
  throw new Error(`positive integer expected, not ${a}`);
28140
28161
  }
28141
- function Ll(a) {
28162
+ function Rl(a) {
28142
28163
  if (typeof a != "boolean")
28143
28164
  throw new Error(`boolean expected, not ${a}`);
28144
28165
  }
28145
- function Hl(a) {
28166
+ function Ll(a) {
28146
28167
  return a instanceof Uint8Array || a != null && typeof a == "object" && a.constructor.name === "Uint8Array";
28147
28168
  }
28148
28169
  function fd(a, ...t) {
28149
- if (!Hl(a))
28170
+ if (!Ll(a))
28150
28171
  throw new Error("Uint8Array expected");
28151
28172
  if (t.length > 0 && !t.includes(a.length))
28152
28173
  throw new Error(`Uint8Array expected of length ${t}, not of length=${a.length}`);
28153
28174
  }
28154
- function zl(a) {
28175
+ function Hl(a) {
28155
28176
  if (typeof a != "function" || typeof a.create != "function")
28156
28177
  throw new Error("Hash should be wrapped by utils.wrapConstructor");
28157
28178
  ui(a.outputLen), ui(a.blockLen);
28158
28179
  }
28159
- function ql(a, t = !0) {
28180
+ function zl(a, t = !0) {
28160
28181
  if (a.destroyed)
28161
28182
  throw new Error("Hash instance has been destroyed");
28162
28183
  if (t && a.finished)
28163
28184
  throw new Error("Hash#digest() has already been called");
28164
28185
  }
28165
- function Vl(a, t) {
28186
+ function ql(a, t) {
28166
28187
  fd(a);
28167
28188
  const e = t.outputLen;
28168
28189
  if (a.length < e)
28169
28190
  throw new Error(`digestInto() expects output buffer of length at least ${e}`);
28170
28191
  }
28171
- const ty = { number: ui, bool: Ll, bytes: fd, hash: zl, exists: ql, output: Vl };
28172
- Bt.default = ty;
28192
+ const Qg = { number: ui, bool: Rl, bytes: fd, hash: Hl, exists: zl, output: ql };
28193
+ Bt.default = Qg;
28173
28194
  var pi = {}, hi = {};
28174
28195
  Object.defineProperty(hi, "__esModule", { value: !0 });
28175
28196
  hi.crypto = void 0;
@@ -28337,22 +28358,22 @@ hi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
28337
28358
  a.HMAC = r;
28338
28359
  const o = (s, n, i) => new r(s, n).update(i).digest();
28339
28360
  a.hmac = o, a.hmac.create = (s, n) => new r(s, n);
28340
- })(Rl);
28361
+ })(Tl);
28341
28362
  var Ts = {}, Rs = {};
28342
28363
  Object.defineProperty(Rs, "__esModule", { value: !0 });
28343
28364
  Rs.HashMD = Rs.Maj = Rs.Chi = void 0;
28344
28365
  const rd = Bt, Pa = pi;
28345
- function ey(a, t, e, r) {
28366
+ function ty(a, t, e, r) {
28346
28367
  if (typeof a.setBigUint64 == "function")
28347
28368
  return a.setBigUint64(t, e, r);
28348
28369
  const o = BigInt(32), s = BigInt(4294967295), n = Number(e >> o & s), i = Number(e & s), c = r ? 4 : 0, d = r ? 0 : 4;
28349
28370
  a.setUint32(t + c, n, r), a.setUint32(t + d, i, r);
28350
28371
  }
28351
- const ry = (a, t, e) => a & t ^ ~a & e;
28352
- Rs.Chi = ry;
28353
- const oy = (a, t, e) => a & t ^ a & e ^ t & e;
28354
- Rs.Maj = oy;
28355
- class sy extends Pa.Hash {
28372
+ const ey = (a, t, e) => a & t ^ ~a & e;
28373
+ Rs.Chi = ey;
28374
+ const ry = (a, t, e) => a & t ^ a & e ^ t & e;
28375
+ Rs.Maj = ry;
28376
+ class oy extends Pa.Hash {
28356
28377
  constructor(t, e, r, o) {
28357
28378
  super(), this.blockLen = t, this.outputLen = e, this.padOffset = r, this.isLE = o, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = (0, Pa.createView)(this.buffer);
28358
28379
  }
@@ -28380,7 +28401,7 @@ class sy extends Pa.Hash {
28380
28401
  e[n++] = 128, this.buffer.subarray(n).fill(0), this.padOffset > o - n && (this.process(r, 0), n = 0);
28381
28402
  for (let v = n; v < o; v++)
28382
28403
  e[v] = 0;
28383
- ey(r, o - 8, BigInt(this.length * 8), s), this.process(r, 0);
28404
+ ty(r, o - 8, BigInt(this.length * 8), s), this.process(r, 0);
28384
28405
  const i = (0, Pa.createView)(t), c = this.outputLen;
28385
28406
  if (c % 4)
28386
28407
  throw new Error("_sha2: outputLen should be aligned to 32bit");
@@ -28402,10 +28423,10 @@ class sy extends Pa.Hash {
28402
28423
  return t.length = o, t.pos = i, t.finished = s, t.destroyed = n, o % e && t.buffer.set(r), t;
28403
28424
  }
28404
28425
  }
28405
- Rs.HashMD = sy;
28426
+ Rs.HashMD = oy;
28406
28427
  Object.defineProperty(Ts, "__esModule", { value: !0 });
28407
28428
  Ts.sha224 = Ts.sha256 = Ts.SHA256 = void 0;
28408
- const od = Rs, Mt = pi, ny = /* @__PURE__ */ new Uint32Array([
28429
+ const od = Rs, Mt = pi, sy = /* @__PURE__ */ new Uint32Array([
28409
28430
  1116352408,
28410
28431
  1899447441,
28411
28432
  3049323471,
@@ -28501,7 +28522,7 @@ class gd extends od.HashMD {
28501
28522
  }
28502
28523
  let { A: r, B: o, C: s, D: n, E: i, F: c, G: d, H: g } = this;
28503
28524
  for (let v = 0; v < 64; v++) {
28504
- const A = (0, Mt.rotr)(i, 6) ^ (0, Mt.rotr)(i, 11) ^ (0, Mt.rotr)(i, 25), k = g + A + (0, od.Chi)(i, c, d) + ny[v] + De[v] | 0, $ = ((0, Mt.rotr)(r, 2) ^ (0, Mt.rotr)(r, 13) ^ (0, Mt.rotr)(r, 22)) + (0, od.Maj)(r, o, s) | 0;
28525
+ const A = (0, Mt.rotr)(i, 6) ^ (0, Mt.rotr)(i, 11) ^ (0, Mt.rotr)(i, 25), k = g + A + (0, od.Chi)(i, c, d) + sy[v] + De[v] | 0, $ = ((0, Mt.rotr)(r, 2) ^ (0, Mt.rotr)(r, 13) ^ (0, Mt.rotr)(r, 22)) + (0, od.Maj)(r, o, s) | 0;
28505
28526
  g = d, d = c, c = i, i = n + k | 0, n = s, s = o, o = r, r = k + $ | 0;
28506
28527
  }
28507
28528
  r = r + this.A | 0, o = o + this.B | 0, s = s + this.C | 0, n = n + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, d = d + this.G | 0, g = g + this.H | 0, this.set(r, o, s, n, i, c, d, g);
@@ -28514,15 +28535,15 @@ class gd extends od.HashMD {
28514
28535
  }
28515
28536
  }
28516
28537
  Ts.SHA256 = gd;
28517
- class ay extends gd {
28538
+ class ny extends gd {
28518
28539
  constructor() {
28519
28540
  super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
28520
28541
  }
28521
28542
  }
28522
28543
  Ts.sha256 = (0, Mt.wrapConstructor)(() => new gd());
28523
- Ts.sha224 = (0, Mt.wrapConstructor)(() => new ay());
28524
- var iy = Tl, cy = Rl, Kl = Ts;
28525
- function my(a) {
28544
+ Ts.sha224 = (0, Mt.wrapConstructor)(() => new ny());
28545
+ var ay = Fl, iy = Tl, Vl = Ts;
28546
+ function cy(a) {
28526
28547
  var t = /* @__PURE__ */ Object.create(null);
28527
28548
  return a && Object.keys(a).forEach(function(e) {
28528
28549
  if (e !== "default") {
@@ -28536,11 +28557,11 @@ function my(a) {
28536
28557
  }
28537
28558
  }), t.default = a, Object.freeze(t);
28538
28559
  }
28539
- var q = /* @__PURE__ */ my(iy);
28540
- const zs = "Expected Private", qs = "Expected Point", Ra = "Expected Tweak", uy = "Expected Hash", di = "Expected Signature", yd = "Expected Extra Data (32 bytes)", La = "Expected Scalar", dy = "Bad Recovery Id";
28541
- q.utils.hmacSha256Sync = (a, ...t) => cy.hmac(Kl.sha256, a, q.utils.concatBytes(...t));
28542
- q.utils.sha256Sync = (...a) => Kl.sha256(q.utils.concatBytes(...a));
28543
- const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, dd = new Uint8Array([
28560
+ var q = /* @__PURE__ */ cy(ay);
28561
+ const zs = "Expected Private", qs = "Expected Point", Ra = "Expected Tweak", my = "Expected Hash", di = "Expected Signature", yd = "Expected Extra Data (32 bytes)", La = "Expected Scalar", uy = "Bad Recovery Id";
28562
+ q.utils.hmacSha256Sync = (a, ...t) => iy.hmac(Vl.sha256, a, q.utils.concatBytes(...t));
28563
+ q.utils.sha256Sync = (...a) => Vl.sha256(q.utils.concatBytes(...a));
28564
+ const _d = q.utils._normalizePrivateKey, dy = 32, ly = 32, dd = new Uint8Array([
28544
28565
  255,
28545
28566
  255,
28546
28567
  255,
@@ -28573,7 +28594,7 @@ const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, dd = new Uint8Array([
28573
28594
  54,
28574
28595
  65,
28575
28596
  65
28576
- ]), hy = 32, fy = new Uint8Array(32), gy = new Uint8Array([
28597
+ ]), py = 32, hy = new Uint8Array(32), fy = new Uint8Array([
28577
28598
  0,
28578
28599
  0,
28579
28600
  0,
@@ -28607,7 +28628,7 @@ const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, dd = new Uint8Array([
28607
28628
  186,
28608
28629
  238
28609
28630
  ]);
28610
- function yy(a) {
28631
+ function gy(a) {
28611
28632
  return a instanceof Uint8Array;
28612
28633
  }
28613
28634
  function Na(a, t) {
@@ -28616,34 +28637,34 @@ function Na(a, t) {
28616
28637
  return a[e] < t[e] ? -1 : 1;
28617
28638
  return 0;
28618
28639
  }
28619
- function vl(a) {
28620
- return Na(a, fy) === 0;
28640
+ function _l(a) {
28641
+ return Na(a, hy) === 0;
28621
28642
  }
28622
28643
  function Ha(a) {
28623
- return !(!(a instanceof Uint8Array) || a.length !== py || Na(a, dd) >= 0);
28644
+ return !(!(a instanceof Uint8Array) || a.length !== ly || Na(a, dd) >= 0);
28624
28645
  }
28625
28646
  function vd(a) {
28626
28647
  return a instanceof Uint8Array && a.length === 64 && Na(a.subarray(0, 32), dd) < 0 && Na(a.subarray(32, 64), dd) < 0;
28627
28648
  }
28628
- function _y(a) {
28629
- return yy(a) && a.length === 64 && Na(a.subarray(0, 32), gy) < 0;
28649
+ function yy(a) {
28650
+ return gy(a) && a.length === 64 && Na(a.subarray(0, 32), fy) < 0;
28630
28651
  }
28631
- function vy(a) {
28632
- return !(vl(a.subarray(0, 32)) || vl(a.subarray(32, 64)));
28652
+ function _y(a) {
28653
+ return !(_l(a.subarray(0, 32)) || _l(a.subarray(32, 64)));
28633
28654
  }
28634
28655
  function ya(a) {
28635
- return a instanceof Uint8Array && a.length === ly;
28656
+ return a instanceof Uint8Array && a.length === dy;
28636
28657
  }
28637
28658
  function wd(a) {
28638
- return a === void 0 || a instanceof Uint8Array && a.length === hy;
28659
+ return a === void 0 || a instanceof Uint8Array && a.length === py;
28639
28660
  }
28640
- function Wl(a) {
28661
+ function Kl(a) {
28641
28662
  if (typeof a != "string")
28642
28663
  throw new TypeError("hexToNumber: expected string, got " + typeof a);
28643
28664
  return BigInt(`0x${a}`);
28644
28665
  }
28645
- function wy(a) {
28646
- return Wl(q.utils.bytesToHex(a));
28666
+ function vy(a) {
28667
+ return Kl(q.utils.bytesToHex(a));
28647
28668
  }
28648
28669
  function Pd(a) {
28649
28670
  let t;
@@ -28654,35 +28675,35 @@ function Pd(a) {
28654
28675
  else if (typeof a == "string") {
28655
28676
  if (a.length !== 64)
28656
28677
  throw new Error("Expected 32 bytes of private scalar");
28657
- t = Wl(a);
28678
+ t = Kl(a);
28658
28679
  } else if (a instanceof Uint8Array) {
28659
28680
  if (a.length !== 32)
28660
28681
  throw new Error("Expected 32 bytes of private scalar");
28661
- t = wy(a);
28682
+ t = vy(a);
28662
28683
  } else
28663
28684
  throw new TypeError("Expected valid private scalar");
28664
28685
  if (t < 0) throw new Error("Expected private scalar >= 0");
28665
28686
  return t;
28666
28687
  }
28667
- const Py = (a, t) => {
28688
+ const wy = (a, t) => {
28668
28689
  const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e + r, q.CURVE.n));
28669
28690
  return q.utils.isValidPrivateKey(o) ? o : null;
28670
- }, by = (a, t) => {
28691
+ }, Py = (a, t) => {
28671
28692
  const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e - r, q.CURVE.n));
28672
28693
  return q.utils.isValidPrivateKey(o) ? o : null;
28673
- }, Ay = (a) => {
28694
+ }, by = (a) => {
28674
28695
  const t = _d(a), e = q.utils._bigintTo32Bytes(q.CURVE.n - t);
28675
28696
  return q.utils.isValidPrivateKey(e) ? e : null;
28676
- }, jl = (a, t, e) => {
28697
+ }, Wl = (a, t, e) => {
28677
28698
  const r = q.Point.fromHex(a), o = Pd(t), s = q.Point.BASE.multiplyAndAddUnsafe(r, o, BigInt(1));
28678
28699
  if (!s) throw new Error("Tweaked point at infinity");
28679
28700
  return s.toRawBytes(e);
28680
- }, Dy = (a, t, e) => {
28701
+ }, Ay = (a, t, e) => {
28681
28702
  const r = q.Point.fromHex(a), o = typeof t == "string" ? t : q.utils.bytesToHex(t), s = BigInt(`0x${o}`);
28682
28703
  return r.multiply(s).toRawBytes(e);
28683
28704
  };
28684
28705
  function _a(a, t) {
28685
- return a === void 0 ? t !== void 0 ? Gl(t) : !0 : !!a;
28706
+ return a === void 0 ? t !== void 0 ? jl(t) : !0 : !!a;
28686
28707
  }
28687
28708
  function yn(a) {
28688
28709
  try {
@@ -28702,7 +28723,7 @@ function bd(a, t) {
28702
28723
  function Ls(a) {
28703
28724
  return bd(a, !1);
28704
28725
  }
28705
- function Gl(a) {
28726
+ function jl(a) {
28706
28727
  return bd(a, !1) && a.length === 33;
28707
28728
  }
28708
28729
  function Pe(a) {
@@ -28711,48 +28732,48 @@ function Pe(a) {
28711
28732
  function fi(a) {
28712
28733
  return bd(a, !0);
28713
28734
  }
28714
- function ky(a, t) {
28735
+ function Dy(a, t) {
28715
28736
  if (!fi(a))
28716
28737
  throw new Error(qs);
28717
28738
  if (!Ha(t))
28718
28739
  throw new Error(Ra);
28719
28740
  return yn(() => {
28720
- const e = jl(a, t, !0);
28741
+ const e = Wl(a, t, !0);
28721
28742
  return { parity: e[0] % 2 === 1 ? 1 : 0, xOnlyPubkey: e.slice(1) };
28722
28743
  });
28723
28744
  }
28724
- function Jl(a) {
28745
+ function Gl(a) {
28725
28746
  if (!Ls(a))
28726
28747
  throw new Error(qs);
28727
28748
  return a.slice(1, 33);
28728
28749
  }
28729
- function Zl(a, t) {
28750
+ function Jl(a, t) {
28730
28751
  if (!Pe(a))
28731
28752
  throw new Error(zs);
28732
28753
  return yn(
28733
28754
  () => q.getPublicKey(a, _a(t))
28734
28755
  );
28735
28756
  }
28736
- function xy(a) {
28757
+ function ky(a) {
28737
28758
  if (!Pe(a))
28738
28759
  throw new Error(zs);
28739
- return Jl(Zl(a));
28760
+ return Gl(Jl(a));
28740
28761
  }
28741
- function My(a, t) {
28762
+ function xy(a, t) {
28742
28763
  if (!Ls(a))
28743
28764
  throw new Error(qs);
28744
28765
  return q.Point.fromHex(a).toRawBytes(_a(t, a));
28745
28766
  }
28746
- function Iy(a, t, e) {
28767
+ function My(a, t, e) {
28747
28768
  if (!Ls(a))
28748
28769
  throw new Error(qs);
28749
28770
  if (!Ha(t))
28750
28771
  throw new Error(Ra);
28751
28772
  return yn(
28752
- () => Dy(a, t, _a(e, a))
28773
+ () => Ay(a, t, _a(e, a))
28753
28774
  );
28754
28775
  }
28755
- function Sy(a, t, e) {
28776
+ function Iy(a, t, e) {
28756
28777
  if (!Ls(a) || !Ls(t))
28757
28778
  throw new Error(qs);
28758
28779
  return yn(() => {
@@ -28760,35 +28781,35 @@ function Sy(a, t, e) {
28760
28781
  return r.equals(o.negate()) ? null : r.add(o).toRawBytes(_a(e, a));
28761
28782
  });
28762
28783
  }
28763
- function By(a, t, e) {
28784
+ function Sy(a, t, e) {
28764
28785
  if (!Ls(a))
28765
28786
  throw new Error(qs);
28766
28787
  if (!Ha(t))
28767
28788
  throw new Error(Ra);
28768
28789
  return yn(
28769
- () => jl(a, t, _a(e, a))
28790
+ () => Wl(a, t, _a(e, a))
28770
28791
  );
28771
28792
  }
28772
- function Ey(a, t) {
28793
+ function By(a, t) {
28773
28794
  if (Pe(a) === !1)
28774
28795
  throw new Error(zs);
28775
28796
  if (Ha(t) === !1)
28776
28797
  throw new Error(Ra);
28777
- return yn(() => Py(a, t));
28798
+ return yn(() => wy(a, t));
28778
28799
  }
28779
- function Uy(a, t) {
28800
+ function Ey(a, t) {
28780
28801
  if (Pe(a) === !1)
28781
28802
  throw new Error(zs);
28782
28803
  if (Ha(t) === !1)
28783
28804
  throw new Error(Ra);
28784
- return yn(() => by(a, t));
28805
+ return yn(() => Py(a, t));
28785
28806
  }
28786
- function Cy(a) {
28807
+ function Uy(a) {
28787
28808
  if (Pe(a) === !1)
28788
28809
  throw new Error(zs);
28789
- return Ay(a);
28810
+ return by(a);
28790
28811
  }
28791
- function $y(a, t, e) {
28812
+ function Cy(a, t, e) {
28792
28813
  if (!Pe(t))
28793
28814
  throw new Error(zs);
28794
28815
  if (!ya(a))
@@ -28797,7 +28818,7 @@ function $y(a, t, e) {
28797
28818
  throw new Error(yd);
28798
28819
  return q.signSync(a, t, { der: !1, extraEntropy: e });
28799
28820
  }
28800
- function Ny(a, t, e) {
28821
+ function $y(a, t, e) {
28801
28822
  if (!Pe(t))
28802
28823
  throw new Error(zs);
28803
28824
  if (!ya(a))
@@ -28807,7 +28828,7 @@ function Ny(a, t, e) {
28807
28828
  const [r, o] = q.signSync(a, t, { der: !1, extraEntropy: e, recovered: !0 });
28808
28829
  return { signature: r, recoveryId: o };
28809
28830
  }
28810
- function Oy(a, t, e = Buffer.alloc(32, 0)) {
28831
+ function Ny(a, t, e = Buffer.alloc(32, 0)) {
28811
28832
  if (!Pe(t))
28812
28833
  throw new Error(zs);
28813
28834
  if (!ya(a))
@@ -28816,18 +28837,18 @@ function Oy(a, t, e = Buffer.alloc(32, 0)) {
28816
28837
  throw new Error(yd);
28817
28838
  return q.schnorr.signSync(a, t, e);
28818
28839
  }
28819
- function Fy(a, t, e, r) {
28840
+ function Oy(a, t, e, r) {
28820
28841
  if (!ya(a))
28821
- throw new Error(uy);
28822
- if (!vd(t) || !vy(t))
28842
+ throw new Error(my);
28843
+ if (!vd(t) || !_y(t))
28823
28844
  throw new Error(di);
28824
- if (e & 2 && !_y(t))
28825
- throw new Error(dy);
28845
+ if (e & 2 && !yy(t))
28846
+ throw new Error(uy);
28826
28847
  if (!fi(t.subarray(0, 32)))
28827
28848
  throw new Error(di);
28828
28849
  return q.recoverPublicKey(a, t, e, _a(r));
28829
28850
  }
28830
- function Ty(a, t, e, r) {
28851
+ function Fy(a, t, e, r) {
28831
28852
  if (!Ls(t))
28832
28853
  throw new Error(qs);
28833
28854
  if (!vd(e))
@@ -28836,7 +28857,7 @@ function Ty(a, t, e, r) {
28836
28857
  throw new Error(La);
28837
28858
  return q.verify(e, a, t, { strict: r });
28838
28859
  }
28839
- function Ry(a, t, e) {
28860
+ function Ty(a, t, e) {
28840
28861
  if (!fi(t))
28841
28862
  throw new Error(qs);
28842
28863
  if (!vd(e))
@@ -28846,29 +28867,29 @@ function Ry(a, t, e) {
28846
28867
  return q.schnorr.verifySync(e, a, t);
28847
28868
  }
28848
28869
  st.isPoint = Ls;
28849
- st.isPointCompressed = Gl;
28870
+ st.isPointCompressed = jl;
28850
28871
  st.isPrivate = Pe;
28851
28872
  st.isXOnlyPoint = fi;
28852
- st.pointAdd = Sy;
28853
- st.pointAddScalar = By;
28854
- st.pointCompress = My;
28855
- st.pointFromScalar = Zl;
28856
- st.pointMultiply = Iy;
28857
- st.privateAdd = Ey;
28858
- st.privateNegate = Cy;
28859
- st.privateSub = Uy;
28860
- st.recover = Fy;
28861
- st.sign = $y;
28862
- st.signRecoverable = Ny;
28863
- st.signSchnorr = Oy;
28864
- st.verify = Ty;
28865
- st.verifySchnorr = Ry;
28866
- st.xOnlyPointAddTweak = ky;
28867
- st.xOnlyPointFromPoint = Jl;
28868
- st.xOnlyPointFromScalar = xy;
28869
- class Ad extends Fl {
28873
+ st.pointAdd = Iy;
28874
+ st.pointAddScalar = Sy;
28875
+ st.pointCompress = xy;
28876
+ st.pointFromScalar = Jl;
28877
+ st.pointMultiply = My;
28878
+ st.privateAdd = By;
28879
+ st.privateNegate = Uy;
28880
+ st.privateSub = Ey;
28881
+ st.recover = Oy;
28882
+ st.sign = Cy;
28883
+ st.signRecoverable = $y;
28884
+ st.signSchnorr = Ny;
28885
+ st.verify = Fy;
28886
+ st.verifySchnorr = Ty;
28887
+ st.xOnlyPointAddTweak = Dy;
28888
+ st.xOnlyPointFromPoint = Gl;
28889
+ st.xOnlyPointFromScalar = ky;
28890
+ class Ad extends Ol {
28870
28891
  constructor(e, r = !1) {
28871
- var t = (...cw) => (super(...cw), /**
28892
+ var t = (...iw) => (super(...iw), /**
28872
28893
  * Raw private key, in bytes.
28873
28894
  */
28874
28895
  _(this, "privateKey"), /**
@@ -28890,7 +28911,7 @@ class Ad extends Fl {
28890
28911
  async sign(e) {
28891
28912
  if (this.eth) return this.signWithKeccak256(e);
28892
28913
  const r = Buffer.from(
28893
- xp.hash(new ld(e)).toString(),
28914
+ kp.hash(new ld(e)).toString(),
28894
28915
  "hex"
28895
28916
  ), { signature: o } = ba.ecdsaSign(
28896
28917
  Uint8Array.from(r),
@@ -28900,20 +28921,20 @@ class Ad extends Fl {
28900
28921
  }
28901
28922
  // eslint-disable-next-line @typescript-eslint/require-await
28902
28923
  async signWithKeccak256(e) {
28903
- const r = bl(e), { signature: o } = ba.ecdsaSign(
28924
+ const r = Pl(e), { signature: o } = ba.ecdsaSign(
28904
28925
  Uint8Array.from(r),
28905
28926
  Uint8Array.from(this.privateKey)
28906
28927
  );
28907
28928
  return Buffer.from(o);
28908
28929
  }
28909
28930
  }
28910
- const Ly = zf(st), Yl = 118, Hy = {
28931
+ const Ry = Hf(st), Zl = 118, Ly = {
28911
28932
  account: 0,
28912
28933
  index: 0,
28913
- coinType: Yl,
28934
+ coinType: Zl,
28914
28935
  eth: !1
28915
28936
  };
28916
- class ew extends Ad {
28937
+ class tw extends Ad {
28917
28938
  /**
28918
28939
  * Creates a new signing key from a mnemonic phrase. If no mnemonic is provided, one
28919
28940
  * will be automatically generated.
@@ -28937,12 +28958,12 @@ class ew extends Ad {
28937
28958
  */
28938
28959
  constructor(e = {}) {
28939
28960
  const { account: r, index: o, coinType: s, eth: n } = {
28940
- ...Hy,
28961
+ ...Ly,
28941
28962
  ...e
28942
28963
  };
28943
28964
  let { mnemonic: i } = e;
28944
- i === void 0 && (i = qf(256));
28945
- const c = Vf(i), d = Ly.fromSeed(c), g = `m/44'/${s}'/${r}'/0/${o}`, A = d.derivePath(g).privateKey;
28965
+ i === void 0 && (i = zf(256));
28966
+ const c = qf(i), d = Ry.fromSeed(c), g = `m/44'/${s}'/${r}'/0/${o}`, A = d.derivePath(g).privateKey;
28946
28967
  if (!A)
28947
28968
  throw new Error("Failed to derive key pair");
28948
28969
  super(Buffer.from(A), n);
@@ -28953,20 +28974,20 @@ class ew extends Ad {
28953
28974
  this.mnemonic = i;
28954
28975
  }
28955
28976
  }
28956
- const wl = 120, Xl = "1.0.0";
28977
+ const vl = 120, Yl = "1.0.0";
28957
28978
  class it extends Error {
28958
28979
  constructor(t) {
28959
28980
  super(t), this.name = "LedgerError";
28960
28981
  }
28961
28982
  }
28962
- class Ql extends Fl {
28983
+ class Xl extends Ol {
28963
28984
  /**
28964
28985
  * @param transport transporter for LedgerKey
28965
28986
  */
28966
28987
  constructor(e) {
28967
28988
  super();
28968
28989
  _(this, "app");
28969
- _(this, "path", [44, Yl, 0, 0, 0]);
28990
+ _(this, "path", [44, Zl, 0, 0, 0]);
28970
28991
  this.transport = e, this.app = new Ua(this.transport);
28971
28992
  }
28972
28993
  /**
@@ -28981,11 +29002,11 @@ class Ql extends Fl {
28981
29002
  * create and return initialized ledger key
28982
29003
  */
28983
29004
  static async create(e, r) {
28984
- e || (e = await Ky());
28985
- const o = new Ql(e);
29005
+ e || (e = await Vy());
29006
+ const o = new Xl(e);
28986
29007
  return r != null && (o.path[4] = r), e && typeof e.on == "function" && e.on("disconnect", () => {
28987
29008
  o.transport = void 0;
28988
- }), await o.initialize().catch(zy), o;
29009
+ }), await o.initialize().catch(Hy), o;
28989
29010
  }
28990
29011
  /**
28991
29012
  * initialize LedgerKey.
@@ -28996,7 +29017,7 @@ class Ql extends Fl {
28996
29017
  if (r !== "Initia")
28997
29018
  throw new it("Open the Initia app in the Ledger");
28998
29019
  const { major: o, minor: s, patch: n } = this.app.getVersion(), i = `${o}.${s}.${n}`;
28999
- if (r === "Initia" && Hf.lt(i, Xl))
29020
+ if (r === "Initia" && Lf.lt(i, Yl))
29000
29021
  throw new it(
29001
29022
  "Outdated version: Update Ledger Initia App to the latest version"
29002
29023
  );
@@ -29015,7 +29036,7 @@ class Ql extends Fl {
29015
29036
  async sign(e) {
29016
29037
  this.publicKey || await this.loadAccountDetails();
29017
29038
  const r = await this.app.sign(this.path, e);
29018
- return sd(r), Buffer.from(Ap(Buffer.from(r.signature)));
29039
+ return sd(r), Buffer.from(bp(Buffer.from(r.signature)));
29019
29040
  }
29020
29041
  // eslint-disable-next-line @typescript-eslint/require-await
29021
29042
  async signWithKeccak256() {
@@ -29044,13 +29065,13 @@ class Ql extends Fl {
29044
29065
  return this.app.showAddressAndPubKey(this.path, "init");
29045
29066
  }
29046
29067
  }
29047
- const zy = (a) => {
29068
+ const Hy = (a) => {
29048
29069
  const t = a.message.trim();
29049
29070
  if (!t.startsWith("The device is already open"))
29050
29071
  throw a.name === "TransportOpenUserCancelled" ? new it(
29051
29072
  "Couldn't find the Ledger. Check the Ledger is plugged in and unlocked."
29052
29073
  ) : t.startsWith("No WebUSB interface found for the Ledger device") ? new it(
29053
- `Couldn't connect to a Ledger device. Use Ledger Live to upgrade the Ledger firmware to version ${Xl} or later.`
29074
+ `Couldn't connect to a Ledger device. Use Ledger Live to upgrade the Ledger firmware to version ${Yl} or later.`
29054
29075
  ) : t.startsWith("Unable to claim interface") ? new it(
29055
29076
  "Couldn't access Ledger device. Is it being used in another tab?"
29056
29077
  ) : t.startsWith("Transport not defined") ? new it(
@@ -29092,32 +29113,32 @@ const zy = (a) => {
29092
29113
  default:
29093
29114
  throw new it(t);
29094
29115
  }
29095
- }, qy = (a) => a.indexOf("Win") > -1, Vy = (a) => {
29116
+ }, zy = (a) => a.indexOf("Win") > -1, qy = (a) => {
29096
29117
  const t = a.toLowerCase(), e = /chrome|crios/.test(t) && !/edge|opr\//.test(t), r = e && !window.google;
29097
29118
  if (!e && !r)
29098
29119
  throw new it("This browser doesn't support Ledger devices");
29099
29120
  return e ? "chrome" : "brave";
29100
29121
  };
29101
- async function Ky() {
29122
+ async function Vy() {
29102
29123
  let a;
29103
- if (Vy(navigator.userAgent), qy(navigator.platform)) {
29124
+ if (qy(navigator.userAgent), zy(navigator.platform)) {
29104
29125
  if (!navigator.hid)
29105
29126
  throw new it(
29106
29127
  "This browser doesn't have HID enabled. Enable this feature by visiting: chrome://flags/#enable-experimental-web-platform-features"
29107
29128
  );
29108
29129
  const { default: t } = await import("./TransportWebHID-BpNQALzF.mjs");
29109
- a = await t.create(wl * 1e3);
29130
+ a = await t.create(vl * 1e3);
29110
29131
  } else {
29111
29132
  const { default: t } = await import("./TransportWebUSB-Bs9AHNsu.mjs");
29112
- a = await t.create(wl * 1e3);
29133
+ a = await t.create(vl * 1e3);
29113
29134
  }
29114
29135
  return a;
29115
29136
  }
29116
29137
  export {
29117
29138
  Qs as ABCIParams,
29118
29139
  Fn as ACL,
29119
- Kf as APIRequester,
29120
- tw as APP_KEY,
29140
+ Vf as APIRequester,
29141
+ Qv as APP_KEY,
29121
29142
  Mn as AbsoluteTxPosition,
29122
29143
  md as AccAddress,
29123
29144
  nl as AccPubKey,
@@ -29130,15 +29151,15 @@ export {
29130
29151
  Oe as AllowAllMessagesFilter,
29131
29152
  As as Allowance,
29132
29153
  Ir as AllowedMsgAllowance,
29133
- jf as AuctionAPI,
29154
+ Wf as AuctionAPI,
29134
29155
  ys as AuctionParams,
29135
- Qf as AuthAPI,
29156
+ Xf as AuthAPI,
29136
29157
  Ot as AuthInfo,
29137
29158
  _s as AuthParams,
29138
29159
  ka as Authorization,
29139
29160
  oe as AuthorizationGrant,
29140
- tg as AuthzAPI,
29141
- eg as BankAPI,
29161
+ Qf as AuthzAPI,
29162
+ tg as BankAPI,
29142
29163
  ws as BankParams,
29143
29164
  $t as BaseAccount,
29144
29165
  yt as BasicAllowance,
@@ -29149,7 +29170,7 @@ export {
29149
29170
  Zs as BlockParams,
29150
29171
  ce as BridgeConfig,
29151
29172
  ue as BridgeInfo,
29152
- gl as CHUNK_SIZE,
29173
+ fl as CHUNK_SIZE,
29153
29174
  Fa as CLA,
29154
29175
  Rt as Channel,
29155
29176
  cn as ChannelCounterparty,
@@ -29172,62 +29193,62 @@ export {
29172
29193
  En as DenomTrace,
29173
29194
  Js as DenomUnit,
29174
29195
  Ma as Deposit,
29175
- rg as DistributionAPI,
29196
+ eg as DistributionAPI,
29176
29197
  Ps as DistributionParams,
29177
29198
  F as Duration,
29178
29199
  ga as ERROR_CODE,
29179
- yl as ERROR_DESCRIPTION,
29200
+ gl as ERROR_DESCRIPTION,
29180
29201
  br as Equivocation,
29181
29202
  le as EthPublicKey,
29182
29203
  ud as EventsByType,
29183
29204
  en as Evidence,
29184
- og as EvidenceAPI,
29205
+ rg as EvidenceAPI,
29185
29206
  Ys as EvidenceParams,
29186
- sg as EvmAPI,
29207
+ og as EvmAPI,
29187
29208
  bs as EvmParams,
29188
29209
  Ee as ExecuteAuthorization,
29189
29210
  Ws as ExecuteAuthorizationItem,
29190
29211
  Nt as Fee,
29191
- ng as FeeGrantAPI,
29192
- ag as ForwardingAPI,
29212
+ sg as FeeGrantAPI,
29213
+ ng as ForwardingAPI,
29193
29214
  Ja as FungibleTokenPacketData,
29194
29215
  Se as GenericAuthorization,
29195
- ig as GovAPI,
29216
+ ag as GovAPI,
29196
29217
  ks as GovParams,
29197
- cg as GroupAPI,
29218
+ ig as GroupAPI,
29198
29219
  oo as GroupInfo,
29199
29220
  Ia as GroupMember,
29200
29221
  an as GroupPolicyInfo,
29201
29222
  xs as GroupProposal,
29202
29223
  ye as GroupVote,
29203
29224
  U as Height,
29204
- Yl as INIT_COIN_TYPE,
29225
+ Zl as INIT_COIN_TYPE,
29205
29226
  Ta as INS,
29206
- mg as IbcAPI,
29227
+ cg as IbcAPI,
29207
29228
  jn as IbcChannelParams,
29208
29229
  mn as IbcClientParams,
29209
29230
  Jn as IbcConnectionParams,
29210
29231
  _e as IbcFee,
29211
- ug as IbcHooksAPI,
29232
+ mg as IbcHooksAPI,
29212
29233
  Ms as IbcHooksParams,
29213
- dg as IbcNftAPI,
29234
+ ug as IbcNftAPI,
29214
29235
  Is as IbcNftParams,
29215
- pg as IbcPermAPI,
29216
- lg as IbcTransferAPI,
29236
+ lg as IbcPermAPI,
29237
+ dg as IbcTransferAPI,
29217
29238
  Gs as IbcTransferParams,
29218
29239
  Dt as IbcVersion,
29219
29240
  Sa as IdentifiedClientState,
29220
29241
  Gn as IdentifiedConnection,
29221
29242
  Ya as IdentifiedPacketFees,
29222
- hg as InterTxAPI,
29243
+ pg as InterTxAPI,
29223
29244
  m as JSONSerializable,
29224
- Fl as Key,
29225
- Xv as LCDClient,
29245
+ Ol as Key,
29246
+ Yv as LCDClient,
29226
29247
  it as LedgerError,
29227
- Ql as LedgerKey,
29248
+ Xl as LedgerKey,
29228
29249
  de as LegacyAminoMultisigPublicKey,
29229
29250
  ft as Market,
29230
- fg as MarketmapAPI,
29251
+ hg as MarketmapAPI,
29231
29252
  Ss as MarketmapParams,
29232
29253
  Ce as MaxCallsLimit,
29233
29254
  $e as MaxFundsLimit,
@@ -29236,11 +29257,11 @@ export {
29236
29257
  ln as MerklePrefix,
29237
29258
  cd as MerkleRoot,
29238
29259
  Za as Metadata,
29239
- ew as MnemonicKey,
29260
+ tw as MnemonicKey,
29240
29261
  J as ModeInfo,
29241
29262
  Es as Module,
29242
29263
  pe as ModuleAccount,
29243
- gg as MoveAPI,
29264
+ fg as MoveAPI,
29244
29265
  Bs as MoveParams,
29245
29266
  Q as Msg,
29246
29267
  ra as MsgAcknowledgement,
@@ -29407,20 +29428,20 @@ export {
29407
29428
  Io as MsgWhitelist,
29408
29429
  gr as MsgWithdrawDelegatorReward,
29409
29430
  yr as MsgWithdrawValidatorCommission,
29410
- yg as MstakingAPI,
29431
+ gg as MstakingAPI,
29411
29432
  Us as MstakingParams,
29412
- Jv as MultiSignature,
29433
+ Gv as MultiSignature,
29413
29434
  Tn as NftClassTrace,
29414
29435
  Xa as NonFungibleTokenPacketData,
29415
29436
  da as OpValidator,
29416
- _g as OpchildAPI,
29437
+ yg as OpchildAPI,
29417
29438
  $s as OpchildParams,
29418
- vg as OphostAPI,
29439
+ _g as OphostAPI,
29419
29440
  Cs as OphostParams,
29420
- wg as OracleAPI,
29421
- Gv as OrderBy,
29441
+ vg as OracleAPI,
29442
+ jv as OrderBy,
29422
29443
  me as Output,
29423
- Ol as P1_VALUES,
29444
+ Nl as P1_VALUES,
29424
29445
  ed as PAYLOAD_TYPE,
29425
29446
  St as Packet,
29426
29447
  we as PacketFee,
@@ -29436,32 +29457,32 @@ export {
29436
29457
  ee as PublicKey,
29437
29458
  Be as PublishAuthorization,
29438
29459
  Ba as QuotePrice,
29439
- Bg as RESTClient,
29460
+ Sg as RESTClient,
29440
29461
  Ad as RawKey,
29441
29462
  Wt as Redelegation,
29442
- Pg as RewardAPI,
29463
+ wg as RewardAPI,
29443
29464
  Ns as RewardParams,
29444
29465
  tn as RewardWeight,
29445
29466
  Ie as SendAuthorization,
29446
29467
  se as SendEnabled,
29447
- Xf as SignDoc,
29468
+ Yf as SignDoc,
29448
29469
  nt as SignatureV2,
29449
29470
  Ft as SignerInfo,
29450
29471
  pt as SimplePublicKey,
29451
29472
  mi as SimulateResponse,
29452
- bg as SlashingAPI,
29473
+ Pg as SlashingAPI,
29453
29474
  Os as SlashingParams,
29454
29475
  jt as StakeAuthorization,
29455
29476
  Kt as StakeAuthorizationValidators,
29456
- nw as State,
29477
+ sw as State,
29457
29478
  Ue as StoreCodeAuthorization,
29458
29479
  Ds as TallyResult,
29459
- Ag as TendermintAPI,
29480
+ bg as TendermintAPI,
29460
29481
  Tr as TextProposal,
29461
29482
  Kr as ThresholdDecisionPolicy,
29462
29483
  hn as Ticker,
29463
29484
  dn as Timeout,
29464
- Dg as TokenfactoryAPI,
29485
+ Ag as TokenfactoryAPI,
29465
29486
  Fs as TokenfactoryParams,
29466
29487
  Sn as TransferAuthorization,
29467
29488
  lt as Tx,
@@ -29470,7 +29491,7 @@ export {
29470
29491
  $a as TxInfo,
29471
29492
  fa as TxLog,
29472
29493
  It as UnbondingDelegation,
29473
- xg as UpgradeAPI,
29494
+ kg as UpgradeAPI,
29474
29495
  al as ValAddress,
29475
29496
  cl as ValConsAddress,
29476
29497
  ut as ValConsPublicKey,
@@ -29479,23 +29500,23 @@ export {
29479
29500
  Xs as ValidatorParams,
29480
29501
  la as ValidatorSigningInfo,
29481
29502
  on as Vote,
29482
- Ig as Wallet,
29483
- Mg as WasmAPI,
29503
+ Mg as Wallet,
29504
+ xg as WasmAPI,
29484
29505
  vs as WasmParams,
29485
- Qv as WebSocketClient,
29506
+ Xv as WebSocketClient,
29486
29507
  bt as WeightedVoteOption,
29487
- Zv as bcs,
29508
+ Jv as bcs,
29488
29509
  kn as checkDecimal,
29489
29510
  dl as fromLittleEndian,
29490
29511
  nd as hashToHex,
29491
- Yv as isTxError,
29492
- Gf as keccak256,
29512
+ Zv as isTxError,
29513
+ jf as keccak256,
29493
29514
  O as num,
29494
29515
  ci as prepareSignBytes,
29495
- Wf as removeNull,
29496
- Jf as ripemd160,
29516
+ Kf as removeNull,
29517
+ Gf as ripemd160,
29497
29518
  pd as sha256,
29498
- aw as stateFromJSON,
29499
- iw as stateToJSON,
29519
+ nw as stateFromJSON,
29520
+ aw as stateToJSON,
29500
29521
  ul as toLittleEndian
29501
29522
  };