injectivejs 1.9.14 → 1.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +4 -4
- package/cosmos/base/v1beta1/coin.js +7 -7
- package/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +7 -7
- package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmos/gov/v1/tx.rpc.func.d.ts +7 -7
- package/cosmos/gov/v1beta1/gov.js +4 -4
- package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +4 -4
- package/cosmos/group/v1/tx.rpc.func.d.ts +14 -14
- package/cosmos/staking/v1beta1/staking.js +22 -22
- package/cosmos/staking/v1beta1/tx.js +4 -4
- package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +7 -7
- package/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +3 -3
- package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +17 -17
- package/esm/binary.js +1 -1
- package/esm/cosmos/base/v1beta1/coin.js +3 -3
- package/esm/cosmos/distribution/v1beta1/distribution.js +6 -6
- package/esm/cosmos/gov/v1beta1/gov.js +2 -2
- package/esm/cosmos/staking/v1beta1/staking.js +8 -8
- package/esm/cosmos/staking/v1beta1/tx.js +2 -2
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/injective/auction/v1beta1/auction.js +2 -2
- package/esm/injective/exchange/v1beta1/events.js +7 -7
- package/esm/injective/exchange/v1beta1/exchange.js +92 -92
- package/esm/injective/exchange/v1beta1/genesis.js +3 -3
- package/esm/injective/exchange/v1beta1/proposal.js +50 -50
- package/esm/injective/exchange/v1beta1/query.js +45 -45
- package/esm/injective/exchange/v1beta1/tx.js +41 -41
- package/esm/injective/ocr/v1beta1/ocr.js +9 -9
- package/esm/injective/oracle/v1beta1/events.js +7 -7
- package/esm/injective/oracle/v1beta1/oracle.js +16 -16
- package/esm/injective/oracle/v1beta1/query.js +7 -7
- package/esm/injective/oracle/v1beta1/tx.js +3 -3
- package/esm/injective/stream/v1beta1/query.js +11 -11
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +3 -66
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +2 -2
- package/ibc/core/channel/v1/tx.rpc.func.d.ts +19 -19
- package/ibc/core/client/v1/tx.rpc.func.d.ts +7 -7
- package/ibc/core/connection/v1/tx.rpc.func.d.ts +5 -5
- package/injective/auction/v1beta1/auction.js +4 -4
- package/injective/auction/v1beta1/tx.rpc.func.d.ts +2 -2
- package/injective/exchange/v1beta1/events.js +19 -19
- package/injective/exchange/v1beta1/exchange.js +274 -274
- package/injective/exchange/v1beta1/genesis.js +7 -7
- package/injective/exchange/v1beta1/proposal.js +148 -148
- package/injective/exchange/v1beta1/query.js +133 -133
- package/injective/exchange/v1beta1/tx.js +121 -121
- package/injective/exchange/v1beta1/tx.rpc.func.d.ts +35 -35
- package/injective/insurance/v1beta1/tx.rpc.func.d.ts +4 -4
- package/injective/ocr/v1beta1/ocr.js +25 -25
- package/injective/ocr/v1beta1/tx.rpc.func.d.ts +9 -9
- package/injective/oracle/v1beta1/events.js +19 -19
- package/injective/oracle/v1beta1/oracle.js +46 -46
- package/injective/oracle/v1beta1/query.js +19 -19
- package/injective/oracle/v1beta1/tx.js +7 -7
- package/injective/oracle/v1beta1/tx.rpc.func.d.ts +8 -8
- package/injective/peggy/v1/msgs.rpc.func.d.ts +14 -14
- package/injective/permissions/v1beta1/tx.rpc.func.d.ts +7 -7
- package/injective/stream/v1beta1/query.js +31 -31
- package/injective/tokenfactory/v1beta1/tx.rpc.func.d.ts +6 -6
- package/injective/wasmx/v1/tx.rpc.func.d.ts +6 -6
- package/package.json +8 -8
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
- package/decimals.d.ts +0 -20
- package/decimals.js +0 -102
- package/esm/decimals.js +0 -98
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SigningClientResolver } from "../../../helper-func-types";
|
|
2
2
|
import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx";
|
|
3
|
-
export declare const createCreateVestingAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateVestingAccount | MsgCreateVestingAccount[], fee: import("../../../
|
|
4
|
-
export declare const createCreatePermanentLockedAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePermanentLockedAccount | MsgCreatePermanentLockedAccount[], fee: import("../../../
|
|
5
|
-
export declare const createCreatePeriodicVestingAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePeriodicVestingAccount | MsgCreatePeriodicVestingAccount[], fee: import("../../../
|
|
3
|
+
export declare const createCreateVestingAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateVestingAccount | MsgCreateVestingAccount[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
4
|
+
export declare const createCreatePermanentLockedAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePermanentLockedAccount | MsgCreatePermanentLockedAccount[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
5
|
+
export declare const createCreatePeriodicVestingAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePeriodicVestingAccount | MsgCreatePeriodicVestingAccount[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { SigningClientResolver } from "../../../helper-func-types";
|
|
2
2
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract, MsgRemoveCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddresses, MsgStoreAndMigrateContract, MsgUpdateContractLabel } from "./tx";
|
|
3
|
-
export declare const createStoreCode: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreCode | MsgStoreCode[], fee: import("../../../
|
|
4
|
-
export declare const createInstantiateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgInstantiateContract | MsgInstantiateContract[], fee: import("../../../
|
|
5
|
-
export declare const createInstantiateContract2: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgInstantiateContract2 | MsgInstantiateContract2[], fee: import("../../../
|
|
6
|
-
export declare const createExecuteContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExecuteContract | MsgExecuteContract[], fee: import("../../../
|
|
7
|
-
export declare const createMigrateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgMigrateContract | MsgMigrateContract[], fee: import("../../../
|
|
8
|
-
export declare const createUpdateAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateAdmin | MsgUpdateAdmin[], fee: import("../../../
|
|
9
|
-
export declare const createClearAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgClearAdmin | MsgClearAdmin[], fee: import("../../../
|
|
10
|
-
export declare const createUpdateInstantiateConfig: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateInstantiateConfig | MsgUpdateInstantiateConfig[], fee: import("../../../
|
|
11
|
-
export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../
|
|
12
|
-
export declare const createSudoContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSudoContract | MsgSudoContract[], fee: import("../../../
|
|
13
|
-
export declare const createPinCodes: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgPinCodes | MsgPinCodes[], fee: import("../../../
|
|
14
|
-
export declare const createUnpinCodes: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUnpinCodes | MsgUnpinCodes[], fee: import("../../../
|
|
15
|
-
export declare const createStoreAndInstantiateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreAndInstantiateContract | MsgStoreAndInstantiateContract[], fee: import("../../../
|
|
16
|
-
export declare const createRemoveCodeUploadParamsAddresses: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRemoveCodeUploadParamsAddresses | MsgRemoveCodeUploadParamsAddresses[], fee: import("../../../
|
|
17
|
-
export declare const createAddCodeUploadParamsAddresses: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgAddCodeUploadParamsAddresses | MsgAddCodeUploadParamsAddresses[], fee: import("../../../
|
|
18
|
-
export declare const createStoreAndMigrateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreAndMigrateContract | MsgStoreAndMigrateContract[], fee: import("../../../
|
|
19
|
-
export declare const createUpdateContractLabel: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateContractLabel | MsgUpdateContractLabel[], fee: import("../../../
|
|
3
|
+
export declare const createStoreCode: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreCode | MsgStoreCode[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
4
|
+
export declare const createInstantiateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgInstantiateContract | MsgInstantiateContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
5
|
+
export declare const createInstantiateContract2: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgInstantiateContract2 | MsgInstantiateContract2[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
6
|
+
export declare const createExecuteContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExecuteContract | MsgExecuteContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
7
|
+
export declare const createMigrateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgMigrateContract | MsgMigrateContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
8
|
+
export declare const createUpdateAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateAdmin | MsgUpdateAdmin[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
9
|
+
export declare const createClearAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgClearAdmin | MsgClearAdmin[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
10
|
+
export declare const createUpdateInstantiateConfig: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateInstantiateConfig | MsgUpdateInstantiateConfig[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
11
|
+
export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
12
|
+
export declare const createSudoContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSudoContract | MsgSudoContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
13
|
+
export declare const createPinCodes: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgPinCodes | MsgPinCodes[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
14
|
+
export declare const createUnpinCodes: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUnpinCodes | MsgUnpinCodes[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
15
|
+
export declare const createStoreAndInstantiateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreAndInstantiateContract | MsgStoreAndInstantiateContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
16
|
+
export declare const createRemoveCodeUploadParamsAddresses: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRemoveCodeUploadParamsAddresses | MsgRemoveCodeUploadParamsAddresses[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
17
|
+
export declare const createAddCodeUploadParamsAddresses: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgAddCodeUploadParamsAddresses | MsgAddCodeUploadParamsAddresses[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
18
|
+
export declare const createStoreAndMigrateContract: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgStoreAndMigrateContract | MsgStoreAndMigrateContract[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
|
19
|
+
export declare const createUpdateContractLabel: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateContractLabel | MsgUpdateContractLabel[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
|
package/esm/binary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
-
import { Decimal } from "
|
|
2
|
+
import { Decimal } from "@interchainjs/math";
|
|
3
3
|
function createBaseCoin() {
|
|
4
4
|
return {
|
|
5
5
|
denom: "",
|
|
@@ -152,7 +152,7 @@ export const DecCoin = {
|
|
|
152
152
|
toAmino(message) {
|
|
153
153
|
const obj = {};
|
|
154
154
|
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
155
|
-
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
155
|
+
obj.amount = message.amount === "" ? undefined : Decimal.fromUserInput(message.amount, 18).atomics;
|
|
156
156
|
return obj;
|
|
157
157
|
},
|
|
158
158
|
fromAminoMsg(object) {
|
|
@@ -306,7 +306,7 @@ export const DecProto = {
|
|
|
306
306
|
},
|
|
307
307
|
toAmino(message) {
|
|
308
308
|
const obj = {};
|
|
309
|
-
obj.dec = message.dec === "" ? undefined : message.dec;
|
|
309
|
+
obj.dec = message.dec === "" ? undefined : Decimal.fromUserInput(message.dec, 18).atomics;
|
|
310
310
|
return obj;
|
|
311
311
|
},
|
|
312
312
|
fromAminoMsg(object) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DecCoin, Coin } from "../../base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
-
import { Decimal } from "
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
4
4
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
5
|
function createBaseParams() {
|
|
6
6
|
return {
|
|
@@ -86,9 +86,9 @@ export const Params = {
|
|
|
86
86
|
},
|
|
87
87
|
toAmino(message) {
|
|
88
88
|
const obj = {};
|
|
89
|
-
obj.community_tax = message.communityTax ?? "";
|
|
90
|
-
obj.base_proposer_reward = message.baseProposerReward ?? "";
|
|
91
|
-
obj.bonus_proposer_reward = message.bonusProposerReward ?? "";
|
|
89
|
+
obj.community_tax = Decimal.fromUserInput(message.communityTax, 18).atomics ?? "";
|
|
90
|
+
obj.base_proposer_reward = Decimal.fromUserInput(message.baseProposerReward, 18).atomics ?? "";
|
|
91
|
+
obj.bonus_proposer_reward = Decimal.fromUserInput(message.bonusProposerReward, 18).atomics ?? "";
|
|
92
92
|
obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled;
|
|
93
93
|
return obj;
|
|
94
94
|
},
|
|
@@ -530,7 +530,7 @@ export const ValidatorSlashEvent = {
|
|
|
530
530
|
toAmino(message) {
|
|
531
531
|
const obj = {};
|
|
532
532
|
obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod?.toString() : undefined;
|
|
533
|
-
obj.fraction = message.fraction === "" ? undefined : message.fraction;
|
|
533
|
+
obj.fraction = message.fraction === "" ? undefined : Decimal.fromUserInput(message.fraction, 18).atomics;
|
|
534
534
|
return obj;
|
|
535
535
|
},
|
|
536
536
|
fromAminoMsg(object) {
|
|
@@ -914,7 +914,7 @@ export const DelegatorStartingInfo = {
|
|
|
914
914
|
toAmino(message) {
|
|
915
915
|
const obj = {};
|
|
916
916
|
obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod?.toString() : undefined;
|
|
917
|
-
obj.stake = message.stake ?? "";
|
|
917
|
+
obj.stake = Decimal.fromUserInput(message.stake, 18).atomics ?? "";
|
|
918
918
|
obj.height = message.height ? message.height?.toString() : "0";
|
|
919
919
|
return obj;
|
|
920
920
|
},
|
|
@@ -12,7 +12,7 @@ import { BlacklistEthereumAddressesProposal, RevokeEthereumBlacklistProposal } f
|
|
|
12
12
|
import { ContractRegistrationRequestProposal, BatchContractRegistrationRequestProposal, BatchContractDeregistrationProposal, ContractRegistrationRequest, BatchStoreCodeProposal } from "../../../injective/wasmx/v1/proposal";
|
|
13
13
|
import { isSet, toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
14
14
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
15
|
-
import { Decimal } from "
|
|
15
|
+
import { Decimal } from "@interchainjs/math";
|
|
16
16
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
17
17
|
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
|
18
18
|
export var VoteOption;
|
|
@@ -211,7 +211,7 @@ export const WeightedVoteOption = {
|
|
|
211
211
|
toAmino(message) {
|
|
212
212
|
const obj = {};
|
|
213
213
|
obj.option = message.option === 0 ? undefined : message.option;
|
|
214
|
-
obj.weight = message.weight ?? "";
|
|
214
|
+
obj.weight = Decimal.fromUserInput(message.weight, 18).atomics ?? "";
|
|
215
215
|
return obj;
|
|
216
216
|
},
|
|
217
217
|
fromAminoMsg(object) {
|
|
@@ -7,7 +7,7 @@ import { ValidatorUpdate } from "../../../tendermint/abci/types";
|
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
8
8
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
9
9
|
import { toTimestamp, fromTimestamp, isSet } from "../../../helpers";
|
|
10
|
-
import { Decimal } from "
|
|
10
|
+
import { Decimal } from "@interchainjs/math";
|
|
11
11
|
import { encodePubkey, decodePubkey } from "@interchainjs/pubkey";
|
|
12
12
|
/** BondStatus is the status of a validator. */
|
|
13
13
|
export var BondStatus;
|
|
@@ -268,9 +268,9 @@ export const CommissionRates = {
|
|
|
268
268
|
},
|
|
269
269
|
toAmino(message) {
|
|
270
270
|
const obj = {};
|
|
271
|
-
obj.rate = message.rate ?? "";
|
|
272
|
-
obj.max_rate = message.maxRate ?? "";
|
|
273
|
-
obj.max_change_rate = message.maxChangeRate ?? "";
|
|
271
|
+
obj.rate = Decimal.fromUserInput(message.rate, 18).atomics ?? "";
|
|
272
|
+
obj.max_rate = Decimal.fromUserInput(message.maxRate, 18).atomics ?? "";
|
|
273
|
+
obj.max_change_rate = Decimal.fromUserInput(message.maxChangeRate, 18).atomics ?? "";
|
|
274
274
|
return obj;
|
|
275
275
|
},
|
|
276
276
|
fromAminoMsg(object) {
|
|
@@ -708,7 +708,7 @@ export const Validator = {
|
|
|
708
708
|
obj.jailed = message.jailed === false ? undefined : message.jailed;
|
|
709
709
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
710
710
|
obj.tokens = message.tokens === "" ? undefined : message.tokens;
|
|
711
|
-
obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares;
|
|
711
|
+
obj.delegator_shares = message.delegatorShares === "" ? undefined : Decimal.fromUserInput(message.delegatorShares, 18).atomics;
|
|
712
712
|
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
713
713
|
obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight?.toString() : undefined;
|
|
714
714
|
obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : new Date();
|
|
@@ -1258,7 +1258,7 @@ export const Delegation = {
|
|
|
1258
1258
|
const obj = {};
|
|
1259
1259
|
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1260
1260
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1261
|
-
obj.shares = message.shares === "" ? undefined : message.shares;
|
|
1261
|
+
obj.shares = message.shares === "" ? undefined : Decimal.fromUserInput(message.shares, 18).atomics;
|
|
1262
1262
|
return obj;
|
|
1263
1263
|
},
|
|
1264
1264
|
fromAminoMsg(object) {
|
|
@@ -1636,7 +1636,7 @@ export const RedelegationEntry = {
|
|
|
1636
1636
|
obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
|
|
1637
1637
|
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1638
1638
|
obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance;
|
|
1639
|
-
obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst;
|
|
1639
|
+
obj.shares_dst = message.sharesDst === "" ? undefined : Decimal.fromUserInput(message.sharesDst, 18).atomics;
|
|
1640
1640
|
obj.unbonding_id = message.unbondingId !== BigInt(0) ? message.unbondingId?.toString() : undefined;
|
|
1641
1641
|
obj.unbonding_on_hold_ref_count = message.unbondingOnHoldRefCount !== BigInt(0) ? message.unbondingOnHoldRefCount?.toString() : undefined;
|
|
1642
1642
|
return obj;
|
|
@@ -1893,7 +1893,7 @@ export const Params = {
|
|
|
1893
1893
|
obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries;
|
|
1894
1894
|
obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries;
|
|
1895
1895
|
obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom;
|
|
1896
|
-
obj.min_commission_rate = message.minCommissionRate ?? "";
|
|
1896
|
+
obj.min_commission_rate = Decimal.fromUserInput(message.minCommissionRate, 18).atomics ?? "";
|
|
1897
1897
|
return obj;
|
|
1898
1898
|
},
|
|
1899
1899
|
fromAminoMsg(object) {
|
|
@@ -6,7 +6,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
|
6
6
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
7
7
|
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
8
8
|
import { encodePubkey, decodePubkey } from "@interchainjs/pubkey";
|
|
9
|
-
import { Decimal } from "
|
|
9
|
+
import { Decimal } from "@interchainjs/math";
|
|
10
10
|
function createBaseMsgCreateValidator() {
|
|
11
11
|
return {
|
|
12
12
|
description: Description.fromPartial({}),
|
|
@@ -308,7 +308,7 @@ export const MsgEditValidator = {
|
|
|
308
308
|
const obj = {};
|
|
309
309
|
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
310
310
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
311
|
-
obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate;
|
|
311
|
+
obj.commission_rate = message.commissionRate === "" ? undefined : Decimal.fromUserInput(message.commissionRate, 18).atomics;
|
|
312
312
|
obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation;
|
|
313
313
|
return obj;
|
|
314
314
|
},
|
package/esm/extern.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
package/esm/helper-func-types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
package/esm/helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.
|
|
2
|
+
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
|
|
3
3
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
4
|
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
-
import { Decimal } from "
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
4
4
|
function createBaseParams() {
|
|
5
5
|
return {
|
|
6
6
|
auctionPeriod: BigInt(0),
|
|
@@ -64,7 +64,7 @@ export const Params = {
|
|
|
64
64
|
toAmino(message) {
|
|
65
65
|
const obj = {};
|
|
66
66
|
obj.auction_period = message.auctionPeriod !== BigInt(0) ? message.auctionPeriod?.toString() : undefined;
|
|
67
|
-
obj.min_next_bid_increment_rate = message.minNextBidIncrementRate === "" ? undefined : message.minNextBidIncrementRate;
|
|
67
|
+
obj.min_next_bid_increment_rate = message.minNextBidIncrementRate === "" ? undefined : Decimal.fromUserInput(message.minNextBidIncrementRate, 18).atomics;
|
|
68
68
|
return obj;
|
|
69
69
|
},
|
|
70
70
|
fromAminoMsg(object) {
|
|
@@ -2,7 +2,7 @@ import { TradeLog, DerivativeTradeLog, SubaccountPosition, BinaryOptionsMarket,
|
|
|
2
2
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
3
|
import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
-
import { Decimal } from "
|
|
5
|
+
import { Decimal } from "@interchainjs/math";
|
|
6
6
|
function createBaseEventBatchSpotExecution() {
|
|
7
7
|
return {
|
|
8
8
|
marketId: "",
|
|
@@ -220,7 +220,7 @@ export const EventBatchDerivativeExecution = {
|
|
|
220
220
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
221
221
|
obj.is_buy = message.isBuy === false ? undefined : message.isBuy;
|
|
222
222
|
obj.is_liquidation = message.isLiquidation === false ? undefined : message.isLiquidation;
|
|
223
|
-
obj.cumulative_funding = message.cumulativeFunding === null ? undefined : message.cumulativeFunding;
|
|
223
|
+
obj.cumulative_funding = message.cumulativeFunding === null ? undefined : Decimal.fromUserInput(message.cumulativeFunding, 18).atomics;
|
|
224
224
|
obj.executionType = message.executionType === 0 ? undefined : message.executionType;
|
|
225
225
|
if (message.trades) {
|
|
226
226
|
obj.trades = message.trades.map(e => e ? DerivativeTradeLog.toAmino(e) : undefined);
|
|
@@ -334,8 +334,8 @@ export const EventLostFundsFromLiquidation = {
|
|
|
334
334
|
const obj = {};
|
|
335
335
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
336
336
|
obj.subaccount_id = message.subaccountId ? base64FromBytes(message.subaccountId) : undefined;
|
|
337
|
-
obj.lost_funds_from_available_during_payout = message.lostFundsFromAvailableDuringPayout === "" ? undefined : message.lostFundsFromAvailableDuringPayout;
|
|
338
|
-
obj.lost_funds_from_order_cancels = message.lostFundsFromOrderCancels === "" ? undefined : message.lostFundsFromOrderCancels;
|
|
337
|
+
obj.lost_funds_from_available_during_payout = message.lostFundsFromAvailableDuringPayout === "" ? undefined : Decimal.fromUserInput(message.lostFundsFromAvailableDuringPayout, 18).atomics;
|
|
338
|
+
obj.lost_funds_from_order_cancels = message.lostFundsFromOrderCancels === "" ? undefined : Decimal.fromUserInput(message.lostFundsFromOrderCancels, 18).atomics;
|
|
339
339
|
return obj;
|
|
340
340
|
},
|
|
341
341
|
fromAminoMsg(object) {
|
|
@@ -1448,8 +1448,8 @@ export const EventPerpetualMarketFundingUpdate = {
|
|
|
1448
1448
|
obj.market_id = message.marketId === "" ? undefined : message.marketId;
|
|
1449
1449
|
obj.funding = message.funding ? PerpetualMarketFunding.toAmino(message.funding) : undefined;
|
|
1450
1450
|
obj.is_hourly_funding = message.isHourlyFunding === false ? undefined : message.isHourlyFunding;
|
|
1451
|
-
obj.funding_rate = message.fundingRate === null ? undefined : message.fundingRate;
|
|
1452
|
-
obj.mark_price = message.markPrice === null ? undefined : message.markPrice;
|
|
1451
|
+
obj.funding_rate = message.fundingRate === null ? undefined : Decimal.fromUserInput(message.fundingRate, 18).atomics;
|
|
1452
|
+
obj.mark_price = message.markPrice === null ? undefined : Decimal.fromUserInput(message.markPrice, 18).atomics;
|
|
1453
1453
|
return obj;
|
|
1454
1454
|
},
|
|
1455
1455
|
fromAminoMsg(object) {
|
|
@@ -1896,7 +1896,7 @@ export const DerivativeMarketOrderCancel = {
|
|
|
1896
1896
|
toAmino(message) {
|
|
1897
1897
|
const obj = {};
|
|
1898
1898
|
obj.market_order = message.marketOrder ? DerivativeMarketOrder.toAmino(message.marketOrder) : undefined;
|
|
1899
|
-
obj.cancel_quantity = message.cancelQuantity === "" ? undefined : message.cancelQuantity;
|
|
1899
|
+
obj.cancel_quantity = message.cancelQuantity === "" ? undefined : Decimal.fromUserInput(message.cancelQuantity, 18).atomics;
|
|
1900
1900
|
return obj;
|
|
1901
1901
|
},
|
|
1902
1902
|
fromAminoMsg(object) {
|