@initia/initia.js 0.2.31 → 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()));
@@ -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
  });
@@ -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,
@@ -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()
@@ -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
  });
@@ -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
  });
@@ -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.
@@ -25534,7 +25534,7 @@ class yg extends W {
25534
25534
  return this.c.get("/initia/mstaking/v1/params", t).then((e) => Us.fromData(e.params));
25535
25535
  }
25536
25536
  }
25537
- class _g extends W {
25537
+ class yg extends W {
25538
25538
  /**
25539
25539
  * Query all validators.
25540
25540
  */
@@ -25580,7 +25580,7 @@ class _g extends W {
25580
25580
  return this.c.get("/opinit/opchild/v1/params", t).then((e) => $s.fromData(e.params));
25581
25581
  }
25582
25582
  }
25583
- class vg extends W {
25583
+ class _g extends W {
25584
25584
  /**
25585
25585
  * Query all bridge infos.
25586
25586
  */
@@ -25700,7 +25700,7 @@ class vg extends W {
25700
25700
  return this.c.get("/opinit/ophost/v1/params", t).then((e) => Cs.fromData(e.params));
25701
25701
  }
25702
25702
  }
25703
- class wg extends W {
25703
+ class vg extends W {
25704
25704
  /**
25705
25705
  * Query all the currency pairs the oracle module is tracking price-data for.
25706
25706
  */
@@ -25718,7 +25718,7 @@ class wg extends W {
25718
25718
  }).then((r) => Ba.fromData(r.price));
25719
25719
  }
25720
25720
  }
25721
- class Pg extends W {
25721
+ class wg extends W {
25722
25722
  /**
25723
25723
  * Query the last release rate dilution timestamp.
25724
25724
  */
@@ -25738,7 +25738,7 @@ class Pg extends W {
25738
25738
  return this.c.get("/initia/reward/v1/params", t).then((e) => Ns.fromData(e.params));
25739
25739
  }
25740
25740
  }
25741
- class bg extends W {
25741
+ class Pg extends W {
25742
25742
  /**
25743
25743
  * Query the signing infos of all validators.
25744
25744
  */
@@ -25759,7 +25759,7 @@ class bg extends W {
25759
25759
  return this.c.get("/cosmos/slashing/v1beta1/params", t).then((e) => Os.fromData(e.params));
25760
25760
  }
25761
25761
  }
25762
- class Ag extends W {
25762
+ class bg extends W {
25763
25763
  /**
25764
25764
  * Query the node's information.
25765
25765
  */
@@ -25798,7 +25798,7 @@ class Ag extends W {
25798
25798
  return this.c.getRaw(r, e);
25799
25799
  }
25800
25800
  }
25801
- class Dg extends W {
25801
+ class Ag extends W {
25802
25802
  /**
25803
25803
  * Query the authority metadata for a specific denom.
25804
25804
  * @param denom denom to query
@@ -25834,7 +25834,7 @@ const ml = (a) => qt.bytes(32, a).transform({
25834
25834
  return Buffer.from(t, "hex");
25835
25835
  },
25836
25836
  output: (t) => `0x${Buffer.from(t).toString("hex")}`
25837
- }), kg = {
25837
+ }), Dg = {
25838
25838
  /**
25839
25839
  * Creates a BcsType that can be used to read and write an address.
25840
25840
  * @example
@@ -25909,9 +25909,9 @@ const ml = (a) => qt.bytes(32, a).transform({
25909
25909
  return O(e).div(new dt("1000000000000000000")).toNumber();
25910
25910
  }
25911
25911
  })
25912
- }, Zv = {
25912
+ }, Jv = {
25913
25913
  ...qt,
25914
- ...kg
25914
+ ...Dg
25915
25915
  };
25916
25916
  function ul(a) {
25917
25917
  const t = [];
@@ -25925,7 +25925,7 @@ function dl(a) {
25925
25925
  t = t * 256n + BigInt(a.pop());
25926
25926
  return t;
25927
25927
  }
25928
- function Yv(a) {
25928
+ function Zv(a) {
25929
25929
  return a.code !== void 0 && a.code !== 0 && a.code !== "0";
25930
25930
  }
25931
25931
  class mi {
@@ -26003,6 +26003,7 @@ class xn extends W {
26003
26003
  * @param options options for fee estimation
26004
26004
  */
26005
26005
  async estimateFee(t, e) {
26006
+ this.rest.config.gasPrices || (this.rest.config.gasPrices = await this.rest.gasPrices());
26006
26007
  const r = e.gasPrices ?? this.rest.config.gasPrices, o = e.gasAdjustment ?? this.rest.config.gasAdjustment, s = e.feeDenoms ?? ["uinit"];
26007
26008
  let n = e.gas, i;
26008
26009
  if (r && (i = new l(r), s)) {
@@ -26212,7 +26213,7 @@ class xn extends W {
26212
26213
  return this.c.get(`/initia/tx/v1/gas_prices/${t}`, e).then((r) => I.fromData(r.gas_price));
26213
26214
  }
26214
26215
  }
26215
- class xg extends W {
26216
+ class kg extends W {
26216
26217
  /**
26217
26218
  * Query a previously applied upgrade plan by its name.
26218
26219
  * It returns the height of the plan. If there's no plan with given name, it returns 0.
@@ -26236,7 +26237,7 @@ class xg extends W {
26236
26237
  );
26237
26238
  }
26238
26239
  }
26239
- class Mg extends W {
26240
+ class xg extends W {
26240
26241
  /**
26241
26242
  * Query the contract metadata.
26242
26243
  * @param address the address of the contract to query
@@ -26259,7 +26260,7 @@ class Mg extends W {
26259
26260
  async contractHistory(t, e = {}) {
26260
26261
  return this.c.get(`/cosmwasm/wasm/v1/contract/${t}/history`, e).then((r) => [
26261
26262
  r.entries.map((o) => ({
26262
- operation: Rp(o.operation),
26263
+ operation: Tp(o.operation),
26263
26264
  code_id: parseInt(o.code_id),
26264
26265
  updated: Mn.fromData(o.updated),
26265
26266
  msg: o.msg
@@ -26350,7 +26351,7 @@ class Mg extends W {
26350
26351
  return this.c.get(`/cosmwasm/wasm/v1/contracts/creator/${t}`, e).then((r) => [r.contract_addresses, r.pagination]);
26351
26352
  }
26352
26353
  }
26353
- class Ig {
26354
+ class Mg {
26354
26355
  constructor(t, e) {
26355
26356
  _(this, "accAddress");
26356
26357
  /**
@@ -26403,14 +26404,10 @@ class Ig {
26403
26404
  });
26404
26405
  }
26405
26406
  }
26406
- const Sg = {
26407
+ const Ig = {
26407
26408
  gasAdjustment: "1.75"
26408
- }, ll = {
26409
- default: {
26410
- uinit: 0.15
26411
- }
26412
26409
  };
26413
- class Bg {
26410
+ class Sg {
26414
26411
  /**
26415
26412
  * @param config REST configuration
26416
26413
  */
@@ -26450,21 +26447,36 @@ class Bg {
26450
26447
  _(this, "upgrade");
26451
26448
  _(this, "wasm");
26452
26449
  this.URL = t, this.config = {
26453
- ...Sg,
26454
- gasPrices: ((e == null ? void 0 : e.chainId) && ll[e.chainId]) ?? ll.default,
26450
+ ...Ig,
26455
26451
  ...e
26456
- }, 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);
26457
26453
  }
26458
26454
  /**
26459
26455
  * Creates a new wallet with the Key.
26460
26456
  */
26461
26457
  wallet(t) {
26462
- 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
+ }
26463
26475
  }
26464
26476
  }
26465
- class Xv extends Bg {
26477
+ class Yv extends Sg {
26466
26478
  }
26467
- function Eg(a) {
26479
+ function Bg(a) {
26468
26480
  if (a.__esModule) return a;
26469
26481
  var t = a.default;
26470
26482
  if (typeof t == "function") {
@@ -26483,7 +26495,7 @@ function Eg(a) {
26483
26495
  });
26484
26496
  }), e;
26485
26497
  }
26486
- 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) {
26487
26499
  return Function.prototype.apply.call(t, e, r);
26488
26500
  }, ti;
26489
26501
  pa && typeof pa.ownKeys == "function" ? ti = pa.ownKeys : Object.getOwnPropertySymbols ? ti = function(t) {
@@ -26491,22 +26503,22 @@ pa && typeof pa.ownKeys == "function" ? ti = pa.ownKeys : Object.getOwnPropertyS
26491
26503
  } : ti = function(t) {
26492
26504
  return Object.getOwnPropertyNames(t);
26493
26505
  };
26494
- function Ug(a) {
26506
+ function Eg(a) {
26495
26507
  console && console.warn && console.warn(a);
26496
26508
  }
26497
- var Il = Number.isNaN || function(t) {
26509
+ var Ml = Number.isNaN || function(t) {
26498
26510
  return t !== t;
26499
26511
  };
26500
26512
  function Y() {
26501
26513
  Y.init.call(this);
26502
26514
  }
26503
26515
  hd.exports = Y;
26504
- hd.exports.once = Og;
26516
+ hd.exports.once = Ng;
26505
26517
  Y.EventEmitter = Y;
26506
26518
  Y.prototype._events = void 0;
26507
26519
  Y.prototype._eventsCount = 0;
26508
26520
  Y.prototype._maxListeners = void 0;
26509
- var hl = 10;
26521
+ var pl = 10;
26510
26522
  function li(a) {
26511
26523
  if (typeof a != "function")
26512
26524
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof a);
@@ -26514,27 +26526,27 @@ function li(a) {
26514
26526
  Object.defineProperty(Y, "defaultMaxListeners", {
26515
26527
  enumerable: !0,
26516
26528
  get: function() {
26517
- return hl;
26529
+ return pl;
26518
26530
  },
26519
26531
  set: function(a) {
26520
- if (typeof a != "number" || a < 0 || Il(a))
26532
+ if (typeof a != "number" || a < 0 || Ml(a))
26521
26533
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + ".");
26522
- hl = a;
26534
+ pl = a;
26523
26535
  }
26524
26536
  });
26525
26537
  Y.init = function() {
26526
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;
26527
26539
  };
26528
26540
  Y.prototype.setMaxListeners = function(t) {
26529
- if (typeof t != "number" || t < 0 || Il(t))
26541
+ if (typeof t != "number" || t < 0 || Ml(t))
26530
26542
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
26531
26543
  return this._maxListeners = t, this;
26532
26544
  };
26533
- function Sl(a) {
26545
+ function Il(a) {
26534
26546
  return a._maxListeners === void 0 ? Y.defaultMaxListeners : a._maxListeners;
26535
26547
  }
26536
26548
  Y.prototype.getMaxListeners = function() {
26537
- return Sl(this);
26549
+ return Il(this);
26538
26550
  };
26539
26551
  Y.prototype.emit = function(t) {
26540
26552
  for (var e = [], r = 1; r < arguments.length; r++) e.push(arguments[r]);
@@ -26554,13 +26566,13 @@ Y.prototype.emit = function(t) {
26554
26566
  if (c === void 0)
26555
26567
  return !1;
26556
26568
  if (typeof c == "function")
26557
- pl(c, this, e);
26569
+ ll(c, this, e);
26558
26570
  else
26559
- for (var d = c.length, g = $l(c, d), r = 0; r < d; ++r)
26560
- 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);
26561
26573
  return !0;
26562
26574
  };
26563
- function Bl(a, t, e, r) {
26575
+ function Sl(a, t, e, r) {
26564
26576
  var o, s, n;
26565
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(
26566
26578
  "newListener",
@@ -26568,33 +26580,33 @@ function Bl(a, t, e, r) {
26568
26580
  e.listener ? e.listener : e
26569
26581
  ), s = a._events), n = s[t]), n === void 0)
26570
26582
  n = s[t] = e, ++a._eventsCount;
26571
- 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) {
26572
26584
  n.warned = !0;
26573
26585
  var i = new Error("Possible EventEmitter memory leak detected. " + n.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
26574
- 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);
26575
26587
  }
26576
26588
  return a;
26577
26589
  }
26578
26590
  Y.prototype.addListener = function(t, e) {
26579
- return Bl(this, t, e, !1);
26591
+ return Sl(this, t, e, !1);
26580
26592
  };
26581
26593
  Y.prototype.on = Y.prototype.addListener;
26582
26594
  Y.prototype.prependListener = function(t, e) {
26583
- return Bl(this, t, e, !0);
26595
+ return Sl(this, t, e, !0);
26584
26596
  };
26585
- function Cg() {
26597
+ function Ug() {
26586
26598
  if (!this.fired)
26587
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);
26588
26600
  }
26589
- function El(a, t, e) {
26590
- 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);
26591
26603
  return o.listener = e, r.wrapFn = o, o;
26592
26604
  }
26593
26605
  Y.prototype.once = function(t, e) {
26594
- return li(e), this.on(t, El(this, t, e)), this;
26606
+ return li(e), this.on(t, Bl(this, t, e)), this;
26595
26607
  };
26596
26608
  Y.prototype.prependOnceListener = function(t, e) {
26597
- return li(e), this.prependListener(t, El(this, t, e)), this;
26609
+ return li(e), this.prependListener(t, Bl(this, t, e)), this;
26598
26610
  };
26599
26611
  Y.prototype.removeListener = function(t, e) {
26600
26612
  var r, o, s, n, i;
@@ -26612,7 +26624,7 @@ Y.prototype.removeListener = function(t, e) {
26612
26624
  }
26613
26625
  if (s < 0)
26614
26626
  return this;
26615
- 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);
26616
26628
  }
26617
26629
  return this;
26618
26630
  };
@@ -26636,24 +26648,24 @@ Y.prototype.removeAllListeners = function(t) {
26636
26648
  this.removeListener(t, e[o]);
26637
26649
  return this;
26638
26650
  };
26639
- function Ul(a, t, e) {
26651
+ function El(a, t, e) {
26640
26652
  var r = a._events;
26641
26653
  if (r === void 0)
26642
26654
  return [];
26643
26655
  var o = r[t];
26644
- 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);
26645
26657
  }
26646
26658
  Y.prototype.listeners = function(t) {
26647
- return Ul(this, t, !0);
26659
+ return El(this, t, !0);
26648
26660
  };
26649
26661
  Y.prototype.rawListeners = function(t) {
26650
- return Ul(this, t, !1);
26662
+ return El(this, t, !1);
26651
26663
  };
26652
26664
  Y.listenerCount = function(a, t) {
26653
- 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);
26654
26666
  };
26655
- Y.prototype.listenerCount = Cl;
26656
- function Cl(a) {
26667
+ Y.prototype.listenerCount = Ul;
26668
+ function Ul(a) {
26657
26669
  var t = this._events;
26658
26670
  if (t !== void 0) {
26659
26671
  var e = t[a];
@@ -26667,22 +26679,22 @@ function Cl(a) {
26667
26679
  Y.prototype.eventNames = function() {
26668
26680
  return this._eventsCount > 0 ? ti(this._events) : [];
26669
26681
  };
26670
- function $l(a, t) {
26682
+ function Cl(a, t) {
26671
26683
  for (var e = new Array(t), r = 0; r < t; ++r)
26672
26684
  e[r] = a[r];
26673
26685
  return e;
26674
26686
  }
26675
- function $g(a, t) {
26687
+ function Cg(a, t) {
26676
26688
  for (; t + 1 < a.length; t++)
26677
26689
  a[t] = a[t + 1];
26678
26690
  a.pop();
26679
26691
  }
26680
- function Ng(a) {
26692
+ function $g(a) {
26681
26693
  for (var t = new Array(a.length), e = 0; e < t.length; ++e)
26682
26694
  t[e] = a[e].listener || a[e];
26683
26695
  return t;
26684
26696
  }
26685
- function Og(a, t) {
26697
+ function Ng(a, t) {
26686
26698
  return new Promise(function(e, r) {
26687
26699
  function o(n) {
26688
26700
  a.removeListener(t, s), r(n);
@@ -26690,13 +26702,13 @@ function Og(a, t) {
26690
26702
  function s() {
26691
26703
  typeof a.removeListener == "function" && a.removeListener("error", o), e([].slice.call(arguments));
26692
26704
  }
26693
- 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 });
26694
26706
  });
26695
26707
  }
26696
- function Fg(a, t, e) {
26697
- 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);
26698
26710
  }
26699
- function Nl(a, t, e, r) {
26711
+ function $l(a, t, e, r) {
26700
26712
  if (typeof a.on == "function")
26701
26713
  r.once ? a.once(t, e) : a.on(t, e);
26702
26714
  else if (typeof a.addEventListener == "function")
@@ -26706,9 +26718,9 @@ function Nl(a, t, e, r) {
26706
26718
  else
26707
26719
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a);
26708
26720
  }
26709
- var Tg = hd.exports;
26710
- const fl = (a) => a.replace(/'/g, "\\'");
26711
- function Rg(a) {
26721
+ var Fg = hd.exports;
26722
+ const hl = (a) => a.replace(/'/g, "\\'");
26723
+ function Tg(a) {
26712
26724
  const t = [];
26713
26725
  for (const e of Object.keys(a)) {
26714
26726
  let r;
@@ -26722,7 +26734,7 @@ function Rg(a) {
26722
26734
  typeof o[1] != "number" ? r = `${e}${o[0]}${o[1].toISOString()}` : r = `${e}${o[0]}${o[1]}`;
26723
26735
  break;
26724
26736
  case "CONTAINS":
26725
- r = `${e} CONTAINS '${fl(o[1])}'`;
26737
+ r = `${e} CONTAINS '${hl(o[1])}'`;
26726
26738
  break;
26727
26739
  case "EXISTS":
26728
26740
  r = `${e} EXISTS`;
@@ -26734,7 +26746,7 @@ function Rg(a) {
26734
26746
  r = `${e}=${o}`;
26735
26747
  break;
26736
26748
  case "string":
26737
- r = `${e}='${fl(o)}'`;
26749
+ r = `${e}='${hl(o)}'`;
26738
26750
  break;
26739
26751
  default:
26740
26752
  r = `${e}=${o.toISOString()}`;
@@ -26743,7 +26755,7 @@ function Rg(a) {
26743
26755
  }
26744
26756
  return t.join(" AND ");
26745
26757
  }
26746
- class Qv extends Tg.EventEmitter {
26758
+ class Xv extends Fg.EventEmitter {
26747
26759
  /**
26748
26760
  * WebSocketClient constructor
26749
26761
  * @param URL the websocket endpoint URL on the Tendermint RPC server
@@ -26769,7 +26781,7 @@ class Qv extends Tg.EventEmitter {
26769
26781
  this.shouldAttemptReconnect = !1, this.reconnectTimeoutId && clearTimeout(this.reconnectTimeoutId), this.socket && this.socket.close();
26770
26782
  }
26771
26783
  start() {
26772
- 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 = () => {
26773
26785
  };
26774
26786
  }
26775
26787
  onOpen() {
@@ -26804,7 +26816,7 @@ class Qv extends Tg.EventEmitter {
26804
26816
  }, this.reconnectInterval)) : this.emit("destroyed");
26805
26817
  }
26806
26818
  subscribe(e, r, o) {
26807
- this.queryParams = Rg({
26819
+ this.queryParams = Tg({
26808
26820
  "tm.event": e,
26809
26821
  ...r
26810
26822
  }), this.callback = o;
@@ -26814,10 +26826,10 @@ class Qv extends Tg.EventEmitter {
26814
26826
  this.subscribe("Tx", e, o);
26815
26827
  }
26816
26828
  }
26817
- const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26829
+ const Rg = {}, Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26818
26830
  __proto__: null,
26819
- default: Lg
26820
- }, 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 = {
26821
26833
  GET_VERSION: 0,
26822
26834
  INS_PUBLIC_KEY_SECP256K1: 1,
26823
26835
  // Obsolete
@@ -26827,12 +26839,12 @@ const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
26827
26839
  INIT: 0,
26828
26840
  ADD: 1,
26829
26841
  LAST: 2
26830
- }, Ol = {
26842
+ }, Nl = {
26831
26843
  ONLY_RETRIEVE: 0,
26832
26844
  SHOW_ADDRESS_IN_DEVICE: 1
26833
26845
  }, ga = {
26834
26846
  NoError: 36864
26835
- }, yl = {
26847
+ }, gl = {
26836
26848
  1: "U2F: Unknown",
26837
26849
  2: "U2F: Bad request",
26838
26850
  3: "U2F: Configuration unsupported",
@@ -26858,14 +26870,14 @@ const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
26858
26870
  28417: "Sign/verify error"
26859
26871
  };
26860
26872
  function gn(a) {
26861
- return a in yl ? yl[a] : `Unknown Status Code: ${a}`;
26873
+ return a in gl ? gl[a] : `Unknown Status Code: ${a}`;
26862
26874
  }
26863
- function zg(a) {
26875
+ function Hg(a) {
26864
26876
  return typeof a == "object" && a !== null && !(a instanceof Array) && !(a instanceof Date);
26865
26877
  }
26866
26878
  function Hs(a) {
26867
26879
  if (a) {
26868
- if (zg(a)) {
26880
+ if (Hg(a)) {
26869
26881
  if (Object.prototype.hasOwnProperty.call(a, "statusCode"))
26870
26882
  return {
26871
26883
  return_code: a.statusCode,
@@ -26894,7 +26906,7 @@ function ei(a) {
26894
26906
  const t = Buffer.alloc(20);
26895
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;
26896
26908
  }
26897
- async function qg(a) {
26909
+ async function zg(a) {
26898
26910
  return a.send(Fa, Ta.GET_VERSION, 0, 0).then((t) => {
26899
26911
  const e = t.slice(-2), r = e[0] * 256 + e[1];
26900
26912
  let o = 0;
@@ -26911,7 +26923,7 @@ async function qg(a) {
26911
26923
  };
26912
26924
  }).catch(Hs);
26913
26925
  }
26914
- async function Vg(a) {
26926
+ async function qg(a) {
26915
26927
  return a.send(176, 1, 0, 0).then((t) => {
26916
26928
  const e = t.slice(-2);
26917
26929
  let r = e[0] * 256 + e[1], o, s = "err", n = "err", i = 0, c = 0;
@@ -26946,7 +26958,7 @@ async function Vg(a) {
26946
26958
  };
26947
26959
  }).catch(Hs);
26948
26960
  }
26949
- async function Kg(a) {
26961
+ async function Vg(a) {
26950
26962
  return a.send(224, 1, 0, 0, Buffer.from([]), [ga.NoError, 28160]).then((t) => {
26951
26963
  const e = t.slice(-2), r = e[0] * 256 + e[1];
26952
26964
  if (r === 28160)
@@ -26980,7 +26992,7 @@ async function Kg(a) {
26980
26992
  };
26981
26993
  }).catch(Hs);
26982
26994
  }
26983
- async function Wg(a, t) {
26995
+ async function Kg(a, t) {
26984
26996
  return a.send(Fa, Ta.GET_ADDR_SECP256K1, 0, 0, t, [ga.NoError]).then((e) => {
26985
26997
  const r = e.slice(-2), o = r[0] * 256 + r[1], s = e ? Buffer.from(e.slice(0, 33)) : null;
26986
26998
  return {
@@ -26991,8 +27003,8 @@ async function Wg(a, t) {
26991
27003
  };
26992
27004
  }).catch(Hs);
26993
27005
  }
26994
- async function jg(a, t) {
26995
- 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, [
26996
27008
  ga.NoError
26997
27009
  ]).then((e) => {
26998
27010
  const r = e.slice(-2), o = r[0] * 256 + r[1], s = Buffer.from(e.slice(0, 33));
@@ -27004,11 +27016,11 @@ async function jg(a, t) {
27004
27016
  };
27005
27017
  }).catch(Hs);
27006
27018
  }
27007
- async function Gg(a, t) {
27019
+ async function jg(a, t) {
27008
27020
  return a.send(
27009
27021
  Fa,
27010
27022
  Ta.GET_ADDR_SECP256K1,
27011
- Ol.SHOW_ADDRESS_IN_DEVICE,
27023
+ Nl.SHOW_ADDRESS_IN_DEVICE,
27012
27024
  0,
27013
27025
  t,
27014
27026
  [ga.NoError]
@@ -27022,19 +27034,19 @@ async function Gg(a, t) {
27022
27034
  };
27023
27035
  }).catch(Hs);
27024
27036
  }
27025
- function Jg(a, t) {
27037
+ function Gg(a, t) {
27026
27038
  const e = ei(a), r = [];
27027
27039
  if (e instanceof Buffer) {
27028
27040
  r.push(e);
27029
27041
  const o = Buffer.from(t);
27030
- for (let s = 0; s < o.length; s += gl) {
27031
- let n = s + gl;
27042
+ for (let s = 0; s < o.length; s += fl) {
27043
+ let n = s + fl;
27032
27044
  s > o.length && (n = o.length), r.push(o.slice(s, n));
27033
27045
  }
27034
27046
  }
27035
27047
  return r;
27036
27048
  }
27037
- async function _l(a, t, e, r) {
27049
+ async function yl(a, t, e, r) {
27038
27050
  let o = ed.ADD;
27039
27051
  return t === 1 && (o = ed.INIT), t === e && (o = ed.LAST), a.send(Fa, Ta.SIGN_SECP256K1, o, 0, r, [
27040
27052
  ga.NoError,
@@ -27052,15 +27064,15 @@ async function _l(a, t, e, r) {
27052
27064
  };
27053
27065
  }).catch(Hs);
27054
27066
  }
27055
- async function Zg(a, t, e) {
27056
- const r = Jg(t, e);
27057
- 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) => {
27058
27070
  let s = {
27059
27071
  return_code: o.return_code,
27060
27072
  error_message: o.error_message,
27061
27073
  signature: { type: "Buffer", data: [] }
27062
27074
  };
27063
- 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)
27064
27076
  ;
27065
27077
  return {
27066
27078
  return_code: s.return_code,
@@ -27069,7 +27081,7 @@ async function Zg(a, t, e) {
27069
27081
  };
27070
27082
  }).catch(Hs);
27071
27083
  }
27072
- const Yg = "Initia", Xg = "Cosmos";
27084
+ const Zg = "Initia", Yg = "Cosmos";
27073
27085
  class Ua {
27074
27086
  constructor(t) {
27075
27087
  _(this, "transport");
@@ -27088,7 +27100,7 @@ class Ua {
27088
27100
  static getBech32FromPK(t, e) {
27089
27101
  if (e.length !== 33)
27090
27102
  throw new Error("expected compressed public key [31 bytes]");
27091
- 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();
27092
27104
  return G.encode(t, G.toWords(o));
27093
27105
  }
27094
27106
  validateCompatibility() {
@@ -27097,7 +27109,7 @@ class Ua {
27097
27109
  return this.info;
27098
27110
  if (this.version.return_code !== 36864)
27099
27111
  return this.version;
27100
- 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)
27101
27113
  return;
27102
27114
  }
27103
27115
  return {
@@ -27109,7 +27121,7 @@ class Ua {
27109
27121
  * @returns CommonResponse returns CommonResponse if app is not compatible
27110
27122
  */
27111
27123
  async initialize() {
27112
- 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()));
27113
27125
  }
27114
27126
  getInfo() {
27115
27127
  return this.info;
@@ -27118,25 +27130,25 @@ class Ua {
27118
27130
  return this.version;
27119
27131
  }
27120
27132
  getDeviceInfo() {
27121
- return Kg(this.transport);
27133
+ return Vg(this.transport);
27122
27134
  }
27123
27135
  getPublicKey(t) {
27124
27136
  const e = ei(t), r = Buffer.concat([Ua.serializeHRP("init"), e]);
27125
- return Wg(this.transport, r);
27137
+ return Kg(this.transport, r);
27126
27138
  }
27127
27139
  getAddressAndPubKey(t, e) {
27128
27140
  const r = ei(t), o = Buffer.concat([Ua.serializeHRP(e), r]);
27129
- return jg(this.transport, o);
27141
+ return Wg(this.transport, o);
27130
27142
  }
27131
27143
  showAddressAndPubKey(t, e) {
27132
27144
  const r = ei(t), o = Buffer.concat([Ua.serializeHRP(e), r]);
27133
- return Gg(this.transport, o);
27145
+ return jg(this.transport, o);
27134
27146
  }
27135
27147
  sign(t, e) {
27136
- return Zg(this.transport, t, e);
27148
+ return Jg(this.transport, t, e);
27137
27149
  }
27138
27150
  }
27139
- class Fl {
27151
+ class Ol {
27140
27152
  /**
27141
27153
  * Called to derive the relevant account and validator addresses and public keys from
27142
27154
  * the raw compressed public key in bytes.
@@ -27246,7 +27258,7 @@ class Fl {
27246
27258
  * @param tx
27247
27259
  */
27248
27260
  async signTx(t, e) {
27249
- 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(
27250
27262
  e.chainId,
27251
27263
  e.accountNumber,
27252
27264
  e.sequence,
@@ -27273,12 +27285,12 @@ class Fl {
27273
27285
  ), r;
27274
27286
  }
27275
27287
  }
27276
- var st = {}, Tl = {};
27277
- const Qg = /* @__PURE__ */ Eg(Hg);
27288
+ var st = {}, Fl = {};
27289
+ const Xg = /* @__PURE__ */ Bg(Lg);
27278
27290
  (function(a) {
27279
27291
  /*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
27280
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;
27281
- 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({
27282
27294
  a: e,
27283
27295
  b: BigInt(7),
27284
27296
  P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
@@ -27324,7 +27336,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27324
27336
  return u.equals(R.ZERO) ? S.ZERO : new S(u.x, u.y, r);
27325
27337
  }
27326
27338
  static toAffineBatch(u) {
27327
- const p = ep(u.map((y) => y.z));
27339
+ const p = tp(u.map((y) => y.z));
27328
27340
  return u.map((y, w) => y.toAffine(p[w]));
27329
27341
  }
27330
27342
  static normalizeZ(u) {
@@ -27449,7 +27461,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27449
27461
  if (!Va(y))
27450
27462
  throw new Error("Point is not on curve");
27451
27463
  const w = $(y);
27452
- let P = tp(w);
27464
+ let P = Ql(w);
27453
27465
  const D = (P & r) === r;
27454
27466
  p ? D && (P = x(-P)) : (u[0] & 1) === 1 !== D && (P = x(-P));
27455
27467
  const M = new R(y, P);
@@ -27689,7 +27701,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27689
27701
  y *= y, y %= p;
27690
27702
  return y;
27691
27703
  }
27692
- function tp(h) {
27704
+ function Ql(h) {
27693
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);
27694
27706
  if (wa * wa % u !== h)
27695
27707
  throw new Error("Cannot find square root");
@@ -27707,16 +27719,16 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27707
27719
  throw new Error("invert: does not exist");
27708
27720
  return x(w, u);
27709
27721
  }
27710
- function ep(h, u = i.P) {
27722
+ function tp(h, u = i.P) {
27711
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);
27712
27724
  return h.reduceRight((P, D, M) => D === e ? P : (p[M] = x(P * p[M], u), x(P * D, u)), w), p;
27713
27725
  }
27714
- function rp(h) {
27726
+ function ep(h) {
27715
27727
  const u = h.length * 8 - v * 8, p = gt(h);
27716
27728
  return u > 0 ? p >> BigInt(u) : p;
27717
27729
  }
27718
27730
  function yi(h, u = !1) {
27719
- const p = rp(h);
27731
+ const p = ep(h);
27720
27732
  if (u)
27721
27733
  return p;
27722
27734
  const { n: y } = i;
@@ -27826,19 +27838,19 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27826
27838
  return Et.fromCompact(h);
27827
27839
  }
27828
27840
  }
27829
- function op(h, u = !1) {
27841
+ function rp(h, u = !1) {
27830
27842
  return R.fromPrivateKey(h).toRawBytes(u);
27831
27843
  }
27832
- a.getPublicKey = op;
27833
- function sp(h, u, p, y = !1) {
27844
+ a.getPublicKey = rp;
27845
+ function op(h, u, p, y = !1) {
27834
27846
  return R.fromSignature(h, u, p).toRawBytes(y);
27835
27847
  }
27836
- a.recoverPublicKey = sp;
27848
+ a.recoverPublicKey = op;
27837
27849
  function Id(h) {
27838
27850
  const u = h instanceof Uint8Array, p = typeof h == "string", y = (u || p) && h.length;
27839
27851
  return u ? y === k || y === E : p ? y === k * 2 || y === E * 2 : h instanceof R;
27840
27852
  }
27841
- function np(h, u, p = !1) {
27853
+ function sp(h, u, p = !1) {
27842
27854
  if (Id(h))
27843
27855
  throw new TypeError("getSharedSecret: first arg must be private key");
27844
27856
  if (!Id(u))
@@ -27846,12 +27858,12 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27846
27858
  const y = _i(u);
27847
27859
  return y.assertValidity(), y.multiply(Ks(h)).toRawBytes(p);
27848
27860
  }
27849
- a.getSharedSecret = np;
27861
+ a.getSharedSecret = sp;
27850
27862
  function Sd(h) {
27851
27863
  const u = h.length > g ? h.slice(0, g) : h;
27852
27864
  return gt(u);
27853
27865
  }
27854
- function ap(h) {
27866
+ function np(h) {
27855
27867
  const u = Sd(h), p = x(u, i.n);
27856
27868
  return Bd(p < e ? u : p);
27857
27869
  }
@@ -27861,7 +27873,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27861
27873
  function Ed(h, u, p) {
27862
27874
  if (h == null)
27863
27875
  throw new Error(`sign: expected valid message hash, not "${h}"`);
27864
- 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)];
27865
27877
  if (p != null) {
27866
27878
  p === !0 && (p = a.utils.randomBytes(g));
27867
27879
  const N = zt(p);
@@ -27876,7 +27888,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27876
27888
  const { sig: p, recovery: y } = h, { der: w, recovered: P } = Object.assign({ canonical: !0, der: !0 }, u), D = w ? p.toDERRawBytes() : p.toCompactRawBytes();
27877
27889
  return P ? [D, y] : D;
27878
27890
  }
27879
- async function ip(h, u, p = {}) {
27891
+ async function ap(h, u, p = {}) {
27880
27892
  const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
27881
27893
  await D.reseed(y);
27882
27894
  let M;
@@ -27884,8 +27896,8 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27884
27896
  await D.reseed();
27885
27897
  return Ud(M, p);
27886
27898
  }
27887
- a.sign = ip;
27888
- function cp(h, u, p = {}) {
27899
+ a.sign = ap;
27900
+ function ip(h, u, p = {}) {
27889
27901
  const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
27890
27902
  D.reseedSync(y);
27891
27903
  let M;
@@ -27893,9 +27905,9 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27893
27905
  D.reseedSync();
27894
27906
  return Ud(M, p);
27895
27907
  }
27896
- a.signSync = cp;
27897
- const mp = { strict: !0 };
27898
- function up(h, u, p, y = mp) {
27908
+ a.signSync = ip;
27909
+ const cp = { strict: !0 };
27910
+ function mp(h, u, p, y = cp) {
27899
27911
  let w;
27900
27912
  try {
27901
27913
  w = Md(h), u = zt(u);
@@ -27915,7 +27927,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27915
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);
27916
27928
  return mt ? x(mt.x, B) === P : !1;
27917
27929
  }
27918
- a.verify = up;
27930
+ a.verify = mp;
27919
27931
  function Ka(h) {
27920
27932
  return x(gt(h), i.n);
27921
27933
  }
@@ -27942,7 +27954,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27942
27954
  return Ut(this.toHex());
27943
27955
  }
27944
27956
  }
27945
- function dp(h) {
27957
+ function up(h) {
27946
27958
  return R.fromPrivateKey(h).toRawX();
27947
27959
  }
27948
27960
  class Cd {
@@ -27983,10 +27995,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
27983
27995
  return Fd(H, u, y) || this.error(), H;
27984
27996
  }
27985
27997
  }
27986
- async function lp(h, u, p) {
27998
+ async function dp(h, u, p) {
27987
27999
  return new Cd(h, u, p).calc();
27988
28000
  }
27989
- function pp(h, u, p) {
28001
+ function lp(h, u, p) {
27990
28002
  return new Cd(h, u, p).calcSync();
27991
28003
  }
27992
28004
  function $d(h, u, p) {
@@ -28021,10 +28033,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
28021
28033
  }
28022
28034
  a.schnorr = {
28023
28035
  Signature: Pn,
28024
- getPublicKey: dp,
28025
- sign: lp,
28036
+ getPublicKey: up,
28037
+ sign: dp,
28026
28038
  verify: Od,
28027
- signSync: pp,
28039
+ signSync: lp,
28028
28040
  verifySync: Fd
28029
28041
  }, R.BASE._setWindowSize(8);
28030
28042
  const wt = {
@@ -28133,52 +28145,52 @@ const Qg = /* @__PURE__ */ Eg(Hg);
28133
28145
  }
28134
28146
  }
28135
28147
  });
28136
- })(Tl);
28137
- var Rl = {}, Bt = {};
28148
+ })(Fl);
28149
+ var Tl = {}, Bt = {};
28138
28150
  Object.defineProperty(Bt, "__esModule", { value: !0 });
28139
- Bt.isBytes = Hl;
28151
+ Bt.isBytes = Ll;
28140
28152
  Bt.number = ui;
28141
- Bt.bool = Ll;
28153
+ Bt.bool = Rl;
28142
28154
  Bt.bytes = fd;
28143
- Bt.hash = zl;
28144
- Bt.exists = ql;
28145
- Bt.output = Vl;
28155
+ Bt.hash = Hl;
28156
+ Bt.exists = zl;
28157
+ Bt.output = ql;
28146
28158
  function ui(a) {
28147
28159
  if (!Number.isSafeInteger(a) || a < 0)
28148
28160
  throw new Error(`positive integer expected, not ${a}`);
28149
28161
  }
28150
- function Ll(a) {
28162
+ function Rl(a) {
28151
28163
  if (typeof a != "boolean")
28152
28164
  throw new Error(`boolean expected, not ${a}`);
28153
28165
  }
28154
- function Hl(a) {
28166
+ function Ll(a) {
28155
28167
  return a instanceof Uint8Array || a != null && typeof a == "object" && a.constructor.name === "Uint8Array";
28156
28168
  }
28157
28169
  function fd(a, ...t) {
28158
- if (!Hl(a))
28170
+ if (!Ll(a))
28159
28171
  throw new Error("Uint8Array expected");
28160
28172
  if (t.length > 0 && !t.includes(a.length))
28161
28173
  throw new Error(`Uint8Array expected of length ${t}, not of length=${a.length}`);
28162
28174
  }
28163
- function zl(a) {
28175
+ function Hl(a) {
28164
28176
  if (typeof a != "function" || typeof a.create != "function")
28165
28177
  throw new Error("Hash should be wrapped by utils.wrapConstructor");
28166
28178
  ui(a.outputLen), ui(a.blockLen);
28167
28179
  }
28168
- function ql(a, t = !0) {
28180
+ function zl(a, t = !0) {
28169
28181
  if (a.destroyed)
28170
28182
  throw new Error("Hash instance has been destroyed");
28171
28183
  if (t && a.finished)
28172
28184
  throw new Error("Hash#digest() has already been called");
28173
28185
  }
28174
- function Vl(a, t) {
28186
+ function ql(a, t) {
28175
28187
  fd(a);
28176
28188
  const e = t.outputLen;
28177
28189
  if (a.length < e)
28178
28190
  throw new Error(`digestInto() expects output buffer of length at least ${e}`);
28179
28191
  }
28180
- const ty = { number: ui, bool: Ll, bytes: fd, hash: zl, exists: ql, output: Vl };
28181
- Bt.default = ty;
28192
+ const Qg = { number: ui, bool: Rl, bytes: fd, hash: Hl, exists: zl, output: ql };
28193
+ Bt.default = Qg;
28182
28194
  var pi = {}, hi = {};
28183
28195
  Object.defineProperty(hi, "__esModule", { value: !0 });
28184
28196
  hi.crypto = void 0;
@@ -28346,22 +28358,22 @@ hi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
28346
28358
  a.HMAC = r;
28347
28359
  const o = (s, n, i) => new r(s, n).update(i).digest();
28348
28360
  a.hmac = o, a.hmac.create = (s, n) => new r(s, n);
28349
- })(Rl);
28361
+ })(Tl);
28350
28362
  var Ts = {}, Rs = {};
28351
28363
  Object.defineProperty(Rs, "__esModule", { value: !0 });
28352
28364
  Rs.HashMD = Rs.Maj = Rs.Chi = void 0;
28353
28365
  const rd = Bt, Pa = pi;
28354
- function ey(a, t, e, r) {
28366
+ function ty(a, t, e, r) {
28355
28367
  if (typeof a.setBigUint64 == "function")
28356
28368
  return a.setBigUint64(t, e, r);
28357
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;
28358
28370
  a.setUint32(t + c, n, r), a.setUint32(t + d, i, r);
28359
28371
  }
28360
- const ry = (a, t, e) => a & t ^ ~a & e;
28361
- Rs.Chi = ry;
28362
- const oy = (a, t, e) => a & t ^ a & e ^ t & e;
28363
- Rs.Maj = oy;
28364
- 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 {
28365
28377
  constructor(t, e, r, o) {
28366
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);
28367
28379
  }
@@ -28389,7 +28401,7 @@ class sy extends Pa.Hash {
28389
28401
  e[n++] = 128, this.buffer.subarray(n).fill(0), this.padOffset > o - n && (this.process(r, 0), n = 0);
28390
28402
  for (let v = n; v < o; v++)
28391
28403
  e[v] = 0;
28392
- 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);
28393
28405
  const i = (0, Pa.createView)(t), c = this.outputLen;
28394
28406
  if (c % 4)
28395
28407
  throw new Error("_sha2: outputLen should be aligned to 32bit");
@@ -28411,10 +28423,10 @@ class sy extends Pa.Hash {
28411
28423
  return t.length = o, t.pos = i, t.finished = s, t.destroyed = n, o % e && t.buffer.set(r), t;
28412
28424
  }
28413
28425
  }
28414
- Rs.HashMD = sy;
28426
+ Rs.HashMD = oy;
28415
28427
  Object.defineProperty(Ts, "__esModule", { value: !0 });
28416
28428
  Ts.sha224 = Ts.sha256 = Ts.SHA256 = void 0;
28417
- const od = Rs, Mt = pi, ny = /* @__PURE__ */ new Uint32Array([
28429
+ const od = Rs, Mt = pi, sy = /* @__PURE__ */ new Uint32Array([
28418
28430
  1116352408,
28419
28431
  1899447441,
28420
28432
  3049323471,
@@ -28510,7 +28522,7 @@ class gd extends od.HashMD {
28510
28522
  }
28511
28523
  let { A: r, B: o, C: s, D: n, E: i, F: c, G: d, H: g } = this;
28512
28524
  for (let v = 0; v < 64; v++) {
28513
- 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;
28514
28526
  g = d, d = c, c = i, i = n + k | 0, n = s, s = o, o = r, r = k + $ | 0;
28515
28527
  }
28516
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);
@@ -28523,15 +28535,15 @@ class gd extends od.HashMD {
28523
28535
  }
28524
28536
  }
28525
28537
  Ts.SHA256 = gd;
28526
- class ay extends gd {
28538
+ class ny extends gd {
28527
28539
  constructor() {
28528
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;
28529
28541
  }
28530
28542
  }
28531
28543
  Ts.sha256 = (0, Mt.wrapConstructor)(() => new gd());
28532
- Ts.sha224 = (0, Mt.wrapConstructor)(() => new ay());
28533
- var iy = Tl, cy = Rl, Kl = Ts;
28534
- function my(a) {
28544
+ Ts.sha224 = (0, Mt.wrapConstructor)(() => new ny());
28545
+ var ay = Fl, iy = Tl, Vl = Ts;
28546
+ function cy(a) {
28535
28547
  var t = /* @__PURE__ */ Object.create(null);
28536
28548
  return a && Object.keys(a).forEach(function(e) {
28537
28549
  if (e !== "default") {
@@ -28545,11 +28557,11 @@ function my(a) {
28545
28557
  }
28546
28558
  }), t.default = a, Object.freeze(t);
28547
28559
  }
28548
- var q = /* @__PURE__ */ my(iy);
28549
- 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";
28550
- q.utils.hmacSha256Sync = (a, ...t) => cy.hmac(Kl.sha256, a, q.utils.concatBytes(...t));
28551
- q.utils.sha256Sync = (...a) => Kl.sha256(q.utils.concatBytes(...a));
28552
- 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([
28553
28565
  255,
28554
28566
  255,
28555
28567
  255,
@@ -28582,7 +28594,7 @@ const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, dd = new Uint8Array([
28582
28594
  54,
28583
28595
  65,
28584
28596
  65
28585
- ]), hy = 32, fy = new Uint8Array(32), gy = new Uint8Array([
28597
+ ]), py = 32, hy = new Uint8Array(32), fy = new Uint8Array([
28586
28598
  0,
28587
28599
  0,
28588
28600
  0,
@@ -28616,7 +28628,7 @@ const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, dd = new Uint8Array([
28616
28628
  186,
28617
28629
  238
28618
28630
  ]);
28619
- function yy(a) {
28631
+ function gy(a) {
28620
28632
  return a instanceof Uint8Array;
28621
28633
  }
28622
28634
  function Na(a, t) {
@@ -28625,34 +28637,34 @@ function Na(a, t) {
28625
28637
  return a[e] < t[e] ? -1 : 1;
28626
28638
  return 0;
28627
28639
  }
28628
- function vl(a) {
28629
- return Na(a, fy) === 0;
28640
+ function _l(a) {
28641
+ return Na(a, hy) === 0;
28630
28642
  }
28631
28643
  function Ha(a) {
28632
- return !(!(a instanceof Uint8Array) || a.length !== py || Na(a, dd) >= 0);
28644
+ return !(!(a instanceof Uint8Array) || a.length !== ly || Na(a, dd) >= 0);
28633
28645
  }
28634
28646
  function vd(a) {
28635
28647
  return a instanceof Uint8Array && a.length === 64 && Na(a.subarray(0, 32), dd) < 0 && Na(a.subarray(32, 64), dd) < 0;
28636
28648
  }
28637
- function _y(a) {
28638
- 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;
28639
28651
  }
28640
- function vy(a) {
28641
- 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)));
28642
28654
  }
28643
28655
  function ya(a) {
28644
- return a instanceof Uint8Array && a.length === ly;
28656
+ return a instanceof Uint8Array && a.length === dy;
28645
28657
  }
28646
28658
  function wd(a) {
28647
- return a === void 0 || a instanceof Uint8Array && a.length === hy;
28659
+ return a === void 0 || a instanceof Uint8Array && a.length === py;
28648
28660
  }
28649
- function Wl(a) {
28661
+ function Kl(a) {
28650
28662
  if (typeof a != "string")
28651
28663
  throw new TypeError("hexToNumber: expected string, got " + typeof a);
28652
28664
  return BigInt(`0x${a}`);
28653
28665
  }
28654
- function wy(a) {
28655
- return Wl(q.utils.bytesToHex(a));
28666
+ function vy(a) {
28667
+ return Kl(q.utils.bytesToHex(a));
28656
28668
  }
28657
28669
  function Pd(a) {
28658
28670
  let t;
@@ -28663,35 +28675,35 @@ function Pd(a) {
28663
28675
  else if (typeof a == "string") {
28664
28676
  if (a.length !== 64)
28665
28677
  throw new Error("Expected 32 bytes of private scalar");
28666
- t = Wl(a);
28678
+ t = Kl(a);
28667
28679
  } else if (a instanceof Uint8Array) {
28668
28680
  if (a.length !== 32)
28669
28681
  throw new Error("Expected 32 bytes of private scalar");
28670
- t = wy(a);
28682
+ t = vy(a);
28671
28683
  } else
28672
28684
  throw new TypeError("Expected valid private scalar");
28673
28685
  if (t < 0) throw new Error("Expected private scalar >= 0");
28674
28686
  return t;
28675
28687
  }
28676
- const Py = (a, t) => {
28688
+ const wy = (a, t) => {
28677
28689
  const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e + r, q.CURVE.n));
28678
28690
  return q.utils.isValidPrivateKey(o) ? o : null;
28679
- }, by = (a, t) => {
28691
+ }, Py = (a, t) => {
28680
28692
  const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e - r, q.CURVE.n));
28681
28693
  return q.utils.isValidPrivateKey(o) ? o : null;
28682
- }, Ay = (a) => {
28694
+ }, by = (a) => {
28683
28695
  const t = _d(a), e = q.utils._bigintTo32Bytes(q.CURVE.n - t);
28684
28696
  return q.utils.isValidPrivateKey(e) ? e : null;
28685
- }, jl = (a, t, e) => {
28697
+ }, Wl = (a, t, e) => {
28686
28698
  const r = q.Point.fromHex(a), o = Pd(t), s = q.Point.BASE.multiplyAndAddUnsafe(r, o, BigInt(1));
28687
28699
  if (!s) throw new Error("Tweaked point at infinity");
28688
28700
  return s.toRawBytes(e);
28689
- }, Dy = (a, t, e) => {
28701
+ }, Ay = (a, t, e) => {
28690
28702
  const r = q.Point.fromHex(a), o = typeof t == "string" ? t : q.utils.bytesToHex(t), s = BigInt(`0x${o}`);
28691
28703
  return r.multiply(s).toRawBytes(e);
28692
28704
  };
28693
28705
  function _a(a, t) {
28694
- return a === void 0 ? t !== void 0 ? Gl(t) : !0 : !!a;
28706
+ return a === void 0 ? t !== void 0 ? jl(t) : !0 : !!a;
28695
28707
  }
28696
28708
  function yn(a) {
28697
28709
  try {
@@ -28711,7 +28723,7 @@ function bd(a, t) {
28711
28723
  function Ls(a) {
28712
28724
  return bd(a, !1);
28713
28725
  }
28714
- function Gl(a) {
28726
+ function jl(a) {
28715
28727
  return bd(a, !1) && a.length === 33;
28716
28728
  }
28717
28729
  function Pe(a) {
@@ -28720,48 +28732,48 @@ function Pe(a) {
28720
28732
  function fi(a) {
28721
28733
  return bd(a, !0);
28722
28734
  }
28723
- function ky(a, t) {
28735
+ function Dy(a, t) {
28724
28736
  if (!fi(a))
28725
28737
  throw new Error(qs);
28726
28738
  if (!Ha(t))
28727
28739
  throw new Error(Ra);
28728
28740
  return yn(() => {
28729
- const e = jl(a, t, !0);
28741
+ const e = Wl(a, t, !0);
28730
28742
  return { parity: e[0] % 2 === 1 ? 1 : 0, xOnlyPubkey: e.slice(1) };
28731
28743
  });
28732
28744
  }
28733
- function Jl(a) {
28745
+ function Gl(a) {
28734
28746
  if (!Ls(a))
28735
28747
  throw new Error(qs);
28736
28748
  return a.slice(1, 33);
28737
28749
  }
28738
- function Zl(a, t) {
28750
+ function Jl(a, t) {
28739
28751
  if (!Pe(a))
28740
28752
  throw new Error(zs);
28741
28753
  return yn(
28742
28754
  () => q.getPublicKey(a, _a(t))
28743
28755
  );
28744
28756
  }
28745
- function xy(a) {
28757
+ function ky(a) {
28746
28758
  if (!Pe(a))
28747
28759
  throw new Error(zs);
28748
- return Jl(Zl(a));
28760
+ return Gl(Jl(a));
28749
28761
  }
28750
- function My(a, t) {
28762
+ function xy(a, t) {
28751
28763
  if (!Ls(a))
28752
28764
  throw new Error(qs);
28753
28765
  return q.Point.fromHex(a).toRawBytes(_a(t, a));
28754
28766
  }
28755
- function Iy(a, t, e) {
28767
+ function My(a, t, e) {
28756
28768
  if (!Ls(a))
28757
28769
  throw new Error(qs);
28758
28770
  if (!Ha(t))
28759
28771
  throw new Error(Ra);
28760
28772
  return yn(
28761
- () => Dy(a, t, _a(e, a))
28773
+ () => Ay(a, t, _a(e, a))
28762
28774
  );
28763
28775
  }
28764
- function Sy(a, t, e) {
28776
+ function Iy(a, t, e) {
28765
28777
  if (!Ls(a) || !Ls(t))
28766
28778
  throw new Error(qs);
28767
28779
  return yn(() => {
@@ -28769,35 +28781,35 @@ function Sy(a, t, e) {
28769
28781
  return r.equals(o.negate()) ? null : r.add(o).toRawBytes(_a(e, a));
28770
28782
  });
28771
28783
  }
28772
- function By(a, t, e) {
28784
+ function Sy(a, t, e) {
28773
28785
  if (!Ls(a))
28774
28786
  throw new Error(qs);
28775
28787
  if (!Ha(t))
28776
28788
  throw new Error(Ra);
28777
28789
  return yn(
28778
- () => jl(a, t, _a(e, a))
28790
+ () => Wl(a, t, _a(e, a))
28779
28791
  );
28780
28792
  }
28781
- function Ey(a, t) {
28793
+ function By(a, t) {
28782
28794
  if (Pe(a) === !1)
28783
28795
  throw new Error(zs);
28784
28796
  if (Ha(t) === !1)
28785
28797
  throw new Error(Ra);
28786
- return yn(() => Py(a, t));
28798
+ return yn(() => wy(a, t));
28787
28799
  }
28788
- function Uy(a, t) {
28800
+ function Ey(a, t) {
28789
28801
  if (Pe(a) === !1)
28790
28802
  throw new Error(zs);
28791
28803
  if (Ha(t) === !1)
28792
28804
  throw new Error(Ra);
28793
- return yn(() => by(a, t));
28805
+ return yn(() => Py(a, t));
28794
28806
  }
28795
- function Cy(a) {
28807
+ function Uy(a) {
28796
28808
  if (Pe(a) === !1)
28797
28809
  throw new Error(zs);
28798
- return Ay(a);
28810
+ return by(a);
28799
28811
  }
28800
- function $y(a, t, e) {
28812
+ function Cy(a, t, e) {
28801
28813
  if (!Pe(t))
28802
28814
  throw new Error(zs);
28803
28815
  if (!ya(a))
@@ -28806,7 +28818,7 @@ function $y(a, t, e) {
28806
28818
  throw new Error(yd);
28807
28819
  return q.signSync(a, t, { der: !1, extraEntropy: e });
28808
28820
  }
28809
- function Ny(a, t, e) {
28821
+ function $y(a, t, e) {
28810
28822
  if (!Pe(t))
28811
28823
  throw new Error(zs);
28812
28824
  if (!ya(a))
@@ -28816,7 +28828,7 @@ function Ny(a, t, e) {
28816
28828
  const [r, o] = q.signSync(a, t, { der: !1, extraEntropy: e, recovered: !0 });
28817
28829
  return { signature: r, recoveryId: o };
28818
28830
  }
28819
- function Oy(a, t, e = Buffer.alloc(32, 0)) {
28831
+ function Ny(a, t, e = Buffer.alloc(32, 0)) {
28820
28832
  if (!Pe(t))
28821
28833
  throw new Error(zs);
28822
28834
  if (!ya(a))
@@ -28825,18 +28837,18 @@ function Oy(a, t, e = Buffer.alloc(32, 0)) {
28825
28837
  throw new Error(yd);
28826
28838
  return q.schnorr.signSync(a, t, e);
28827
28839
  }
28828
- function Fy(a, t, e, r) {
28840
+ function Oy(a, t, e, r) {
28829
28841
  if (!ya(a))
28830
- throw new Error(uy);
28831
- if (!vd(t) || !vy(t))
28842
+ throw new Error(my);
28843
+ if (!vd(t) || !_y(t))
28832
28844
  throw new Error(di);
28833
- if (e & 2 && !_y(t))
28834
- throw new Error(dy);
28845
+ if (e & 2 && !yy(t))
28846
+ throw new Error(uy);
28835
28847
  if (!fi(t.subarray(0, 32)))
28836
28848
  throw new Error(di);
28837
28849
  return q.recoverPublicKey(a, t, e, _a(r));
28838
28850
  }
28839
- function Ty(a, t, e, r) {
28851
+ function Fy(a, t, e, r) {
28840
28852
  if (!Ls(t))
28841
28853
  throw new Error(qs);
28842
28854
  if (!vd(e))
@@ -28845,7 +28857,7 @@ function Ty(a, t, e, r) {
28845
28857
  throw new Error(La);
28846
28858
  return q.verify(e, a, t, { strict: r });
28847
28859
  }
28848
- function Ry(a, t, e) {
28860
+ function Ty(a, t, e) {
28849
28861
  if (!fi(t))
28850
28862
  throw new Error(qs);
28851
28863
  if (!vd(e))
@@ -28855,29 +28867,29 @@ function Ry(a, t, e) {
28855
28867
  return q.schnorr.verifySync(e, a, t);
28856
28868
  }
28857
28869
  st.isPoint = Ls;
28858
- st.isPointCompressed = Gl;
28870
+ st.isPointCompressed = jl;
28859
28871
  st.isPrivate = Pe;
28860
28872
  st.isXOnlyPoint = fi;
28861
- st.pointAdd = Sy;
28862
- st.pointAddScalar = By;
28863
- st.pointCompress = My;
28864
- st.pointFromScalar = Zl;
28865
- st.pointMultiply = Iy;
28866
- st.privateAdd = Ey;
28867
- st.privateNegate = Cy;
28868
- st.privateSub = Uy;
28869
- st.recover = Fy;
28870
- st.sign = $y;
28871
- st.signRecoverable = Ny;
28872
- st.signSchnorr = Oy;
28873
- st.verify = Ty;
28874
- st.verifySchnorr = Ry;
28875
- st.xOnlyPointAddTweak = ky;
28876
- st.xOnlyPointFromPoint = Jl;
28877
- st.xOnlyPointFromScalar = xy;
28878
- 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 {
28879
28891
  constructor(e, r = !1) {
28880
- var t = (...cw) => (super(...cw), /**
28892
+ var t = (...iw) => (super(...iw), /**
28881
28893
  * Raw private key, in bytes.
28882
28894
  */
28883
28895
  _(this, "privateKey"), /**
@@ -28899,7 +28911,7 @@ class Ad extends Fl {
28899
28911
  async sign(e) {
28900
28912
  if (this.eth) return this.signWithKeccak256(e);
28901
28913
  const r = Buffer.from(
28902
- xp.hash(new ld(e)).toString(),
28914
+ kp.hash(new ld(e)).toString(),
28903
28915
  "hex"
28904
28916
  ), { signature: o } = ba.ecdsaSign(
28905
28917
  Uint8Array.from(r),
@@ -28909,20 +28921,20 @@ class Ad extends Fl {
28909
28921
  }
28910
28922
  // eslint-disable-next-line @typescript-eslint/require-await
28911
28923
  async signWithKeccak256(e) {
28912
- const r = bl(e), { signature: o } = ba.ecdsaSign(
28924
+ const r = Pl(e), { signature: o } = ba.ecdsaSign(
28913
28925
  Uint8Array.from(r),
28914
28926
  Uint8Array.from(this.privateKey)
28915
28927
  );
28916
28928
  return Buffer.from(o);
28917
28929
  }
28918
28930
  }
28919
- const Ly = zf(st), Yl = 118, Hy = {
28931
+ const Ry = Hf(st), Zl = 118, Ly = {
28920
28932
  account: 0,
28921
28933
  index: 0,
28922
- coinType: Yl,
28934
+ coinType: Zl,
28923
28935
  eth: !1
28924
28936
  };
28925
- class ew extends Ad {
28937
+ class tw extends Ad {
28926
28938
  /**
28927
28939
  * Creates a new signing key from a mnemonic phrase. If no mnemonic is provided, one
28928
28940
  * will be automatically generated.
@@ -28946,12 +28958,12 @@ class ew extends Ad {
28946
28958
  */
28947
28959
  constructor(e = {}) {
28948
28960
  const { account: r, index: o, coinType: s, eth: n } = {
28949
- ...Hy,
28961
+ ...Ly,
28950
28962
  ...e
28951
28963
  };
28952
28964
  let { mnemonic: i } = e;
28953
- i === void 0 && (i = qf(256));
28954
- 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;
28955
28967
  if (!A)
28956
28968
  throw new Error("Failed to derive key pair");
28957
28969
  super(Buffer.from(A), n);
@@ -28962,20 +28974,20 @@ class ew extends Ad {
28962
28974
  this.mnemonic = i;
28963
28975
  }
28964
28976
  }
28965
- const wl = 120, Xl = "1.0.0";
28977
+ const vl = 120, Yl = "1.0.0";
28966
28978
  class it extends Error {
28967
28979
  constructor(t) {
28968
28980
  super(t), this.name = "LedgerError";
28969
28981
  }
28970
28982
  }
28971
- class Ql extends Fl {
28983
+ class Xl extends Ol {
28972
28984
  /**
28973
28985
  * @param transport transporter for LedgerKey
28974
28986
  */
28975
28987
  constructor(e) {
28976
28988
  super();
28977
28989
  _(this, "app");
28978
- _(this, "path", [44, Yl, 0, 0, 0]);
28990
+ _(this, "path", [44, Zl, 0, 0, 0]);
28979
28991
  this.transport = e, this.app = new Ua(this.transport);
28980
28992
  }
28981
28993
  /**
@@ -28990,11 +29002,11 @@ class Ql extends Fl {
28990
29002
  * create and return initialized ledger key
28991
29003
  */
28992
29004
  static async create(e, r) {
28993
- e || (e = await Ky());
28994
- const o = new Ql(e);
29005
+ e || (e = await Vy());
29006
+ const o = new Xl(e);
28995
29007
  return r != null && (o.path[4] = r), e && typeof e.on == "function" && e.on("disconnect", () => {
28996
29008
  o.transport = void 0;
28997
- }), await o.initialize().catch(zy), o;
29009
+ }), await o.initialize().catch(Hy), o;
28998
29010
  }
28999
29011
  /**
29000
29012
  * initialize LedgerKey.
@@ -29005,7 +29017,7 @@ class Ql extends Fl {
29005
29017
  if (r !== "Initia")
29006
29018
  throw new it("Open the Initia app in the Ledger");
29007
29019
  const { major: o, minor: s, patch: n } = this.app.getVersion(), i = `${o}.${s}.${n}`;
29008
- if (r === "Initia" && Hf.lt(i, Xl))
29020
+ if (r === "Initia" && Lf.lt(i, Yl))
29009
29021
  throw new it(
29010
29022
  "Outdated version: Update Ledger Initia App to the latest version"
29011
29023
  );
@@ -29024,7 +29036,7 @@ class Ql extends Fl {
29024
29036
  async sign(e) {
29025
29037
  this.publicKey || await this.loadAccountDetails();
29026
29038
  const r = await this.app.sign(this.path, e);
29027
- return sd(r), Buffer.from(Ap(Buffer.from(r.signature)));
29039
+ return sd(r), Buffer.from(bp(Buffer.from(r.signature)));
29028
29040
  }
29029
29041
  // eslint-disable-next-line @typescript-eslint/require-await
29030
29042
  async signWithKeccak256() {
@@ -29053,13 +29065,13 @@ class Ql extends Fl {
29053
29065
  return this.app.showAddressAndPubKey(this.path, "init");
29054
29066
  }
29055
29067
  }
29056
- const zy = (a) => {
29068
+ const Hy = (a) => {
29057
29069
  const t = a.message.trim();
29058
29070
  if (!t.startsWith("The device is already open"))
29059
29071
  throw a.name === "TransportOpenUserCancelled" ? new it(
29060
29072
  "Couldn't find the Ledger. Check the Ledger is plugged in and unlocked."
29061
29073
  ) : t.startsWith("No WebUSB interface found for the Ledger device") ? new it(
29062
- `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.`
29063
29075
  ) : t.startsWith("Unable to claim interface") ? new it(
29064
29076
  "Couldn't access Ledger device. Is it being used in another tab?"
29065
29077
  ) : t.startsWith("Transport not defined") ? new it(
@@ -29101,32 +29113,32 @@ const zy = (a) => {
29101
29113
  default:
29102
29114
  throw new it(t);
29103
29115
  }
29104
- }, qy = (a) => a.indexOf("Win") > -1, Vy = (a) => {
29116
+ }, zy = (a) => a.indexOf("Win") > -1, qy = (a) => {
29105
29117
  const t = a.toLowerCase(), e = /chrome|crios/.test(t) && !/edge|opr\//.test(t), r = e && !window.google;
29106
29118
  if (!e && !r)
29107
29119
  throw new it("This browser doesn't support Ledger devices");
29108
29120
  return e ? "chrome" : "brave";
29109
29121
  };
29110
- async function Ky() {
29122
+ async function Vy() {
29111
29123
  let a;
29112
- if (Vy(navigator.userAgent), qy(navigator.platform)) {
29124
+ if (qy(navigator.userAgent), zy(navigator.platform)) {
29113
29125
  if (!navigator.hid)
29114
29126
  throw new it(
29115
29127
  "This browser doesn't have HID enabled. Enable this feature by visiting: chrome://flags/#enable-experimental-web-platform-features"
29116
29128
  );
29117
29129
  const { default: t } = await import("./TransportWebHID-BpNQALzF.mjs");
29118
- a = await t.create(wl * 1e3);
29130
+ a = await t.create(vl * 1e3);
29119
29131
  } else {
29120
29132
  const { default: t } = await import("./TransportWebUSB-Bs9AHNsu.mjs");
29121
- a = await t.create(wl * 1e3);
29133
+ a = await t.create(vl * 1e3);
29122
29134
  }
29123
29135
  return a;
29124
29136
  }
29125
29137
  export {
29126
29138
  Qs as ABCIParams,
29127
29139
  Fn as ACL,
29128
- Kf as APIRequester,
29129
- tw as APP_KEY,
29140
+ Vf as APIRequester,
29141
+ Qv as APP_KEY,
29130
29142
  Mn as AbsoluteTxPosition,
29131
29143
  md as AccAddress,
29132
29144
  nl as AccPubKey,
@@ -29139,15 +29151,15 @@ export {
29139
29151
  Oe as AllowAllMessagesFilter,
29140
29152
  As as Allowance,
29141
29153
  Ir as AllowedMsgAllowance,
29142
- jf as AuctionAPI,
29154
+ Wf as AuctionAPI,
29143
29155
  ys as AuctionParams,
29144
- Qf as AuthAPI,
29156
+ Xf as AuthAPI,
29145
29157
  Ot as AuthInfo,
29146
29158
  _s as AuthParams,
29147
29159
  ka as Authorization,
29148
29160
  oe as AuthorizationGrant,
29149
- tg as AuthzAPI,
29150
- eg as BankAPI,
29161
+ Qf as AuthzAPI,
29162
+ tg as BankAPI,
29151
29163
  ws as BankParams,
29152
29164
  $t as BaseAccount,
29153
29165
  yt as BasicAllowance,
@@ -29158,7 +29170,7 @@ export {
29158
29170
  Zs as BlockParams,
29159
29171
  ce as BridgeConfig,
29160
29172
  ue as BridgeInfo,
29161
- gl as CHUNK_SIZE,
29173
+ fl as CHUNK_SIZE,
29162
29174
  Fa as CLA,
29163
29175
  Rt as Channel,
29164
29176
  cn as ChannelCounterparty,
@@ -29181,62 +29193,62 @@ export {
29181
29193
  En as DenomTrace,
29182
29194
  Js as DenomUnit,
29183
29195
  Ma as Deposit,
29184
- rg as DistributionAPI,
29196
+ eg as DistributionAPI,
29185
29197
  Ps as DistributionParams,
29186
29198
  F as Duration,
29187
29199
  ga as ERROR_CODE,
29188
- yl as ERROR_DESCRIPTION,
29200
+ gl as ERROR_DESCRIPTION,
29189
29201
  br as Equivocation,
29190
29202
  le as EthPublicKey,
29191
29203
  ud as EventsByType,
29192
29204
  en as Evidence,
29193
- og as EvidenceAPI,
29205
+ rg as EvidenceAPI,
29194
29206
  Ys as EvidenceParams,
29195
- sg as EvmAPI,
29207
+ og as EvmAPI,
29196
29208
  bs as EvmParams,
29197
29209
  Ee as ExecuteAuthorization,
29198
29210
  Ws as ExecuteAuthorizationItem,
29199
29211
  Nt as Fee,
29200
- ng as FeeGrantAPI,
29201
- ag as ForwardingAPI,
29212
+ sg as FeeGrantAPI,
29213
+ ng as ForwardingAPI,
29202
29214
  Ja as FungibleTokenPacketData,
29203
29215
  Se as GenericAuthorization,
29204
- ig as GovAPI,
29216
+ ag as GovAPI,
29205
29217
  ks as GovParams,
29206
- cg as GroupAPI,
29218
+ ig as GroupAPI,
29207
29219
  oo as GroupInfo,
29208
29220
  Ia as GroupMember,
29209
29221
  an as GroupPolicyInfo,
29210
29222
  xs as GroupProposal,
29211
29223
  ye as GroupVote,
29212
29224
  U as Height,
29213
- Yl as INIT_COIN_TYPE,
29225
+ Zl as INIT_COIN_TYPE,
29214
29226
  Ta as INS,
29215
- mg as IbcAPI,
29227
+ cg as IbcAPI,
29216
29228
  jn as IbcChannelParams,
29217
29229
  mn as IbcClientParams,
29218
29230
  Jn as IbcConnectionParams,
29219
29231
  _e as IbcFee,
29220
- ug as IbcHooksAPI,
29232
+ mg as IbcHooksAPI,
29221
29233
  Ms as IbcHooksParams,
29222
- dg as IbcNftAPI,
29234
+ ug as IbcNftAPI,
29223
29235
  Is as IbcNftParams,
29224
- pg as IbcPermAPI,
29225
- lg as IbcTransferAPI,
29236
+ lg as IbcPermAPI,
29237
+ dg as IbcTransferAPI,
29226
29238
  Gs as IbcTransferParams,
29227
29239
  Dt as IbcVersion,
29228
29240
  Sa as IdentifiedClientState,
29229
29241
  Gn as IdentifiedConnection,
29230
29242
  Ya as IdentifiedPacketFees,
29231
- hg as InterTxAPI,
29243
+ pg as InterTxAPI,
29232
29244
  m as JSONSerializable,
29233
- Fl as Key,
29234
- Xv as LCDClient,
29245
+ Ol as Key,
29246
+ Yv as LCDClient,
29235
29247
  it as LedgerError,
29236
- Ql as LedgerKey,
29248
+ Xl as LedgerKey,
29237
29249
  de as LegacyAminoMultisigPublicKey,
29238
29250
  ft as Market,
29239
- fg as MarketmapAPI,
29251
+ hg as MarketmapAPI,
29240
29252
  Ss as MarketmapParams,
29241
29253
  Ce as MaxCallsLimit,
29242
29254
  $e as MaxFundsLimit,
@@ -29245,11 +29257,11 @@ export {
29245
29257
  ln as MerklePrefix,
29246
29258
  cd as MerkleRoot,
29247
29259
  Za as Metadata,
29248
- ew as MnemonicKey,
29260
+ tw as MnemonicKey,
29249
29261
  J as ModeInfo,
29250
29262
  Es as Module,
29251
29263
  pe as ModuleAccount,
29252
- gg as MoveAPI,
29264
+ fg as MoveAPI,
29253
29265
  Bs as MoveParams,
29254
29266
  Q as Msg,
29255
29267
  ra as MsgAcknowledgement,
@@ -29416,20 +29428,20 @@ export {
29416
29428
  Io as MsgWhitelist,
29417
29429
  gr as MsgWithdrawDelegatorReward,
29418
29430
  yr as MsgWithdrawValidatorCommission,
29419
- yg as MstakingAPI,
29431
+ gg as MstakingAPI,
29420
29432
  Us as MstakingParams,
29421
- Jv as MultiSignature,
29433
+ Gv as MultiSignature,
29422
29434
  Tn as NftClassTrace,
29423
29435
  Xa as NonFungibleTokenPacketData,
29424
29436
  da as OpValidator,
29425
- _g as OpchildAPI,
29437
+ yg as OpchildAPI,
29426
29438
  $s as OpchildParams,
29427
- vg as OphostAPI,
29439
+ _g as OphostAPI,
29428
29440
  Cs as OphostParams,
29429
- wg as OracleAPI,
29430
- Gv as OrderBy,
29441
+ vg as OracleAPI,
29442
+ jv as OrderBy,
29431
29443
  me as Output,
29432
- Ol as P1_VALUES,
29444
+ Nl as P1_VALUES,
29433
29445
  ed as PAYLOAD_TYPE,
29434
29446
  St as Packet,
29435
29447
  we as PacketFee,
@@ -29445,32 +29457,32 @@ export {
29445
29457
  ee as PublicKey,
29446
29458
  Be as PublishAuthorization,
29447
29459
  Ba as QuotePrice,
29448
- Bg as RESTClient,
29460
+ Sg as RESTClient,
29449
29461
  Ad as RawKey,
29450
29462
  Wt as Redelegation,
29451
- Pg as RewardAPI,
29463
+ wg as RewardAPI,
29452
29464
  Ns as RewardParams,
29453
29465
  tn as RewardWeight,
29454
29466
  Ie as SendAuthorization,
29455
29467
  se as SendEnabled,
29456
- Xf as SignDoc,
29468
+ Yf as SignDoc,
29457
29469
  nt as SignatureV2,
29458
29470
  Ft as SignerInfo,
29459
29471
  pt as SimplePublicKey,
29460
29472
  mi as SimulateResponse,
29461
- bg as SlashingAPI,
29473
+ Pg as SlashingAPI,
29462
29474
  Os as SlashingParams,
29463
29475
  jt as StakeAuthorization,
29464
29476
  Kt as StakeAuthorizationValidators,
29465
- nw as State,
29477
+ sw as State,
29466
29478
  Ue as StoreCodeAuthorization,
29467
29479
  Ds as TallyResult,
29468
- Ag as TendermintAPI,
29480
+ bg as TendermintAPI,
29469
29481
  Tr as TextProposal,
29470
29482
  Kr as ThresholdDecisionPolicy,
29471
29483
  hn as Ticker,
29472
29484
  dn as Timeout,
29473
- Dg as TokenfactoryAPI,
29485
+ Ag as TokenfactoryAPI,
29474
29486
  Fs as TokenfactoryParams,
29475
29487
  Sn as TransferAuthorization,
29476
29488
  lt as Tx,
@@ -29479,7 +29491,7 @@ export {
29479
29491
  $a as TxInfo,
29480
29492
  fa as TxLog,
29481
29493
  It as UnbondingDelegation,
29482
- xg as UpgradeAPI,
29494
+ kg as UpgradeAPI,
29483
29495
  al as ValAddress,
29484
29496
  cl as ValConsAddress,
29485
29497
  ut as ValConsPublicKey,
@@ -29488,23 +29500,23 @@ export {
29488
29500
  Xs as ValidatorParams,
29489
29501
  la as ValidatorSigningInfo,
29490
29502
  on as Vote,
29491
- Ig as Wallet,
29492
- Mg as WasmAPI,
29503
+ Mg as Wallet,
29504
+ xg as WasmAPI,
29493
29505
  vs as WasmParams,
29494
- Qv as WebSocketClient,
29506
+ Xv as WebSocketClient,
29495
29507
  bt as WeightedVoteOption,
29496
- Zv as bcs,
29508
+ Jv as bcs,
29497
29509
  kn as checkDecimal,
29498
29510
  dl as fromLittleEndian,
29499
29511
  nd as hashToHex,
29500
- Yv as isTxError,
29501
- Gf as keccak256,
29512
+ Zv as isTxError,
29513
+ jf as keccak256,
29502
29514
  O as num,
29503
29515
  ci as prepareSignBytes,
29504
- Wf as removeNull,
29505
- Jf as ripemd160,
29516
+ Kf as removeNull,
29517
+ Gf as ripemd160,
29506
29518
  pd as sha256,
29507
- aw as stateFromJSON,
29508
- iw as stateToJSON,
29519
+ nw as stateFromJSON,
29520
+ aw as stateToJSON,
29509
29521
  ul as toLittleEndian
29510
29522
  };