@initia/initia.js 0.2.18 → 0.2.20
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/README.md +13 -13
- package/dist/client/LocalInitia.d.ts +3 -3
- package/dist/client/index.d.ts +4 -4
- package/dist/client/{lcd/LCDClient.d.ts → rest/RESTClient.d.ts} +6 -4
- package/dist/client/{lcd → rest}/Wallet.d.ts +4 -4
- package/dist/client/{lcd → rest}/api/TxAPI.d.ts +3 -3
- package/dist/core/tx/Tx.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +593 -588
- package/dist/key/MnemonicKey.d.ts +1 -0
- package/dist/key/RawKey.d.ts +2 -1
- package/package.json +3 -7
- /package/dist/client/{lcd → rest}/APIRequester.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/AuctionAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/AuthAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/AuthzAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/BankAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/BaseAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/DistributionAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/EvidenceAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/EvmAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/FeeGrantAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/ForwardingAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/GovAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/GroupAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/IbcAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/IbcHooksAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/IbcNftAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/IbcPermAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/IbcTransferAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/InterTxAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/MarketmapAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/MoveAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/MstakingAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/OpchildAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/OphostAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/OracleAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/RewardAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/SlashingAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/TendermintAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/TokenfactoryAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/UpgradeAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/WasmAPI.d.ts +0 -0
- /package/dist/client/{lcd → rest}/api/index.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var p = (i, t, e) =>
|
|
4
|
-
import
|
|
5
|
-
import { OrderBy as
|
|
1
|
+
var Gu = Object.defineProperty;
|
|
2
|
+
var Wu = (i, t, e) => t in i ? Gu(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var p = (i, t, e) => Wu(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import ju, { AxiosHeaders as Ju } from "axios";
|
|
5
|
+
import { OrderBy as Qu } from "@initia/initia.proto/cosmos/tx/v1beta1/service";
|
|
6
6
|
import { BigNumber as z } from "bignumber.js";
|
|
7
7
|
export * from "bignumber.js";
|
|
8
|
-
import { Coin as
|
|
8
|
+
import { Coin as Yu } from "@initia/initia.proto/cosmos/base/v1beta1/coin";
|
|
9
9
|
import { Any as l } from "@initia/initia.proto/google/protobuf/any";
|
|
10
10
|
import { MsgAuctionBid as Qn, MsgUpdateParams as Yn } from "@initia/initia.proto/sdk/auction/v1/tx";
|
|
11
|
-
import { Params as
|
|
11
|
+
import { Params as Zu } from "@initia/initia.proto/sdk/auction/v1/genesis";
|
|
12
12
|
import f from "long";
|
|
13
|
-
import { Params as
|
|
13
|
+
import { Params as Xu, BaseAccount as Zn, ModuleAccount as Xn } from "@initia/initia.proto/cosmos/auth/v1beta1/auth";
|
|
14
14
|
import { MsgUpdateParams as ta } from "@initia/initia.proto/cosmos/auth/v1beta1/tx";
|
|
15
15
|
import * as _n from "secp256k1";
|
|
16
|
-
import { signatureImport as
|
|
16
|
+
import { signatureImport as td } from "secp256k1";
|
|
17
17
|
import { SHA256 as ku } from "jscrypto/SHA256";
|
|
18
|
-
import { RIPEMD160 as
|
|
19
|
-
import { Base64 as
|
|
20
|
-
import { Word32Array as Fm, SHA256 as
|
|
18
|
+
import { RIPEMD160 as ed } from "jscrypto/RIPEMD160";
|
|
19
|
+
import { Base64 as rd } from "jscrypto/Base64";
|
|
20
|
+
import { Word32Array as Fm, SHA256 as od } from "jscrypto";
|
|
21
21
|
import xu from "keccak256";
|
|
22
22
|
import { LegacyAminoPubKey as ea } from "@initia/initia.proto/cosmos/crypto/multisig/keys";
|
|
23
23
|
import { PubKey as ra } from "@initia/initia.proto/cosmos/crypto/secp256k1/keys";
|
|
24
24
|
import { PubKey as oa } from "@initia/initia.proto/cosmos/crypto/ed25519/keys";
|
|
25
25
|
import { PubKey as sa } from "@initia/initia.proto/initia/crypto/v1beta1/ethsecp256k1/keys";
|
|
26
26
|
import { bech32 as x } from "bech32";
|
|
27
|
-
import { AuthorizationType as
|
|
27
|
+
import { AuthorizationType as sd, authorizationTypeFromJSON as Vm, authorizationTypeToJSON as Hm, StakeAuthorization as na, StakeAuthorization_Validators as nd } from "@initia/initia.proto/initia/mstaking/v1/authz";
|
|
28
28
|
import { SendAuthorization as aa } from "@initia/initia.proto/cosmos/bank/v1beta1/authz";
|
|
29
|
-
import { GenericAuthorization as ia, Grant as
|
|
29
|
+
import { GenericAuthorization as ia, Grant as ad } from "@initia/initia.proto/cosmos/authz/v1beta1/authz";
|
|
30
30
|
import { PublishAuthorization as ca, ExecuteAuthorization as ma } from "@initia/initia.proto/initia/move/v1/authz";
|
|
31
|
-
import { ExecuteAuthorizationItem as
|
|
32
|
-
import { CodeGrant as
|
|
33
|
-
import { AccessType as
|
|
31
|
+
import { ExecuteAuthorizationItem as id, UpgradePolicy as jn, Params as cd } from "@initia/initia.proto/initia/move/v1/types";
|
|
32
|
+
import { CodeGrant as md, StoreCodeAuthorization as ua, MaxCallsLimit as da, MaxFundsLimit as la, CombinedLimit as pa, AllowAllMessagesFilter as ha, AcceptedMessageKeysFilter as fa, AcceptedMessagesFilter as ga, ContractGrant as ud, ContractExecutionAuthorization as _a, ContractMigrationAuthorization as ya } from "@initia/initia.proto/cosmwasm/wasm/v1/authz";
|
|
33
|
+
import { AccessType as dd, accessTypeFromJSON as qn, accessTypeToJSON as zn, AccessConfig as ld, Params as pd, AbsoluteTxPosition as hd, contractCodeHistoryOperationTypeFromJSON as fd } from "@initia/initia.proto/cosmwasm/wasm/v1/types";
|
|
34
34
|
import { MsgStoreCode as va, MsgInstantiateContract as ba, MsgInstantiateContract2 as wa, MsgExecuteContract as Pa, MsgMigrateContract as Aa, MsgUpdateAdmin as Da, MsgClearAdmin as ka, MsgUpdateInstantiateConfig as xa, MsgUpdateParams as Ma, MsgSudoContract as Sa, MsgPinCodes as Ia, MsgUnpinCodes as Na, MsgStoreAndInstantiateContract as Ua, MsgStoreAndMigrateContract as Ca, MsgAddCodeUploadParamsAddresses as $a, MsgRemoveCodeUploadParamsAddresses as Ea, MsgUpdateContractLabel as Ba } from "@initia/initia.proto/cosmwasm/wasm/v1/tx";
|
|
35
|
-
import { Allocation as
|
|
35
|
+
import { Allocation as gd, TransferAuthorization as Oa } from "@initia/initia.proto/ibc/applications/transfer/v1/authz";
|
|
36
36
|
import { MsgTransfer as Ta, MsgUpdateParams as Ra } from "@initia/initia.proto/ibc/applications/transfer/v1/tx";
|
|
37
|
-
import { Height as
|
|
38
|
-
import { Params as
|
|
39
|
-
import { FungibleTokenPacketData as
|
|
37
|
+
import { Height as _d, ConsensusStateWithHeight as yd, ClientConsensusStates as vd, IdentifiedClientState as bd, Params as wd } from "@initia/initia.proto/ibc/core/client/v1/client";
|
|
38
|
+
import { Params as Pd, DenomTrace as Ad } from "@initia/initia.proto/ibc/applications/transfer/v1/transfer";
|
|
39
|
+
import { FungibleTokenPacketData as Dd } from "@initia/initia.proto/ibc/applications/transfer/v2/packet";
|
|
40
40
|
import { MsgGrant as Fa, MsgRevoke as La, MsgExec as qa } from "@initia/initia.proto/cosmos/authz/v1beta1/tx";
|
|
41
|
-
import { MsgSend as za, MsgMultiSend as
|
|
42
|
-
import { Input as
|
|
41
|
+
import { MsgSend as za, MsgMultiSend as Ka, MsgUpdateParams as Va, MsgSetSendEnabled as Ha } from "@initia/initia.proto/cosmos/bank/v1beta1/tx";
|
|
42
|
+
import { Input as kd, Output as xd, SendEnabled as Md, Params as Sd, DenomUnit as Id, Metadata as Nd } from "@initia/initia.proto/cosmos/bank/v1beta1/bank";
|
|
43
43
|
import { MsgSetDenomMetadata as Ga } from "@initia/initia.proto/initia/bank/v1/tx";
|
|
44
44
|
import { MsgPayForBlobs as Wa } from "@initia/initia.proto/celestia/blob/v1/tx";
|
|
45
|
-
import { Blob as
|
|
45
|
+
import { Blob as Ud, BlobTx as Gm } from "@initia/initia.proto/celestia/blob/v1/blob";
|
|
46
46
|
import { SignMode as mt, signModeFromJSON as Mu, signModeToJSON as Su } from "@initia/initia.proto/cosmos/tx/signing/v1beta1/signing";
|
|
47
|
-
import { Fee as
|
|
48
|
-
import { CompactBitArray as
|
|
49
|
-
import { BlockParams as
|
|
47
|
+
import { Fee as Cd, Tx as $n, TxBody as Wm, AuthInfo as jm, SignerInfo as $d, ModeInfo as Ed, ModeInfo_Single as Bd, ModeInfo_Multi as Od, SignDoc as Jm } from "@initia/initia.proto/cosmos/tx/v1beta1/tx";
|
|
48
|
+
import { CompactBitArray as Td, MultiSignature as Qm } from "@initia/initia.proto/cosmos/crypto/multisig/v1beta1/multisig";
|
|
49
|
+
import { BlockParams as Rd, EvidenceParams as Fd, ValidatorParams as Ld, ABCIParams as qd } from "@initia/initia.proto/tendermint/types/params";
|
|
50
50
|
import { MsgUpdateParams as ja } from "@initia/initia.proto/cosmos/consensus/v1/tx";
|
|
51
51
|
import { MsgVerifyInvariant as Ym, MsgUpdateParams as Ja } from "@initia/initia.proto/cosmos/crisis/v1beta1/tx";
|
|
52
52
|
import { MsgSetWithdrawAddress as Qa, MsgWithdrawDelegatorReward as Ya, MsgWithdrawValidatorCommission as Za, MsgFundCommunityPool as Xa, MsgCommunityPoolSpend as ti } from "@initia/initia.proto/cosmos/distribution/v1beta1/tx";
|
|
53
|
-
import { RewardWeight as
|
|
53
|
+
import { RewardWeight as zd, Params as Kd } from "@initia/initia.proto/initia/distribution/v1/distribution";
|
|
54
54
|
import { MsgUpdateParams as ei, MsgDepositValidatorRewardsPool as ri } from "@initia/initia.proto/initia/distribution/v1/tx";
|
|
55
55
|
import { MsgSubmitEvidence as oi } from "@initia/initia.proto/cosmos/evidence/v1beta1/tx";
|
|
56
56
|
import { Equivocation as si } from "@initia/initia.proto/cosmos/evidence/v1beta1/evidence";
|
|
@@ -61,60 +61,60 @@ import { MsgGrantAllowance as li, MsgRevokeAllowance as pi } from "@initia/initi
|
|
|
61
61
|
import { MsgRegisterAccount as hi, MsgClearAccount as fi } from "@initia/initia.proto/noble/forwarding/v1/tx";
|
|
62
62
|
import { MsgCancelProposal as gi, MsgDeposit as _i, MsgSubmitProposal as yi, MsgVote as vi, MsgVoteWeighted as bi } from "@initia/initia.proto/cosmos/gov/v1/tx";
|
|
63
63
|
import { MsgDeposit as wi, MsgSubmitProposal as Pi, MsgVote as Ai, MsgVoteWeighted as Di } from "@initia/initia.proto/cosmos/gov/v1beta1/tx";
|
|
64
|
-
import { ParamChange as
|
|
65
|
-
import { TextProposal as xi, VoteOption as
|
|
66
|
-
import { TallyResult as
|
|
67
|
-
import { TallyResult as
|
|
64
|
+
import { ParamChange as Hd, ParameterChangeProposal as ki } from "@initia/initia.proto/cosmos/params/v1beta1/params";
|
|
65
|
+
import { TextProposal as xi, VoteOption as Gd } from "@initia/initia.proto/cosmos/gov/v1beta1/gov";
|
|
66
|
+
import { TallyResult as Wd, ProposalStatus as jd, proposalStatusFromJSON as Zm, proposalStatusToJSON as Xm, VoteOption as Iu, Vote as Jd, WeightedVoteOption as Qd, Deposit as Yd } from "@initia/initia.proto/cosmos/gov/v1/gov";
|
|
67
|
+
import { TallyResult as Zd, Proposal as Xd, Vesting as tl, Params as el } from "@initia/initia.proto/initia/gov/v1/gov";
|
|
68
68
|
import { MsgUpdateParams as Mi } from "@initia/initia.proto/initia/gov/v1/tx";
|
|
69
|
-
import { GroupMember as
|
|
69
|
+
import { GroupMember as rl, Member as ol, MemberRequest as sl, DecisionPolicyWindows as nl, ThresholdDecisionPolicy as Si, PercentageDecisionPolicy as Ii, VoteOption as Nu, voteOptionFromJSON as Kn, voteOptionToJSON as Vn, GroupInfo as al, GroupPolicyInfo as il, ProposalStatus as cl, ProposalExecutorResult as ml, proposalStatusFromJSON as tu, proposalExecutorResultFromJSON as eu, proposalStatusToJSON as ru, proposalExecutorResultToJSON as ou, TallyResult as ul, Proposal as dl, Vote as ll } from "@initia/initia.proto/cosmos/group/v1/types";
|
|
70
70
|
import { MsgCreateGroup as Ni, MsgCreateGroupPolicy as Ui, MsgCreateGroupWithPolicy as Ci, MsgExec as $i, Exec as Uu, execFromJSON as Hn, execToJSON as Gn, MsgVote as Ei, MsgLeaveGroup as Bi, MsgSubmitProposal as Oi, MsgUpdateGroupAdmin as Ti, MsgUpdateGroupPolicyDecisionPolicy as Ri, MsgUpdateGroupMembers as Fi, MsgUpdateGroupMetadata as Li, MsgUpdateGroupPolicyAdmin as qi, MsgUpdateGroupPolicyMetadata as zi } from "@initia/initia.proto/cosmos/group/v1/tx";
|
|
71
|
-
import { MsgPayPacketFee as
|
|
72
|
-
import { Fee as
|
|
73
|
-
import { PacketId as
|
|
74
|
-
import { Metadata as
|
|
71
|
+
import { MsgPayPacketFee as Ki, MsgPayPacketFeeAsync as Vi, MsgRegisterPayee as Hi, MsgRegisterCounterpartyPayee as Gi } from "@initia/initia.proto/ibc/applications/fee/v1/tx";
|
|
72
|
+
import { Fee as pl, PacketFee as hl } from "@initia/initia.proto/ibc/applications/fee/v1/fee";
|
|
73
|
+
import { PacketId as fl, Counterparty as gl, Channel as _l, Timeout as yl, Params as vl, Packet as bl } from "@initia/initia.proto/ibc/core/channel/v1/channel";
|
|
74
|
+
import { Metadata as wl } from "@initia/initia.proto/ibc/applications/fee/v1/metadata";
|
|
75
75
|
import { MsgUpdateACL as Wi, MsgUpdateParams as ji } from "@initia/initia.proto/initia/ibchooks/v1/tx";
|
|
76
|
-
import { Params as
|
|
76
|
+
import { Params as Pl, ACL as Al } from "@initia/initia.proto/initia/ibchooks/v1/types";
|
|
77
77
|
import { MsgTransfer as Ji, MsgUpdateParams as Qi } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/tx";
|
|
78
|
-
import { Params as
|
|
79
|
-
import { NonFungibleTokenPacketData as
|
|
78
|
+
import { Params as Dl, ClassTrace as kl } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/types";
|
|
79
|
+
import { NonFungibleTokenPacketData as xl } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/packet";
|
|
80
80
|
import { MsgUpdateAdmin as Yi, MsgUpdatePermissionedRelayers as Zi } from "@initia/initia.proto/ibc/applications/perm/v1/tx";
|
|
81
81
|
import { MsgChannelOpenInit as Xi, MsgChannelOpenTry as tc, MsgChannelOpenConfirm as ec, MsgChannelOpenAck as rc, MsgChannelCloseInit as oc, MsgChannelCloseConfirm as sc, MsgRecvPacket as nc, MsgAcknowledgement as ac, MsgTimeout as ic, MsgTimeoutOnClose as cc, MsgUpdateParams as mc } from "@initia/initia.proto/ibc/core/channel/v1/tx";
|
|
82
|
-
import { MerklePrefix as
|
|
83
|
-
import { Counterparty as
|
|
84
|
-
import { State as
|
|
82
|
+
import { MerklePrefix as Ml, MerkleRoot as Sl } from "@initia/initia.proto/ibc/core/commitment/v1/commitment";
|
|
83
|
+
import { Counterparty as Il, Version as Nl, stateFromJSON as su, stateToJSON as nu, IdentifiedConnection as Ul, Params as Cl } from "@initia/initia.proto/ibc/core/connection/v1/connection";
|
|
84
|
+
import { State as Og, stateFromJSON as Tg, stateToJSON as Rg } from "@initia/initia.proto/ibc/core/connection/v1/connection";
|
|
85
85
|
import { MsgCreateClient as uc, MsgUpdateClient as dc, MsgUpgradeClient as lc, MsgSubmitMisbehaviour as pc, MsgRecoverClient as hc, MsgIBCSoftwareUpgrade as fc, MsgUpdateParams as gc } from "@initia/initia.proto/ibc/core/client/v1/tx";
|
|
86
|
-
import { Plan as
|
|
86
|
+
import { Plan as $l } from "@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade";
|
|
87
87
|
import { MsgSoftwareUpgrade as _c, MsgCancelUpgrade as yc } from "@initia/initia.proto/cosmos/upgrade/v1beta1/tx";
|
|
88
88
|
import { MsgConnectionOpenInit as vc, MsgConnectionOpenTry as bc, MsgConnectionOpenConfirm as wc, MsgConnectionOpenAck as Pc, MsgUpdateParams as Ac } from "@initia/initia.proto/ibc/core/connection/v1/tx";
|
|
89
89
|
import { MsgRegisterAccount as Dc, MsgSubmitTx as kc } from "@initia/initia.proto/initia/intertx/v1/tx";
|
|
90
90
|
import { MsgCreateMarkets as xc, MsgUpdateMarkets as Mc, MsgUpsertMarkets as Sc, MsgRemoveMarketAuthorities as Ic, MsgParams as Nc } from "@initia/initia.proto/connect/marketmap/v2/tx";
|
|
91
91
|
import { MsgAddCurrencyPairs as Uc, MsgRemoveCurrencyPairs as Cc } from "@initia/initia.proto/connect/oracle/v2/tx";
|
|
92
|
-
import { CurrencyPair as
|
|
93
|
-
import { QuotePrice as
|
|
94
|
-
import { ProviderConfig as
|
|
95
|
-
import { Params as
|
|
96
|
-
import { MsgPublish as $c, MsgExecute as Ec, MsgExecuteJSON as Bc, MsgScript as Oc, MsgScriptJSON as Tc, MsgUpdateParams as Rc, MsgWhitelist as Fc, MsgDelist as Lc, MsgGovExecute as qc, MsgGovExecuteJSON as zc, MsgGovPublish as
|
|
92
|
+
import { CurrencyPair as El } from "@initia/initia.proto/connect/types/v2/currency_pair";
|
|
93
|
+
import { QuotePrice as Bl } from "@initia/initia.proto/connect/oracle/v2/genesis";
|
|
94
|
+
import { ProviderConfig as Ol, Ticker as Tl, Market as Rl } from "@initia/initia.proto/connect/marketmap/v2/market";
|
|
95
|
+
import { Params as Fl } from "@initia/initia.proto/connect/marketmap/v2/params";
|
|
96
|
+
import { MsgPublish as $c, MsgExecute as Ec, MsgExecuteJSON as Bc, MsgScript as Oc, MsgScriptJSON as Tc, MsgUpdateParams as Rc, MsgWhitelist as Fc, MsgDelist as Lc, MsgGovExecute as qc, MsgGovExecuteJSON as zc, MsgGovPublish as Kc, MsgGovScript as Vc, MsgGovScriptJSON as Hc } from "@initia/initia.proto/initia/move/v1/tx";
|
|
97
97
|
import { MsgDelegate as Gc, MsgUndelegate as Wc, MsgBeginRedelegate as jc, MsgCreateValidator as Jc, MsgEditValidator as Qc, MsgCancelUnbondingDelegation as Yc, MsgUpdateParams as Zc } from "@initia/initia.proto/initia/mstaking/v1/tx";
|
|
98
|
-
import { BondStatus as
|
|
98
|
+
import { BondStatus as Ll, Validator as ql, Description as zl, CommissionRates as Kl, Commission as Vl, Params as Hl, DelegationResponse as Gl, Delegation as Wl, RedelegationResponse as jl, Redelegation as Jl, RedelegationEntryResponse as Ql, RedelegationEntry as Yl, UnbondingDelegation as Zl, UnbondingDelegationEntry as Xl } from "@initia/initia.proto/initia/mstaking/v1/staking";
|
|
99
99
|
import { MsgAddValidator as Xc, MsgRemoveValidator as tm, MsgFinalizeTokenDeposit as em, MsgInitiateTokenWithdrawal as rm, MsgExecuteMessages as om, MsgSpendFeePool as sm, MsgSetBridgeInfo as nm, MsgUpdateOracle as am, MsgUpdateParams as im } from "@initia/opinit.proto/opinit/opchild/v1/tx";
|
|
100
|
-
import { BridgeInfo as
|
|
100
|
+
import { BridgeInfo as tp, Params as ep, Validator as rp } from "@initia/opinit.proto/opinit/opchild/v1/types";
|
|
101
101
|
import { MsgRecordBatch as cm, MsgCreateBridge as mm, MsgProposeOutput as um, MsgDeleteOutput as dm, MsgInitiateTokenDeposit as lm, MsgFinalizeTokenWithdrawal as pm, MsgUpdateProposer as hm, MsgUpdateChallenger as fm, MsgUpdateBatchInfo as gm, MsgUpdateOracleConfig as _m, MsgUpdateMetadata as ym, MsgUpdateParams as vm } from "@initia/opinit.proto/opinit/ophost/v1/tx";
|
|
102
|
-
import { batchInfo_ChainTypeFromJSON as au, batchInfo_ChainTypeToJSON as iu, BatchInfo as
|
|
103
|
-
import { Params as
|
|
102
|
+
import { batchInfo_ChainTypeFromJSON as au, batchInfo_ChainTypeToJSON as iu, BatchInfo as op, BridgeConfig as sp, Params as np, Output as ap, BatchInfoWithOutput as ip } from "@initia/opinit.proto/opinit/ophost/v1/types";
|
|
103
|
+
import { Params as cp } from "@initia/initia.proto/initia/reward/v1/types";
|
|
104
104
|
import { MsgUpdateParams as bm } from "@initia/initia.proto/initia/reward/v1/tx";
|
|
105
105
|
import { MsgUnjail as wm, MsgUpdateParams as Pm } from "@initia/initia.proto/cosmos/slashing/v1beta1/tx";
|
|
106
|
-
import { Params as
|
|
106
|
+
import { Params as mp } from "@initia/initia.proto/cosmos/slashing/v1beta1/slashing";
|
|
107
107
|
import { MsgCreateDenom as Am, MsgMint as Dm, MsgBurn as km, MsgChangeAdmin as xm, MsgSetDenomMetadata as Mm, MsgSetBeforeSendHook as Sm, MsgForceTransfer as Im, MsgUpdateParams as Nm } from "@initia/initia.proto/miniwasm/tokenfactory/v1/tx";
|
|
108
|
-
import { Params as
|
|
109
|
-
import { ABCIMessageLog as
|
|
108
|
+
import { Params as up } from "@initia/initia.proto/miniwasm/tokenfactory/v1/params";
|
|
109
|
+
import { ABCIMessageLog as dp } from "@initia/initia.proto/cosmos/base/abci/v1beta1/abci";
|
|
110
110
|
import { bcs as ct } from "@mysten/bcs";
|
|
111
|
-
import * as
|
|
111
|
+
import * as lp from "bip32";
|
|
112
112
|
import * as cu from "bip39";
|
|
113
|
-
import
|
|
114
|
-
import
|
|
115
|
-
import * as
|
|
116
|
-
const kg =
|
|
117
|
-
class
|
|
113
|
+
import pp from "ws";
|
|
114
|
+
import hp from "ripemd160";
|
|
115
|
+
import * as fp from "semver";
|
|
116
|
+
const kg = Qu;
|
|
117
|
+
class gp {
|
|
118
118
|
constructor(t, e) {
|
|
119
119
|
p(this, "axios");
|
|
120
120
|
p(this, "baseURL");
|
|
@@ -125,7 +125,7 @@ class fp {
|
|
|
125
125
|
},
|
|
126
126
|
timeout: 3e4
|
|
127
127
|
};
|
|
128
|
-
this.axios =
|
|
128
|
+
this.axios = ju.create({
|
|
129
129
|
...r,
|
|
130
130
|
...e,
|
|
131
131
|
headers: { ...r.headers, ...e == null ? void 0 : e.headers }
|
|
@@ -139,7 +139,7 @@ class fp {
|
|
|
139
139
|
const r = this.computeEndpoint(t);
|
|
140
140
|
return this.axios.get(r, { params: e }).then((o) => o.data);
|
|
141
141
|
}
|
|
142
|
-
async get(t, e = {}, r = new
|
|
142
|
+
async get(t, e = {}, r = new Ju()) {
|
|
143
143
|
const o = this.computeEndpoint(t);
|
|
144
144
|
return this.axios.get(o, { params: e, headers: r }).then((s) => s.data);
|
|
145
145
|
}
|
|
@@ -166,11 +166,11 @@ class m {
|
|
|
166
166
|
return JSON.stringify(Wn(this.toAmino()));
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _p(i) {
|
|
170
170
|
return i !== null && typeof i == "object" ? Object.entries(i).filter(([, t]) => t != null).reduce(
|
|
171
171
|
(t, [e, r]) => ({
|
|
172
172
|
...t,
|
|
173
|
-
[e]: r === Object(r) && !Array.isArray(r) ?
|
|
173
|
+
[e]: r === Object(r) && !Array.isArray(r) ? _p(r) : r
|
|
174
174
|
}),
|
|
175
175
|
{}
|
|
176
176
|
) : i;
|
|
@@ -331,7 +331,7 @@ class y extends m {
|
|
|
331
331
|
return new y(e.denom, e.amount);
|
|
332
332
|
}
|
|
333
333
|
toProto() {
|
|
334
|
-
return
|
|
334
|
+
return Yu.fromPartial({
|
|
335
335
|
denom: this.denom,
|
|
336
336
|
amount: this.isDecimal ? b(this.amount).toFixed(18) : this.amount
|
|
337
337
|
});
|
|
@@ -345,7 +345,7 @@ class y extends m {
|
|
|
345
345
|
}
|
|
346
346
|
i.ArithmeticError = t;
|
|
347
347
|
})(y || (y = {}));
|
|
348
|
-
class
|
|
348
|
+
class qt extends m {
|
|
349
349
|
/**
|
|
350
350
|
* @param bidder the address of the account that is submitting a bid to the auction
|
|
351
351
|
* @param bid the amount of coins that the bidder is bidding to participate in the auction
|
|
@@ -358,7 +358,7 @@ class Lt extends m {
|
|
|
358
358
|
const {
|
|
359
359
|
value: { bidder: e, bid: r, transactions: o }
|
|
360
360
|
} = t;
|
|
361
|
-
return new
|
|
361
|
+
return new qt(e, y.fromAmino(r), o);
|
|
362
362
|
}
|
|
363
363
|
toAmino() {
|
|
364
364
|
const { bidder: t, bid: e, transactions: r } = this;
|
|
@@ -373,7 +373,7 @@ class Lt extends m {
|
|
|
373
373
|
}
|
|
374
374
|
static fromData(t) {
|
|
375
375
|
const { bidder: e, bid: r, transactions: o } = t;
|
|
376
|
-
return new
|
|
376
|
+
return new qt(e, y.fromData(r), o);
|
|
377
377
|
}
|
|
378
378
|
toData() {
|
|
379
379
|
const { bidder: t, bid: e, transactions: r } = this;
|
|
@@ -385,7 +385,7 @@ class Lt extends m {
|
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
static fromProto(t) {
|
|
388
|
-
return new
|
|
388
|
+
return new qt(
|
|
389
389
|
t.bidder,
|
|
390
390
|
y.fromProto(t.bid),
|
|
391
391
|
t.transactions.map((e) => Buffer.from(e).toString("base64"))
|
|
@@ -406,7 +406,7 @@ class Lt extends m {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
static unpackAny(t) {
|
|
409
|
-
return
|
|
409
|
+
return qt.fromProto(Qn.decode(t.value));
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
class $o extends m {
|
|
@@ -518,7 +518,7 @@ class $o extends m {
|
|
|
518
518
|
front_running_protection: s,
|
|
519
519
|
proposer_fee: n
|
|
520
520
|
} = this;
|
|
521
|
-
return
|
|
521
|
+
return Zu.fromPartial({
|
|
522
522
|
maxBundleSize: t,
|
|
523
523
|
escrowAccountAddress: Buffer.from(e, "base64"),
|
|
524
524
|
reserveFee: r.toProto(),
|
|
@@ -528,7 +528,7 @@ class $o extends m {
|
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
class
|
|
531
|
+
class zt extends m {
|
|
532
532
|
/**
|
|
533
533
|
* @param authority the address that controls the module
|
|
534
534
|
* @param params params defines the x/auth parameters to update
|
|
@@ -540,7 +540,7 @@ class qt extends m {
|
|
|
540
540
|
const {
|
|
541
541
|
value: { authority: e, params: r }
|
|
542
542
|
} = t;
|
|
543
|
-
return new
|
|
543
|
+
return new zt(
|
|
544
544
|
e,
|
|
545
545
|
$o.fromAmino(r)
|
|
546
546
|
);
|
|
@@ -557,7 +557,7 @@ class qt extends m {
|
|
|
557
557
|
}
|
|
558
558
|
static fromData(t) {
|
|
559
559
|
const { authority: e, params: r } = t;
|
|
560
|
-
return new
|
|
560
|
+
return new zt(e, $o.fromData(r));
|
|
561
561
|
}
|
|
562
562
|
toData() {
|
|
563
563
|
const { authority: t, params: e } = this;
|
|
@@ -568,7 +568,7 @@ class qt extends m {
|
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
570
|
static fromProto(t) {
|
|
571
|
-
return new
|
|
571
|
+
return new zt(
|
|
572
572
|
t.authority,
|
|
573
573
|
$o.fromProto(t.params)
|
|
574
574
|
);
|
|
@@ -587,7 +587,7 @@ class qt extends m {
|
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
static unpackAny(t) {
|
|
590
|
-
return
|
|
590
|
+
return zt.fromProto(
|
|
591
591
|
Yn.decode(t.value)
|
|
592
592
|
);
|
|
593
593
|
}
|
|
@@ -597,7 +597,7 @@ class k {
|
|
|
597
597
|
this.c = t;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
class
|
|
600
|
+
class yp extends k {
|
|
601
601
|
async parameters(t = {}) {
|
|
602
602
|
return this.c.get("/block-sdk/auction/v1/params", t).then(({ params: e }) => $o.fromData(e));
|
|
603
603
|
}
|
|
@@ -917,7 +917,7 @@ class Eo extends m {
|
|
|
917
917
|
sig_verify_cost_ed25519: o,
|
|
918
918
|
sig_verify_cost_secp256k1: s
|
|
919
919
|
} = this;
|
|
920
|
-
return
|
|
920
|
+
return Xu.fromPartial({
|
|
921
921
|
maxMemoCharacters: f.fromNumber(t),
|
|
922
922
|
txSigLimit: f.fromNumber(e),
|
|
923
923
|
txSizeCostPerByte: f.fromNumber(r),
|
|
@@ -926,7 +926,7 @@ class Eo extends m {
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
class
|
|
929
|
+
class Kt extends m {
|
|
930
930
|
/**
|
|
931
931
|
* @param authority the address that controls the module
|
|
932
932
|
* @param params params defines the x/auth parameters to update
|
|
@@ -938,7 +938,7 @@ class zt extends m {
|
|
|
938
938
|
const {
|
|
939
939
|
value: { authority: e, params: r }
|
|
940
940
|
} = t;
|
|
941
|
-
return new
|
|
941
|
+
return new Kt(e, Eo.fromAmino(r));
|
|
942
942
|
}
|
|
943
943
|
toAmino() {
|
|
944
944
|
const { authority: t, params: e } = this;
|
|
@@ -952,7 +952,7 @@ class zt extends m {
|
|
|
952
952
|
}
|
|
953
953
|
static fromData(t) {
|
|
954
954
|
const { authority: e, params: r } = t;
|
|
955
|
-
return new
|
|
955
|
+
return new Kt(e, Eo.fromData(r));
|
|
956
956
|
}
|
|
957
957
|
toData() {
|
|
958
958
|
const { authority: t, params: e } = this;
|
|
@@ -963,7 +963,7 @@ class zt extends m {
|
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
965
|
static fromProto(t) {
|
|
966
|
-
return new
|
|
966
|
+
return new Kt(
|
|
967
967
|
t.authority,
|
|
968
968
|
Eo.fromProto(t.params)
|
|
969
969
|
);
|
|
@@ -982,27 +982,27 @@ class zt extends m {
|
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
static unpackAny(t) {
|
|
985
|
-
return
|
|
985
|
+
return Kt.fromProto(
|
|
986
986
|
ta.decode(t.value)
|
|
987
987
|
);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
function $m(i) {
|
|
991
|
-
return ku.hash(
|
|
991
|
+
return ku.hash(rd.parse(i)).toString().toUpperCase();
|
|
992
992
|
}
|
|
993
993
|
function Lm(i) {
|
|
994
994
|
return ku.hash(new Fm(i)).toUint8Array();
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function vp(i) {
|
|
997
997
|
return xu(Buffer.from(i));
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
return
|
|
999
|
+
function bp(i) {
|
|
1000
|
+
return ed.hash(new Fm(i)).toUint8Array();
|
|
1001
1001
|
}
|
|
1002
|
-
const
|
|
1002
|
+
const wp = Buffer.from(
|
|
1003
1003
|
"eb5ae98721",
|
|
1004
1004
|
"hex"
|
|
1005
|
-
),
|
|
1005
|
+
), Pp = Buffer.from(
|
|
1006
1006
|
"22c1f7e2",
|
|
1007
1007
|
"hex"
|
|
1008
1008
|
), mu = (i) => {
|
|
@@ -1024,7 +1024,7 @@ var bt;
|
|
|
1024
1024
|
case "tendermint/PubKeyEd25519":
|
|
1025
1025
|
return F.fromAmino(o);
|
|
1026
1026
|
case "initia/PubKeyEthSecp256k1":
|
|
1027
|
-
return
|
|
1027
|
+
return $t.fromAmino(o);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
i.fromAmino = t;
|
|
@@ -1037,7 +1037,7 @@ var bt;
|
|
|
1037
1037
|
case "/cosmos.crypto.ed25519.PubKey":
|
|
1038
1038
|
return F.fromData(o);
|
|
1039
1039
|
case "/initia.crypto.v1beta1.ethsecp256k1.PubKey":
|
|
1040
|
-
return
|
|
1040
|
+
return $t.fromData(o);
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
i.fromData = e;
|
|
@@ -1050,7 +1050,7 @@ var bt;
|
|
|
1050
1050
|
if (s === "/cosmos.crypto.ed25519.PubKey")
|
|
1051
1051
|
return F.unpackAny(o);
|
|
1052
1052
|
if (s === "/initia.crypto.v1beta1.ethsecp256k1.PubKey")
|
|
1053
|
-
return
|
|
1053
|
+
return $t.unpackAny(o);
|
|
1054
1054
|
throw new Error(`Pubkey type ${s} not recognized`);
|
|
1055
1055
|
}
|
|
1056
1056
|
i.fromProto = r;
|
|
@@ -1096,13 +1096,13 @@ class q extends m {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
encodeAminoPubkey() {
|
|
1098
1098
|
return Buffer.concat([
|
|
1099
|
-
|
|
1099
|
+
wp,
|
|
1100
1100
|
Buffer.from(this.key, "base64")
|
|
1101
1101
|
]);
|
|
1102
1102
|
}
|
|
1103
1103
|
rawAddress() {
|
|
1104
1104
|
const t = Buffer.from(this.key, "base64");
|
|
1105
|
-
return
|
|
1105
|
+
return bp(Lm(t));
|
|
1106
1106
|
}
|
|
1107
1107
|
address() {
|
|
1108
1108
|
return x.encode("init", x.toWords(this.rawAddress()));
|
|
@@ -1113,7 +1113,7 @@ class Ct extends m {
|
|
|
1113
1113
|
super(), this.threshold = t, this.pubkeys = e;
|
|
1114
1114
|
}
|
|
1115
1115
|
encodeAminoPubkey() {
|
|
1116
|
-
const t = Array.from(
|
|
1116
|
+
const t = Array.from(Pp);
|
|
1117
1117
|
t.push(8), t.push(...mu(this.threshold));
|
|
1118
1118
|
for (const e of this.pubkeys.map((r) => r.encodeAminoPubkey()))
|
|
1119
1119
|
t.push(18), t.push(...mu(e.length)), t.push(...Array.from(e));
|
|
@@ -1225,12 +1225,12 @@ class F extends m {
|
|
|
1225
1225
|
return x.encode("initvalcons", x.toWords(this.rawAddress()));
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
class
|
|
1228
|
+
class $t extends m {
|
|
1229
1229
|
constructor(t) {
|
|
1230
1230
|
super(), this.key = t;
|
|
1231
1231
|
}
|
|
1232
1232
|
static fromAmino(t) {
|
|
1233
|
-
return new
|
|
1233
|
+
return new $t(t.value);
|
|
1234
1234
|
}
|
|
1235
1235
|
toAmino() {
|
|
1236
1236
|
return {
|
|
@@ -1239,7 +1239,7 @@ class Vt extends m {
|
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
1241
|
static fromData(t) {
|
|
1242
|
-
return new
|
|
1242
|
+
return new $t(t.key);
|
|
1243
1243
|
}
|
|
1244
1244
|
toData() {
|
|
1245
1245
|
return {
|
|
@@ -1248,7 +1248,7 @@ class Vt extends m {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
1250
|
static fromProto(t) {
|
|
1251
|
-
return new
|
|
1251
|
+
return new $t(Buffer.from(t.key).toString("base64"));
|
|
1252
1252
|
}
|
|
1253
1253
|
toProto() {
|
|
1254
1254
|
return sa.fromPartial({
|
|
@@ -1262,7 +1262,7 @@ class Vt extends m {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
static unpackAny(t) {
|
|
1265
|
-
return
|
|
1265
|
+
return $t.fromProto(sa.decode(t.value));
|
|
1266
1266
|
}
|
|
1267
1267
|
rawAddress() {
|
|
1268
1268
|
if (!_n.publicKeyVerify(Buffer.from(this.key, "base64")))
|
|
@@ -1271,7 +1271,7 @@ class Vt extends m {
|
|
|
1271
1271
|
Buffer.from(this.key, "base64"),
|
|
1272
1272
|
!1
|
|
1273
1273
|
);
|
|
1274
|
-
return
|
|
1274
|
+
return vp(e.slice(1)).slice(12);
|
|
1275
1275
|
}
|
|
1276
1276
|
address() {
|
|
1277
1277
|
return x.encode("init", x.toWords(this.rawAddress()));
|
|
@@ -1369,7 +1369,7 @@ class ot extends m {
|
|
|
1369
1369
|
return ot.fromProto(Zn.decode(t.value));
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
class
|
|
1372
|
+
class Et extends m {
|
|
1373
1373
|
/**
|
|
1374
1374
|
*
|
|
1375
1375
|
* @param base_account account information
|
|
@@ -1392,7 +1392,7 @@ class $t extends m {
|
|
|
1392
1392
|
const {
|
|
1393
1393
|
value: { base_account: e, name: r, permissions: o }
|
|
1394
1394
|
} = t;
|
|
1395
|
-
return new
|
|
1395
|
+
return new Et(
|
|
1396
1396
|
ot.fromAmino({
|
|
1397
1397
|
type: "cosmos-sdk/BaseAccount",
|
|
1398
1398
|
value: e
|
|
@@ -1414,7 +1414,7 @@ class $t extends m {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
static fromData(t) {
|
|
1416
1416
|
const { base_account: e, name: r, permissions: o } = t;
|
|
1417
|
-
return new
|
|
1417
|
+
return new Et(
|
|
1418
1418
|
ot.fromData({
|
|
1419
1419
|
"@type": "/cosmos.auth.v1beta1.BaseAccount",
|
|
1420
1420
|
...e
|
|
@@ -1433,7 +1433,7 @@ class $t extends m {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
static fromProto(t) {
|
|
1436
|
-
return new
|
|
1436
|
+
return new Et(
|
|
1437
1437
|
ot.fromProto(t.baseAccount),
|
|
1438
1438
|
t.name,
|
|
1439
1439
|
t.permissions
|
|
@@ -1454,7 +1454,7 @@ class $t extends m {
|
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
1456
|
static unpackAny(t) {
|
|
1457
|
-
return
|
|
1457
|
+
return Et.fromProto(Xn.decode(t.value));
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
var Em;
|
|
@@ -1464,7 +1464,7 @@ var Em;
|
|
|
1464
1464
|
case "cosmos-sdk/BaseAccount":
|
|
1465
1465
|
return ot.fromAmino(o);
|
|
1466
1466
|
case "cosmos-sdk/ModuleAccount":
|
|
1467
|
-
return
|
|
1467
|
+
return Et.fromAmino(o);
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
i.fromAmino = t;
|
|
@@ -1473,7 +1473,7 @@ var Em;
|
|
|
1473
1473
|
case "/cosmos.auth.v1beta1.BaseAccount":
|
|
1474
1474
|
return ot.fromData(o);
|
|
1475
1475
|
case "/cosmos.auth.v1beta1.ModuleAccount":
|
|
1476
|
-
return
|
|
1476
|
+
return Et.fromData(o);
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
i.fromData = e;
|
|
@@ -1482,7 +1482,7 @@ var Em;
|
|
|
1482
1482
|
if (s === "/cosmos.auth.v1beta1.BaseAccount")
|
|
1483
1483
|
return ot.unpackAny(o);
|
|
1484
1484
|
if (s === "/cosmos.auth.v1beta1.ModuleAccount")
|
|
1485
|
-
return
|
|
1485
|
+
return Et.unpackAny(o);
|
|
1486
1486
|
throw new Error(`Account type ${s} not recognized`);
|
|
1487
1487
|
}
|
|
1488
1488
|
i.fromProto = r;
|
|
@@ -1501,7 +1501,7 @@ class lt extends m {
|
|
|
1501
1501
|
u.fromAmino(r),
|
|
1502
1502
|
ut.fromAmino(o),
|
|
1503
1503
|
ut.fromAmino(s),
|
|
1504
|
-
|
|
1504
|
+
Vm(n)
|
|
1505
1505
|
);
|
|
1506
1506
|
}
|
|
1507
1507
|
toAmino() {
|
|
@@ -1522,7 +1522,7 @@ class lt extends m {
|
|
|
1522
1522
|
u.fromData(r),
|
|
1523
1523
|
ut.fromData(o),
|
|
1524
1524
|
ut.fromData(s),
|
|
1525
|
-
|
|
1525
|
+
Vm(n)
|
|
1526
1526
|
);
|
|
1527
1527
|
}
|
|
1528
1528
|
toData() {
|
|
@@ -1590,22 +1590,22 @@ class ut extends m {
|
|
|
1590
1590
|
return new ut(t.address);
|
|
1591
1591
|
}
|
|
1592
1592
|
toProto() {
|
|
1593
|
-
return
|
|
1593
|
+
return nd.fromPartial({
|
|
1594
1594
|
address: this.address
|
|
1595
1595
|
});
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
((i) => {
|
|
1599
|
-
i.Type =
|
|
1599
|
+
i.Type = sd;
|
|
1600
1600
|
})(lt || (lt = {}));
|
|
1601
|
-
class
|
|
1601
|
+
class Vt extends m {
|
|
1602
1602
|
constructor(e, r) {
|
|
1603
1603
|
super();
|
|
1604
1604
|
p(this, "spend_limit");
|
|
1605
1605
|
this.allow_list = r, this.spend_limit = new u(e);
|
|
1606
1606
|
}
|
|
1607
1607
|
static fromAmino(e) {
|
|
1608
|
-
return new
|
|
1608
|
+
return new Vt(
|
|
1609
1609
|
u.fromAmino(e.value.spend_limit),
|
|
1610
1610
|
e.value.allow_list
|
|
1611
1611
|
);
|
|
@@ -1621,7 +1621,7 @@ class Kt extends m {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
static fromData(e) {
|
|
1624
|
-
return new
|
|
1624
|
+
return new Vt(
|
|
1625
1625
|
u.fromData(e.spend_limit),
|
|
1626
1626
|
e.allow_list
|
|
1627
1627
|
);
|
|
@@ -1635,7 +1635,7 @@ class Kt extends m {
|
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
1637
|
static fromProto(e) {
|
|
1638
|
-
return new
|
|
1638
|
+
return new Vt(
|
|
1639
1639
|
u.fromProto(e.spendLimit),
|
|
1640
1640
|
e.allowList
|
|
1641
1641
|
);
|
|
@@ -1653,7 +1653,7 @@ class Kt extends m {
|
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
1655
1655
|
static unpackAny(e) {
|
|
1656
|
-
return
|
|
1656
|
+
return Vt.fromProto(
|
|
1657
1657
|
aa.decode(e.value)
|
|
1658
1658
|
);
|
|
1659
1659
|
}
|
|
@@ -1840,7 +1840,7 @@ class es extends m {
|
|
|
1840
1840
|
);
|
|
1841
1841
|
}
|
|
1842
1842
|
toProto() {
|
|
1843
|
-
return
|
|
1843
|
+
return id.fromPartial({
|
|
1844
1844
|
moduleAddress: this.module_address,
|
|
1845
1845
|
moduleName: this.module_name,
|
|
1846
1846
|
functionNames: this.function_names
|
|
@@ -1882,14 +1882,14 @@ class N extends m {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
toProto() {
|
|
1884
1884
|
const { permission: t, addresses: e } = this;
|
|
1885
|
-
return
|
|
1885
|
+
return ld.fromPartial({
|
|
1886
1886
|
permission: t,
|
|
1887
1887
|
addresses: e
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
((i) => {
|
|
1892
|
-
i.Type =
|
|
1892
|
+
i.Type = dd;
|
|
1893
1893
|
})(N || (N = {}));
|
|
1894
1894
|
class rs extends m {
|
|
1895
1895
|
constructor(t, e) {
|
|
@@ -1931,7 +1931,7 @@ class rs extends m {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
toProto() {
|
|
1933
1933
|
const { code_hash: t, instantiate_permission: e } = this;
|
|
1934
|
-
return
|
|
1934
|
+
return md.fromPartial({
|
|
1935
1935
|
codeHash: Buffer.from(t, "base64"),
|
|
1936
1936
|
instantiatePermission: e == null ? void 0 : e.toProto()
|
|
1937
1937
|
});
|
|
@@ -2373,7 +2373,7 @@ class wt extends m {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
toProto() {
|
|
2375
2375
|
const { contract: t, limit: e, filter: r } = this;
|
|
2376
|
-
return
|
|
2376
|
+
return ud.fromPartial({
|
|
2377
2377
|
contract: t,
|
|
2378
2378
|
limit: e.packAny(),
|
|
2379
2379
|
filter: r.packAny()
|
|
@@ -3156,7 +3156,7 @@ class Bo extends m {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
toProto() {
|
|
3158
3158
|
const { code_upload_access: t, instantiate_default_permission: e } = this;
|
|
3159
|
-
return
|
|
3159
|
+
return pd.fromPartial({
|
|
3160
3160
|
codeUploadAccess: t.toProto(),
|
|
3161
3161
|
instantiateDefaultPermission: e
|
|
3162
3162
|
});
|
|
@@ -3918,7 +3918,7 @@ class ks extends m {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
toProto() {
|
|
3920
3920
|
const { block_height: t, tx_index: e } = this;
|
|
3921
|
-
return
|
|
3921
|
+
return hd.fromPartial({
|
|
3922
3922
|
blockHeight: f.fromNumber(t),
|
|
3923
3923
|
txIndex: f.fromNumber(e)
|
|
3924
3924
|
});
|
|
@@ -4018,7 +4018,7 @@ class xs extends m {
|
|
|
4018
4018
|
allow_list: s,
|
|
4019
4019
|
allowed_packet_data: n
|
|
4020
4020
|
} = this;
|
|
4021
|
-
return
|
|
4021
|
+
return gd.fromPartial({
|
|
4022
4022
|
sourcePort: e,
|
|
4023
4023
|
sourceChannel: r,
|
|
4024
4024
|
spendLimit: o.toProto(),
|
|
@@ -4110,7 +4110,7 @@ class w extends m {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
toProto() {
|
|
4112
4112
|
const { revision_number: t, revision_height: e } = this;
|
|
4113
|
-
return
|
|
4113
|
+
return _d.fromPartial({
|
|
4114
4114
|
revisionNumber: f.fromNumber(t),
|
|
4115
4115
|
revisionHeight: f.fromNumber(e)
|
|
4116
4116
|
});
|
|
@@ -4329,7 +4329,7 @@ class Ss extends m {
|
|
|
4329
4329
|
}
|
|
4330
4330
|
toProto() {
|
|
4331
4331
|
const { send_enabled: t, receive_enabled: e } = this;
|
|
4332
|
-
return
|
|
4332
|
+
return Pd.fromPartial({
|
|
4333
4333
|
sendEnabled: t,
|
|
4334
4334
|
receiveEnabled: e
|
|
4335
4335
|
});
|
|
@@ -4424,7 +4424,7 @@ class Ns extends m {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
toProto() {
|
|
4426
4426
|
const { path: t, base_denom: e } = this;
|
|
4427
|
-
return
|
|
4427
|
+
return Ad.fromPartial({ path: t, baseDenom: e });
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
4430
|
class En extends m {
|
|
@@ -4477,7 +4477,7 @@ class En extends m {
|
|
|
4477
4477
|
}
|
|
4478
4478
|
toProto() {
|
|
4479
4479
|
const { denom: t, amount: e, sender: r, receiver: o, memo: s } = this;
|
|
4480
|
-
return
|
|
4480
|
+
return Dd.fromPartial({
|
|
4481
4481
|
denom: t,
|
|
4482
4482
|
amount: e,
|
|
4483
4483
|
sender: r,
|
|
@@ -4526,7 +4526,7 @@ class Pt extends m {
|
|
|
4526
4526
|
}
|
|
4527
4527
|
toProto() {
|
|
4528
4528
|
const { authorization: t, expiration: e } = this;
|
|
4529
|
-
return
|
|
4529
|
+
return ad.fromPartial({
|
|
4530
4530
|
authorization: t.packAny(),
|
|
4531
4531
|
expiration: e
|
|
4532
4532
|
});
|
|
@@ -4537,7 +4537,7 @@ var bn;
|
|
|
4537
4537
|
function t(o) {
|
|
4538
4538
|
switch (o.type) {
|
|
4539
4539
|
case "cosmos-sdk/SendAuthorization":
|
|
4540
|
-
return
|
|
4540
|
+
return Vt.fromAmino(o);
|
|
4541
4541
|
case "cosmos-sdk/GenericAuthorization":
|
|
4542
4542
|
return Ht.fromAmino(o);
|
|
4543
4543
|
case "mstake/StakeAuthorization":
|
|
@@ -4560,7 +4560,7 @@ var bn;
|
|
|
4560
4560
|
case "/cosmos.authz.v1beta1.GenericAuthorization":
|
|
4561
4561
|
return Ht.fromData(o);
|
|
4562
4562
|
case "/cosmos.bank.v1beta1.SendAuthorization":
|
|
4563
|
-
return
|
|
4563
|
+
return Vt.fromData(o);
|
|
4564
4564
|
case "/initia.mstaking.v1.StakeAuthorization":
|
|
4565
4565
|
return lt.fromData(o);
|
|
4566
4566
|
case "/initia.move.v1.PublishAuthorization":
|
|
@@ -4584,7 +4584,7 @@ var bn;
|
|
|
4584
4584
|
case "/cosmos.authz.v1beta1.GenericAuthorization":
|
|
4585
4585
|
return Ht.unpackAny(o);
|
|
4586
4586
|
case "/cosmos.bank.v1beta1.SendAuthorization":
|
|
4587
|
-
return
|
|
4587
|
+
return Vt.unpackAny(o);
|
|
4588
4588
|
case "/initia.mstaking.v1.StakeAuthorization":
|
|
4589
4589
|
return lt.unpackAny(o);
|
|
4590
4590
|
case "/initia.move.v1.PublishAuthorization":
|
|
@@ -4873,7 +4873,7 @@ class De extends m {
|
|
|
4873
4873
|
return De.fromProto(za.decode(e.value));
|
|
4874
4874
|
}
|
|
4875
4875
|
}
|
|
4876
|
-
class
|
|
4876
|
+
class K extends m {
|
|
4877
4877
|
/**
|
|
4878
4878
|
* @param inputs inputs
|
|
4879
4879
|
* @param outputs outputs
|
|
@@ -4885,9 +4885,9 @@ class V extends m {
|
|
|
4885
4885
|
const {
|
|
4886
4886
|
value: { inputs: e, outputs: r }
|
|
4887
4887
|
} = t;
|
|
4888
|
-
return new
|
|
4889
|
-
e.map((o) =>
|
|
4890
|
-
r.map((o) =>
|
|
4888
|
+
return new K(
|
|
4889
|
+
e.map((o) => K.Input.fromAmino(o)),
|
|
4890
|
+
r.map((o) => K.Output.fromAmino(o))
|
|
4891
4891
|
);
|
|
4892
4892
|
}
|
|
4893
4893
|
toAmino() {
|
|
@@ -4902,9 +4902,9 @@ class V extends m {
|
|
|
4902
4902
|
}
|
|
4903
4903
|
static fromData(t) {
|
|
4904
4904
|
const { inputs: e, outputs: r } = t;
|
|
4905
|
-
return new
|
|
4906
|
-
e.map((o) =>
|
|
4907
|
-
r.map((o) =>
|
|
4905
|
+
return new K(
|
|
4906
|
+
e.map((o) => K.Input.fromData(o)),
|
|
4907
|
+
r.map((o) => K.Output.fromData(o))
|
|
4908
4908
|
);
|
|
4909
4909
|
}
|
|
4910
4910
|
toData() {
|
|
@@ -4916,14 +4916,14 @@ class V extends m {
|
|
|
4916
4916
|
};
|
|
4917
4917
|
}
|
|
4918
4918
|
static fromProto(t) {
|
|
4919
|
-
return new
|
|
4920
|
-
t.inputs.map((e) =>
|
|
4921
|
-
t.outputs.map((e) =>
|
|
4919
|
+
return new K(
|
|
4920
|
+
t.inputs.map((e) => K.Input.fromProto(e)),
|
|
4921
|
+
t.outputs.map((e) => K.Output.fromProto(e))
|
|
4922
4922
|
);
|
|
4923
4923
|
}
|
|
4924
4924
|
toProto() {
|
|
4925
4925
|
const { inputs: t, outputs: e } = this;
|
|
4926
|
-
return
|
|
4926
|
+
return Ka.fromPartial({
|
|
4927
4927
|
inputs: t.map((r) => r.toProto()),
|
|
4928
4928
|
outputs: e.map((r) => r.toProto())
|
|
4929
4929
|
});
|
|
@@ -4931,11 +4931,11 @@ class V extends m {
|
|
|
4931
4931
|
packAny() {
|
|
4932
4932
|
return l.fromPartial({
|
|
4933
4933
|
typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend",
|
|
4934
|
-
value:
|
|
4934
|
+
value: Ka.encode(this.toProto()).finish()
|
|
4935
4935
|
});
|
|
4936
4936
|
}
|
|
4937
4937
|
static unpackAny(t) {
|
|
4938
|
-
return
|
|
4938
|
+
return K.fromProto(Ka.decode(t.value));
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
((i) => {
|
|
@@ -4976,7 +4976,7 @@ class V extends m {
|
|
|
4976
4976
|
}
|
|
4977
4977
|
toProto() {
|
|
4978
4978
|
const { address: s, coins: n } = this;
|
|
4979
|
-
return
|
|
4979
|
+
return kd.fromPartial({
|
|
4980
4980
|
address: s,
|
|
4981
4981
|
coins: n.toProto()
|
|
4982
4982
|
});
|
|
@@ -5023,7 +5023,7 @@ class V extends m {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
toProto() {
|
|
5025
5025
|
const { address: s, coins: n } = this;
|
|
5026
|
-
return
|
|
5026
|
+
return xd.fromPartial({
|
|
5027
5027
|
address: s,
|
|
5028
5028
|
coins: n.toProto()
|
|
5029
5029
|
});
|
|
@@ -5033,7 +5033,7 @@ class V extends m {
|
|
|
5033
5033
|
}
|
|
5034
5034
|
}
|
|
5035
5035
|
i.Output = e;
|
|
5036
|
-
})(
|
|
5036
|
+
})(K || (K = {}));
|
|
5037
5037
|
class At extends m {
|
|
5038
5038
|
/**
|
|
5039
5039
|
* @param denom
|
|
@@ -5063,7 +5063,7 @@ class At extends m {
|
|
|
5063
5063
|
}
|
|
5064
5064
|
toProto() {
|
|
5065
5065
|
const { denom: t, enabled: e } = this;
|
|
5066
|
-
return
|
|
5066
|
+
return Md.fromPartial({
|
|
5067
5067
|
denom: t,
|
|
5068
5068
|
enabled: e
|
|
5069
5069
|
});
|
|
@@ -5119,7 +5119,7 @@ class Oo extends m {
|
|
|
5119
5119
|
}
|
|
5120
5120
|
toProto() {
|
|
5121
5121
|
const { send_enabled: t, default_send_enabled: e } = this;
|
|
5122
|
-
return
|
|
5122
|
+
return Sd.fromPartial({
|
|
5123
5123
|
sendEnabled: t.map((r) => r.toProto()),
|
|
5124
5124
|
defaultSendEnabled: e
|
|
5125
5125
|
});
|
|
@@ -5169,7 +5169,7 @@ class ke extends m {
|
|
|
5169
5169
|
}
|
|
5170
5170
|
toProto() {
|
|
5171
5171
|
const { authority: t, params: e } = this;
|
|
5172
|
-
return
|
|
5172
|
+
return Va.fromPartial({
|
|
5173
5173
|
authority: t,
|
|
5174
5174
|
params: e.toProto()
|
|
5175
5175
|
});
|
|
@@ -5177,12 +5177,12 @@ class ke extends m {
|
|
|
5177
5177
|
packAny() {
|
|
5178
5178
|
return l.fromPartial({
|
|
5179
5179
|
typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams",
|
|
5180
|
-
value:
|
|
5180
|
+
value: Va.encode(this.toProto()).finish()
|
|
5181
5181
|
});
|
|
5182
5182
|
}
|
|
5183
5183
|
static unpackAny(t) {
|
|
5184
5184
|
return ke.fromProto(
|
|
5185
|
-
|
|
5185
|
+
Va.decode(t.value)
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
@@ -5298,7 +5298,7 @@ class os extends m {
|
|
|
5298
5298
|
}
|
|
5299
5299
|
toProto() {
|
|
5300
5300
|
const { denom: t, exponent: e, aliases: r } = this;
|
|
5301
|
-
return
|
|
5301
|
+
return Id.fromPartial({
|
|
5302
5302
|
denom: t,
|
|
5303
5303
|
exponent: e,
|
|
5304
5304
|
aliases: r
|
|
@@ -5430,7 +5430,7 @@ class Dt extends m {
|
|
|
5430
5430
|
uri: a,
|
|
5431
5431
|
uri_hash: c
|
|
5432
5432
|
} = this;
|
|
5433
|
-
return
|
|
5433
|
+
return Nd.fromPartial({
|
|
5434
5434
|
description: t,
|
|
5435
5435
|
denomUnits: e.map((d) => d.toProto()),
|
|
5436
5436
|
base: r,
|
|
@@ -5639,7 +5639,7 @@ class In extends m {
|
|
|
5639
5639
|
}
|
|
5640
5640
|
toProto() {
|
|
5641
5641
|
const { namespace_id: t, data: e, share_version: r, namespace_version: o } = this;
|
|
5642
|
-
return
|
|
5642
|
+
return Ud.fromPartial({
|
|
5643
5643
|
namespaceId: Buffer.from(t, "base64"),
|
|
5644
5644
|
data: Buffer.from(e, "base64"),
|
|
5645
5645
|
shareVersion: r,
|
|
@@ -5647,7 +5647,7 @@ class In extends m {
|
|
|
5647
5647
|
});
|
|
5648
5648
|
}
|
|
5649
5649
|
}
|
|
5650
|
-
class
|
|
5650
|
+
class Bt {
|
|
5651
5651
|
constructor(t, e) {
|
|
5652
5652
|
this.extra_bits_stored = t, this.elems = e;
|
|
5653
5653
|
}
|
|
@@ -5657,7 +5657,7 @@ class Et {
|
|
|
5657
5657
|
const e = (t + 7) / 8;
|
|
5658
5658
|
if (e <= 0 || e > Math.pow(2, 32) - 1)
|
|
5659
5659
|
throw new Error("CompactBitArray overflow");
|
|
5660
|
-
return new
|
|
5660
|
+
return new Bt(t % 8, Buffer.alloc(e));
|
|
5661
5661
|
}
|
|
5662
5662
|
// returns the number of bits in the bitarray
|
|
5663
5663
|
count() {
|
|
@@ -5688,7 +5688,7 @@ class Et {
|
|
|
5688
5688
|
}
|
|
5689
5689
|
}
|
|
5690
5690
|
static fromData(t) {
|
|
5691
|
-
return new
|
|
5691
|
+
return new Bt(
|
|
5692
5692
|
t.extra_bits_stored,
|
|
5693
5693
|
Buffer.from(t.elems, "base64")
|
|
5694
5694
|
);
|
|
@@ -5700,10 +5700,10 @@ class Et {
|
|
|
5700
5700
|
};
|
|
5701
5701
|
}
|
|
5702
5702
|
static fromProto(t) {
|
|
5703
|
-
return new
|
|
5703
|
+
return new Bt(t.extraBitsStored, Buffer.from(t.elems));
|
|
5704
5704
|
}
|
|
5705
5705
|
toProto() {
|
|
5706
|
-
return
|
|
5706
|
+
return Td.fromPartial({
|
|
5707
5707
|
elems: this.elems,
|
|
5708
5708
|
extraBitsStored: this.extra_bits_stored
|
|
5709
5709
|
});
|
|
@@ -5758,7 +5758,7 @@ class kt extends m {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
toProto() {
|
|
5760
5760
|
const { amount: e, gas_limit: r, payer: o, granter: s } = this;
|
|
5761
|
-
return
|
|
5761
|
+
return Cd.fromPartial({
|
|
5762
5762
|
amount: e.toProto(),
|
|
5763
5763
|
gasLimit: f.fromNumber(r),
|
|
5764
5764
|
granter: s,
|
|
@@ -5879,7 +5879,7 @@ class T {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
static fromData(n) {
|
|
5881
5881
|
return new o(
|
|
5882
|
-
|
|
5882
|
+
Bt.fromData(n.bitarray),
|
|
5883
5883
|
n.signatures.map((a) => e.fromData(a))
|
|
5884
5884
|
);
|
|
5885
5885
|
}
|
|
@@ -5893,7 +5893,7 @@ class T {
|
|
|
5893
5893
|
e.Multi = o;
|
|
5894
5894
|
})(t = i.Descriptor || (i.Descriptor = {}));
|
|
5895
5895
|
})(T || (T = {}));
|
|
5896
|
-
class
|
|
5896
|
+
class V {
|
|
5897
5897
|
constructor(t, e, r) {
|
|
5898
5898
|
this.body = t, this.auth_info = e, this.signatures = r;
|
|
5899
5899
|
}
|
|
@@ -5901,7 +5901,7 @@ class K {
|
|
|
5901
5901
|
const e = t.value.signatures.map(
|
|
5902
5902
|
(r) => T.fromAmino(r)
|
|
5903
5903
|
);
|
|
5904
|
-
return new
|
|
5904
|
+
return new V(
|
|
5905
5905
|
new To(
|
|
5906
5906
|
t.value.msg.map((r) => U.fromAmino(r)),
|
|
5907
5907
|
t.value.memo,
|
|
@@ -5915,7 +5915,7 @@ class K {
|
|
|
5915
5915
|
);
|
|
5916
5916
|
}
|
|
5917
5917
|
static fromData(t) {
|
|
5918
|
-
return new
|
|
5918
|
+
return new V(
|
|
5919
5919
|
To.fromData(t.body),
|
|
5920
5920
|
xt.fromData(t.auth_info),
|
|
5921
5921
|
t.signatures
|
|
@@ -5932,7 +5932,7 @@ class K {
|
|
|
5932
5932
|
return this.fromProto($n.decode(t.value));
|
|
5933
5933
|
}
|
|
5934
5934
|
static fromProto(t) {
|
|
5935
|
-
return new
|
|
5935
|
+
return new V(
|
|
5936
5936
|
To.fromProto(t.body),
|
|
5937
5937
|
xt.fromProto(t.authInfo),
|
|
5938
5938
|
t.signatures.map((e) => Buffer.from(e).toString("base64"))
|
|
@@ -5949,7 +5949,7 @@ class K {
|
|
|
5949
5949
|
return $n.encode(this.toProto()).finish();
|
|
5950
5950
|
}
|
|
5951
5951
|
static fromBuffer(t) {
|
|
5952
|
-
return
|
|
5952
|
+
return V.fromProto($n.decode(t));
|
|
5953
5953
|
}
|
|
5954
5954
|
appendEmptySignatures(t) {
|
|
5955
5955
|
t.forEach((e) => {
|
|
@@ -5959,7 +5959,7 @@ class K {
|
|
|
5959
5959
|
e.sequenceNumber,
|
|
5960
5960
|
new M(
|
|
5961
5961
|
new M.Multi(
|
|
5962
|
-
|
|
5962
|
+
Bt.fromBits(e.publicKey.pubkeys.length),
|
|
5963
5963
|
[]
|
|
5964
5964
|
)
|
|
5965
5965
|
)
|
|
@@ -6084,7 +6084,7 @@ class st {
|
|
|
6084
6084
|
}
|
|
6085
6085
|
toProto() {
|
|
6086
6086
|
const { public_key: t, sequence: e, mode_info: r } = this;
|
|
6087
|
-
return
|
|
6087
|
+
return $d.fromPartial({
|
|
6088
6088
|
modeInfo: r.toProto(),
|
|
6089
6089
|
publicKey: t == null ? void 0 : t.packAny(),
|
|
6090
6090
|
sequence: f.fromNumber(e)
|
|
@@ -6119,7 +6119,7 @@ class M {
|
|
|
6119
6119
|
}
|
|
6120
6120
|
toProto() {
|
|
6121
6121
|
var t, e;
|
|
6122
|
-
return
|
|
6122
|
+
return Ed.fromPartial({
|
|
6123
6123
|
multi: (t = this.multi) == null ? void 0 : t.toProto(),
|
|
6124
6124
|
single: (e = this.single) == null ? void 0 : e.toProto()
|
|
6125
6125
|
});
|
|
@@ -6143,7 +6143,7 @@ class M {
|
|
|
6143
6143
|
return new t(o.mode);
|
|
6144
6144
|
}
|
|
6145
6145
|
toProto() {
|
|
6146
|
-
return
|
|
6146
|
+
return Bd.fromPartial({
|
|
6147
6147
|
mode: this.mode
|
|
6148
6148
|
});
|
|
6149
6149
|
}
|
|
@@ -6155,7 +6155,7 @@ class M {
|
|
|
6155
6155
|
}
|
|
6156
6156
|
static fromData(o) {
|
|
6157
6157
|
return new e(
|
|
6158
|
-
|
|
6158
|
+
Bt.fromData(o.bitarray),
|
|
6159
6159
|
o.mode_infos.map((s) => i.fromData(s))
|
|
6160
6160
|
);
|
|
6161
6161
|
}
|
|
@@ -6167,12 +6167,12 @@ class M {
|
|
|
6167
6167
|
}
|
|
6168
6168
|
static fromProto(o) {
|
|
6169
6169
|
return new e(
|
|
6170
|
-
|
|
6170
|
+
Bt.fromProto(o.bitarray),
|
|
6171
6171
|
o.modeInfos.map((s) => i.fromProto(s))
|
|
6172
6172
|
);
|
|
6173
6173
|
}
|
|
6174
6174
|
toProto() {
|
|
6175
|
-
return
|
|
6175
|
+
return Od.fromPartial({
|
|
6176
6176
|
bitarray: this.bitarray.toProto(),
|
|
6177
6177
|
modeInfos: this.modeInfos.map((o) => o.toProto())
|
|
6178
6178
|
});
|
|
@@ -6197,7 +6197,7 @@ class Bm extends m {
|
|
|
6197
6197
|
}
|
|
6198
6198
|
static fromData(t) {
|
|
6199
6199
|
const { tx: e, blobs: r, type_id: o } = t;
|
|
6200
|
-
return new Bm(
|
|
6200
|
+
return new Bm(V.fromData(e), r.map(In.fromData), o);
|
|
6201
6201
|
}
|
|
6202
6202
|
toData() {
|
|
6203
6203
|
const { tx: t, blobs: e, type_id: r } = this;
|
|
@@ -6209,7 +6209,7 @@ class Bm extends m {
|
|
|
6209
6209
|
}
|
|
6210
6210
|
static fromProto(t) {
|
|
6211
6211
|
return new Bm(
|
|
6212
|
-
|
|
6212
|
+
V.fromBuffer(Buffer.from(t.tx)),
|
|
6213
6213
|
t.blobs.map(In.fromProto),
|
|
6214
6214
|
t.typeId
|
|
6215
6215
|
);
|
|
@@ -6261,7 +6261,7 @@ class ss extends m {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
toProto() {
|
|
6263
6263
|
const { max_bytes: t, max_gas: e } = this;
|
|
6264
|
-
return
|
|
6264
|
+
return Rd.fromPartial({
|
|
6265
6265
|
maxBytes: f.fromNumber(t),
|
|
6266
6266
|
maxGas: f.fromNumber(e)
|
|
6267
6267
|
});
|
|
@@ -6317,7 +6317,7 @@ class ns extends m {
|
|
|
6317
6317
|
}
|
|
6318
6318
|
toProto() {
|
|
6319
6319
|
const { max_age_num_blocks: t, max_age_duration: e, max_bytes: r } = this;
|
|
6320
|
-
return
|
|
6320
|
+
return Fd.fromPartial({
|
|
6321
6321
|
maxAgeNumBlocks: f.fromNumber(t),
|
|
6322
6322
|
maxAgeDuration: e.toProto(),
|
|
6323
6323
|
maxBytes: f.fromNumber(r)
|
|
@@ -6351,7 +6351,7 @@ class as extends m {
|
|
|
6351
6351
|
return new as(t.pubKeyTypes);
|
|
6352
6352
|
}
|
|
6353
6353
|
toProto() {
|
|
6354
|
-
return
|
|
6354
|
+
return Ld.fromPartial({
|
|
6355
6355
|
pubKeyTypes: this.pub_key_types
|
|
6356
6356
|
});
|
|
6357
6357
|
}
|
|
@@ -6383,7 +6383,7 @@ class is extends m {
|
|
|
6383
6383
|
return new is(t.voteExtensionsEnableHeight.toNumber());
|
|
6384
6384
|
}
|
|
6385
6385
|
toProto() {
|
|
6386
|
-
return
|
|
6386
|
+
return qd.fromPartial({
|
|
6387
6387
|
voteExtensionsEnableHeight: f.fromNumber(
|
|
6388
6388
|
this.vote_extensions_enable_height
|
|
6389
6389
|
)
|
|
@@ -6867,7 +6867,7 @@ class cs extends m {
|
|
|
6867
6867
|
}
|
|
6868
6868
|
toProto() {
|
|
6869
6869
|
const { denom: t, weight: e } = this;
|
|
6870
|
-
return
|
|
6870
|
+
return zd.fromPartial({
|
|
6871
6871
|
denom: t,
|
|
6872
6872
|
weight: e
|
|
6873
6873
|
});
|
|
@@ -6929,7 +6929,7 @@ class Ro extends m {
|
|
|
6929
6929
|
}
|
|
6930
6930
|
toProto() {
|
|
6931
6931
|
const { community_tax: t, withdraw_addr_enabled: e, reward_weights: r } = this;
|
|
6932
|
-
return
|
|
6932
|
+
return Kd.fromPartial({
|
|
6933
6933
|
communityTax: t,
|
|
6934
6934
|
withdrawAddrEnabled: e,
|
|
6935
6935
|
rewardWeights: r.map((o) => o.toProto())
|
|
@@ -7622,7 +7622,7 @@ class Fo extends m {
|
|
|
7622
7622
|
});
|
|
7623
7623
|
}
|
|
7624
7624
|
}
|
|
7625
|
-
class
|
|
7625
|
+
class Ke extends m {
|
|
7626
7626
|
/**
|
|
7627
7627
|
* @param authority the address that controls the module
|
|
7628
7628
|
* @param params params defines the x/evm parameters to update
|
|
@@ -7634,7 +7634,7 @@ class Ve extends m {
|
|
|
7634
7634
|
const {
|
|
7635
7635
|
value: { authority: e, params: r }
|
|
7636
7636
|
} = t;
|
|
7637
|
-
return new
|
|
7637
|
+
return new Ke(e, Fo.fromAmino(r));
|
|
7638
7638
|
}
|
|
7639
7639
|
toAmino() {
|
|
7640
7640
|
const { authority: t, params: e } = this;
|
|
@@ -7648,7 +7648,7 @@ class Ve extends m {
|
|
|
7648
7648
|
}
|
|
7649
7649
|
static fromData(t) {
|
|
7650
7650
|
const { authority: e, params: r } = t;
|
|
7651
|
-
return new
|
|
7651
|
+
return new Ke(e, Fo.fromData(r));
|
|
7652
7652
|
}
|
|
7653
7653
|
toData() {
|
|
7654
7654
|
const { authority: t, params: e } = this;
|
|
@@ -7659,7 +7659,7 @@ class Ve extends m {
|
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
7661
7661
|
static fromProto(t) {
|
|
7662
|
-
return new
|
|
7662
|
+
return new Ke(
|
|
7663
7663
|
t.authority,
|
|
7664
7664
|
Fo.fromProto(t.params)
|
|
7665
7665
|
);
|
|
@@ -7678,7 +7678,7 @@ class Ve extends m {
|
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
7680
|
static unpackAny(t) {
|
|
7681
|
-
return
|
|
7681
|
+
return Ke.fromProto(ci.decode(t.value));
|
|
7682
7682
|
}
|
|
7683
7683
|
}
|
|
7684
7684
|
class G extends m {
|
|
@@ -7874,7 +7874,7 @@ class nt extends m {
|
|
|
7874
7874
|
);
|
|
7875
7875
|
}
|
|
7876
7876
|
}
|
|
7877
|
-
class
|
|
7877
|
+
class Ve extends m {
|
|
7878
7878
|
/**
|
|
7879
7879
|
* @param allowance any of basic and periodic fee allowance.
|
|
7880
7880
|
* @param allowed_messages the messages for which the grantee has the access.
|
|
@@ -7886,7 +7886,7 @@ class Ke extends m {
|
|
|
7886
7886
|
const {
|
|
7887
7887
|
value: { allowance: e, allowed_messages: r }
|
|
7888
7888
|
} = t;
|
|
7889
|
-
return new
|
|
7889
|
+
return new Ve(
|
|
7890
7890
|
e.type === "cosmos-sdk/BasicAllowance" ? G.fromAmino(e) : nt.fromAmino(e),
|
|
7891
7891
|
r
|
|
7892
7892
|
);
|
|
@@ -7903,7 +7903,7 @@ class Ke extends m {
|
|
|
7903
7903
|
}
|
|
7904
7904
|
static fromData(t) {
|
|
7905
7905
|
const { allowance: e, allowed_messages: r } = t;
|
|
7906
|
-
return new
|
|
7906
|
+
return new Ve(
|
|
7907
7907
|
e["@type"] === "/cosmos.feegrant.v1beta1.BasicAllowance" ? G.fromData(e) : nt.fromData(e),
|
|
7908
7908
|
r
|
|
7909
7909
|
);
|
|
@@ -7918,7 +7918,7 @@ class Ke extends m {
|
|
|
7918
7918
|
}
|
|
7919
7919
|
static fromProto(t) {
|
|
7920
7920
|
const e = t.allowance;
|
|
7921
|
-
return new
|
|
7921
|
+
return new Ve(
|
|
7922
7922
|
(e == null ? void 0 : e.typeUrl) === "/cosmos.feegrant.v1beta1.BasicAllowance" ? G.unpackAny(e) : nt.unpackAny(e),
|
|
7923
7923
|
t.allowedMessages
|
|
7924
7924
|
);
|
|
@@ -7937,7 +7937,7 @@ class Ke extends m {
|
|
|
7937
7937
|
});
|
|
7938
7938
|
}
|
|
7939
7939
|
static unpackAny(t) {
|
|
7940
|
-
return
|
|
7940
|
+
return Ve.fromProto(
|
|
7941
7941
|
di.decode(t.value)
|
|
7942
7942
|
);
|
|
7943
7943
|
}
|
|
@@ -7951,7 +7951,7 @@ var Lo;
|
|
|
7951
7951
|
case "cosmos-sdk/PeriodicAllowance":
|
|
7952
7952
|
return nt.fromAmino(o);
|
|
7953
7953
|
case "cosmos-sdk/AllowedMsgAllowance":
|
|
7954
|
-
return
|
|
7954
|
+
return Ve.fromAmino(o);
|
|
7955
7955
|
}
|
|
7956
7956
|
}
|
|
7957
7957
|
i.fromAmino = t;
|
|
@@ -7962,7 +7962,7 @@ var Lo;
|
|
|
7962
7962
|
case "/cosmos.feegrant.v1beta1.BasicAllowance":
|
|
7963
7963
|
return G.fromData(o);
|
|
7964
7964
|
case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance":
|
|
7965
|
-
return
|
|
7965
|
+
return Ve.fromData(o);
|
|
7966
7966
|
}
|
|
7967
7967
|
}
|
|
7968
7968
|
i.fromData = e;
|
|
@@ -7973,7 +7973,7 @@ var Lo;
|
|
|
7973
7973
|
case "/cosmos.feegrant.v1beta1.BasicAllowance":
|
|
7974
7974
|
return G.unpackAny(o);
|
|
7975
7975
|
case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance":
|
|
7976
|
-
return
|
|
7976
|
+
return Ve.unpackAny(o);
|
|
7977
7977
|
}
|
|
7978
7978
|
throw new Error(`not supported allowance ${o.typeUrl}`);
|
|
7979
7979
|
}
|
|
@@ -8499,7 +8499,7 @@ class us extends m {
|
|
|
8499
8499
|
}
|
|
8500
8500
|
toProto() {
|
|
8501
8501
|
const { subspace: t, key: e, value: r } = this;
|
|
8502
|
-
return
|
|
8502
|
+
return Hd.fromPartial({
|
|
8503
8503
|
key: e,
|
|
8504
8504
|
subspace: t,
|
|
8505
8505
|
value: r
|
|
@@ -8758,11 +8758,11 @@ class qo extends m {
|
|
|
8758
8758
|
total_vesting_power: r,
|
|
8759
8759
|
v1_tally_result: o
|
|
8760
8760
|
} = this;
|
|
8761
|
-
return
|
|
8761
|
+
return Zd.fromPartial({
|
|
8762
8762
|
tallyHeight: f.fromNumber(t),
|
|
8763
8763
|
totalStakingPower: e,
|
|
8764
8764
|
totalVestingPower: r,
|
|
8765
|
-
v1TallyResult:
|
|
8765
|
+
v1TallyResult: Wd.fromPartial({
|
|
8766
8766
|
yesCount: o.yes_count,
|
|
8767
8767
|
abstainCount: o.abstain_count,
|
|
8768
8768
|
noCount: o.no_count,
|
|
@@ -8771,7 +8771,7 @@ class qo extends m {
|
|
|
8771
8771
|
});
|
|
8772
8772
|
}
|
|
8773
8773
|
}
|
|
8774
|
-
class
|
|
8774
|
+
class Ot extends m {
|
|
8775
8775
|
/**
|
|
8776
8776
|
*
|
|
8777
8777
|
* @param id the unique id of the proposal
|
|
@@ -8819,7 +8819,7 @@ class Bt extends m {
|
|
|
8819
8819
|
emergency: E,
|
|
8820
8820
|
failed_reason: O
|
|
8821
8821
|
} = e;
|
|
8822
|
-
return new
|
|
8822
|
+
return new Ot(
|
|
8823
8823
|
Number.parseInt(r),
|
|
8824
8824
|
o.map(U.fromAmino),
|
|
8825
8825
|
Zm(s),
|
|
@@ -8903,7 +8903,7 @@ class Bt extends m {
|
|
|
8903
8903
|
emergency: E,
|
|
8904
8904
|
failed_reason: O
|
|
8905
8905
|
} = e;
|
|
8906
|
-
return new
|
|
8906
|
+
return new Ot(
|
|
8907
8907
|
Number.parseInt(r),
|
|
8908
8908
|
o.map(U.fromData),
|
|
8909
8909
|
Zm(s),
|
|
@@ -8967,7 +8967,7 @@ class Bt extends m {
|
|
|
8967
8967
|
};
|
|
8968
8968
|
}
|
|
8969
8969
|
static fromProto(e) {
|
|
8970
|
-
return new
|
|
8970
|
+
return new Ot(
|
|
8971
8971
|
e.id.toNumber(),
|
|
8972
8972
|
e.messages.map(U.fromProto),
|
|
8973
8973
|
e.status,
|
|
@@ -9009,7 +9009,7 @@ class Bt extends m {
|
|
|
9009
9009
|
emergency: $,
|
|
9010
9010
|
failed_reason: E
|
|
9011
9011
|
} = this;
|
|
9012
|
-
return
|
|
9012
|
+
return Xd.fromPartial({
|
|
9013
9013
|
id: f.fromNumber(e),
|
|
9014
9014
|
messages: r.map((O) => O.packAny()),
|
|
9015
9015
|
status: o,
|
|
@@ -9032,8 +9032,8 @@ class Bt extends m {
|
|
|
9032
9032
|
}
|
|
9033
9033
|
}
|
|
9034
9034
|
((i) => {
|
|
9035
|
-
i.Status =
|
|
9036
|
-
})(
|
|
9035
|
+
i.Status = jd;
|
|
9036
|
+
})(Ot || (Ot = {}));
|
|
9037
9037
|
class er extends m {
|
|
9038
9038
|
/**
|
|
9039
9039
|
* @param content proposal content to submit
|
|
@@ -9319,7 +9319,7 @@ class pt extends m {
|
|
|
9319
9319
|
}
|
|
9320
9320
|
}
|
|
9321
9321
|
((i) => {
|
|
9322
|
-
i.Option =
|
|
9322
|
+
i.Option = Gd;
|
|
9323
9323
|
})(pt || (pt = {}));
|
|
9324
9324
|
class ht extends m {
|
|
9325
9325
|
/**
|
|
@@ -9454,7 +9454,7 @@ class ds extends m {
|
|
|
9454
9454
|
}
|
|
9455
9455
|
toProto() {
|
|
9456
9456
|
const { proposal_id: t, voter: e, options: r, metadata: o } = this;
|
|
9457
|
-
return
|
|
9457
|
+
return Jd.fromPartial({
|
|
9458
9458
|
options: r.map((s) => s.toProto()),
|
|
9459
9459
|
proposalId: f.fromNumber(t),
|
|
9460
9460
|
voter: e,
|
|
@@ -9498,7 +9498,7 @@ class J extends m {
|
|
|
9498
9498
|
}
|
|
9499
9499
|
toProto() {
|
|
9500
9500
|
const { option: e, weight: r } = this;
|
|
9501
|
-
return
|
|
9501
|
+
return Qd.fromPartial({
|
|
9502
9502
|
option: e,
|
|
9503
9503
|
weight: r
|
|
9504
9504
|
});
|
|
@@ -9695,7 +9695,7 @@ class ls extends m {
|
|
|
9695
9695
|
}
|
|
9696
9696
|
toProto() {
|
|
9697
9697
|
const { module_addr: t, module_name: e, creator_addr: r } = this;
|
|
9698
|
-
return
|
|
9698
|
+
return tl.fromPartial({
|
|
9699
9699
|
moduleAddr: t,
|
|
9700
9700
|
moduleName: e,
|
|
9701
9701
|
creatorAddr: r
|
|
@@ -9963,7 +9963,7 @@ class zo extends m {
|
|
|
9963
9963
|
low_threshold_functions: O,
|
|
9964
9964
|
vesting: L
|
|
9965
9965
|
} = this;
|
|
9966
|
-
return
|
|
9966
|
+
return el.fromPartial({
|
|
9967
9967
|
minDeposit: e.toProto(),
|
|
9968
9968
|
maxDepositPeriod: r.toProto(),
|
|
9969
9969
|
votingPeriod: o.toProto(),
|
|
@@ -10098,7 +10098,7 @@ class Pn extends m {
|
|
|
10098
10098
|
}
|
|
10099
10099
|
toProto() {
|
|
10100
10100
|
const { proposal_id: e, depositor: r, amount: o } = this;
|
|
10101
|
-
return
|
|
10101
|
+
return Yd.fromPartial({
|
|
10102
10102
|
proposalId: f.fromNumber(e),
|
|
10103
10103
|
depositor: r,
|
|
10104
10104
|
amount: o.toProto()
|
|
@@ -10143,7 +10143,7 @@ class An extends m {
|
|
|
10143
10143
|
}
|
|
10144
10144
|
toProto() {
|
|
10145
10145
|
const { group_id: t, member: e } = this;
|
|
10146
|
-
return
|
|
10146
|
+
return rl.fromPartial({
|
|
10147
10147
|
groupId: f.fromNumber(t),
|
|
10148
10148
|
member: e.toProto()
|
|
10149
10149
|
});
|
|
@@ -10195,7 +10195,7 @@ class ps extends m {
|
|
|
10195
10195
|
}
|
|
10196
10196
|
toProto() {
|
|
10197
10197
|
const { address: t, weight: e, metadata: r, added_at: o } = this;
|
|
10198
|
-
return
|
|
10198
|
+
return ol.fromPartial({
|
|
10199
10199
|
address: t,
|
|
10200
10200
|
weight: e,
|
|
10201
10201
|
metadata: r,
|
|
@@ -10241,7 +10241,7 @@ class Q extends m {
|
|
|
10241
10241
|
}
|
|
10242
10242
|
toProto() {
|
|
10243
10243
|
const { address: t, weight: e, metadata: r } = this;
|
|
10244
|
-
return
|
|
10244
|
+
return sl.fromPartial({
|
|
10245
10245
|
address: t,
|
|
10246
10246
|
weight: e,
|
|
10247
10247
|
metadata: r
|
|
@@ -10364,7 +10364,7 @@ class Mt extends m {
|
|
|
10364
10364
|
}
|
|
10365
10365
|
toProto() {
|
|
10366
10366
|
const { voting_period: t, min_execution_period: e } = this;
|
|
10367
|
-
return
|
|
10367
|
+
return nl.fromPartial({
|
|
10368
10368
|
votingPeriod: t.toProto(),
|
|
10369
10369
|
minExecutionPeriod: e.toProto()
|
|
10370
10370
|
});
|
|
@@ -10825,7 +10825,7 @@ class ft extends m {
|
|
|
10825
10825
|
return new ft(
|
|
10826
10826
|
Number.parseInt(e),
|
|
10827
10827
|
r,
|
|
10828
|
-
|
|
10828
|
+
Kn(o),
|
|
10829
10829
|
s,
|
|
10830
10830
|
Hn(n)
|
|
10831
10831
|
);
|
|
@@ -10837,7 +10837,7 @@ class ft extends m {
|
|
|
10837
10837
|
value: {
|
|
10838
10838
|
proposal_id: t.toString(),
|
|
10839
10839
|
voter: e,
|
|
10840
|
-
option:
|
|
10840
|
+
option: Vn(r),
|
|
10841
10841
|
metadata: o,
|
|
10842
10842
|
exec: Gn(s)
|
|
10843
10843
|
}
|
|
@@ -10848,7 +10848,7 @@ class ft extends m {
|
|
|
10848
10848
|
return new ft(
|
|
10849
10849
|
Number.parseInt(e),
|
|
10850
10850
|
r,
|
|
10851
|
-
|
|
10851
|
+
Kn(o),
|
|
10852
10852
|
s,
|
|
10853
10853
|
Hn(n)
|
|
10854
10854
|
);
|
|
@@ -10859,7 +10859,7 @@ class ft extends m {
|
|
|
10859
10859
|
"@type": "/cosmos.group.v1.MsgVote",
|
|
10860
10860
|
proposal_id: t.toString(),
|
|
10861
10861
|
voter: e,
|
|
10862
|
-
option:
|
|
10862
|
+
option: Vn(r),
|
|
10863
10863
|
metadata: o,
|
|
10864
10864
|
exec: Gn(s)
|
|
10865
10865
|
};
|
|
@@ -11595,7 +11595,7 @@ class vr extends m {
|
|
|
11595
11595
|
}
|
|
11596
11596
|
toProto() {
|
|
11597
11597
|
const { id: t, admin: e, metadata: r, version: o, total_weight: s, created_at: n } = this;
|
|
11598
|
-
return
|
|
11598
|
+
return al.fromPartial({
|
|
11599
11599
|
id: f.fromNumber(t),
|
|
11600
11600
|
admin: e,
|
|
11601
11601
|
metadata: r,
|
|
@@ -11719,7 +11719,7 @@ class hs extends m {
|
|
|
11719
11719
|
decision_policy: n,
|
|
11720
11720
|
created_at: a
|
|
11721
11721
|
} = this;
|
|
11722
|
-
return
|
|
11722
|
+
return il.fromPartial({
|
|
11723
11723
|
address: t,
|
|
11724
11724
|
groupId: f.fromNumber(e),
|
|
11725
11725
|
admin: r,
|
|
@@ -11730,7 +11730,7 @@ class hs extends m {
|
|
|
11730
11730
|
});
|
|
11731
11731
|
}
|
|
11732
11732
|
}
|
|
11733
|
-
class
|
|
11733
|
+
class Ko extends m {
|
|
11734
11734
|
/**
|
|
11735
11735
|
*
|
|
11736
11736
|
* @param id the unique id of the proposal
|
|
@@ -11768,7 +11768,7 @@ class Vo extends m {
|
|
|
11768
11768
|
title: A,
|
|
11769
11769
|
summary: D
|
|
11770
11770
|
} = t;
|
|
11771
|
-
return new
|
|
11771
|
+
return new Ko(
|
|
11772
11772
|
Number.parseInt(e),
|
|
11773
11773
|
r,
|
|
11774
11774
|
o,
|
|
@@ -11850,7 +11850,7 @@ class Vo extends m {
|
|
|
11850
11850
|
title: A,
|
|
11851
11851
|
summary: D
|
|
11852
11852
|
} = t;
|
|
11853
|
-
return new
|
|
11853
|
+
return new Ko(
|
|
11854
11854
|
Number.parseInt(e),
|
|
11855
11855
|
r,
|
|
11856
11856
|
o,
|
|
@@ -11917,7 +11917,7 @@ class Vo extends m {
|
|
|
11917
11917
|
}
|
|
11918
11918
|
static fromProto(t) {
|
|
11919
11919
|
var e, r, o, s;
|
|
11920
|
-
return new
|
|
11920
|
+
return new Ko(
|
|
11921
11921
|
t.id.toNumber(),
|
|
11922
11922
|
t.groupPolicyAddress,
|
|
11923
11923
|
t.metadata,
|
|
@@ -11959,12 +11959,12 @@ class Vo extends m {
|
|
|
11959
11959
|
summary: A
|
|
11960
11960
|
} = this;
|
|
11961
11961
|
let D;
|
|
11962
|
-
return d && (D =
|
|
11962
|
+
return d && (D = ul.fromPartial({
|
|
11963
11963
|
yesCount: d.yes_count.toString(),
|
|
11964
11964
|
noCount: d.no_count.toString(),
|
|
11965
11965
|
abstainCount: d.abstain_count.toString(),
|
|
11966
11966
|
noWithVetoCount: d.no_with_veto_count.toString()
|
|
11967
|
-
})),
|
|
11967
|
+
})), dl.fromPartial({
|
|
11968
11968
|
id: f.fromNumber(t),
|
|
11969
11969
|
groupPolicyAddress: e,
|
|
11970
11970
|
metadata: r,
|
|
@@ -11983,9 +11983,9 @@ class Vo extends m {
|
|
|
11983
11983
|
}
|
|
11984
11984
|
}
|
|
11985
11985
|
((i) => {
|
|
11986
|
-
i.Status =
|
|
11987
|
-
})(
|
|
11988
|
-
class
|
|
11986
|
+
i.Status = cl, i.ExecutorResult = ml;
|
|
11987
|
+
})(Ko || (Ko = {}));
|
|
11988
|
+
class Tt extends m {
|
|
11989
11989
|
/**
|
|
11990
11990
|
* @param proposal_id the unique ID of the proposal
|
|
11991
11991
|
* @param voter the account address of the voter
|
|
@@ -11998,10 +11998,10 @@ class Ot extends m {
|
|
|
11998
11998
|
}
|
|
11999
11999
|
static fromAmino(t) {
|
|
12000
12000
|
const { proposal_id: e, voter: r, option: o, metadata: s, submit_time: n } = t;
|
|
12001
|
-
return new
|
|
12001
|
+
return new Tt(
|
|
12002
12002
|
Number.parseInt(e),
|
|
12003
12003
|
r,
|
|
12004
|
-
|
|
12004
|
+
Kn(o),
|
|
12005
12005
|
s,
|
|
12006
12006
|
new Date(n)
|
|
12007
12007
|
);
|
|
@@ -12011,17 +12011,17 @@ class Ot extends m {
|
|
|
12011
12011
|
return {
|
|
12012
12012
|
proposal_id: t.toString(),
|
|
12013
12013
|
voter: e,
|
|
12014
|
-
option:
|
|
12014
|
+
option: Vn(r),
|
|
12015
12015
|
metadata: o,
|
|
12016
12016
|
submit_time: s.toISOString()
|
|
12017
12017
|
};
|
|
12018
12018
|
}
|
|
12019
12019
|
static fromData(t) {
|
|
12020
12020
|
const { proposal_id: e, voter: r, option: o, metadata: s, submit_time: n } = t;
|
|
12021
|
-
return new
|
|
12021
|
+
return new Tt(
|
|
12022
12022
|
Number.parseInt(e),
|
|
12023
12023
|
r,
|
|
12024
|
-
|
|
12024
|
+
Kn(o),
|
|
12025
12025
|
s,
|
|
12026
12026
|
new Date(n)
|
|
12027
12027
|
);
|
|
@@ -12031,13 +12031,13 @@ class Ot extends m {
|
|
|
12031
12031
|
return {
|
|
12032
12032
|
proposal_id: t.toString(),
|
|
12033
12033
|
voter: e,
|
|
12034
|
-
option:
|
|
12034
|
+
option: Vn(r),
|
|
12035
12035
|
metadata: o,
|
|
12036
12036
|
submit_time: s.toISOString()
|
|
12037
12037
|
};
|
|
12038
12038
|
}
|
|
12039
12039
|
static fromProto(t) {
|
|
12040
|
-
return new
|
|
12040
|
+
return new Tt(
|
|
12041
12041
|
t.proposalId.toNumber(),
|
|
12042
12042
|
t.voter,
|
|
12043
12043
|
t.option,
|
|
@@ -12047,7 +12047,7 @@ class Ot extends m {
|
|
|
12047
12047
|
}
|
|
12048
12048
|
toProto() {
|
|
12049
12049
|
const { proposal_id: t, voter: e, option: r, metadata: o, submit_time: s } = this;
|
|
12050
|
-
return
|
|
12050
|
+
return ll.fromPartial({
|
|
12051
12051
|
proposalId: f.fromNumber(t),
|
|
12052
12052
|
voter: e,
|
|
12053
12053
|
option: r,
|
|
@@ -12058,8 +12058,8 @@ class Ot extends m {
|
|
|
12058
12058
|
}
|
|
12059
12059
|
((i) => {
|
|
12060
12060
|
i.Option = Nu;
|
|
12061
|
-
})(
|
|
12062
|
-
class
|
|
12061
|
+
})(Tt || (Tt = {}));
|
|
12062
|
+
class Rt extends m {
|
|
12063
12063
|
/**
|
|
12064
12064
|
* @param recv_fee the packet receive fee
|
|
12065
12065
|
* @param ack_fee the packet acknowledgement fee
|
|
@@ -12077,7 +12077,7 @@ class Tt extends m {
|
|
|
12077
12077
|
}
|
|
12078
12078
|
static fromAmino(e) {
|
|
12079
12079
|
const { recv_fee: r, ack_fee: o, timeout_fee: s } = e;
|
|
12080
|
-
return new
|
|
12080
|
+
return new Rt(
|
|
12081
12081
|
u.fromAmino(r),
|
|
12082
12082
|
u.fromAmino(o),
|
|
12083
12083
|
u.fromAmino(s)
|
|
@@ -12093,7 +12093,7 @@ class Tt extends m {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
static fromData(e) {
|
|
12095
12095
|
const { recv_fee: r, ack_fee: o, timeout_fee: s } = e;
|
|
12096
|
-
return new
|
|
12096
|
+
return new Rt(
|
|
12097
12097
|
u.fromData(r),
|
|
12098
12098
|
u.fromData(o),
|
|
12099
12099
|
u.fromData(s)
|
|
@@ -12108,7 +12108,7 @@ class Tt extends m {
|
|
|
12108
12108
|
};
|
|
12109
12109
|
}
|
|
12110
12110
|
static fromProto(e) {
|
|
12111
|
-
return new
|
|
12111
|
+
return new Rt(
|
|
12112
12112
|
u.fromProto(e.recvFee),
|
|
12113
12113
|
u.fromProto(e.ackFee),
|
|
12114
12114
|
u.fromProto(e.timeoutFee)
|
|
@@ -12116,7 +12116,7 @@ class Tt extends m {
|
|
|
12116
12116
|
}
|
|
12117
12117
|
toProto() {
|
|
12118
12118
|
const { recv_fee: e, ack_fee: r, timeout_fee: o } = this;
|
|
12119
|
-
return
|
|
12119
|
+
return pl.fromPartial({
|
|
12120
12120
|
recvFee: e.toProto(),
|
|
12121
12121
|
ackFee: r.toProto(),
|
|
12122
12122
|
timeoutFee: o.toProto()
|
|
@@ -12143,7 +12143,7 @@ class Cs extends m {
|
|
|
12143
12143
|
static fromData(t) {
|
|
12144
12144
|
const { fee: e, source_port_id: r, source_channel_id: o, signer: s, relayers: n } = t;
|
|
12145
12145
|
return new Cs(
|
|
12146
|
-
e ?
|
|
12146
|
+
e ? Rt.fromData(e) : void 0,
|
|
12147
12147
|
r,
|
|
12148
12148
|
o,
|
|
12149
12149
|
s,
|
|
@@ -12163,7 +12163,7 @@ class Cs extends m {
|
|
|
12163
12163
|
}
|
|
12164
12164
|
static fromProto(t) {
|
|
12165
12165
|
return new Cs(
|
|
12166
|
-
t.fee ?
|
|
12166
|
+
t.fee ? Rt.fromProto(t.fee) : void 0,
|
|
12167
12167
|
t.sourcePortId,
|
|
12168
12168
|
t.sourceChannelId,
|
|
12169
12169
|
t.signer,
|
|
@@ -12172,7 +12172,7 @@ class Cs extends m {
|
|
|
12172
12172
|
}
|
|
12173
12173
|
toProto() {
|
|
12174
12174
|
const { fee: t, source_port_id: e, source_channel_id: r, signer: o, relayers: s } = this;
|
|
12175
|
-
return
|
|
12175
|
+
return Ki.fromPartial({
|
|
12176
12176
|
fee: t == null ? void 0 : t.toProto(),
|
|
12177
12177
|
sourcePortId: e,
|
|
12178
12178
|
sourceChannelId: r,
|
|
@@ -12183,14 +12183,14 @@ class Cs extends m {
|
|
|
12183
12183
|
packAny() {
|
|
12184
12184
|
return l.fromPartial({
|
|
12185
12185
|
typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee",
|
|
12186
|
-
value:
|
|
12186
|
+
value: Ki.encode(this.toProto()).finish()
|
|
12187
12187
|
});
|
|
12188
12188
|
}
|
|
12189
12189
|
static unpackAny(t) {
|
|
12190
|
-
return Cs.fromProto(
|
|
12190
|
+
return Cs.fromProto(Ki.decode(t.value));
|
|
12191
12191
|
}
|
|
12192
12192
|
}
|
|
12193
|
-
class
|
|
12193
|
+
class Ft extends m {
|
|
12194
12194
|
/**
|
|
12195
12195
|
* @param port_id channel port identifier
|
|
12196
12196
|
* @param channel_id channel unique identifier
|
|
@@ -12201,7 +12201,7 @@ class Rt extends m {
|
|
|
12201
12201
|
}
|
|
12202
12202
|
static fromAmino(t) {
|
|
12203
12203
|
const { port_id: e, channel_id: r, sequence: o } = t;
|
|
12204
|
-
return new
|
|
12204
|
+
return new Ft(e, r, Number.parseInt(o));
|
|
12205
12205
|
}
|
|
12206
12206
|
toAmino() {
|
|
12207
12207
|
const { port_id: t, channel_id: e, sequence: r } = this;
|
|
@@ -12213,7 +12213,7 @@ class Rt extends m {
|
|
|
12213
12213
|
}
|
|
12214
12214
|
static fromData(t) {
|
|
12215
12215
|
const { port_id: e, channel_id: r, sequence: o } = t;
|
|
12216
|
-
return new
|
|
12216
|
+
return new Ft(e, r, Number.parseInt(o));
|
|
12217
12217
|
}
|
|
12218
12218
|
toData() {
|
|
12219
12219
|
const { port_id: t, channel_id: e, sequence: r } = this;
|
|
@@ -12224,7 +12224,7 @@ class Rt extends m {
|
|
|
12224
12224
|
};
|
|
12225
12225
|
}
|
|
12226
12226
|
static fromProto(t) {
|
|
12227
|
-
return new
|
|
12227
|
+
return new Ft(
|
|
12228
12228
|
t.portId,
|
|
12229
12229
|
t.channelId,
|
|
12230
12230
|
t.sequence.toNumber()
|
|
@@ -12232,14 +12232,14 @@ class Rt extends m {
|
|
|
12232
12232
|
}
|
|
12233
12233
|
toProto() {
|
|
12234
12234
|
const { port_id: t, channel_id: e, sequence: r } = this;
|
|
12235
|
-
return
|
|
12235
|
+
return fl.fromPartial({
|
|
12236
12236
|
portId: t,
|
|
12237
12237
|
channelId: e,
|
|
12238
12238
|
sequence: f.fromNumber(r)
|
|
12239
12239
|
});
|
|
12240
12240
|
}
|
|
12241
12241
|
}
|
|
12242
|
-
class
|
|
12242
|
+
class Lt extends m {
|
|
12243
12243
|
/**
|
|
12244
12244
|
* @param fee fee encapsulates the recv, ack and timeout fees associated with an IBC packet
|
|
12245
12245
|
* @param refund_address the refund address for unspent fees
|
|
@@ -12250,8 +12250,8 @@ class Ft extends m {
|
|
|
12250
12250
|
}
|
|
12251
12251
|
static fromAmino(t) {
|
|
12252
12252
|
const { fee: e, refund_address: r, relayers: o } = t;
|
|
12253
|
-
return new
|
|
12254
|
-
e ?
|
|
12253
|
+
return new Lt(
|
|
12254
|
+
e ? Rt.fromAmino(e) : void 0,
|
|
12255
12255
|
r,
|
|
12256
12256
|
o
|
|
12257
12257
|
);
|
|
@@ -12266,8 +12266,8 @@ class Ft extends m {
|
|
|
12266
12266
|
}
|
|
12267
12267
|
static fromData(t) {
|
|
12268
12268
|
const { fee: e, refund_address: r, relayers: o } = t;
|
|
12269
|
-
return new
|
|
12270
|
-
e ?
|
|
12269
|
+
return new Lt(
|
|
12270
|
+
e ? Rt.fromData(e) : void 0,
|
|
12271
12271
|
r,
|
|
12272
12272
|
o
|
|
12273
12273
|
);
|
|
@@ -12281,15 +12281,15 @@ class Ft extends m {
|
|
|
12281
12281
|
};
|
|
12282
12282
|
}
|
|
12283
12283
|
static fromProto(t) {
|
|
12284
|
-
return new
|
|
12285
|
-
t.fee ?
|
|
12284
|
+
return new Lt(
|
|
12285
|
+
t.fee ? Rt.fromProto(t.fee) : void 0,
|
|
12286
12286
|
t.refundAddress,
|
|
12287
12287
|
t.relayers
|
|
12288
12288
|
);
|
|
12289
12289
|
}
|
|
12290
12290
|
toProto() {
|
|
12291
12291
|
const { fee: t, refund_address: e, relayers: r } = this;
|
|
12292
|
-
return
|
|
12292
|
+
return hl.fromPartial({
|
|
12293
12293
|
fee: t == null ? void 0 : t.toProto(),
|
|
12294
12294
|
refundAddress: e,
|
|
12295
12295
|
relayers: r
|
|
@@ -12313,8 +12313,8 @@ class $s extends m {
|
|
|
12313
12313
|
static fromData(t) {
|
|
12314
12314
|
const { packet_id: e, packet_fee: r } = t;
|
|
12315
12315
|
return new $s(
|
|
12316
|
-
e ?
|
|
12317
|
-
r ?
|
|
12316
|
+
e ? Ft.fromData(e) : void 0,
|
|
12317
|
+
r ? Lt.fromData(r) : void 0
|
|
12318
12318
|
);
|
|
12319
12319
|
}
|
|
12320
12320
|
toData() {
|
|
@@ -12327,13 +12327,13 @@ class $s extends m {
|
|
|
12327
12327
|
}
|
|
12328
12328
|
static fromProto(t) {
|
|
12329
12329
|
return new $s(
|
|
12330
|
-
t.packetId ?
|
|
12331
|
-
t.packetFee ?
|
|
12330
|
+
t.packetId ? Ft.fromProto(t.packetId) : void 0,
|
|
12331
|
+
t.packetFee ? Lt.fromProto(t.packetFee) : void 0
|
|
12332
12332
|
);
|
|
12333
12333
|
}
|
|
12334
12334
|
toProto() {
|
|
12335
12335
|
const { packet_id: t, packet_fee: e } = this;
|
|
12336
|
-
return
|
|
12336
|
+
return Vi.fromPartial({
|
|
12337
12337
|
packetId: t == null ? void 0 : t.toProto(),
|
|
12338
12338
|
packetFee: e == null ? void 0 : e.toProto()
|
|
12339
12339
|
});
|
|
@@ -12341,12 +12341,12 @@ class $s extends m {
|
|
|
12341
12341
|
packAny() {
|
|
12342
12342
|
return l.fromPartial({
|
|
12343
12343
|
typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync",
|
|
12344
|
-
value:
|
|
12344
|
+
value: Vi.encode(this.toProto()).finish()
|
|
12345
12345
|
});
|
|
12346
12346
|
}
|
|
12347
12347
|
static unpackAny(t) {
|
|
12348
12348
|
return $s.fromProto(
|
|
12349
|
-
|
|
12349
|
+
Vi.decode(t.value)
|
|
12350
12350
|
);
|
|
12351
12351
|
}
|
|
12352
12352
|
}
|
|
@@ -12506,7 +12506,7 @@ class Bn extends m {
|
|
|
12506
12506
|
}
|
|
12507
12507
|
toProto() {
|
|
12508
12508
|
const { fee_version: t, app_version: e } = this;
|
|
12509
|
-
return
|
|
12509
|
+
return wl.fromPartial({
|
|
12510
12510
|
feeVersion: t,
|
|
12511
12511
|
appVersion: e
|
|
12512
12512
|
});
|
|
@@ -12523,8 +12523,8 @@ class On extends m {
|
|
|
12523
12523
|
static fromAmino(t) {
|
|
12524
12524
|
const { packet_id: e, packet_fees: r } = t;
|
|
12525
12525
|
return new On(
|
|
12526
|
-
e ?
|
|
12527
|
-
r.map((o) =>
|
|
12526
|
+
e ? Ft.fromAmino(e) : void 0,
|
|
12527
|
+
r.map((o) => Lt.fromAmino(o))
|
|
12528
12528
|
);
|
|
12529
12529
|
}
|
|
12530
12530
|
toAmino() {
|
|
@@ -12537,8 +12537,8 @@ class On extends m {
|
|
|
12537
12537
|
static fromData(t) {
|
|
12538
12538
|
const { packet_id: e, packet_fees: r } = t;
|
|
12539
12539
|
return new On(
|
|
12540
|
-
e ?
|
|
12541
|
-
r.map((o) =>
|
|
12540
|
+
e ? Ft.fromData(e) : void 0,
|
|
12541
|
+
r.map((o) => Lt.fromData(o))
|
|
12542
12542
|
);
|
|
12543
12543
|
}
|
|
12544
12544
|
toData() {
|
|
@@ -12550,8 +12550,8 @@ class On extends m {
|
|
|
12550
12550
|
}
|
|
12551
12551
|
static fromProto(t) {
|
|
12552
12552
|
return new On(
|
|
12553
|
-
t.packetId ?
|
|
12554
|
-
t.packetFees.map((e) =>
|
|
12553
|
+
t.packetId ? Ft.fromProto(t.packetId) : void 0,
|
|
12554
|
+
t.packetFees.map((e) => Lt.fromProto(e))
|
|
12555
12555
|
);
|
|
12556
12556
|
}
|
|
12557
12557
|
toProto() {
|
|
@@ -12622,7 +12622,7 @@ class br extends m {
|
|
|
12622
12622
|
return br.fromProto(Wi.decode(t.value));
|
|
12623
12623
|
}
|
|
12624
12624
|
}
|
|
12625
|
-
class
|
|
12625
|
+
class Vo extends m {
|
|
12626
12626
|
/**
|
|
12627
12627
|
* @param default_allowed
|
|
12628
12628
|
*/
|
|
@@ -12630,7 +12630,7 @@ class Ko extends m {
|
|
|
12630
12630
|
super(), this.default_allowed = t;
|
|
12631
12631
|
}
|
|
12632
12632
|
static fromAmino(t) {
|
|
12633
|
-
return new
|
|
12633
|
+
return new Vo(t.value.default_allowed);
|
|
12634
12634
|
}
|
|
12635
12635
|
toAmino() {
|
|
12636
12636
|
return {
|
|
@@ -12639,7 +12639,7 @@ class Ko extends m {
|
|
|
12639
12639
|
};
|
|
12640
12640
|
}
|
|
12641
12641
|
static fromData(t) {
|
|
12642
|
-
return new
|
|
12642
|
+
return new Vo(t.default_allowed);
|
|
12643
12643
|
}
|
|
12644
12644
|
toData() {
|
|
12645
12645
|
return {
|
|
@@ -12648,10 +12648,10 @@ class Ko extends m {
|
|
|
12648
12648
|
};
|
|
12649
12649
|
}
|
|
12650
12650
|
static fromProto(t) {
|
|
12651
|
-
return new
|
|
12651
|
+
return new Vo(t.defaultAllowed);
|
|
12652
12652
|
}
|
|
12653
12653
|
toProto() {
|
|
12654
|
-
return
|
|
12654
|
+
return Pl.fromPartial({
|
|
12655
12655
|
defaultAllowed: this.default_allowed
|
|
12656
12656
|
});
|
|
12657
12657
|
}
|
|
@@ -12670,7 +12670,7 @@ class wr extends m {
|
|
|
12670
12670
|
} = t;
|
|
12671
12671
|
return new wr(
|
|
12672
12672
|
e,
|
|
12673
|
-
|
|
12673
|
+
Vo.fromAmino(r)
|
|
12674
12674
|
);
|
|
12675
12675
|
}
|
|
12676
12676
|
toAmino() {
|
|
@@ -12687,7 +12687,7 @@ class wr extends m {
|
|
|
12687
12687
|
const { authority: e, params: r } = t;
|
|
12688
12688
|
return new wr(
|
|
12689
12689
|
e,
|
|
12690
|
-
|
|
12690
|
+
Vo.fromData(r)
|
|
12691
12691
|
);
|
|
12692
12692
|
}
|
|
12693
12693
|
toData() {
|
|
@@ -12701,7 +12701,7 @@ class wr extends m {
|
|
|
12701
12701
|
static fromProto(t) {
|
|
12702
12702
|
return new wr(
|
|
12703
12703
|
t.authority,
|
|
12704
|
-
|
|
12704
|
+
Vo.fromProto(t.params)
|
|
12705
12705
|
);
|
|
12706
12706
|
}
|
|
12707
12707
|
toProto() {
|
|
@@ -12752,7 +12752,7 @@ class Os extends m {
|
|
|
12752
12752
|
}
|
|
12753
12753
|
toProto() {
|
|
12754
12754
|
const { address: t, allowed: e } = this;
|
|
12755
|
-
return
|
|
12755
|
+
return Al.fromPartial({
|
|
12756
12756
|
address: t,
|
|
12757
12757
|
allowed: e
|
|
12758
12758
|
});
|
|
@@ -12987,7 +12987,7 @@ class Ho extends m {
|
|
|
12987
12987
|
}
|
|
12988
12988
|
toProto() {
|
|
12989
12989
|
const { send_enabled: t, receive_enabled: e } = this;
|
|
12990
|
-
return
|
|
12990
|
+
return Dl.fromPartial({
|
|
12991
12991
|
sendEnabled: t,
|
|
12992
12992
|
receiveEnabled: e
|
|
12993
12993
|
});
|
|
@@ -13190,7 +13190,7 @@ class Tn extends m {
|
|
|
13190
13190
|
receiver: c,
|
|
13191
13191
|
memo: d
|
|
13192
13192
|
} = this;
|
|
13193
|
-
return
|
|
13193
|
+
return xl.fromPartial({
|
|
13194
13194
|
classId: t,
|
|
13195
13195
|
classUri: e,
|
|
13196
13196
|
classData: r,
|
|
@@ -13238,7 +13238,7 @@ class Ts extends m {
|
|
|
13238
13238
|
}
|
|
13239
13239
|
toProto() {
|
|
13240
13240
|
const { path: t, base_class_id: e } = this;
|
|
13241
|
-
return
|
|
13241
|
+
return kl.fromPartial({ path: t, baseClassId: e });
|
|
13242
13242
|
}
|
|
13243
13243
|
}
|
|
13244
13244
|
class Dr extends m {
|
|
@@ -13428,7 +13428,7 @@ class fs extends m {
|
|
|
13428
13428
|
}
|
|
13429
13429
|
toProto() {
|
|
13430
13430
|
const { port_id: t, channel_id: e } = this;
|
|
13431
|
-
return
|
|
13431
|
+
return gl.fromPartial({
|
|
13432
13432
|
portId: t,
|
|
13433
13433
|
channelId: e
|
|
13434
13434
|
});
|
|
@@ -13496,7 +13496,7 @@ class at extends m {
|
|
|
13496
13496
|
}
|
|
13497
13497
|
toProto() {
|
|
13498
13498
|
const { state: t, ordering: e, counterparty: r, connection_hops: o, version: s } = this;
|
|
13499
|
-
return
|
|
13499
|
+
return _l.fromPartial({
|
|
13500
13500
|
state: t,
|
|
13501
13501
|
ordering: e,
|
|
13502
13502
|
counterparty: r == null ? void 0 : r.toProto(),
|
|
@@ -13611,7 +13611,7 @@ class gs extends m {
|
|
|
13611
13611
|
}
|
|
13612
13612
|
toProto() {
|
|
13613
13613
|
const { height: e, consensus_state: r } = this;
|
|
13614
|
-
return
|
|
13614
|
+
return yd.fromPartial({
|
|
13615
13615
|
height: e == null ? void 0 : e.toProto(),
|
|
13616
13616
|
consensusState: r
|
|
13617
13617
|
});
|
|
@@ -13663,7 +13663,7 @@ class Rn extends m {
|
|
|
13663
13663
|
}
|
|
13664
13664
|
toProto() {
|
|
13665
13665
|
const { client_id: t, consensus_states: e } = this;
|
|
13666
|
-
return
|
|
13666
|
+
return vd.fromPartial({
|
|
13667
13667
|
clientId: t,
|
|
13668
13668
|
consensusStates: e.map((r) => r.toProto())
|
|
13669
13669
|
});
|
|
@@ -13704,7 +13704,7 @@ class Dn extends m {
|
|
|
13704
13704
|
}
|
|
13705
13705
|
toProto() {
|
|
13706
13706
|
const { client_id: t, client_state: e } = this;
|
|
13707
|
-
return
|
|
13707
|
+
return bd.fromPartial({
|
|
13708
13708
|
clientId: t,
|
|
13709
13709
|
clientState: e
|
|
13710
13710
|
});
|
|
@@ -13742,7 +13742,7 @@ class _s extends m {
|
|
|
13742
13742
|
}
|
|
13743
13743
|
toProto() {
|
|
13744
13744
|
const { allowed_clients: t } = this;
|
|
13745
|
-
return
|
|
13745
|
+
return wd.fromPartial({
|
|
13746
13746
|
allowedClients: t
|
|
13747
13747
|
});
|
|
13748
13748
|
}
|
|
@@ -13785,7 +13785,7 @@ class ys extends m {
|
|
|
13785
13785
|
}
|
|
13786
13786
|
toProto() {
|
|
13787
13787
|
const { height: t, timestamp: e } = this;
|
|
13788
|
-
return
|
|
13788
|
+
return yl.fromPartial({
|
|
13789
13789
|
height: t.toProto(),
|
|
13790
13790
|
timestamp: f.fromNumber(e)
|
|
13791
13791
|
});
|
|
@@ -13820,7 +13820,7 @@ class Fs extends m {
|
|
|
13820
13820
|
);
|
|
13821
13821
|
}
|
|
13822
13822
|
toProto() {
|
|
13823
|
-
return
|
|
13823
|
+
return vl.fromPartial({
|
|
13824
13824
|
upgradeTimeout: this.upgrade_timeout.toProto()
|
|
13825
13825
|
});
|
|
13826
13826
|
}
|
|
@@ -13944,7 +13944,7 @@ class tt extends m {
|
|
|
13944
13944
|
timeout_height: a,
|
|
13945
13945
|
timeout_timestamp: c
|
|
13946
13946
|
} = this;
|
|
13947
|
-
return
|
|
13947
|
+
return bl.fromPartial({
|
|
13948
13948
|
sequence: f.fromNumber(t),
|
|
13949
13949
|
sourcePort: e,
|
|
13950
13950
|
sourceChannel: r,
|
|
@@ -13988,7 +13988,7 @@ class vs extends m {
|
|
|
13988
13988
|
}
|
|
13989
13989
|
toProto() {
|
|
13990
13990
|
const { key_prefix: t } = this;
|
|
13991
|
-
return
|
|
13991
|
+
return Ml.fromPartial({
|
|
13992
13992
|
keyPrefix: Buffer.from(t, "base64")
|
|
13993
13993
|
});
|
|
13994
13994
|
}
|
|
@@ -14018,7 +14018,7 @@ class Om extends m {
|
|
|
14018
14018
|
return new Om(Buffer.from(t.hash).toString("base64"));
|
|
14019
14019
|
}
|
|
14020
14020
|
toProto() {
|
|
14021
|
-
return
|
|
14021
|
+
return Sl.fromPartial({
|
|
14022
14022
|
hash: Buffer.from(this.hash, "base64")
|
|
14023
14023
|
});
|
|
14024
14024
|
}
|
|
@@ -14073,7 +14073,7 @@ class it extends m {
|
|
|
14073
14073
|
}
|
|
14074
14074
|
toProto() {
|
|
14075
14075
|
const { client_id: t, connection_id: e, prefix: r } = this;
|
|
14076
|
-
return
|
|
14076
|
+
return Il.fromPartial({
|
|
14077
14077
|
clientId: t,
|
|
14078
14078
|
connectionId: e,
|
|
14079
14079
|
prefix: r == null ? void 0 : r.toProto()
|
|
@@ -14115,7 +14115,7 @@ class Y extends m {
|
|
|
14115
14115
|
}
|
|
14116
14116
|
toProto() {
|
|
14117
14117
|
const { identifier: t, features: e } = this;
|
|
14118
|
-
return
|
|
14118
|
+
return Nl.fromPartial({ identifier: t, features: e });
|
|
14119
14119
|
}
|
|
14120
14120
|
}
|
|
14121
14121
|
class Ls extends m {
|
|
@@ -14186,7 +14186,7 @@ class Ls extends m {
|
|
|
14186
14186
|
}
|
|
14187
14187
|
toProto() {
|
|
14188
14188
|
const { id: t, client_id: e, versions: r, state: o, counterparty: s, delay_period: n } = this;
|
|
14189
|
-
return
|
|
14189
|
+
return Ul.fromPartial({
|
|
14190
14190
|
id: t,
|
|
14191
14191
|
clientId: e,
|
|
14192
14192
|
versions: r.map((a) => a.toProto()),
|
|
@@ -14228,7 +14228,7 @@ class qs extends m {
|
|
|
14228
14228
|
}
|
|
14229
14229
|
toProto() {
|
|
14230
14230
|
const { max_expected_time_per_block: t } = this;
|
|
14231
|
-
return
|
|
14231
|
+
return Cl.fromPartial({
|
|
14232
14232
|
maxExpectedTimePerBlock: f.fromNumber(t)
|
|
14233
14233
|
});
|
|
14234
14234
|
}
|
|
@@ -14336,7 +14336,7 @@ class zs extends m {
|
|
|
14336
14336
|
);
|
|
14337
14337
|
}
|
|
14338
14338
|
}
|
|
14339
|
-
class
|
|
14339
|
+
class Ks extends m {
|
|
14340
14340
|
/**
|
|
14341
14341
|
* @param port_id identifier of the port to use
|
|
14342
14342
|
* @param channel_id
|
|
@@ -14355,7 +14355,7 @@ class Vs extends m {
|
|
|
14355
14355
|
}
|
|
14356
14356
|
static fromData(t) {
|
|
14357
14357
|
const { port_id: e, channel_id: r, proof_ack: o, proof_height: s, signer: n } = t;
|
|
14358
|
-
return new
|
|
14358
|
+
return new Ks(
|
|
14359
14359
|
e,
|
|
14360
14360
|
r,
|
|
14361
14361
|
o,
|
|
@@ -14375,7 +14375,7 @@ class Vs extends m {
|
|
|
14375
14375
|
};
|
|
14376
14376
|
}
|
|
14377
14377
|
static fromProto(t) {
|
|
14378
|
-
return new
|
|
14378
|
+
return new Ks(
|
|
14379
14379
|
t.portId,
|
|
14380
14380
|
t.channelId,
|
|
14381
14381
|
Buffer.from(t.proofAck).toString("base64"),
|
|
@@ -14400,12 +14400,12 @@ class Vs extends m {
|
|
|
14400
14400
|
});
|
|
14401
14401
|
}
|
|
14402
14402
|
static unpackAny(t) {
|
|
14403
|
-
return
|
|
14403
|
+
return Ks.fromProto(
|
|
14404
14404
|
ec.decode(t.value)
|
|
14405
14405
|
);
|
|
14406
14406
|
}
|
|
14407
14407
|
}
|
|
14408
|
-
class
|
|
14408
|
+
class Vs extends m {
|
|
14409
14409
|
/**
|
|
14410
14410
|
* @param port_id identifier of the port to use
|
|
14411
14411
|
* @param channel_id
|
|
@@ -14434,7 +14434,7 @@ class Ks extends m {
|
|
|
14434
14434
|
proof_height: a,
|
|
14435
14435
|
signer: c
|
|
14436
14436
|
} = t;
|
|
14437
|
-
return new
|
|
14437
|
+
return new Vs(
|
|
14438
14438
|
e,
|
|
14439
14439
|
r,
|
|
14440
14440
|
o,
|
|
@@ -14466,7 +14466,7 @@ class Ks extends m {
|
|
|
14466
14466
|
};
|
|
14467
14467
|
}
|
|
14468
14468
|
static fromProto(t) {
|
|
14469
|
-
return new
|
|
14469
|
+
return new Vs(
|
|
14470
14470
|
t.portId,
|
|
14471
14471
|
t.channelId,
|
|
14472
14472
|
t.counterpartyChannelId,
|
|
@@ -14503,7 +14503,7 @@ class Ks extends m {
|
|
|
14503
14503
|
});
|
|
14504
14504
|
}
|
|
14505
14505
|
static unpackAny(t) {
|
|
14506
|
-
return
|
|
14506
|
+
return Vs.fromProto(
|
|
14507
14507
|
rc.decode(t.value)
|
|
14508
14508
|
);
|
|
14509
14509
|
}
|
|
@@ -15345,7 +15345,7 @@ class St extends m {
|
|
|
15345
15345
|
}
|
|
15346
15346
|
toProto() {
|
|
15347
15347
|
const { name: t, height: e, info: r } = this;
|
|
15348
|
-
return
|
|
15348
|
+
return $l.fromPartial({
|
|
15349
15349
|
name: t,
|
|
15350
15350
|
height: f.fromNumber(e),
|
|
15351
15351
|
info: r
|
|
@@ -16200,7 +16200,7 @@ class j extends m {
|
|
|
16200
16200
|
return new j(t.Base, t.Quote);
|
|
16201
16201
|
}
|
|
16202
16202
|
toProto() {
|
|
16203
|
-
return
|
|
16203
|
+
return El.fromPartial({
|
|
16204
16204
|
Base: this.Base,
|
|
16205
16205
|
Quote: this.Quote
|
|
16206
16206
|
});
|
|
@@ -16381,7 +16381,7 @@ class kn extends m {
|
|
|
16381
16381
|
}
|
|
16382
16382
|
toProto() {
|
|
16383
16383
|
const { price: t, block_timestamp: e, block_height: r } = this;
|
|
16384
|
-
return
|
|
16384
|
+
return Bl.fromPartial({
|
|
16385
16385
|
price: t,
|
|
16386
16386
|
blockTimestamp: e,
|
|
16387
16387
|
blockHeight: f.fromNumber(r)
|
|
@@ -16450,7 +16450,7 @@ class bs extends m {
|
|
|
16450
16450
|
}
|
|
16451
16451
|
toProto() {
|
|
16452
16452
|
const { name: t, off_chain_ticker: e, normalize_by_pair: r, invert: o, metadata_JSON: s } = this;
|
|
16453
|
-
return
|
|
16453
|
+
return Ol.fromPartial({
|
|
16454
16454
|
name: t,
|
|
16455
16455
|
offChainTicker: e,
|
|
16456
16456
|
normalizeByPair: r == null ? void 0 : r.toProto(),
|
|
@@ -16551,7 +16551,7 @@ class ws extends m {
|
|
|
16551
16551
|
enabled: o,
|
|
16552
16552
|
metadata_JSON: s
|
|
16553
16553
|
} = this;
|
|
16554
|
-
return
|
|
16554
|
+
return Tl.fromPartial({
|
|
16555
16555
|
currencyPair: t,
|
|
16556
16556
|
decimals: f.fromNumber(e),
|
|
16557
16557
|
minProviderCount: f.fromNumber(r),
|
|
@@ -16604,7 +16604,7 @@ class H extends m {
|
|
|
16604
16604
|
}
|
|
16605
16605
|
toProto() {
|
|
16606
16606
|
const { ticker: t, provider_configs: e } = this;
|
|
16607
|
-
return
|
|
16607
|
+
return Rl.fromPartial({
|
|
16608
16608
|
ticker: t.toProto(),
|
|
16609
16609
|
providerConfigs: e.map((r) => r.toProto())
|
|
16610
16610
|
});
|
|
@@ -16872,7 +16872,7 @@ class Go extends m {
|
|
|
16872
16872
|
}
|
|
16873
16873
|
toProto() {
|
|
16874
16874
|
const { market_authorities: t, admin: e } = this;
|
|
16875
|
-
return
|
|
16875
|
+
return Fl.fromPartial({
|
|
16876
16876
|
marketAuthorities: t,
|
|
16877
16877
|
admin: e
|
|
16878
16878
|
});
|
|
@@ -17517,7 +17517,7 @@ class Wo extends m {
|
|
|
17517
17517
|
script_enabled: o,
|
|
17518
17518
|
allowed_publishers: s
|
|
17519
17519
|
} = this;
|
|
17520
|
-
return
|
|
17520
|
+
return cd.fromPartial({
|
|
17521
17521
|
baseDenom: t,
|
|
17522
17522
|
baseMinGasPrice: e,
|
|
17523
17523
|
contractSharedRevenueRatio: r,
|
|
@@ -17647,7 +17647,7 @@ class zr extends m {
|
|
|
17647
17647
|
return zr.fromProto(Fc.decode(t.value));
|
|
17648
17648
|
}
|
|
17649
17649
|
}
|
|
17650
|
-
class
|
|
17650
|
+
class Kr extends m {
|
|
17651
17651
|
/**
|
|
17652
17652
|
* @param authority the address that controls the module
|
|
17653
17653
|
* @param metadata_lp Dex coin LP metadata address
|
|
@@ -17659,7 +17659,7 @@ class Vr extends m {
|
|
|
17659
17659
|
const {
|
|
17660
17660
|
value: { authority: e, metadata_lp: r }
|
|
17661
17661
|
} = t;
|
|
17662
|
-
return new
|
|
17662
|
+
return new Kr(e, r);
|
|
17663
17663
|
}
|
|
17664
17664
|
toAmino() {
|
|
17665
17665
|
const { authority: t, metadata_lp: e } = this;
|
|
@@ -17673,7 +17673,7 @@ class Vr extends m {
|
|
|
17673
17673
|
}
|
|
17674
17674
|
static fromData(t) {
|
|
17675
17675
|
const { authority: e, metadata_lp: r } = t;
|
|
17676
|
-
return new
|
|
17676
|
+
return new Kr(e, r);
|
|
17677
17677
|
}
|
|
17678
17678
|
toData() {
|
|
17679
17679
|
const { authority: t, metadata_lp: e } = this;
|
|
@@ -17684,7 +17684,7 @@ class Vr extends m {
|
|
|
17684
17684
|
};
|
|
17685
17685
|
}
|
|
17686
17686
|
static fromProto(t) {
|
|
17687
|
-
return new
|
|
17687
|
+
return new Kr(t.authority, t.metadataLp);
|
|
17688
17688
|
}
|
|
17689
17689
|
toProto() {
|
|
17690
17690
|
const { authority: t, metadata_lp: e } = this;
|
|
@@ -17700,10 +17700,10 @@ class Vr extends m {
|
|
|
17700
17700
|
});
|
|
17701
17701
|
}
|
|
17702
17702
|
static unpackAny(t) {
|
|
17703
|
-
return
|
|
17703
|
+
return Kr.fromProto(Lc.decode(t.value));
|
|
17704
17704
|
}
|
|
17705
17705
|
}
|
|
17706
|
-
class
|
|
17706
|
+
class Vr extends m {
|
|
17707
17707
|
/**
|
|
17708
17708
|
* @param authority the address that controls the module
|
|
17709
17709
|
* @param sender the actor that signed the messages
|
|
@@ -17731,7 +17731,7 @@ class Kr extends m {
|
|
|
17731
17731
|
args: d
|
|
17732
17732
|
}
|
|
17733
17733
|
} = e;
|
|
17734
|
-
return new
|
|
17734
|
+
return new Vr(
|
|
17735
17735
|
r,
|
|
17736
17736
|
o,
|
|
17737
17737
|
s,
|
|
@@ -17774,7 +17774,7 @@ class Kr extends m {
|
|
|
17774
17774
|
type_args: c,
|
|
17775
17775
|
args: d
|
|
17776
17776
|
} = e;
|
|
17777
|
-
return new
|
|
17777
|
+
return new Vr(
|
|
17778
17778
|
r,
|
|
17779
17779
|
o,
|
|
17780
17780
|
s,
|
|
@@ -17806,7 +17806,7 @@ class Kr extends m {
|
|
|
17806
17806
|
};
|
|
17807
17807
|
}
|
|
17808
17808
|
static fromProto(e) {
|
|
17809
|
-
return new
|
|
17809
|
+
return new Vr(
|
|
17810
17810
|
e.authority,
|
|
17811
17811
|
e.sender,
|
|
17812
17812
|
e.moduleAddress,
|
|
@@ -17843,7 +17843,7 @@ class Kr extends m {
|
|
|
17843
17843
|
});
|
|
17844
17844
|
}
|
|
17845
17845
|
static unpackAny(e) {
|
|
17846
|
-
return
|
|
17846
|
+
return Vr.fromProto(qc.decode(e.value));
|
|
17847
17847
|
}
|
|
17848
17848
|
}
|
|
17849
17849
|
class Hr extends m {
|
|
@@ -18048,7 +18048,7 @@ class yt extends m {
|
|
|
18048
18048
|
}
|
|
18049
18049
|
toProto() {
|
|
18050
18050
|
const { authority: t, sender: e, code_bytes: r, upgrade_policy: o } = this;
|
|
18051
|
-
return
|
|
18051
|
+
return Kc.fromPartial({
|
|
18052
18052
|
authority: t,
|
|
18053
18053
|
sender: e,
|
|
18054
18054
|
codeBytes: r.map((s) => Buffer.from(s, "base64")),
|
|
@@ -18058,11 +18058,11 @@ class yt extends m {
|
|
|
18058
18058
|
packAny() {
|
|
18059
18059
|
return l.fromPartial({
|
|
18060
18060
|
typeUrl: "/initia.move.v1.MsgGovPublish",
|
|
18061
|
-
value:
|
|
18061
|
+
value: Kc.encode(this.toProto()).finish()
|
|
18062
18062
|
});
|
|
18063
18063
|
}
|
|
18064
18064
|
static unpackAny(t) {
|
|
18065
|
-
return yt.fromProto(
|
|
18065
|
+
return yt.fromProto(Kc.decode(t.value));
|
|
18066
18066
|
}
|
|
18067
18067
|
}
|
|
18068
18068
|
((i) => {
|
|
@@ -18133,7 +18133,7 @@ class Gr extends m {
|
|
|
18133
18133
|
}
|
|
18134
18134
|
toProto() {
|
|
18135
18135
|
const { authority: e, sender: r, code_bytes: o, type_args: s, args: n } = this;
|
|
18136
|
-
return
|
|
18136
|
+
return Vc.fromPartial({
|
|
18137
18137
|
authority: e,
|
|
18138
18138
|
sender: r,
|
|
18139
18139
|
codeBytes: Buffer.from(o, "base64"),
|
|
@@ -18144,11 +18144,11 @@ class Gr extends m {
|
|
|
18144
18144
|
packAny() {
|
|
18145
18145
|
return l.fromPartial({
|
|
18146
18146
|
typeUrl: "/initia.move.v1.MsgGovScript",
|
|
18147
|
-
value:
|
|
18147
|
+
value: Vc.encode(this.toProto()).finish()
|
|
18148
18148
|
});
|
|
18149
18149
|
}
|
|
18150
18150
|
static unpackAny(e) {
|
|
18151
|
-
return Gr.fromProto(
|
|
18151
|
+
return Gr.fromProto(Vc.decode(e.value));
|
|
18152
18152
|
}
|
|
18153
18153
|
}
|
|
18154
18154
|
class Wr extends m {
|
|
@@ -18593,7 +18593,7 @@ class B extends m {
|
|
|
18593
18593
|
voting_powers: _,
|
|
18594
18594
|
voting_power: v
|
|
18595
18595
|
} = this;
|
|
18596
|
-
return
|
|
18596
|
+
return ql.fromPartial({
|
|
18597
18597
|
operatorAddress: e,
|
|
18598
18598
|
consensusPubkey: r.packAny(),
|
|
18599
18599
|
jailed: o,
|
|
@@ -18630,7 +18630,7 @@ class B extends m {
|
|
|
18630
18630
|
}
|
|
18631
18631
|
}
|
|
18632
18632
|
((i) => {
|
|
18633
|
-
i.Status =
|
|
18633
|
+
i.Status = Ll;
|
|
18634
18634
|
class t extends m {
|
|
18635
18635
|
/**
|
|
18636
18636
|
* @param moniker Identifying name, e.g. "Hashed"
|
|
@@ -18680,7 +18680,7 @@ class B extends m {
|
|
|
18680
18680
|
}
|
|
18681
18681
|
toProto() {
|
|
18682
18682
|
const { moniker: s, identity: n, website: a, details: c, security_contact: d } = this;
|
|
18683
|
-
return
|
|
18683
|
+
return zl.fromPartial({
|
|
18684
18684
|
details: c,
|
|
18685
18685
|
identity: n,
|
|
18686
18686
|
moniker: s,
|
|
@@ -18737,7 +18737,7 @@ class B extends m {
|
|
|
18737
18737
|
}
|
|
18738
18738
|
toProto() {
|
|
18739
18739
|
const { rate: s, max_rate: n, max_change_rate: a } = this;
|
|
18740
|
-
return
|
|
18740
|
+
return Kl.fromPartial({
|
|
18741
18741
|
maxChangeRate: a,
|
|
18742
18742
|
maxRate: n,
|
|
18743
18743
|
rate: s
|
|
@@ -19175,7 +19175,7 @@ class jo extends m {
|
|
|
19175
19175
|
min_voting_power: n,
|
|
19176
19176
|
min_commission_rate: a
|
|
19177
19177
|
} = this;
|
|
19178
|
-
return
|
|
19178
|
+
return Hl.fromPartial({
|
|
19179
19179
|
unbondingTime: t.toProto(),
|
|
19180
19180
|
maxValidators: e,
|
|
19181
19181
|
maxEntries: r,
|
|
@@ -19323,8 +19323,8 @@ class Ps extends m {
|
|
|
19323
19323
|
}
|
|
19324
19324
|
toProto() {
|
|
19325
19325
|
const { delegator_address: e, validator_address: r, shares: o, balance: s } = this;
|
|
19326
|
-
return
|
|
19327
|
-
delegation:
|
|
19326
|
+
return Gl.fromPartial({
|
|
19327
|
+
delegation: Wl.fromPartial({
|
|
19328
19328
|
delegatorAddress: e,
|
|
19329
19329
|
validatorAddress: r,
|
|
19330
19330
|
shares: o.toProto()
|
|
@@ -19424,9 +19424,9 @@ class dt extends m {
|
|
|
19424
19424
|
validator_dst_address: r,
|
|
19425
19425
|
entries: o
|
|
19426
19426
|
} = this;
|
|
19427
|
-
return
|
|
19427
|
+
return jl.fromPartial({
|
|
19428
19428
|
entries: o.map((s) => s.toProto()),
|
|
19429
|
-
redelegation:
|
|
19429
|
+
redelegation: Jl.fromPartial({
|
|
19430
19430
|
delegatorAddress: t,
|
|
19431
19431
|
entries: o.map(
|
|
19432
19432
|
(s) => s.toProto().redelegationEntry
|
|
@@ -19519,9 +19519,9 @@ class dt extends m {
|
|
|
19519
19519
|
creation_height: a,
|
|
19520
19520
|
completion_time: c
|
|
19521
19521
|
} = this;
|
|
19522
|
-
return
|
|
19522
|
+
return Ql.fromPartial({
|
|
19523
19523
|
balance: s.toProto(),
|
|
19524
|
-
redelegationEntry:
|
|
19524
|
+
redelegationEntry: Yl.fromPartial({
|
|
19525
19525
|
completionTime: c,
|
|
19526
19526
|
creationHeight: f.fromNumber(a),
|
|
19527
19527
|
initialBalance: o.toProto(),
|
|
@@ -19580,7 +19580,7 @@ class X extends m {
|
|
|
19580
19580
|
}
|
|
19581
19581
|
toProto() {
|
|
19582
19582
|
const { delegator_address: t, validator_address: e, entries: r } = this;
|
|
19583
|
-
return
|
|
19583
|
+
return Zl.fromPartial({
|
|
19584
19584
|
delegatorAddress: t,
|
|
19585
19585
|
entries: r.map((o) => o.toProto()),
|
|
19586
19586
|
validatorAddress: e
|
|
@@ -19645,7 +19645,7 @@ class X extends m {
|
|
|
19645
19645
|
}
|
|
19646
19646
|
toProto() {
|
|
19647
19647
|
const { initial_balance: o, balance: s, creation_height: n, completion_time: a } = this;
|
|
19648
|
-
return
|
|
19648
|
+
return Xl.fromPartial({
|
|
19649
19649
|
balance: s.toProto(),
|
|
19650
19650
|
completionTime: a,
|
|
19651
19651
|
creationHeight: f.fromNumber(n),
|
|
@@ -20200,7 +20200,7 @@ class Z extends m {
|
|
|
20200
20200
|
}
|
|
20201
20201
|
toProto() {
|
|
20202
20202
|
const { submitter: t, chain_type: e } = this;
|
|
20203
|
-
return
|
|
20203
|
+
return op.fromPartial({
|
|
20204
20204
|
submitter: t,
|
|
20205
20205
|
chainType: e
|
|
20206
20206
|
});
|
|
@@ -20331,7 +20331,7 @@ class It extends m {
|
|
|
20331
20331
|
oracle_enabled: a,
|
|
20332
20332
|
metadata: c
|
|
20333
20333
|
} = this;
|
|
20334
|
-
return
|
|
20334
|
+
return sp.fromPartial({
|
|
20335
20335
|
challenger: t,
|
|
20336
20336
|
proposer: e,
|
|
20337
20337
|
batchInfo: r.toProto(),
|
|
@@ -21251,7 +21251,7 @@ class Jo extends m {
|
|
|
21251
21251
|
return new Jo(u.fromProto(e.registrationFee));
|
|
21252
21252
|
}
|
|
21253
21253
|
toProto() {
|
|
21254
|
-
return
|
|
21254
|
+
return np.fromPartial({
|
|
21255
21255
|
registrationFee: this.registration_fee.toProto()
|
|
21256
21256
|
});
|
|
21257
21257
|
}
|
|
@@ -21373,7 +21373,7 @@ class Nt extends m {
|
|
|
21373
21373
|
}
|
|
21374
21374
|
toProto() {
|
|
21375
21375
|
const { output_root: t, l1_block_number: e, l1_block_time: r, l2_block_number: o } = this;
|
|
21376
|
-
return
|
|
21376
|
+
return ap.fromPartial({
|
|
21377
21377
|
outputRoot: Buffer.from(t, "base64"),
|
|
21378
21378
|
l1BlockNumber: f.fromNumber(e),
|
|
21379
21379
|
l1BlockTime: r,
|
|
@@ -21425,7 +21425,7 @@ class xn extends m {
|
|
|
21425
21425
|
}
|
|
21426
21426
|
toProto() {
|
|
21427
21427
|
const { batch_info: t, output: e } = this;
|
|
21428
|
-
return
|
|
21428
|
+
return ip.fromPartial({
|
|
21429
21429
|
batchInfo: t.toProto(),
|
|
21430
21430
|
output: e.toProto()
|
|
21431
21431
|
});
|
|
@@ -21493,7 +21493,7 @@ class Ut extends m {
|
|
|
21493
21493
|
}
|
|
21494
21494
|
toProto() {
|
|
21495
21495
|
const { bridge_id: t, bridge_addr: e, l1_chain_id: r, l1_client_id: o, bridge_config: s } = this;
|
|
21496
|
-
return
|
|
21496
|
+
return tp.fromPartial({
|
|
21497
21497
|
bridgeId: f.fromNumber(t),
|
|
21498
21498
|
bridgeAddr: e,
|
|
21499
21499
|
l1ChainId: r,
|
|
@@ -21740,7 +21740,7 @@ class Qo extends m {
|
|
|
21740
21740
|
admin: n,
|
|
21741
21741
|
fee_whitelist: a
|
|
21742
21742
|
} = this;
|
|
21743
|
-
return
|
|
21743
|
+
return ep.fromPartial({
|
|
21744
21744
|
maxValidators: e,
|
|
21745
21745
|
historicalEntries: r,
|
|
21746
21746
|
minGasPrices: o.toProto(),
|
|
@@ -21870,7 +21870,7 @@ class dn extends m {
|
|
|
21870
21870
|
}
|
|
21871
21871
|
toProto() {
|
|
21872
21872
|
const { moniker: t, operator_address: e, consensus_pubkey: r, cons_power: o } = this;
|
|
21873
|
-
return
|
|
21873
|
+
return rp.fromPartial({
|
|
21874
21874
|
moniker: t,
|
|
21875
21875
|
operatorAddress: e,
|
|
21876
21876
|
consensusPubkey: r.packAny(),
|
|
@@ -21976,7 +21976,7 @@ class Yo extends m {
|
|
|
21976
21976
|
dilution_rate: o,
|
|
21977
21977
|
release_enabled: s
|
|
21978
21978
|
} = this;
|
|
21979
|
-
return
|
|
21979
|
+
return cp.fromPartial({
|
|
21980
21980
|
rewardDenom: t,
|
|
21981
21981
|
dilutionPeriod: e.toProto(),
|
|
21982
21982
|
releaseRate: r,
|
|
@@ -22196,7 +22196,7 @@ class Zo extends m {
|
|
|
22196
22196
|
slash_fraction_double_sign: o,
|
|
22197
22197
|
slash_fraction_downtime: s
|
|
22198
22198
|
} = this;
|
|
22199
|
-
return
|
|
22199
|
+
return mp.fromPartial({
|
|
22200
22200
|
signedBlocksWindow: f.fromNumber(t),
|
|
22201
22201
|
minSignedPerWindow: Buffer.from(e.toString()),
|
|
22202
22202
|
downtimeJailDuration: r.toProto(),
|
|
@@ -22773,7 +22773,7 @@ class Xo extends m {
|
|
|
22773
22773
|
}
|
|
22774
22774
|
toProto() {
|
|
22775
22775
|
const { denom_creation_fee: e, denom_creation_gas_consume: r } = this;
|
|
22776
|
-
return
|
|
22776
|
+
return up.fromPartial({
|
|
22777
22777
|
denomCreationFee: e.toProto(),
|
|
22778
22778
|
denomCreationGasConsume: f.fromNumber(r)
|
|
22779
22779
|
});
|
|
@@ -22851,11 +22851,11 @@ var U;
|
|
|
22851
22851
|
function t(o) {
|
|
22852
22852
|
switch (o.type) {
|
|
22853
22853
|
case "block-sdk/x/auction/MsgAuctionBid":
|
|
22854
|
-
return Lt.fromAmino(o);
|
|
22855
|
-
case "block-sdk/x/auction/MsgUpdateParams":
|
|
22856
22854
|
return qt.fromAmino(o);
|
|
22857
|
-
case "
|
|
22855
|
+
case "block-sdk/x/auction/MsgUpdateParams":
|
|
22858
22856
|
return zt.fromAmino(o);
|
|
22857
|
+
case "cosmos-sdk/x/auth/MsgUpdateParams":
|
|
22858
|
+
return Kt.fromAmino(o);
|
|
22859
22859
|
case "cosmos-sdk/MsgGrant":
|
|
22860
22860
|
return we.fromAmino(o);
|
|
22861
22861
|
case "cosmos-sdk/MsgRevoke":
|
|
@@ -22865,7 +22865,7 @@ var U;
|
|
|
22865
22865
|
case "cosmos-sdk/MsgSend":
|
|
22866
22866
|
return De.fromAmino(o);
|
|
22867
22867
|
case "cosmos-sdk/MsgMultiSend":
|
|
22868
|
-
return
|
|
22868
|
+
return K.fromAmino(o);
|
|
22869
22869
|
case "cosmos-sdk/x/bank/MsgUpdateParams":
|
|
22870
22870
|
return ke.fromAmino(o);
|
|
22871
22871
|
case "cosmos-sdk/MsgSetSendEnabled":
|
|
@@ -22901,7 +22901,7 @@ var U;
|
|
|
22901
22901
|
case "evm/MsgCall":
|
|
22902
22902
|
return ze.fromAmino(o);
|
|
22903
22903
|
case "evm/MsgUpdateParams":
|
|
22904
|
-
return
|
|
22904
|
+
return Ke.fromAmino(o);
|
|
22905
22905
|
case "cosmos-sdk/MsgGrantAllowance":
|
|
22906
22906
|
return He.fromAmino(o);
|
|
22907
22907
|
case "cosmos-sdk/MsgRevokeAllowance":
|
|
@@ -22999,9 +22999,9 @@ var U;
|
|
|
22999
22999
|
case "move/MsgWhitelist":
|
|
23000
23000
|
return zr.fromAmino(o);
|
|
23001
23001
|
case "move/MsgDelist":
|
|
23002
|
-
return Vr.fromAmino(o);
|
|
23003
|
-
case "move/MsgGovExecute":
|
|
23004
23002
|
return Kr.fromAmino(o);
|
|
23003
|
+
case "move/MsgGovExecute":
|
|
23004
|
+
return Vr.fromAmino(o);
|
|
23005
23005
|
case "move/MsgGovExecuteJSON":
|
|
23006
23006
|
return Hr.fromAmino(o);
|
|
23007
23007
|
case "move/MsgGovPublish":
|
|
@@ -23136,11 +23136,11 @@ var U;
|
|
|
23136
23136
|
function e(o) {
|
|
23137
23137
|
switch (o["@type"]) {
|
|
23138
23138
|
case "/sdk.auction.v1.MsgAuctionBid":
|
|
23139
|
-
return Lt.fromData(o);
|
|
23140
|
-
case "/sdk.auction.v1.MsgUpdateParams":
|
|
23141
23139
|
return qt.fromData(o);
|
|
23142
|
-
case "/
|
|
23140
|
+
case "/sdk.auction.v1.MsgUpdateParams":
|
|
23143
23141
|
return zt.fromData(o);
|
|
23142
|
+
case "/cosmos.auth.v1beta1.MsgUpdateParams":
|
|
23143
|
+
return Kt.fromData(o);
|
|
23144
23144
|
case "/cosmos.authz.v1beta1.MsgGrant":
|
|
23145
23145
|
return we.fromData(o);
|
|
23146
23146
|
case "/cosmos.authz.v1beta1.MsgRevoke":
|
|
@@ -23150,7 +23150,7 @@ var U;
|
|
|
23150
23150
|
case "/cosmos.bank.v1beta1.MsgSend":
|
|
23151
23151
|
return De.fromData(o);
|
|
23152
23152
|
case "/cosmos.bank.v1beta1.MsgMultiSend":
|
|
23153
|
-
return
|
|
23153
|
+
return K.fromData(o);
|
|
23154
23154
|
case "/cosmos.bank.v1beta1.MsgUpdateParams":
|
|
23155
23155
|
return ke.fromData(o);
|
|
23156
23156
|
case "/cosmos.bank.v1beta1.MsgSetSendEnabled":
|
|
@@ -23188,7 +23188,7 @@ var U;
|
|
|
23188
23188
|
case "/minievm.evm.v1.MsgCall":
|
|
23189
23189
|
return ze.fromData(o);
|
|
23190
23190
|
case "/minievm.evm.v1.MsgUpdateParams":
|
|
23191
|
-
return
|
|
23191
|
+
return Ke.fromData(o);
|
|
23192
23192
|
case "/cosmos.feegrant.v1beta1.MsgGrantAllowance":
|
|
23193
23193
|
return He.fromData(o);
|
|
23194
23194
|
case "/cosmos.feegrant.v1beta1.MsgRevokeAllowance":
|
|
@@ -23272,9 +23272,9 @@ var U;
|
|
|
23272
23272
|
case "/ibc.core.channel.v1.MsgChannelOpenTry":
|
|
23273
23273
|
return zs.fromData(o);
|
|
23274
23274
|
case "/ibc.core.channel.v1.MsgChannelOpenConfirm":
|
|
23275
|
-
return Vs.fromData(o);
|
|
23276
|
-
case "/ibc.core.channel.v1.MsgChannelOpenAck":
|
|
23277
23275
|
return Ks.fromData(o);
|
|
23276
|
+
case "/ibc.core.channel.v1.MsgChannelOpenAck":
|
|
23277
|
+
return Vs.fromData(o);
|
|
23278
23278
|
case "/ibc.core.channel.v1.MsgChannelCloseInit":
|
|
23279
23279
|
return Hs.fromData(o);
|
|
23280
23280
|
case "/ibc.core.channel.v1.MsgChannelCloseConfirm":
|
|
@@ -23342,9 +23342,9 @@ var U;
|
|
|
23342
23342
|
case "/initia.move.v1.MsgWhitelist":
|
|
23343
23343
|
return zr.fromData(o);
|
|
23344
23344
|
case "/initia.move.v1.MsgDelist":
|
|
23345
|
-
return Vr.fromData(o);
|
|
23346
|
-
case "/initia.move.v1.MsgGovExecute":
|
|
23347
23345
|
return Kr.fromData(o);
|
|
23346
|
+
case "/initia.move.v1.MsgGovExecute":
|
|
23347
|
+
return Vr.fromData(o);
|
|
23348
23348
|
case "/initia.move.v1.MsgGovExecuteJSON":
|
|
23349
23349
|
return Hr.fromData(o);
|
|
23350
23350
|
case "/initia.move.v1.MsgGovPublish":
|
|
@@ -23479,11 +23479,11 @@ var U;
|
|
|
23479
23479
|
function r(o) {
|
|
23480
23480
|
switch (o.typeUrl) {
|
|
23481
23481
|
case "/sdk.auction.v1.MsgAuctionBid":
|
|
23482
|
-
return Lt.unpackAny(o);
|
|
23483
|
-
case "/sdk.auction.v1.MsgUpdateParams":
|
|
23484
23482
|
return qt.unpackAny(o);
|
|
23485
|
-
case "/
|
|
23483
|
+
case "/sdk.auction.v1.MsgUpdateParams":
|
|
23486
23484
|
return zt.unpackAny(o);
|
|
23485
|
+
case "/cosmos.auth.v1beta1.MsgUpdateParams":
|
|
23486
|
+
return Kt.unpackAny(o);
|
|
23487
23487
|
case "/cosmos.authz.v1beta1.MsgGrant":
|
|
23488
23488
|
return we.unpackAny(o);
|
|
23489
23489
|
case "/cosmos.authz.v1beta1.MsgRevoke":
|
|
@@ -23493,7 +23493,7 @@ var U;
|
|
|
23493
23493
|
case "/cosmos.bank.v1beta1.MsgSend":
|
|
23494
23494
|
return De.unpackAny(o);
|
|
23495
23495
|
case "/cosmos.bank.v1beta1.MsgMultiSend":
|
|
23496
|
-
return
|
|
23496
|
+
return K.unpackAny(o);
|
|
23497
23497
|
case "/cosmos.bank.v1beta1.MsgUpdateParams":
|
|
23498
23498
|
return ke.unpackAny(o);
|
|
23499
23499
|
case "/cosmos.bank.v1beta1.MsgSetSendEnabled":
|
|
@@ -23531,7 +23531,7 @@ var U;
|
|
|
23531
23531
|
case "/minievm.evm.v1.MsgCall":
|
|
23532
23532
|
return ze.unpackAny(o);
|
|
23533
23533
|
case "/minievm.evm.v1.MsgUpdateParams":
|
|
23534
|
-
return
|
|
23534
|
+
return Ke.unpackAny(o);
|
|
23535
23535
|
case "/cosmos.feegrant.v1beta1.MsgGrantAllowance":
|
|
23536
23536
|
return He.unpackAny(o);
|
|
23537
23537
|
case "/cosmos.feegrant.v1beta1.MsgRevokeAllowance":
|
|
@@ -23615,9 +23615,9 @@ var U;
|
|
|
23615
23615
|
case "/ibc.core.channel.v1.MsgChannelOpenTry":
|
|
23616
23616
|
return zs.unpackAny(o);
|
|
23617
23617
|
case "/ibc.core.channel.v1.MsgChannelOpenConfirm":
|
|
23618
|
-
return Vs.unpackAny(o);
|
|
23619
|
-
case "/ibc.core.channel.v1.MsgChannelOpenAck":
|
|
23620
23618
|
return Ks.unpackAny(o);
|
|
23619
|
+
case "/ibc.core.channel.v1.MsgChannelOpenAck":
|
|
23620
|
+
return Vs.unpackAny(o);
|
|
23621
23621
|
case "/ibc.core.channel.v1.MsgChannelCloseInit":
|
|
23622
23622
|
return Hs.unpackAny(o);
|
|
23623
23623
|
case "/ibc.core.channel.v1.MsgChannelCloseConfirm":
|
|
@@ -23685,9 +23685,9 @@ var U;
|
|
|
23685
23685
|
case "/initia.move.v1.MsgWhitelist":
|
|
23686
23686
|
return zr.unpackAny(o);
|
|
23687
23687
|
case "/initia.move.v1.MsgDelist":
|
|
23688
|
-
return Vr.unpackAny(o);
|
|
23689
|
-
case "/initia.move.v1.MsgGovExecute":
|
|
23690
23688
|
return Kr.unpackAny(o);
|
|
23689
|
+
case "/initia.move.v1.MsgGovExecute":
|
|
23690
|
+
return Vr.unpackAny(o);
|
|
23691
23691
|
case "/initia.move.v1.MsgGovExecuteJSON":
|
|
23692
23692
|
return Hr.unpackAny(o);
|
|
23693
23693
|
case "/initia.move.v1.MsgGovPublish":
|
|
@@ -23915,7 +23915,7 @@ class xg {
|
|
|
23915
23915
|
p(this, "signatures");
|
|
23916
23916
|
this.multisig_pubkey = t;
|
|
23917
23917
|
const e = t.pubkeys.length;
|
|
23918
|
-
this.bitarray =
|
|
23918
|
+
this.bitarray = Bt.fromBits(e), this.signatures = [];
|
|
23919
23919
|
}
|
|
23920
23920
|
appendSignature(t, e) {
|
|
23921
23921
|
const r = this.bitarray.numTrueBitsBefore(e);
|
|
@@ -23952,7 +23952,7 @@ class xg {
|
|
|
23952
23952
|
);
|
|
23953
23953
|
}
|
|
23954
23954
|
}
|
|
23955
|
-
class
|
|
23955
|
+
class Ap extends m {
|
|
23956
23956
|
/**
|
|
23957
23957
|
*
|
|
23958
23958
|
* @param chain_id ID of blockchain to submit transaction to
|
|
@@ -24005,7 +24005,7 @@ class Pp extends m {
|
|
|
24005
24005
|
});
|
|
24006
24006
|
}
|
|
24007
24007
|
toUnSignedTx() {
|
|
24008
|
-
return new
|
|
24008
|
+
return new V(this.tx_body, this.auth_info, []);
|
|
24009
24009
|
}
|
|
24010
24010
|
toBytes() {
|
|
24011
24011
|
return Jm.encode(this.toProto()).finish();
|
|
@@ -24037,7 +24037,7 @@ class Nn {
|
|
|
24037
24037
|
t.logs.map((e) => hn.fromProto(e)),
|
|
24038
24038
|
t.gasWanted.toNumber(),
|
|
24039
24039
|
t.gasUsed.toNumber(),
|
|
24040
|
-
|
|
24040
|
+
V.unpackAny(t.tx),
|
|
24041
24041
|
t.timestamp,
|
|
24042
24042
|
t.events,
|
|
24043
24043
|
t.code,
|
|
@@ -24052,7 +24052,7 @@ class Nn {
|
|
|
24052
24052
|
t.logs.map((e) => hn.fromData(e)),
|
|
24053
24053
|
Number.parseInt(t.gas_wanted),
|
|
24054
24054
|
Number.parseInt(t.gas_used),
|
|
24055
|
-
|
|
24055
|
+
V.fromData(t.tx),
|
|
24056
24056
|
t.timestamp,
|
|
24057
24057
|
t.events,
|
|
24058
24058
|
t.code,
|
|
@@ -24114,14 +24114,14 @@ class hn {
|
|
|
24114
24114
|
}
|
|
24115
24115
|
toProto() {
|
|
24116
24116
|
const { msg_index: t, log: e, events: r } = this;
|
|
24117
|
-
return
|
|
24117
|
+
return dp.fromPartial({
|
|
24118
24118
|
msgIndex: t,
|
|
24119
24119
|
log: e,
|
|
24120
24120
|
events: r
|
|
24121
24121
|
});
|
|
24122
24122
|
}
|
|
24123
24123
|
}
|
|
24124
|
-
class
|
|
24124
|
+
class Dp extends k {
|
|
24125
24125
|
/**
|
|
24126
24126
|
* @param address address of account to look up
|
|
24127
24127
|
*/
|
|
@@ -24134,13 +24134,13 @@ class Ap extends k {
|
|
|
24134
24134
|
`/cosmos/auth/v1beta1/module_accounts/${t}`,
|
|
24135
24135
|
e
|
|
24136
24136
|
);
|
|
24137
|
-
return
|
|
24137
|
+
return Et.fromData(r);
|
|
24138
24138
|
}
|
|
24139
24139
|
async parameters(t = {}) {
|
|
24140
24140
|
return this.c.get("/cosmos/auth/v1beta1/params", t).then(({ params: e }) => Eo.fromData(e));
|
|
24141
24141
|
}
|
|
24142
24142
|
}
|
|
24143
|
-
class
|
|
24143
|
+
class kp extends k {
|
|
24144
24144
|
/**
|
|
24145
24145
|
* Get the message authorization grants for a specific granter and grantee
|
|
24146
24146
|
*/
|
|
@@ -24176,7 +24176,7 @@ class Dp extends k {
|
|
|
24176
24176
|
]);
|
|
24177
24177
|
}
|
|
24178
24178
|
}
|
|
24179
|
-
class
|
|
24179
|
+
class xp extends k {
|
|
24180
24180
|
/**
|
|
24181
24181
|
* Look up the balance of an account by its address.
|
|
24182
24182
|
* @param address address of account to look up.
|
|
@@ -24212,7 +24212,7 @@ class kp extends k {
|
|
|
24212
24212
|
return this.c.get("/cosmos/bank/v1beta1/params", t).then(({ params: e }) => Oo.fromData(e));
|
|
24213
24213
|
}
|
|
24214
24214
|
}
|
|
24215
|
-
class
|
|
24215
|
+
class Mp extends k {
|
|
24216
24216
|
/**
|
|
24217
24217
|
* Gets a delegator's rewards.
|
|
24218
24218
|
* @param delegator delegator's account address
|
|
@@ -24301,7 +24301,7 @@ class xp extends k {
|
|
|
24301
24301
|
return this.c.get("/initia/distribution/v1/params", t).then(({ params: e }) => Ro.fromData(e));
|
|
24302
24302
|
}
|
|
24303
24303
|
}
|
|
24304
|
-
class
|
|
24304
|
+
class Sp extends k {
|
|
24305
24305
|
async evidences(t = {}) {
|
|
24306
24306
|
return this.c.get("/cosmos/evidence/v1beta1/evidence", t).then((e) => [e.evidence.map(ms.fromData), e.pagination]);
|
|
24307
24307
|
}
|
|
@@ -24309,7 +24309,7 @@ class Mp extends k {
|
|
|
24309
24309
|
return this.c.get(`/cosmos/evidence/v1beta1/evidence/${t}`, e).then((r) => ms.fromData(r.evidence));
|
|
24310
24310
|
}
|
|
24311
24311
|
}
|
|
24312
|
-
class
|
|
24312
|
+
class Ip extends k {
|
|
24313
24313
|
async code(t, e = {}) {
|
|
24314
24314
|
return this.c.get(`/minievm/evm/v1/codes/${t}`, e).then((r) => r.code);
|
|
24315
24315
|
}
|
|
@@ -24340,7 +24340,7 @@ class Sp extends k {
|
|
|
24340
24340
|
return this.c.get("/minievm/evm/v1/params", t).then(({ params: e }) => Fo.fromData(e));
|
|
24341
24341
|
}
|
|
24342
24342
|
}
|
|
24343
|
-
class
|
|
24343
|
+
class Np extends k {
|
|
24344
24344
|
async allowances(t, e = {}) {
|
|
24345
24345
|
return this.c.get(`/cosmos/feegrant/v1beta1/allowances/${t}`, e).then((r) => ({
|
|
24346
24346
|
allowances: r.allowances.map((o) => ({
|
|
@@ -24365,7 +24365,7 @@ class Ip extends k {
|
|
|
24365
24365
|
}));
|
|
24366
24366
|
}
|
|
24367
24367
|
}
|
|
24368
|
-
class
|
|
24368
|
+
class Up extends k {
|
|
24369
24369
|
async address(t, e, r = {}) {
|
|
24370
24370
|
return this.c.get(`/noble/forwarding/v1/address/${t}/${e}`, r).then((o) => o.address);
|
|
24371
24371
|
}
|
|
@@ -24380,19 +24380,19 @@ class Np extends k {
|
|
|
24380
24380
|
}));
|
|
24381
24381
|
}
|
|
24382
24382
|
}
|
|
24383
|
-
class
|
|
24383
|
+
class Cp extends k {
|
|
24384
24384
|
/**
|
|
24385
24385
|
* Gets all proposals.
|
|
24386
24386
|
*/
|
|
24387
24387
|
async proposals(t = {}) {
|
|
24388
|
-
return this.c.get("/initia/gov/v1/proposals", t).then((e) => [e.proposals.map(
|
|
24388
|
+
return this.c.get("/initia/gov/v1/proposals", t).then((e) => [e.proposals.map(Ot.fromData), e.pagination]);
|
|
24389
24389
|
}
|
|
24390
24390
|
/**
|
|
24391
24391
|
* Get a specific proposal by its ID
|
|
24392
24392
|
* @param proposalId proposal's ID
|
|
24393
24393
|
*/
|
|
24394
24394
|
async proposal(t, e = {}) {
|
|
24395
|
-
return this.c.get(`/initia/gov/v1/proposals/${t}`, e).then((r) =>
|
|
24395
|
+
return this.c.get(`/initia/gov/v1/proposals/${t}`, e).then((r) => Ot.fromData(r.proposal));
|
|
24396
24396
|
}
|
|
24397
24397
|
/**
|
|
24398
24398
|
* Get the deposits for a proposal
|
|
@@ -24424,12 +24424,12 @@ class Up extends k {
|
|
|
24424
24424
|
}
|
|
24425
24425
|
async emergencyProposals(t = {}) {
|
|
24426
24426
|
return this.c.get("/initia/gov/v1/emergency_proposals", t).then((e) => [
|
|
24427
|
-
e.proposals.map((r) =>
|
|
24427
|
+
e.proposals.map((r) => Ot.fromData(r)),
|
|
24428
24428
|
e.pagination
|
|
24429
24429
|
]);
|
|
24430
24430
|
}
|
|
24431
24431
|
}
|
|
24432
|
-
class
|
|
24432
|
+
class $p extends k {
|
|
24433
24433
|
async groupInfo(t) {
|
|
24434
24434
|
return this.c.get(`/cosmos/group/v1/group_info/${t}`).then((e) => vr.fromData(e.info));
|
|
24435
24435
|
}
|
|
@@ -24455,19 +24455,19 @@ class Cp extends k {
|
|
|
24455
24455
|
]);
|
|
24456
24456
|
}
|
|
24457
24457
|
async proposal(t) {
|
|
24458
|
-
return this.c.get(`/cosmos/group/v1/proposal/${t}`).then((e) =>
|
|
24458
|
+
return this.c.get(`/cosmos/group/v1/proposal/${t}`).then((e) => Ko.fromData(e.proposal));
|
|
24459
24459
|
}
|
|
24460
24460
|
async proposalsByGroupPolicy(t, e = {}) {
|
|
24461
|
-
return this.c.get(`/cosmos/group/v1/proposals_by_group_policy/${t}`, e).then((r) => [r.proposals.map(
|
|
24461
|
+
return this.c.get(`/cosmos/group/v1/proposals_by_group_policy/${t}`, e).then((r) => [r.proposals.map(Ko.fromData), r.pagination]);
|
|
24462
24462
|
}
|
|
24463
24463
|
async voteByProposalVoter(t, e) {
|
|
24464
|
-
return this.c.get(`/cosmos/group/v1/vote_by_proposal_voter/${t}/${e}`).then((r) =>
|
|
24464
|
+
return this.c.get(`/cosmos/group/v1/vote_by_proposal_voter/${t}/${e}`).then((r) => Tt.fromData(r.vote));
|
|
24465
24465
|
}
|
|
24466
24466
|
async votesByProposal(t, e = {}) {
|
|
24467
|
-
return this.c.get(`/cosmos/group/v1/votes_by_proposal/${t}`, e).then((r) => [r.votes.map(
|
|
24467
|
+
return this.c.get(`/cosmos/group/v1/votes_by_proposal/${t}`, e).then((r) => [r.votes.map(Tt.fromData), r.pagination]);
|
|
24468
24468
|
}
|
|
24469
24469
|
async votesByVoter(t, e = {}) {
|
|
24470
|
-
return this.c.get(`/cosmos/group/v1/votes_by_voter/${t}`, e).then((r) => [r.votes.map(
|
|
24470
|
+
return this.c.get(`/cosmos/group/v1/votes_by_voter/${t}`, e).then((r) => [r.votes.map(Tt.fromData), r.pagination]);
|
|
24471
24471
|
}
|
|
24472
24472
|
async groupsByMember(t, e = {}) {
|
|
24473
24473
|
return this.c.get(`/cosmos/group/v1/groups_by_member/${t}`, e).then((r) => [r.groups.map(vr.fromData), r.pagination]);
|
|
@@ -24479,7 +24479,7 @@ class Cp extends k {
|
|
|
24479
24479
|
return this.c.get("/cosmos/group/v1/groups", t).then((e) => [e.groups.map(vr.fromData), e.pagination]);
|
|
24480
24480
|
}
|
|
24481
24481
|
}
|
|
24482
|
-
class
|
|
24482
|
+
class Ep extends k {
|
|
24483
24483
|
/**
|
|
24484
24484
|
* query all the IBC channels of a chain
|
|
24485
24485
|
*/
|
|
@@ -24599,7 +24599,7 @@ class $p extends k {
|
|
|
24599
24599
|
);
|
|
24600
24600
|
}
|
|
24601
24601
|
}
|
|
24602
|
-
class
|
|
24602
|
+
class Bp extends k {
|
|
24603
24603
|
async acls(t = {}) {
|
|
24604
24604
|
return this.c.get("/initia/ibchooks/v1/acls", t).then((e) => [e.acls.map(Os.fromData), e.pagination]);
|
|
24605
24605
|
}
|
|
@@ -24607,10 +24607,10 @@ class Ep extends k {
|
|
|
24607
24607
|
return this.c.get(`/initia/ibchooks/v1/acls/${t}`, e).then((r) => Os.fromData(r.acl));
|
|
24608
24608
|
}
|
|
24609
24609
|
async parameters(t = {}) {
|
|
24610
|
-
return this.c.get("/initia/ibchooks/v1/params", t).then((e) =>
|
|
24610
|
+
return this.c.get("/initia/ibchooks/v1/params", t).then((e) => Vo.fromData(e.params));
|
|
24611
24611
|
}
|
|
24612
24612
|
}
|
|
24613
|
-
class
|
|
24613
|
+
class Op extends k {
|
|
24614
24614
|
/** Gets a classTrace for the hash */
|
|
24615
24615
|
async classTrace(t) {
|
|
24616
24616
|
return this.c.get(`/ibc/apps/nft_transfer/v1/class_traces/${t}`).then((e) => Ts.fromData(e.class_trace));
|
|
@@ -24637,7 +24637,7 @@ class Bp extends k {
|
|
|
24637
24637
|
).then((o) => o.escrow_address);
|
|
24638
24638
|
}
|
|
24639
24639
|
}
|
|
24640
|
-
class
|
|
24640
|
+
class Tp extends k {
|
|
24641
24641
|
/** Gets a denomTrace for the hash or denom */
|
|
24642
24642
|
async denomTrace(t) {
|
|
24643
24643
|
return this.c.get(`/ibc/apps/transfer/v1/denom_traces/${t}`).then((e) => Ns.fromData(e.denom_trace));
|
|
@@ -24667,7 +24667,7 @@ class Op extends k {
|
|
|
24667
24667
|
).then((o) => o.escrow_address);
|
|
24668
24668
|
}
|
|
24669
24669
|
}
|
|
24670
|
-
class
|
|
24670
|
+
class Rp extends k {
|
|
24671
24671
|
async channelStates(t = {}) {
|
|
24672
24672
|
return this.c.get("/ibc/apps/perm/v1/channel_states", t).then((e) => [e.channel_states, e.pagination]);
|
|
24673
24673
|
}
|
|
@@ -24675,14 +24675,14 @@ class Tp extends k {
|
|
|
24675
24675
|
return this.c.get(`/ibc/apps/perm/v1/channel_states/${t}/${e}`).then((r) => r.channel_state);
|
|
24676
24676
|
}
|
|
24677
24677
|
}
|
|
24678
|
-
class
|
|
24678
|
+
class Fp extends k {
|
|
24679
24679
|
async interchainAccount(t, e) {
|
|
24680
24680
|
return this.c.get(
|
|
24681
24681
|
`/inter-tx/interchain_account/owner/${t}/connection/${e}`
|
|
24682
24682
|
).then((r) => r.interchain_account_address);
|
|
24683
24683
|
}
|
|
24684
24684
|
}
|
|
24685
|
-
class
|
|
24685
|
+
class Lp extends k {
|
|
24686
24686
|
async marketMap(t = {}) {
|
|
24687
24687
|
return this.c.get("/connect/marketmap/v2/marketmap", t).then((e) => {
|
|
24688
24688
|
const r = {};
|
|
@@ -24705,7 +24705,7 @@ class Fp extends k {
|
|
|
24705
24705
|
return this.c.get("/connect/marketmap/v2/params", t).then((e) => Go.fromData(e.params));
|
|
24706
24706
|
}
|
|
24707
24707
|
}
|
|
24708
|
-
class
|
|
24708
|
+
class qp extends k {
|
|
24709
24709
|
async modules(t, e = {}) {
|
|
24710
24710
|
return this.c.get(`/initia/move/v1/accounts/${t}/modules`, e).then((r) => [
|
|
24711
24711
|
r.modules.map((o) => ({
|
|
@@ -24806,7 +24806,7 @@ class Lp extends k {
|
|
|
24806
24806
|
}).then((o) => o.table_entry);
|
|
24807
24807
|
}
|
|
24808
24808
|
}
|
|
24809
|
-
class
|
|
24809
|
+
class zp extends k {
|
|
24810
24810
|
/**
|
|
24811
24811
|
* Queries all delegations, filtering by delegator, validator, or both.
|
|
24812
24812
|
*
|
|
@@ -24944,7 +24944,7 @@ class qp extends k {
|
|
|
24944
24944
|
return this.c.get("/initia/mstaking/v1/params", t).then(({ params: e }) => jo.fromData(e));
|
|
24945
24945
|
}
|
|
24946
24946
|
}
|
|
24947
|
-
class
|
|
24947
|
+
class Kp extends k {
|
|
24948
24948
|
async validators(t = {}) {
|
|
24949
24949
|
return this.c.get("/opinit/opchild/v1/validators", t).then((e) => [e.validators.map(dn.fromData), e.pagination]);
|
|
24950
24950
|
}
|
|
@@ -25037,7 +25037,7 @@ class Vp extends k {
|
|
|
25037
25037
|
return this.c.get("/opinit/opchild/v1/params", t).then((e) => Jo.fromData(e.params));
|
|
25038
25038
|
}
|
|
25039
25039
|
}
|
|
25040
|
-
class
|
|
25040
|
+
class Hp extends k {
|
|
25041
25041
|
async currencyPairs(t = {}) {
|
|
25042
25042
|
return this.c.get("/connect/oracle/v2/get_all_tickers", t).then((e) => e.currency_pairs.map(j.fromData));
|
|
25043
25043
|
}
|
|
@@ -25048,7 +25048,7 @@ class Kp extends k {
|
|
|
25048
25048
|
}).then((r) => kn.fromData(r.price));
|
|
25049
25049
|
}
|
|
25050
25050
|
}
|
|
25051
|
-
class
|
|
25051
|
+
class Gp extends k {
|
|
25052
25052
|
/**
|
|
25053
25053
|
* Gets the last release rate dilution timestamp
|
|
25054
25054
|
*/
|
|
@@ -25068,7 +25068,7 @@ class Hp extends k {
|
|
|
25068
25068
|
return this.c.get("/initia/reward/v1/params", t).then(({ params: e }) => Yo.fromData(e));
|
|
25069
25069
|
}
|
|
25070
25070
|
}
|
|
25071
|
-
class
|
|
25071
|
+
class Wp extends k {
|
|
25072
25072
|
async signingInfo(t, e = {}) {
|
|
25073
25073
|
return this.c.get(`/cosmos/slashing/v1beta1/signing_infos/${t}`, e).then(({ val_signing_info: r }) => ({
|
|
25074
25074
|
address: r.address,
|
|
@@ -25098,7 +25098,7 @@ class Gp extends k {
|
|
|
25098
25098
|
return this.c.get("/cosmos/slashing/v1beta1/params", t).then(({ params: e }) => Zo.fromData(e));
|
|
25099
25099
|
}
|
|
25100
25100
|
}
|
|
25101
|
-
class
|
|
25101
|
+
class jp extends k {
|
|
25102
25102
|
/**
|
|
25103
25103
|
* Gets the node's information.
|
|
25104
25104
|
*/
|
|
@@ -25137,7 +25137,7 @@ class Wp extends k {
|
|
|
25137
25137
|
return this.c.getRaw(r, e);
|
|
25138
25138
|
}
|
|
25139
25139
|
}
|
|
25140
|
-
class
|
|
25140
|
+
class Jp extends k {
|
|
25141
25141
|
async authorityMetadata(t, e = {}) {
|
|
25142
25142
|
return this.c.get(`/miniwasm/tokenfactory/v1/denoms/${t}/authority_metadata`, e).then((r) => r.authority_metadata);
|
|
25143
25143
|
}
|
|
@@ -25158,7 +25158,7 @@ const hu = (i) => ct.bytes(32, i).transform({
|
|
|
25158
25158
|
return Buffer.from(t, "hex");
|
|
25159
25159
|
},
|
|
25160
25160
|
output: (t) => `0x${Buffer.from(t).toString("hex")}`
|
|
25161
|
-
}),
|
|
25161
|
+
}), Qp = {
|
|
25162
25162
|
/**
|
|
25163
25163
|
* Creates a BcsType that can be used to read and write an address.
|
|
25164
25164
|
* @example
|
|
@@ -25235,7 +25235,7 @@ const hu = (i) => ct.bytes(32, i).transform({
|
|
|
25235
25235
|
})
|
|
25236
25236
|
}, Mg = {
|
|
25237
25237
|
...ct,
|
|
25238
|
-
...
|
|
25238
|
+
...Qp
|
|
25239
25239
|
};
|
|
25240
25240
|
function fu(i) {
|
|
25241
25241
|
const t = [];
|
|
@@ -25268,7 +25268,7 @@ class qm {
|
|
|
25268
25268
|
}
|
|
25269
25269
|
class Mn extends k {
|
|
25270
25270
|
constructor(t) {
|
|
25271
|
-
super(t.apiRequester), this.
|
|
25271
|
+
super(t.apiRequester), this.rest = t;
|
|
25272
25272
|
}
|
|
25273
25273
|
/**
|
|
25274
25274
|
* Looks up a transaction on the blockchain, addressed by its hash
|
|
@@ -25293,7 +25293,7 @@ class Mn extends k {
|
|
|
25293
25293
|
for (const c of t) {
|
|
25294
25294
|
let d = c.sequenceNumber, h = c.publicKey;
|
|
25295
25295
|
if (d === void 0 || !h) {
|
|
25296
|
-
const g = await this.
|
|
25296
|
+
const g = await this.rest.auth.accountInfo(c.address);
|
|
25297
25297
|
d === void 0 && (d = g.getSequenceNumber()), h || (h = g.getPublicKey());
|
|
25298
25298
|
}
|
|
25299
25299
|
a.push({
|
|
@@ -25301,7 +25301,7 @@ class Mn extends k {
|
|
|
25301
25301
|
publicKey: h
|
|
25302
25302
|
});
|
|
25303
25303
|
}
|
|
25304
|
-
return r === void 0 && (r = await this.
|
|
25304
|
+
return r === void 0 && (r = await this.rest.tx.estimateFee(a, e)), new V(
|
|
25305
25305
|
new To(o, s ?? "", n ?? 0),
|
|
25306
25306
|
new xt([], r),
|
|
25307
25307
|
[]
|
|
@@ -25313,7 +25313,7 @@ class Mn extends k {
|
|
|
25313
25313
|
* @param height block height
|
|
25314
25314
|
*/
|
|
25315
25315
|
async txInfosByHeight(t) {
|
|
25316
|
-
const e = await this.
|
|
25316
|
+
const e = await this.rest.tendermint.blockInfo(t), { txs: r } = e.block.data;
|
|
25317
25317
|
if (r) {
|
|
25318
25318
|
const o = r.map((n) => $m(n)), s = [];
|
|
25319
25319
|
for (const n of o)
|
|
@@ -25329,7 +25329,7 @@ class Mn extends k {
|
|
|
25329
25329
|
* @param options options for fee estimation
|
|
25330
25330
|
*/
|
|
25331
25331
|
async estimateFee(t, e) {
|
|
25332
|
-
const r = e.gasPrices ?? this.
|
|
25332
|
+
const r = e.gasPrices ?? this.rest.config.gasPrices, o = e.gasAdjustment ?? this.rest.config.gasAdjustment, s = e.feeDenoms ?? ["uinit"];
|
|
25333
25333
|
let n = e.gas, a;
|
|
25334
25334
|
if (r && (a = new u(r), s)) {
|
|
25335
25335
|
const _ = a.filter(
|
|
@@ -25337,19 +25337,19 @@ class Mn extends k {
|
|
|
25337
25337
|
);
|
|
25338
25338
|
_.toArray().length > 0 && (a = _);
|
|
25339
25339
|
}
|
|
25340
|
-
const c = new To(e.msgs, e.memo ?? ""), d = new xt([], new kt(0, new u())), h = new
|
|
25340
|
+
const c = new To(e.msgs, e.memo ?? ""), d = new xt([], new kt(0, new u())), h = new V(c, d, []);
|
|
25341
25341
|
h.appendEmptySignatures(t), (!n || n === "auto" || n === "0") && (n = await this.estimateGas(h, { gasAdjustment: o }));
|
|
25342
25342
|
const g = a ? a.mul(n).toIntCeilCoins() : "0uinit";
|
|
25343
25343
|
return new kt(Number.parseInt(n), g, "", "");
|
|
25344
25344
|
}
|
|
25345
25345
|
async estimateGas(t, e) {
|
|
25346
|
-
const r = (e == null ? void 0 : e.gasAdjustment) ?? this.
|
|
25346
|
+
const r = (e == null ? void 0 : e.gasAdjustment) ?? this.rest.config.gasAdjustment;
|
|
25347
25347
|
let o = t;
|
|
25348
25348
|
if (t.signatures.length <= 0) {
|
|
25349
25349
|
if (!(e && e.signers && e.signers.length > 0))
|
|
25350
25350
|
throw new Error("cannot append signature");
|
|
25351
25351
|
const n = new xt([], new kt(0, new u()));
|
|
25352
|
-
o = new
|
|
25352
|
+
o = new V(t.body, n, []), o.appendEmptySignatures(e.signers);
|
|
25353
25353
|
}
|
|
25354
25354
|
const s = await this.c.post("/cosmos/tx/v1beta1/simulate", {
|
|
25355
25355
|
tx_bytes: Mn.encode(o)
|
|
@@ -25368,7 +25368,7 @@ class Mn extends k {
|
|
|
25368
25368
|
* @param tx transaction string to decode
|
|
25369
25369
|
*/
|
|
25370
25370
|
static decode(t) {
|
|
25371
|
-
return
|
|
25371
|
+
return V.fromBuffer(Buffer.from(t, "base64"));
|
|
25372
25372
|
}
|
|
25373
25373
|
/**
|
|
25374
25374
|
* Get the transaction's hash
|
|
@@ -25379,7 +25379,7 @@ class Mn extends k {
|
|
|
25379
25379
|
return $m(e);
|
|
25380
25380
|
}
|
|
25381
25381
|
async _broadcast(t, e) {
|
|
25382
|
-
const r = t instanceof
|
|
25382
|
+
const r = t instanceof V ? Mn.encode(t) : t;
|
|
25383
25383
|
return await this.c.post("/cosmos/tx/v1beta1/txs", {
|
|
25384
25384
|
tx_bytes: r,
|
|
25385
25385
|
mode: e
|
|
@@ -25511,7 +25511,7 @@ class Mn extends k {
|
|
|
25511
25511
|
return s;
|
|
25512
25512
|
}
|
|
25513
25513
|
}
|
|
25514
|
-
class
|
|
25514
|
+
class Yp extends k {
|
|
25515
25515
|
/**
|
|
25516
25516
|
* queries a previously applied upgrade plan by its name.
|
|
25517
25517
|
* it returns the height of the plan. if there's no plan with given name, it returns 0.
|
|
@@ -25534,7 +25534,7 @@ class Qp extends k {
|
|
|
25534
25534
|
);
|
|
25535
25535
|
}
|
|
25536
25536
|
}
|
|
25537
|
-
class
|
|
25537
|
+
class Zp extends k {
|
|
25538
25538
|
async contractInfo(t, e = {}) {
|
|
25539
25539
|
return this.c.get(`/cosmwasm/wasm/v1/contract/${t}`, e).then((r) => ({
|
|
25540
25540
|
code_id: Number.parseInt(r.contract_info.code_id),
|
|
@@ -25549,7 +25549,7 @@ class Yp extends k {
|
|
|
25549
25549
|
async contractHistory(t, e = {}) {
|
|
25550
25550
|
return this.c.get(`/cosmwasm/wasm/v1/contract/${t}/history`, e).then((r) => [
|
|
25551
25551
|
r.entries.map((o) => ({
|
|
25552
|
-
operation:
|
|
25552
|
+
operation: fd(o.operation),
|
|
25553
25553
|
code_id: Number.parseInt(o.code_id),
|
|
25554
25554
|
updated: ks.fromData(o.updated),
|
|
25555
25555
|
msg: o.msg
|
|
@@ -25605,28 +25605,28 @@ class Yp extends k {
|
|
|
25605
25605
|
return this.c.get(`/cosmwasm/wasm/v1/contracts/creator/${t}`, e).then((r) => [r.contract_addresses, r.pagination]);
|
|
25606
25606
|
}
|
|
25607
25607
|
}
|
|
25608
|
-
class
|
|
25608
|
+
class Xp {
|
|
25609
25609
|
constructor(t, e) {
|
|
25610
25610
|
p(this, "accAddress");
|
|
25611
|
-
this.
|
|
25611
|
+
this.rest = t, this.key = e, this.accAddress = e.accAddress;
|
|
25612
25612
|
}
|
|
25613
25613
|
setAccountAddress(t) {
|
|
25614
25614
|
this.accAddress = t;
|
|
25615
25615
|
}
|
|
25616
25616
|
async accountNumberAndSequence() {
|
|
25617
|
-
return this.
|
|
25617
|
+
return this.rest.auth.accountInfo(this.accAddress).then((t) => ({
|
|
25618
25618
|
account_number: t.getAccountNumber(),
|
|
25619
25619
|
sequence: t.getSequenceNumber()
|
|
25620
25620
|
}));
|
|
25621
25621
|
}
|
|
25622
25622
|
async accountNumber() {
|
|
25623
|
-
return this.
|
|
25623
|
+
return this.rest.auth.accountInfo(this.accAddress).then((t) => t.getAccountNumber());
|
|
25624
25624
|
}
|
|
25625
25625
|
async sequence() {
|
|
25626
|
-
return this.
|
|
25626
|
+
return this.rest.auth.accountInfo(this.accAddress).then((t) => t.getSequenceNumber());
|
|
25627
25627
|
}
|
|
25628
25628
|
async createTx(t) {
|
|
25629
|
-
return this.
|
|
25629
|
+
return this.rest.tx.create(
|
|
25630
25630
|
[
|
|
25631
25631
|
{
|
|
25632
25632
|
address: this.accAddress,
|
|
@@ -25638,7 +25638,7 @@ class Zp {
|
|
|
25638
25638
|
);
|
|
25639
25639
|
}
|
|
25640
25640
|
async createAndSignTx(t) {
|
|
25641
|
-
this.
|
|
25641
|
+
this.rest.config.chainId || (this.rest.config.chainId = await this.rest.tendermint.chainId());
|
|
25642
25642
|
let e = t.accountNumber, r = t.sequence;
|
|
25643
25643
|
if (e === void 0 || r === void 0) {
|
|
25644
25644
|
const s = await this.accountNumberAndSequence();
|
|
@@ -25649,23 +25649,23 @@ class Zp {
|
|
|
25649
25649
|
return this.key.signTx(o, {
|
|
25650
25650
|
accountNumber: e,
|
|
25651
25651
|
sequence: r,
|
|
25652
|
-
chainId: this.
|
|
25652
|
+
chainId: this.rest.config.chainId,
|
|
25653
25653
|
signMode: t.signMode ?? mt.SIGN_MODE_DIRECT
|
|
25654
25654
|
});
|
|
25655
25655
|
}
|
|
25656
25656
|
}
|
|
25657
|
-
const
|
|
25657
|
+
const th = {
|
|
25658
25658
|
gasAdjustment: "1.75"
|
|
25659
25659
|
}, _u = {
|
|
25660
25660
|
default: {
|
|
25661
25661
|
uinit: 0.15
|
|
25662
25662
|
}
|
|
25663
25663
|
};
|
|
25664
|
-
class
|
|
25664
|
+
class Cu {
|
|
25665
25665
|
/**
|
|
25666
|
-
* Creates a new
|
|
25666
|
+
* Creates a new REST client with the specified configuration.
|
|
25667
25667
|
*
|
|
25668
|
-
* @param config
|
|
25668
|
+
* @param config REST configuration
|
|
25669
25669
|
*/
|
|
25670
25670
|
constructor(t, e, r) {
|
|
25671
25671
|
p(this, "URL");
|
|
@@ -25703,17 +25703,19 @@ class th {
|
|
|
25703
25703
|
p(this, "upgrade");
|
|
25704
25704
|
p(this, "wasm");
|
|
25705
25705
|
this.URL = t, this.config = {
|
|
25706
|
-
...
|
|
25706
|
+
...th,
|
|
25707
25707
|
gasPrices: ((e == null ? void 0 : e.chainId) && _u[e.chainId]) ?? _u.default,
|
|
25708
25708
|
...e
|
|
25709
|
-
}, this.apiRequester = r ?? new
|
|
25709
|
+
}, this.apiRequester = r ?? new gp(this.URL), this.auction = new yp(this.apiRequester), this.auth = new Dp(this.apiRequester), this.authz = new kp(this.apiRequester), this.bank = new xp(this.apiRequester), this.distribution = new Mp(this.apiRequester), this.evidence = new Sp(this.apiRequester), this.evm = new Ip(this.apiRequester), this.feeGrant = new Np(this.apiRequester), this.forwarding = new Up(this.apiRequester), this.gov = new Cp(this.apiRequester), this.group = new $p(this.apiRequester), this.ibc = new Ep(this.apiRequester), this.ibcHooks = new Bp(this.apiRequester), this.ibcNft = new Op(this.apiRequester), this.ibcTransfer = new Tp(this.apiRequester), this.ibcPerm = new Rp(this.apiRequester), this.interTx = new Fp(this.apiRequester), this.marketmap = new Lp(this.apiRequester), this.move = new qp(this.apiRequester), this.mstaking = new zp(this.apiRequester), this.opchild = new Kp(this.apiRequester), this.ophost = new Vp(this.apiRequester), this.oracle = new Hp(this.apiRequester), this.reward = new Gp(this.apiRequester), this.slashing = new Wp(this.apiRequester), this.tendermint = new jp(this.apiRequester), this.tokenfactory = new Jp(this.apiRequester), this.tx = new Mn(this), this.upgrade = new Yp(this.apiRequester), this.wasm = new Zp(this.apiRequester);
|
|
25710
25710
|
}
|
|
25711
25711
|
/** Creates a new wallet with the Key. */
|
|
25712
25712
|
wallet(t) {
|
|
25713
|
-
return new
|
|
25713
|
+
return new Xp(this, t);
|
|
25714
25714
|
}
|
|
25715
25715
|
}
|
|
25716
|
-
class Cu {
|
|
25716
|
+
class Ig extends Cu {
|
|
25717
|
+
}
|
|
25718
|
+
class $u {
|
|
25717
25719
|
/**
|
|
25718
25720
|
* Called to derive the relevant account and validator addresses and public keys from
|
|
25719
25721
|
* the raw compressed public key in bytes.
|
|
@@ -25827,7 +25829,7 @@ class Cu {
|
|
|
25827
25829
|
* @param tx
|
|
25828
25830
|
*/
|
|
25829
25831
|
async signTx(t, e) {
|
|
25830
|
-
const r = new
|
|
25832
|
+
const r = new V(t.body, new xt([], t.auth_info.fee), []), o = new Ap(
|
|
25831
25833
|
e.chainId,
|
|
25832
25834
|
e.accountNumber,
|
|
25833
25835
|
e.sequence,
|
|
@@ -25854,18 +25856,18 @@ class Cu {
|
|
|
25854
25856
|
), r;
|
|
25855
25857
|
}
|
|
25856
25858
|
}
|
|
25857
|
-
class zm extends
|
|
25858
|
-
constructor(e) {
|
|
25859
|
-
|
|
25859
|
+
class zm extends $u {
|
|
25860
|
+
constructor(e, r = !1) {
|
|
25861
|
+
var t = (...Fg) => (super(...Fg), /**
|
|
25862
|
+
* Raw private key, in bytes.
|
|
25863
|
+
*/
|
|
25864
|
+
p(this, "privateKey"), this);
|
|
25865
|
+
var o = (...n) => (t(...n), this.eth = r, this);
|
|
25866
|
+
const s = _n.publicKeyCreate(
|
|
25860
25867
|
new Uint8Array(e),
|
|
25861
25868
|
!0
|
|
25862
25869
|
);
|
|
25863
|
-
|
|
25864
|
-
/**
|
|
25865
|
-
* Raw private key, in bytes.
|
|
25866
|
-
*/
|
|
25867
|
-
p(this, "privateKey");
|
|
25868
|
-
this.privateKey = e;
|
|
25870
|
+
o(r ? new $t(Buffer.from(s).toString("base64")) : new q(Buffer.from(s).toString("base64"))), this.privateKey = e;
|
|
25869
25871
|
}
|
|
25870
25872
|
static fromHex(e) {
|
|
25871
25873
|
const r = e.startsWith("0x") ? e.slice(2) : e;
|
|
@@ -25874,8 +25876,9 @@ class zm extends Cu {
|
|
|
25874
25876
|
}
|
|
25875
25877
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
25876
25878
|
async sign(e) {
|
|
25879
|
+
if (this.eth) return this.signWithKeccak256(e);
|
|
25877
25880
|
const r = Buffer.from(
|
|
25878
|
-
|
|
25881
|
+
od.hash(new Fm(e)).toString(),
|
|
25879
25882
|
"hex"
|
|
25880
25883
|
), { signature: o } = _n.ecdsaSign(
|
|
25881
25884
|
Uint8Array.from(r),
|
|
@@ -25892,10 +25895,11 @@ class zm extends Cu {
|
|
|
25892
25895
|
return Buffer.from(o);
|
|
25893
25896
|
}
|
|
25894
25897
|
}
|
|
25895
|
-
const
|
|
25898
|
+
const Eu = 118, eh = {
|
|
25896
25899
|
account: 0,
|
|
25897
25900
|
index: 0,
|
|
25898
|
-
coinType:
|
|
25901
|
+
coinType: Eu,
|
|
25902
|
+
eth: !1
|
|
25899
25903
|
};
|
|
25900
25904
|
class et extends zm {
|
|
25901
25905
|
/**
|
|
@@ -25921,21 +25925,21 @@ class et extends zm {
|
|
|
25921
25925
|
* @param options
|
|
25922
25926
|
*/
|
|
25923
25927
|
constructor(e = {}) {
|
|
25924
|
-
const { account: r, index: o, coinType: s } = {
|
|
25928
|
+
const { account: r, index: o, coinType: s, eth: n } = {
|
|
25925
25929
|
...eh,
|
|
25926
25930
|
...e
|
|
25927
25931
|
};
|
|
25928
|
-
let { mnemonic:
|
|
25929
|
-
|
|
25930
|
-
const
|
|
25931
|
-
if (!
|
|
25932
|
+
let { mnemonic: a } = e;
|
|
25933
|
+
a === void 0 && (a = cu.generateMnemonic(256));
|
|
25934
|
+
const c = cu.mnemonicToSeedSync(a), d = lp.fromSeed(c), h = `m/44'/${s}'/${r}'/0/${o}`, _ = d.derivePath(h).privateKey;
|
|
25935
|
+
if (!_)
|
|
25932
25936
|
throw new Error("Failed to derive key pair");
|
|
25933
|
-
super(
|
|
25937
|
+
super(_, n);
|
|
25934
25938
|
/**
|
|
25935
25939
|
* Space-separated mnemonic phrase.
|
|
25936
25940
|
*/
|
|
25937
25941
|
p(this, "mnemonic");
|
|
25938
|
-
this.mnemonic =
|
|
25942
|
+
this.mnemonic = a;
|
|
25939
25943
|
}
|
|
25940
25944
|
}
|
|
25941
25945
|
const rt = {
|
|
@@ -25951,7 +25955,7 @@ const rt = {
|
|
|
25951
25955
|
test9: "primary scale invite wife carpet roast blouse utility lyrics tank marriage science problem salmon minor grocery there ladder noise never gather aerobic neglect rigid",
|
|
25952
25956
|
test10: "forum shiver flush artefact analyst undo hundred mixed diamond mushroom submit city march crater fatigue deal host asthma reopen barrel virtual accuse crime dune"
|
|
25953
25957
|
};
|
|
25954
|
-
class
|
|
25958
|
+
class Ng extends Cu {
|
|
25955
25959
|
constructor() {
|
|
25956
25960
|
super("http://localhost:1317", { chainId: "local-initia" });
|
|
25957
25961
|
p(this, "wallets");
|
|
@@ -25992,7 +25996,7 @@ class Ig extends th {
|
|
|
25992
25996
|
};
|
|
25993
25997
|
}
|
|
25994
25998
|
}
|
|
25995
|
-
var
|
|
25999
|
+
var Km = { exports: {} }, ln = typeof Reflect == "object" ? Reflect : null, yu = ln && typeof ln.apply == "function" ? ln.apply : function(t, e, r) {
|
|
25996
26000
|
return Function.prototype.apply.call(t, e, r);
|
|
25997
26001
|
}, Fn;
|
|
25998
26002
|
ln && typeof ln.ownKeys == "function" ? Fn = ln.ownKeys : Object.getOwnPropertySymbols ? Fn = function(t) {
|
|
@@ -26003,14 +26007,14 @@ ln && typeof ln.ownKeys == "function" ? Fn = ln.ownKeys : Object.getOwnPropertyS
|
|
|
26003
26007
|
function rh(i) {
|
|
26004
26008
|
console && console.warn && console.warn(i);
|
|
26005
26009
|
}
|
|
26006
|
-
var
|
|
26010
|
+
var Bu = Number.isNaN || function(t) {
|
|
26007
26011
|
return t !== t;
|
|
26008
26012
|
};
|
|
26009
26013
|
function S() {
|
|
26010
26014
|
S.init.call(this);
|
|
26011
26015
|
}
|
|
26012
|
-
|
|
26013
|
-
|
|
26016
|
+
Km.exports = S;
|
|
26017
|
+
Km.exports.once = ah;
|
|
26014
26018
|
S.EventEmitter = S;
|
|
26015
26019
|
S.prototype._events = void 0;
|
|
26016
26020
|
S.prototype._eventsCount = 0;
|
|
@@ -26026,7 +26030,7 @@ Object.defineProperty(S, "defaultMaxListeners", {
|
|
|
26026
26030
|
return vu;
|
|
26027
26031
|
},
|
|
26028
26032
|
set: function(i) {
|
|
26029
|
-
if (typeof i != "number" || i < 0 ||
|
|
26033
|
+
if (typeof i != "number" || i < 0 || Bu(i))
|
|
26030
26034
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + i + ".");
|
|
26031
26035
|
vu = i;
|
|
26032
26036
|
}
|
|
@@ -26035,15 +26039,15 @@ S.init = function() {
|
|
|
26035
26039
|
(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;
|
|
26036
26040
|
};
|
|
26037
26041
|
S.prototype.setMaxListeners = function(t) {
|
|
26038
|
-
if (typeof t != "number" || t < 0 ||
|
|
26042
|
+
if (typeof t != "number" || t < 0 || Bu(t))
|
|
26039
26043
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
26040
26044
|
return this._maxListeners = t, this;
|
|
26041
26045
|
};
|
|
26042
|
-
function
|
|
26046
|
+
function Ou(i) {
|
|
26043
26047
|
return i._maxListeners === void 0 ? S.defaultMaxListeners : i._maxListeners;
|
|
26044
26048
|
}
|
|
26045
26049
|
S.prototype.getMaxListeners = function() {
|
|
26046
|
-
return
|
|
26050
|
+
return Ou(this);
|
|
26047
26051
|
};
|
|
26048
26052
|
S.prototype.emit = function(t) {
|
|
26049
26053
|
for (var e = [], r = 1; r < arguments.length; r++) e.push(arguments[r]);
|
|
@@ -26065,11 +26069,11 @@ S.prototype.emit = function(t) {
|
|
|
26065
26069
|
if (typeof c == "function")
|
|
26066
26070
|
yu(c, this, e);
|
|
26067
26071
|
else
|
|
26068
|
-
for (var d = c.length, h =
|
|
26072
|
+
for (var d = c.length, h = qu(c, d), r = 0; r < d; ++r)
|
|
26069
26073
|
yu(h[r], this, e);
|
|
26070
26074
|
return !0;
|
|
26071
26075
|
};
|
|
26072
|
-
function
|
|
26076
|
+
function Tu(i, t, e, r) {
|
|
26073
26077
|
var o, s, n;
|
|
26074
26078
|
if (Jn(e), s = i._events, s === void 0 ? (s = i._events = /* @__PURE__ */ Object.create(null), i._eventsCount = 0) : (s.newListener !== void 0 && (i.emit(
|
|
26075
26079
|
"newListener",
|
|
@@ -26077,7 +26081,7 @@ function Ou(i, t, e, r) {
|
|
|
26077
26081
|
e.listener ? e.listener : e
|
|
26078
26082
|
), s = i._events), n = s[t]), n === void 0)
|
|
26079
26083
|
n = s[t] = e, ++i._eventsCount;
|
|
26080
|
-
else if (typeof n == "function" ? n = s[t] = r ? [e, n] : [n, e] : r ? n.unshift(e) : n.push(e), o =
|
|
26084
|
+
else if (typeof n == "function" ? n = s[t] = r ? [e, n] : [n, e] : r ? n.unshift(e) : n.push(e), o = Ou(i), o > 0 && n.length > o && !n.warned) {
|
|
26081
26085
|
n.warned = !0;
|
|
26082
26086
|
var a = new Error("Possible EventEmitter memory leak detected. " + n.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
26083
26087
|
a.name = "MaxListenersExceededWarning", a.emitter = i, a.type = t, a.count = n.length, rh(a);
|
|
@@ -26085,25 +26089,25 @@ function Ou(i, t, e, r) {
|
|
|
26085
26089
|
return i;
|
|
26086
26090
|
}
|
|
26087
26091
|
S.prototype.addListener = function(t, e) {
|
|
26088
|
-
return
|
|
26092
|
+
return Tu(this, t, e, !1);
|
|
26089
26093
|
};
|
|
26090
26094
|
S.prototype.on = S.prototype.addListener;
|
|
26091
26095
|
S.prototype.prependListener = function(t, e) {
|
|
26092
|
-
return
|
|
26096
|
+
return Tu(this, t, e, !0);
|
|
26093
26097
|
};
|
|
26094
26098
|
function oh() {
|
|
26095
26099
|
if (!this.fired)
|
|
26096
26100
|
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);
|
|
26097
26101
|
}
|
|
26098
|
-
function
|
|
26102
|
+
function Ru(i, t, e) {
|
|
26099
26103
|
var r = { fired: !1, wrapFn: void 0, target: i, type: t, listener: e }, o = oh.bind(r);
|
|
26100
26104
|
return o.listener = e, r.wrapFn = o, o;
|
|
26101
26105
|
}
|
|
26102
26106
|
S.prototype.once = function(t, e) {
|
|
26103
|
-
return Jn(e), this.on(t,
|
|
26107
|
+
return Jn(e), this.on(t, Ru(this, t, e)), this;
|
|
26104
26108
|
};
|
|
26105
26109
|
S.prototype.prependOnceListener = function(t, e) {
|
|
26106
|
-
return Jn(e), this.prependListener(t,
|
|
26110
|
+
return Jn(e), this.prependListener(t, Ru(this, t, e)), this;
|
|
26107
26111
|
};
|
|
26108
26112
|
S.prototype.removeListener = function(t, e) {
|
|
26109
26113
|
var r, o, s, n, a;
|
|
@@ -26145,24 +26149,24 @@ S.prototype.removeAllListeners = function(t) {
|
|
|
26145
26149
|
this.removeListener(t, e[o]);
|
|
26146
26150
|
return this;
|
|
26147
26151
|
};
|
|
26148
|
-
function
|
|
26152
|
+
function Fu(i, t, e) {
|
|
26149
26153
|
var r = i._events;
|
|
26150
26154
|
if (r === void 0)
|
|
26151
26155
|
return [];
|
|
26152
26156
|
var o = r[t];
|
|
26153
|
-
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? nh(o) :
|
|
26157
|
+
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? nh(o) : qu(o, o.length);
|
|
26154
26158
|
}
|
|
26155
26159
|
S.prototype.listeners = function(t) {
|
|
26156
|
-
return
|
|
26160
|
+
return Fu(this, t, !0);
|
|
26157
26161
|
};
|
|
26158
26162
|
S.prototype.rawListeners = function(t) {
|
|
26159
|
-
return
|
|
26163
|
+
return Fu(this, t, !1);
|
|
26160
26164
|
};
|
|
26161
26165
|
S.listenerCount = function(i, t) {
|
|
26162
|
-
return typeof i.listenerCount == "function" ? i.listenerCount(t) :
|
|
26166
|
+
return typeof i.listenerCount == "function" ? i.listenerCount(t) : Lu.call(i, t);
|
|
26163
26167
|
};
|
|
26164
|
-
S.prototype.listenerCount =
|
|
26165
|
-
function
|
|
26168
|
+
S.prototype.listenerCount = Lu;
|
|
26169
|
+
function Lu(i) {
|
|
26166
26170
|
var t = this._events;
|
|
26167
26171
|
if (t !== void 0) {
|
|
26168
26172
|
var e = t[i];
|
|
@@ -26176,7 +26180,7 @@ function Fu(i) {
|
|
|
26176
26180
|
S.prototype.eventNames = function() {
|
|
26177
26181
|
return this._eventsCount > 0 ? Fn(this._events) : [];
|
|
26178
26182
|
};
|
|
26179
|
-
function
|
|
26183
|
+
function qu(i, t) {
|
|
26180
26184
|
for (var e = new Array(t), r = 0; r < t; ++r)
|
|
26181
26185
|
e[r] = i[r];
|
|
26182
26186
|
return e;
|
|
@@ -26199,13 +26203,13 @@ function ah(i, t) {
|
|
|
26199
26203
|
function s() {
|
|
26200
26204
|
typeof i.removeListener == "function" && i.removeListener("error", o), e([].slice.call(arguments));
|
|
26201
26205
|
}
|
|
26202
|
-
|
|
26206
|
+
zu(i, t, s, { once: !0 }), t !== "error" && ih(i, o, { once: !0 });
|
|
26203
26207
|
});
|
|
26204
26208
|
}
|
|
26205
26209
|
function ih(i, t, e) {
|
|
26206
|
-
typeof i.on == "function" &&
|
|
26210
|
+
typeof i.on == "function" && zu(i, "error", t, e);
|
|
26207
26211
|
}
|
|
26208
|
-
function
|
|
26212
|
+
function zu(i, t, e, r) {
|
|
26209
26213
|
if (typeof i.on == "function")
|
|
26210
26214
|
r.once ? i.once(t, e) : i.on(t, e);
|
|
26211
26215
|
else if (typeof i.addEventListener == "function")
|
|
@@ -26215,7 +26219,7 @@ function qu(i, t, e, r) {
|
|
|
26215
26219
|
else
|
|
26216
26220
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof i);
|
|
26217
26221
|
}
|
|
26218
|
-
var ch =
|
|
26222
|
+
var ch = Km.exports;
|
|
26219
26223
|
const bu = (i) => i.replace(/'/g, "\\'");
|
|
26220
26224
|
function mh(i) {
|
|
26221
26225
|
const t = [];
|
|
@@ -26252,7 +26256,7 @@ function mh(i) {
|
|
|
26252
26256
|
}
|
|
26253
26257
|
return t.join(" AND ");
|
|
26254
26258
|
}
|
|
26255
|
-
class
|
|
26259
|
+
class Ug extends ch.EventEmitter {
|
|
26256
26260
|
/**
|
|
26257
26261
|
* WebSocketClient constructor
|
|
26258
26262
|
* @param URL The WebSocket endpoint URL on the Tendermint RPC server.
|
|
@@ -26278,7 +26282,7 @@ class Ng extends ch.EventEmitter {
|
|
|
26278
26282
|
this.shouldAttemptReconnect = !1, this.reconnectTimeoutId && clearTimeout(this.reconnectTimeoutId), this.socket && this.socket.close();
|
|
26279
26283
|
}
|
|
26280
26284
|
start() {
|
|
26281
|
-
this.socket = new
|
|
26285
|
+
this.socket = new pp(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 = () => {
|
|
26282
26286
|
};
|
|
26283
26287
|
}
|
|
26284
26288
|
onOpen() {
|
|
@@ -26323,7 +26327,7 @@ class Ng extends ch.EventEmitter {
|
|
|
26323
26327
|
this.subscribe("Tx", e, o);
|
|
26324
26328
|
}
|
|
26325
26329
|
}
|
|
26326
|
-
const Un = 85, wu = 250,
|
|
26330
|
+
const Un = 85, wu = 250, Cg = "CSM", Cn = {
|
|
26327
26331
|
GET_VERSION: 0,
|
|
26328
26332
|
INS_PUBLIC_KEY_SECP256K1: 1,
|
|
26329
26333
|
// Obsolete
|
|
@@ -26333,7 +26337,7 @@ const Un = 85, wu = 250, Ug = "CSM", Cn = {
|
|
|
26333
26337
|
INIT: 0,
|
|
26334
26338
|
ADD: 1,
|
|
26335
26339
|
LAST: 2
|
|
26336
|
-
},
|
|
26340
|
+
}, Ku = {
|
|
26337
26341
|
ONLY_RETRIEVE: 0,
|
|
26338
26342
|
SHOW_ADDRESS_IN_DEVICE: 1
|
|
26339
26343
|
}, fn = {
|
|
@@ -26498,7 +26502,7 @@ async function hh(i, t) {
|
|
|
26498
26502
|
}).catch(ts);
|
|
26499
26503
|
}
|
|
26500
26504
|
async function fh(i, t) {
|
|
26501
|
-
return i.send(Un, Cn.GET_ADDR_SECP256K1,
|
|
26505
|
+
return i.send(Un, Cn.GET_ADDR_SECP256K1, Ku.ONLY_RETRIEVE, 0, t, [
|
|
26502
26506
|
fn.NoError
|
|
26503
26507
|
]).then((e) => {
|
|
26504
26508
|
const r = e.slice(-2), o = r[0] * 256 + r[1], s = Buffer.from(e.slice(0, 33));
|
|
@@ -26514,7 +26518,7 @@ async function gh(i, t) {
|
|
|
26514
26518
|
return i.send(
|
|
26515
26519
|
Un,
|
|
26516
26520
|
Cn.GET_ADDR_SECP256K1,
|
|
26517
|
-
|
|
26521
|
+
Ku.SHOW_ADDRESS_IN_DEVICE,
|
|
26518
26522
|
0,
|
|
26519
26523
|
t,
|
|
26520
26524
|
[fn.NoError]
|
|
@@ -26594,7 +26598,7 @@ class Sn {
|
|
|
26594
26598
|
static getBech32FromPK(t, e) {
|
|
26595
26599
|
if (e.length !== 33)
|
|
26596
26600
|
throw new Error("expected compressed public key [31 bytes]");
|
|
26597
|
-
const r = (void 0)("sha256").update(e).digest(), o = new
|
|
26601
|
+
const r = (void 0)("sha256").update(e).digest(), o = new hp().update(r).digest();
|
|
26598
26602
|
return x.encode(t, x.toWords(o));
|
|
26599
26603
|
}
|
|
26600
26604
|
validateCompatibility() {
|
|
@@ -26648,7 +26652,7 @@ class R extends Error {
|
|
|
26648
26652
|
super(t), this.name = "LedgerError";
|
|
26649
26653
|
}
|
|
26650
26654
|
}
|
|
26651
|
-
class
|
|
26655
|
+
class Hu extends $u {
|
|
26652
26656
|
/**
|
|
26653
26657
|
*
|
|
26654
26658
|
* @param transport transporter for LedgerKey
|
|
@@ -26656,7 +26660,7 @@ class Ku extends Cu {
|
|
|
26656
26660
|
constructor(e) {
|
|
26657
26661
|
super();
|
|
26658
26662
|
p(this, "app");
|
|
26659
|
-
p(this, "path", [44,
|
|
26663
|
+
p(this, "path", [44, Eu, 0, 0, 0]);
|
|
26660
26664
|
this.transport = e, this.app = new Sn(this.transport);
|
|
26661
26665
|
}
|
|
26662
26666
|
/**
|
|
@@ -26672,7 +26676,7 @@ class Ku extends Cu {
|
|
|
26672
26676
|
*/
|
|
26673
26677
|
static async create(e, r) {
|
|
26674
26678
|
e || (e = await Dh());
|
|
26675
|
-
const o = new
|
|
26679
|
+
const o = new Hu(e);
|
|
26676
26680
|
return r != null && (o.path[4] = r), e && typeof e.on == "function" && e.on("disconnect", () => {
|
|
26677
26681
|
o.transport = void 0;
|
|
26678
26682
|
}), await o.initialize().catch(wh), o;
|
|
@@ -26686,7 +26690,7 @@ class Ku extends Cu {
|
|
|
26686
26690
|
if (r !== "Initia")
|
|
26687
26691
|
throw new R("Open the Initia app in the Ledger");
|
|
26688
26692
|
const { major: o, minor: s, patch: n } = this.app.getVersion(), a = `${o}.${s}.${n}`;
|
|
26689
|
-
if (r === "Initia" &&
|
|
26693
|
+
if (r === "Initia" && fp.lt(a, Vu))
|
|
26690
26694
|
throw new R(
|
|
26691
26695
|
"Outdated version: Update Ledger Initia App to the latest version"
|
|
26692
26696
|
);
|
|
@@ -26705,7 +26709,7 @@ class Ku extends Cu {
|
|
|
26705
26709
|
async sign(e) {
|
|
26706
26710
|
this.publicKey || await this.loadAccountDetails();
|
|
26707
26711
|
const r = await this.app.sign(this.path, e);
|
|
26708
|
-
return Cm(r), Buffer.from(
|
|
26712
|
+
return Cm(r), Buffer.from(td(Buffer.from(r.signature)));
|
|
26709
26713
|
}
|
|
26710
26714
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
26711
26715
|
async signWithKeccak256() {
|
|
@@ -26806,8 +26810,8 @@ async function Dh() {
|
|
|
26806
26810
|
export {
|
|
26807
26811
|
is as ABCIParams,
|
|
26808
26812
|
Os as ACL,
|
|
26809
|
-
|
|
26810
|
-
|
|
26813
|
+
gp as APIRequester,
|
|
26814
|
+
Cg as APP_KEY,
|
|
26811
26815
|
ks as AbsoluteTxPosition,
|
|
26812
26816
|
Tm as AccAddress,
|
|
26813
26817
|
uu as AccPubKey,
|
|
@@ -26818,16 +26822,16 @@ export {
|
|
|
26818
26822
|
xs as Allocation,
|
|
26819
26823
|
Zt as AllowAllMessagesFilter,
|
|
26820
26824
|
Lo as Allowance,
|
|
26821
|
-
|
|
26822
|
-
|
|
26825
|
+
Ve as AllowedMsgAllowance,
|
|
26826
|
+
yp as AuctionAPI,
|
|
26823
26827
|
$o as AuctionParams,
|
|
26824
|
-
|
|
26828
|
+
Dp as AuthAPI,
|
|
26825
26829
|
xt as AuthInfo,
|
|
26826
26830
|
Eo as AuthParams,
|
|
26827
26831
|
bn as Authorization,
|
|
26828
26832
|
Pt as AuthorizationGrant,
|
|
26829
|
-
|
|
26830
|
-
|
|
26833
|
+
kp as AuthzAPI,
|
|
26834
|
+
xp as BankAPI,
|
|
26831
26835
|
Oo as BankParams,
|
|
26832
26836
|
ot as BaseAccount,
|
|
26833
26837
|
G as BasicAllowance,
|
|
@@ -26861,62 +26865,62 @@ export {
|
|
|
26861
26865
|
Ns as DenomTrace,
|
|
26862
26866
|
os as DenomUnit,
|
|
26863
26867
|
Pn as Deposit,
|
|
26864
|
-
|
|
26868
|
+
Mp as DistributionAPI,
|
|
26865
26869
|
Ro as DistributionParams,
|
|
26866
26870
|
P as Duration,
|
|
26867
26871
|
fn as ERROR_CODE,
|
|
26868
26872
|
Pu as ERROR_DESCRIPTION,
|
|
26869
26873
|
Re as Equivocation,
|
|
26870
|
-
|
|
26874
|
+
$t as EthPublicKey,
|
|
26871
26875
|
Rm as EventsByType,
|
|
26872
26876
|
ms as Evidence,
|
|
26873
|
-
|
|
26877
|
+
Sp as EvidenceAPI,
|
|
26874
26878
|
ns as EvidenceParams,
|
|
26875
|
-
|
|
26879
|
+
Ip as EvmAPI,
|
|
26876
26880
|
Fo as EvmParams,
|
|
26877
26881
|
Wt as ExecuteAuthorization,
|
|
26878
26882
|
es as ExecuteAuthorizationItem,
|
|
26879
26883
|
kt as Fee,
|
|
26880
|
-
|
|
26881
|
-
|
|
26884
|
+
Np as FeeGrantAPI,
|
|
26885
|
+
Up as ForwardingAPI,
|
|
26882
26886
|
En as FungibleTokenPacketData,
|
|
26883
26887
|
Ht as GenericAuthorization,
|
|
26884
|
-
|
|
26888
|
+
Cp as GovAPI,
|
|
26885
26889
|
zo as GovParams,
|
|
26886
|
-
|
|
26890
|
+
$p as GroupAPI,
|
|
26887
26891
|
vr as GroupInfo,
|
|
26888
26892
|
An as GroupMember,
|
|
26889
26893
|
hs as GroupPolicyInfo,
|
|
26890
|
-
|
|
26891
|
-
|
|
26894
|
+
Ko as GroupProposal,
|
|
26895
|
+
Tt as GroupVote,
|
|
26892
26896
|
w as Height,
|
|
26893
|
-
|
|
26897
|
+
Eu as INIT_COIN_TYPE,
|
|
26894
26898
|
Cn as INS,
|
|
26895
|
-
|
|
26899
|
+
Ep as IbcAPI,
|
|
26896
26900
|
Fs as IbcChannelParams,
|
|
26897
26901
|
_s as IbcClientParams,
|
|
26898
26902
|
qs as IbcConnectionParams,
|
|
26899
|
-
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
26903
|
+
Rt as IbcFee,
|
|
26904
|
+
Bp as IbcHooksAPI,
|
|
26905
|
+
Vo as IbcHooksParams,
|
|
26906
|
+
Op as IbcNftAPI,
|
|
26903
26907
|
Ho as IbcNftParams,
|
|
26904
|
-
|
|
26905
|
-
|
|
26908
|
+
Rp as IbcPermAPI,
|
|
26909
|
+
Tp as IbcTransferAPI,
|
|
26906
26910
|
Y as IbcVersion,
|
|
26907
26911
|
Dn as IdentifiedClientState,
|
|
26908
26912
|
Ls as IdentifiedConnection,
|
|
26909
26913
|
On as IdentifiedPacketFees,
|
|
26910
|
-
|
|
26914
|
+
Fp as InterTxAPI,
|
|
26911
26915
|
m as JSONSerializable,
|
|
26912
|
-
|
|
26913
|
-
|
|
26916
|
+
$u as Key,
|
|
26917
|
+
Ig as LCDClient,
|
|
26914
26918
|
R as LedgerError,
|
|
26915
|
-
|
|
26919
|
+
Hu as LedgerKey,
|
|
26916
26920
|
Ct as LegacyAminoMultisigPublicKey,
|
|
26917
|
-
|
|
26921
|
+
Ng as LocalInitia,
|
|
26918
26922
|
H as Market,
|
|
26919
|
-
|
|
26923
|
+
Lp as MarketmapAPI,
|
|
26920
26924
|
Go as MarketmapParams,
|
|
26921
26925
|
Jt as MaxCallsLimit,
|
|
26922
26926
|
Qt as MaxFundsLimit,
|
|
@@ -26927,15 +26931,15 @@ export {
|
|
|
26927
26931
|
Bn as Metadata,
|
|
26928
26932
|
et as MnemonicKey,
|
|
26929
26933
|
M as ModeInfo,
|
|
26930
|
-
|
|
26931
|
-
|
|
26934
|
+
Et as ModuleAccount,
|
|
26935
|
+
qp as MoveAPI,
|
|
26932
26936
|
Wo as MoveParams,
|
|
26933
26937
|
U as Msg,
|
|
26934
26938
|
js as MsgAcknowledgement,
|
|
26935
26939
|
_e as MsgAddCodeUploadParamsAddresses,
|
|
26936
26940
|
Nr as MsgAddCurrencyPairs,
|
|
26937
26941
|
to as MsgAddValidator,
|
|
26938
|
-
|
|
26942
|
+
qt as MsgAuctionBid,
|
|
26939
26943
|
Qr as MsgBeginRedelegate,
|
|
26940
26944
|
Mo as MsgBurn,
|
|
26941
26945
|
ze as MsgCall,
|
|
@@ -26945,8 +26949,8 @@ export {
|
|
|
26945
26949
|
So as MsgChangeAdmin,
|
|
26946
26950
|
Gs as MsgChannelCloseConfirm,
|
|
26947
26951
|
Hs as MsgChannelCloseInit,
|
|
26948
|
-
|
|
26949
|
-
|
|
26952
|
+
Vs as MsgChannelOpenAck,
|
|
26953
|
+
Ks as MsgChannelOpenConfirm,
|
|
26950
26954
|
Rs as MsgChannelOpenInit,
|
|
26951
26955
|
zs as MsgChannelOpenTry,
|
|
26952
26956
|
me as MsgClearAdmin,
|
|
@@ -26963,7 +26967,7 @@ export {
|
|
|
26963
26967
|
Yr as MsgCreateValidator,
|
|
26964
26968
|
jr as MsgDelegate,
|
|
26965
26969
|
mo as MsgDeleteOutput,
|
|
26966
|
-
|
|
26970
|
+
Kr as MsgDelist,
|
|
26967
26971
|
Ye as MsgDeposit,
|
|
26968
26972
|
Qe as MsgDepositLegacy,
|
|
26969
26973
|
Te as MsgDepositValidatorRewardsPool,
|
|
@@ -26977,7 +26981,7 @@ export {
|
|
|
26977
26981
|
lo as MsgFinalizeTokenWithdrawal,
|
|
26978
26982
|
Uo as MsgForceTransfer,
|
|
26979
26983
|
Ee as MsgFundCommunityPool,
|
|
26980
|
-
|
|
26984
|
+
Vr as MsgGovExecute,
|
|
26981
26985
|
Hr as MsgGovExecuteJSON,
|
|
26982
26986
|
yt as MsgGovPublish,
|
|
26983
26987
|
Gr as MsgGovScript,
|
|
@@ -26993,7 +26997,7 @@ export {
|
|
|
26993
26997
|
lr as MsgLeaveGroup,
|
|
26994
26998
|
ie as MsgMigrateContract,
|
|
26995
26999
|
xo as MsgMint,
|
|
26996
|
-
|
|
27000
|
+
K as MsgMultiSend,
|
|
26997
27001
|
Pr as MsgNftTransfer,
|
|
26998
27002
|
Us as MsgPayForBlobs,
|
|
26999
27003
|
Cs as MsgPayPacketFee,
|
|
@@ -27041,8 +27045,8 @@ export {
|
|
|
27041
27045
|
he as MsgUnpinCodes,
|
|
27042
27046
|
br as MsgUpdateACL,
|
|
27043
27047
|
ce as MsgUpdateAdmin,
|
|
27044
|
-
|
|
27045
|
-
|
|
27048
|
+
zt as MsgUpdateAuctionParams,
|
|
27049
|
+
Kt as MsgUpdateAuthParams,
|
|
27046
27050
|
ke as MsgUpdateBankParams,
|
|
27047
27051
|
fo as MsgUpdateBatchInfo,
|
|
27048
27052
|
ho as MsgUpdateChallenger,
|
|
@@ -27050,7 +27054,7 @@ export {
|
|
|
27050
27054
|
ve as MsgUpdateContractLabel,
|
|
27051
27055
|
Ne as MsgUpdateCrisisParams,
|
|
27052
27056
|
Be as MsgUpdateDistrParams,
|
|
27053
|
-
|
|
27057
|
+
Ke as MsgUpdateEvmParams,
|
|
27054
27058
|
nr as MsgUpdateGovParams,
|
|
27055
27059
|
pr as MsgUpdateGroupAdmin,
|
|
27056
27060
|
hr as MsgUpdateGroupDecisionPolicy,
|
|
@@ -27088,69 +27092,70 @@ export {
|
|
|
27088
27092
|
zr as MsgWhitelist,
|
|
27089
27093
|
Ce as MsgWithdrawDelegatorReward,
|
|
27090
27094
|
$e as MsgWithdrawValidatorCommission,
|
|
27091
|
-
|
|
27095
|
+
zp as MstakingAPI,
|
|
27092
27096
|
jo as MstakingParams,
|
|
27093
27097
|
xg as MultiSignature,
|
|
27094
27098
|
Ts as NftClassTrace,
|
|
27095
27099
|
Tn as NonFungibleTokenPacketData,
|
|
27096
27100
|
dn as OpValidator,
|
|
27097
|
-
|
|
27101
|
+
Kp as OpchildAPI,
|
|
27098
27102
|
Qo as OpchildParams,
|
|
27099
27103
|
Vp as OphostAPI,
|
|
27100
27104
|
Jo as OphostParams,
|
|
27101
|
-
|
|
27105
|
+
Hp as OracleAPI,
|
|
27102
27106
|
kg as OrderBy,
|
|
27103
27107
|
Nt as Output,
|
|
27104
|
-
|
|
27108
|
+
Ku as P1_VALUES,
|
|
27105
27109
|
Um as PAYLOAD_TYPE,
|
|
27106
27110
|
tt as Packet,
|
|
27107
|
-
|
|
27108
|
-
|
|
27111
|
+
Lt as PacketFee,
|
|
27112
|
+
Ft as PacketId,
|
|
27109
27113
|
us as ParamChange,
|
|
27110
27114
|
Ze as ParamChanges,
|
|
27111
27115
|
Xe as ParameterChangeProposal,
|
|
27112
27116
|
cr as PercentageDecisionPolicy,
|
|
27113
27117
|
nt as PeriodicAllowance,
|
|
27114
27118
|
St as Plan,
|
|
27115
|
-
|
|
27119
|
+
Ot as Proposal,
|
|
27116
27120
|
bs as ProviderConfig,
|
|
27117
27121
|
bt as PublicKey,
|
|
27118
27122
|
Gt as PublishAuthorization,
|
|
27119
27123
|
kn as QuotePrice,
|
|
27124
|
+
Cu as RESTClient,
|
|
27120
27125
|
zm as RawKey,
|
|
27121
27126
|
dt as Redelegation,
|
|
27122
|
-
|
|
27127
|
+
Gp as RewardAPI,
|
|
27123
27128
|
Yo as RewardParams,
|
|
27124
27129
|
cs as RewardWeight,
|
|
27125
|
-
|
|
27130
|
+
Vt as SendAuthorization,
|
|
27126
27131
|
At as SendEnabled,
|
|
27127
|
-
|
|
27132
|
+
Ap as SignDoc,
|
|
27128
27133
|
T as SignatureV2,
|
|
27129
27134
|
st as SignerInfo,
|
|
27130
27135
|
q as SimplePublicKey,
|
|
27131
27136
|
qm as SimulateResponse,
|
|
27132
|
-
|
|
27137
|
+
Wp as SlashingAPI,
|
|
27133
27138
|
Zo as SlashingParams,
|
|
27134
27139
|
lt as StakeAuthorization,
|
|
27135
27140
|
ut as StakeAuthorizationValidators,
|
|
27136
|
-
|
|
27141
|
+
Og as State,
|
|
27137
27142
|
jt as StoreCodeAuthorization,
|
|
27138
27143
|
qo as TallyResult,
|
|
27139
|
-
|
|
27144
|
+
jp as TendermintAPI,
|
|
27140
27145
|
tr as TextProposal,
|
|
27141
27146
|
ir as ThresholdDecisionPolicy,
|
|
27142
27147
|
ws as Ticker,
|
|
27143
27148
|
ys as Timeout,
|
|
27144
|
-
|
|
27149
|
+
Jp as TokenfactoryAPI,
|
|
27145
27150
|
Xo as TokenfactoryParams,
|
|
27146
27151
|
Ms as TransferAuthorization,
|
|
27147
|
-
|
|
27152
|
+
V as Tx,
|
|
27148
27153
|
Mn as TxAPI,
|
|
27149
27154
|
To as TxBody,
|
|
27150
27155
|
Nn as TxInfo,
|
|
27151
27156
|
hn as TxLog,
|
|
27152
27157
|
X as UnbondingDelegation,
|
|
27153
|
-
|
|
27158
|
+
Yp as UpgradeAPI,
|
|
27154
27159
|
du as ValAddress,
|
|
27155
27160
|
pu as ValConsAddress,
|
|
27156
27161
|
F as ValConsPublicKey,
|
|
@@ -27158,21 +27163,21 @@ export {
|
|
|
27158
27163
|
B as Validator,
|
|
27159
27164
|
as as ValidatorParams,
|
|
27160
27165
|
ds as Vote,
|
|
27161
|
-
|
|
27162
|
-
|
|
27166
|
+
Xp as Wallet,
|
|
27167
|
+
Zp as WasmAPI,
|
|
27163
27168
|
Bo as WasmParams,
|
|
27164
|
-
|
|
27169
|
+
Ug as WebSocketClient,
|
|
27165
27170
|
J as WeightedVoteOption,
|
|
27166
27171
|
Mg as bcs,
|
|
27167
27172
|
Ds as checkDecimal,
|
|
27168
27173
|
$m as hashToHex,
|
|
27169
27174
|
Sg as isTxError,
|
|
27170
|
-
|
|
27175
|
+
vp as keccak256,
|
|
27171
27176
|
b as num,
|
|
27172
27177
|
Wn as prepareSignBytes,
|
|
27173
|
-
|
|
27174
|
-
|
|
27178
|
+
_p as removeNull,
|
|
27179
|
+
bp as ripemd160,
|
|
27175
27180
|
Lm as sha256,
|
|
27176
|
-
|
|
27177
|
-
|
|
27181
|
+
Tg as stateFromJSON,
|
|
27182
|
+
Rg as stateToJSON
|
|
27178
27183
|
};
|