@initia/initia.js 0.2.18 → 0.2.19
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 +340 -337
- package/package.json +1 -1
- /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,120 +1,120 @@
|
|
|
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 Km, 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
41
|
import { MsgSend as za, MsgMultiSend as Va, MsgUpdateParams as Ka, MsgSetSendEnabled as Ha } from "@initia/initia.proto/cosmos/bank/v1beta1/tx";
|
|
42
|
-
import { Input as
|
|
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 Vd } 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";
|
|
57
57
|
import { MsgCreate as ni, MsgCreate2 as ai, MsgCall as ii, MsgUpdateParams as ci } from "@initia/initia.proto/minievm/evm/v1/tx";
|
|
58
|
-
import { Params as
|
|
58
|
+
import { Params as Kd } from "@initia/initia.proto/minievm/evm/v1/types";
|
|
59
59
|
import { BasicAllowance as mi, PeriodicAllowance as ui, AllowedMsgAllowance as di } from "@initia/initia.proto/cosmos/feegrant/v1beta1/feegrant";
|
|
60
60
|
import { MsgGrantAllowance as li, MsgRevokeAllowance as pi } from "@initia/initia.proto/cosmos/feegrant/v1beta1/tx";
|
|
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 Vn, voteOptionToJSON as Kn, 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
71
|
import { MsgPayPacketFee as Vi, MsgPayPacketFeeAsync as Ki, MsgRegisterPayee as Hi, MsgRegisterCounterpartyPayee as Gi } from "@initia/initia.proto/ibc/applications/fee/v1/tx";
|
|
72
|
-
import { Fee as
|
|
73
|
-
import { PacketId as
|
|
74
|
-
import { Metadata as
|
|
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
|
|
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
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 Vc, MsgGovScript as Kc, 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 Vl, Commission as Kl, 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
|
});
|
|
@@ -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(),
|
|
@@ -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),
|
|
@@ -988,21 +988,21 @@ class zt extends m {
|
|
|
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) => {
|
|
@@ -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));
|
|
@@ -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()));
|
|
@@ -1590,13 +1590,13 @@ 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
1601
|
class Kt extends m {
|
|
1602
1602
|
constructor(e, r) {
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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,
|
|
@@ -5703,7 +5703,7 @@ class Et {
|
|
|
5703
5703
|
return new Et(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,
|
|
@@ -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
|
}
|
|
@@ -6172,7 +6172,7 @@ class M {
|
|
|
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
|
});
|
|
@@ -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 Vd.fromPartial({
|
|
6933
6933
|
communityTax: t,
|
|
6934
6934
|
withdrawAddrEnabled: e,
|
|
6935
6935
|
rewardWeights: r.map((o) => o.toProto())
|
|
@@ -7613,7 +7613,7 @@ class Fo extends m {
|
|
|
7613
7613
|
allowed_custom_erc20s: o,
|
|
7614
7614
|
fee_denom: s
|
|
7615
7615
|
} = this;
|
|
7616
|
-
return
|
|
7616
|
+
return Kd.fromPartial({
|
|
7617
7617
|
extraEips: t,
|
|
7618
7618
|
allowedPublishers: e,
|
|
7619
7619
|
allowCustomErc20: r,
|
|
@@ -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,
|
|
@@ -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,7 +9032,7 @@ class Bt extends m {
|
|
|
9032
9032
|
}
|
|
9033
9033
|
}
|
|
9034
9034
|
((i) => {
|
|
9035
|
-
i.Status =
|
|
9035
|
+
i.Status = jd;
|
|
9036
9036
|
})(Bt || (Bt = {}));
|
|
9037
9037
|
class er extends m {
|
|
9038
9038
|
/**
|
|
@@ -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
|
});
|
|
@@ -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,
|
|
@@ -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,7 +11983,7 @@ class Vo extends m {
|
|
|
11983
11983
|
}
|
|
11984
11984
|
}
|
|
11985
11985
|
((i) => {
|
|
11986
|
-
i.Status =
|
|
11986
|
+
i.Status = cl, i.ExecutorResult = ml;
|
|
11987
11987
|
})(Vo || (Vo = {}));
|
|
11988
11988
|
class Ot extends m {
|
|
11989
11989
|
/**
|
|
@@ -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,
|
|
@@ -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()
|
|
@@ -12232,7 +12232,7 @@ 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)
|
|
@@ -12289,7 +12289,7 @@ class Ft extends m {
|
|
|
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
|
|
@@ -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
|
});
|
|
@@ -12651,7 +12651,7 @@ class Ko extends m {
|
|
|
12651
12651
|
return new Ko(t.defaultAllowed);
|
|
12652
12652
|
}
|
|
12653
12653
|
toProto() {
|
|
12654
|
-
return
|
|
12654
|
+
return Pl.fromPartial({
|
|
12655
12655
|
defaultAllowed: this.default_allowed
|
|
12656
12656
|
});
|
|
12657
12657
|
}
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
@@ -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 Vl.fromPartial({
|
|
18741
18741
|
maxChangeRate: a,
|
|
18742
18742
|
maxRate: n,
|
|
18743
18743
|
rate: s
|
|
@@ -18779,7 +18779,7 @@ class B extends m {
|
|
|
18779
18779
|
}
|
|
18780
18780
|
toProto() {
|
|
18781
18781
|
const { commission_rates: s, update_time: n } = this;
|
|
18782
|
-
return
|
|
18782
|
+
return Kl.fromPartial({
|
|
18783
18783
|
commissionRates: s.toProto(),
|
|
18784
18784
|
updateTime: n
|
|
18785
18785
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
|
@@ -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
|
*/
|
|
@@ -24140,7 +24140,7 @@ class Ap extends k {
|
|
|
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,7 +24380,7 @@ 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
|
*/
|
|
@@ -24429,7 +24429,7 @@ class Up extends k {
|
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -24610,7 +24610,7 @@ class Ep extends k {
|
|
|
24610
24610
|
return this.c.get("/initia/ibchooks/v1/params", t).then((e) => Ko.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 Vp 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
|
}
|
|
@@ -24967,7 +24967,7 @@ class zp extends k {
|
|
|
24967
24967
|
return this.c.get("/opinit/opchild/v1/params", t).then((e) => Qo.fromData(e.params));
|
|
24968
24968
|
}
|
|
24969
24969
|
}
|
|
24970
|
-
class
|
|
24970
|
+
class Kp extends k {
|
|
24971
24971
|
async bridgeInfos(t = {}) {
|
|
24972
24972
|
return this.c.get("/opinit/ophost/v1/bridges", t).then((e) => [e.bridges.map(Ut.fromData), e.pagination]);
|
|
24973
24973
|
}
|
|
@@ -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 K(
|
|
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(
|
|
@@ -25343,7 +25343,7 @@ class Mn extends k {
|
|
|
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))
|
|
@@ -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 Vp(this.apiRequester), this.ophost = new Kp(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 K(t.body, new xt([], t.auth_info.fee), []), o = new
|
|
25832
|
+
const r = new K(t.body, new xt([], t.auth_info.fee), []), o = new Ap(
|
|
25831
25833
|
e.chainId,
|
|
25832
25834
|
e.accountNumber,
|
|
25833
25835
|
e.sequence,
|
|
@@ -25854,7 +25856,7 @@ class Cu {
|
|
|
25854
25856
|
), r;
|
|
25855
25857
|
}
|
|
25856
25858
|
}
|
|
25857
|
-
class zm extends
|
|
25859
|
+
class zm extends $u {
|
|
25858
25860
|
constructor(e) {
|
|
25859
25861
|
const r = _n.publicKeyCreate(
|
|
25860
25862
|
new Uint8Array(e),
|
|
@@ -25875,7 +25877,7 @@ class zm extends Cu {
|
|
|
25875
25877
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
25876
25878
|
async sign(e) {
|
|
25877
25879
|
const r = Buffer.from(
|
|
25878
|
-
|
|
25880
|
+
od.hash(new Fm(e)).toString(),
|
|
25879
25881
|
"hex"
|
|
25880
25882
|
), { signature: o } = _n.ecdsaSign(
|
|
25881
25883
|
Uint8Array.from(r),
|
|
@@ -25892,10 +25894,10 @@ class zm extends Cu {
|
|
|
25892
25894
|
return Buffer.from(o);
|
|
25893
25895
|
}
|
|
25894
25896
|
}
|
|
25895
|
-
const
|
|
25897
|
+
const Eu = 118, eh = {
|
|
25896
25898
|
account: 0,
|
|
25897
25899
|
index: 0,
|
|
25898
|
-
coinType:
|
|
25900
|
+
coinType: Eu
|
|
25899
25901
|
};
|
|
25900
25902
|
class et extends zm {
|
|
25901
25903
|
/**
|
|
@@ -25927,7 +25929,7 @@ class et extends zm {
|
|
|
25927
25929
|
};
|
|
25928
25930
|
let { mnemonic: n } = e;
|
|
25929
25931
|
n === void 0 && (n = cu.generateMnemonic(256));
|
|
25930
|
-
const a = cu.mnemonicToSeedSync(n), c =
|
|
25932
|
+
const a = cu.mnemonicToSeedSync(n), c = lp.fromSeed(a), d = `m/44'/${s}'/${r}'/0/${o}`, g = c.derivePath(d).privateKey;
|
|
25931
25933
|
if (!g)
|
|
25932
25934
|
throw new Error("Failed to derive key pair");
|
|
25933
25935
|
super(g);
|
|
@@ -25951,7 +25953,7 @@ const rt = {
|
|
|
25951
25953
|
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
25954
|
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
25955
|
};
|
|
25954
|
-
class
|
|
25956
|
+
class Ng extends Cu {
|
|
25955
25957
|
constructor() {
|
|
25956
25958
|
super("http://localhost:1317", { chainId: "local-initia" });
|
|
25957
25959
|
p(this, "wallets");
|
|
@@ -26003,7 +26005,7 @@ ln && typeof ln.ownKeys == "function" ? Fn = ln.ownKeys : Object.getOwnPropertyS
|
|
|
26003
26005
|
function rh(i) {
|
|
26004
26006
|
console && console.warn && console.warn(i);
|
|
26005
26007
|
}
|
|
26006
|
-
var
|
|
26008
|
+
var Bu = Number.isNaN || function(t) {
|
|
26007
26009
|
return t !== t;
|
|
26008
26010
|
};
|
|
26009
26011
|
function S() {
|
|
@@ -26026,7 +26028,7 @@ Object.defineProperty(S, "defaultMaxListeners", {
|
|
|
26026
26028
|
return vu;
|
|
26027
26029
|
},
|
|
26028
26030
|
set: function(i) {
|
|
26029
|
-
if (typeof i != "number" || i < 0 ||
|
|
26031
|
+
if (typeof i != "number" || i < 0 || Bu(i))
|
|
26030
26032
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + i + ".");
|
|
26031
26033
|
vu = i;
|
|
26032
26034
|
}
|
|
@@ -26035,15 +26037,15 @@ S.init = function() {
|
|
|
26035
26037
|
(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
26038
|
};
|
|
26037
26039
|
S.prototype.setMaxListeners = function(t) {
|
|
26038
|
-
if (typeof t != "number" || t < 0 ||
|
|
26040
|
+
if (typeof t != "number" || t < 0 || Bu(t))
|
|
26039
26041
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
26040
26042
|
return this._maxListeners = t, this;
|
|
26041
26043
|
};
|
|
26042
|
-
function
|
|
26044
|
+
function Ou(i) {
|
|
26043
26045
|
return i._maxListeners === void 0 ? S.defaultMaxListeners : i._maxListeners;
|
|
26044
26046
|
}
|
|
26045
26047
|
S.prototype.getMaxListeners = function() {
|
|
26046
|
-
return
|
|
26048
|
+
return Ou(this);
|
|
26047
26049
|
};
|
|
26048
26050
|
S.prototype.emit = function(t) {
|
|
26049
26051
|
for (var e = [], r = 1; r < arguments.length; r++) e.push(arguments[r]);
|
|
@@ -26065,11 +26067,11 @@ S.prototype.emit = function(t) {
|
|
|
26065
26067
|
if (typeof c == "function")
|
|
26066
26068
|
yu(c, this, e);
|
|
26067
26069
|
else
|
|
26068
|
-
for (var d = c.length, h =
|
|
26070
|
+
for (var d = c.length, h = qu(c, d), r = 0; r < d; ++r)
|
|
26069
26071
|
yu(h[r], this, e);
|
|
26070
26072
|
return !0;
|
|
26071
26073
|
};
|
|
26072
|
-
function
|
|
26074
|
+
function Tu(i, t, e, r) {
|
|
26073
26075
|
var o, s, n;
|
|
26074
26076
|
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
26077
|
"newListener",
|
|
@@ -26077,7 +26079,7 @@ function Ou(i, t, e, r) {
|
|
|
26077
26079
|
e.listener ? e.listener : e
|
|
26078
26080
|
), s = i._events), n = s[t]), n === void 0)
|
|
26079
26081
|
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 =
|
|
26082
|
+
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
26083
|
n.warned = !0;
|
|
26082
26084
|
var a = new Error("Possible EventEmitter memory leak detected. " + n.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
26083
26085
|
a.name = "MaxListenersExceededWarning", a.emitter = i, a.type = t, a.count = n.length, rh(a);
|
|
@@ -26085,25 +26087,25 @@ function Ou(i, t, e, r) {
|
|
|
26085
26087
|
return i;
|
|
26086
26088
|
}
|
|
26087
26089
|
S.prototype.addListener = function(t, e) {
|
|
26088
|
-
return
|
|
26090
|
+
return Tu(this, t, e, !1);
|
|
26089
26091
|
};
|
|
26090
26092
|
S.prototype.on = S.prototype.addListener;
|
|
26091
26093
|
S.prototype.prependListener = function(t, e) {
|
|
26092
|
-
return
|
|
26094
|
+
return Tu(this, t, e, !0);
|
|
26093
26095
|
};
|
|
26094
26096
|
function oh() {
|
|
26095
26097
|
if (!this.fired)
|
|
26096
26098
|
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
26099
|
}
|
|
26098
|
-
function
|
|
26100
|
+
function Ru(i, t, e) {
|
|
26099
26101
|
var r = { fired: !1, wrapFn: void 0, target: i, type: t, listener: e }, o = oh.bind(r);
|
|
26100
26102
|
return o.listener = e, r.wrapFn = o, o;
|
|
26101
26103
|
}
|
|
26102
26104
|
S.prototype.once = function(t, e) {
|
|
26103
|
-
return Jn(e), this.on(t,
|
|
26105
|
+
return Jn(e), this.on(t, Ru(this, t, e)), this;
|
|
26104
26106
|
};
|
|
26105
26107
|
S.prototype.prependOnceListener = function(t, e) {
|
|
26106
|
-
return Jn(e), this.prependListener(t,
|
|
26108
|
+
return Jn(e), this.prependListener(t, Ru(this, t, e)), this;
|
|
26107
26109
|
};
|
|
26108
26110
|
S.prototype.removeListener = function(t, e) {
|
|
26109
26111
|
var r, o, s, n, a;
|
|
@@ -26145,24 +26147,24 @@ S.prototype.removeAllListeners = function(t) {
|
|
|
26145
26147
|
this.removeListener(t, e[o]);
|
|
26146
26148
|
return this;
|
|
26147
26149
|
};
|
|
26148
|
-
function
|
|
26150
|
+
function Fu(i, t, e) {
|
|
26149
26151
|
var r = i._events;
|
|
26150
26152
|
if (r === void 0)
|
|
26151
26153
|
return [];
|
|
26152
26154
|
var o = r[t];
|
|
26153
|
-
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? nh(o) :
|
|
26155
|
+
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? nh(o) : qu(o, o.length);
|
|
26154
26156
|
}
|
|
26155
26157
|
S.prototype.listeners = function(t) {
|
|
26156
|
-
return
|
|
26158
|
+
return Fu(this, t, !0);
|
|
26157
26159
|
};
|
|
26158
26160
|
S.prototype.rawListeners = function(t) {
|
|
26159
|
-
return
|
|
26161
|
+
return Fu(this, t, !1);
|
|
26160
26162
|
};
|
|
26161
26163
|
S.listenerCount = function(i, t) {
|
|
26162
|
-
return typeof i.listenerCount == "function" ? i.listenerCount(t) :
|
|
26164
|
+
return typeof i.listenerCount == "function" ? i.listenerCount(t) : Lu.call(i, t);
|
|
26163
26165
|
};
|
|
26164
|
-
S.prototype.listenerCount =
|
|
26165
|
-
function
|
|
26166
|
+
S.prototype.listenerCount = Lu;
|
|
26167
|
+
function Lu(i) {
|
|
26166
26168
|
var t = this._events;
|
|
26167
26169
|
if (t !== void 0) {
|
|
26168
26170
|
var e = t[i];
|
|
@@ -26176,7 +26178,7 @@ function Fu(i) {
|
|
|
26176
26178
|
S.prototype.eventNames = function() {
|
|
26177
26179
|
return this._eventsCount > 0 ? Fn(this._events) : [];
|
|
26178
26180
|
};
|
|
26179
|
-
function
|
|
26181
|
+
function qu(i, t) {
|
|
26180
26182
|
for (var e = new Array(t), r = 0; r < t; ++r)
|
|
26181
26183
|
e[r] = i[r];
|
|
26182
26184
|
return e;
|
|
@@ -26199,13 +26201,13 @@ function ah(i, t) {
|
|
|
26199
26201
|
function s() {
|
|
26200
26202
|
typeof i.removeListener == "function" && i.removeListener("error", o), e([].slice.call(arguments));
|
|
26201
26203
|
}
|
|
26202
|
-
|
|
26204
|
+
zu(i, t, s, { once: !0 }), t !== "error" && ih(i, o, { once: !0 });
|
|
26203
26205
|
});
|
|
26204
26206
|
}
|
|
26205
26207
|
function ih(i, t, e) {
|
|
26206
|
-
typeof i.on == "function" &&
|
|
26208
|
+
typeof i.on == "function" && zu(i, "error", t, e);
|
|
26207
26209
|
}
|
|
26208
|
-
function
|
|
26210
|
+
function zu(i, t, e, r) {
|
|
26209
26211
|
if (typeof i.on == "function")
|
|
26210
26212
|
r.once ? i.once(t, e) : i.on(t, e);
|
|
26211
26213
|
else if (typeof i.addEventListener == "function")
|
|
@@ -26252,7 +26254,7 @@ function mh(i) {
|
|
|
26252
26254
|
}
|
|
26253
26255
|
return t.join(" AND ");
|
|
26254
26256
|
}
|
|
26255
|
-
class
|
|
26257
|
+
class Ug extends ch.EventEmitter {
|
|
26256
26258
|
/**
|
|
26257
26259
|
* WebSocketClient constructor
|
|
26258
26260
|
* @param URL The WebSocket endpoint URL on the Tendermint RPC server.
|
|
@@ -26278,7 +26280,7 @@ class Ng extends ch.EventEmitter {
|
|
|
26278
26280
|
this.shouldAttemptReconnect = !1, this.reconnectTimeoutId && clearTimeout(this.reconnectTimeoutId), this.socket && this.socket.close();
|
|
26279
26281
|
}
|
|
26280
26282
|
start() {
|
|
26281
|
-
this.socket = new
|
|
26283
|
+
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
26284
|
};
|
|
26283
26285
|
}
|
|
26284
26286
|
onOpen() {
|
|
@@ -26323,7 +26325,7 @@ class Ng extends ch.EventEmitter {
|
|
|
26323
26325
|
this.subscribe("Tx", e, o);
|
|
26324
26326
|
}
|
|
26325
26327
|
}
|
|
26326
|
-
const Un = 85, wu = 250,
|
|
26328
|
+
const Un = 85, wu = 250, Cg = "CSM", Cn = {
|
|
26327
26329
|
GET_VERSION: 0,
|
|
26328
26330
|
INS_PUBLIC_KEY_SECP256K1: 1,
|
|
26329
26331
|
// Obsolete
|
|
@@ -26333,7 +26335,7 @@ const Un = 85, wu = 250, Ug = "CSM", Cn = {
|
|
|
26333
26335
|
INIT: 0,
|
|
26334
26336
|
ADD: 1,
|
|
26335
26337
|
LAST: 2
|
|
26336
|
-
},
|
|
26338
|
+
}, Vu = {
|
|
26337
26339
|
ONLY_RETRIEVE: 0,
|
|
26338
26340
|
SHOW_ADDRESS_IN_DEVICE: 1
|
|
26339
26341
|
}, fn = {
|
|
@@ -26498,7 +26500,7 @@ async function hh(i, t) {
|
|
|
26498
26500
|
}).catch(ts);
|
|
26499
26501
|
}
|
|
26500
26502
|
async function fh(i, t) {
|
|
26501
|
-
return i.send(Un, Cn.GET_ADDR_SECP256K1,
|
|
26503
|
+
return i.send(Un, Cn.GET_ADDR_SECP256K1, Vu.ONLY_RETRIEVE, 0, t, [
|
|
26502
26504
|
fn.NoError
|
|
26503
26505
|
]).then((e) => {
|
|
26504
26506
|
const r = e.slice(-2), o = r[0] * 256 + r[1], s = Buffer.from(e.slice(0, 33));
|
|
@@ -26514,7 +26516,7 @@ async function gh(i, t) {
|
|
|
26514
26516
|
return i.send(
|
|
26515
26517
|
Un,
|
|
26516
26518
|
Cn.GET_ADDR_SECP256K1,
|
|
26517
|
-
|
|
26519
|
+
Vu.SHOW_ADDRESS_IN_DEVICE,
|
|
26518
26520
|
0,
|
|
26519
26521
|
t,
|
|
26520
26522
|
[fn.NoError]
|
|
@@ -26594,7 +26596,7 @@ class Sn {
|
|
|
26594
26596
|
static getBech32FromPK(t, e) {
|
|
26595
26597
|
if (e.length !== 33)
|
|
26596
26598
|
throw new Error("expected compressed public key [31 bytes]");
|
|
26597
|
-
const r = (void 0)("sha256").update(e).digest(), o = new
|
|
26599
|
+
const r = (void 0)("sha256").update(e).digest(), o = new hp().update(r).digest();
|
|
26598
26600
|
return x.encode(t, x.toWords(o));
|
|
26599
26601
|
}
|
|
26600
26602
|
validateCompatibility() {
|
|
@@ -26642,13 +26644,13 @@ class Sn {
|
|
|
26642
26644
|
return yh(this.transport, t, e);
|
|
26643
26645
|
}
|
|
26644
26646
|
}
|
|
26645
|
-
const Du = 120,
|
|
26647
|
+
const Du = 120, Ku = "1.0.0";
|
|
26646
26648
|
class R extends Error {
|
|
26647
26649
|
constructor(t) {
|
|
26648
26650
|
super(t), this.name = "LedgerError";
|
|
26649
26651
|
}
|
|
26650
26652
|
}
|
|
26651
|
-
class
|
|
26653
|
+
class Hu extends $u {
|
|
26652
26654
|
/**
|
|
26653
26655
|
*
|
|
26654
26656
|
* @param transport transporter for LedgerKey
|
|
@@ -26656,7 +26658,7 @@ class Ku extends Cu {
|
|
|
26656
26658
|
constructor(e) {
|
|
26657
26659
|
super();
|
|
26658
26660
|
p(this, "app");
|
|
26659
|
-
p(this, "path", [44,
|
|
26661
|
+
p(this, "path", [44, Eu, 0, 0, 0]);
|
|
26660
26662
|
this.transport = e, this.app = new Sn(this.transport);
|
|
26661
26663
|
}
|
|
26662
26664
|
/**
|
|
@@ -26672,7 +26674,7 @@ class Ku extends Cu {
|
|
|
26672
26674
|
*/
|
|
26673
26675
|
static async create(e, r) {
|
|
26674
26676
|
e || (e = await Dh());
|
|
26675
|
-
const o = new
|
|
26677
|
+
const o = new Hu(e);
|
|
26676
26678
|
return r != null && (o.path[4] = r), e && typeof e.on == "function" && e.on("disconnect", () => {
|
|
26677
26679
|
o.transport = void 0;
|
|
26678
26680
|
}), await o.initialize().catch(wh), o;
|
|
@@ -26686,7 +26688,7 @@ class Ku extends Cu {
|
|
|
26686
26688
|
if (r !== "Initia")
|
|
26687
26689
|
throw new R("Open the Initia app in the Ledger");
|
|
26688
26690
|
const { major: o, minor: s, patch: n } = this.app.getVersion(), a = `${o}.${s}.${n}`;
|
|
26689
|
-
if (r === "Initia" &&
|
|
26691
|
+
if (r === "Initia" && fp.lt(a, Ku))
|
|
26690
26692
|
throw new R(
|
|
26691
26693
|
"Outdated version: Update Ledger Initia App to the latest version"
|
|
26692
26694
|
);
|
|
@@ -26705,7 +26707,7 @@ class Ku extends Cu {
|
|
|
26705
26707
|
async sign(e) {
|
|
26706
26708
|
this.publicKey || await this.loadAccountDetails();
|
|
26707
26709
|
const r = await this.app.sign(this.path, e);
|
|
26708
|
-
return Cm(r), Buffer.from(
|
|
26710
|
+
return Cm(r), Buffer.from(td(Buffer.from(r.signature)));
|
|
26709
26711
|
}
|
|
26710
26712
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
26711
26713
|
async signWithKeccak256() {
|
|
@@ -26740,7 +26742,7 @@ const wh = (i) => {
|
|
|
26740
26742
|
throw i.name === "TransportOpenUserCancelled" ? new R(
|
|
26741
26743
|
"Couldn't find the Ledger. Check the Ledger is plugged in and unlocked."
|
|
26742
26744
|
) : t.startsWith("No WebUSB interface found for the Ledger device") ? new R(
|
|
26743
|
-
`Couldn't connect to a Ledger device. Use Ledger Live to upgrade the Ledger firmware to version ${
|
|
26745
|
+
`Couldn't connect to a Ledger device. Use Ledger Live to upgrade the Ledger firmware to version ${Ku} or later.`
|
|
26744
26746
|
) : t.startsWith("Unable to claim interface") ? new R(
|
|
26745
26747
|
"Couldn't access Ledger device. Is it being used in another tab?"
|
|
26746
26748
|
) : t.startsWith("Transport not defined") ? new R(
|
|
@@ -26806,8 +26808,8 @@ async function Dh() {
|
|
|
26806
26808
|
export {
|
|
26807
26809
|
is as ABCIParams,
|
|
26808
26810
|
Os as ACL,
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
+
gp as APIRequester,
|
|
26812
|
+
Cg as APP_KEY,
|
|
26811
26813
|
ks as AbsoluteTxPosition,
|
|
26812
26814
|
Tm as AccAddress,
|
|
26813
26815
|
uu as AccPubKey,
|
|
@@ -26819,15 +26821,15 @@ export {
|
|
|
26819
26821
|
Zt as AllowAllMessagesFilter,
|
|
26820
26822
|
Lo as Allowance,
|
|
26821
26823
|
Ke as AllowedMsgAllowance,
|
|
26822
|
-
|
|
26824
|
+
yp as AuctionAPI,
|
|
26823
26825
|
$o as AuctionParams,
|
|
26824
|
-
|
|
26826
|
+
Dp as AuthAPI,
|
|
26825
26827
|
xt as AuthInfo,
|
|
26826
26828
|
Eo as AuthParams,
|
|
26827
26829
|
bn as Authorization,
|
|
26828
26830
|
Pt as AuthorizationGrant,
|
|
26829
|
-
|
|
26830
|
-
|
|
26831
|
+
kp as AuthzAPI,
|
|
26832
|
+
xp as BankAPI,
|
|
26831
26833
|
Oo as BankParams,
|
|
26832
26834
|
ot as BaseAccount,
|
|
26833
26835
|
G as BasicAllowance,
|
|
@@ -26861,7 +26863,7 @@ export {
|
|
|
26861
26863
|
Ns as DenomTrace,
|
|
26862
26864
|
os as DenomUnit,
|
|
26863
26865
|
Pn as Deposit,
|
|
26864
|
-
|
|
26866
|
+
Mp as DistributionAPI,
|
|
26865
26867
|
Ro as DistributionParams,
|
|
26866
26868
|
P as Duration,
|
|
26867
26869
|
fn as ERROR_CODE,
|
|
@@ -26870,53 +26872,53 @@ export {
|
|
|
26870
26872
|
Vt as EthPublicKey,
|
|
26871
26873
|
Rm as EventsByType,
|
|
26872
26874
|
ms as Evidence,
|
|
26873
|
-
|
|
26875
|
+
Sp as EvidenceAPI,
|
|
26874
26876
|
ns as EvidenceParams,
|
|
26875
|
-
|
|
26877
|
+
Ip as EvmAPI,
|
|
26876
26878
|
Fo as EvmParams,
|
|
26877
26879
|
Wt as ExecuteAuthorization,
|
|
26878
26880
|
es as ExecuteAuthorizationItem,
|
|
26879
26881
|
kt as Fee,
|
|
26880
|
-
|
|
26881
|
-
|
|
26882
|
+
Np as FeeGrantAPI,
|
|
26883
|
+
Up as ForwardingAPI,
|
|
26882
26884
|
En as FungibleTokenPacketData,
|
|
26883
26885
|
Ht as GenericAuthorization,
|
|
26884
|
-
|
|
26886
|
+
Cp as GovAPI,
|
|
26885
26887
|
zo as GovParams,
|
|
26886
|
-
|
|
26888
|
+
$p as GroupAPI,
|
|
26887
26889
|
vr as GroupInfo,
|
|
26888
26890
|
An as GroupMember,
|
|
26889
26891
|
hs as GroupPolicyInfo,
|
|
26890
26892
|
Vo as GroupProposal,
|
|
26891
26893
|
Ot as GroupVote,
|
|
26892
26894
|
w as Height,
|
|
26893
|
-
|
|
26895
|
+
Eu as INIT_COIN_TYPE,
|
|
26894
26896
|
Cn as INS,
|
|
26895
|
-
|
|
26897
|
+
Ep as IbcAPI,
|
|
26896
26898
|
Fs as IbcChannelParams,
|
|
26897
26899
|
_s as IbcClientParams,
|
|
26898
26900
|
qs as IbcConnectionParams,
|
|
26899
26901
|
Tt as IbcFee,
|
|
26900
|
-
|
|
26902
|
+
Bp as IbcHooksAPI,
|
|
26901
26903
|
Ko as IbcHooksParams,
|
|
26902
|
-
|
|
26904
|
+
Op as IbcNftAPI,
|
|
26903
26905
|
Ho as IbcNftParams,
|
|
26904
|
-
|
|
26905
|
-
|
|
26906
|
+
Rp as IbcPermAPI,
|
|
26907
|
+
Tp as IbcTransferAPI,
|
|
26906
26908
|
Y as IbcVersion,
|
|
26907
26909
|
Dn as IdentifiedClientState,
|
|
26908
26910
|
Ls as IdentifiedConnection,
|
|
26909
26911
|
On as IdentifiedPacketFees,
|
|
26910
|
-
|
|
26912
|
+
Fp as InterTxAPI,
|
|
26911
26913
|
m as JSONSerializable,
|
|
26912
|
-
|
|
26913
|
-
|
|
26914
|
+
$u as Key,
|
|
26915
|
+
Ig as LCDClient,
|
|
26914
26916
|
R as LedgerError,
|
|
26915
|
-
|
|
26917
|
+
Hu as LedgerKey,
|
|
26916
26918
|
Ct as LegacyAminoMultisigPublicKey,
|
|
26917
|
-
|
|
26919
|
+
Ng as LocalInitia,
|
|
26918
26920
|
H as Market,
|
|
26919
|
-
|
|
26921
|
+
Lp as MarketmapAPI,
|
|
26920
26922
|
Go as MarketmapParams,
|
|
26921
26923
|
Jt as MaxCallsLimit,
|
|
26922
26924
|
Qt as MaxFundsLimit,
|
|
@@ -26928,7 +26930,7 @@ export {
|
|
|
26928
26930
|
et as MnemonicKey,
|
|
26929
26931
|
M as ModeInfo,
|
|
26930
26932
|
$t as ModuleAccount,
|
|
26931
|
-
|
|
26933
|
+
qp as MoveAPI,
|
|
26932
26934
|
Wo as MoveParams,
|
|
26933
26935
|
U as Msg,
|
|
26934
26936
|
js as MsgAcknowledgement,
|
|
@@ -27088,20 +27090,20 @@ export {
|
|
|
27088
27090
|
zr as MsgWhitelist,
|
|
27089
27091
|
Ce as MsgWithdrawDelegatorReward,
|
|
27090
27092
|
$e as MsgWithdrawValidatorCommission,
|
|
27091
|
-
|
|
27093
|
+
zp as MstakingAPI,
|
|
27092
27094
|
jo as MstakingParams,
|
|
27093
27095
|
xg as MultiSignature,
|
|
27094
27096
|
Ts as NftClassTrace,
|
|
27095
27097
|
Tn as NonFungibleTokenPacketData,
|
|
27096
27098
|
dn as OpValidator,
|
|
27097
|
-
|
|
27099
|
+
Vp as OpchildAPI,
|
|
27098
27100
|
Qo as OpchildParams,
|
|
27099
|
-
|
|
27101
|
+
Kp as OphostAPI,
|
|
27100
27102
|
Jo as OphostParams,
|
|
27101
|
-
|
|
27103
|
+
Hp as OracleAPI,
|
|
27102
27104
|
kg as OrderBy,
|
|
27103
27105
|
Nt as Output,
|
|
27104
|
-
|
|
27106
|
+
Vu as P1_VALUES,
|
|
27105
27107
|
Um as PAYLOAD_TYPE,
|
|
27106
27108
|
tt as Packet,
|
|
27107
27109
|
Ft as PacketFee,
|
|
@@ -27117,31 +27119,32 @@ export {
|
|
|
27117
27119
|
bt as PublicKey,
|
|
27118
27120
|
Gt as PublishAuthorization,
|
|
27119
27121
|
kn as QuotePrice,
|
|
27122
|
+
Cu as RESTClient,
|
|
27120
27123
|
zm as RawKey,
|
|
27121
27124
|
dt as Redelegation,
|
|
27122
|
-
|
|
27125
|
+
Gp as RewardAPI,
|
|
27123
27126
|
Yo as RewardParams,
|
|
27124
27127
|
cs as RewardWeight,
|
|
27125
27128
|
Kt as SendAuthorization,
|
|
27126
27129
|
At as SendEnabled,
|
|
27127
|
-
|
|
27130
|
+
Ap as SignDoc,
|
|
27128
27131
|
T as SignatureV2,
|
|
27129
27132
|
st as SignerInfo,
|
|
27130
27133
|
q as SimplePublicKey,
|
|
27131
27134
|
qm as SimulateResponse,
|
|
27132
|
-
|
|
27135
|
+
Wp as SlashingAPI,
|
|
27133
27136
|
Zo as SlashingParams,
|
|
27134
27137
|
lt as StakeAuthorization,
|
|
27135
27138
|
ut as StakeAuthorizationValidators,
|
|
27136
|
-
|
|
27139
|
+
Og as State,
|
|
27137
27140
|
jt as StoreCodeAuthorization,
|
|
27138
27141
|
qo as TallyResult,
|
|
27139
|
-
|
|
27142
|
+
jp as TendermintAPI,
|
|
27140
27143
|
tr as TextProposal,
|
|
27141
27144
|
ir as ThresholdDecisionPolicy,
|
|
27142
27145
|
ws as Ticker,
|
|
27143
27146
|
ys as Timeout,
|
|
27144
|
-
|
|
27147
|
+
Jp as TokenfactoryAPI,
|
|
27145
27148
|
Xo as TokenfactoryParams,
|
|
27146
27149
|
Ms as TransferAuthorization,
|
|
27147
27150
|
K as Tx,
|
|
@@ -27150,7 +27153,7 @@ export {
|
|
|
27150
27153
|
Nn as TxInfo,
|
|
27151
27154
|
hn as TxLog,
|
|
27152
27155
|
X as UnbondingDelegation,
|
|
27153
|
-
|
|
27156
|
+
Yp as UpgradeAPI,
|
|
27154
27157
|
du as ValAddress,
|
|
27155
27158
|
pu as ValConsAddress,
|
|
27156
27159
|
F as ValConsPublicKey,
|
|
@@ -27158,21 +27161,21 @@ export {
|
|
|
27158
27161
|
B as Validator,
|
|
27159
27162
|
as as ValidatorParams,
|
|
27160
27163
|
ds as Vote,
|
|
27161
|
-
|
|
27162
|
-
|
|
27164
|
+
Xp as Wallet,
|
|
27165
|
+
Zp as WasmAPI,
|
|
27163
27166
|
Bo as WasmParams,
|
|
27164
|
-
|
|
27167
|
+
Ug as WebSocketClient,
|
|
27165
27168
|
J as WeightedVoteOption,
|
|
27166
27169
|
Mg as bcs,
|
|
27167
27170
|
Ds as checkDecimal,
|
|
27168
27171
|
$m as hashToHex,
|
|
27169
27172
|
Sg as isTxError,
|
|
27170
|
-
|
|
27173
|
+
vp as keccak256,
|
|
27171
27174
|
b as num,
|
|
27172
27175
|
Wn as prepareSignBytes,
|
|
27173
|
-
|
|
27174
|
-
|
|
27176
|
+
_p as removeNull,
|
|
27177
|
+
bp as ripemd160,
|
|
27175
27178
|
Lm as sha256,
|
|
27176
|
-
|
|
27177
|
-
|
|
27179
|
+
Tg as stateFromJSON,
|
|
27180
|
+
Rg as stateToJSON
|
|
27178
27181
|
};
|