@initia/initia.js 0.2.25 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.d.ts +1 -1
- package/dist/core/ibc/applications/transfer/msgs/MsgTransfer.d.ts +1 -1
- package/dist/core/wasm/msgs/MsgExecuteContract.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgInstantiateContract.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgInstantiateContractV2.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgMigrateContract.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgStoreAndInstantiateContract.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgStoreAndMigrateContract.d.ts +2 -2
- package/dist/core/wasm/msgs/MsgSudoContract.d.ts +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +755 -727
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10,15 +10,15 @@ import { Any as f } from "@initia/initia.proto/google/protobuf/any";
|
|
|
10
10
|
import { MsgAuctionBid as vi, MsgUpdateParams as wi } from "@initia/initia.proto/sdk/auction/v1/tx";
|
|
11
11
|
import { Params as wp } from "@initia/initia.proto/sdk/auction/v1/genesis";
|
|
12
12
|
import { Duration as Pp } from "@initia/initia.proto/google/protobuf/duration";
|
|
13
|
-
import { Params as
|
|
14
|
-
import { MsgUpdateParams as
|
|
13
|
+
import { Params as bp, BaseAccount as Pi, ModuleAccount as bi } from "@initia/initia.proto/cosmos/auth/v1beta1/auth";
|
|
14
|
+
import { MsgUpdateParams as Ai } from "@initia/initia.proto/cosmos/auth/v1beta1/tx";
|
|
15
15
|
import * as Pa from "secp256k1";
|
|
16
|
-
import { signatureImport as
|
|
16
|
+
import { signatureImport as Ap } from "secp256k1";
|
|
17
17
|
import { SHA256 as Pl } from "jscrypto/SHA256";
|
|
18
18
|
import { RIPEMD160 as Dp } from "jscrypto/RIPEMD160";
|
|
19
19
|
import { Base64 as kp } from "jscrypto/Base64";
|
|
20
20
|
import { Word32Array as dd, SHA256 as xp } from "jscrypto";
|
|
21
|
-
import
|
|
21
|
+
import bl from "keccak256";
|
|
22
22
|
import { LegacyAminoPubKey as Di } from "@initia/initia.proto/cosmos/crypto/multisig/keys";
|
|
23
23
|
import { PubKey as ki } from "@initia/initia.proto/cosmos/crypto/secp256k1/keys";
|
|
24
24
|
import { PubKey as xi } from "@initia/initia.proto/cosmos/crypto/ed25519/keys";
|
|
@@ -28,9 +28,9 @@ import { AuthorizationType as Mp, authorizationTypeFromJSON as Td, authorization
|
|
|
28
28
|
import { SendAuthorization as Si } from "@initia/initia.proto/cosmos/bank/v1beta1/authz";
|
|
29
29
|
import { GenericAuthorization as Bi, Grant as Sp } from "@initia/initia.proto/cosmos/authz/v1beta1/authz";
|
|
30
30
|
import { PublishAuthorization as Ei, ExecuteAuthorization as Ui } from "@initia/initia.proto/initia/move/v1/authz";
|
|
31
|
-
import { ExecuteAuthorizationItem as Bp, UpgradePolicy as
|
|
32
|
-
import { CodeGrant as Cp, StoreCodeAuthorization as Ci, MaxCallsLimit as $i, MaxFundsLimit as
|
|
33
|
-
import { AccessType as
|
|
31
|
+
import { ExecuteAuthorizationItem as Bp, UpgradePolicy as Oa, Params as Ep, upgradePolicyFromJSON as Ld, upgradePolicyToJSON as Hd, Module as Up } from "@initia/initia.proto/initia/move/v1/types";
|
|
32
|
+
import { CodeGrant as Cp, StoreCodeAuthorization as Ci, MaxCallsLimit as $i, MaxFundsLimit as Ni, CombinedLimit as Oi, AllowAllMessagesFilter as Fi, AcceptedMessageKeysFilter as Ti, AcceptedMessagesFilter as Ri, ContractGrant as $p, ContractExecutionAuthorization as Li, ContractMigrationAuthorization as Hi } from "@initia/initia.proto/cosmwasm/wasm/v1/authz";
|
|
33
|
+
import { AccessType as Np, accessTypeFromJSON as ri, accessTypeToJSON as oi, AccessConfig as Op, Params as Fp, AbsoluteTxPosition as Tp, contractCodeHistoryOperationTypeFromJSON as Rp } from "@initia/initia.proto/cosmwasm/wasm/v1/types";
|
|
34
34
|
import { MsgStoreCode as zi, MsgInstantiateContract as qi, MsgInstantiateContract2 as Vi, MsgExecuteContract as Ki, MsgMigrateContract as Wi, MsgUpdateAdmin as ji, MsgClearAdmin as Gi, MsgUpdateInstantiateConfig as Ji, MsgUpdateParams as Zi, MsgSudoContract as Yi, MsgPinCodes as Xi, MsgUnpinCodes as Qi, MsgStoreAndInstantiateContract as tc, MsgStoreAndMigrateContract as ec, MsgAddCodeUploadParamsAddresses as rc, MsgRemoveCodeUploadParamsAddresses as oc, MsgUpdateContractLabel as sc } from "@initia/initia.proto/cosmwasm/wasm/v1/tx";
|
|
35
35
|
import { Allocation as Lp, TransferAuthorization as nc } from "@initia/initia.proto/ibc/applications/transfer/v1/authz";
|
|
36
36
|
import { MsgTransfer as ac, MsgUpdateParams as ic } from "@initia/initia.proto/ibc/applications/transfer/v1/tx";
|
|
@@ -43,13 +43,13 @@ import { Input as Jp, Output as Zp, SendEnabled as Yp, Params as Xp, DenomUnit a
|
|
|
43
43
|
import { MsgSetDenomMetadata as fc } from "@initia/initia.proto/initia/bank/v1/tx";
|
|
44
44
|
import { MsgPayForBlobs as gc } from "@initia/initia.proto/celestia/blob/v1/tx";
|
|
45
45
|
import { Blob as eh, BlobTx as zd } from "@initia/initia.proto/celestia/blob/v1/blob";
|
|
46
|
-
import { SignMode as zt, signModeFromJSON as
|
|
46
|
+
import { SignMode as zt, signModeFromJSON as Al, signModeToJSON as Dl } from "@initia/initia.proto/cosmos/tx/signing/v1beta1/signing";
|
|
47
47
|
import { Fee as rh, Tx as Ga, TxBody as qd, AuthInfo as Vd, SignerInfo as oh, ModeInfo as sh, ModeInfo_Single as nh, ModeInfo_Multi as ah, SignDoc as Kd } from "@initia/initia.proto/cosmos/tx/v1beta1/tx";
|
|
48
48
|
import { CompactBitArray as ih, MultiSignature as Wd } from "@initia/initia.proto/cosmos/crypto/multisig/v1beta1/multisig";
|
|
49
49
|
import { BlockParams as ch, EvidenceParams as mh, ValidatorParams as uh, ABCIParams as dh } from "@initia/initia.proto/tendermint/types/params";
|
|
50
50
|
import { MsgUpdateParams as yc } from "@initia/initia.proto/cosmos/consensus/v1/tx";
|
|
51
51
|
import { MsgVerifyInvariant as jd, MsgUpdateParams as _c } from "@initia/initia.proto/cosmos/crisis/v1beta1/tx";
|
|
52
|
-
import { MsgSetWithdrawAddress as vc, MsgWithdrawDelegatorReward as wc, MsgWithdrawValidatorCommission as Pc, MsgFundCommunityPool as
|
|
52
|
+
import { MsgSetWithdrawAddress as vc, MsgWithdrawDelegatorReward as wc, MsgWithdrawValidatorCommission as Pc, MsgFundCommunityPool as bc, MsgCommunityPoolSpend as Ac } from "@initia/initia.proto/cosmos/distribution/v1beta1/tx";
|
|
53
53
|
import { RewardWeight as lh, Params as ph } from "@initia/initia.proto/initia/distribution/v1/distribution";
|
|
54
54
|
import { MsgUpdateParams as Dc, MsgDepositValidatorRewardsPool as kc } from "@initia/initia.proto/initia/distribution/v1/tx";
|
|
55
55
|
import { MsgSubmitEvidence as xc } from "@initia/initia.proto/cosmos/evidence/v1beta1/tx";
|
|
@@ -57,16 +57,16 @@ import { Equivocation as Mc } from "@initia/initia.proto/cosmos/evidence/v1beta1
|
|
|
57
57
|
import { AccessTuple as hh, Params as fh } from "@initia/initia.proto/minievm/evm/v1/types";
|
|
58
58
|
import { MsgCreate as Ic, MsgCreate2 as Sc, MsgCall as Bc, MsgUpdateParams as Ec } from "@initia/initia.proto/minievm/evm/v1/tx";
|
|
59
59
|
import { BasicAllowance as Uc, PeriodicAllowance as Cc, AllowedMsgAllowance as $c } from "@initia/initia.proto/cosmos/feegrant/v1beta1/feegrant";
|
|
60
|
-
import { MsgGrantAllowance as
|
|
61
|
-
import { MsgRegisterAccount as
|
|
60
|
+
import { MsgGrantAllowance as Nc, MsgRevokeAllowance as Oc } from "@initia/initia.proto/cosmos/feegrant/v1beta1/tx";
|
|
61
|
+
import { MsgRegisterAccount as Fc, MsgClearAccount as Tc } from "@initia/initia.proto/noble/forwarding/v1/tx";
|
|
62
62
|
import { MsgCancelProposal as Rc, MsgDeposit as Lc, MsgSubmitProposal as Hc, MsgVote as zc, MsgVoteWeighted as qc } from "@initia/initia.proto/cosmos/gov/v1/tx";
|
|
63
63
|
import { MsgDeposit as Vc, MsgSubmitProposal as Kc, MsgVote as Wc, MsgVoteWeighted as jc } from "@initia/initia.proto/cosmos/gov/v1beta1/tx";
|
|
64
64
|
import { ParamChange as gh, ParameterChangeProposal as Gc } from "@initia/initia.proto/cosmos/params/v1beta1/params";
|
|
65
65
|
import { TextProposal as Jc, VoteOption as yh } from "@initia/initia.proto/cosmos/gov/v1beta1/gov";
|
|
66
|
-
import { TallyResult as _h, ProposalStatus as vh, proposalStatusFromJSON as Gd, proposalStatusToJSON as Jd, VoteOption as kl, Vote as wh, WeightedVoteOption as Ph, Deposit as
|
|
67
|
-
import { TallyResult as
|
|
66
|
+
import { TallyResult as _h, ProposalStatus as vh, proposalStatusFromJSON as Gd, proposalStatusToJSON as Jd, VoteOption as kl, Vote as wh, WeightedVoteOption as Ph, Deposit as bh } from "@initia/initia.proto/cosmos/gov/v1/gov";
|
|
67
|
+
import { TallyResult as Ah, Proposal as Dh, Vesting as kh, Params as xh } from "@initia/initia.proto/initia/gov/v1/gov";
|
|
68
68
|
import { MsgUpdateParams as Zc } from "@initia/initia.proto/initia/gov/v1/tx";
|
|
69
|
-
import { GroupMember as Mh, Member as Ih, MemberRequest as Sh, DecisionPolicyWindows as Bh, ThresholdDecisionPolicy as Yc, PercentageDecisionPolicy as Xc, VoteOption as xl, voteOptionFromJSON as si, voteOptionToJSON as ni, GroupInfo as Eh, GroupPolicyInfo as Uh, ProposalStatus as Ch, ProposalExecutorResult as $h, proposalStatusFromJSON as Zd, proposalExecutorResultFromJSON as Yd, proposalStatusToJSON as Xd, proposalExecutorResultToJSON as Qd, TallyResult as
|
|
69
|
+
import { GroupMember as Mh, Member as Ih, MemberRequest as Sh, DecisionPolicyWindows as Bh, ThresholdDecisionPolicy as Yc, PercentageDecisionPolicy as Xc, VoteOption as xl, voteOptionFromJSON as si, voteOptionToJSON as ni, GroupInfo as Eh, GroupPolicyInfo as Uh, ProposalStatus as Ch, ProposalExecutorResult as $h, proposalStatusFromJSON as Zd, proposalExecutorResultFromJSON as Yd, proposalStatusToJSON as Xd, proposalExecutorResultToJSON as Qd, TallyResult as Nh, Proposal as Oh, Vote as Fh } from "@initia/initia.proto/cosmos/group/v1/types";
|
|
70
70
|
import { MsgCreateGroup as Qc, MsgCreateGroupPolicy as tm, MsgCreateGroupWithPolicy as em, MsgExec as rm, Exec as Ml, execFromJSON as ai, execToJSON as ii, MsgVote as om, MsgLeaveGroup as sm, MsgSubmitProposal as nm, MsgUpdateGroupAdmin as am, MsgUpdateGroupPolicyDecisionPolicy as im, MsgUpdateGroupMembers as cm, MsgUpdateGroupMetadata as mm, MsgUpdateGroupPolicyAdmin as um, MsgUpdateGroupPolicyMetadata as dm } from "@initia/initia.proto/cosmos/group/v1/tx";
|
|
71
71
|
import { MsgPayPacketFee as lm, MsgPayPacketFeeAsync as pm, MsgRegisterPayee as hm, MsgRegisterCounterpartyPayee as fm } from "@initia/initia.proto/ibc/applications/fee/v1/tx";
|
|
72
72
|
import { Fee as Th, PacketFee as Rh } from "@initia/initia.proto/ibc/applications/fee/v1/fee";
|
|
@@ -78,8 +78,8 @@ import { MsgTransfer as _m, MsgUpdateParams as vm } from "@initia/initia.proto/i
|
|
|
78
78
|
import { Params as Jh, ClassTrace as Zh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/types";
|
|
79
79
|
import { NonFungibleTokenPacketData as Yh } from "@initia/initia.proto/ibc/applications/nft_transfer/v1/packet";
|
|
80
80
|
import { MsgUpdateAdmin as wm, MsgUpdatePermissionedRelayers as Pm } from "@initia/initia.proto/ibc/applications/perm/v1/tx";
|
|
81
|
-
import { MsgChannelOpenInit as
|
|
82
|
-
import { MsgCreateClient as Cm, MsgUpdateClient as $m, MsgUpgradeClient as
|
|
81
|
+
import { MsgChannelOpenInit as bm, MsgChannelOpenTry as Am, MsgChannelOpenConfirm as Dm, MsgChannelOpenAck as km, MsgChannelCloseInit as xm, MsgChannelCloseConfirm as Mm, MsgRecvPacket as Im, MsgAcknowledgement as Sm, MsgTimeout as Bm, MsgTimeoutOnClose as Em, MsgUpdateParams as Um } from "@initia/initia.proto/ibc/core/channel/v1/tx";
|
|
82
|
+
import { MsgCreateClient as Cm, MsgUpdateClient as $m, MsgUpgradeClient as Nm, MsgSubmitMisbehaviour as Om, MsgRecoverClient as Fm, MsgIBCSoftwareUpgrade as Tm, MsgUpdateParams as Rm } from "@initia/initia.proto/ibc/core/client/v1/tx";
|
|
83
83
|
import { Plan as Xh } from "@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade";
|
|
84
84
|
import { MsgSoftwareUpgrade as Lm, MsgCancelUpgrade as Hm } from "@initia/initia.proto/cosmos/upgrade/v1beta1/tx";
|
|
85
85
|
import { MerklePrefix as Qh, MerkleRoot as tf } from "@initia/initia.proto/ibc/core/commitment/v1/commitment";
|
|
@@ -95,17 +95,17 @@ import { ProviderConfig as cf, Ticker as mf, Market as uf } from "@initia/initia
|
|
|
95
95
|
import { Params as df } from "@initia/initia.proto/connect/marketmap/v2/params";
|
|
96
96
|
import { MsgPublish as ru, MsgExecute as ou, MsgExecuteJSON as su, MsgScript as nu, MsgScriptJSON as au, MsgUpdateParams as iu, MsgWhitelist as cu, MsgDelist as mu, MsgGovExecute as uu, MsgGovExecuteJSON as du, MsgGovPublish as lu, MsgGovScript as pu, MsgGovScriptJSON as hu } from "@initia/initia.proto/initia/move/v1/tx";
|
|
97
97
|
import { MsgDelegate as fu, MsgUndelegate as gu, MsgBeginRedelegate as yu, MsgCreateValidator as _u, MsgEditValidator as vu, MsgCancelUnbondingDelegation as wu, MsgUpdateParams as Pu } from "@initia/initia.proto/initia/mstaking/v1/tx";
|
|
98
|
-
import { BondStatus as lf, Validator as pf, Description as hf, CommissionRates as ff, Commission as gf, Params as yf, DelegationResponse as _f, Delegation as vf, RedelegationResponse as wf, Redelegation as Pf, RedelegationEntryResponse as
|
|
99
|
-
import { MsgAddValidator as
|
|
98
|
+
import { BondStatus as lf, Validator as pf, Description as hf, CommissionRates as ff, Commission as gf, Params as yf, DelegationResponse as _f, Delegation as vf, RedelegationResponse as wf, Redelegation as Pf, RedelegationEntryResponse as bf, RedelegationEntry as Af, UnbondingDelegation as Df, UnbondingDelegationEntry as kf } from "@initia/initia.proto/initia/mstaking/v1/staking";
|
|
99
|
+
import { MsgAddValidator as bu, MsgRemoveValidator as Au, MsgFinalizeTokenDeposit as Du, MsgInitiateTokenWithdrawal as ku, MsgExecuteMessages as xu, MsgSpendFeePool as Mu, MsgSetBridgeInfo as Iu, MsgUpdateOracle as Su, MsgUpdateParams as Bu } from "@initia/opinit.proto/opinit/opchild/v1/tx";
|
|
100
100
|
import { BridgeInfo as xf, Params as Mf, Validator as If } from "@initia/opinit.proto/opinit/opchild/v1/types";
|
|
101
|
-
import { MsgRecordBatch as Eu, MsgCreateBridge as Uu, MsgProposeOutput as Cu, MsgDeleteOutput as $u, MsgInitiateTokenDeposit as
|
|
101
|
+
import { MsgRecordBatch as Eu, MsgCreateBridge as Uu, MsgProposeOutput as Cu, MsgDeleteOutput as $u, MsgInitiateTokenDeposit as Nu, MsgFinalizeTokenWithdrawal as Ou, MsgUpdateProposer as Fu, MsgUpdateChallenger as Tu, MsgUpdateBatchInfo as Ru, MsgUpdateOracleConfig as Lu, MsgUpdateMetadata as Hu, MsgUpdateParams as zu } from "@initia/opinit.proto/opinit/ophost/v1/tx";
|
|
102
102
|
import { batchInfo_ChainTypeFromJSON as rl, batchInfo_ChainTypeToJSON as ol, BatchInfo as Sf, BridgeConfig as Bf, Params as Ef, Output as Uf, BatchInfoWithOutput as Cf } from "@initia/opinit.proto/opinit/ophost/v1/types";
|
|
103
103
|
import { Params as $f } from "@initia/initia.proto/initia/reward/v1/types";
|
|
104
104
|
import { MsgUpdateParams as qu } from "@initia/initia.proto/initia/reward/v1/tx";
|
|
105
105
|
import { MsgUnjail as Vu, MsgUpdateParams as Ku } from "@initia/initia.proto/cosmos/slashing/v1beta1/tx";
|
|
106
|
-
import { Params as
|
|
106
|
+
import { Params as Nf, ValidatorSigningInfo as Of } from "@initia/initia.proto/cosmos/slashing/v1beta1/slashing";
|
|
107
107
|
import { MsgCreateDenom as Wu, MsgMint as ju, MsgBurn as Gu, MsgChangeAdmin as Ju, MsgSetDenomMetadata as Zu, MsgSetBeforeSendHook as Yu, MsgForceTransfer as Xu, MsgUpdateParams as Qu } from "@initia/initia.proto/miniwasm/tokenfactory/v1/tx";
|
|
108
|
-
import { Params as
|
|
108
|
+
import { Params as Ff } from "@initia/initia.proto/miniwasm/tokenfactory/v1/params";
|
|
109
109
|
import { ABCIMessageLog as Tf } from "@initia/initia.proto/cosmos/base/abci/v1beta1/abci";
|
|
110
110
|
import { bcs as Ht } from "@mysten/bcs";
|
|
111
111
|
import Rf from "ws";
|
|
@@ -184,11 +184,11 @@ function Wf(a) {
|
|
|
184
184
|
{}
|
|
185
185
|
) : a;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function O(a) {
|
|
188
188
|
return new lt(a);
|
|
189
189
|
}
|
|
190
190
|
function kn(a) {
|
|
191
|
-
return typeof a == "string" ? a.includes(".") : !
|
|
191
|
+
return typeof a == "string" ? a.includes(".") : !O(a).isInteger();
|
|
192
192
|
}
|
|
193
193
|
class I extends m {
|
|
194
194
|
/**
|
|
@@ -201,19 +201,19 @@ class I extends m {
|
|
|
201
201
|
super();
|
|
202
202
|
_(this, "amount");
|
|
203
203
|
_(this, "isDecimal");
|
|
204
|
-
this.denom = e, this.amount =
|
|
204
|
+
this.denom = e, this.amount = O(r).toString(), this.isDecimal = kn(r);
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
207
207
|
* Turns the Coin into an Integer coin.
|
|
208
208
|
*/
|
|
209
209
|
toIntCoin() {
|
|
210
|
-
return new I(this.denom,
|
|
210
|
+
return new I(this.denom, O(this.amount).toFixed());
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Turns the Coin into an Integer coin with ceiling the amount.
|
|
214
214
|
*/
|
|
215
215
|
toIntCeilCoin() {
|
|
216
|
-
return new I(this.denom,
|
|
216
|
+
return new I(this.denom, O(this.amount).toFixed(0, 2));
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
219
|
* Turns the Coin into a Decimal coin.
|
|
@@ -221,7 +221,7 @@ class I extends m {
|
|
|
221
221
|
toDecCoin() {
|
|
222
222
|
return new I(
|
|
223
223
|
this.denom,
|
|
224
|
-
this.amount.includes(".") ? this.amount :
|
|
224
|
+
this.amount.includes(".") ? this.amount : O(this.amount).toFixed(1)
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
@@ -230,7 +230,7 @@ class I extends m {
|
|
|
230
230
|
* Eg: `Coin('uinit', 1500) -> 1500uinit`
|
|
231
231
|
*/
|
|
232
232
|
toString() {
|
|
233
|
-
return `${this.isDecimal && !this.amount.includes(".") ?
|
|
233
|
+
return `${this.isDecimal && !this.amount.includes(".") ? O(this.amount).toFixed(1) : O(this.amount).toFixed()}${this.denom}`;
|
|
234
234
|
}
|
|
235
235
|
static fromString(e) {
|
|
236
236
|
const r = e.match(/^(-?[0-9]+(\.[0-9]+)?)([0-9a-zA-Z/]+)$/);
|
|
@@ -253,7 +253,7 @@ class I extends m {
|
|
|
253
253
|
r = e.amount, o = o || e.isDecimal;
|
|
254
254
|
} else
|
|
255
255
|
r = e, o = o || kn(e);
|
|
256
|
-
const s =
|
|
256
|
+
const s = O(this.amount).plus(r);
|
|
257
257
|
return new I(
|
|
258
258
|
this.denom,
|
|
259
259
|
o && s.isInteger() ? s.toFixed(1) : s.toFixed()
|
|
@@ -273,7 +273,7 @@ class I extends m {
|
|
|
273
273
|
r = e.amount, o = o || e.isDecimal;
|
|
274
274
|
} else
|
|
275
275
|
r = e, o = o || kn(e);
|
|
276
|
-
const s =
|
|
276
|
+
const s = O(this.amount).minus(r);
|
|
277
277
|
return new I(
|
|
278
278
|
this.denom,
|
|
279
279
|
o && s.isInteger() ? s.toFixed(1) : s.toFixed()
|
|
@@ -284,7 +284,7 @@ class I extends m {
|
|
|
284
284
|
* @param other
|
|
285
285
|
*/
|
|
286
286
|
mul(e) {
|
|
287
|
-
const r = this.isDecimal || kn(e), o =
|
|
287
|
+
const r = this.isDecimal || kn(e), o = O(this.amount).multipliedBy(e);
|
|
288
288
|
return new I(
|
|
289
289
|
this.denom,
|
|
290
290
|
r && o.isInteger() ? o.toFixed(1) : o.toFixed()
|
|
@@ -295,7 +295,7 @@ class I extends m {
|
|
|
295
295
|
* @param other
|
|
296
296
|
*/
|
|
297
297
|
div(e) {
|
|
298
|
-
const r = this.isDecimal || kn(e), o =
|
|
298
|
+
const r = this.isDecimal || kn(e), o = O(this.amount).dividedBy(e);
|
|
299
299
|
return new I(
|
|
300
300
|
this.denom,
|
|
301
301
|
r && o.isInteger() ? o.toFixed(1) : o.toFixed()
|
|
@@ -306,7 +306,7 @@ class I extends m {
|
|
|
306
306
|
* @param other
|
|
307
307
|
*/
|
|
308
308
|
mod(e) {
|
|
309
|
-
const r = this.isDecimal || kn(e), o =
|
|
309
|
+
const r = this.isDecimal || kn(e), o = O(this.amount).mod(e);
|
|
310
310
|
return new I(
|
|
311
311
|
this.denom,
|
|
312
312
|
r && o.isInteger() ? o.toFixed(1) : o.toFixed()
|
|
@@ -320,7 +320,7 @@ class I extends m {
|
|
|
320
320
|
const { denom: e, amount: r } = this;
|
|
321
321
|
return {
|
|
322
322
|
denom: e,
|
|
323
|
-
amount: this.isDecimal ?
|
|
323
|
+
amount: this.isDecimal ? O(r).toFixed(18) : r
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
static fromData(e) {
|
|
@@ -331,7 +331,7 @@ class I extends m {
|
|
|
331
331
|
const { denom: e, amount: r } = this;
|
|
332
332
|
return {
|
|
333
333
|
denom: e,
|
|
334
|
-
amount: this.isDecimal ?
|
|
334
|
+
amount: this.isDecimal ? O(r).toFixed(18) : r
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
static fromProto(e) {
|
|
@@ -340,7 +340,7 @@ class I extends m {
|
|
|
340
340
|
toProto() {
|
|
341
341
|
return vp.fromPartial({
|
|
342
342
|
denom: this.denom,
|
|
343
|
-
amount: this.isDecimal ?
|
|
343
|
+
amount: this.isDecimal ? O(this.amount).toFixed(18) : this.amount
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -795,7 +795,7 @@ class l extends m {
|
|
|
795
795
|
return this.toArray().map((e) => e.toProto());
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
class
|
|
798
|
+
class F {
|
|
799
799
|
constructor(t, e = 0) {
|
|
800
800
|
_(this, "seconds");
|
|
801
801
|
_(this, "nanos");
|
|
@@ -804,25 +804,25 @@ class O {
|
|
|
804
804
|
}
|
|
805
805
|
static fromString(t) {
|
|
806
806
|
const [e, r] = parseFloat(t.replace("s", "")).toFixed(9).split(".");
|
|
807
|
-
return new
|
|
807
|
+
return new F(parseInt(e), parseInt(r));
|
|
808
808
|
}
|
|
809
809
|
toString() {
|
|
810
810
|
return `${this.nanos / Math.pow(10, 9) + this.seconds}s`;
|
|
811
811
|
}
|
|
812
812
|
static fromAmino(t) {
|
|
813
|
-
return
|
|
813
|
+
return F.fromString(t);
|
|
814
814
|
}
|
|
815
815
|
toAmino() {
|
|
816
816
|
return this.toString();
|
|
817
817
|
}
|
|
818
818
|
static fromData(t) {
|
|
819
|
-
return
|
|
819
|
+
return F.fromString(t);
|
|
820
820
|
}
|
|
821
821
|
toData() {
|
|
822
822
|
return this.toString();
|
|
823
823
|
}
|
|
824
824
|
static fromProto(t) {
|
|
825
|
-
return new
|
|
825
|
+
return new F(Number(t.seconds), t.nanos);
|
|
826
826
|
}
|
|
827
827
|
toProto() {
|
|
828
828
|
return Pp.fromPartial({
|
|
@@ -929,7 +929,7 @@ class ys extends m {
|
|
|
929
929
|
sig_verify_cost_ed25519: o,
|
|
930
930
|
sig_verify_cost_secp256k1: s
|
|
931
931
|
} = this;
|
|
932
|
-
return
|
|
932
|
+
return bp.fromPartial({
|
|
933
933
|
maxMemoCharacters: BigInt(t),
|
|
934
934
|
txSigLimit: BigInt(e),
|
|
935
935
|
txSizeCostPerByte: BigInt(r),
|
|
@@ -982,7 +982,7 @@ class xe extends m {
|
|
|
982
982
|
}
|
|
983
983
|
toProto() {
|
|
984
984
|
const { authority: t, params: e } = this;
|
|
985
|
-
return
|
|
985
|
+
return Ai.fromPartial({
|
|
986
986
|
authority: t,
|
|
987
987
|
params: e.toProto()
|
|
988
988
|
});
|
|
@@ -990,12 +990,12 @@ class xe extends m {
|
|
|
990
990
|
packAny() {
|
|
991
991
|
return f.fromPartial({
|
|
992
992
|
typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams",
|
|
993
|
-
value:
|
|
993
|
+
value: Ai.encode(this.toProto()).finish()
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
static unpackAny(t) {
|
|
997
997
|
return xe.fromProto(
|
|
998
|
-
|
|
998
|
+
Ai.decode(t.value)
|
|
999
999
|
);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
@@ -1006,7 +1006,7 @@ function ld(a) {
|
|
|
1006
1006
|
return Pl.hash(new dd(a)).toUint8Array();
|
|
1007
1007
|
}
|
|
1008
1008
|
function Gf(a) {
|
|
1009
|
-
return
|
|
1009
|
+
return bl(Buffer.from(a));
|
|
1010
1010
|
}
|
|
1011
1011
|
function Jf(a) {
|
|
1012
1012
|
return Dp.hash(new dd(a)).toUint8Array();
|
|
@@ -1450,7 +1450,7 @@ class pe extends m {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
toProto() {
|
|
1452
1452
|
const { base_account: t, name: e, permissions: r } = this;
|
|
1453
|
-
return
|
|
1453
|
+
return bi.fromPartial({
|
|
1454
1454
|
baseAccount: t.toProto(),
|
|
1455
1455
|
name: e,
|
|
1456
1456
|
permissions: r
|
|
@@ -1459,11 +1459,11 @@ class pe extends m {
|
|
|
1459
1459
|
packAny() {
|
|
1460
1460
|
return f.fromPartial({
|
|
1461
1461
|
typeUrl: "/cosmos.auth.v1beta1.ModuleAccount",
|
|
1462
|
-
value:
|
|
1462
|
+
value: bi.encode(this.toProto()).finish()
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
1465
1465
|
static unpackAny(t) {
|
|
1466
|
-
return pe.fromProto(
|
|
1466
|
+
return pe.fromProto(bi.decode(t.value));
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
var nd;
|
|
@@ -1910,14 +1910,14 @@ class X extends m {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
toProto() {
|
|
1912
1912
|
const { permission: t, addresses: e } = this;
|
|
1913
|
-
return
|
|
1913
|
+
return Op.fromPartial({
|
|
1914
1914
|
permission: t,
|
|
1915
1915
|
addresses: e
|
|
1916
1916
|
});
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
((a) => {
|
|
1920
|
-
a.Type =
|
|
1920
|
+
a.Type = Np;
|
|
1921
1921
|
})(X || (X = {}));
|
|
1922
1922
|
class js extends m {
|
|
1923
1923
|
/**
|
|
@@ -2090,16 +2090,16 @@ class Ce extends m {
|
|
|
2090
2090
|
return new Ce(l.fromProto(e.amounts));
|
|
2091
2091
|
}
|
|
2092
2092
|
toProto() {
|
|
2093
|
-
return
|
|
2093
|
+
return Ni.fromPartial({ amounts: this.amounts.toProto() });
|
|
2094
2094
|
}
|
|
2095
2095
|
packAny() {
|
|
2096
2096
|
return f.fromPartial({
|
|
2097
2097
|
typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
|
|
2098
|
-
value:
|
|
2098
|
+
value: Ni.encode(this.toProto()).finish()
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
2101
|
static unpackAny(e) {
|
|
2102
|
-
return Ce.fromProto(
|
|
2102
|
+
return Ce.fromProto(Ni.decode(e.value));
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
class $e extends m {
|
|
@@ -2151,7 +2151,7 @@ class $e extends m {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
toProto() {
|
|
2153
2153
|
const { calls_remaining: e, amounts: r } = this;
|
|
2154
|
-
return
|
|
2154
|
+
return Oi.fromPartial({
|
|
2155
2155
|
callsRemaining: BigInt(e),
|
|
2156
2156
|
amounts: r.toProto()
|
|
2157
2157
|
});
|
|
@@ -2159,14 +2159,14 @@ class $e extends m {
|
|
|
2159
2159
|
packAny() {
|
|
2160
2160
|
return f.fromPartial({
|
|
2161
2161
|
typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
|
|
2162
|
-
value:
|
|
2162
|
+
value: Oi.encode(this.toProto()).finish()
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
2165
|
static unpackAny(e) {
|
|
2166
|
-
return $e.fromProto(
|
|
2166
|
+
return $e.fromProto(Oi.decode(e.value));
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
|
-
var
|
|
2169
|
+
var ba;
|
|
2170
2170
|
((a) => {
|
|
2171
2171
|
function t(o) {
|
|
2172
2172
|
switch (o.type) {
|
|
@@ -2203,13 +2203,13 @@ var Aa;
|
|
|
2203
2203
|
throw new Error(`ContractLimit type ${s} not recognized`);
|
|
2204
2204
|
}
|
|
2205
2205
|
a.fromProto = r;
|
|
2206
|
-
})(
|
|
2207
|
-
class
|
|
2206
|
+
})(ba || (ba = {}));
|
|
2207
|
+
class Ne extends m {
|
|
2208
2208
|
constructor() {
|
|
2209
2209
|
super();
|
|
2210
2210
|
}
|
|
2211
2211
|
static fromAmino(t) {
|
|
2212
|
-
return new
|
|
2212
|
+
return new Ne();
|
|
2213
2213
|
}
|
|
2214
2214
|
toAmino() {
|
|
2215
2215
|
return {
|
|
@@ -2218,7 +2218,7 @@ class Fe extends m {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
}
|
|
2220
2220
|
static fromData(t) {
|
|
2221
|
-
return new
|
|
2221
|
+
return new Ne();
|
|
2222
2222
|
}
|
|
2223
2223
|
toData() {
|
|
2224
2224
|
return {
|
|
@@ -2226,24 +2226,24 @@ class Fe extends m {
|
|
|
2226
2226
|
};
|
|
2227
2227
|
}
|
|
2228
2228
|
static fromProto(t) {
|
|
2229
|
-
return new
|
|
2229
|
+
return new Ne();
|
|
2230
2230
|
}
|
|
2231
2231
|
toProto() {
|
|
2232
|
-
return
|
|
2232
|
+
return Fi.fromPartial({});
|
|
2233
2233
|
}
|
|
2234
2234
|
packAny() {
|
|
2235
2235
|
return f.fromPartial({
|
|
2236
2236
|
typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
|
|
2237
|
-
value:
|
|
2237
|
+
value: Fi.encode(this.toProto()).finish()
|
|
2238
2238
|
});
|
|
2239
2239
|
}
|
|
2240
2240
|
static unpackAny(t) {
|
|
2241
|
-
return
|
|
2242
|
-
|
|
2241
|
+
return Ne.fromProto(
|
|
2242
|
+
Fi.decode(t.value)
|
|
2243
2243
|
);
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
class
|
|
2246
|
+
class Oe extends m {
|
|
2247
2247
|
/**
|
|
2248
2248
|
* @param keys the list of unique keys
|
|
2249
2249
|
*/
|
|
@@ -2251,7 +2251,7 @@ class Ne extends m {
|
|
|
2251
2251
|
super(), this.keys = t;
|
|
2252
2252
|
}
|
|
2253
2253
|
static fromAmino(t) {
|
|
2254
|
-
return new
|
|
2254
|
+
return new Oe(t.value.keys);
|
|
2255
2255
|
}
|
|
2256
2256
|
toAmino() {
|
|
2257
2257
|
return {
|
|
@@ -2260,7 +2260,7 @@ class Ne extends m {
|
|
|
2260
2260
|
};
|
|
2261
2261
|
}
|
|
2262
2262
|
static fromData(t) {
|
|
2263
|
-
return new
|
|
2263
|
+
return new Oe(t.keys);
|
|
2264
2264
|
}
|
|
2265
2265
|
toData() {
|
|
2266
2266
|
return {
|
|
@@ -2269,7 +2269,7 @@ class Ne extends m {
|
|
|
2269
2269
|
};
|
|
2270
2270
|
}
|
|
2271
2271
|
static fromProto(t) {
|
|
2272
|
-
return new
|
|
2272
|
+
return new Oe(t.keys);
|
|
2273
2273
|
}
|
|
2274
2274
|
toProto() {
|
|
2275
2275
|
return Ti.fromPartial({ keys: this.keys });
|
|
@@ -2281,12 +2281,12 @@ class Ne extends m {
|
|
|
2281
2281
|
});
|
|
2282
2282
|
}
|
|
2283
2283
|
static unpackAny(t) {
|
|
2284
|
-
return
|
|
2284
|
+
return Oe.fromProto(
|
|
2285
2285
|
Ti.decode(t.value)
|
|
2286
2286
|
);
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
class
|
|
2289
|
+
class Fe extends m {
|
|
2290
2290
|
/**
|
|
2291
2291
|
* @param keys the list of raw contract messages
|
|
2292
2292
|
*/
|
|
@@ -2294,7 +2294,7 @@ class Oe extends m {
|
|
|
2294
2294
|
super(), this.messages = t;
|
|
2295
2295
|
}
|
|
2296
2296
|
static fromAmino(t) {
|
|
2297
|
-
return new
|
|
2297
|
+
return new Fe(t.value.messages);
|
|
2298
2298
|
}
|
|
2299
2299
|
toAmino() {
|
|
2300
2300
|
return {
|
|
@@ -2303,7 +2303,7 @@ class Oe extends m {
|
|
|
2303
2303
|
};
|
|
2304
2304
|
}
|
|
2305
2305
|
static fromData(t) {
|
|
2306
|
-
return new
|
|
2306
|
+
return new Fe(t.messages);
|
|
2307
2307
|
}
|
|
2308
2308
|
toData() {
|
|
2309
2309
|
return {
|
|
@@ -2312,7 +2312,7 @@ class Oe extends m {
|
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
2314
|
static fromProto(t) {
|
|
2315
|
-
return new
|
|
2315
|
+
return new Fe(
|
|
2316
2316
|
t.messages.map((e) => Buffer.from(e).toString("base64"))
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
@@ -2328,32 +2328,32 @@ class Oe extends m {
|
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
2330
|
static unpackAny(t) {
|
|
2331
|
-
return
|
|
2331
|
+
return Fe.fromProto(
|
|
2332
2332
|
Ri.decode(t.value)
|
|
2333
2333
|
);
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
|
-
var
|
|
2336
|
+
var Aa;
|
|
2337
2337
|
((a) => {
|
|
2338
2338
|
function t(o) {
|
|
2339
2339
|
switch (o.type) {
|
|
2340
2340
|
case "wasm/AllowAllMessagesFilter":
|
|
2341
|
-
return Fe.fromAmino(o);
|
|
2342
|
-
case "wasm/AcceptedMessageKeysFilter":
|
|
2343
2341
|
return Ne.fromAmino(o);
|
|
2344
|
-
case "wasm/
|
|
2342
|
+
case "wasm/AcceptedMessageKeysFilter":
|
|
2345
2343
|
return Oe.fromAmino(o);
|
|
2344
|
+
case "wasm/AcceptedMessagesFilter":
|
|
2345
|
+
return Fe.fromAmino(o);
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
a.fromAmino = t;
|
|
2349
2349
|
function e(o) {
|
|
2350
2350
|
switch (o["@type"]) {
|
|
2351
2351
|
case "/cosmwasm.wasm.v1.AllowAllMessagesFilter":
|
|
2352
|
-
return Fe.fromData(o);
|
|
2353
|
-
case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
|
|
2354
2352
|
return Ne.fromData(o);
|
|
2355
|
-
case "/cosmwasm.wasm.v1.
|
|
2353
|
+
case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
|
|
2356
2354
|
return Oe.fromData(o);
|
|
2355
|
+
case "/cosmwasm.wasm.v1.AcceptedMessagesFilter":
|
|
2356
|
+
return Fe.fromData(o);
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
a.fromData = e;
|
|
@@ -2361,16 +2361,16 @@ var ba;
|
|
|
2361
2361
|
const s = o.typeUrl;
|
|
2362
2362
|
switch (s) {
|
|
2363
2363
|
case "/cosmwasm.wasm.v1.AllowAllMessagesFilter":
|
|
2364
|
-
return Fe.unpackAny(o);
|
|
2365
|
-
case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
|
|
2366
2364
|
return Ne.unpackAny(o);
|
|
2367
|
-
case "/cosmwasm.wasm.v1.
|
|
2365
|
+
case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
|
|
2368
2366
|
return Oe.unpackAny(o);
|
|
2367
|
+
case "/cosmwasm.wasm.v1.AcceptedMessagesFilter":
|
|
2368
|
+
return Fe.unpackAny(o);
|
|
2369
2369
|
}
|
|
2370
2370
|
throw new Error(`ContractFilter type ${s} not recognized`);
|
|
2371
2371
|
}
|
|
2372
2372
|
a.fromProto = r;
|
|
2373
|
-
})(
|
|
2373
|
+
})(Aa || (Aa = {}));
|
|
2374
2374
|
class te extends m {
|
|
2375
2375
|
/**
|
|
2376
2376
|
* @param contract the bech32 address of the smart contract
|
|
@@ -2384,8 +2384,8 @@ class te extends m {
|
|
|
2384
2384
|
const { contract: e, limit: r, filter: o } = t;
|
|
2385
2385
|
return new te(
|
|
2386
2386
|
e,
|
|
2387
|
-
|
|
2388
|
-
|
|
2387
|
+
ba.fromAmino(r),
|
|
2388
|
+
Aa.fromAmino(o)
|
|
2389
2389
|
);
|
|
2390
2390
|
}
|
|
2391
2391
|
toAmino() {
|
|
@@ -2400,8 +2400,8 @@ class te extends m {
|
|
|
2400
2400
|
const { contract: e, limit: r, filter: o } = t;
|
|
2401
2401
|
return new te(
|
|
2402
2402
|
e,
|
|
2403
|
-
|
|
2404
|
-
|
|
2403
|
+
ba.fromData(r),
|
|
2404
|
+
Aa.fromData(o)
|
|
2405
2405
|
);
|
|
2406
2406
|
}
|
|
2407
2407
|
toData() {
|
|
@@ -2415,8 +2415,8 @@ class te extends m {
|
|
|
2415
2415
|
static fromProto(t) {
|
|
2416
2416
|
return new te(
|
|
2417
2417
|
t.contract,
|
|
2418
|
-
|
|
2419
|
-
|
|
2418
|
+
ba.fromProto(t.limit),
|
|
2419
|
+
Aa.fromProto(t.filter)
|
|
2420
2420
|
);
|
|
2421
2421
|
}
|
|
2422
2422
|
toProto() {
|
|
@@ -2625,7 +2625,7 @@ class He extends m {
|
|
|
2625
2625
|
o,
|
|
2626
2626
|
parseInt(s),
|
|
2627
2627
|
n,
|
|
2628
|
-
i,
|
|
2628
|
+
Buffer.from(JSON.stringify(i)).toString("base64"),
|
|
2629
2629
|
l.fromAmino(c)
|
|
2630
2630
|
);
|
|
2631
2631
|
}
|
|
@@ -2638,7 +2638,7 @@ class He extends m {
|
|
|
2638
2638
|
admin: r,
|
|
2639
2639
|
code_id: o.toFixed(),
|
|
2640
2640
|
label: s,
|
|
2641
|
-
msg: n,
|
|
2641
|
+
msg: JSON.parse(Buffer.from(n, "base64").toString()),
|
|
2642
2642
|
funds: i.toAmino()
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
@@ -2650,7 +2650,7 @@ class He extends m {
|
|
|
2650
2650
|
o,
|
|
2651
2651
|
parseInt(s),
|
|
2652
2652
|
n,
|
|
2653
|
-
i,
|
|
2653
|
+
Buffer.from(JSON.stringify(i)).toString("base64"),
|
|
2654
2654
|
l.fromData(c)
|
|
2655
2655
|
);
|
|
2656
2656
|
}
|
|
@@ -2662,7 +2662,7 @@ class He extends m {
|
|
|
2662
2662
|
admin: r,
|
|
2663
2663
|
code_id: o.toFixed(),
|
|
2664
2664
|
label: s,
|
|
2665
|
-
msg: n,
|
|
2665
|
+
msg: JSON.parse(Buffer.from(n, "base64").toString()),
|
|
2666
2666
|
funds: i.toData()
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
@@ -2724,7 +2724,7 @@ class ze extends m {
|
|
|
2724
2724
|
o,
|
|
2725
2725
|
parseInt(s),
|
|
2726
2726
|
n,
|
|
2727
|
-
i,
|
|
2727
|
+
Buffer.from(JSON.stringify(i)).toString("base64"),
|
|
2728
2728
|
l.fromAmino(c),
|
|
2729
2729
|
d,
|
|
2730
2730
|
g
|
|
@@ -2739,7 +2739,7 @@ class ze extends m {
|
|
|
2739
2739
|
admin: r,
|
|
2740
2740
|
code_id: o.toFixed(),
|
|
2741
2741
|
label: s,
|
|
2742
|
-
msg: n,
|
|
2742
|
+
msg: JSON.parse(Buffer.from(n, "base64").toString()),
|
|
2743
2743
|
funds: i.toAmino(),
|
|
2744
2744
|
salt: c,
|
|
2745
2745
|
fix_msg: d
|
|
@@ -2753,7 +2753,7 @@ class ze extends m {
|
|
|
2753
2753
|
o,
|
|
2754
2754
|
parseInt(s),
|
|
2755
2755
|
n,
|
|
2756
|
-
i,
|
|
2756
|
+
Buffer.from(JSON.stringify(i)).toString("base64"),
|
|
2757
2757
|
l.fromData(c),
|
|
2758
2758
|
d,
|
|
2759
2759
|
g
|
|
@@ -2767,7 +2767,7 @@ class ze extends m {
|
|
|
2767
2767
|
admin: r,
|
|
2768
2768
|
code_id: o.toFixed(),
|
|
2769
2769
|
label: s,
|
|
2770
|
-
msg: n,
|
|
2770
|
+
msg: JSON.parse(Buffer.from(n, "base64").toString()),
|
|
2771
2771
|
funds: i.toData(),
|
|
2772
2772
|
salt: c,
|
|
2773
2773
|
fix_msg: d
|
|
@@ -2826,7 +2826,12 @@ class qe extends m {
|
|
|
2826
2826
|
const {
|
|
2827
2827
|
value: { sender: r, contract: o, msg: s, funds: n }
|
|
2828
2828
|
} = e;
|
|
2829
|
-
return new qe(
|
|
2829
|
+
return new qe(
|
|
2830
|
+
r,
|
|
2831
|
+
o,
|
|
2832
|
+
Buffer.from(JSON.stringify(s)).toString("base64"),
|
|
2833
|
+
l.fromAmino(n)
|
|
2834
|
+
);
|
|
2830
2835
|
}
|
|
2831
2836
|
toAmino() {
|
|
2832
2837
|
const { sender: e, contract: r, msg: o, funds: s } = this;
|
|
@@ -2835,14 +2840,19 @@ class qe extends m {
|
|
|
2835
2840
|
value: {
|
|
2836
2841
|
sender: e,
|
|
2837
2842
|
contract: r,
|
|
2838
|
-
msg: o,
|
|
2843
|
+
msg: JSON.parse(Buffer.from(o, "base64").toString()),
|
|
2839
2844
|
funds: s.toAmino()
|
|
2840
2845
|
}
|
|
2841
2846
|
};
|
|
2842
2847
|
}
|
|
2843
2848
|
static fromData(e) {
|
|
2844
2849
|
const { sender: r, contract: o, msg: s, funds: n } = e;
|
|
2845
|
-
return new qe(
|
|
2850
|
+
return new qe(
|
|
2851
|
+
r,
|
|
2852
|
+
o,
|
|
2853
|
+
Buffer.from(JSON.stringify(s)).toString("base64"),
|
|
2854
|
+
l.fromData(n)
|
|
2855
|
+
);
|
|
2846
2856
|
}
|
|
2847
2857
|
toData() {
|
|
2848
2858
|
const { sender: e, contract: r, msg: o, funds: s } = this;
|
|
@@ -2850,7 +2860,7 @@ class qe extends m {
|
|
|
2850
2860
|
"@type": "/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2851
2861
|
sender: e,
|
|
2852
2862
|
contract: r,
|
|
2853
|
-
msg: o,
|
|
2863
|
+
msg: JSON.parse(Buffer.from(o, "base64").toString()),
|
|
2854
2864
|
funds: s.toData()
|
|
2855
2865
|
};
|
|
2856
2866
|
}
|
|
@@ -2897,7 +2907,12 @@ class Ve extends m {
|
|
|
2897
2907
|
const {
|
|
2898
2908
|
value: { sender: e, contract: r, code_id: o, msg: s }
|
|
2899
2909
|
} = t;
|
|
2900
|
-
return new Ve(
|
|
2910
|
+
return new Ve(
|
|
2911
|
+
e,
|
|
2912
|
+
r,
|
|
2913
|
+
parseInt(o),
|
|
2914
|
+
Buffer.from(JSON.stringify(s)).toString("base64")
|
|
2915
|
+
);
|
|
2901
2916
|
}
|
|
2902
2917
|
toAmino() {
|
|
2903
2918
|
const { sender: t, contract: e, code_id: r, msg: o } = this;
|
|
@@ -2907,13 +2922,18 @@ class Ve extends m {
|
|
|
2907
2922
|
sender: t,
|
|
2908
2923
|
contract: e,
|
|
2909
2924
|
code_id: r.toFixed(),
|
|
2910
|
-
msg: o
|
|
2925
|
+
msg: JSON.parse(Buffer.from(o, "base64").toString())
|
|
2911
2926
|
}
|
|
2912
2927
|
};
|
|
2913
2928
|
}
|
|
2914
2929
|
static fromData(t) {
|
|
2915
2930
|
const { sender: e, contract: r, code_id: o, msg: s } = t;
|
|
2916
|
-
return new Ve(
|
|
2931
|
+
return new Ve(
|
|
2932
|
+
e,
|
|
2933
|
+
r,
|
|
2934
|
+
parseInt(o),
|
|
2935
|
+
Buffer.from(JSON.stringify(s)).toString("base64")
|
|
2936
|
+
);
|
|
2917
2937
|
}
|
|
2918
2938
|
toData() {
|
|
2919
2939
|
const { sender: t, contract: e, code_id: r, msg: o } = this;
|
|
@@ -2922,7 +2942,7 @@ class Ve extends m {
|
|
|
2922
2942
|
sender: t,
|
|
2923
2943
|
contract: e,
|
|
2924
2944
|
code_id: r.toFixed(),
|
|
2925
|
-
msg: o
|
|
2945
|
+
msg: JSON.parse(Buffer.from(o, "base64").toString())
|
|
2926
2946
|
};
|
|
2927
2947
|
}
|
|
2928
2948
|
static fromProto(t) {
|
|
@@ -3200,7 +3220,7 @@ class _s extends m {
|
|
|
3200
3220
|
}
|
|
3201
3221
|
toProto() {
|
|
3202
3222
|
const { code_upload_access: t, instantiate_default_permission: e } = this;
|
|
3203
|
-
return
|
|
3223
|
+
return Fp.fromPartial({
|
|
3204
3224
|
codeUploadAccess: t.toProto(),
|
|
3205
3225
|
instantiateDefaultPermission: e
|
|
3206
3226
|
});
|
|
@@ -3280,7 +3300,11 @@ class Je extends m {
|
|
|
3280
3300
|
const {
|
|
3281
3301
|
value: { authority: e, contract: r, msg: o }
|
|
3282
3302
|
} = t;
|
|
3283
|
-
return new Je(
|
|
3303
|
+
return new Je(
|
|
3304
|
+
e,
|
|
3305
|
+
r,
|
|
3306
|
+
Buffer.from(JSON.stringify(o)).toString("base64")
|
|
3307
|
+
);
|
|
3284
3308
|
}
|
|
3285
3309
|
toAmino() {
|
|
3286
3310
|
const { authority: t, contract: e, msg: r } = this;
|
|
@@ -3289,13 +3313,17 @@ class Je extends m {
|
|
|
3289
3313
|
value: {
|
|
3290
3314
|
authority: t,
|
|
3291
3315
|
contract: e,
|
|
3292
|
-
msg: r
|
|
3316
|
+
msg: JSON.parse(Buffer.from(r, "base64").toString())
|
|
3293
3317
|
}
|
|
3294
3318
|
};
|
|
3295
3319
|
}
|
|
3296
3320
|
static fromData(t) {
|
|
3297
3321
|
const { authority: e, contract: r, msg: o } = t;
|
|
3298
|
-
return new Je(
|
|
3322
|
+
return new Je(
|
|
3323
|
+
e,
|
|
3324
|
+
r,
|
|
3325
|
+
Buffer.from(JSON.stringify(o)).toString("base64")
|
|
3326
|
+
);
|
|
3299
3327
|
}
|
|
3300
3328
|
toData() {
|
|
3301
3329
|
const { authority: t, contract: e, msg: r } = this;
|
|
@@ -3303,7 +3331,7 @@ class Je extends m {
|
|
|
3303
3331
|
"@type": "/cosmwasm.wasm.v1.MsgSudoContract",
|
|
3304
3332
|
authority: t,
|
|
3305
3333
|
contract: e,
|
|
3306
|
-
msg: r
|
|
3334
|
+
msg: JSON.parse(Buffer.from(r, "base64").toString())
|
|
3307
3335
|
};
|
|
3308
3336
|
}
|
|
3309
3337
|
static fromProto(t) {
|
|
@@ -3463,10 +3491,10 @@ class Xe extends m {
|
|
|
3463
3491
|
* @param builder the docker image used to build the code deterministically, used for smart contract verification
|
|
3464
3492
|
* @param code_hash the SHA256 sum of the code outputted by builder, used for smart contract verification
|
|
3465
3493
|
*/
|
|
3466
|
-
constructor(e, r, o, s, n, i, c, d, g, v,
|
|
3494
|
+
constructor(e, r, o, s, n, i, c, d, g, v, A) {
|
|
3467
3495
|
super();
|
|
3468
3496
|
_(this, "funds");
|
|
3469
|
-
this.authority = e, this.wasm_byte_code = r, this.instantiate_permission = o, this.unpin_code = s, this.admin = n, this.label = i, this.msg = c, this.source = g, this.builder = v, this.code_hash =
|
|
3497
|
+
this.authority = e, this.wasm_byte_code = r, this.instantiate_permission = o, this.unpin_code = s, this.admin = n, this.label = i, this.msg = c, this.source = g, this.builder = v, this.code_hash = A, this.funds = new l(d);
|
|
3470
3498
|
}
|
|
3471
3499
|
static fromAmino(e) {
|
|
3472
3500
|
const {
|
|
@@ -3480,7 +3508,7 @@ class Xe extends m {
|
|
|
3480
3508
|
msg: d,
|
|
3481
3509
|
funds: g,
|
|
3482
3510
|
source: v,
|
|
3483
|
-
builder:
|
|
3511
|
+
builder: A,
|
|
3484
3512
|
code_hash: k
|
|
3485
3513
|
}
|
|
3486
3514
|
} = e;
|
|
@@ -3491,10 +3519,10 @@ class Xe extends m {
|
|
|
3491
3519
|
n,
|
|
3492
3520
|
i,
|
|
3493
3521
|
c,
|
|
3494
|
-
d,
|
|
3522
|
+
Buffer.from(JSON.stringify(d)).toString("base64"),
|
|
3495
3523
|
l.fromAmino(g),
|
|
3496
3524
|
v,
|
|
3497
|
-
|
|
3525
|
+
A,
|
|
3498
3526
|
k
|
|
3499
3527
|
);
|
|
3500
3528
|
}
|
|
@@ -3510,7 +3538,7 @@ class Xe extends m {
|
|
|
3510
3538
|
funds: d,
|
|
3511
3539
|
source: g,
|
|
3512
3540
|
builder: v,
|
|
3513
|
-
code_hash:
|
|
3541
|
+
code_hash: A
|
|
3514
3542
|
} = this;
|
|
3515
3543
|
return {
|
|
3516
3544
|
type: "wasm/MsgStoreAndInstantiateContract",
|
|
@@ -3521,11 +3549,11 @@ class Xe extends m {
|
|
|
3521
3549
|
unpin_code: s,
|
|
3522
3550
|
admin: n,
|
|
3523
3551
|
label: i,
|
|
3524
|
-
msg: c,
|
|
3552
|
+
msg: JSON.parse(Buffer.from(c, "base64").toString()),
|
|
3525
3553
|
funds: d.toAmino(),
|
|
3526
3554
|
source: g,
|
|
3527
3555
|
builder: v,
|
|
3528
|
-
code_hash:
|
|
3556
|
+
code_hash: A
|
|
3529
3557
|
}
|
|
3530
3558
|
};
|
|
3531
3559
|
}
|
|
@@ -3540,7 +3568,7 @@ class Xe extends m {
|
|
|
3540
3568
|
msg: d,
|
|
3541
3569
|
funds: g,
|
|
3542
3570
|
source: v,
|
|
3543
|
-
builder:
|
|
3571
|
+
builder: A,
|
|
3544
3572
|
code_hash: k
|
|
3545
3573
|
} = e;
|
|
3546
3574
|
return new Xe(
|
|
@@ -3550,10 +3578,10 @@ class Xe extends m {
|
|
|
3550
3578
|
n,
|
|
3551
3579
|
i,
|
|
3552
3580
|
c,
|
|
3553
|
-
d,
|
|
3581
|
+
Buffer.from(JSON.stringify(d)).toString("base64"),
|
|
3554
3582
|
l.fromData(g),
|
|
3555
3583
|
v,
|
|
3556
|
-
|
|
3584
|
+
A,
|
|
3557
3585
|
k
|
|
3558
3586
|
);
|
|
3559
3587
|
}
|
|
@@ -3569,7 +3597,7 @@ class Xe extends m {
|
|
|
3569
3597
|
funds: d,
|
|
3570
3598
|
source: g,
|
|
3571
3599
|
builder: v,
|
|
3572
|
-
code_hash:
|
|
3600
|
+
code_hash: A
|
|
3573
3601
|
} = this;
|
|
3574
3602
|
return {
|
|
3575
3603
|
"@type": "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
|
|
@@ -3579,11 +3607,11 @@ class Xe extends m {
|
|
|
3579
3607
|
unpin_code: s,
|
|
3580
3608
|
admin: n,
|
|
3581
3609
|
label: i,
|
|
3582
|
-
msg: c,
|
|
3610
|
+
msg: JSON.parse(Buffer.from(c, "base64").toString()),
|
|
3583
3611
|
funds: d.toData(),
|
|
3584
3612
|
source: g,
|
|
3585
3613
|
builder: v,
|
|
3586
|
-
code_hash:
|
|
3614
|
+
code_hash: A
|
|
3587
3615
|
};
|
|
3588
3616
|
}
|
|
3589
3617
|
static fromProto(e) {
|
|
@@ -3613,7 +3641,7 @@ class Xe extends m {
|
|
|
3613
3641
|
funds: d,
|
|
3614
3642
|
source: g,
|
|
3615
3643
|
builder: v,
|
|
3616
|
-
code_hash:
|
|
3644
|
+
code_hash: A
|
|
3617
3645
|
} = this;
|
|
3618
3646
|
return tc.fromPartial({
|
|
3619
3647
|
authority: e,
|
|
@@ -3626,7 +3654,7 @@ class Xe extends m {
|
|
|
3626
3654
|
funds: d.toProto(),
|
|
3627
3655
|
source: g,
|
|
3628
3656
|
builder: v,
|
|
3629
|
-
codeHash: Buffer.from(
|
|
3657
|
+
codeHash: Buffer.from(A, "base64")
|
|
3630
3658
|
});
|
|
3631
3659
|
}
|
|
3632
3660
|
packAny() {
|
|
@@ -3667,7 +3695,7 @@ class Qe extends m {
|
|
|
3667
3695
|
r,
|
|
3668
3696
|
o ? X.fromAmino(o) : void 0,
|
|
3669
3697
|
s,
|
|
3670
|
-
n
|
|
3698
|
+
Buffer.from(JSON.stringify(n)).toString("base64")
|
|
3671
3699
|
);
|
|
3672
3700
|
}
|
|
3673
3701
|
toAmino() {
|
|
@@ -3679,7 +3707,7 @@ class Qe extends m {
|
|
|
3679
3707
|
wasm_byte_code: e,
|
|
3680
3708
|
instantiate_permission: r == null ? void 0 : r.toAmino(),
|
|
3681
3709
|
contract: o,
|
|
3682
|
-
msg: s
|
|
3710
|
+
msg: JSON.parse(Buffer.from(s, "base64").toString())
|
|
3683
3711
|
}
|
|
3684
3712
|
};
|
|
3685
3713
|
}
|
|
@@ -3690,7 +3718,7 @@ class Qe extends m {
|
|
|
3690
3718
|
r,
|
|
3691
3719
|
o ? X.fromData(o) : void 0,
|
|
3692
3720
|
s,
|
|
3693
|
-
n
|
|
3721
|
+
Buffer.from(JSON.stringify(n)).toString("base64")
|
|
3694
3722
|
);
|
|
3695
3723
|
}
|
|
3696
3724
|
toData() {
|
|
@@ -3701,7 +3729,7 @@ class Qe extends m {
|
|
|
3701
3729
|
wasm_byte_code: e,
|
|
3702
3730
|
instantiate_permission: r == null ? void 0 : r.toData(),
|
|
3703
3731
|
contract: o,
|
|
3704
|
-
msg: s
|
|
3732
|
+
msg: JSON.parse(Buffer.from(s, "base64").toString())
|
|
3705
3733
|
};
|
|
3706
3734
|
}
|
|
3707
3735
|
static fromProto(t) {
|
|
@@ -4204,7 +4232,7 @@ class or extends m {
|
|
|
4204
4232
|
s ? I.fromAmino(s) : void 0,
|
|
4205
4233
|
n,
|
|
4206
4234
|
i,
|
|
4207
|
-
|
|
4235
|
+
U.fromAmino(c),
|
|
4208
4236
|
d,
|
|
4209
4237
|
g
|
|
4210
4238
|
);
|
|
@@ -4228,9 +4256,9 @@ class or extends m {
|
|
|
4228
4256
|
token: o == null ? void 0 : o.toAmino(),
|
|
4229
4257
|
sender: s,
|
|
4230
4258
|
receiver: n,
|
|
4231
|
-
timeout_height: i == null ? void 0 : i.toAmino(),
|
|
4259
|
+
timeout_height: (i == null ? void 0 : i.toAmino()) ?? {},
|
|
4232
4260
|
timeout_timestamp: c,
|
|
4233
|
-
memo: d
|
|
4261
|
+
memo: d === "" ? void 0 : d
|
|
4234
4262
|
}
|
|
4235
4263
|
};
|
|
4236
4264
|
}
|
|
@@ -5764,7 +5792,7 @@ class se extends m {
|
|
|
5764
5792
|
}
|
|
5765
5793
|
toAmino() {
|
|
5766
5794
|
return {
|
|
5767
|
-
gas:
|
|
5795
|
+
gas: O(this.gas_limit).toFixed(),
|
|
5768
5796
|
amount: this.amount.toAmino()
|
|
5769
5797
|
};
|
|
5770
5798
|
}
|
|
@@ -5897,7 +5925,7 @@ class nt {
|
|
|
5897
5925
|
this.mode = n, this.signature = i;
|
|
5898
5926
|
}
|
|
5899
5927
|
static fromData(n) {
|
|
5900
|
-
return new r(
|
|
5928
|
+
return new r(Al(n.mode), n.signature);
|
|
5901
5929
|
}
|
|
5902
5930
|
toData() {
|
|
5903
5931
|
const { mode: n, signature: i } = this;
|
|
@@ -5994,7 +6022,7 @@ class ht {
|
|
|
5994
6022
|
appendEmptySignatures(t) {
|
|
5995
6023
|
t.forEach((e) => {
|
|
5996
6024
|
let r;
|
|
5997
|
-
e.publicKey ? e.publicKey instanceof de ? r = new
|
|
6025
|
+
e.publicKey ? e.publicKey instanceof de ? r = new Nt(
|
|
5998
6026
|
e.publicKey,
|
|
5999
6027
|
e.sequenceNumber,
|
|
6000
6028
|
new J(
|
|
@@ -6003,13 +6031,13 @@ class ht {
|
|
|
6003
6031
|
[]
|
|
6004
6032
|
)
|
|
6005
6033
|
)
|
|
6006
|
-
) : r = new
|
|
6034
|
+
) : r = new Nt(
|
|
6007
6035
|
e.publicKey,
|
|
6008
6036
|
e.sequenceNumber,
|
|
6009
6037
|
new J(
|
|
6010
6038
|
new J.Single(J.SignMode.SIGN_MODE_DIRECT)
|
|
6011
6039
|
)
|
|
6012
|
-
) : r = new
|
|
6040
|
+
) : r = new Nt(
|
|
6013
6041
|
new dt(""),
|
|
6014
6042
|
e.sequenceNumber,
|
|
6015
6043
|
new J(new J.Single(J.SignMode.SIGN_MODE_DIRECT))
|
|
@@ -6023,7 +6051,7 @@ class ht {
|
|
|
6023
6051
|
for (const e of t) {
|
|
6024
6052
|
const [r, o] = e.data.toModeInfoAndSignature();
|
|
6025
6053
|
this.signatures.push(Buffer.from(o).toString("base64")), this.auth_info.signer_infos.push(
|
|
6026
|
-
new
|
|
6054
|
+
new Nt(e.public_key, e.sequence, r)
|
|
6027
6055
|
);
|
|
6028
6056
|
}
|
|
6029
6057
|
}
|
|
@@ -6079,7 +6107,7 @@ class ne {
|
|
|
6079
6107
|
}
|
|
6080
6108
|
static fromData(t) {
|
|
6081
6109
|
return new ne(
|
|
6082
|
-
t.signer_infos.map((e) =>
|
|
6110
|
+
t.signer_infos.map((e) => Nt.fromData(e)),
|
|
6083
6111
|
se.fromData(t.fee)
|
|
6084
6112
|
);
|
|
6085
6113
|
}
|
|
@@ -6091,7 +6119,7 @@ class ne {
|
|
|
6091
6119
|
}
|
|
6092
6120
|
static fromProto(t) {
|
|
6093
6121
|
return new ne(
|
|
6094
|
-
t.signerInfos.map((e) =>
|
|
6122
|
+
t.signerInfos.map((e) => Nt.fromProto(e)),
|
|
6095
6123
|
se.fromProto(t.fee)
|
|
6096
6124
|
);
|
|
6097
6125
|
}
|
|
@@ -6105,7 +6133,7 @@ class ne {
|
|
|
6105
6133
|
return Vd.encode(this.toProto()).finish();
|
|
6106
6134
|
}
|
|
6107
6135
|
}
|
|
6108
|
-
class
|
|
6136
|
+
class Nt {
|
|
6109
6137
|
/**
|
|
6110
6138
|
* @param public_key the public key of the signer
|
|
6111
6139
|
* @param sequence the number of committed transactions signed by a given address
|
|
@@ -6115,7 +6143,7 @@ class Ft {
|
|
|
6115
6143
|
this.public_key = t, this.sequence = e, this.mode_info = r;
|
|
6116
6144
|
}
|
|
6117
6145
|
static fromData(t) {
|
|
6118
|
-
return new
|
|
6146
|
+
return new Nt(
|
|
6119
6147
|
Qt.fromData(t.public_key ?? new dt("").toData()),
|
|
6120
6148
|
parseInt(t.sequence),
|
|
6121
6149
|
J.fromData(t.mode_info)
|
|
@@ -6130,7 +6158,7 @@ class Ft {
|
|
|
6130
6158
|
};
|
|
6131
6159
|
}
|
|
6132
6160
|
static fromProto(t) {
|
|
6133
|
-
return new
|
|
6161
|
+
return new Nt(
|
|
6134
6162
|
Qt.fromProto(t.publicKey ?? new dt("").packAny()),
|
|
6135
6163
|
Number(t.sequence),
|
|
6136
6164
|
J.fromProto(t.modeInfo)
|
|
@@ -6189,7 +6217,7 @@ class J {
|
|
|
6189
6217
|
this.mode = o;
|
|
6190
6218
|
}
|
|
6191
6219
|
static fromData(o) {
|
|
6192
|
-
return new t(
|
|
6220
|
+
return new t(Al(o.mode));
|
|
6193
6221
|
}
|
|
6194
6222
|
toData() {
|
|
6195
6223
|
return {
|
|
@@ -6337,7 +6365,7 @@ class Ys extends m {
|
|
|
6337
6365
|
const { max_age_num_blocks: e, max_age_duration: r, max_bytes: o } = t;
|
|
6338
6366
|
return new Ys(
|
|
6339
6367
|
parseInt(e),
|
|
6340
|
-
|
|
6368
|
+
F.fromAmino(r),
|
|
6341
6369
|
parseInt(o)
|
|
6342
6370
|
);
|
|
6343
6371
|
}
|
|
@@ -6353,7 +6381,7 @@ class Ys extends m {
|
|
|
6353
6381
|
const { max_age_num_blocks: e, max_age_duration: r, max_bytes: o } = t;
|
|
6354
6382
|
return new Ys(
|
|
6355
6383
|
parseInt(e),
|
|
6356
|
-
|
|
6384
|
+
F.fromData(r),
|
|
6357
6385
|
parseInt(o)
|
|
6358
6386
|
);
|
|
6359
6387
|
}
|
|
@@ -6368,7 +6396,7 @@ class Ys extends m {
|
|
|
6368
6396
|
static fromProto(t) {
|
|
6369
6397
|
return new Ys(
|
|
6370
6398
|
Number(t.maxAgeNumBlocks),
|
|
6371
|
-
|
|
6399
|
+
F.fromProto(t.maxAgeDuration),
|
|
6372
6400
|
Number(t.maxBytes)
|
|
6373
6401
|
);
|
|
6374
6402
|
}
|
|
@@ -6877,7 +6905,7 @@ class yr extends m {
|
|
|
6877
6905
|
}
|
|
6878
6906
|
toProto() {
|
|
6879
6907
|
const { depositor: e, amount: r } = this;
|
|
6880
|
-
return
|
|
6908
|
+
return bc.fromPartial({
|
|
6881
6909
|
amount: r.toProto(),
|
|
6882
6910
|
depositor: e
|
|
6883
6911
|
});
|
|
@@ -6885,12 +6913,12 @@ class yr extends m {
|
|
|
6885
6913
|
packAny() {
|
|
6886
6914
|
return f.fromPartial({
|
|
6887
6915
|
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
6888
|
-
value:
|
|
6916
|
+
value: bc.encode(this.toProto()).finish()
|
|
6889
6917
|
});
|
|
6890
6918
|
}
|
|
6891
6919
|
static unpackAny(e) {
|
|
6892
6920
|
return yr.fromProto(
|
|
6893
|
-
|
|
6921
|
+
bc.decode(e.value)
|
|
6894
6922
|
);
|
|
6895
6923
|
}
|
|
6896
6924
|
}
|
|
@@ -7123,7 +7151,7 @@ class vr extends m {
|
|
|
7123
7151
|
}
|
|
7124
7152
|
toProto() {
|
|
7125
7153
|
const { authority: e, recipient: r, amount: o } = this;
|
|
7126
|
-
return
|
|
7154
|
+
return Ac.fromPartial({
|
|
7127
7155
|
authority: e,
|
|
7128
7156
|
recipient: r,
|
|
7129
7157
|
amount: o.toProto()
|
|
@@ -7132,12 +7160,12 @@ class vr extends m {
|
|
|
7132
7160
|
packAny() {
|
|
7133
7161
|
return f.fromPartial({
|
|
7134
7162
|
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
7135
|
-
value:
|
|
7163
|
+
value: Ac.encode(this.toProto()).finish()
|
|
7136
7164
|
});
|
|
7137
7165
|
}
|
|
7138
7166
|
static unpackAny(e) {
|
|
7139
7167
|
return vr.fromProto(
|
|
7140
|
-
|
|
7168
|
+
Ac.decode(e.value)
|
|
7141
7169
|
);
|
|
7142
7170
|
}
|
|
7143
7171
|
}
|
|
@@ -7329,7 +7357,7 @@ var en;
|
|
|
7329
7357
|
}
|
|
7330
7358
|
a.fromProto = r;
|
|
7331
7359
|
})(en || (en = {}));
|
|
7332
|
-
class
|
|
7360
|
+
class br extends m {
|
|
7333
7361
|
/**
|
|
7334
7362
|
* @param submitter the signer account address of evidence
|
|
7335
7363
|
* @param evidence the evidence of misbehavior
|
|
@@ -7341,7 +7369,7 @@ class Ar extends m {
|
|
|
7341
7369
|
const {
|
|
7342
7370
|
value: { submitter: e, evidence: r }
|
|
7343
7371
|
} = t;
|
|
7344
|
-
return new
|
|
7372
|
+
return new br(e, en.fromAmino(r));
|
|
7345
7373
|
}
|
|
7346
7374
|
toAmino() {
|
|
7347
7375
|
const { submitter: t, evidence: e } = this;
|
|
@@ -7355,7 +7383,7 @@ class Ar extends m {
|
|
|
7355
7383
|
}
|
|
7356
7384
|
static fromData(t) {
|
|
7357
7385
|
const { submitter: e, evidence: r } = t;
|
|
7358
|
-
return new
|
|
7386
|
+
return new br(e, en.fromData(r));
|
|
7359
7387
|
}
|
|
7360
7388
|
toData() {
|
|
7361
7389
|
const { submitter: t, evidence: e } = this;
|
|
@@ -7366,7 +7394,7 @@ class Ar extends m {
|
|
|
7366
7394
|
};
|
|
7367
7395
|
}
|
|
7368
7396
|
static fromProto(t) {
|
|
7369
|
-
return new
|
|
7397
|
+
return new br(
|
|
7370
7398
|
t.submitter,
|
|
7371
7399
|
en.fromProto(t.evidence)
|
|
7372
7400
|
);
|
|
@@ -7385,7 +7413,7 @@ class Ar extends m {
|
|
|
7385
7413
|
});
|
|
7386
7414
|
}
|
|
7387
7415
|
static unpackAny(t) {
|
|
7388
|
-
return
|
|
7416
|
+
return br.fromProto(
|
|
7389
7417
|
xc.decode(t.value)
|
|
7390
7418
|
);
|
|
7391
7419
|
}
|
|
@@ -7425,7 +7453,7 @@ class Pt extends m {
|
|
|
7425
7453
|
});
|
|
7426
7454
|
}
|
|
7427
7455
|
}
|
|
7428
|
-
class
|
|
7456
|
+
class Ar extends m {
|
|
7429
7457
|
/**
|
|
7430
7458
|
* @param sender the actor that signed the messages
|
|
7431
7459
|
* @param code hex encoded raw contract bytes code
|
|
@@ -7439,7 +7467,7 @@ class br extends m {
|
|
|
7439
7467
|
const {
|
|
7440
7468
|
value: { sender: e, code: r, value: o, access_list: s }
|
|
7441
7469
|
} = t;
|
|
7442
|
-
return new
|
|
7470
|
+
return new Ar(
|
|
7443
7471
|
e,
|
|
7444
7472
|
r,
|
|
7445
7473
|
o,
|
|
@@ -7460,7 +7488,7 @@ class br extends m {
|
|
|
7460
7488
|
}
|
|
7461
7489
|
static fromData(t) {
|
|
7462
7490
|
const { sender: e, code: r, value: o, access_list: s } = t;
|
|
7463
|
-
return new
|
|
7491
|
+
return new Ar(
|
|
7464
7492
|
e,
|
|
7465
7493
|
r,
|
|
7466
7494
|
o,
|
|
@@ -7478,7 +7506,7 @@ class br extends m {
|
|
|
7478
7506
|
};
|
|
7479
7507
|
}
|
|
7480
7508
|
static fromProto(t) {
|
|
7481
|
-
return new
|
|
7509
|
+
return new Ar(
|
|
7482
7510
|
t.sender,
|
|
7483
7511
|
t.code,
|
|
7484
7512
|
t.value,
|
|
@@ -7501,7 +7529,7 @@ class br extends m {
|
|
|
7501
7529
|
});
|
|
7502
7530
|
}
|
|
7503
7531
|
static unpackAny(t) {
|
|
7504
|
-
return
|
|
7532
|
+
return Ar.fromProto(Ic.decode(t.value));
|
|
7505
7533
|
}
|
|
7506
7534
|
}
|
|
7507
7535
|
class Dr extends m {
|
|
@@ -7676,7 +7704,7 @@ class kr extends m {
|
|
|
7676
7704
|
return kr.fromProto(Bc.decode(t.value));
|
|
7677
7705
|
}
|
|
7678
7706
|
}
|
|
7679
|
-
class
|
|
7707
|
+
class bs extends m {
|
|
7680
7708
|
/**
|
|
7681
7709
|
* @param extra_eips the additional EIPs for the config
|
|
7682
7710
|
* @param allowed_publishers list of addresses with permission to distribute contracts
|
|
@@ -7699,7 +7727,7 @@ class As extends m {
|
|
|
7699
7727
|
gas_refund_ratio: i,
|
|
7700
7728
|
num_retain_block_hashes: c
|
|
7701
7729
|
} = t;
|
|
7702
|
-
return new
|
|
7730
|
+
return new bs(
|
|
7703
7731
|
e.map(parseInt),
|
|
7704
7732
|
r,
|
|
7705
7733
|
o,
|
|
@@ -7739,7 +7767,7 @@ class As extends m {
|
|
|
7739
7767
|
gas_refund_ratio: i,
|
|
7740
7768
|
num_retain_block_hashes: c
|
|
7741
7769
|
} = t;
|
|
7742
|
-
return new
|
|
7770
|
+
return new bs(
|
|
7743
7771
|
e.map(parseInt),
|
|
7744
7772
|
r,
|
|
7745
7773
|
o,
|
|
@@ -7770,7 +7798,7 @@ class As extends m {
|
|
|
7770
7798
|
};
|
|
7771
7799
|
}
|
|
7772
7800
|
static fromProto(t) {
|
|
7773
|
-
return new
|
|
7801
|
+
return new bs(
|
|
7774
7802
|
t.extraEips.map((e) => Number(e)),
|
|
7775
7803
|
t.allowedPublishers,
|
|
7776
7804
|
t.allowCustomErc20,
|
|
@@ -7813,7 +7841,7 @@ class xr extends m {
|
|
|
7813
7841
|
const {
|
|
7814
7842
|
value: { authority: e, params: r }
|
|
7815
7843
|
} = t;
|
|
7816
|
-
return new xr(e,
|
|
7844
|
+
return new xr(e, bs.fromAmino(r));
|
|
7817
7845
|
}
|
|
7818
7846
|
toAmino() {
|
|
7819
7847
|
const { authority: t, params: e } = this;
|
|
@@ -7827,7 +7855,7 @@ class xr extends m {
|
|
|
7827
7855
|
}
|
|
7828
7856
|
static fromData(t) {
|
|
7829
7857
|
const { authority: e, params: r } = t;
|
|
7830
|
-
return new xr(e,
|
|
7858
|
+
return new xr(e, bs.fromData(r));
|
|
7831
7859
|
}
|
|
7832
7860
|
toData() {
|
|
7833
7861
|
const { authority: t, params: e } = this;
|
|
@@ -7840,7 +7868,7 @@ class xr extends m {
|
|
|
7840
7868
|
static fromProto(t) {
|
|
7841
7869
|
return new xr(
|
|
7842
7870
|
t.authority,
|
|
7843
|
-
|
|
7871
|
+
bs.fromProto(t.params)
|
|
7844
7872
|
);
|
|
7845
7873
|
}
|
|
7846
7874
|
toProto() {
|
|
@@ -7871,7 +7899,7 @@ class yt extends m {
|
|
|
7871
7899
|
this.expiration = r;
|
|
7872
7900
|
let o = !1;
|
|
7873
7901
|
if (e && (this.spend_limit = new l(e), this.spend_limit.map((s) => {
|
|
7874
|
-
|
|
7902
|
+
O(s.amount).isLessThanOrEqualTo(0) && (o = !0);
|
|
7875
7903
|
})), e && o)
|
|
7876
7904
|
throw new Error("spend_limit must be positive");
|
|
7877
7905
|
}
|
|
@@ -7932,7 +7960,7 @@ class yt extends m {
|
|
|
7932
7960
|
return yt.fromProto(Uc.decode(e.value));
|
|
7933
7961
|
}
|
|
7934
7962
|
}
|
|
7935
|
-
class
|
|
7963
|
+
class Ot extends m {
|
|
7936
7964
|
/**
|
|
7937
7965
|
* @param basic basic allowance given per period
|
|
7938
7966
|
* @param period the time duration in which period_spend_limit coins can be spent before that allowance is reset
|
|
@@ -7956,9 +7984,9 @@ class Nt extends m {
|
|
|
7956
7984
|
period_reset: i
|
|
7957
7985
|
}
|
|
7958
7986
|
} = e;
|
|
7959
|
-
return new
|
|
7987
|
+
return new Ot(
|
|
7960
7988
|
yt.fromAmino(r),
|
|
7961
|
-
|
|
7989
|
+
F.fromAmino(o),
|
|
7962
7990
|
l.fromAmino(s),
|
|
7963
7991
|
l.fromAmino(n),
|
|
7964
7992
|
new Date(i)
|
|
@@ -7991,9 +8019,9 @@ class Nt extends m {
|
|
|
7991
8019
|
period_can_spend: n,
|
|
7992
8020
|
period_reset: i
|
|
7993
8021
|
} = e;
|
|
7994
|
-
return new
|
|
8022
|
+
return new Ot(
|
|
7995
8023
|
yt.fromData(r),
|
|
7996
|
-
|
|
8024
|
+
F.fromData(o),
|
|
7997
8025
|
l.fromData(s),
|
|
7998
8026
|
l.fromData(n),
|
|
7999
8027
|
new Date(i)
|
|
@@ -8017,9 +8045,9 @@ class Nt extends m {
|
|
|
8017
8045
|
};
|
|
8018
8046
|
}
|
|
8019
8047
|
static fromProto(e) {
|
|
8020
|
-
return new
|
|
8048
|
+
return new Ot(
|
|
8021
8049
|
yt.fromProto(e.basic),
|
|
8022
|
-
|
|
8050
|
+
F.fromProto(e.period),
|
|
8023
8051
|
l.fromProto(e.periodSpendLimit),
|
|
8024
8052
|
l.fromProto(e.periodCanSpend),
|
|
8025
8053
|
e.periodReset
|
|
@@ -8048,7 +8076,7 @@ class Nt extends m {
|
|
|
8048
8076
|
});
|
|
8049
8077
|
}
|
|
8050
8078
|
static unpackAny(e) {
|
|
8051
|
-
return
|
|
8079
|
+
return Ot.fromProto(
|
|
8052
8080
|
Cc.decode(e.value)
|
|
8053
8081
|
);
|
|
8054
8082
|
}
|
|
@@ -8066,7 +8094,7 @@ class Mr extends m {
|
|
|
8066
8094
|
value: { allowance: e, allowed_messages: r }
|
|
8067
8095
|
} = t;
|
|
8068
8096
|
return new Mr(
|
|
8069
|
-
e.type === "cosmos-sdk/BasicAllowance" ? yt.fromAmino(e) :
|
|
8097
|
+
e.type === "cosmos-sdk/BasicAllowance" ? yt.fromAmino(e) : Ot.fromAmino(e),
|
|
8070
8098
|
r
|
|
8071
8099
|
);
|
|
8072
8100
|
}
|
|
@@ -8083,7 +8111,7 @@ class Mr extends m {
|
|
|
8083
8111
|
static fromData(t) {
|
|
8084
8112
|
const { allowance: e, allowed_messages: r } = t;
|
|
8085
8113
|
return new Mr(
|
|
8086
|
-
e["@type"] === "/cosmos.feegrant.v1beta1.BasicAllowance" ? yt.fromData(e) :
|
|
8114
|
+
e["@type"] === "/cosmos.feegrant.v1beta1.BasicAllowance" ? yt.fromData(e) : Ot.fromData(e),
|
|
8087
8115
|
r
|
|
8088
8116
|
);
|
|
8089
8117
|
}
|
|
@@ -8098,7 +8126,7 @@ class Mr extends m {
|
|
|
8098
8126
|
static fromProto(t) {
|
|
8099
8127
|
const e = t.allowance;
|
|
8100
8128
|
return new Mr(
|
|
8101
|
-
(e == null ? void 0 : e.typeUrl) === "/cosmos.feegrant.v1beta1.BasicAllowance" ? yt.unpackAny(e) :
|
|
8129
|
+
(e == null ? void 0 : e.typeUrl) === "/cosmos.feegrant.v1beta1.BasicAllowance" ? yt.unpackAny(e) : Ot.unpackAny(e),
|
|
8102
8130
|
t.allowedMessages
|
|
8103
8131
|
);
|
|
8104
8132
|
}
|
|
@@ -8121,14 +8149,14 @@ class Mr extends m {
|
|
|
8121
8149
|
);
|
|
8122
8150
|
}
|
|
8123
8151
|
}
|
|
8124
|
-
var
|
|
8152
|
+
var As;
|
|
8125
8153
|
((a) => {
|
|
8126
8154
|
function t(o) {
|
|
8127
8155
|
switch (o.type) {
|
|
8128
8156
|
case "cosmos-sdk/BasicAllowance":
|
|
8129
8157
|
return yt.fromAmino(o);
|
|
8130
8158
|
case "cosmos-sdk/PeriodicAllowance":
|
|
8131
|
-
return
|
|
8159
|
+
return Ot.fromAmino(o);
|
|
8132
8160
|
case "cosmos-sdk/AllowedMsgAllowance":
|
|
8133
8161
|
return Mr.fromAmino(o);
|
|
8134
8162
|
}
|
|
@@ -8137,7 +8165,7 @@ var bs;
|
|
|
8137
8165
|
function e(o) {
|
|
8138
8166
|
switch (o["@type"]) {
|
|
8139
8167
|
case "/cosmos.feegrant.v1beta1.PeriodicAllowance":
|
|
8140
|
-
return
|
|
8168
|
+
return Ot.fromData(o);
|
|
8141
8169
|
case "/cosmos.feegrant.v1beta1.BasicAllowance":
|
|
8142
8170
|
return yt.fromData(o);
|
|
8143
8171
|
case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance":
|
|
@@ -8148,7 +8176,7 @@ var bs;
|
|
|
8148
8176
|
function r(o) {
|
|
8149
8177
|
switch (o.typeUrl) {
|
|
8150
8178
|
case "/cosmos.feegrant.v1beta1.PeriodicAllowance":
|
|
8151
|
-
return
|
|
8179
|
+
return Ot.unpackAny(o);
|
|
8152
8180
|
case "/cosmos.feegrant.v1beta1.BasicAllowance":
|
|
8153
8181
|
return yt.unpackAny(o);
|
|
8154
8182
|
case "/cosmos.feegrant.v1beta1.AllowedMsgAllowance":
|
|
@@ -8157,7 +8185,7 @@ var bs;
|
|
|
8157
8185
|
throw new Error(`not supported allowance ${o.typeUrl}`);
|
|
8158
8186
|
}
|
|
8159
8187
|
a.fromProto = r;
|
|
8160
|
-
})(
|
|
8188
|
+
})(As || (As = {}));
|
|
8161
8189
|
class Ir extends m {
|
|
8162
8190
|
/**
|
|
8163
8191
|
* @param granter granter's account address
|
|
@@ -8174,7 +8202,7 @@ class Ir extends m {
|
|
|
8174
8202
|
return new Ir(
|
|
8175
8203
|
e,
|
|
8176
8204
|
r,
|
|
8177
|
-
|
|
8205
|
+
As.fromAmino(o)
|
|
8178
8206
|
);
|
|
8179
8207
|
}
|
|
8180
8208
|
toAmino() {
|
|
@@ -8193,7 +8221,7 @@ class Ir extends m {
|
|
|
8193
8221
|
return new Ir(
|
|
8194
8222
|
e,
|
|
8195
8223
|
r,
|
|
8196
|
-
|
|
8224
|
+
As.fromData(o)
|
|
8197
8225
|
);
|
|
8198
8226
|
}
|
|
8199
8227
|
toData() {
|
|
@@ -8209,12 +8237,12 @@ class Ir extends m {
|
|
|
8209
8237
|
return new Ir(
|
|
8210
8238
|
t.granter,
|
|
8211
8239
|
t.grantee,
|
|
8212
|
-
|
|
8240
|
+
As.fromProto(t.allowance)
|
|
8213
8241
|
);
|
|
8214
8242
|
}
|
|
8215
8243
|
toProto() {
|
|
8216
8244
|
const { granter: t, grantee: e, allowance: r } = this;
|
|
8217
|
-
return
|
|
8245
|
+
return Nc.fromPartial({
|
|
8218
8246
|
allowance: r.packAny(),
|
|
8219
8247
|
grantee: e,
|
|
8220
8248
|
granter: t
|
|
@@ -8223,12 +8251,12 @@ class Ir extends m {
|
|
|
8223
8251
|
packAny() {
|
|
8224
8252
|
return f.fromPartial({
|
|
8225
8253
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
8226
|
-
value:
|
|
8254
|
+
value: Nc.encode(this.toProto()).finish()
|
|
8227
8255
|
});
|
|
8228
8256
|
}
|
|
8229
8257
|
static unpackAny(t) {
|
|
8230
8258
|
return Ir.fromProto(
|
|
8231
|
-
|
|
8259
|
+
Nc.decode(t.value)
|
|
8232
8260
|
);
|
|
8233
8261
|
}
|
|
8234
8262
|
}
|
|
@@ -8273,7 +8301,7 @@ class Sr extends m {
|
|
|
8273
8301
|
}
|
|
8274
8302
|
toProto() {
|
|
8275
8303
|
const { granter: t, grantee: e } = this;
|
|
8276
|
-
return
|
|
8304
|
+
return Oc.fromPartial({
|
|
8277
8305
|
grantee: e,
|
|
8278
8306
|
granter: t
|
|
8279
8307
|
});
|
|
@@ -8281,12 +8309,12 @@ class Sr extends m {
|
|
|
8281
8309
|
packAny() {
|
|
8282
8310
|
return f.fromPartial({
|
|
8283
8311
|
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
8284
|
-
value:
|
|
8312
|
+
value: Oc.encode(this.toProto()).finish()
|
|
8285
8313
|
});
|
|
8286
8314
|
}
|
|
8287
8315
|
static unpackAny(t) {
|
|
8288
8316
|
return Sr.fromProto(
|
|
8289
|
-
|
|
8317
|
+
Oc.decode(t.value)
|
|
8290
8318
|
);
|
|
8291
8319
|
}
|
|
8292
8320
|
}
|
|
@@ -8338,7 +8366,7 @@ class Br extends m {
|
|
|
8338
8366
|
}
|
|
8339
8367
|
toProto() {
|
|
8340
8368
|
const { signer: t, recipient: e, channel: r } = this;
|
|
8341
|
-
return
|
|
8369
|
+
return Fc.fromPartial({
|
|
8342
8370
|
signer: t,
|
|
8343
8371
|
recipient: e,
|
|
8344
8372
|
channel: r
|
|
@@ -8347,12 +8375,12 @@ class Br extends m {
|
|
|
8347
8375
|
packAny() {
|
|
8348
8376
|
return f.fromPartial({
|
|
8349
8377
|
typeUrl: "/noble.forwarding.v1.MsgRegisterAccount",
|
|
8350
|
-
value:
|
|
8378
|
+
value: Fc.encode(this.toProto()).finish()
|
|
8351
8379
|
});
|
|
8352
8380
|
}
|
|
8353
8381
|
static unpackAny(t) {
|
|
8354
8382
|
return Br.fromProto(
|
|
8355
|
-
|
|
8383
|
+
Fc.decode(t.value)
|
|
8356
8384
|
);
|
|
8357
8385
|
}
|
|
8358
8386
|
}
|
|
@@ -8620,24 +8648,24 @@ class $r extends m {
|
|
|
8620
8648
|
return $r.fromProto(Lc.decode(e.value));
|
|
8621
8649
|
}
|
|
8622
8650
|
}
|
|
8623
|
-
class
|
|
8651
|
+
class Nr extends m {
|
|
8624
8652
|
constructor(t) {
|
|
8625
8653
|
super(), this.paramChanges = t;
|
|
8626
8654
|
}
|
|
8627
8655
|
static fromAmino(t) {
|
|
8628
|
-
return new
|
|
8656
|
+
return new Nr((t ?? []).map(rn.fromAmino));
|
|
8629
8657
|
}
|
|
8630
8658
|
toAmino() {
|
|
8631
8659
|
return this.paramChanges.map((t) => t.toAmino());
|
|
8632
8660
|
}
|
|
8633
8661
|
static fromData(t) {
|
|
8634
|
-
return new
|
|
8662
|
+
return new Nr((t ?? []).map(rn.fromData));
|
|
8635
8663
|
}
|
|
8636
8664
|
toData() {
|
|
8637
8665
|
return this.paramChanges.map((t) => t.toData());
|
|
8638
8666
|
}
|
|
8639
8667
|
static fromProto(t) {
|
|
8640
|
-
return new
|
|
8668
|
+
return new Nr((t ?? []).map(rn.fromProto));
|
|
8641
8669
|
}
|
|
8642
8670
|
toProto() {
|
|
8643
8671
|
return this.paramChanges.map((t) => t.toProto());
|
|
@@ -8683,7 +8711,7 @@ class rn extends m {
|
|
|
8683
8711
|
});
|
|
8684
8712
|
}
|
|
8685
8713
|
}
|
|
8686
|
-
class
|
|
8714
|
+
class Or extends m {
|
|
8687
8715
|
/**
|
|
8688
8716
|
* @param title proposal's title
|
|
8689
8717
|
* @param description proposal's description
|
|
@@ -8693,16 +8721,16 @@ class Nr extends m {
|
|
|
8693
8721
|
constructor(e, r, o) {
|
|
8694
8722
|
super();
|
|
8695
8723
|
_(this, "changes");
|
|
8696
|
-
this.title = e, this.description = r, Array.isArray(o) ? this.changes =
|
|
8724
|
+
this.title = e, this.description = r, Array.isArray(o) ? this.changes = Nr.fromData(o) : this.changes = o;
|
|
8697
8725
|
}
|
|
8698
8726
|
static fromAmino(e) {
|
|
8699
8727
|
const {
|
|
8700
8728
|
value: { title: r, description: o, changes: s }
|
|
8701
8729
|
} = e;
|
|
8702
|
-
return new
|
|
8730
|
+
return new Or(
|
|
8703
8731
|
r,
|
|
8704
8732
|
o,
|
|
8705
|
-
|
|
8733
|
+
Nr.fromAmino(s)
|
|
8706
8734
|
);
|
|
8707
8735
|
}
|
|
8708
8736
|
toAmino() {
|
|
@@ -8718,10 +8746,10 @@ class Nr extends m {
|
|
|
8718
8746
|
}
|
|
8719
8747
|
static fromData(e) {
|
|
8720
8748
|
const { title: r, description: o, changes: s } = e;
|
|
8721
|
-
return new
|
|
8749
|
+
return new Or(
|
|
8722
8750
|
r,
|
|
8723
8751
|
o,
|
|
8724
|
-
|
|
8752
|
+
Nr.fromData(s)
|
|
8725
8753
|
);
|
|
8726
8754
|
}
|
|
8727
8755
|
toData() {
|
|
@@ -8734,10 +8762,10 @@ class Nr extends m {
|
|
|
8734
8762
|
};
|
|
8735
8763
|
}
|
|
8736
8764
|
static fromProto(e) {
|
|
8737
|
-
return new
|
|
8765
|
+
return new Or(
|
|
8738
8766
|
e.title,
|
|
8739
8767
|
e.description,
|
|
8740
|
-
|
|
8768
|
+
Nr.fromProto(e.changes)
|
|
8741
8769
|
);
|
|
8742
8770
|
}
|
|
8743
8771
|
toProto() {
|
|
@@ -8755,12 +8783,12 @@ class Nr extends m {
|
|
|
8755
8783
|
});
|
|
8756
8784
|
}
|
|
8757
8785
|
static unpackAny(e) {
|
|
8758
|
-
return
|
|
8786
|
+
return Or.fromProto(
|
|
8759
8787
|
Gc.decode(e.value)
|
|
8760
8788
|
);
|
|
8761
8789
|
}
|
|
8762
8790
|
}
|
|
8763
|
-
class
|
|
8791
|
+
class Fr extends m {
|
|
8764
8792
|
/**
|
|
8765
8793
|
* @param title proposal's title
|
|
8766
8794
|
* @param description proposal's description
|
|
@@ -8772,7 +8800,7 @@ class Or extends m {
|
|
|
8772
8800
|
const {
|
|
8773
8801
|
value: { title: e, description: r }
|
|
8774
8802
|
} = t;
|
|
8775
|
-
return new
|
|
8803
|
+
return new Fr(e, r);
|
|
8776
8804
|
}
|
|
8777
8805
|
toAmino() {
|
|
8778
8806
|
const { title: t, description: e } = this;
|
|
@@ -8786,7 +8814,7 @@ class Or extends m {
|
|
|
8786
8814
|
}
|
|
8787
8815
|
static fromData(t) {
|
|
8788
8816
|
const { title: e, description: r } = t;
|
|
8789
|
-
return new
|
|
8817
|
+
return new Fr(e, r);
|
|
8790
8818
|
}
|
|
8791
8819
|
toData() {
|
|
8792
8820
|
const { title: t, description: e } = this;
|
|
@@ -8797,7 +8825,7 @@ class Or extends m {
|
|
|
8797
8825
|
};
|
|
8798
8826
|
}
|
|
8799
8827
|
static fromProto(t) {
|
|
8800
|
-
return new
|
|
8828
|
+
return new Fr(t.title, t.description);
|
|
8801
8829
|
}
|
|
8802
8830
|
toProto() {
|
|
8803
8831
|
const { title: t, description: e } = this;
|
|
@@ -8813,7 +8841,7 @@ class Or extends m {
|
|
|
8813
8841
|
});
|
|
8814
8842
|
}
|
|
8815
8843
|
static unpackAny(t) {
|
|
8816
|
-
return
|
|
8844
|
+
return Fr.fromProto(Jc.decode(t.value));
|
|
8817
8845
|
}
|
|
8818
8846
|
}
|
|
8819
8847
|
var ka;
|
|
@@ -8821,18 +8849,18 @@ var ka;
|
|
|
8821
8849
|
function t(o) {
|
|
8822
8850
|
switch (o.type) {
|
|
8823
8851
|
case "cosmos-sdk/TextProposal":
|
|
8824
|
-
return
|
|
8852
|
+
return Fr.fromAmino(o);
|
|
8825
8853
|
case "cosmos-sdk/ParameterChangeProposal":
|
|
8826
|
-
return
|
|
8854
|
+
return Or.fromAmino(o);
|
|
8827
8855
|
}
|
|
8828
8856
|
}
|
|
8829
8857
|
a.fromAmino = t;
|
|
8830
8858
|
function e(o) {
|
|
8831
8859
|
switch (o["@type"]) {
|
|
8832
8860
|
case "/cosmos.gov.v1beta1.TextProposal":
|
|
8833
|
-
return
|
|
8861
|
+
return Fr.fromData(o);
|
|
8834
8862
|
case "/cosmos.params.v1beta1.ParameterChangeProposal":
|
|
8835
|
-
return
|
|
8863
|
+
return Or.fromData(o);
|
|
8836
8864
|
}
|
|
8837
8865
|
}
|
|
8838
8866
|
a.fromData = e;
|
|
@@ -8840,9 +8868,9 @@ var ka;
|
|
|
8840
8868
|
const s = o.typeUrl;
|
|
8841
8869
|
switch (s) {
|
|
8842
8870
|
case "/cosmos.gov.v1beta1.TextProposal":
|
|
8843
|
-
return
|
|
8871
|
+
return Fr.unpackAny(o);
|
|
8844
8872
|
case "/cosmos.params.v1beta1.ParameterChangeProposal":
|
|
8845
|
-
return
|
|
8873
|
+
return Or.unpackAny(o);
|
|
8846
8874
|
}
|
|
8847
8875
|
throw new Error(`Proposal content ${s} not recognized`);
|
|
8848
8876
|
}
|
|
@@ -8935,7 +8963,7 @@ class Ds extends m {
|
|
|
8935
8963
|
total_vesting_power: r,
|
|
8936
8964
|
v1_tally_result: o
|
|
8937
8965
|
} = this;
|
|
8938
|
-
return
|
|
8966
|
+
return Ah.fromPartial({
|
|
8939
8967
|
tallyHeight: BigInt(t),
|
|
8940
8968
|
totalStakingPower: e,
|
|
8941
8969
|
totalVestingPower: r,
|
|
@@ -8969,10 +8997,10 @@ class fe extends m {
|
|
|
8969
8997
|
* @param emergency
|
|
8970
8998
|
* @param failed_reason the reason why the proposal failed
|
|
8971
8999
|
*/
|
|
8972
|
-
constructor(e, r, o, s, n, i, c, d, g, v,
|
|
9000
|
+
constructor(e, r, o, s, n, i, c, d, g, v, A, k, E, $, L, K, j, S) {
|
|
8973
9001
|
super();
|
|
8974
9002
|
_(this, "total_deposit");
|
|
8975
|
-
this.id = e, this.messages = r, this.status = o, this.final_tally_result = s, this.submit_time = n, this.deposit_end_time = i, this.voting_start_time = d, this.voting_end_time = g, this.emergency_start_time = v, this.emergency_next_tally_time =
|
|
9003
|
+
this.id = e, this.messages = r, this.status = o, this.final_tally_result = s, this.submit_time = n, this.deposit_end_time = i, this.voting_start_time = d, this.voting_end_time = g, this.emergency_start_time = v, this.emergency_next_tally_time = A, this.metadata = k, this.title = E, this.summary = $, this.proposer = L, this.expedited = K, this.emergency = j, this.failed_reason = S, this.total_deposit = new l(c);
|
|
8976
9004
|
}
|
|
8977
9005
|
static fromAmino(e) {
|
|
8978
9006
|
const {
|
|
@@ -8985,7 +9013,7 @@ class fe extends m {
|
|
|
8985
9013
|
total_deposit: d,
|
|
8986
9014
|
voting_start_time: g,
|
|
8987
9015
|
voting_end_time: v,
|
|
8988
|
-
emergency_start_time:
|
|
9016
|
+
emergency_start_time: A,
|
|
8989
9017
|
emergency_next_tally_time: k,
|
|
8990
9018
|
metadata: E,
|
|
8991
9019
|
title: $,
|
|
@@ -9005,7 +9033,7 @@ class fe extends m {
|
|
|
9005
9033
|
l.fromAmino(d),
|
|
9006
9034
|
new Date(g),
|
|
9007
9035
|
new Date(v),
|
|
9008
|
-
new Date(
|
|
9036
|
+
new Date(A),
|
|
9009
9037
|
new Date(k),
|
|
9010
9038
|
E,
|
|
9011
9039
|
$,
|
|
@@ -9028,7 +9056,7 @@ class fe extends m {
|
|
|
9028
9056
|
voting_start_time: d,
|
|
9029
9057
|
voting_end_time: g,
|
|
9030
9058
|
emergency_start_time: v,
|
|
9031
|
-
emergency_next_tally_time:
|
|
9059
|
+
emergency_next_tally_time: A,
|
|
9032
9060
|
metadata: k,
|
|
9033
9061
|
title: E,
|
|
9034
9062
|
summary: $,
|
|
@@ -9048,7 +9076,7 @@ class fe extends m {
|
|
|
9048
9076
|
voting_start_time: d.toISOString(),
|
|
9049
9077
|
voting_end_time: g.toISOString(),
|
|
9050
9078
|
emergency_start_time: v.toISOString(),
|
|
9051
|
-
emergency_next_tally_time:
|
|
9079
|
+
emergency_next_tally_time: A.toISOString(),
|
|
9052
9080
|
metadata: k,
|
|
9053
9081
|
title: E,
|
|
9054
9082
|
summary: $,
|
|
@@ -9069,7 +9097,7 @@ class fe extends m {
|
|
|
9069
9097
|
total_deposit: d,
|
|
9070
9098
|
voting_start_time: g,
|
|
9071
9099
|
voting_end_time: v,
|
|
9072
|
-
emergency_start_time:
|
|
9100
|
+
emergency_start_time: A,
|
|
9073
9101
|
emergency_next_tally_time: k,
|
|
9074
9102
|
metadata: E,
|
|
9075
9103
|
title: $,
|
|
@@ -9089,7 +9117,7 @@ class fe extends m {
|
|
|
9089
9117
|
l.fromData(d),
|
|
9090
9118
|
new Date(g),
|
|
9091
9119
|
new Date(v),
|
|
9092
|
-
new Date(
|
|
9120
|
+
new Date(A),
|
|
9093
9121
|
new Date(k),
|
|
9094
9122
|
E,
|
|
9095
9123
|
$,
|
|
@@ -9112,7 +9140,7 @@ class fe extends m {
|
|
|
9112
9140
|
voting_start_time: d,
|
|
9113
9141
|
voting_end_time: g,
|
|
9114
9142
|
emergency_start_time: v,
|
|
9115
|
-
emergency_next_tally_time:
|
|
9143
|
+
emergency_next_tally_time: A,
|
|
9116
9144
|
metadata: k,
|
|
9117
9145
|
title: E,
|
|
9118
9146
|
summary: $,
|
|
@@ -9132,7 +9160,7 @@ class fe extends m {
|
|
|
9132
9160
|
voting_start_time: d.toISOString(),
|
|
9133
9161
|
voting_end_time: g.toISOString(),
|
|
9134
9162
|
emergency_start_time: v.toISOString(),
|
|
9135
|
-
emergency_next_tally_time:
|
|
9163
|
+
emergency_next_tally_time: A.toISOString(),
|
|
9136
9164
|
metadata: k,
|
|
9137
9165
|
title: E,
|
|
9138
9166
|
summary: $,
|
|
@@ -9176,7 +9204,7 @@ class fe extends m {
|
|
|
9176
9204
|
voting_start_time: d,
|
|
9177
9205
|
voting_end_time: g,
|
|
9178
9206
|
emergency_start_time: v,
|
|
9179
|
-
emergency_next_tally_time:
|
|
9207
|
+
emergency_next_tally_time: A,
|
|
9180
9208
|
metadata: k,
|
|
9181
9209
|
title: E,
|
|
9182
9210
|
summary: $,
|
|
@@ -9196,7 +9224,7 @@ class fe extends m {
|
|
|
9196
9224
|
votingStartTime: d,
|
|
9197
9225
|
votingEndTime: g,
|
|
9198
9226
|
emergencyStartTime: v,
|
|
9199
|
-
emergencyNextTallyTime:
|
|
9227
|
+
emergencyNextTallyTime: A,
|
|
9200
9228
|
metadata: k,
|
|
9201
9229
|
title: E,
|
|
9202
9230
|
summary: $,
|
|
@@ -9584,7 +9612,7 @@ class on extends m {
|
|
|
9584
9612
|
return new on(
|
|
9585
9613
|
parseInt(e),
|
|
9586
9614
|
r,
|
|
9587
|
-
o.map((n) =>
|
|
9615
|
+
o.map((n) => bt.fromAmino(n)),
|
|
9588
9616
|
s
|
|
9589
9617
|
);
|
|
9590
9618
|
}
|
|
@@ -9602,7 +9630,7 @@ class on extends m {
|
|
|
9602
9630
|
return new on(
|
|
9603
9631
|
parseInt(e),
|
|
9604
9632
|
r,
|
|
9605
|
-
o.map((n) =>
|
|
9633
|
+
o.map((n) => bt.fromData(n)),
|
|
9606
9634
|
s
|
|
9607
9635
|
);
|
|
9608
9636
|
}
|
|
@@ -9619,7 +9647,7 @@ class on extends m {
|
|
|
9619
9647
|
return new on(
|
|
9620
9648
|
Number(t.proposalId),
|
|
9621
9649
|
t.voter,
|
|
9622
|
-
t.options.map((e) =>
|
|
9650
|
+
t.options.map((e) => bt.fromProto(e)),
|
|
9623
9651
|
t.metadata
|
|
9624
9652
|
);
|
|
9625
9653
|
}
|
|
@@ -9636,13 +9664,13 @@ class on extends m {
|
|
|
9636
9664
|
((a) => {
|
|
9637
9665
|
a.Option = kl;
|
|
9638
9666
|
})(on || (on = {}));
|
|
9639
|
-
class
|
|
9667
|
+
class bt extends m {
|
|
9640
9668
|
constructor(t, e) {
|
|
9641
9669
|
super(), this.option = t, this.weight = e;
|
|
9642
9670
|
}
|
|
9643
9671
|
static fromAmino(t) {
|
|
9644
9672
|
const { option: e, weight: r } = t;
|
|
9645
|
-
return new
|
|
9673
|
+
return new bt(e, parseFloat(r));
|
|
9646
9674
|
}
|
|
9647
9675
|
toAmino() {
|
|
9648
9676
|
const { option: t, weight: e } = this;
|
|
@@ -9653,7 +9681,7 @@ class At extends m {
|
|
|
9653
9681
|
}
|
|
9654
9682
|
static fromData(t) {
|
|
9655
9683
|
const { option: e, weight: r } = t;
|
|
9656
|
-
return new
|
|
9684
|
+
return new bt(e, parseFloat(r));
|
|
9657
9685
|
}
|
|
9658
9686
|
toData() {
|
|
9659
9687
|
const { option: t, weight: e } = this;
|
|
@@ -9663,7 +9691,7 @@ class At extends m {
|
|
|
9663
9691
|
};
|
|
9664
9692
|
}
|
|
9665
9693
|
static fromProto(t) {
|
|
9666
|
-
return new
|
|
9694
|
+
return new bt(t.option, parseFloat(t.weight));
|
|
9667
9695
|
}
|
|
9668
9696
|
toProto() {
|
|
9669
9697
|
const { option: t, weight: e } = this;
|
|
@@ -9689,7 +9717,7 @@ class Lr extends m {
|
|
|
9689
9717
|
return new Lr(
|
|
9690
9718
|
parseInt(e),
|
|
9691
9719
|
r,
|
|
9692
|
-
o.map((s) =>
|
|
9720
|
+
o.map((s) => bt.fromAmino(s))
|
|
9693
9721
|
);
|
|
9694
9722
|
}
|
|
9695
9723
|
toAmino() {
|
|
@@ -9708,7 +9736,7 @@ class Lr extends m {
|
|
|
9708
9736
|
return new Lr(
|
|
9709
9737
|
parseInt(e),
|
|
9710
9738
|
r,
|
|
9711
|
-
o.map((s) =>
|
|
9739
|
+
o.map((s) => bt.fromData(s))
|
|
9712
9740
|
);
|
|
9713
9741
|
}
|
|
9714
9742
|
toData() {
|
|
@@ -9724,7 +9752,7 @@ class Lr extends m {
|
|
|
9724
9752
|
return new Lr(
|
|
9725
9753
|
Number(t.proposalId),
|
|
9726
9754
|
t.voter,
|
|
9727
|
-
t.options.map((e) =>
|
|
9755
|
+
t.options.map((e) => bt.fromProto(e))
|
|
9728
9756
|
);
|
|
9729
9757
|
}
|
|
9730
9758
|
toProto() {
|
|
@@ -9764,7 +9792,7 @@ class Hr extends m {
|
|
|
9764
9792
|
return new Hr(
|
|
9765
9793
|
parseInt(e),
|
|
9766
9794
|
r,
|
|
9767
|
-
o.map((n) =>
|
|
9795
|
+
o.map((n) => bt.fromAmino(n)),
|
|
9768
9796
|
s ?? ""
|
|
9769
9797
|
);
|
|
9770
9798
|
}
|
|
@@ -9785,7 +9813,7 @@ class Hr extends m {
|
|
|
9785
9813
|
return new Hr(
|
|
9786
9814
|
parseInt(e),
|
|
9787
9815
|
r,
|
|
9788
|
-
o.map((n) =>
|
|
9816
|
+
o.map((n) => bt.fromData(n)),
|
|
9789
9817
|
s
|
|
9790
9818
|
);
|
|
9791
9819
|
}
|
|
@@ -9803,7 +9831,7 @@ class Hr extends m {
|
|
|
9803
9831
|
return new Hr(
|
|
9804
9832
|
Number(t.proposalId),
|
|
9805
9833
|
t.voter,
|
|
9806
|
-
t.options.map((e) =>
|
|
9834
|
+
t.options.map((e) => bt.fromProto(e)),
|
|
9807
9835
|
t.metadata
|
|
9808
9836
|
);
|
|
9809
9837
|
}
|
|
@@ -9894,12 +9922,12 @@ class ks extends m {
|
|
|
9894
9922
|
* @param low_threshold_functions low threshold functions for emergency and expedited proposal
|
|
9895
9923
|
* @param vesting the vesting contract info for tally
|
|
9896
9924
|
*/
|
|
9897
|
-
constructor(e, r, o, s, n, i, c, d, g, v,
|
|
9925
|
+
constructor(e, r, o, s, n, i, c, d, g, v, A, k, E, $, L, K, j, S, Z, et) {
|
|
9898
9926
|
super();
|
|
9899
9927
|
_(this, "min_deposit");
|
|
9900
9928
|
_(this, "expedited_min_deposit");
|
|
9901
9929
|
_(this, "emergency_min_deposit");
|
|
9902
|
-
this.max_deposit_period = r, this.voting_period = o, this.quorum = s, this.threshold = n, this.veto_threshold = i, this.min_initial_deposit_ratio = c, this.proposal_cancel_ratio = d, this.proposal_cancel_dest = g, this.expedited_voting_period = v, this.expedited_threshold =
|
|
9930
|
+
this.max_deposit_period = r, this.voting_period = o, this.quorum = s, this.threshold = n, this.veto_threshold = i, this.min_initial_deposit_ratio = c, this.proposal_cancel_ratio = d, this.proposal_cancel_dest = g, this.expedited_voting_period = v, this.expedited_threshold = A, this.burn_vote_quorum = E, this.burn_proposal_deposit_prevote = $, this.burn_vote_veto = L, this.min_deposit_ratio = K, this.emergency_tally_interval = S, this.low_threshold_functions = Z, this.vesting = et, this.min_deposit = new l(e), this.expedited_min_deposit = new l(k), this.emergency_min_deposit = new l(j);
|
|
9903
9931
|
}
|
|
9904
9932
|
static fromAmino(e) {
|
|
9905
9933
|
const {
|
|
@@ -9912,7 +9940,7 @@ class ks extends m {
|
|
|
9912
9940
|
min_initial_deposit_ratio: d,
|
|
9913
9941
|
proposal_cancel_ratio: g,
|
|
9914
9942
|
proposal_cancel_dest: v,
|
|
9915
|
-
expedited_voting_period:
|
|
9943
|
+
expedited_voting_period: A,
|
|
9916
9944
|
expedited_threshold: k,
|
|
9917
9945
|
expedited_min_deposit: E,
|
|
9918
9946
|
burn_vote_quorum: $,
|
|
@@ -9926,15 +9954,15 @@ class ks extends m {
|
|
|
9926
9954
|
} = e;
|
|
9927
9955
|
return new ks(
|
|
9928
9956
|
l.fromAmino(r),
|
|
9929
|
-
|
|
9930
|
-
|
|
9957
|
+
F.fromAmino(o),
|
|
9958
|
+
F.fromAmino(s),
|
|
9931
9959
|
n,
|
|
9932
9960
|
i,
|
|
9933
9961
|
c,
|
|
9934
9962
|
d,
|
|
9935
9963
|
g,
|
|
9936
9964
|
v,
|
|
9937
|
-
|
|
9965
|
+
F.fromAmino(A),
|
|
9938
9966
|
k,
|
|
9939
9967
|
l.fromAmino(E),
|
|
9940
9968
|
$,
|
|
@@ -9942,7 +9970,7 @@ class ks extends m {
|
|
|
9942
9970
|
K,
|
|
9943
9971
|
j,
|
|
9944
9972
|
l.fromAmino(S),
|
|
9945
|
-
|
|
9973
|
+
F.fromAmino(Z),
|
|
9946
9974
|
et,
|
|
9947
9975
|
R ? sn.fromAmino(R) : void 0
|
|
9948
9976
|
);
|
|
@@ -9959,7 +9987,7 @@ class ks extends m {
|
|
|
9959
9987
|
proposal_cancel_ratio: d,
|
|
9960
9988
|
proposal_cancel_dest: g,
|
|
9961
9989
|
expedited_voting_period: v,
|
|
9962
|
-
expedited_threshold:
|
|
9990
|
+
expedited_threshold: A,
|
|
9963
9991
|
expedited_min_deposit: k,
|
|
9964
9992
|
burn_vote_quorum: E,
|
|
9965
9993
|
burn_proposal_deposit_prevote: $,
|
|
@@ -9981,7 +10009,7 @@ class ks extends m {
|
|
|
9981
10009
|
proposal_cancel_ratio: d,
|
|
9982
10010
|
proposal_cancel_dest: g,
|
|
9983
10011
|
expedited_voting_period: v.toAmino(),
|
|
9984
|
-
expedited_threshold:
|
|
10012
|
+
expedited_threshold: A,
|
|
9985
10013
|
expedited_min_deposit: k.toAmino(),
|
|
9986
10014
|
burn_vote_quorum: E,
|
|
9987
10015
|
burn_proposal_deposit_prevote: $,
|
|
@@ -10004,7 +10032,7 @@ class ks extends m {
|
|
|
10004
10032
|
min_initial_deposit_ratio: d,
|
|
10005
10033
|
proposal_cancel_ratio: g,
|
|
10006
10034
|
proposal_cancel_dest: v,
|
|
10007
|
-
expedited_voting_period:
|
|
10035
|
+
expedited_voting_period: A,
|
|
10008
10036
|
expedited_threshold: k,
|
|
10009
10037
|
expedited_min_deposit: E,
|
|
10010
10038
|
burn_vote_quorum: $,
|
|
@@ -10018,15 +10046,15 @@ class ks extends m {
|
|
|
10018
10046
|
} = e;
|
|
10019
10047
|
return new ks(
|
|
10020
10048
|
l.fromData(r),
|
|
10021
|
-
|
|
10022
|
-
|
|
10049
|
+
F.fromData(o),
|
|
10050
|
+
F.fromData(s),
|
|
10023
10051
|
n,
|
|
10024
10052
|
i,
|
|
10025
10053
|
c,
|
|
10026
10054
|
d,
|
|
10027
10055
|
g,
|
|
10028
10056
|
v,
|
|
10029
|
-
|
|
10057
|
+
F.fromData(A),
|
|
10030
10058
|
k,
|
|
10031
10059
|
l.fromData(E),
|
|
10032
10060
|
$,
|
|
@@ -10034,7 +10062,7 @@ class ks extends m {
|
|
|
10034
10062
|
K,
|
|
10035
10063
|
j,
|
|
10036
10064
|
l.fromData(S),
|
|
10037
|
-
|
|
10065
|
+
F.fromData(Z),
|
|
10038
10066
|
et,
|
|
10039
10067
|
R ? sn.fromData(R) : void 0
|
|
10040
10068
|
);
|
|
@@ -10051,7 +10079,7 @@ class ks extends m {
|
|
|
10051
10079
|
proposal_cancel_ratio: d,
|
|
10052
10080
|
proposal_cancel_dest: g,
|
|
10053
10081
|
expedited_voting_period: v,
|
|
10054
|
-
expedited_threshold:
|
|
10082
|
+
expedited_threshold: A,
|
|
10055
10083
|
expedited_min_deposit: k,
|
|
10056
10084
|
burn_vote_quorum: E,
|
|
10057
10085
|
burn_proposal_deposit_prevote: $,
|
|
@@ -10073,7 +10101,7 @@ class ks extends m {
|
|
|
10073
10101
|
proposal_cancel_ratio: d,
|
|
10074
10102
|
proposal_cancel_dest: g,
|
|
10075
10103
|
expedited_voting_period: v.toData(),
|
|
10076
|
-
expedited_threshold:
|
|
10104
|
+
expedited_threshold: A,
|
|
10077
10105
|
expedited_min_deposit: k.toData(),
|
|
10078
10106
|
burn_vote_quorum: E,
|
|
10079
10107
|
burn_proposal_deposit_prevote: $,
|
|
@@ -10088,15 +10116,15 @@ class ks extends m {
|
|
|
10088
10116
|
static fromProto(e) {
|
|
10089
10117
|
return new ks(
|
|
10090
10118
|
l.fromProto(e.minDeposit),
|
|
10091
|
-
|
|
10092
|
-
|
|
10119
|
+
F.fromProto(e.maxDepositPeriod),
|
|
10120
|
+
F.fromProto(e.votingPeriod),
|
|
10093
10121
|
e.quorum,
|
|
10094
10122
|
e.threshold,
|
|
10095
10123
|
e.vetoThreshold,
|
|
10096
10124
|
e.minInitialDepositRatio,
|
|
10097
10125
|
e.proposalCancelRatio,
|
|
10098
10126
|
e.proposalCancelDest,
|
|
10099
|
-
|
|
10127
|
+
F.fromProto(e.expeditedVotingPeriod),
|
|
10100
10128
|
e.expeditedThreshold,
|
|
10101
10129
|
l.fromProto(e.expeditedMinDeposit),
|
|
10102
10130
|
e.burnVoteQuorum,
|
|
@@ -10104,7 +10132,7 @@ class ks extends m {
|
|
|
10104
10132
|
e.burnVoteVeto,
|
|
10105
10133
|
e.minDepositRatio,
|
|
10106
10134
|
l.fromProto(e.emergencyMinDeposit),
|
|
10107
|
-
|
|
10135
|
+
F.fromProto(e.emergencyTallyInterval),
|
|
10108
10136
|
e.lowThresholdFunctions,
|
|
10109
10137
|
e.vesting ? sn.fromProto(e.vesting) : void 0
|
|
10110
10138
|
);
|
|
@@ -10121,7 +10149,7 @@ class ks extends m {
|
|
|
10121
10149
|
proposal_cancel_ratio: d,
|
|
10122
10150
|
proposal_cancel_dest: g,
|
|
10123
10151
|
expedited_voting_period: v,
|
|
10124
|
-
expedited_threshold:
|
|
10152
|
+
expedited_threshold: A,
|
|
10125
10153
|
expedited_min_deposit: k,
|
|
10126
10154
|
burn_vote_quorum: E,
|
|
10127
10155
|
burn_proposal_deposit_prevote: $,
|
|
@@ -10143,7 +10171,7 @@ class ks extends m {
|
|
|
10143
10171
|
proposalCancelRatio: d,
|
|
10144
10172
|
proposalCancelDest: g,
|
|
10145
10173
|
expeditedVotingPeriod: v.toProto(),
|
|
10146
|
-
expeditedThreshold:
|
|
10174
|
+
expeditedThreshold: A,
|
|
10147
10175
|
expeditedMinDeposit: k.toProto(),
|
|
10148
10176
|
burnVoteQuorum: E,
|
|
10149
10177
|
burnProposalDepositPrevote: $,
|
|
@@ -10263,7 +10291,7 @@ class xa extends m {
|
|
|
10263
10291
|
}
|
|
10264
10292
|
toProto() {
|
|
10265
10293
|
const { proposal_id: e, depositor: r, amount: o } = this;
|
|
10266
|
-
return
|
|
10294
|
+
return bh.fromPartial({
|
|
10267
10295
|
proposalId: BigInt(e),
|
|
10268
10296
|
depositor: r,
|
|
10269
10297
|
amount: o.toProto()
|
|
@@ -10368,7 +10396,7 @@ class nn extends m {
|
|
|
10368
10396
|
});
|
|
10369
10397
|
}
|
|
10370
10398
|
}
|
|
10371
|
-
class
|
|
10399
|
+
class At extends m {
|
|
10372
10400
|
/**
|
|
10373
10401
|
* @param address the member's account address
|
|
10374
10402
|
* @param weight the member's voting weight that should be greater than 0
|
|
@@ -10379,7 +10407,7 @@ class bt extends m {
|
|
|
10379
10407
|
}
|
|
10380
10408
|
static fromAmino(t) {
|
|
10381
10409
|
const { address: e, weight: r, metadata: o } = t;
|
|
10382
|
-
return new
|
|
10410
|
+
return new At(e, r, o);
|
|
10383
10411
|
}
|
|
10384
10412
|
toAmino() {
|
|
10385
10413
|
const { address: t, weight: e, metadata: r } = this;
|
|
@@ -10391,7 +10419,7 @@ class bt extends m {
|
|
|
10391
10419
|
}
|
|
10392
10420
|
static fromData(t) {
|
|
10393
10421
|
const { address: e, weight: r, metadata: o } = t;
|
|
10394
|
-
return new
|
|
10422
|
+
return new At(e, r, o);
|
|
10395
10423
|
}
|
|
10396
10424
|
toData() {
|
|
10397
10425
|
const { address: t, weight: e, metadata: r } = this;
|
|
@@ -10402,7 +10430,7 @@ class bt extends m {
|
|
|
10402
10430
|
};
|
|
10403
10431
|
}
|
|
10404
10432
|
static fromProto(t) {
|
|
10405
|
-
return new
|
|
10433
|
+
return new At(t.address, t.weight, t.metadata);
|
|
10406
10434
|
}
|
|
10407
10435
|
toProto() {
|
|
10408
10436
|
const { address: t, weight: e, metadata: r } = this;
|
|
@@ -10428,7 +10456,7 @@ class qr extends m {
|
|
|
10428
10456
|
} = t;
|
|
10429
10457
|
return new qr(
|
|
10430
10458
|
e,
|
|
10431
|
-
r.map(
|
|
10459
|
+
r.map(At.fromAmino),
|
|
10432
10460
|
o
|
|
10433
10461
|
);
|
|
10434
10462
|
}
|
|
@@ -10447,7 +10475,7 @@ class qr extends m {
|
|
|
10447
10475
|
const { admin: e, members: r, metadata: o } = t;
|
|
10448
10476
|
return new qr(
|
|
10449
10477
|
e,
|
|
10450
|
-
r.map(
|
|
10478
|
+
r.map(At.fromData),
|
|
10451
10479
|
o
|
|
10452
10480
|
);
|
|
10453
10481
|
}
|
|
@@ -10463,7 +10491,7 @@ class qr extends m {
|
|
|
10463
10491
|
static fromProto(t) {
|
|
10464
10492
|
return new qr(
|
|
10465
10493
|
t.admin,
|
|
10466
|
-
t.members.map(
|
|
10494
|
+
t.members.map(At.fromProto),
|
|
10467
10495
|
t.metadata
|
|
10468
10496
|
);
|
|
10469
10497
|
}
|
|
@@ -10496,8 +10524,8 @@ class ae extends m {
|
|
|
10496
10524
|
static fromAmino(t) {
|
|
10497
10525
|
const { voting_period: e, min_execution_period: r } = t;
|
|
10498
10526
|
return new ae(
|
|
10499
|
-
|
|
10500
|
-
|
|
10527
|
+
F.fromAmino(e),
|
|
10528
|
+
F.fromAmino(r)
|
|
10501
10529
|
);
|
|
10502
10530
|
}
|
|
10503
10531
|
toAmino() {
|
|
@@ -10510,8 +10538,8 @@ class ae extends m {
|
|
|
10510
10538
|
static fromData(t) {
|
|
10511
10539
|
const { voting_period: e, min_execution_period: r } = t;
|
|
10512
10540
|
return new ae(
|
|
10513
|
-
|
|
10514
|
-
|
|
10541
|
+
F.fromData(e),
|
|
10542
|
+
F.fromData(r)
|
|
10515
10543
|
);
|
|
10516
10544
|
}
|
|
10517
10545
|
toData() {
|
|
@@ -10523,8 +10551,8 @@ class ae extends m {
|
|
|
10523
10551
|
}
|
|
10524
10552
|
static fromProto(t) {
|
|
10525
10553
|
return new ae(
|
|
10526
|
-
|
|
10527
|
-
|
|
10554
|
+
F.fromProto(t.votingPeriod),
|
|
10555
|
+
F.fromProto(t.minExecutionPeriod)
|
|
10528
10556
|
);
|
|
10529
10557
|
}
|
|
10530
10558
|
toProto() {
|
|
@@ -10811,7 +10839,7 @@ class jr extends m {
|
|
|
10811
10839
|
} = t;
|
|
10812
10840
|
return new jr(
|
|
10813
10841
|
e,
|
|
10814
|
-
r.map(
|
|
10842
|
+
r.map(At.fromAmino),
|
|
10815
10843
|
o,
|
|
10816
10844
|
s,
|
|
10817
10845
|
n,
|
|
@@ -10850,7 +10878,7 @@ class jr extends m {
|
|
|
10850
10878
|
} = t;
|
|
10851
10879
|
return new jr(
|
|
10852
10880
|
e,
|
|
10853
|
-
r.map(
|
|
10881
|
+
r.map(At.fromData),
|
|
10854
10882
|
o,
|
|
10855
10883
|
s,
|
|
10856
10884
|
n,
|
|
@@ -10879,7 +10907,7 @@ class jr extends m {
|
|
|
10879
10907
|
static fromProto(t) {
|
|
10880
10908
|
return new jr(
|
|
10881
10909
|
t.admin,
|
|
10882
|
-
t.members.map(
|
|
10910
|
+
t.members.map(At.fromProto),
|
|
10883
10911
|
t.groupMetadata,
|
|
10884
10912
|
t.groupPolicyMetadata,
|
|
10885
10913
|
t.groupPolicyAsAdmin,
|
|
@@ -11420,7 +11448,7 @@ class Xr extends m {
|
|
|
11420
11448
|
return new Xr(
|
|
11421
11449
|
e,
|
|
11422
11450
|
parseInt(r),
|
|
11423
|
-
o.map(
|
|
11451
|
+
o.map(At.fromAmino)
|
|
11424
11452
|
);
|
|
11425
11453
|
}
|
|
11426
11454
|
toAmino() {
|
|
@@ -11439,7 +11467,7 @@ class Xr extends m {
|
|
|
11439
11467
|
return new Xr(
|
|
11440
11468
|
e,
|
|
11441
11469
|
parseInt(r),
|
|
11442
|
-
o.map(
|
|
11470
|
+
o.map(At.fromData)
|
|
11443
11471
|
);
|
|
11444
11472
|
}
|
|
11445
11473
|
toData() {
|
|
@@ -11455,7 +11483,7 @@ class Xr extends m {
|
|
|
11455
11483
|
return new Xr(
|
|
11456
11484
|
t.admin,
|
|
11457
11485
|
Number(t.groupId),
|
|
11458
|
-
t.memberUpdates.map(
|
|
11486
|
+
t.memberUpdates.map(At.fromProto)
|
|
11459
11487
|
);
|
|
11460
11488
|
}
|
|
11461
11489
|
toProto() {
|
|
@@ -11904,8 +11932,8 @@ class xs extends m {
|
|
|
11904
11932
|
* @param title title of the proposal
|
|
11905
11933
|
* @param summary short summary of the proposal
|
|
11906
11934
|
*/
|
|
11907
|
-
constructor(t, e, r, o, s, n, i, c, d, g, v,
|
|
11908
|
-
super(), this.id = t, this.group_policy_address = e, this.metadata = r, this.proposers = o, this.submit_time = s, this.group_version = n, this.group_policy_version = i, this.status = c, this.final_tally_result = d, this.voting_period_end = g, this.executor_result = v, this.messages =
|
|
11935
|
+
constructor(t, e, r, o, s, n, i, c, d, g, v, A, k, E) {
|
|
11936
|
+
super(), this.id = t, this.group_policy_address = e, this.metadata = r, this.proposers = o, this.submit_time = s, this.group_version = n, this.group_policy_version = i, this.status = c, this.final_tally_result = d, this.voting_period_end = g, this.executor_result = v, this.messages = A, this.title = k, this.summary = E;
|
|
11909
11937
|
}
|
|
11910
11938
|
static fromAmino(t) {
|
|
11911
11939
|
const {
|
|
@@ -11919,7 +11947,7 @@ class xs extends m {
|
|
|
11919
11947
|
status: d,
|
|
11920
11948
|
final_tally_result: g,
|
|
11921
11949
|
voting_period_end: v,
|
|
11922
|
-
executor_result:
|
|
11950
|
+
executor_result: A,
|
|
11923
11951
|
messages: k,
|
|
11924
11952
|
title: E,
|
|
11925
11953
|
summary: $
|
|
@@ -11934,15 +11962,15 @@ class xs extends m {
|
|
|
11934
11962
|
parseInt(c),
|
|
11935
11963
|
Zd(d),
|
|
11936
11964
|
{
|
|
11937
|
-
yes_count:
|
|
11938
|
-
no_count:
|
|
11939
|
-
abstain_count:
|
|
11940
|
-
no_with_veto_count:
|
|
11965
|
+
yes_count: O(g.yes_count ?? 0).toFixed(),
|
|
11966
|
+
no_count: O(g.no_count ?? 0).toFixed(),
|
|
11967
|
+
abstain_count: O(g.abstain_count ?? 0).toFixed(),
|
|
11968
|
+
no_with_veto_count: O(
|
|
11941
11969
|
g.no_with_veto_count ?? 0
|
|
11942
11970
|
).toFixed()
|
|
11943
11971
|
},
|
|
11944
11972
|
new Date(v),
|
|
11945
|
-
Yd(
|
|
11973
|
+
Yd(A),
|
|
11946
11974
|
k.map(Q.fromAmino),
|
|
11947
11975
|
E,
|
|
11948
11976
|
$
|
|
@@ -11961,7 +11989,7 @@ class xs extends m {
|
|
|
11961
11989
|
final_tally_result: d,
|
|
11962
11990
|
voting_period_end: g,
|
|
11963
11991
|
executor_result: v,
|
|
11964
|
-
messages:
|
|
11992
|
+
messages: A,
|
|
11965
11993
|
title: k,
|
|
11966
11994
|
summary: E
|
|
11967
11995
|
} = this;
|
|
@@ -11975,16 +12003,16 @@ class xs extends m {
|
|
|
11975
12003
|
group_policy_version: i.toFixed(),
|
|
11976
12004
|
status: Xd(c),
|
|
11977
12005
|
final_tally_result: {
|
|
11978
|
-
yes_count:
|
|
11979
|
-
no_count:
|
|
11980
|
-
abstain_count:
|
|
11981
|
-
no_with_veto_count:
|
|
12006
|
+
yes_count: O(d.yes_count).toFixed(),
|
|
12007
|
+
no_count: O(d.no_count).toFixed(),
|
|
12008
|
+
abstain_count: O(d.abstain_count).toFixed(),
|
|
12009
|
+
no_with_veto_count: O(
|
|
11982
12010
|
d.no_with_veto_count
|
|
11983
12011
|
).toFixed()
|
|
11984
12012
|
},
|
|
11985
12013
|
voting_period_end: g.toISOString(),
|
|
11986
12014
|
executor_result: Qd(v),
|
|
11987
|
-
messages:
|
|
12015
|
+
messages: A.map(($) => $.toAmino()),
|
|
11988
12016
|
title: k,
|
|
11989
12017
|
summary: E
|
|
11990
12018
|
};
|
|
@@ -12001,7 +12029,7 @@ class xs extends m {
|
|
|
12001
12029
|
status: d,
|
|
12002
12030
|
final_tally_result: g,
|
|
12003
12031
|
voting_period_end: v,
|
|
12004
|
-
executor_result:
|
|
12032
|
+
executor_result: A,
|
|
12005
12033
|
messages: k,
|
|
12006
12034
|
title: E,
|
|
12007
12035
|
summary: $
|
|
@@ -12016,15 +12044,15 @@ class xs extends m {
|
|
|
12016
12044
|
parseInt(c),
|
|
12017
12045
|
Zd(d),
|
|
12018
12046
|
{
|
|
12019
|
-
yes_count:
|
|
12020
|
-
no_count:
|
|
12021
|
-
abstain_count:
|
|
12022
|
-
no_with_veto_count:
|
|
12047
|
+
yes_count: O(g.yes_count ?? 0).toFixed(),
|
|
12048
|
+
no_count: O(g.no_count ?? 0).toFixed(),
|
|
12049
|
+
abstain_count: O(g.abstain_count ?? 0).toFixed(),
|
|
12050
|
+
no_with_veto_count: O(
|
|
12023
12051
|
g.no_with_veto_count ?? 0
|
|
12024
12052
|
).toFixed()
|
|
12025
12053
|
},
|
|
12026
12054
|
new Date(v),
|
|
12027
|
-
Yd(
|
|
12055
|
+
Yd(A),
|
|
12028
12056
|
k.map(Q.fromData),
|
|
12029
12057
|
E,
|
|
12030
12058
|
$
|
|
@@ -12043,7 +12071,7 @@ class xs extends m {
|
|
|
12043
12071
|
final_tally_result: d,
|
|
12044
12072
|
voting_period_end: g,
|
|
12045
12073
|
executor_result: v,
|
|
12046
|
-
messages:
|
|
12074
|
+
messages: A,
|
|
12047
12075
|
title: k,
|
|
12048
12076
|
summary: E
|
|
12049
12077
|
} = this;
|
|
@@ -12057,16 +12085,16 @@ class xs extends m {
|
|
|
12057
12085
|
group_policy_version: i.toFixed(),
|
|
12058
12086
|
status: Xd(c),
|
|
12059
12087
|
final_tally_result: {
|
|
12060
|
-
yes_count:
|
|
12061
|
-
no_count:
|
|
12062
|
-
abstain_count:
|
|
12063
|
-
no_with_veto_count:
|
|
12088
|
+
yes_count: O(d.yes_count).toFixed(),
|
|
12089
|
+
no_count: O(d.no_count).toFixed(),
|
|
12090
|
+
abstain_count: O(d.abstain_count).toFixed(),
|
|
12091
|
+
no_with_veto_count: O(
|
|
12064
12092
|
d.no_with_veto_count
|
|
12065
12093
|
).toFixed()
|
|
12066
12094
|
},
|
|
12067
12095
|
voting_period_end: g.toISOString(),
|
|
12068
12096
|
executor_result: Qd(v),
|
|
12069
|
-
messages:
|
|
12097
|
+
messages: A.map(($) => $.toData()),
|
|
12070
12098
|
title: k,
|
|
12071
12099
|
summary: E
|
|
12072
12100
|
};
|
|
@@ -12083,10 +12111,10 @@ class xs extends m {
|
|
|
12083
12111
|
Number(t.groupPolicyVersion),
|
|
12084
12112
|
t.status,
|
|
12085
12113
|
{
|
|
12086
|
-
yes_count:
|
|
12087
|
-
no_count:
|
|
12088
|
-
abstain_count:
|
|
12089
|
-
no_with_veto_count:
|
|
12114
|
+
yes_count: O(((e = t.finalTallyResult) == null ? void 0 : e.yesCount) ?? 0).toFixed(),
|
|
12115
|
+
no_count: O(((r = t.finalTallyResult) == null ? void 0 : r.noCount) ?? 0).toFixed(),
|
|
12116
|
+
abstain_count: O(((o = t.finalTallyResult) == null ? void 0 : o.abstainCount) ?? 0).toFixed(),
|
|
12117
|
+
no_with_veto_count: O(
|
|
12090
12118
|
((s = t.finalTallyResult) == null ? void 0 : s.noWithVetoCount) ?? 0
|
|
12091
12119
|
).toFixed()
|
|
12092
12120
|
},
|
|
@@ -12110,17 +12138,17 @@ class xs extends m {
|
|
|
12110
12138
|
final_tally_result: d,
|
|
12111
12139
|
voting_period_end: g,
|
|
12112
12140
|
executor_result: v,
|
|
12113
|
-
messages:
|
|
12141
|
+
messages: A,
|
|
12114
12142
|
title: k,
|
|
12115
12143
|
summary: E
|
|
12116
12144
|
} = this;
|
|
12117
12145
|
let $;
|
|
12118
|
-
return d && ($ =
|
|
12146
|
+
return d && ($ = Nh.fromPartial({
|
|
12119
12147
|
yesCount: d.yes_count,
|
|
12120
12148
|
noCount: d.no_count,
|
|
12121
12149
|
abstainCount: d.abstain_count,
|
|
12122
12150
|
noWithVetoCount: d.no_with_veto_count
|
|
12123
|
-
})),
|
|
12151
|
+
})), Oh.fromPartial({
|
|
12124
12152
|
id: BigInt(t),
|
|
12125
12153
|
groupPolicyAddress: e,
|
|
12126
12154
|
metadata: r,
|
|
@@ -12132,7 +12160,7 @@ class xs extends m {
|
|
|
12132
12160
|
finalTallyResult: $,
|
|
12133
12161
|
votingPeriodEnd: g,
|
|
12134
12162
|
executorResult: v,
|
|
12135
|
-
messages:
|
|
12163
|
+
messages: A.map((L) => L.packAny()),
|
|
12136
12164
|
title: k,
|
|
12137
12165
|
summary: E
|
|
12138
12166
|
});
|
|
@@ -12203,7 +12231,7 @@ class ge extends m {
|
|
|
12203
12231
|
}
|
|
12204
12232
|
toProto() {
|
|
12205
12233
|
const { proposal_id: t, voter: e, option: r, metadata: o, submit_time: s } = this;
|
|
12206
|
-
return
|
|
12234
|
+
return Fh.fromPartial({
|
|
12207
12235
|
proposalId: BigInt(t),
|
|
12208
12236
|
voter: e,
|
|
12209
12237
|
option: r,
|
|
@@ -12556,7 +12584,7 @@ class $n extends m {
|
|
|
12556
12584
|
return $n.fromProto(hm.decode(t.value));
|
|
12557
12585
|
}
|
|
12558
12586
|
}
|
|
12559
|
-
class
|
|
12587
|
+
class Nn extends m {
|
|
12560
12588
|
/**
|
|
12561
12589
|
* @param port_id unique port identifier
|
|
12562
12590
|
* @param channel_id unique channel identifier
|
|
@@ -12574,7 +12602,7 @@ class Fn extends m {
|
|
|
12574
12602
|
}
|
|
12575
12603
|
static fromData(t) {
|
|
12576
12604
|
const { port_id: e, channel_id: r, relayer: o, counterparty_payee: s } = t;
|
|
12577
|
-
return new
|
|
12605
|
+
return new Nn(
|
|
12578
12606
|
e,
|
|
12579
12607
|
r,
|
|
12580
12608
|
o,
|
|
@@ -12592,7 +12620,7 @@ class Fn extends m {
|
|
|
12592
12620
|
};
|
|
12593
12621
|
}
|
|
12594
12622
|
static fromProto(t) {
|
|
12595
|
-
return new
|
|
12623
|
+
return new Nn(
|
|
12596
12624
|
t.portId,
|
|
12597
12625
|
t.channelId,
|
|
12598
12626
|
t.relayer,
|
|
@@ -12615,7 +12643,7 @@ class Fn extends m {
|
|
|
12615
12643
|
});
|
|
12616
12644
|
}
|
|
12617
12645
|
static unpackAny(t) {
|
|
12618
|
-
return
|
|
12646
|
+
return Nn.fromProto(
|
|
12619
12647
|
fm.decode(t.value)
|
|
12620
12648
|
);
|
|
12621
12649
|
}
|
|
@@ -12872,7 +12900,7 @@ class so extends m {
|
|
|
12872
12900
|
);
|
|
12873
12901
|
}
|
|
12874
12902
|
}
|
|
12875
|
-
class
|
|
12903
|
+
class On extends m {
|
|
12876
12904
|
/**
|
|
12877
12905
|
* @param address
|
|
12878
12906
|
* @param allowed
|
|
@@ -12882,7 +12910,7 @@ class Nn extends m {
|
|
|
12882
12910
|
}
|
|
12883
12911
|
static fromAmino(t) {
|
|
12884
12912
|
const { address: e, allowed: r } = t;
|
|
12885
|
-
return new
|
|
12913
|
+
return new On(e, r);
|
|
12886
12914
|
}
|
|
12887
12915
|
toAmino() {
|
|
12888
12916
|
const { address: t, allowed: e } = this;
|
|
@@ -12890,14 +12918,14 @@ class Nn extends m {
|
|
|
12890
12918
|
}
|
|
12891
12919
|
static fromData(t) {
|
|
12892
12920
|
const { address: e, allowed: r } = t;
|
|
12893
|
-
return new
|
|
12921
|
+
return new On(e, r);
|
|
12894
12922
|
}
|
|
12895
12923
|
toData() {
|
|
12896
12924
|
const { address: t, allowed: e } = this;
|
|
12897
12925
|
return { address: t, allowed: e };
|
|
12898
12926
|
}
|
|
12899
12927
|
static fromProto(t) {
|
|
12900
|
-
return new
|
|
12928
|
+
return new On(t.address, t.allowed);
|
|
12901
12929
|
}
|
|
12902
12930
|
toProto() {
|
|
12903
12931
|
const { address: t, allowed: e } = this;
|
|
@@ -12961,7 +12989,7 @@ class no extends m {
|
|
|
12961
12989
|
n,
|
|
12962
12990
|
i,
|
|
12963
12991
|
c,
|
|
12964
|
-
|
|
12992
|
+
U.fromAmino(d),
|
|
12965
12993
|
g,
|
|
12966
12994
|
v
|
|
12967
12995
|
);
|
|
@@ -12987,9 +13015,9 @@ class no extends m {
|
|
|
12987
13015
|
token_ids: s,
|
|
12988
13016
|
sender: n,
|
|
12989
13017
|
receiver: i,
|
|
12990
|
-
timeout_height: c == null ? void 0 : c.toAmino(),
|
|
13018
|
+
timeout_height: (c == null ? void 0 : c.toAmino()) ?? {},
|
|
12991
13019
|
timeout_timestamp: d,
|
|
12992
|
-
memo: g
|
|
13020
|
+
memo: g === "" ? void 0 : g
|
|
12993
13021
|
}
|
|
12994
13022
|
};
|
|
12995
13023
|
}
|
|
@@ -13349,7 +13377,7 @@ class Xa extends m {
|
|
|
13349
13377
|
});
|
|
13350
13378
|
}
|
|
13351
13379
|
}
|
|
13352
|
-
class
|
|
13380
|
+
class Fn extends m {
|
|
13353
13381
|
/**
|
|
13354
13382
|
* @param path the chain of port/channel identifiers used for tracing the source of the non fungible token
|
|
13355
13383
|
* @param base_class_id base class id of the relayed non fungible token
|
|
@@ -13359,7 +13387,7 @@ class On extends m {
|
|
|
13359
13387
|
}
|
|
13360
13388
|
static fromAmino(t) {
|
|
13361
13389
|
const { path: e, base_class_id: r } = t;
|
|
13362
|
-
return new
|
|
13390
|
+
return new Fn(e, r);
|
|
13363
13391
|
}
|
|
13364
13392
|
toAmino() {
|
|
13365
13393
|
const { path: t, base_class_id: e } = this;
|
|
@@ -13370,7 +13398,7 @@ class On extends m {
|
|
|
13370
13398
|
}
|
|
13371
13399
|
static fromData(t) {
|
|
13372
13400
|
const { path: e, base_class_id: r } = t;
|
|
13373
|
-
return new
|
|
13401
|
+
return new Fn(e, r);
|
|
13374
13402
|
}
|
|
13375
13403
|
toData() {
|
|
13376
13404
|
const { path: t, base_class_id: e } = this;
|
|
@@ -13380,7 +13408,7 @@ class On extends m {
|
|
|
13380
13408
|
};
|
|
13381
13409
|
}
|
|
13382
13410
|
static fromProto(t) {
|
|
13383
|
-
return new
|
|
13411
|
+
return new Fn(t.path, t.baseClassId);
|
|
13384
13412
|
}
|
|
13385
13413
|
toProto() {
|
|
13386
13414
|
const { path: t, base_class_id: e } = this;
|
|
@@ -13580,7 +13608,7 @@ class cn extends m {
|
|
|
13580
13608
|
});
|
|
13581
13609
|
}
|
|
13582
13610
|
}
|
|
13583
|
-
class
|
|
13611
|
+
class Ft extends m {
|
|
13584
13612
|
/**
|
|
13585
13613
|
* @param state current state of the channel end
|
|
13586
13614
|
* @param ordering whether the channel is ordered or unordered
|
|
@@ -13593,7 +13621,7 @@ class Ot extends m {
|
|
|
13593
13621
|
}
|
|
13594
13622
|
static fromAmino(t) {
|
|
13595
13623
|
const { state: e, ordering: r, counterparty: o, connection_hops: s, version: n } = t;
|
|
13596
|
-
return new
|
|
13624
|
+
return new Ft(
|
|
13597
13625
|
e,
|
|
13598
13626
|
r,
|
|
13599
13627
|
o ? cn.fromAmino(o) : void 0,
|
|
@@ -13613,7 +13641,7 @@ class Ot extends m {
|
|
|
13613
13641
|
}
|
|
13614
13642
|
static fromData(t) {
|
|
13615
13643
|
const { state: e, ordering: r, counterparty: o, connection_hops: s, version: n } = t;
|
|
13616
|
-
return new
|
|
13644
|
+
return new Ft(
|
|
13617
13645
|
e,
|
|
13618
13646
|
r,
|
|
13619
13647
|
o ? cn.fromData(o) : void 0,
|
|
@@ -13632,7 +13660,7 @@ class Ot extends m {
|
|
|
13632
13660
|
};
|
|
13633
13661
|
}
|
|
13634
13662
|
static fromProto(t) {
|
|
13635
|
-
return new
|
|
13663
|
+
return new Ft(
|
|
13636
13664
|
t.state,
|
|
13637
13665
|
t.ordering,
|
|
13638
13666
|
t.counterparty ? cn.fromProto(t.counterparty) : void 0,
|
|
@@ -13670,7 +13698,7 @@ class Tn extends m {
|
|
|
13670
13698
|
const { port_id: e, channel: r, signer: o } = t;
|
|
13671
13699
|
return new Tn(
|
|
13672
13700
|
e,
|
|
13673
|
-
r ?
|
|
13701
|
+
r ? Ft.fromData(r) : void 0,
|
|
13674
13702
|
o
|
|
13675
13703
|
);
|
|
13676
13704
|
}
|
|
@@ -13686,13 +13714,13 @@ class Tn extends m {
|
|
|
13686
13714
|
static fromProto(t) {
|
|
13687
13715
|
return new Tn(
|
|
13688
13716
|
t.portId,
|
|
13689
|
-
t.channel ?
|
|
13717
|
+
t.channel ? Ft.fromProto(t.channel) : void 0,
|
|
13690
13718
|
t.signer
|
|
13691
13719
|
);
|
|
13692
13720
|
}
|
|
13693
13721
|
toProto() {
|
|
13694
13722
|
const { port_id: t, channel: e, signer: r } = this;
|
|
13695
|
-
return
|
|
13723
|
+
return bm.fromPartial({
|
|
13696
13724
|
portId: t,
|
|
13697
13725
|
channel: e == null ? void 0 : e.toProto(),
|
|
13698
13726
|
signer: r
|
|
@@ -13701,12 +13729,12 @@ class Tn extends m {
|
|
|
13701
13729
|
packAny() {
|
|
13702
13730
|
return f.fromPartial({
|
|
13703
13731
|
typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit",
|
|
13704
|
-
value:
|
|
13732
|
+
value: bm.encode(this.toProto()).finish()
|
|
13705
13733
|
});
|
|
13706
13734
|
}
|
|
13707
13735
|
static unpackAny(t) {
|
|
13708
13736
|
return Tn.fromProto(
|
|
13709
|
-
|
|
13737
|
+
bm.decode(t.value)
|
|
13710
13738
|
);
|
|
13711
13739
|
}
|
|
13712
13740
|
}
|
|
@@ -13894,7 +13922,7 @@ class Hn extends m {
|
|
|
13894
13922
|
proof_upgrade_consensus_state: s,
|
|
13895
13923
|
signer: n
|
|
13896
13924
|
} = this;
|
|
13897
|
-
return
|
|
13925
|
+
return Nm.fromPartial({
|
|
13898
13926
|
clientId: t,
|
|
13899
13927
|
clientState: e,
|
|
13900
13928
|
consensusState: r,
|
|
@@ -13909,11 +13937,11 @@ class Hn extends m {
|
|
|
13909
13937
|
packAny() {
|
|
13910
13938
|
return f.fromPartial({
|
|
13911
13939
|
typeUrl: "/ibc.core.client.v1.MsgUpgradeClient",
|
|
13912
|
-
value:
|
|
13940
|
+
value: Nm.encode(this.toProto()).finish()
|
|
13913
13941
|
});
|
|
13914
13942
|
}
|
|
13915
13943
|
static unpackAny(t) {
|
|
13916
|
-
return Hn.fromProto(
|
|
13944
|
+
return Hn.fromProto(Nm.decode(t.value));
|
|
13917
13945
|
}
|
|
13918
13946
|
}
|
|
13919
13947
|
class zn extends m {
|
|
@@ -13953,7 +13981,7 @@ class zn extends m {
|
|
|
13953
13981
|
}
|
|
13954
13982
|
toProto() {
|
|
13955
13983
|
const { client_id: t, misbehaviour: e, signer: r } = this;
|
|
13956
|
-
return
|
|
13984
|
+
return Om.fromPartial({
|
|
13957
13985
|
clientId: t,
|
|
13958
13986
|
misbehaviour: e,
|
|
13959
13987
|
signer: r
|
|
@@ -13962,12 +13990,12 @@ class zn extends m {
|
|
|
13962
13990
|
packAny() {
|
|
13963
13991
|
return f.fromPartial({
|
|
13964
13992
|
typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour",
|
|
13965
|
-
value:
|
|
13993
|
+
value: Om.encode(this.toProto()).finish()
|
|
13966
13994
|
});
|
|
13967
13995
|
}
|
|
13968
13996
|
static unpackAny(t) {
|
|
13969
13997
|
return zn.fromProto(
|
|
13970
|
-
|
|
13998
|
+
Om.decode(t.value)
|
|
13971
13999
|
);
|
|
13972
14000
|
}
|
|
13973
14001
|
}
|
|
@@ -14008,7 +14036,7 @@ class qn extends m {
|
|
|
14008
14036
|
}
|
|
14009
14037
|
toProto() {
|
|
14010
14038
|
const { subject_client_id: t, substitute_client_id: e, signer: r } = this;
|
|
14011
|
-
return
|
|
14039
|
+
return Fm.fromPartial({
|
|
14012
14040
|
subjectClientId: t,
|
|
14013
14041
|
substituteClientId: e,
|
|
14014
14042
|
signer: r
|
|
@@ -14017,11 +14045,11 @@ class qn extends m {
|
|
|
14017
14045
|
packAny() {
|
|
14018
14046
|
return f.fromPartial({
|
|
14019
14047
|
typeUrl: "/ibc.core.client.v1.MsgRecoverClient",
|
|
14020
|
-
value:
|
|
14048
|
+
value: Fm.encode(this.toProto()).finish()
|
|
14021
14049
|
});
|
|
14022
14050
|
}
|
|
14023
14051
|
static unpackAny(t) {
|
|
14024
|
-
return qn.fromProto(
|
|
14052
|
+
return qn.fromProto(Fm.decode(t.value));
|
|
14025
14053
|
}
|
|
14026
14054
|
}
|
|
14027
14055
|
class ie extends m {
|
|
@@ -14988,7 +15016,7 @@ class Jn extends m {
|
|
|
14988
15016
|
return new Jn(
|
|
14989
15017
|
e,
|
|
14990
15018
|
r,
|
|
14991
|
-
o ?
|
|
15019
|
+
o ? Ft.fromData(o) : void 0,
|
|
14992
15020
|
s,
|
|
14993
15021
|
n,
|
|
14994
15022
|
i ? U.fromData(i) : void 0,
|
|
@@ -15020,7 +15048,7 @@ class Jn extends m {
|
|
|
15020
15048
|
return new Jn(
|
|
15021
15049
|
t.portId,
|
|
15022
15050
|
t.previousChannelId,
|
|
15023
|
-
t.channel ?
|
|
15051
|
+
t.channel ? Ft.fromProto(t.channel) : void 0,
|
|
15024
15052
|
t.counterpartyVersion,
|
|
15025
15053
|
Buffer.from(t.proofInit).toString("base64"),
|
|
15026
15054
|
t.proofHeight ? U.fromProto(t.proofHeight) : void 0,
|
|
@@ -15037,7 +15065,7 @@ class Jn extends m {
|
|
|
15037
15065
|
proof_height: n,
|
|
15038
15066
|
signer: i
|
|
15039
15067
|
} = this;
|
|
15040
|
-
return
|
|
15068
|
+
return Am.fromPartial({
|
|
15041
15069
|
portId: t,
|
|
15042
15070
|
previousChannelId: e,
|
|
15043
15071
|
channel: r == null ? void 0 : r.toProto(),
|
|
@@ -15050,12 +15078,12 @@ class Jn extends m {
|
|
|
15050
15078
|
packAny() {
|
|
15051
15079
|
return f.fromPartial({
|
|
15052
15080
|
typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry",
|
|
15053
|
-
value:
|
|
15081
|
+
value: Am.encode(this.toProto()).finish()
|
|
15054
15082
|
});
|
|
15055
15083
|
}
|
|
15056
15084
|
static unpackAny(t) {
|
|
15057
15085
|
return Jn.fromProto(
|
|
15058
|
-
|
|
15086
|
+
Am.decode(t.value)
|
|
15059
15087
|
);
|
|
15060
15088
|
}
|
|
15061
15089
|
}
|
|
@@ -15822,7 +15850,7 @@ class aa extends m {
|
|
|
15822
15850
|
proof_client: d,
|
|
15823
15851
|
proof_consensus: g,
|
|
15824
15852
|
consensus_height: v,
|
|
15825
|
-
signer:
|
|
15853
|
+
signer: A
|
|
15826
15854
|
} = t;
|
|
15827
15855
|
return new aa(
|
|
15828
15856
|
e,
|
|
@@ -15835,7 +15863,7 @@ class aa extends m {
|
|
|
15835
15863
|
Buffer.from(d).toString("base64"),
|
|
15836
15864
|
Buffer.from(g).toString("base64"),
|
|
15837
15865
|
v ? U.fromData(v) : void 0,
|
|
15838
|
-
|
|
15866
|
+
A
|
|
15839
15867
|
);
|
|
15840
15868
|
}
|
|
15841
15869
|
toData() {
|
|
@@ -15858,7 +15886,7 @@ class aa extends m {
|
|
|
15858
15886
|
client_state: e,
|
|
15859
15887
|
counterparty: r == null ? void 0 : r.toData(),
|
|
15860
15888
|
delay_period: o.toFixed(),
|
|
15861
|
-
counterparty_versions: s.map((
|
|
15889
|
+
counterparty_versions: s.map((A) => A.toData()),
|
|
15862
15890
|
proof_height: n == null ? void 0 : n.toData(),
|
|
15863
15891
|
proof_init: i,
|
|
15864
15892
|
proof_client: c,
|
|
@@ -15901,7 +15929,7 @@ class aa extends m {
|
|
|
15901
15929
|
clientState: e,
|
|
15902
15930
|
counterparty: r == null ? void 0 : r.toProto(),
|
|
15903
15931
|
delayPeriod: BigInt(o),
|
|
15904
|
-
counterpartyVersions: s.map((
|
|
15932
|
+
counterpartyVersions: s.map((A) => A.toProto()),
|
|
15905
15933
|
proofHeight: n == null ? void 0 : n.toProto(),
|
|
15906
15934
|
proofInit: Buffer.from(i, "base64"),
|
|
15907
15935
|
proofClient: Buffer.from(c, "base64"),
|
|
@@ -17107,7 +17135,7 @@ class Zt extends m {
|
|
|
17107
17135
|
value: {
|
|
17108
17136
|
sender: t,
|
|
17109
17137
|
code_bytes: e,
|
|
17110
|
-
upgrade_policy: r ===
|
|
17138
|
+
upgrade_policy: r === Oa.UNSPECIFIED ? void 0 : r
|
|
17111
17139
|
}
|
|
17112
17140
|
};
|
|
17113
17141
|
}
|
|
@@ -17150,7 +17178,7 @@ class Zt extends m {
|
|
|
17150
17178
|
}
|
|
17151
17179
|
}
|
|
17152
17180
|
((a) => {
|
|
17153
|
-
a.Policy =
|
|
17181
|
+
a.Policy = Oa;
|
|
17154
17182
|
})(Zt || (Zt = {}));
|
|
17155
17183
|
class Po extends m {
|
|
17156
17184
|
/**
|
|
@@ -17283,7 +17311,7 @@ class Po extends m {
|
|
|
17283
17311
|
return Po.fromProto(ou.decode(e.value));
|
|
17284
17312
|
}
|
|
17285
17313
|
}
|
|
17286
|
-
class
|
|
17314
|
+
class bo extends m {
|
|
17287
17315
|
/**
|
|
17288
17316
|
* @param sender the actor that signed the messages
|
|
17289
17317
|
* @param module_address the address of the module deployer
|
|
@@ -17309,7 +17337,7 @@ class Ao extends m {
|
|
|
17309
17337
|
args: c
|
|
17310
17338
|
}
|
|
17311
17339
|
} = e;
|
|
17312
|
-
return new
|
|
17340
|
+
return new bo(
|
|
17313
17341
|
r,
|
|
17314
17342
|
o,
|
|
17315
17343
|
s,
|
|
@@ -17348,7 +17376,7 @@ class Ao extends m {
|
|
|
17348
17376
|
type_args: i,
|
|
17349
17377
|
args: c
|
|
17350
17378
|
} = e;
|
|
17351
|
-
return new
|
|
17379
|
+
return new bo(
|
|
17352
17380
|
r,
|
|
17353
17381
|
o,
|
|
17354
17382
|
s,
|
|
@@ -17377,7 +17405,7 @@ class Ao extends m {
|
|
|
17377
17405
|
};
|
|
17378
17406
|
}
|
|
17379
17407
|
static fromProto(e) {
|
|
17380
|
-
return new
|
|
17408
|
+
return new bo(
|
|
17381
17409
|
e.sender,
|
|
17382
17410
|
e.moduleAddress,
|
|
17383
17411
|
e.moduleName,
|
|
@@ -17411,10 +17439,10 @@ class Ao extends m {
|
|
|
17411
17439
|
});
|
|
17412
17440
|
}
|
|
17413
17441
|
static unpackAny(e) {
|
|
17414
|
-
return
|
|
17442
|
+
return bo.fromProto(su.decode(e.value));
|
|
17415
17443
|
}
|
|
17416
17444
|
}
|
|
17417
|
-
class
|
|
17445
|
+
class Ao extends m {
|
|
17418
17446
|
/**
|
|
17419
17447
|
* @param sender the actor that signed the messages
|
|
17420
17448
|
* @param code_bytes the script bytes code to execute
|
|
@@ -17431,7 +17459,7 @@ class bo extends m {
|
|
|
17431
17459
|
const {
|
|
17432
17460
|
value: { sender: r, code_bytes: o, type_args: s, args: n }
|
|
17433
17461
|
} = e;
|
|
17434
|
-
return new
|
|
17462
|
+
return new Ao(r, o, s ?? [], n ?? []);
|
|
17435
17463
|
}
|
|
17436
17464
|
toAmino() {
|
|
17437
17465
|
const { sender: e, code_bytes: r, type_args: o, args: s } = this;
|
|
@@ -17447,7 +17475,7 @@ class bo extends m {
|
|
|
17447
17475
|
}
|
|
17448
17476
|
static fromData(e) {
|
|
17449
17477
|
const { sender: r, code_bytes: o, type_args: s, args: n } = e;
|
|
17450
|
-
return new
|
|
17478
|
+
return new Ao(r, o, s, n);
|
|
17451
17479
|
}
|
|
17452
17480
|
toData() {
|
|
17453
17481
|
const { sender: e, code_bytes: r, type_args: o, args: s } = this;
|
|
@@ -17460,7 +17488,7 @@ class bo extends m {
|
|
|
17460
17488
|
};
|
|
17461
17489
|
}
|
|
17462
17490
|
static fromProto(e) {
|
|
17463
|
-
return new
|
|
17491
|
+
return new Ao(
|
|
17464
17492
|
e.sender,
|
|
17465
17493
|
Buffer.from(e.codeBytes).toString("base64"),
|
|
17466
17494
|
e.typeArgs,
|
|
@@ -17483,7 +17511,7 @@ class bo extends m {
|
|
|
17483
17511
|
});
|
|
17484
17512
|
}
|
|
17485
17513
|
static unpackAny(e) {
|
|
17486
|
-
return
|
|
17514
|
+
return Ao.fromProto(nu.decode(e.value));
|
|
17487
17515
|
}
|
|
17488
17516
|
}
|
|
17489
17517
|
class Do extends m {
|
|
@@ -18158,7 +18186,7 @@ class Yt extends m {
|
|
|
18158
18186
|
authority: t,
|
|
18159
18187
|
sender: e,
|
|
18160
18188
|
code_bytes: r,
|
|
18161
|
-
upgrade_policy: o ===
|
|
18189
|
+
upgrade_policy: o === Oa.UNSPECIFIED ? void 0 : o
|
|
18162
18190
|
}
|
|
18163
18191
|
};
|
|
18164
18192
|
}
|
|
@@ -18204,7 +18232,7 @@ class Yt extends m {
|
|
|
18204
18232
|
}
|
|
18205
18233
|
}
|
|
18206
18234
|
((a) => {
|
|
18207
|
-
a.Policy =
|
|
18235
|
+
a.Policy = Oa;
|
|
18208
18236
|
})(Yt || (Yt = {}));
|
|
18209
18237
|
class Bo extends m {
|
|
18210
18238
|
/**
|
|
@@ -18444,7 +18472,7 @@ class Es extends m {
|
|
|
18444
18472
|
}
|
|
18445
18473
|
}
|
|
18446
18474
|
((a) => {
|
|
18447
|
-
a.Policy =
|
|
18475
|
+
a.Policy = Oa;
|
|
18448
18476
|
})(Es || (Es = {}));
|
|
18449
18477
|
class Uo extends m {
|
|
18450
18478
|
/**
|
|
@@ -18716,12 +18744,12 @@ class ot extends m {
|
|
|
18716
18744
|
* @param commission validator commission
|
|
18717
18745
|
* @param min_self_delegation minimum self delegation
|
|
18718
18746
|
*/
|
|
18719
|
-
constructor(e, r, o, s, n, i, c, d, g, v,
|
|
18747
|
+
constructor(e, r, o, s, n, i, c, d, g, v, A, k) {
|
|
18720
18748
|
super();
|
|
18721
18749
|
_(this, "tokens");
|
|
18722
18750
|
_(this, "delegator_shares");
|
|
18723
18751
|
_(this, "voting_powers");
|
|
18724
|
-
this.operator_address = e, this.consensus_pubkey = r, this.jailed = o, this.status = s, this.description = c, this.unbonding_height = d, this.unbonding_time = g, this.commission = v, this.voting_power = k, this.tokens = new l(n), this.delegator_shares = new l(i), this.voting_powers = new l(
|
|
18752
|
+
this.operator_address = e, this.consensus_pubkey = r, this.jailed = o, this.status = s, this.description = c, this.unbonding_height = d, this.unbonding_time = g, this.commission = v, this.voting_power = k, this.tokens = new l(n), this.delegator_shares = new l(i), this.voting_powers = new l(A);
|
|
18725
18753
|
}
|
|
18726
18754
|
static fromAmino(e) {
|
|
18727
18755
|
return new ot(
|
|
@@ -18819,7 +18847,7 @@ class ot extends m {
|
|
|
18819
18847
|
unbonding_height: d,
|
|
18820
18848
|
unbonding_time: g,
|
|
18821
18849
|
commission: v,
|
|
18822
|
-
voting_powers:
|
|
18850
|
+
voting_powers: A,
|
|
18823
18851
|
voting_power: k
|
|
18824
18852
|
} = this;
|
|
18825
18853
|
return pf.fromPartial({
|
|
@@ -18833,7 +18861,7 @@ class ot extends m {
|
|
|
18833
18861
|
unbondingHeight: BigInt(d),
|
|
18834
18862
|
unbondingTime: g,
|
|
18835
18863
|
commission: v.toProto(),
|
|
18836
|
-
votingPowers:
|
|
18864
|
+
votingPowers: A.toProto(),
|
|
18837
18865
|
votingPower: k
|
|
18838
18866
|
});
|
|
18839
18867
|
}
|
|
@@ -19004,7 +19032,7 @@ class ot extends m {
|
|
|
19004
19032
|
}
|
|
19005
19033
|
a.Commission = r;
|
|
19006
19034
|
})(ot || (ot = {}));
|
|
19007
|
-
class
|
|
19035
|
+
class No extends m {
|
|
19008
19036
|
/**
|
|
19009
19037
|
* @param description validator's delegate information
|
|
19010
19038
|
* @param commission validator's commission policy
|
|
@@ -19021,7 +19049,7 @@ class Fo extends m {
|
|
|
19021
19049
|
const {
|
|
19022
19050
|
value: { description: r, commission: o, validator_address: s, pubkey: n, amount: i }
|
|
19023
19051
|
} = e;
|
|
19024
|
-
return new
|
|
19052
|
+
return new No(
|
|
19025
19053
|
r,
|
|
19026
19054
|
ot.CommissionRates.fromAmino(o),
|
|
19027
19055
|
s,
|
|
@@ -19044,7 +19072,7 @@ class Fo extends m {
|
|
|
19044
19072
|
}
|
|
19045
19073
|
static fromData(e) {
|
|
19046
19074
|
const { description: r, commission: o, validator_address: s, pubkey: n, amount: i } = e;
|
|
19047
|
-
return new
|
|
19075
|
+
return new No(
|
|
19048
19076
|
r,
|
|
19049
19077
|
ot.CommissionRates.fromData(o),
|
|
19050
19078
|
s,
|
|
@@ -19064,7 +19092,7 @@ class Fo extends m {
|
|
|
19064
19092
|
};
|
|
19065
19093
|
}
|
|
19066
19094
|
static fromProto(e) {
|
|
19067
|
-
return new
|
|
19095
|
+
return new No(
|
|
19068
19096
|
ot.Description.fromProto(
|
|
19069
19097
|
e.description
|
|
19070
19098
|
),
|
|
@@ -19093,7 +19121,7 @@ class Fo extends m {
|
|
|
19093
19121
|
});
|
|
19094
19122
|
}
|
|
19095
19123
|
static unpackAny(e) {
|
|
19096
|
-
return
|
|
19124
|
+
return No.fromProto(
|
|
19097
19125
|
_u.decode(e.value)
|
|
19098
19126
|
);
|
|
19099
19127
|
}
|
|
@@ -19181,7 +19209,7 @@ class Xt extends m {
|
|
|
19181
19209
|
security_contact: "[do-not-modify]"
|
|
19182
19210
|
};
|
|
19183
19211
|
})(Xt || (Xt = {}));
|
|
19184
|
-
class
|
|
19212
|
+
class Oo extends m {
|
|
19185
19213
|
/**
|
|
19186
19214
|
* @param delegator_address delegator's account address
|
|
19187
19215
|
* @param validator_address validator's operator address
|
|
@@ -19196,7 +19224,7 @@ class No extends m {
|
|
|
19196
19224
|
const {
|
|
19197
19225
|
value: { delegator_address: r, validator_address: o, amount: s, creation_height: n }
|
|
19198
19226
|
} = e;
|
|
19199
|
-
return new
|
|
19227
|
+
return new Oo(
|
|
19200
19228
|
r,
|
|
19201
19229
|
o,
|
|
19202
19230
|
l.fromAmino(s),
|
|
@@ -19217,7 +19245,7 @@ class No extends m {
|
|
|
19217
19245
|
}
|
|
19218
19246
|
static fromData(e) {
|
|
19219
19247
|
const { delegator_address: r, validator_address: o, amount: s, creation_height: n } = e;
|
|
19220
|
-
return new
|
|
19248
|
+
return new Oo(
|
|
19221
19249
|
r,
|
|
19222
19250
|
o,
|
|
19223
19251
|
l.fromData(s),
|
|
@@ -19235,7 +19263,7 @@ class No extends m {
|
|
|
19235
19263
|
};
|
|
19236
19264
|
}
|
|
19237
19265
|
static fromProto(e) {
|
|
19238
|
-
return new
|
|
19266
|
+
return new Oo(
|
|
19239
19267
|
e.delegatorAddress,
|
|
19240
19268
|
e.validatorAddress,
|
|
19241
19269
|
l.fromProto(e.amount),
|
|
@@ -19258,7 +19286,7 @@ class No extends m {
|
|
|
19258
19286
|
});
|
|
19259
19287
|
}
|
|
19260
19288
|
static unpackAny(e) {
|
|
19261
|
-
return
|
|
19289
|
+
return Oo.fromProto(
|
|
19262
19290
|
wu.decode(e.value)
|
|
19263
19291
|
);
|
|
19264
19292
|
}
|
|
@@ -19289,7 +19317,7 @@ class Us extends m {
|
|
|
19289
19317
|
}
|
|
19290
19318
|
} = t;
|
|
19291
19319
|
return new Us(
|
|
19292
|
-
|
|
19320
|
+
F.fromAmino(e),
|
|
19293
19321
|
r,
|
|
19294
19322
|
o,
|
|
19295
19323
|
s,
|
|
@@ -19332,7 +19360,7 @@ class Us extends m {
|
|
|
19332
19360
|
min_commission_rate: c
|
|
19333
19361
|
} = t;
|
|
19334
19362
|
return new Us(
|
|
19335
|
-
|
|
19363
|
+
F.fromData(e),
|
|
19336
19364
|
r,
|
|
19337
19365
|
o,
|
|
19338
19366
|
s,
|
|
@@ -19364,7 +19392,7 @@ class Us extends m {
|
|
|
19364
19392
|
}
|
|
19365
19393
|
static fromProto(t) {
|
|
19366
19394
|
return new Us(
|
|
19367
|
-
|
|
19395
|
+
F.fromProto(t.unbondingTime),
|
|
19368
19396
|
t.maxValidators,
|
|
19369
19397
|
t.maxEntries,
|
|
19370
19398
|
t.historicalEntries,
|
|
@@ -19394,7 +19422,7 @@ class Us extends m {
|
|
|
19394
19422
|
});
|
|
19395
19423
|
}
|
|
19396
19424
|
}
|
|
19397
|
-
class
|
|
19425
|
+
class Fo extends m {
|
|
19398
19426
|
/**
|
|
19399
19427
|
* @param authority the address that controls the module
|
|
19400
19428
|
* @param params the mstaking parameters to update
|
|
@@ -19406,7 +19434,7 @@ class Oo extends m {
|
|
|
19406
19434
|
const {
|
|
19407
19435
|
value: { authority: e, params: r }
|
|
19408
19436
|
} = t;
|
|
19409
|
-
return new
|
|
19437
|
+
return new Fo(
|
|
19410
19438
|
e,
|
|
19411
19439
|
Us.fromAmino(r)
|
|
19412
19440
|
);
|
|
@@ -19423,7 +19451,7 @@ class Oo extends m {
|
|
|
19423
19451
|
}
|
|
19424
19452
|
static fromData(t) {
|
|
19425
19453
|
const { authority: e, params: r } = t;
|
|
19426
|
-
return new
|
|
19454
|
+
return new Fo(
|
|
19427
19455
|
e,
|
|
19428
19456
|
Us.fromData(r)
|
|
19429
19457
|
);
|
|
@@ -19437,7 +19465,7 @@ class Oo extends m {
|
|
|
19437
19465
|
};
|
|
19438
19466
|
}
|
|
19439
19467
|
static fromProto(t) {
|
|
19440
|
-
return new
|
|
19468
|
+
return new Fo(
|
|
19441
19469
|
t.authority,
|
|
19442
19470
|
Us.fromProto(t.params)
|
|
19443
19471
|
);
|
|
@@ -19456,7 +19484,7 @@ class Oo extends m {
|
|
|
19456
19484
|
});
|
|
19457
19485
|
}
|
|
19458
19486
|
static unpackAny(t) {
|
|
19459
|
-
return
|
|
19487
|
+
return Fo.fromProto(
|
|
19460
19488
|
Pu.decode(t.value)
|
|
19461
19489
|
);
|
|
19462
19490
|
}
|
|
@@ -19735,9 +19763,9 @@ class Vt extends m {
|
|
|
19735
19763
|
creation_height: i,
|
|
19736
19764
|
completion_time: c
|
|
19737
19765
|
} = this;
|
|
19738
|
-
return
|
|
19766
|
+
return bf.fromPartial({
|
|
19739
19767
|
balance: s.toProto(),
|
|
19740
|
-
redelegationEntry:
|
|
19768
|
+
redelegationEntry: Af.fromPartial({
|
|
19741
19769
|
completionTime: c,
|
|
19742
19770
|
creationHeight: BigInt(i),
|
|
19743
19771
|
initialBalance: o.toProto(),
|
|
@@ -19931,7 +19959,7 @@ class To extends m {
|
|
|
19931
19959
|
}
|
|
19932
19960
|
toProto() {
|
|
19933
19961
|
const { authority: t, moniker: e, validator_address: r, pubkey: o } = this;
|
|
19934
|
-
return
|
|
19962
|
+
return bu.fromPartial({
|
|
19935
19963
|
authority: t,
|
|
19936
19964
|
moniker: e,
|
|
19937
19965
|
validatorAddress: r,
|
|
@@ -19941,11 +19969,11 @@ class To extends m {
|
|
|
19941
19969
|
packAny() {
|
|
19942
19970
|
return f.fromPartial({
|
|
19943
19971
|
typeUrl: "/opinit.opchild.v1.MsgAddValidator",
|
|
19944
|
-
value:
|
|
19972
|
+
value: bu.encode(this.toProto()).finish()
|
|
19945
19973
|
});
|
|
19946
19974
|
}
|
|
19947
19975
|
static unpackAny(t) {
|
|
19948
|
-
return To.fromProto(
|
|
19976
|
+
return To.fromProto(bu.decode(t.value));
|
|
19949
19977
|
}
|
|
19950
19978
|
}
|
|
19951
19979
|
class Ro extends m {
|
|
@@ -19989,7 +20017,7 @@ class Ro extends m {
|
|
|
19989
20017
|
}
|
|
19990
20018
|
toProto() {
|
|
19991
20019
|
const { authority: t, validator_address: e } = this;
|
|
19992
|
-
return
|
|
20020
|
+
return Au.fromPartial({
|
|
19993
20021
|
authority: t,
|
|
19994
20022
|
validatorAddress: e
|
|
19995
20023
|
});
|
|
@@ -19997,12 +20025,12 @@ class Ro extends m {
|
|
|
19997
20025
|
packAny() {
|
|
19998
20026
|
return f.fromPartial({
|
|
19999
20027
|
typeUrl: "/opinit.opchild.v1.MsgRemoveValidator",
|
|
20000
|
-
value:
|
|
20028
|
+
value: Au.encode(this.toProto()).finish()
|
|
20001
20029
|
});
|
|
20002
20030
|
}
|
|
20003
20031
|
static unpackAny(t) {
|
|
20004
20032
|
return Ro.fromProto(
|
|
20005
|
-
|
|
20033
|
+
Au.decode(t.value)
|
|
20006
20034
|
);
|
|
20007
20035
|
}
|
|
20008
20036
|
}
|
|
@@ -20433,8 +20461,8 @@ class ce extends m {
|
|
|
20433
20461
|
e,
|
|
20434
20462
|
r,
|
|
20435
20463
|
kt.fromAmino(o),
|
|
20436
|
-
|
|
20437
|
-
|
|
20464
|
+
F.fromAmino(s),
|
|
20465
|
+
F.fromAmino(n),
|
|
20438
20466
|
parseInt(i),
|
|
20439
20467
|
c,
|
|
20440
20468
|
d
|
|
@@ -20477,8 +20505,8 @@ class ce extends m {
|
|
|
20477
20505
|
e,
|
|
20478
20506
|
r,
|
|
20479
20507
|
kt.fromData(o),
|
|
20480
|
-
|
|
20481
|
-
|
|
20508
|
+
F.fromData(s),
|
|
20509
|
+
F.fromData(n),
|
|
20482
20510
|
parseInt(i),
|
|
20483
20511
|
c,
|
|
20484
20512
|
d
|
|
@@ -20511,8 +20539,8 @@ class ce extends m {
|
|
|
20511
20539
|
t.challenger,
|
|
20512
20540
|
t.proposer,
|
|
20513
20541
|
kt.fromProto(t.batchInfo),
|
|
20514
|
-
|
|
20515
|
-
|
|
20542
|
+
F.fromProto(t.submissionInterval),
|
|
20543
|
+
F.fromProto(t.finalizationPeriod),
|
|
20516
20544
|
Number(t.submissionStartHeight),
|
|
20517
20545
|
t.oracleEnabled,
|
|
20518
20546
|
Buffer.from(t.metadata).toString("base64")
|
|
@@ -20832,7 +20860,7 @@ class Go extends m {
|
|
|
20832
20860
|
}
|
|
20833
20861
|
toProto() {
|
|
20834
20862
|
const { sender: t, bridge_id: e, to: r, amount: o, data: s } = this;
|
|
20835
|
-
return
|
|
20863
|
+
return Nu.fromPartial({
|
|
20836
20864
|
sender: t,
|
|
20837
20865
|
bridgeId: BigInt(e),
|
|
20838
20866
|
to: r,
|
|
@@ -20843,12 +20871,12 @@ class Go extends m {
|
|
|
20843
20871
|
packAny() {
|
|
20844
20872
|
return f.fromPartial({
|
|
20845
20873
|
typeUrl: "/opinit.ophost.v1.MsgInitiateTokenDeposit",
|
|
20846
|
-
value:
|
|
20874
|
+
value: Nu.encode(this.toProto()).finish()
|
|
20847
20875
|
});
|
|
20848
20876
|
}
|
|
20849
20877
|
static unpackAny(t) {
|
|
20850
20878
|
return Go.fromProto(
|
|
20851
|
-
|
|
20879
|
+
Nu.decode(t.value)
|
|
20852
20880
|
);
|
|
20853
20881
|
}
|
|
20854
20882
|
}
|
|
@@ -20882,7 +20910,7 @@ class Jo extends m {
|
|
|
20882
20910
|
amount: d,
|
|
20883
20911
|
version: g,
|
|
20884
20912
|
storage_root: v,
|
|
20885
|
-
last_block_hash:
|
|
20913
|
+
last_block_hash: A
|
|
20886
20914
|
}
|
|
20887
20915
|
} = t;
|
|
20888
20916
|
return new Jo(
|
|
@@ -20896,7 +20924,7 @@ class Jo extends m {
|
|
|
20896
20924
|
I.fromAmino(d),
|
|
20897
20925
|
g,
|
|
20898
20926
|
v,
|
|
20899
|
-
|
|
20927
|
+
A
|
|
20900
20928
|
);
|
|
20901
20929
|
}
|
|
20902
20930
|
toAmino() {
|
|
@@ -20942,7 +20970,7 @@ class Jo extends m {
|
|
|
20942
20970
|
amount: d,
|
|
20943
20971
|
version: g,
|
|
20944
20972
|
storage_root: v,
|
|
20945
|
-
last_block_hash:
|
|
20973
|
+
last_block_hash: A
|
|
20946
20974
|
} = t;
|
|
20947
20975
|
return new Jo(
|
|
20948
20976
|
e,
|
|
@@ -20955,7 +20983,7 @@ class Jo extends m {
|
|
|
20955
20983
|
I.fromData(d),
|
|
20956
20984
|
g,
|
|
20957
20985
|
v,
|
|
20958
|
-
|
|
20986
|
+
A
|
|
20959
20987
|
);
|
|
20960
20988
|
}
|
|
20961
20989
|
toData() {
|
|
@@ -21018,12 +21046,12 @@ class Jo extends m {
|
|
|
21018
21046
|
storage_root: g,
|
|
21019
21047
|
last_block_hash: v
|
|
21020
21048
|
} = this;
|
|
21021
|
-
return
|
|
21049
|
+
return Ou.fromPartial({
|
|
21022
21050
|
sender: t,
|
|
21023
21051
|
bridgeId: BigInt(e),
|
|
21024
21052
|
outputIndex: BigInt(r),
|
|
21025
21053
|
withdrawalProofs: o.map(
|
|
21026
|
-
(
|
|
21054
|
+
(A) => Buffer.from(A, "base64")
|
|
21027
21055
|
),
|
|
21028
21056
|
from: s,
|
|
21029
21057
|
to: n,
|
|
@@ -21037,12 +21065,12 @@ class Jo extends m {
|
|
|
21037
21065
|
packAny() {
|
|
21038
21066
|
return f.fromPartial({
|
|
21039
21067
|
typeUrl: "/opinit.ophost.v1.MsgFinalizeTokenWithdrawal",
|
|
21040
|
-
value:
|
|
21068
|
+
value: Ou.encode(this.toProto()).finish()
|
|
21041
21069
|
});
|
|
21042
21070
|
}
|
|
21043
21071
|
static unpackAny(t) {
|
|
21044
21072
|
return Jo.fromProto(
|
|
21045
|
-
|
|
21073
|
+
Ou.decode(t.value)
|
|
21046
21074
|
);
|
|
21047
21075
|
}
|
|
21048
21076
|
}
|
|
@@ -21094,7 +21122,7 @@ class Zo extends m {
|
|
|
21094
21122
|
}
|
|
21095
21123
|
toProto() {
|
|
21096
21124
|
const { authority: t, bridge_id: e, new_proposer: r } = this;
|
|
21097
|
-
return
|
|
21125
|
+
return Fu.fromPartial({
|
|
21098
21126
|
authority: t,
|
|
21099
21127
|
bridgeId: BigInt(e),
|
|
21100
21128
|
newProposer: r
|
|
@@ -21103,12 +21131,12 @@ class Zo extends m {
|
|
|
21103
21131
|
packAny() {
|
|
21104
21132
|
return f.fromPartial({
|
|
21105
21133
|
typeUrl: "/opinit.ophost.v1.MsgUpdateProposer",
|
|
21106
|
-
value:
|
|
21134
|
+
value: Fu.encode(this.toProto()).finish()
|
|
21107
21135
|
});
|
|
21108
21136
|
}
|
|
21109
21137
|
static unpackAny(t) {
|
|
21110
21138
|
return Zo.fromProto(
|
|
21111
|
-
|
|
21139
|
+
Fu.decode(t.value)
|
|
21112
21140
|
);
|
|
21113
21141
|
}
|
|
21114
21142
|
}
|
|
@@ -22048,7 +22076,7 @@ class ua extends m {
|
|
|
22048
22076
|
});
|
|
22049
22077
|
}
|
|
22050
22078
|
}
|
|
22051
|
-
class
|
|
22079
|
+
class Ns extends m {
|
|
22052
22080
|
/**
|
|
22053
22081
|
* @param reward_denom
|
|
22054
22082
|
* @param dilution_period
|
|
@@ -22069,9 +22097,9 @@ class Fs extends m {
|
|
|
22069
22097
|
release_enabled: n
|
|
22070
22098
|
}
|
|
22071
22099
|
} = t;
|
|
22072
|
-
return new
|
|
22100
|
+
return new Ns(
|
|
22073
22101
|
e,
|
|
22074
|
-
|
|
22102
|
+
F.fromAmino(r),
|
|
22075
22103
|
o,
|
|
22076
22104
|
s,
|
|
22077
22105
|
n
|
|
@@ -22104,9 +22132,9 @@ class Fs extends m {
|
|
|
22104
22132
|
dilution_rate: s,
|
|
22105
22133
|
release_enabled: n
|
|
22106
22134
|
} = t;
|
|
22107
|
-
return new
|
|
22135
|
+
return new Ns(
|
|
22108
22136
|
e,
|
|
22109
|
-
|
|
22137
|
+
F.fromData(r),
|
|
22110
22138
|
o,
|
|
22111
22139
|
s,
|
|
22112
22140
|
n
|
|
@@ -22130,9 +22158,9 @@ class Fs extends m {
|
|
|
22130
22158
|
};
|
|
22131
22159
|
}
|
|
22132
22160
|
static fromProto(t) {
|
|
22133
|
-
return new
|
|
22161
|
+
return new Ns(
|
|
22134
22162
|
t.rewardDenom,
|
|
22135
|
-
|
|
22163
|
+
F.fromProto(t.dilutionPeriod),
|
|
22136
22164
|
t.releaseRate,
|
|
22137
22165
|
t.dilutionRate,
|
|
22138
22166
|
t.releaseEnabled
|
|
@@ -22167,7 +22195,7 @@ class ns extends m {
|
|
|
22167
22195
|
const {
|
|
22168
22196
|
value: { authority: e, params: r }
|
|
22169
22197
|
} = t;
|
|
22170
|
-
return new ns(e,
|
|
22198
|
+
return new ns(e, Ns.fromAmino(r));
|
|
22171
22199
|
}
|
|
22172
22200
|
toAmino() {
|
|
22173
22201
|
const { authority: t, params: e } = this;
|
|
@@ -22181,7 +22209,7 @@ class ns extends m {
|
|
|
22181
22209
|
}
|
|
22182
22210
|
static fromData(t) {
|
|
22183
22211
|
const { authority: e, params: r } = t;
|
|
22184
|
-
return new ns(e,
|
|
22212
|
+
return new ns(e, Ns.fromData(r));
|
|
22185
22213
|
}
|
|
22186
22214
|
toData() {
|
|
22187
22215
|
const { authority: t, params: e } = this;
|
|
@@ -22194,7 +22222,7 @@ class ns extends m {
|
|
|
22194
22222
|
static fromProto(t) {
|
|
22195
22223
|
return new ns(
|
|
22196
22224
|
t.authority,
|
|
22197
|
-
|
|
22225
|
+
Ns.fromProto(t.params)
|
|
22198
22226
|
);
|
|
22199
22227
|
}
|
|
22200
22228
|
toProto() {
|
|
@@ -22268,7 +22296,7 @@ class as extends m {
|
|
|
22268
22296
|
return as.fromProto(Vu.decode(t.value));
|
|
22269
22297
|
}
|
|
22270
22298
|
}
|
|
22271
|
-
class
|
|
22299
|
+
class Os extends m {
|
|
22272
22300
|
/**
|
|
22273
22301
|
* @param signed_blocks_window number of blocks over which missed blocks are tallied for downtime
|
|
22274
22302
|
* @param min_signed_per_window if a validator misses more than this number, they will be penalized and jailed for downtime
|
|
@@ -22289,10 +22317,10 @@ class Ns extends m {
|
|
|
22289
22317
|
slash_fraction_downtime: n
|
|
22290
22318
|
}
|
|
22291
22319
|
} = t;
|
|
22292
|
-
return new
|
|
22320
|
+
return new Os(
|
|
22293
22321
|
parseInt(e),
|
|
22294
22322
|
r,
|
|
22295
|
-
|
|
22323
|
+
F.fromAmino(o),
|
|
22296
22324
|
s,
|
|
22297
22325
|
n
|
|
22298
22326
|
);
|
|
@@ -22324,10 +22352,10 @@ class Ns extends m {
|
|
|
22324
22352
|
slash_fraction_double_sign: s,
|
|
22325
22353
|
slash_fraction_downtime: n
|
|
22326
22354
|
} = t;
|
|
22327
|
-
return new
|
|
22355
|
+
return new Os(
|
|
22328
22356
|
parseInt(e),
|
|
22329
22357
|
r,
|
|
22330
|
-
|
|
22358
|
+
F.fromData(o),
|
|
22331
22359
|
s,
|
|
22332
22360
|
n
|
|
22333
22361
|
);
|
|
@@ -22350,10 +22378,10 @@ class Ns extends m {
|
|
|
22350
22378
|
};
|
|
22351
22379
|
}
|
|
22352
22380
|
static fromProto(t) {
|
|
22353
|
-
return new
|
|
22381
|
+
return new Os(
|
|
22354
22382
|
Number(t.signedBlocksWindow),
|
|
22355
22383
|
t.minSignedPerWindow.toString(),
|
|
22356
|
-
|
|
22384
|
+
F.fromProto(t.downtimeJailDuration),
|
|
22357
22385
|
t.slashFractionDoubleSign.toString(),
|
|
22358
22386
|
t.slashFractionDowntime.toString()
|
|
22359
22387
|
);
|
|
@@ -22366,7 +22394,7 @@ class Ns extends m {
|
|
|
22366
22394
|
slash_fraction_double_sign: o,
|
|
22367
22395
|
slash_fraction_downtime: s
|
|
22368
22396
|
} = this;
|
|
22369
|
-
return
|
|
22397
|
+
return Nf.fromPartial({
|
|
22370
22398
|
signedBlocksWindow: BigInt(t),
|
|
22371
22399
|
minSignedPerWindow: Buffer.from(e),
|
|
22372
22400
|
downtimeJailDuration: r.toProto(),
|
|
@@ -22389,7 +22417,7 @@ class is extends m {
|
|
|
22389
22417
|
} = t;
|
|
22390
22418
|
return new is(
|
|
22391
22419
|
e,
|
|
22392
|
-
|
|
22420
|
+
Os.fromAmino(r)
|
|
22393
22421
|
);
|
|
22394
22422
|
}
|
|
22395
22423
|
toAmino() {
|
|
@@ -22406,7 +22434,7 @@ class is extends m {
|
|
|
22406
22434
|
const { authority: e, params: r } = t;
|
|
22407
22435
|
return new is(
|
|
22408
22436
|
e,
|
|
22409
|
-
|
|
22437
|
+
Os.fromData(r)
|
|
22410
22438
|
);
|
|
22411
22439
|
}
|
|
22412
22440
|
toData() {
|
|
@@ -22420,7 +22448,7 @@ class is extends m {
|
|
|
22420
22448
|
static fromProto(t) {
|
|
22421
22449
|
return new is(
|
|
22422
22450
|
t.authority,
|
|
22423
|
-
|
|
22451
|
+
Os.fromProto(t.params)
|
|
22424
22452
|
);
|
|
22425
22453
|
}
|
|
22426
22454
|
toProto() {
|
|
@@ -22545,7 +22573,7 @@ class da extends m {
|
|
|
22545
22573
|
tombstoned: s,
|
|
22546
22574
|
missed_blocks_counter: n
|
|
22547
22575
|
} = this;
|
|
22548
|
-
return
|
|
22576
|
+
return Of.fromPartial({
|
|
22549
22577
|
address: t,
|
|
22550
22578
|
startHeight: BigInt(e),
|
|
22551
22579
|
indexOffset: BigInt(r),
|
|
@@ -23008,7 +23036,7 @@ class hs extends m {
|
|
|
23008
23036
|
return hs.fromProto(Xu.decode(t.value));
|
|
23009
23037
|
}
|
|
23010
23038
|
}
|
|
23011
|
-
class
|
|
23039
|
+
class Fs extends m {
|
|
23012
23040
|
/**
|
|
23013
23041
|
* @param denom_creation_fee the fee to be charged on the creation of a new denom
|
|
23014
23042
|
* @param denom_creation_gas_consume the gas cost for creating a new denom
|
|
@@ -23020,7 +23048,7 @@ class Os extends m {
|
|
|
23020
23048
|
}
|
|
23021
23049
|
static fromAmino(e) {
|
|
23022
23050
|
const { denom_creation_fee: r, denom_creation_gas_consume: o } = e;
|
|
23023
|
-
return new
|
|
23051
|
+
return new Fs(
|
|
23024
23052
|
l.fromAmino(r),
|
|
23025
23053
|
parseInt(o)
|
|
23026
23054
|
);
|
|
@@ -23034,7 +23062,7 @@ class Os extends m {
|
|
|
23034
23062
|
}
|
|
23035
23063
|
static fromData(e) {
|
|
23036
23064
|
const { denom_creation_fee: r, denom_creation_gas_consume: o } = e;
|
|
23037
|
-
return new
|
|
23065
|
+
return new Fs(
|
|
23038
23066
|
l.fromData(r),
|
|
23039
23067
|
parseInt(o)
|
|
23040
23068
|
);
|
|
@@ -23047,14 +23075,14 @@ class Os extends m {
|
|
|
23047
23075
|
};
|
|
23048
23076
|
}
|
|
23049
23077
|
static fromProto(e) {
|
|
23050
|
-
return new
|
|
23078
|
+
return new Fs(
|
|
23051
23079
|
l.fromProto(e.denomCreationFee),
|
|
23052
23080
|
Number(e.denomCreationGasConsume)
|
|
23053
23081
|
);
|
|
23054
23082
|
}
|
|
23055
23083
|
toProto() {
|
|
23056
23084
|
const { denom_creation_fee: e, denom_creation_gas_consume: r } = this;
|
|
23057
|
-
return
|
|
23085
|
+
return Ff.fromPartial({
|
|
23058
23086
|
denomCreationFee: e.toProto(),
|
|
23059
23087
|
denomCreationGasConsume: BigInt(r)
|
|
23060
23088
|
});
|
|
@@ -23074,7 +23102,7 @@ class fs extends m {
|
|
|
23074
23102
|
} = t;
|
|
23075
23103
|
return new fs(
|
|
23076
23104
|
e,
|
|
23077
|
-
|
|
23105
|
+
Fs.fromAmino(r)
|
|
23078
23106
|
);
|
|
23079
23107
|
}
|
|
23080
23108
|
toAmino() {
|
|
@@ -23091,7 +23119,7 @@ class fs extends m {
|
|
|
23091
23119
|
const { authority: e, params: r } = t;
|
|
23092
23120
|
return new fs(
|
|
23093
23121
|
e,
|
|
23094
|
-
|
|
23122
|
+
Fs.fromData(r)
|
|
23095
23123
|
);
|
|
23096
23124
|
}
|
|
23097
23125
|
toData() {
|
|
@@ -23105,7 +23133,7 @@ class fs extends m {
|
|
|
23105
23133
|
static fromProto(t) {
|
|
23106
23134
|
return new fs(
|
|
23107
23135
|
t.authority,
|
|
23108
|
-
|
|
23136
|
+
Fs.fromProto(t.params)
|
|
23109
23137
|
);
|
|
23110
23138
|
}
|
|
23111
23139
|
toProto() {
|
|
@@ -23174,9 +23202,9 @@ var Q;
|
|
|
23174
23202
|
case "distr/MsgDepositValidatorRewardsPool":
|
|
23175
23203
|
return wr.fromAmino(o);
|
|
23176
23204
|
case "cosmos-sdk/MsgSubmitEvidence":
|
|
23177
|
-
return Ar.fromAmino(o);
|
|
23178
|
-
case "evm/MsgCreate":
|
|
23179
23205
|
return br.fromAmino(o);
|
|
23206
|
+
case "evm/MsgCreate":
|
|
23207
|
+
return Ar.fromAmino(o);
|
|
23180
23208
|
case "evm/MsgCreate2":
|
|
23181
23209
|
return Dr.fromAmino(o);
|
|
23182
23210
|
case "evm/MsgCall":
|
|
@@ -23270,9 +23298,9 @@ var Q;
|
|
|
23270
23298
|
case "move/MsgExecute":
|
|
23271
23299
|
return Po.fromAmino(o);
|
|
23272
23300
|
case "move/MsgExecuteJSON":
|
|
23273
|
-
return Ao.fromAmino(o);
|
|
23274
|
-
case "move/MsgScript":
|
|
23275
23301
|
return bo.fromAmino(o);
|
|
23302
|
+
case "move/MsgScript":
|
|
23303
|
+
return Ao.fromAmino(o);
|
|
23276
23304
|
case "move/MsgScriptJSON":
|
|
23277
23305
|
return Do.fromAmino(o);
|
|
23278
23306
|
case "move/MsgUpdateParams":
|
|
@@ -23298,13 +23326,13 @@ var Q;
|
|
|
23298
23326
|
case "mstaking/MsgBeginRedelegate":
|
|
23299
23327
|
return $o.fromAmino(o);
|
|
23300
23328
|
case "mstaking/MsgCreateValidator":
|
|
23301
|
-
return
|
|
23329
|
+
return No.fromAmino(o);
|
|
23302
23330
|
case "mstaking/MsgEditValidator":
|
|
23303
23331
|
return Xt.fromAmino(o);
|
|
23304
23332
|
case "mstaking/MsgCancelUnbondingDelegation":
|
|
23305
|
-
return No.fromAmino(o);
|
|
23306
|
-
case "mstaking/MsgUpdateParams":
|
|
23307
23333
|
return Oo.fromAmino(o);
|
|
23334
|
+
case "mstaking/MsgUpdateParams":
|
|
23335
|
+
return Fo.fromAmino(o);
|
|
23308
23336
|
case "opchild/MsgAddValidator":
|
|
23309
23337
|
return To.fromAmino(o);
|
|
23310
23338
|
case "opchild/MsgRemoveValidator":
|
|
@@ -23461,9 +23489,9 @@ var Q;
|
|
|
23461
23489
|
case "/initia.distribution.v1.MsgDepositValidatorRewardsPool":
|
|
23462
23490
|
return wr.fromData(o);
|
|
23463
23491
|
case "/cosmos.evidence.v1beta1.MsgSubmitEvidence":
|
|
23464
|
-
return Ar.fromData(o);
|
|
23465
|
-
case "/minievm.evm.v1.MsgCreate":
|
|
23466
23492
|
return br.fromData(o);
|
|
23493
|
+
case "/minievm.evm.v1.MsgCreate":
|
|
23494
|
+
return Ar.fromData(o);
|
|
23467
23495
|
case "/minievm.evm.v1.MsgCreate2":
|
|
23468
23496
|
return Dr.fromData(o);
|
|
23469
23497
|
case "/minievm.evm.v1.MsgCall":
|
|
@@ -23529,7 +23557,7 @@ var Q;
|
|
|
23529
23557
|
case "/ibc.applications.fee.v1.MsgPayPacketFeeAsync":
|
|
23530
23558
|
return Cn.fromData(o);
|
|
23531
23559
|
case "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee":
|
|
23532
|
-
return
|
|
23560
|
+
return Nn.fromData(o);
|
|
23533
23561
|
case "/ibc.applications.fee.v1.MsgRegisterPayee":
|
|
23534
23562
|
return $n.fromData(o);
|
|
23535
23563
|
case "/initia.ibchooks.v1.MsgUpdateACL":
|
|
@@ -23613,9 +23641,9 @@ var Q;
|
|
|
23613
23641
|
case "/initia.move.v1.MsgExecute":
|
|
23614
23642
|
return Po.fromData(o);
|
|
23615
23643
|
case "/initia.move.v1.MsgExecuteJSON":
|
|
23616
|
-
return Ao.fromData(o);
|
|
23617
|
-
case "/initia.move.v1.MsgScript":
|
|
23618
23644
|
return bo.fromData(o);
|
|
23645
|
+
case "/initia.move.v1.MsgScript":
|
|
23646
|
+
return Ao.fromData(o);
|
|
23619
23647
|
case "/initia.move.v1.MsgScriptJSON":
|
|
23620
23648
|
return Do.fromData(o);
|
|
23621
23649
|
case "/initia.move.v1.MsgUpdateParams":
|
|
@@ -23641,13 +23669,13 @@ var Q;
|
|
|
23641
23669
|
case "/initia.mstaking.v1.MsgBeginRedelegate":
|
|
23642
23670
|
return $o.fromData(o);
|
|
23643
23671
|
case "/initia.mstaking.v1.MsgCreateValidator":
|
|
23644
|
-
return
|
|
23672
|
+
return No.fromData(o);
|
|
23645
23673
|
case "/initia.mstaking.v1.MsgEditValidator":
|
|
23646
23674
|
return Xt.fromData(o);
|
|
23647
23675
|
case "/initia.mstaking.v1.MsgCancelUnbondingDelegation":
|
|
23648
|
-
return No.fromData(o);
|
|
23649
|
-
case "/initia.mstaking.v1.MsgUpdateParams":
|
|
23650
23676
|
return Oo.fromData(o);
|
|
23677
|
+
case "/initia.mstaking.v1.MsgUpdateParams":
|
|
23678
|
+
return Fo.fromData(o);
|
|
23651
23679
|
case "/opinit.opchild.v1.MsgAddValidator":
|
|
23652
23680
|
return To.fromData(o);
|
|
23653
23681
|
case "/opinit.opchild.v1.MsgRemoveValidator":
|
|
@@ -23804,9 +23832,9 @@ var Q;
|
|
|
23804
23832
|
case "/initia.distribution.v1.MsgDepositValidatorRewardsPool":
|
|
23805
23833
|
return wr.unpackAny(o);
|
|
23806
23834
|
case "/cosmos.evidence.v1beta1.MsgSubmitEvidence":
|
|
23807
|
-
return Ar.unpackAny(o);
|
|
23808
|
-
case "/minievm.evm.v1.MsgCreate":
|
|
23809
23835
|
return br.unpackAny(o);
|
|
23836
|
+
case "/minievm.evm.v1.MsgCreate":
|
|
23837
|
+
return Ar.unpackAny(o);
|
|
23810
23838
|
case "/minievm.evm.v1.MsgCreate2":
|
|
23811
23839
|
return Dr.unpackAny(o);
|
|
23812
23840
|
case "/minievm.evm.v1.MsgCall":
|
|
@@ -23872,7 +23900,7 @@ var Q;
|
|
|
23872
23900
|
case "/ibc.applications.fee.v1.MsgPayPacketFeeAsync":
|
|
23873
23901
|
return Cn.unpackAny(o);
|
|
23874
23902
|
case "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee":
|
|
23875
|
-
return
|
|
23903
|
+
return Nn.unpackAny(o);
|
|
23876
23904
|
case "/ibc.applications.fee.v1.MsgRegisterPayee":
|
|
23877
23905
|
return $n.unpackAny(o);
|
|
23878
23906
|
case "/initia.ibchooks.v1.MsgUpdateACL":
|
|
@@ -23956,9 +23984,9 @@ var Q;
|
|
|
23956
23984
|
case "/initia.move.v1.MsgExecute":
|
|
23957
23985
|
return Po.unpackAny(o);
|
|
23958
23986
|
case "/initia.move.v1.MsgExecuteJSON":
|
|
23959
|
-
return Ao.unpackAny(o);
|
|
23960
|
-
case "/initia.move.v1.MsgScript":
|
|
23961
23987
|
return bo.unpackAny(o);
|
|
23988
|
+
case "/initia.move.v1.MsgScript":
|
|
23989
|
+
return Ao.unpackAny(o);
|
|
23962
23990
|
case "/initia.move.v1.MsgScriptJSON":
|
|
23963
23991
|
return Do.unpackAny(o);
|
|
23964
23992
|
case "/initia.move.v1.MsgUpdateParams":
|
|
@@ -23984,13 +24012,13 @@ var Q;
|
|
|
23984
24012
|
case "/initia.mstaking.v1.MsgBeginRedelegate":
|
|
23985
24013
|
return $o.unpackAny(o);
|
|
23986
24014
|
case "/initia.mstaking.v1.MsgCreateValidator":
|
|
23987
|
-
return
|
|
24015
|
+
return No.unpackAny(o);
|
|
23988
24016
|
case "/initia.mstaking.v1.MsgEditValidator":
|
|
23989
24017
|
return Xt.unpackAny(o);
|
|
23990
24018
|
case "/initia.mstaking.v1.MsgCancelUnbondingDelegation":
|
|
23991
|
-
return No.unpackAny(o);
|
|
23992
|
-
case "/initia.mstaking.v1.MsgUpdateParams":
|
|
23993
24019
|
return Oo.unpackAny(o);
|
|
24020
|
+
case "/initia.mstaking.v1.MsgUpdateParams":
|
|
24021
|
+
return Fo.unpackAny(o);
|
|
23994
24022
|
case "/opinit.opchild.v1.MsgAddValidator":
|
|
23995
24023
|
return To.unpackAny(o);
|
|
23996
24024
|
case "/opinit.opchild.v1.MsgRemoveValidator":
|
|
@@ -24674,7 +24702,7 @@ class sg extends W {
|
|
|
24674
24702
|
* Query the parameters of the evm module.
|
|
24675
24703
|
*/
|
|
24676
24704
|
async parameters(t = {}) {
|
|
24677
|
-
return this.c.get("/minievm/evm/v1/params", t).then((e) =>
|
|
24705
|
+
return this.c.get("/minievm/evm/v1/params", t).then((e) => bs.fromData(e.params));
|
|
24678
24706
|
}
|
|
24679
24707
|
}
|
|
24680
24708
|
class ng extends W {
|
|
@@ -24687,7 +24715,7 @@ class ng extends W {
|
|
|
24687
24715
|
allowances: r.allowances.map((o) => ({
|
|
24688
24716
|
granter: o.granter,
|
|
24689
24717
|
grantee: o.grantee,
|
|
24690
|
-
allowance:
|
|
24718
|
+
allowance: As.fromData(o.allowance)
|
|
24691
24719
|
})),
|
|
24692
24720
|
pagination: r.pagination
|
|
24693
24721
|
}));
|
|
@@ -24698,7 +24726,7 @@ class ng extends W {
|
|
|
24698
24726
|
* @param grantee grantee address to look up
|
|
24699
24727
|
*/
|
|
24700
24728
|
async allowance(t, e) {
|
|
24701
|
-
return this.c.get(`/cosmos/feegrant/v1beta1/allowance/${t}/${e}`).then((r) =>
|
|
24729
|
+
return this.c.get(`/cosmos/feegrant/v1beta1/allowance/${t}/${e}`).then((r) => As.fromData(r.allowance.allowance));
|
|
24702
24730
|
}
|
|
24703
24731
|
/**
|
|
24704
24732
|
* Query all the grants given by an address.
|
|
@@ -24709,7 +24737,7 @@ class ng extends W {
|
|
|
24709
24737
|
allowances: r.allowances.map((o) => ({
|
|
24710
24738
|
granter: o.granter,
|
|
24711
24739
|
grantee: o.grantee,
|
|
24712
|
-
allowance:
|
|
24740
|
+
allowance: As.fromData(o.allowance)
|
|
24713
24741
|
})),
|
|
24714
24742
|
pagination: r.pagination
|
|
24715
24743
|
}));
|
|
@@ -24916,7 +24944,7 @@ class mg extends W {
|
|
|
24916
24944
|
* Query all the IBC channels of a chain.
|
|
24917
24945
|
*/
|
|
24918
24946
|
async channels(t = {}) {
|
|
24919
|
-
return this.c.get("/ibc/core/channel/v1/channels", t).then((e) => [e.channels.map(
|
|
24947
|
+
return this.c.get("/ibc/core/channel/v1/channels", t).then((e) => [e.channels.map(Ft.fromData), e.pagination]);
|
|
24920
24948
|
}
|
|
24921
24949
|
/**
|
|
24922
24950
|
* Query the information of the port at given channel.
|
|
@@ -24925,7 +24953,7 @@ class mg extends W {
|
|
|
24925
24953
|
*/
|
|
24926
24954
|
async port(t, e, r = {}) {
|
|
24927
24955
|
return this.c.get(`/ibc/core/channel/v1/channels/${t}/ports/${e}`, r).then((o) => ({
|
|
24928
|
-
channel:
|
|
24956
|
+
channel: Ft.fromData(o.channel),
|
|
24929
24957
|
proof: o.proof,
|
|
24930
24958
|
proof_height: U.fromData(o.proof_height)
|
|
24931
24959
|
}));
|
|
@@ -24952,7 +24980,7 @@ class mg extends W {
|
|
|
24952
24980
|
*/
|
|
24953
24981
|
async connectionChannels(t, e = {}) {
|
|
24954
24982
|
return this.c.get(`/ibc/core/channel/v1/connections/${t}/channels`, e).then((r) => [
|
|
24955
|
-
r.channels.map(
|
|
24983
|
+
r.channels.map(Ft.fromData),
|
|
24956
24984
|
U.fromData(r.height),
|
|
24957
24985
|
r.pagination
|
|
24958
24986
|
]);
|
|
@@ -25044,14 +25072,14 @@ class ug extends W {
|
|
|
25044
25072
|
* Query all the ACL entries.
|
|
25045
25073
|
*/
|
|
25046
25074
|
async acls(t = {}) {
|
|
25047
|
-
return this.c.get("/initia/ibchooks/v1/acls", t).then((e) => [e.acls.map(
|
|
25075
|
+
return this.c.get("/initia/ibchooks/v1/acls", t).then((e) => [e.acls.map(On.fromData), e.pagination]);
|
|
25048
25076
|
}
|
|
25049
25077
|
/**
|
|
25050
25078
|
* Query the ACL entry of an address.
|
|
25051
25079
|
* @param address a contract address (wasm, evm) or a contract deployer address (move)
|
|
25052
25080
|
*/
|
|
25053
25081
|
async acl(t, e = {}) {
|
|
25054
|
-
return this.c.get(`/initia/ibchooks/v1/acls/${t}`, e).then((r) =>
|
|
25082
|
+
return this.c.get(`/initia/ibchooks/v1/acls/${t}`, e).then((r) => On.fromData(r.acl));
|
|
25055
25083
|
}
|
|
25056
25084
|
/**
|
|
25057
25085
|
* Query the parameters of the ibc hooks module.
|
|
@@ -25066,13 +25094,13 @@ class dg extends W {
|
|
|
25066
25094
|
* @param hash hash (in hex format) of the class id trace information
|
|
25067
25095
|
*/
|
|
25068
25096
|
async classTrace(t) {
|
|
25069
|
-
return this.c.get(`/ibc/apps/nft_transfer/v1/class_traces/${t}`).then((e) =>
|
|
25097
|
+
return this.c.get(`/ibc/apps/nft_transfer/v1/class_traces/${t}`).then((e) => Fn.fromData(e.class_trace));
|
|
25070
25098
|
}
|
|
25071
25099
|
/**
|
|
25072
25100
|
* Query all the denomination traces.
|
|
25073
25101
|
*/
|
|
25074
25102
|
async classTraces(t = {}) {
|
|
25075
|
-
return this.c.get("/ibc/apps/nft_transfer/v1/class_traces", t).then((e) => [e.class_traces.map(
|
|
25103
|
+
return this.c.get("/ibc/apps/nft_transfer/v1/class_traces", t).then((e) => [e.class_traces.map(Fn.fromData), e.pagination]);
|
|
25076
25104
|
}
|
|
25077
25105
|
/**
|
|
25078
25106
|
* Query a class id hash information.
|
|
@@ -25708,10 +25736,10 @@ class Pg extends W {
|
|
|
25708
25736
|
* Query the parameters of the reward module.
|
|
25709
25737
|
*/
|
|
25710
25738
|
async parameters(t = {}) {
|
|
25711
|
-
return this.c.get("/initia/reward/v1/params", t).then((e) =>
|
|
25739
|
+
return this.c.get("/initia/reward/v1/params", t).then((e) => Ns.fromData(e.params));
|
|
25712
25740
|
}
|
|
25713
25741
|
}
|
|
25714
|
-
class
|
|
25742
|
+
class bg extends W {
|
|
25715
25743
|
/**
|
|
25716
25744
|
* Query the signing infos of all validators.
|
|
25717
25745
|
*/
|
|
@@ -25729,10 +25757,10 @@ class Ag extends W {
|
|
|
25729
25757
|
* Query the parameters of the slashing module.
|
|
25730
25758
|
*/
|
|
25731
25759
|
async parameters(t = {}) {
|
|
25732
|
-
return this.c.get("/cosmos/slashing/v1beta1/params", t).then((e) =>
|
|
25760
|
+
return this.c.get("/cosmos/slashing/v1beta1/params", t).then((e) => Os.fromData(e.params));
|
|
25733
25761
|
}
|
|
25734
25762
|
}
|
|
25735
|
-
class
|
|
25763
|
+
class Ag extends W {
|
|
25736
25764
|
/**
|
|
25737
25765
|
* Query the node's information.
|
|
25738
25766
|
*/
|
|
@@ -25797,7 +25825,7 @@ class Dg extends W {
|
|
|
25797
25825
|
* Query the parameters of the tokenfactory module.
|
|
25798
25826
|
*/
|
|
25799
25827
|
async parameters(t = {}) {
|
|
25800
|
-
return this.c.get("/miniwasm/tokenfactory/v1/params", t).then((e) =>
|
|
25828
|
+
return this.c.get("/miniwasm/tokenfactory/v1/params", t).then((e) => Fs.fromData(e.params));
|
|
25801
25829
|
}
|
|
25802
25830
|
}
|
|
25803
25831
|
const ml = (a) => Ht.bytes(32, a).transform({
|
|
@@ -25828,8 +25856,8 @@ const ml = (a) => Ht.bytes(32, a).transform({
|
|
|
25828
25856
|
* bcs.fixed_point32().serialize('1.23')
|
|
25829
25857
|
*/
|
|
25830
25858
|
fixed_point32: (a) => Ht.u64(a).transform({
|
|
25831
|
-
input: (t) =>
|
|
25832
|
-
output: (t) =>
|
|
25859
|
+
input: (t) => O(t).times(new lt("4294967296")).toFixed(0, lt.ROUND_DOWN),
|
|
25860
|
+
output: (t) => O(t).div(new lt("4294967296")).toNumber()
|
|
25833
25861
|
}),
|
|
25834
25862
|
/**
|
|
25835
25863
|
* Creates a BcsType that can be used to read and write a fixed_point64.
|
|
@@ -25837,8 +25865,8 @@ const ml = (a) => Ht.bytes(32, a).transform({
|
|
|
25837
25865
|
* bcs.fixed_point64().serialize('1.23')
|
|
25838
25866
|
*/
|
|
25839
25867
|
fixed_point64: (a) => Ht.u128(a).transform({
|
|
25840
|
-
input: (t) =>
|
|
25841
|
-
output: (t) =>
|
|
25868
|
+
input: (t) => O(t).times(new lt("18446744073709551616")).toFixed(0, lt.ROUND_DOWN),
|
|
25869
|
+
output: (t) => O(t).div(new lt("18446744073709551616")).toNumber()
|
|
25842
25870
|
}),
|
|
25843
25871
|
/**
|
|
25844
25872
|
* Creates a BcsType that can be used to read and write a decimal128.
|
|
@@ -25846,8 +25874,8 @@ const ml = (a) => Ht.bytes(32, a).transform({
|
|
|
25846
25874
|
* bcs.decimal128().serialize('1.23')
|
|
25847
25875
|
*/
|
|
25848
25876
|
decimal128: (a) => Ht.u128(a).transform({
|
|
25849
|
-
input: (t) =>
|
|
25850
|
-
output: (t) =>
|
|
25877
|
+
input: (t) => O(t).times(new lt("1000000000000000000")).toFixed(0, lt.ROUND_DOWN),
|
|
25878
|
+
output: (t) => O(t).div(new lt("1000000000000000000")).toNumber()
|
|
25851
25879
|
}),
|
|
25852
25880
|
/**
|
|
25853
25881
|
* Creates a BcsType that can be used to read and write a decimal256.
|
|
@@ -25855,8 +25883,8 @@ const ml = (a) => Ht.bytes(32, a).transform({
|
|
|
25855
25883
|
* bcs.decimal256().serialize('1.23')
|
|
25856
25884
|
*/
|
|
25857
25885
|
decimal256: (a) => Ht.u256(a).transform({
|
|
25858
|
-
input: (t) =>
|
|
25859
|
-
output: (t) =>
|
|
25886
|
+
input: (t) => O(t).times(new lt("1000000000000000000")).toFixed(0, lt.ROUND_DOWN),
|
|
25887
|
+
output: (t) => O(t).div(new lt("1000000000000000000")).toNumber()
|
|
25860
25888
|
}),
|
|
25861
25889
|
/**
|
|
25862
25890
|
* Creates a BcsType that can be used to read and write a biguint.
|
|
@@ -25874,12 +25902,12 @@ const ml = (a) => Ht.bytes(32, a).transform({
|
|
|
25874
25902
|
*/
|
|
25875
25903
|
bigdecimal: (a) => Ht.vector(Ht.u8(a)).transform({
|
|
25876
25904
|
input: (t) => {
|
|
25877
|
-
const r =
|
|
25905
|
+
const r = O(t).times(new lt("1000000000000000000")).toFixed(0, lt.ROUND_DOWN);
|
|
25878
25906
|
return ul(BigInt(r));
|
|
25879
25907
|
},
|
|
25880
25908
|
output: (t) => {
|
|
25881
25909
|
const e = dl(t).toString();
|
|
25882
|
-
return
|
|
25910
|
+
return O(e).div(new lt("1000000000000000000")).toNumber();
|
|
25883
25911
|
}
|
|
25884
25912
|
})
|
|
25885
25913
|
}, Zv = {
|
|
@@ -25979,10 +26007,10 @@ class Ea extends W {
|
|
|
25979
26007
|
const r = e.gasPrices ?? this.rest.config.gasPrices, o = e.gasAdjustment ?? this.rest.config.gasAdjustment, s = e.feeDenoms ?? ["uinit"];
|
|
25980
26008
|
let n = e.gas, i;
|
|
25981
26009
|
if (r && (i = new l(r), s)) {
|
|
25982
|
-
const
|
|
26010
|
+
const A = i.filter(
|
|
25983
26011
|
(k) => s.includes(k.denom)
|
|
25984
26012
|
);
|
|
25985
|
-
|
|
26013
|
+
A.toArray().length > 0 && (i = A);
|
|
25986
26014
|
}
|
|
25987
26015
|
const c = new ws(e.msgs, e.memo ?? ""), d = new ne([], new se(0, new l())), g = new ht(c, d, []);
|
|
25988
26016
|
g.appendEmptySignatures(t), (!n || n === "auto" || n === "0") && (n = await this.estimateGas(g, { gasAdjustment: o }));
|
|
@@ -26001,7 +26029,7 @@ class Ea extends W {
|
|
|
26001
26029
|
const s = await this.c.post("/cosmos/tx/v1beta1/simulate", {
|
|
26002
26030
|
tx_bytes: Ea.encode(o)
|
|
26003
26031
|
}).then((n) => pd.fromData(n));
|
|
26004
|
-
return
|
|
26032
|
+
return O(r ?? 0).multipliedBy(s.gas_info.gas_used).toString();
|
|
26005
26033
|
}
|
|
26006
26034
|
/**
|
|
26007
26035
|
* Encode a transaction to base64-encoded protobuf.
|
|
@@ -26147,13 +26175,13 @@ class Ea extends W {
|
|
|
26147
26175
|
{ key: "tx.height", value: r.toString(), op: ">=" },
|
|
26148
26176
|
{ key: "tx.height", value: o.toString(), op: "<=" },
|
|
26149
26177
|
{ key: "move.type_tag", value: n, op: "CONTAINS" }
|
|
26150
|
-
], c = (
|
|
26178
|
+
], c = (A) => A.events.filter((k) => {
|
|
26151
26179
|
if (k.type !== "move") return !1;
|
|
26152
26180
|
const E = k.attributes.find(($) => $.key === "type_tag");
|
|
26153
26181
|
return E && E.value.startsWith(n);
|
|
26154
|
-
}), { txs: d, total: g } = await this.search({ query: i }), v = d.flatMap((
|
|
26182
|
+
}), { txs: d, total: g } = await this.search({ query: i }), v = d.flatMap((A) => c(A));
|
|
26155
26183
|
if (s.push(...v), g > 100) {
|
|
26156
|
-
const
|
|
26184
|
+
const A = Math.ceil(g / 100), k = [...Array(A - 1).keys()].map(($) => $ + 2), E = await Promise.all(
|
|
26157
26185
|
k.map(async ($) => this.search({ query: i, page: $ }).then(
|
|
26158
26186
|
(L) => L.txs.flatMap((K) => c(K))
|
|
26159
26187
|
))
|
|
@@ -26416,7 +26444,7 @@ class Bg {
|
|
|
26416
26444
|
...Sg,
|
|
26417
26445
|
gasPrices: ((e == null ? void 0 : e.chainId) && ll[e.chainId]) ?? ll.default,
|
|
26418
26446
|
...e
|
|
26419
|
-
}, this.apiRequester = r ?? new Kf(this.URL), this.auction = new jf(this.apiRequester), this.auth = new Qf(this.apiRequester), this.authz = new tg(this.apiRequester), this.bank = new eg(this.apiRequester), this.distribution = new rg(this.apiRequester), this.evidence = new og(this.apiRequester), this.evm = new sg(this.apiRequester), this.feeGrant = new ng(this.apiRequester), this.forwarding = new ag(this.apiRequester), this.gov = new ig(this.apiRequester), this.group = new cg(this.apiRequester), this.ibc = new mg(this.apiRequester), this.ibcHooks = new ug(this.apiRequester), this.ibcNft = new dg(this.apiRequester), this.ibcTransfer = new lg(this.apiRequester), this.ibcPerm = new pg(this.apiRequester), this.interTx = new hg(this.apiRequester), this.marketmap = new fg(this.apiRequester), this.move = new gg(this.apiRequester), this.mstaking = new yg(this.apiRequester), this.opchild = new _g(this.apiRequester), this.ophost = new vg(this.apiRequester), this.oracle = new wg(this.apiRequester), this.reward = new Pg(this.apiRequester), this.slashing = new
|
|
26447
|
+
}, this.apiRequester = r ?? new Kf(this.URL), this.auction = new jf(this.apiRequester), this.auth = new Qf(this.apiRequester), this.authz = new tg(this.apiRequester), this.bank = new eg(this.apiRequester), this.distribution = new rg(this.apiRequester), this.evidence = new og(this.apiRequester), this.evm = new sg(this.apiRequester), this.feeGrant = new ng(this.apiRequester), this.forwarding = new ag(this.apiRequester), this.gov = new ig(this.apiRequester), this.group = new cg(this.apiRequester), this.ibc = new mg(this.apiRequester), this.ibcHooks = new ug(this.apiRequester), this.ibcNft = new dg(this.apiRequester), this.ibcTransfer = new lg(this.apiRequester), this.ibcPerm = new pg(this.apiRequester), this.interTx = new hg(this.apiRequester), this.marketmap = new fg(this.apiRequester), this.move = new gg(this.apiRequester), this.mstaking = new yg(this.apiRequester), this.opchild = new _g(this.apiRequester), this.ophost = new vg(this.apiRequester), this.oracle = new wg(this.apiRequester), this.reward = new Pg(this.apiRequester), this.slashing = new bg(this.apiRequester), this.tendermint = new Ag(this.apiRequester), this.tokenfactory = new Dg(this.apiRequester), this.tx = new Ea(this), this.upgrade = new xg(this.apiRequester), this.wasm = new Mg(this.apiRequester);
|
|
26420
26448
|
}
|
|
26421
26449
|
/**
|
|
26422
26450
|
* Creates a new wallet with the Key.
|
|
@@ -26464,7 +26492,7 @@ function Y() {
|
|
|
26464
26492
|
Y.init.call(this);
|
|
26465
26493
|
}
|
|
26466
26494
|
hd.exports = Y;
|
|
26467
|
-
hd.exports.once =
|
|
26495
|
+
hd.exports.once = Og;
|
|
26468
26496
|
Y.EventEmitter = Y;
|
|
26469
26497
|
Y.prototype._events = void 0;
|
|
26470
26498
|
Y.prototype._eventsCount = 0;
|
|
@@ -26604,7 +26632,7 @@ function Ul(a, t, e) {
|
|
|
26604
26632
|
if (r === void 0)
|
|
26605
26633
|
return [];
|
|
26606
26634
|
var o = r[t];
|
|
26607
|
-
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ?
|
|
26635
|
+
return o === void 0 ? [] : typeof o == "function" ? e ? [o.listener || o] : [o] : e ? Ng(o) : $l(o, o.length);
|
|
26608
26636
|
}
|
|
26609
26637
|
Y.prototype.listeners = function(t) {
|
|
26610
26638
|
return Ul(this, t, !0);
|
|
@@ -26640,12 +26668,12 @@ function $g(a, t) {
|
|
|
26640
26668
|
a[t] = a[t + 1];
|
|
26641
26669
|
a.pop();
|
|
26642
26670
|
}
|
|
26643
|
-
function
|
|
26671
|
+
function Ng(a) {
|
|
26644
26672
|
for (var t = new Array(a.length), e = 0; e < t.length; ++e)
|
|
26645
26673
|
t[e] = a[e].listener || a[e];
|
|
26646
26674
|
return t;
|
|
26647
26675
|
}
|
|
26648
|
-
function
|
|
26676
|
+
function Og(a, t) {
|
|
26649
26677
|
return new Promise(function(e, r) {
|
|
26650
26678
|
function o(n) {
|
|
26651
26679
|
a.removeListener(t, s), r(n);
|
|
@@ -26653,13 +26681,13 @@ function Ng(a, t) {
|
|
|
26653
26681
|
function s() {
|
|
26654
26682
|
typeof a.removeListener == "function" && a.removeListener("error", o), e([].slice.call(arguments));
|
|
26655
26683
|
}
|
|
26656
|
-
|
|
26684
|
+
Nl(a, t, s, { once: !0 }), t !== "error" && Fg(a, o, { once: !0 });
|
|
26657
26685
|
});
|
|
26658
26686
|
}
|
|
26659
|
-
function
|
|
26660
|
-
typeof a.on == "function" &&
|
|
26687
|
+
function Fg(a, t, e) {
|
|
26688
|
+
typeof a.on == "function" && Nl(a, "error", t, e);
|
|
26661
26689
|
}
|
|
26662
|
-
function
|
|
26690
|
+
function Nl(a, t, e, r) {
|
|
26663
26691
|
if (typeof a.on == "function")
|
|
26664
26692
|
r.once ? a.once(t, e) : a.on(t, e);
|
|
26665
26693
|
else if (typeof a.addEventListener == "function")
|
|
@@ -26780,7 +26808,7 @@ class Qv extends Tg.EventEmitter {
|
|
|
26780
26808
|
const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26781
26809
|
__proto__: null,
|
|
26782
26810
|
default: Lg
|
|
26783
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26811
|
+
}, Symbol.toStringTag, { value: "Module" })), Fa = 85, gl = 250, tw = "CSM", Ta = {
|
|
26784
26812
|
GET_VERSION: 0,
|
|
26785
26813
|
INS_PUBLIC_KEY_SECP256K1: 1,
|
|
26786
26814
|
// Obsolete
|
|
@@ -26790,7 +26818,7 @@ const Lg = {}, Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
26790
26818
|
INIT: 0,
|
|
26791
26819
|
ADD: 1,
|
|
26792
26820
|
LAST: 2
|
|
26793
|
-
},
|
|
26821
|
+
}, Ol = {
|
|
26794
26822
|
ONLY_RETRIEVE: 0,
|
|
26795
26823
|
SHOW_ADDRESS_IN_DEVICE: 1
|
|
26796
26824
|
}, fa = {
|
|
@@ -26858,7 +26886,7 @@ function ei(a) {
|
|
|
26858
26886
|
return t.writeUInt32LE(2147483648 + a[0], 0), t.writeUInt32LE(2147483648 + a[1], 4), t.writeUInt32LE(2147483648 + a[2], 8), t.writeUInt32LE(a[3], 12), t.writeUInt32LE(a[4], 16), t;
|
|
26859
26887
|
}
|
|
26860
26888
|
async function qg(a) {
|
|
26861
|
-
return a.send(
|
|
26889
|
+
return a.send(Fa, Ta.GET_VERSION, 0, 0).then((t) => {
|
|
26862
26890
|
const e = t.slice(-2), r = e[0] * 256 + e[1];
|
|
26863
26891
|
let o = 0;
|
|
26864
26892
|
return t.length >= 9 && (o = (t[5] << 24) + (t[6] << 16) + (t[7] << 8) + (t[8] << 0)), {
|
|
@@ -26887,8 +26915,8 @@ async function Vg(a) {
|
|
|
26887
26915
|
let g = 2 + d;
|
|
26888
26916
|
const v = t[g];
|
|
26889
26917
|
g += 1, n = t.slice(g, g + v).toString("ascii"), g += v;
|
|
26890
|
-
const
|
|
26891
|
-
g += 1, i =
|
|
26918
|
+
const A = t[g];
|
|
26919
|
+
g += 1, i = A, c = t[g];
|
|
26892
26920
|
}
|
|
26893
26921
|
return {
|
|
26894
26922
|
return_code: r,
|
|
@@ -26931,7 +26959,7 @@ async function Kg(a) {
|
|
|
26931
26959
|
s += 1;
|
|
26932
26960
|
let v = t.slice(s, s + g);
|
|
26933
26961
|
v[g - 1] === 0 && (v = t.slice(s, s + g - 1));
|
|
26934
|
-
const
|
|
26962
|
+
const A = v.toString();
|
|
26935
26963
|
return {
|
|
26936
26964
|
return_code: r,
|
|
26937
26965
|
error_message: gn(r),
|
|
@@ -26939,12 +26967,12 @@ async function Kg(a) {
|
|
|
26939
26967
|
target_id: o,
|
|
26940
26968
|
se_version: i,
|
|
26941
26969
|
flag: d,
|
|
26942
|
-
mcu_version:
|
|
26970
|
+
mcu_version: A
|
|
26943
26971
|
};
|
|
26944
26972
|
}).catch(Hs);
|
|
26945
26973
|
}
|
|
26946
26974
|
async function Wg(a, t) {
|
|
26947
|
-
return a.send(
|
|
26975
|
+
return a.send(Fa, Ta.GET_ADDR_SECP256K1, 0, 0, t, [fa.NoError]).then((e) => {
|
|
26948
26976
|
const r = e.slice(-2), o = r[0] * 256 + r[1], s = e ? Buffer.from(e.slice(0, 33)) : null;
|
|
26949
26977
|
return {
|
|
26950
26978
|
pk: "OBSOLETE PROPERTY",
|
|
@@ -26955,7 +26983,7 @@ async function Wg(a, t) {
|
|
|
26955
26983
|
}).catch(Hs);
|
|
26956
26984
|
}
|
|
26957
26985
|
async function jg(a, t) {
|
|
26958
|
-
return a.send(
|
|
26986
|
+
return a.send(Fa, Ta.GET_ADDR_SECP256K1, Ol.ONLY_RETRIEVE, 0, t, [
|
|
26959
26987
|
fa.NoError
|
|
26960
26988
|
]).then((e) => {
|
|
26961
26989
|
const r = e.slice(-2), o = r[0] * 256 + r[1], s = Buffer.from(e.slice(0, 33));
|
|
@@ -26969,9 +26997,9 @@ async function jg(a, t) {
|
|
|
26969
26997
|
}
|
|
26970
26998
|
async function Gg(a, t) {
|
|
26971
26999
|
return a.send(
|
|
26972
|
-
|
|
27000
|
+
Fa,
|
|
26973
27001
|
Ta.GET_ADDR_SECP256K1,
|
|
26974
|
-
|
|
27002
|
+
Ol.SHOW_ADDRESS_IN_DEVICE,
|
|
26975
27003
|
0,
|
|
26976
27004
|
t,
|
|
26977
27005
|
[fa.NoError]
|
|
@@ -26999,7 +27027,7 @@ function Jg(a, t) {
|
|
|
26999
27027
|
}
|
|
27000
27028
|
async function _l(a, t, e, r) {
|
|
27001
27029
|
let o = td.ADD;
|
|
27002
|
-
return t === 1 && (o = td.INIT), t === e && (o = td.LAST), a.send(
|
|
27030
|
+
return t === 1 && (o = td.INIT), t === e && (o = td.LAST), a.send(Fa, Ta.SIGN_SECP256K1, o, 0, r, [
|
|
27003
27031
|
fa.NoError,
|
|
27004
27032
|
27012,
|
|
27005
27033
|
27264
|
|
@@ -27099,7 +27127,7 @@ class Ua {
|
|
|
27099
27127
|
return Zg(this.transport, t, e);
|
|
27100
27128
|
}
|
|
27101
27129
|
}
|
|
27102
|
-
class
|
|
27130
|
+
class Fl {
|
|
27103
27131
|
/**
|
|
27104
27132
|
* Called to derive the relevant account and validator addresses and public keys from
|
|
27105
27133
|
* the raw compressed public key in bytes.
|
|
@@ -27160,7 +27188,7 @@ class Ol {
|
|
|
27160
27188
|
);
|
|
27161
27189
|
const e = t.auth_info.signer_infos;
|
|
27162
27190
|
t.auth_info.signer_infos = [
|
|
27163
|
-
new
|
|
27191
|
+
new Nt(
|
|
27164
27192
|
this.publicKey,
|
|
27165
27193
|
t.sequence,
|
|
27166
27194
|
new J(new J.Single(zt.SIGN_MODE_DIRECT))
|
|
@@ -27228,7 +27256,7 @@ class Ol {
|
|
|
27228
27256
|
const n = s.data.single;
|
|
27229
27257
|
return r.signatures.push(...t.signatures, n.signature), r.auth_info.signer_infos.push(
|
|
27230
27258
|
...t.auth_info.signer_infos,
|
|
27231
|
-
new
|
|
27259
|
+
new Nt(
|
|
27232
27260
|
s.public_key,
|
|
27233
27261
|
s.sequence,
|
|
27234
27262
|
new J(new J.Single(n.mode))
|
|
@@ -27255,14 +27283,14 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27255
27283
|
const c = (h, u) => (h + u / o) / u, d = {
|
|
27256
27284
|
beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
|
|
27257
27285
|
splitScalar(h) {
|
|
27258
|
-
const { n: u } = i, p = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), y = -r * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), w = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), P = p, D = BigInt("0x100000000000000000000000000000000"), M = c(P * h, u),
|
|
27259
|
-
let B = x(h - M * p -
|
|
27286
|
+
const { n: u } = i, p = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), y = -r * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), w = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), P = p, D = BigInt("0x100000000000000000000000000000000"), M = c(P * h, u), N = c(-y * h, u);
|
|
27287
|
+
let B = x(h - M * p - N * w, u), T = x(-M * y - N * P, u);
|
|
27260
27288
|
const H = B > D, z = T > D;
|
|
27261
27289
|
if (H && (B = u - B), z && (T = u - T), B > D || T > D)
|
|
27262
27290
|
throw new Error("splitScalarEndo: Endomorphism failed, k=" + h);
|
|
27263
27291
|
return { k1neg: H, k1: B, k2neg: z, k2: T };
|
|
27264
27292
|
}
|
|
27265
|
-
}, g = 32, v = 32,
|
|
27293
|
+
}, g = 32, v = 32, A = 32, k = g + 1, E = 2 * g + 1;
|
|
27266
27294
|
function $(h) {
|
|
27267
27295
|
const { a: u, b: p } = i, y = x(h * h), w = x(y * h);
|
|
27268
27296
|
return x(w + u * h + p);
|
|
@@ -27295,14 +27323,14 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27295
27323
|
}
|
|
27296
27324
|
equals(u) {
|
|
27297
27325
|
j(u);
|
|
27298
|
-
const { x: p, y, z: w } = this, { x: P, y: D, z: M } = u,
|
|
27326
|
+
const { x: p, y, z: w } = this, { x: P, y: D, z: M } = u, N = x(w * w), B = x(M * M), T = x(p * B), H = x(P * N), z = x(x(y * M) * B), mt = x(x(D * w) * N);
|
|
27299
27327
|
return T === H && z === mt;
|
|
27300
27328
|
}
|
|
27301
27329
|
negate() {
|
|
27302
27330
|
return new S(this.x, x(-this.y), this.z);
|
|
27303
27331
|
}
|
|
27304
27332
|
double() {
|
|
27305
|
-
const { x: u, y: p, z: y } = this, w = x(u * u), P = x(p * p), D = x(P * P), M = u + P,
|
|
27333
|
+
const { x: u, y: p, z: y } = this, w = x(u * u), P = x(p * p), D = x(P * P), M = u + P, N = x(o * (x(M * M) - w - D)), B = x(s * w), T = x(B * B), H = x(T - o * N), z = x(B * (N - H) - n * D), mt = x(o * p * y);
|
|
27306
27334
|
return new S(H, z, mt);
|
|
27307
27335
|
}
|
|
27308
27336
|
add(u) {
|
|
@@ -27312,10 +27340,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27312
27340
|
return this;
|
|
27313
27341
|
if (p === e || y === e)
|
|
27314
27342
|
return u;
|
|
27315
|
-
const
|
|
27343
|
+
const N = x(w * w), B = x(M * M), T = x(p * B), H = x(P * N), z = x(x(y * M) * B), mt = x(x(D * w) * N), at = x(H - T), Ct = x(mt - z);
|
|
27316
27344
|
if (at === e)
|
|
27317
27345
|
return Ct === e ? this.double() : S.ZERO;
|
|
27318
|
-
const
|
|
27346
|
+
const bn = x(at * at), An = x(at * bn), Dn = x(T * bn), ja = x(Ct * Ct - An - o * Dn), _i = x(Ct * (Dn - ja) - z * An), va = x(w * M * at);
|
|
27319
27347
|
return new S(ja, _i, va);
|
|
27320
27348
|
}
|
|
27321
27349
|
subtract(u) {
|
|
@@ -27334,10 +27362,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27334
27362
|
y & r && (H = H.add(z)), z = z.double(), y >>= r;
|
|
27335
27363
|
return H;
|
|
27336
27364
|
}
|
|
27337
|
-
let { k1neg: w, k1: P, k2neg: D, k2: M } = d.splitScalar(y),
|
|
27365
|
+
let { k1neg: w, k1: P, k2neg: D, k2: M } = d.splitScalar(y), N = p, B = p, T = this;
|
|
27338
27366
|
for (; P > e || M > e; )
|
|
27339
|
-
P & r && (
|
|
27340
|
-
return w && (
|
|
27367
|
+
P & r && (N = N.add(T)), M & r && (B = B.add(T)), T = T.double(), P >>= r, M >>= r;
|
|
27368
|
+
return w && (N = N.negate()), D && (B = B.negate()), B = new S(x(B.x * d.beta), B.y, B.z), N.add(B);
|
|
27341
27369
|
}
|
|
27342
27370
|
precomputeWindow(u) {
|
|
27343
27371
|
const p = L ? 128 / u + 1 : 256 / u + 1, y = [];
|
|
@@ -27358,22 +27386,22 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27358
27386
|
let w = p && et.get(p);
|
|
27359
27387
|
w || (w = this.precomputeWindow(y), p && y !== 1 && (w = S.normalizeZ(w), et.set(p, w)));
|
|
27360
27388
|
let P = S.ZERO, D = S.BASE;
|
|
27361
|
-
const M = 1 + (L ? 128 / y : 256 / y),
|
|
27389
|
+
const M = 1 + (L ? 128 / y : 256 / y), N = 2 ** (y - 1), B = BigInt(2 ** y - 1), T = 2 ** y, H = BigInt(y);
|
|
27362
27390
|
for (let z = 0; z < M; z++) {
|
|
27363
|
-
const mt = z *
|
|
27391
|
+
const mt = z * N;
|
|
27364
27392
|
let at = Number(u & B);
|
|
27365
|
-
u >>= H, at >
|
|
27366
|
-
const Ct = mt,
|
|
27367
|
-
at === 0 ? D = D.add(Z(
|
|
27393
|
+
u >>= H, at > N && (at -= T, u += r);
|
|
27394
|
+
const Ct = mt, bn = mt + Math.abs(at) - 1, An = z % 2 !== 0, Dn = at < 0;
|
|
27395
|
+
at === 0 ? D = D.add(Z(An, w[Ct])) : P = P.add(Z(Dn, w[bn]));
|
|
27368
27396
|
}
|
|
27369
27397
|
return { p: P, f: D };
|
|
27370
27398
|
}
|
|
27371
27399
|
multiply(u, p) {
|
|
27372
27400
|
let y = Dd(u), w, P;
|
|
27373
27401
|
if (L) {
|
|
27374
|
-
const { k1neg: D, k1: M, k2neg:
|
|
27402
|
+
const { k1neg: D, k1: M, k2neg: N, k2: B } = d.splitScalar(y);
|
|
27375
27403
|
let { p: T, f: H } = this.wNAF(M, p), { p: z, f: mt } = this.wNAF(B, p);
|
|
27376
|
-
T = Z(D, T), z = Z(
|
|
27404
|
+
T = Z(D, T), z = Z(N, z), z = new S(x(z.x * d.beta), z.y, z.z), w = T.add(z), P = H.add(mt);
|
|
27377
27405
|
} else {
|
|
27378
27406
|
const { p: D, f: M } = this.wNAF(y, p);
|
|
27379
27407
|
w = D, P = M;
|
|
@@ -27383,7 +27411,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27383
27411
|
toAffine(u) {
|
|
27384
27412
|
const { x: p, y, z: w } = this, P = this.equals(S.ZERO);
|
|
27385
27413
|
u == null && (u = P ? n : _n(w));
|
|
27386
|
-
const D = u, M = x(D * D),
|
|
27414
|
+
const D = u, M = x(D * D), N = x(M * D), B = x(p * M), T = x(y * N), H = x(w * D);
|
|
27387
27415
|
if (P)
|
|
27388
27416
|
return R.ZERO;
|
|
27389
27417
|
if (H !== r)
|
|
@@ -27439,7 +27467,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27439
27467
|
const { r: w, s: P } = Md(p);
|
|
27440
27468
|
if (![0, 1, 2, 3].includes(y))
|
|
27441
27469
|
throw new Error("Cannot recover: invalid recovery bit");
|
|
27442
|
-
const D = gi(Lt(u)), { n: M } = i,
|
|
27470
|
+
const D = gi(Lt(u)), { n: M } = i, N = y === 2 || y === 3 ? w + M : w, B = _n(N, M), T = x(-D * B, M), H = x(P * B, M), z = y & 1 ? "03" : "02", mt = R.fromHex(z + V(N)), at = R.BASE.multiplyAndAddUnsafe(mt, T, H);
|
|
27443
27471
|
if (!at)
|
|
27444
27472
|
throw new Error("Cannot recover signature: point at infinify");
|
|
27445
27473
|
return at.assertValidity(), at;
|
|
@@ -27582,13 +27610,13 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27582
27610
|
}
|
|
27583
27611
|
return p;
|
|
27584
27612
|
}
|
|
27585
|
-
const
|
|
27613
|
+
const b = Array.from({ length: 256 }, (h, u) => u.toString(16).padStart(2, "0"));
|
|
27586
27614
|
function C(h) {
|
|
27587
27615
|
if (!(h instanceof Uint8Array))
|
|
27588
27616
|
throw new Error("Expected Uint8Array");
|
|
27589
27617
|
let u = "";
|
|
27590
27618
|
for (let p = 0; p < h.length; p++)
|
|
27591
|
-
u +=
|
|
27619
|
+
u += b[h[p]];
|
|
27592
27620
|
return u;
|
|
27593
27621
|
}
|
|
27594
27622
|
const rt = BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");
|
|
@@ -27653,7 +27681,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27653
27681
|
return y;
|
|
27654
27682
|
}
|
|
27655
27683
|
function tp(h) {
|
|
27656
|
-
const { P: u } = i, p = BigInt(6), y = BigInt(11), w = BigInt(22), P = BigInt(23), D = BigInt(44), M = BigInt(88),
|
|
27684
|
+
const { P: u } = i, p = BigInt(6), y = BigInt(11), w = BigInt(22), P = BigInt(23), D = BigInt(44), M = BigInt(88), N = h * h * h % u, B = N * N * h % u, T = xt(B, s) * B % u, H = xt(T, s) * B % u, z = xt(H, o) * N % u, mt = xt(z, y) * z % u, at = xt(mt, w) * mt % u, Ct = xt(at, D) * at % u, bn = xt(Ct, M) * Ct % u, An = xt(bn, D) * at % u, Dn = xt(An, s) * B % u, ja = xt(Dn, P) * mt % u, _i = xt(ja, p) * N % u, va = xt(_i, o);
|
|
27657
27685
|
if (va * va % u !== h)
|
|
27658
27686
|
throw new Error("Cannot find square root");
|
|
27659
27687
|
return va;
|
|
@@ -27663,8 +27691,8 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27663
27691
|
throw new Error(`invert: expected positive integers, got n=${h} mod=${u}`);
|
|
27664
27692
|
let p = x(h, u), y = u, w = e, P = r;
|
|
27665
27693
|
for (; p !== e; ) {
|
|
27666
|
-
const M = y / p,
|
|
27667
|
-
y = p, p =
|
|
27694
|
+
const M = y / p, N = y % p, B = w - P * M;
|
|
27695
|
+
y = p, p = N, w = P, P = B;
|
|
27668
27696
|
}
|
|
27669
27697
|
if (y !== r)
|
|
27670
27698
|
throw new Error("invert: does not exist");
|
|
@@ -27748,13 +27776,13 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27748
27776
|
const { n: w } = i, P = gi(h, !0);
|
|
27749
27777
|
if (!wn(P))
|
|
27750
27778
|
return;
|
|
27751
|
-
const D = _n(P, w), M = R.BASE.multiply(P),
|
|
27752
|
-
if (
|
|
27779
|
+
const D = _n(P, w), M = R.BASE.multiply(P), N = x(M.x, w);
|
|
27780
|
+
if (N === e)
|
|
27753
27781
|
return;
|
|
27754
|
-
const B = x(D * x(u + p *
|
|
27782
|
+
const B = x(D * x(u + p * N, w), w);
|
|
27755
27783
|
if (B === e)
|
|
27756
27784
|
return;
|
|
27757
|
-
let T = new Et(
|
|
27785
|
+
let T = new Et(N, B), H = (M.x === T.r ? 0 : 2) | Number(M.y & r);
|
|
27758
27786
|
return y && T.hasHighS() && (T = T.normalizeS(), H ^= 1), { sig: T, recovery: H };
|
|
27759
27787
|
}
|
|
27760
27788
|
function Ks(h) {
|
|
@@ -27827,10 +27855,10 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27827
27855
|
const y = Lt(h), w = Ks(u), P = [Bd(w), ap(y)];
|
|
27828
27856
|
if (p != null) {
|
|
27829
27857
|
p === !0 && (p = a.utils.randomBytes(g));
|
|
27830
|
-
const
|
|
27831
|
-
if (
|
|
27858
|
+
const N = Lt(p);
|
|
27859
|
+
if (N.length !== g)
|
|
27832
27860
|
throw new Error(`sign: Expected ${g} bytes of extra data`);
|
|
27833
|
-
P.push(
|
|
27861
|
+
P.push(N);
|
|
27834
27862
|
}
|
|
27835
27863
|
const D = Rt(...P), M = Sd(y);
|
|
27836
27864
|
return { seed: D, m: M, d: w };
|
|
@@ -27840,7 +27868,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27840
27868
|
return P ? [D, y] : D;
|
|
27841
27869
|
}
|
|
27842
27870
|
async function ip(h, u, p = {}) {
|
|
27843
|
-
const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(
|
|
27871
|
+
const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
|
|
27844
27872
|
await D.reseed(y);
|
|
27845
27873
|
let M;
|
|
27846
27874
|
for (; !(M = xd(await D.generate(), w, P, p.canonical)); )
|
|
@@ -27849,7 +27877,7 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27849
27877
|
}
|
|
27850
27878
|
a.sign = ip;
|
|
27851
27879
|
function cp(h, u, p = {}) {
|
|
27852
|
-
const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(
|
|
27880
|
+
const { seed: y, m: w, d: P } = Ed(h, u, p.extraEntropy), D = new kd(A, v);
|
|
27853
27881
|
D.reseedSync(y);
|
|
27854
27882
|
let M;
|
|
27855
27883
|
for (; !(M = xd(D.generateSync(), w, P, p.canonical)); )
|
|
@@ -27869,13 +27897,13 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27869
27897
|
if (y.strict && w.hasHighS())
|
|
27870
27898
|
return !1;
|
|
27871
27899
|
const M = gi(u);
|
|
27872
|
-
let
|
|
27900
|
+
let N;
|
|
27873
27901
|
try {
|
|
27874
|
-
|
|
27902
|
+
N = yi(p);
|
|
27875
27903
|
} catch {
|
|
27876
27904
|
return !1;
|
|
27877
27905
|
}
|
|
27878
|
-
const { n: B } = i, T = _n(D, B), H = x(M * T, B), z = x(P * T, B), mt = R.BASE.multiplyAndAddUnsafe(
|
|
27906
|
+
const { n: B } = i, T = _n(D, B), H = x(M * T, B), z = x(P * T, B), mt = R.BASE.multiplyAndAddUnsafe(N, H, z);
|
|
27879
27907
|
return mt ? x(mt.x, B) === P : !1;
|
|
27880
27908
|
}
|
|
27881
27909
|
a.verify = up;
|
|
@@ -27938,12 +27966,12 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27938
27966
|
throw new Error("sign: Invalid signature produced");
|
|
27939
27967
|
}
|
|
27940
27968
|
async calc() {
|
|
27941
|
-
const { m: u, d: p, px: y, rand: w } = this, P = a.utils.taggedHash, D = this.initNonce(p, await P(Pe.aux, w)), { R: M, rx:
|
|
27942
|
-
return await
|
|
27969
|
+
const { m: u, d: p, px: y, rand: w } = this, P = a.utils.taggedHash, D = this.initNonce(p, await P(Pe.aux, w)), { R: M, rx: N, k: B } = this.finalizeNonce(await P(Pe.nonce, D, y, u)), T = Ka(await P(Pe.challenge, N, y, u)), H = this.finalizeSig(M, B, T, p);
|
|
27970
|
+
return await Od(H, u, y) || this.error(), H;
|
|
27943
27971
|
}
|
|
27944
27972
|
calcSync() {
|
|
27945
|
-
const { m: u, d: p, px: y, rand: w } = this, P = a.utils.taggedHashSync, D = this.initNonce(p, P(Pe.aux, w)), { R: M, rx:
|
|
27946
|
-
return
|
|
27973
|
+
const { m: u, d: p, px: y, rand: w } = this, P = a.utils.taggedHashSync, D = this.initNonce(p, P(Pe.aux, w)), { R: M, rx: N, k: B } = this.finalizeNonce(P(Pe.nonce, D, y, u)), T = Ka(P(Pe.challenge, N, y, u)), H = this.finalizeSig(M, B, T, p);
|
|
27974
|
+
return Fd(H, u, y) || this.error(), H;
|
|
27947
27975
|
}
|
|
27948
27976
|
}
|
|
27949
27977
|
async function lp(h, u, p) {
|
|
@@ -27960,22 +27988,22 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27960
27988
|
P: yi(p)
|
|
27961
27989
|
};
|
|
27962
27990
|
}
|
|
27963
|
-
function
|
|
27991
|
+
function Nd(h, u, p, y) {
|
|
27964
27992
|
const w = R.BASE.multiplyAndAddUnsafe(u, Ks(p), x(-y, i.n));
|
|
27965
27993
|
return !(!w || !w.hasEvenY() || w.x !== h);
|
|
27966
27994
|
}
|
|
27967
|
-
async function
|
|
27995
|
+
async function Od(h, u, p) {
|
|
27968
27996
|
try {
|
|
27969
27997
|
const { r: y, s: w, m: P, P: D } = $d(h, u, p), M = Ka(await a.utils.taggedHash(Pe.challenge, tt(y), D.toRawX(), P));
|
|
27970
|
-
return
|
|
27998
|
+
return Nd(y, D, w, M);
|
|
27971
27999
|
} catch {
|
|
27972
28000
|
return !1;
|
|
27973
28001
|
}
|
|
27974
28002
|
}
|
|
27975
|
-
function
|
|
28003
|
+
function Fd(h, u, p) {
|
|
27976
28004
|
try {
|
|
27977
28005
|
const { r: y, s: w, m: P, P: D } = $d(h, u, p), M = Ka(a.utils.taggedHashSync(Pe.challenge, tt(y), D.toRawX(), P));
|
|
27978
|
-
return
|
|
28006
|
+
return Nd(y, D, w, M);
|
|
27979
28007
|
} catch (y) {
|
|
27980
28008
|
if (y instanceof K)
|
|
27981
28009
|
throw y;
|
|
@@ -27986,9 +28014,9 @@ const Qg = /* @__PURE__ */ Eg(Hg);
|
|
|
27986
28014
|
Signature: Pn,
|
|
27987
28015
|
getPublicKey: dp,
|
|
27988
28016
|
sign: lp,
|
|
27989
|
-
verify:
|
|
28017
|
+
verify: Od,
|
|
27990
28018
|
signSync: pp,
|
|
27991
|
-
verifySync:
|
|
28019
|
+
verifySync: Fd
|
|
27992
28020
|
}, R.BASE._setWindowSize(8);
|
|
27993
28021
|
const wt = {
|
|
27994
28022
|
node: t,
|
|
@@ -28148,55 +28176,55 @@ pi.crypto = void 0;
|
|
|
28148
28176
|
pi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
28149
28177
|
(function(a) {
|
|
28150
28178
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
28151
|
-
Object.defineProperty(a, "__esModule", { value: !0 }), a.Hash = a.nextTick = a.byteSwapIfBE = a.byteSwap = a.isLE = a.rotl = a.rotr = a.createView = a.u32 = a.u8 = void 0, a.isBytes = r, a.byteSwap32 = g, a.bytesToHex =
|
|
28179
|
+
Object.defineProperty(a, "__esModule", { value: !0 }), a.Hash = a.nextTick = a.byteSwapIfBE = a.byteSwap = a.isLE = a.rotl = a.rotr = a.createView = a.u32 = a.u8 = void 0, a.isBytes = r, a.byteSwap32 = g, a.bytesToHex = A, a.hexToBytes = $, a.asyncLoop = K, a.utf8ToBytes = j, a.toBytes = S, a.concatBytes = Z, a.checkOpts = za, a.wrapConstructor = qa, a.wrapConstructorWithOpts = fi, a.wrapXOFConstructorWithOpts = Et, a.randomBytes = Rt;
|
|
28152
28180
|
const t = pi, e = Bt;
|
|
28153
|
-
function r(
|
|
28154
|
-
return
|
|
28181
|
+
function r(b) {
|
|
28182
|
+
return b instanceof Uint8Array || b != null && typeof b == "object" && b.constructor.name === "Uint8Array";
|
|
28155
28183
|
}
|
|
28156
|
-
const o = (
|
|
28184
|
+
const o = (b) => new Uint8Array(b.buffer, b.byteOffset, b.byteLength);
|
|
28157
28185
|
a.u8 = o;
|
|
28158
|
-
const s = (
|
|
28186
|
+
const s = (b) => new Uint32Array(b.buffer, b.byteOffset, Math.floor(b.byteLength / 4));
|
|
28159
28187
|
a.u32 = s;
|
|
28160
|
-
const n = (
|
|
28188
|
+
const n = (b) => new DataView(b.buffer, b.byteOffset, b.byteLength);
|
|
28161
28189
|
a.createView = n;
|
|
28162
|
-
const i = (
|
|
28190
|
+
const i = (b, C) => b << 32 - C | b >>> C;
|
|
28163
28191
|
a.rotr = i;
|
|
28164
|
-
const c = (
|
|
28192
|
+
const c = (b, C) => b << C | b >>> 32 - C >>> 0;
|
|
28165
28193
|
a.rotl = c, a.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
28166
|
-
const d = (
|
|
28167
|
-
a.byteSwap = d, a.byteSwapIfBE = a.isLE ? (
|
|
28168
|
-
function g(
|
|
28169
|
-
for (let C = 0; C <
|
|
28170
|
-
|
|
28171
|
-
}
|
|
28172
|
-
const v = /* @__PURE__ */ Array.from({ length: 256 }, (
|
|
28173
|
-
function b
|
|
28174
|
-
(0, e.bytes)(
|
|
28194
|
+
const d = (b) => b << 24 & 4278190080 | b << 8 & 16711680 | b >>> 8 & 65280 | b >>> 24 & 255;
|
|
28195
|
+
a.byteSwap = d, a.byteSwapIfBE = a.isLE ? (b) => b : (b) => (0, a.byteSwap)(b);
|
|
28196
|
+
function g(b) {
|
|
28197
|
+
for (let C = 0; C < b.length; C++)
|
|
28198
|
+
b[C] = (0, a.byteSwap)(b[C]);
|
|
28199
|
+
}
|
|
28200
|
+
const v = /* @__PURE__ */ Array.from({ length: 256 }, (b, C) => C.toString(16).padStart(2, "0"));
|
|
28201
|
+
function A(b) {
|
|
28202
|
+
(0, e.bytes)(b);
|
|
28175
28203
|
let C = "";
|
|
28176
|
-
for (let rt = 0; rt <
|
|
28177
|
-
C += v[
|
|
28204
|
+
for (let rt = 0; rt < b.length; rt++)
|
|
28205
|
+
C += v[b[rt]];
|
|
28178
28206
|
return C;
|
|
28179
28207
|
}
|
|
28180
28208
|
const k = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
|
|
28181
|
-
function E(
|
|
28182
|
-
if (
|
|
28183
|
-
return
|
|
28184
|
-
if (
|
|
28185
|
-
return
|
|
28186
|
-
if (
|
|
28187
|
-
return
|
|
28188
|
-
}
|
|
28189
|
-
function $(
|
|
28190
|
-
if (typeof
|
|
28191
|
-
throw new Error("hex string expected, got " + typeof
|
|
28192
|
-
const C =
|
|
28209
|
+
function E(b) {
|
|
28210
|
+
if (b >= k._0 && b <= k._9)
|
|
28211
|
+
return b - k._0;
|
|
28212
|
+
if (b >= k._A && b <= k._F)
|
|
28213
|
+
return b - (k._A - 10);
|
|
28214
|
+
if (b >= k._a && b <= k._f)
|
|
28215
|
+
return b - (k._a - 10);
|
|
28216
|
+
}
|
|
28217
|
+
function $(b) {
|
|
28218
|
+
if (typeof b != "string")
|
|
28219
|
+
throw new Error("hex string expected, got " + typeof b);
|
|
28220
|
+
const C = b.length, rt = C / 2;
|
|
28193
28221
|
if (C % 2)
|
|
28194
28222
|
throw new Error("padded hex string expected, got unpadded hex of length " + C);
|
|
28195
28223
|
const V = new Uint8Array(rt);
|
|
28196
28224
|
for (let tt = 0, ct = 0; tt < rt; tt++, ct += 2) {
|
|
28197
|
-
const Vs = E(
|
|
28225
|
+
const Vs = E(b.charCodeAt(ct)), Ut = E(b.charCodeAt(ct + 1));
|
|
28198
28226
|
if (Vs === void 0 || Ut === void 0) {
|
|
28199
|
-
const ft =
|
|
28227
|
+
const ft = b[ct] + b[ct + 1];
|
|
28200
28228
|
throw new Error('hex string expected, got non-hex character "' + ft + '" at index ' + ct);
|
|
28201
28229
|
}
|
|
28202
28230
|
V[tt] = Vs * 16 + Ut;
|
|
@@ -28206,31 +28234,31 @@ pi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
|
|
|
28206
28234
|
const L = async () => {
|
|
28207
28235
|
};
|
|
28208
28236
|
a.nextTick = L;
|
|
28209
|
-
async function K(
|
|
28237
|
+
async function K(b, C, rt) {
|
|
28210
28238
|
let V = Date.now();
|
|
28211
|
-
for (let tt = 0; tt <
|
|
28239
|
+
for (let tt = 0; tt < b; tt++) {
|
|
28212
28240
|
rt(tt);
|
|
28213
28241
|
const ct = Date.now() - V;
|
|
28214
28242
|
ct >= 0 && ct < C || (await (0, a.nextTick)(), V += ct);
|
|
28215
28243
|
}
|
|
28216
28244
|
}
|
|
28217
|
-
function j(
|
|
28218
|
-
if (typeof
|
|
28219
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof
|
|
28220
|
-
return new Uint8Array(new TextEncoder().encode(
|
|
28245
|
+
function j(b) {
|
|
28246
|
+
if (typeof b != "string")
|
|
28247
|
+
throw new Error(`utf8ToBytes expected string, got ${typeof b}`);
|
|
28248
|
+
return new Uint8Array(new TextEncoder().encode(b));
|
|
28221
28249
|
}
|
|
28222
|
-
function S(
|
|
28223
|
-
return typeof
|
|
28250
|
+
function S(b) {
|
|
28251
|
+
return typeof b == "string" && (b = j(b)), (0, e.bytes)(b), b;
|
|
28224
28252
|
}
|
|
28225
|
-
function Z(...
|
|
28253
|
+
function Z(...b) {
|
|
28226
28254
|
let C = 0;
|
|
28227
|
-
for (let V = 0; V <
|
|
28228
|
-
const tt =
|
|
28255
|
+
for (let V = 0; V < b.length; V++) {
|
|
28256
|
+
const tt = b[V];
|
|
28229
28257
|
(0, e.bytes)(tt), C += tt.length;
|
|
28230
28258
|
}
|
|
28231
28259
|
const rt = new Uint8Array(C);
|
|
28232
|
-
for (let V = 0, tt = 0; V <
|
|
28233
|
-
const ct =
|
|
28260
|
+
for (let V = 0, tt = 0; V < b.length; V++) {
|
|
28261
|
+
const ct = b[V];
|
|
28234
28262
|
rt.set(ct, tt), tt += ct.length;
|
|
28235
28263
|
}
|
|
28236
28264
|
return rt;
|
|
@@ -28243,28 +28271,28 @@ pi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
|
|
|
28243
28271
|
}
|
|
28244
28272
|
a.Hash = et;
|
|
28245
28273
|
const R = {}.toString;
|
|
28246
|
-
function za(
|
|
28274
|
+
function za(b, C) {
|
|
28247
28275
|
if (C !== void 0 && R.call(C) !== "[object Object]")
|
|
28248
28276
|
throw new Error("Options should be object or undefined");
|
|
28249
|
-
return Object.assign(
|
|
28277
|
+
return Object.assign(b, C);
|
|
28250
28278
|
}
|
|
28251
|
-
function qa(
|
|
28252
|
-
const C = (V) =>
|
|
28253
|
-
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = () =>
|
|
28279
|
+
function qa(b) {
|
|
28280
|
+
const C = (V) => b().update(S(V)).digest(), rt = b();
|
|
28281
|
+
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = () => b(), C;
|
|
28254
28282
|
}
|
|
28255
|
-
function fi(
|
|
28256
|
-
const C = (V, tt) =>
|
|
28257
|
-
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = (V) =>
|
|
28283
|
+
function fi(b) {
|
|
28284
|
+
const C = (V, tt) => b(tt).update(S(V)).digest(), rt = b({});
|
|
28285
|
+
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = (V) => b(V), C;
|
|
28258
28286
|
}
|
|
28259
|
-
function Et(
|
|
28260
|
-
const C = (V, tt) =>
|
|
28261
|
-
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = (V) =>
|
|
28287
|
+
function Et(b) {
|
|
28288
|
+
const C = (V, tt) => b(tt).update(S(V)).digest(), rt = b({});
|
|
28289
|
+
return C.outputLen = rt.outputLen, C.blockLen = rt.blockLen, C.create = (V) => b(V), C;
|
|
28262
28290
|
}
|
|
28263
|
-
function Rt(
|
|
28291
|
+
function Rt(b = 32) {
|
|
28264
28292
|
if (t.crypto && typeof t.crypto.getRandomValues == "function")
|
|
28265
|
-
return t.crypto.getRandomValues(new Uint8Array(
|
|
28293
|
+
return t.crypto.getRandomValues(new Uint8Array(b));
|
|
28266
28294
|
if (t.crypto && typeof t.crypto.randomBytes == "function")
|
|
28267
|
-
return t.crypto.randomBytes(
|
|
28295
|
+
return t.crypto.randomBytes(b);
|
|
28268
28296
|
throw new Error("crypto.getRandomValues must be defined");
|
|
28269
28297
|
}
|
|
28270
28298
|
})(li);
|
|
@@ -28299,8 +28327,8 @@ pi.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
|
|
|
28299
28327
|
}
|
|
28300
28328
|
_cloneInto(n) {
|
|
28301
28329
|
n || (n = Object.create(Object.getPrototypeOf(this), {}));
|
|
28302
|
-
const { oHash: i, iHash: c, finished: d, destroyed: g, blockLen: v, outputLen:
|
|
28303
|
-
return n = n, n.finished = d, n.destroyed = g, n.blockLen = v, n.outputLen =
|
|
28330
|
+
const { oHash: i, iHash: c, finished: d, destroyed: g, blockLen: v, outputLen: A } = this;
|
|
28331
|
+
return n = n, n.finished = d, n.destroyed = g, n.blockLen = v, n.outputLen = A, n.oHash = i._cloneInto(n.oHash), n.iHash = c._cloneInto(n.iHash), n;
|
|
28304
28332
|
}
|
|
28305
28333
|
destroy() {
|
|
28306
28334
|
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
@@ -28442,7 +28470,7 @@ const rd = Rs, Mt = li, ny = /* @__PURE__ */ new Uint32Array([
|
|
|
28442
28470
|
2756734187,
|
|
28443
28471
|
3204031479,
|
|
28444
28472
|
3329325298
|
|
28445
|
-
]),
|
|
28473
|
+
]), be = /* @__PURE__ */ new Uint32Array([
|
|
28446
28474
|
1779033703,
|
|
28447
28475
|
3144134277,
|
|
28448
28476
|
1013904242,
|
|
@@ -28451,10 +28479,10 @@ const rd = Rs, Mt = li, ny = /* @__PURE__ */ new Uint32Array([
|
|
|
28451
28479
|
2600822924,
|
|
28452
28480
|
528734635,
|
|
28453
28481
|
1541459225
|
|
28454
|
-
]),
|
|
28482
|
+
]), Ae = /* @__PURE__ */ new Uint32Array(64);
|
|
28455
28483
|
class gd extends rd.HashMD {
|
|
28456
28484
|
constructor() {
|
|
28457
|
-
super(64, 32, 8, !1), this.A =
|
|
28485
|
+
super(64, 32, 8, !1), this.A = be[0] | 0, this.B = be[1] | 0, this.C = be[2] | 0, this.D = be[3] | 0, this.E = be[4] | 0, this.F = be[5] | 0, this.G = be[6] | 0, this.H = be[7] | 0;
|
|
28458
28486
|
}
|
|
28459
28487
|
get() {
|
|
28460
28488
|
const { A: t, B: e, C: r, D: o, E: s, F: n, G: i, H: c } = this;
|
|
@@ -28466,20 +28494,20 @@ class gd extends rd.HashMD {
|
|
|
28466
28494
|
}
|
|
28467
28495
|
process(t, e) {
|
|
28468
28496
|
for (let v = 0; v < 16; v++, e += 4)
|
|
28469
|
-
|
|
28497
|
+
Ae[v] = t.getUint32(e, !1);
|
|
28470
28498
|
for (let v = 16; v < 64; v++) {
|
|
28471
|
-
const
|
|
28472
|
-
|
|
28499
|
+
const A = Ae[v - 15], k = Ae[v - 2], E = (0, Mt.rotr)(A, 7) ^ (0, Mt.rotr)(A, 18) ^ A >>> 3, $ = (0, Mt.rotr)(k, 17) ^ (0, Mt.rotr)(k, 19) ^ k >>> 10;
|
|
28500
|
+
Ae[v] = $ + Ae[v - 7] + E + Ae[v - 16] | 0;
|
|
28473
28501
|
}
|
|
28474
28502
|
let { A: r, B: o, C: s, D: n, E: i, F: c, G: d, H: g } = this;
|
|
28475
28503
|
for (let v = 0; v < 64; v++) {
|
|
28476
|
-
const
|
|
28504
|
+
const A = (0, Mt.rotr)(i, 6) ^ (0, Mt.rotr)(i, 11) ^ (0, Mt.rotr)(i, 25), k = g + A + (0, rd.Chi)(i, c, d) + ny[v] + Ae[v] | 0, $ = ((0, Mt.rotr)(r, 2) ^ (0, Mt.rotr)(r, 13) ^ (0, Mt.rotr)(r, 22)) + (0, rd.Maj)(r, o, s) | 0;
|
|
28477
28505
|
g = d, d = c, c = i, i = n + k | 0, n = s, s = o, o = r, r = k + $ | 0;
|
|
28478
28506
|
}
|
|
28479
28507
|
r = r + this.A | 0, o = o + this.B | 0, s = s + this.C | 0, n = n + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, d = d + this.G | 0, g = g + this.H | 0, this.set(r, o, s, n, i, c, d, g);
|
|
28480
28508
|
}
|
|
28481
28509
|
roundClean() {
|
|
28482
|
-
|
|
28510
|
+
Ae.fill(0);
|
|
28483
28511
|
}
|
|
28484
28512
|
destroy() {
|
|
28485
28513
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
@@ -28582,23 +28610,23 @@ const _d = q.utils._normalizePrivateKey, ly = 32, py = 32, ud = new Uint8Array([
|
|
|
28582
28610
|
function yy(a) {
|
|
28583
28611
|
return a instanceof Uint8Array;
|
|
28584
28612
|
}
|
|
28585
|
-
function
|
|
28613
|
+
function Na(a, t) {
|
|
28586
28614
|
for (let e = 0; e < 32; ++e)
|
|
28587
28615
|
if (a[e] !== t[e])
|
|
28588
28616
|
return a[e] < t[e] ? -1 : 1;
|
|
28589
28617
|
return 0;
|
|
28590
28618
|
}
|
|
28591
28619
|
function vl(a) {
|
|
28592
|
-
return
|
|
28620
|
+
return Na(a, fy) === 0;
|
|
28593
28621
|
}
|
|
28594
28622
|
function Ha(a) {
|
|
28595
|
-
return !(!(a instanceof Uint8Array) || a.length !== py ||
|
|
28623
|
+
return !(!(a instanceof Uint8Array) || a.length !== py || Na(a, ud) >= 0);
|
|
28596
28624
|
}
|
|
28597
28625
|
function vd(a) {
|
|
28598
|
-
return a instanceof Uint8Array && a.length === 64 &&
|
|
28626
|
+
return a instanceof Uint8Array && a.length === 64 && Na(a.subarray(0, 32), ud) < 0 && Na(a.subarray(32, 64), ud) < 0;
|
|
28599
28627
|
}
|
|
28600
28628
|
function _y(a) {
|
|
28601
|
-
return yy(a) && a.length === 64 &&
|
|
28629
|
+
return yy(a) && a.length === 64 && Na(a.subarray(0, 32), gy) < 0;
|
|
28602
28630
|
}
|
|
28603
28631
|
function vy(a) {
|
|
28604
28632
|
return !(vl(a.subarray(0, 32)) || vl(a.subarray(32, 64)));
|
|
@@ -28639,10 +28667,10 @@ function Pd(a) {
|
|
|
28639
28667
|
const Py = (a, t) => {
|
|
28640
28668
|
const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e + r, q.CURVE.n));
|
|
28641
28669
|
return q.utils.isValidPrivateKey(o) ? o : null;
|
|
28642
|
-
},
|
|
28670
|
+
}, by = (a, t) => {
|
|
28643
28671
|
const e = _d(a), r = Pd(t), o = q.utils._bigintTo32Bytes(q.utils.mod(e - r, q.CURVE.n));
|
|
28644
28672
|
return q.utils.isValidPrivateKey(o) ? o : null;
|
|
28645
|
-
},
|
|
28673
|
+
}, Ay = (a) => {
|
|
28646
28674
|
const t = _d(a), e = q.utils._bigintTo32Bytes(q.CURVE.n - t);
|
|
28647
28675
|
return q.utils.isValidPrivateKey(e) ? e : null;
|
|
28648
28676
|
}, jl = (a, t, e) => {
|
|
@@ -28663,7 +28691,7 @@ function yn(a) {
|
|
|
28663
28691
|
return null;
|
|
28664
28692
|
}
|
|
28665
28693
|
}
|
|
28666
|
-
function
|
|
28694
|
+
function bd(a, t) {
|
|
28667
28695
|
if (a.length === 32 !== t) return !1;
|
|
28668
28696
|
try {
|
|
28669
28697
|
return !!q.Point.fromHex(a);
|
|
@@ -28672,16 +28700,16 @@ function Ad(a, t) {
|
|
|
28672
28700
|
}
|
|
28673
28701
|
}
|
|
28674
28702
|
function Ls(a) {
|
|
28675
|
-
return
|
|
28703
|
+
return bd(a, !1);
|
|
28676
28704
|
}
|
|
28677
28705
|
function Gl(a) {
|
|
28678
|
-
return
|
|
28706
|
+
return bd(a, !1) && a.length === 33;
|
|
28679
28707
|
}
|
|
28680
28708
|
function we(a) {
|
|
28681
28709
|
return q.utils.isValidPrivateKey(a);
|
|
28682
28710
|
}
|
|
28683
28711
|
function hi(a) {
|
|
28684
|
-
return
|
|
28712
|
+
return bd(a, !0);
|
|
28685
28713
|
}
|
|
28686
28714
|
function ky(a, t) {
|
|
28687
28715
|
if (!hi(a))
|
|
@@ -28753,12 +28781,12 @@ function Uy(a, t) {
|
|
|
28753
28781
|
throw new Error(zs);
|
|
28754
28782
|
if (Ha(t) === !1)
|
|
28755
28783
|
throw new Error(Ra);
|
|
28756
|
-
return yn(() =>
|
|
28784
|
+
return yn(() => by(a, t));
|
|
28757
28785
|
}
|
|
28758
28786
|
function Cy(a) {
|
|
28759
28787
|
if (we(a) === !1)
|
|
28760
28788
|
throw new Error(zs);
|
|
28761
|
-
return
|
|
28789
|
+
return Ay(a);
|
|
28762
28790
|
}
|
|
28763
28791
|
function $y(a, t, e) {
|
|
28764
28792
|
if (!we(t))
|
|
@@ -28769,7 +28797,7 @@ function $y(a, t, e) {
|
|
|
28769
28797
|
throw new Error(yd);
|
|
28770
28798
|
return q.signSync(a, t, { der: !1, extraEntropy: e });
|
|
28771
28799
|
}
|
|
28772
|
-
function
|
|
28800
|
+
function Ny(a, t, e) {
|
|
28773
28801
|
if (!we(t))
|
|
28774
28802
|
throw new Error(zs);
|
|
28775
28803
|
if (!ga(a))
|
|
@@ -28779,7 +28807,7 @@ function Fy(a, t, e) {
|
|
|
28779
28807
|
const [r, o] = q.signSync(a, t, { der: !1, extraEntropy: e, recovered: !0 });
|
|
28780
28808
|
return { signature: r, recoveryId: o };
|
|
28781
28809
|
}
|
|
28782
|
-
function
|
|
28810
|
+
function Oy(a, t, e = Buffer.alloc(32, 0)) {
|
|
28783
28811
|
if (!we(t))
|
|
28784
28812
|
throw new Error(zs);
|
|
28785
28813
|
if (!ga(a))
|
|
@@ -28788,7 +28816,7 @@ function Ny(a, t, e = Buffer.alloc(32, 0)) {
|
|
|
28788
28816
|
throw new Error(yd);
|
|
28789
28817
|
return q.schnorr.signSync(a, t, e);
|
|
28790
28818
|
}
|
|
28791
|
-
function
|
|
28819
|
+
function Fy(a, t, e, r) {
|
|
28792
28820
|
if (!ga(a))
|
|
28793
28821
|
throw new Error(uy);
|
|
28794
28822
|
if (!vd(t) || !vy(t))
|
|
@@ -28829,16 +28857,16 @@ st.pointMultiply = Iy;
|
|
|
28829
28857
|
st.privateAdd = Ey;
|
|
28830
28858
|
st.privateNegate = Cy;
|
|
28831
28859
|
st.privateSub = Uy;
|
|
28832
|
-
st.recover =
|
|
28860
|
+
st.recover = Fy;
|
|
28833
28861
|
st.sign = $y;
|
|
28834
|
-
st.signRecoverable =
|
|
28835
|
-
st.signSchnorr =
|
|
28862
|
+
st.signRecoverable = Ny;
|
|
28863
|
+
st.signSchnorr = Oy;
|
|
28836
28864
|
st.verify = Ty;
|
|
28837
28865
|
st.verifySchnorr = Ry;
|
|
28838
28866
|
st.xOnlyPointAddTweak = ky;
|
|
28839
28867
|
st.xOnlyPointFromPoint = Jl;
|
|
28840
28868
|
st.xOnlyPointFromScalar = xy;
|
|
28841
|
-
class
|
|
28869
|
+
class Ad extends Fl {
|
|
28842
28870
|
constructor(e, r = !1) {
|
|
28843
28871
|
var t = (...cw) => (super(...cw), /**
|
|
28844
28872
|
* Raw private key, in bytes.
|
|
@@ -28856,7 +28884,7 @@ class bd extends Ol {
|
|
|
28856
28884
|
static fromHex(e) {
|
|
28857
28885
|
const r = e.startsWith("0x") ? e.slice(2) : e;
|
|
28858
28886
|
if (r.length !== 64) throw new Error("Invalid private key length");
|
|
28859
|
-
return new
|
|
28887
|
+
return new Ad(Buffer.from(r, "hex"));
|
|
28860
28888
|
}
|
|
28861
28889
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
28862
28890
|
async sign(e) {
|
|
@@ -28872,7 +28900,7 @@ class bd extends Ol {
|
|
|
28872
28900
|
}
|
|
28873
28901
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
28874
28902
|
async signWithKeccak256(e) {
|
|
28875
|
-
const r =
|
|
28903
|
+
const r = bl(e), { signature: o } = Pa.ecdsaSign(
|
|
28876
28904
|
Uint8Array.from(r),
|
|
28877
28905
|
Uint8Array.from(this.privateKey)
|
|
28878
28906
|
);
|
|
@@ -28885,7 +28913,7 @@ const Ly = zf(st), Yl = 118, Hy = {
|
|
|
28885
28913
|
coinType: Yl,
|
|
28886
28914
|
eth: !1
|
|
28887
28915
|
};
|
|
28888
|
-
class ew extends
|
|
28916
|
+
class ew extends Ad {
|
|
28889
28917
|
/**
|
|
28890
28918
|
* Creates a new signing key from a mnemonic phrase. If no mnemonic is provided, one
|
|
28891
28919
|
* will be automatically generated.
|
|
@@ -28914,10 +28942,10 @@ class ew extends bd {
|
|
|
28914
28942
|
};
|
|
28915
28943
|
let { mnemonic: i } = e;
|
|
28916
28944
|
i === void 0 && (i = qf(256));
|
|
28917
|
-
const c = Vf(i), d = Ly.fromSeed(c), g = `m/44'/${s}'/${r}'/0/${o}`,
|
|
28918
|
-
if (!
|
|
28945
|
+
const c = Vf(i), d = Ly.fromSeed(c), g = `m/44'/${s}'/${r}'/0/${o}`, A = d.derivePath(g).privateKey;
|
|
28946
|
+
if (!A)
|
|
28919
28947
|
throw new Error("Failed to derive key pair");
|
|
28920
|
-
super(Buffer.from(
|
|
28948
|
+
super(Buffer.from(A), n);
|
|
28921
28949
|
/**
|
|
28922
28950
|
* Space-separated mnemonic phrase.
|
|
28923
28951
|
*/
|
|
@@ -28931,7 +28959,7 @@ class it extends Error {
|
|
|
28931
28959
|
super(t), this.name = "LedgerError";
|
|
28932
28960
|
}
|
|
28933
28961
|
}
|
|
28934
|
-
class Ql extends
|
|
28962
|
+
class Ql extends Fl {
|
|
28935
28963
|
/**
|
|
28936
28964
|
* @param transport transporter for LedgerKey
|
|
28937
28965
|
*/
|
|
@@ -28987,7 +29015,7 @@ class Ql extends Ol {
|
|
|
28987
29015
|
async sign(e) {
|
|
28988
29016
|
this.publicKey || await this.loadAccountDetails();
|
|
28989
29017
|
const r = await this.app.sign(this.path, e);
|
|
28990
|
-
return od(r), Buffer.from(
|
|
29018
|
+
return od(r), Buffer.from(Ap(Buffer.from(r.signature)));
|
|
28991
29019
|
}
|
|
28992
29020
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
28993
29021
|
async signWithKeccak256() {
|
|
@@ -29087,20 +29115,20 @@ async function Ky() {
|
|
|
29087
29115
|
}
|
|
29088
29116
|
export {
|
|
29089
29117
|
Qs as ABCIParams,
|
|
29090
|
-
|
|
29118
|
+
On as ACL,
|
|
29091
29119
|
Kf as APIRequester,
|
|
29092
29120
|
tw as APP_KEY,
|
|
29093
29121
|
xn as AbsoluteTxPosition,
|
|
29094
29122
|
cd as AccAddress,
|
|
29095
29123
|
nl as AccPubKey,
|
|
29096
|
-
|
|
29097
|
-
|
|
29124
|
+
Oe as AcceptedMessageKeysFilter,
|
|
29125
|
+
Fe as AcceptedMessagesFilter,
|
|
29098
29126
|
X as AccessConfig,
|
|
29099
29127
|
Pt as AccessTuple,
|
|
29100
29128
|
nd as Account,
|
|
29101
29129
|
Mn as Allocation,
|
|
29102
|
-
|
|
29103
|
-
|
|
29130
|
+
Ne as AllowAllMessagesFilter,
|
|
29131
|
+
As as Allowance,
|
|
29104
29132
|
Mr as AllowedMsgAllowance,
|
|
29105
29133
|
jf as AuctionAPI,
|
|
29106
29134
|
gs as AuctionParams,
|
|
@@ -29122,8 +29150,8 @@ export {
|
|
|
29122
29150
|
ce as BridgeConfig,
|
|
29123
29151
|
ue as BridgeInfo,
|
|
29124
29152
|
gl as CHUNK_SIZE,
|
|
29125
|
-
|
|
29126
|
-
|
|
29153
|
+
Fa as CLA,
|
|
29154
|
+
Ft as Channel,
|
|
29127
29155
|
cn as ChannelCounterparty,
|
|
29128
29156
|
Qa as ClientConsensusStates,
|
|
29129
29157
|
js as CodeGrant,
|
|
@@ -29146,7 +29174,7 @@ export {
|
|
|
29146
29174
|
xa as Deposit,
|
|
29147
29175
|
rg as DistributionAPI,
|
|
29148
29176
|
Ps as DistributionParams,
|
|
29149
|
-
|
|
29177
|
+
F as Duration,
|
|
29150
29178
|
fa as ERROR_CODE,
|
|
29151
29179
|
yl as ERROR_DESCRIPTION,
|
|
29152
29180
|
Pr as Equivocation,
|
|
@@ -29156,7 +29184,7 @@ export {
|
|
|
29156
29184
|
og as EvidenceAPI,
|
|
29157
29185
|
Ys as EvidenceParams,
|
|
29158
29186
|
sg as EvmAPI,
|
|
29159
|
-
|
|
29187
|
+
bs as EvmParams,
|
|
29160
29188
|
Be as ExecuteAuthorization,
|
|
29161
29189
|
Ws as ExecuteAuthorizationItem,
|
|
29162
29190
|
se as Fee,
|
|
@@ -29193,7 +29221,7 @@ export {
|
|
|
29193
29221
|
Ya as IdentifiedPacketFees,
|
|
29194
29222
|
hg as InterTxAPI,
|
|
29195
29223
|
m as JSONSerializable,
|
|
29196
|
-
|
|
29224
|
+
Fl as Key,
|
|
29197
29225
|
Xv as LCDClient,
|
|
29198
29226
|
it as LedgerError,
|
|
29199
29227
|
Ql as LedgerKey,
|
|
@@ -29204,7 +29232,7 @@ export {
|
|
|
29204
29232
|
Ue as MaxCallsLimit,
|
|
29205
29233
|
Ce as MaxFundsLimit,
|
|
29206
29234
|
nn as Member,
|
|
29207
|
-
|
|
29235
|
+
At as MemberRequest,
|
|
29208
29236
|
ln as MerklePrefix,
|
|
29209
29237
|
id as MerkleRoot,
|
|
29210
29238
|
Za as Metadata,
|
|
@@ -29224,7 +29252,7 @@ export {
|
|
|
29224
29252
|
us as MsgBurn,
|
|
29225
29253
|
kr as MsgCall,
|
|
29226
29254
|
Ur as MsgCancelProposal,
|
|
29227
|
-
|
|
29255
|
+
Oo as MsgCancelUnbondingDelegation,
|
|
29228
29256
|
uo as MsgCancelUpgrade,
|
|
29229
29257
|
ds as MsgChangeAdmin,
|
|
29230
29258
|
Qn as MsgChannelCloseConfirm,
|
|
@@ -29236,7 +29264,7 @@ export {
|
|
|
29236
29264
|
We as MsgClearAdmin,
|
|
29237
29265
|
Er as MsgClearForwardingAccount,
|
|
29238
29266
|
vr as MsgCommunityPoolSpend,
|
|
29239
|
-
|
|
29267
|
+
Ar as MsgCreate,
|
|
29240
29268
|
Dr as MsgCreate2,
|
|
29241
29269
|
Ko as MsgCreateBridge,
|
|
29242
29270
|
Rn as MsgCreateClient,
|
|
@@ -29245,7 +29273,7 @@ export {
|
|
|
29245
29273
|
Wr as MsgCreateGroupPolicy,
|
|
29246
29274
|
jr as MsgCreateGroupWithPolicy,
|
|
29247
29275
|
go as MsgCreateMarkets,
|
|
29248
|
-
|
|
29276
|
+
No as MsgCreateValidator,
|
|
29249
29277
|
Uo as MsgDelegate,
|
|
29250
29278
|
jo as MsgDeleteOutput,
|
|
29251
29279
|
Mo as MsgDelist,
|
|
@@ -29256,7 +29284,7 @@ export {
|
|
|
29256
29284
|
ar as MsgExecAuthorized,
|
|
29257
29285
|
Po as MsgExecute,
|
|
29258
29286
|
qe as MsgExecuteContract,
|
|
29259
|
-
|
|
29287
|
+
bo as MsgExecuteJSON,
|
|
29260
29288
|
zo as MsgExecuteMessages,
|
|
29261
29289
|
Lo as MsgFinalizeTokenDeposit,
|
|
29262
29290
|
Jo as MsgFinalizeTokenWithdrawal,
|
|
@@ -29291,7 +29319,7 @@ export {
|
|
|
29291
29319
|
qn as MsgRecoverClient,
|
|
29292
29320
|
ta as MsgRecvPacket,
|
|
29293
29321
|
lo as MsgRegisterAccount,
|
|
29294
|
-
|
|
29322
|
+
Nn as MsgRegisterCounterpartyPayee,
|
|
29295
29323
|
Br as MsgRegisterForwardingAccount,
|
|
29296
29324
|
$n as MsgRegisterPayee,
|
|
29297
29325
|
er as MsgRemoveCodeUploadParamsAddresses,
|
|
@@ -29300,7 +29328,7 @@ export {
|
|
|
29300
29328
|
Ro as MsgRemoveValidator,
|
|
29301
29329
|
Sr as MsgRevokeAllowance,
|
|
29302
29330
|
nr as MsgRevokeAuthorization,
|
|
29303
|
-
|
|
29331
|
+
Ao as MsgScript,
|
|
29304
29332
|
Do as MsgScriptJSON,
|
|
29305
29333
|
ir as MsgSend,
|
|
29306
29334
|
ps as MsgSetBeforeSendHook,
|
|
@@ -29314,7 +29342,7 @@ export {
|
|
|
29314
29342
|
Xe as MsgStoreAndInstantiateContract,
|
|
29315
29343
|
Qe as MsgStoreAndMigrateContract,
|
|
29316
29344
|
Le as MsgStoreCode,
|
|
29317
|
-
|
|
29345
|
+
br as MsgSubmitEvidence,
|
|
29318
29346
|
Jt as MsgSubmitGroupProposal,
|
|
29319
29347
|
zn as MsgSubmitMisbehaviour,
|
|
29320
29348
|
Rr as MsgSubmitProposal,
|
|
@@ -29358,7 +29386,7 @@ export {
|
|
|
29358
29386
|
yo as MsgUpdateMarkets,
|
|
29359
29387
|
ts as MsgUpdateMetadata,
|
|
29360
29388
|
ko as MsgUpdateMoveParams,
|
|
29361
|
-
|
|
29389
|
+
Fo as MsgUpdateMstakingParams,
|
|
29362
29390
|
ss as MsgUpdateOpchildParams,
|
|
29363
29391
|
es as MsgUpdateOphostParams,
|
|
29364
29392
|
os as MsgUpdateOracle,
|
|
@@ -29382,7 +29410,7 @@ export {
|
|
|
29382
29410
|
yg as MstakingAPI,
|
|
29383
29411
|
Us as MstakingParams,
|
|
29384
29412
|
Jv as MultiSignature,
|
|
29385
|
-
|
|
29413
|
+
Fn as NftClassTrace,
|
|
29386
29414
|
Xa as NonFungibleTokenPacketData,
|
|
29387
29415
|
ua as OpValidator,
|
|
29388
29416
|
_g as OpchildAPI,
|
|
@@ -29392,16 +29420,16 @@ export {
|
|
|
29392
29420
|
wg as OracleAPI,
|
|
29393
29421
|
Gv as OrderBy,
|
|
29394
29422
|
me as Output,
|
|
29395
|
-
|
|
29423
|
+
Ol as P1_VALUES,
|
|
29396
29424
|
td as PAYLOAD_TYPE,
|
|
29397
29425
|
St as Packet,
|
|
29398
29426
|
ve as PacketFee,
|
|
29399
29427
|
_e as PacketId,
|
|
29400
29428
|
rn as ParamChange,
|
|
29401
|
-
|
|
29402
|
-
|
|
29429
|
+
Nr as ParamChanges,
|
|
29430
|
+
Or as ParameterChangeProposal,
|
|
29403
29431
|
Kr as PercentageDecisionPolicy,
|
|
29404
|
-
|
|
29432
|
+
Ot as PeriodicAllowance,
|
|
29405
29433
|
ie as Plan,
|
|
29406
29434
|
fe as Proposal,
|
|
29407
29435
|
pn as ProviderConfig,
|
|
@@ -29409,32 +29437,32 @@ export {
|
|
|
29409
29437
|
Se as PublishAuthorization,
|
|
29410
29438
|
Sa as QuotePrice,
|
|
29411
29439
|
Bg as RESTClient,
|
|
29412
|
-
|
|
29440
|
+
Ad as RawKey,
|
|
29413
29441
|
Vt as Redelegation,
|
|
29414
29442
|
Pg as RewardAPI,
|
|
29415
|
-
|
|
29443
|
+
Ns as RewardParams,
|
|
29416
29444
|
tn as RewardWeight,
|
|
29417
29445
|
Me as SendAuthorization,
|
|
29418
29446
|
re as SendEnabled,
|
|
29419
29447
|
Xf as SignDoc,
|
|
29420
29448
|
nt as SignatureV2,
|
|
29421
|
-
|
|
29449
|
+
Nt as SignerInfo,
|
|
29422
29450
|
dt as SimplePublicKey,
|
|
29423
29451
|
pd as SimulateResponse,
|
|
29424
|
-
|
|
29425
|
-
|
|
29452
|
+
bg as SlashingAPI,
|
|
29453
|
+
Os as SlashingParams,
|
|
29426
29454
|
Kt as StakeAuthorization,
|
|
29427
29455
|
qt as StakeAuthorizationValidators,
|
|
29428
29456
|
nw as State,
|
|
29429
29457
|
Ee as StoreCodeAuthorization,
|
|
29430
29458
|
Ds as TallyResult,
|
|
29431
|
-
|
|
29432
|
-
|
|
29459
|
+
Ag as TendermintAPI,
|
|
29460
|
+
Fr as TextProposal,
|
|
29433
29461
|
Vr as ThresholdDecisionPolicy,
|
|
29434
29462
|
hn as Ticker,
|
|
29435
29463
|
dn as Timeout,
|
|
29436
29464
|
Dg as TokenfactoryAPI,
|
|
29437
|
-
|
|
29465
|
+
Fs as TokenfactoryParams,
|
|
29438
29466
|
In as TransferAuthorization,
|
|
29439
29467
|
ht as Tx,
|
|
29440
29468
|
Ea as TxAPI,
|
|
@@ -29455,14 +29483,14 @@ export {
|
|
|
29455
29483
|
Mg as WasmAPI,
|
|
29456
29484
|
_s as WasmParams,
|
|
29457
29485
|
Qv as WebSocketClient,
|
|
29458
|
-
|
|
29486
|
+
bt as WeightedVoteOption,
|
|
29459
29487
|
Zv as bcs,
|
|
29460
29488
|
kn as checkDecimal,
|
|
29461
29489
|
dl as fromLittleEndian,
|
|
29462
29490
|
sd as hashToHex,
|
|
29463
29491
|
Yv as isTxError,
|
|
29464
29492
|
Gf as keccak256,
|
|
29465
|
-
|
|
29493
|
+
O as num,
|
|
29466
29494
|
ci as prepareSignBytes,
|
|
29467
29495
|
Wf as removeNull,
|
|
29468
29496
|
Jf as ripemd160,
|