injectivejs 1.9.13 → 1.9.15
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/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 -6
- package/cosmos/distribution/v1beta1/distribution.js +16 -15
- 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 -3
- 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 -21
- package/cosmos/staking/v1beta1/tx.js +4 -3
- 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 +7 -6
- package/esm/cosmos/distribution/v1beta1/distribution.js +16 -15
- package/esm/cosmos/gov/v1beta1/gov.js +4 -3
- package/esm/cosmos/staking/v1beta1/staking.js +22 -21
- package/esm/cosmos/staking/v1beta1/tx.js +4 -3
- 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 +4 -3
- package/esm/injective/exchange/v1beta1/events.js +19 -18
- package/esm/injective/exchange/v1beta1/exchange.js +274 -273
- package/esm/injective/exchange/v1beta1/genesis.js +7 -6
- package/esm/injective/exchange/v1beta1/proposal.js +148 -147
- package/esm/injective/exchange/v1beta1/query.js +133 -132
- package/esm/injective/exchange/v1beta1/tx.js +121 -120
- package/esm/injective/ocr/v1beta1/ocr.js +25 -24
- package/esm/injective/oracle/v1beta1/events.js +19 -18
- package/esm/injective/oracle/v1beta1/oracle.js +46 -45
- package/esm/injective/oracle/v1beta1/query.js +19 -18
- package/esm/injective/oracle/v1beta1/tx.js +7 -6
- package/esm/injective/stream/v1beta1/query.js +31 -30
- 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 -3
- package/injective/auction/v1beta1/tx.rpc.func.d.ts +2 -2
- package/injective/exchange/v1beta1/events.js +19 -18
- package/injective/exchange/v1beta1/exchange.js +274 -273
- package/injective/exchange/v1beta1/genesis.js +7 -6
- package/injective/exchange/v1beta1/proposal.js +148 -147
- package/injective/exchange/v1beta1/query.js +133 -132
- package/injective/exchange/v1beta1/tx.js +121 -120
- 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 -24
- package/injective/ocr/v1beta1/tx.rpc.func.d.ts +9 -9
- package/injective/oracle/v1beta1/events.js +19 -18
- package/injective/oracle/v1beta1/oracle.js +46 -45
- package/injective/oracle/v1beta1/query.js +19 -18
- package/injective/oracle/v1beta1/tx.js +7 -6
- 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 -30
- 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
|
@@ -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,4 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { Decimal } from "@interchainjs/math";
|
|
2
3
|
function createBaseCoin() {
|
|
3
4
|
return {
|
|
4
5
|
denom: "",
|
|
@@ -108,7 +109,7 @@ export const DecCoin = {
|
|
|
108
109
|
writer.uint32(10).string(message.denom);
|
|
109
110
|
}
|
|
110
111
|
if (message.amount !== "") {
|
|
111
|
-
writer.uint32(18).string(message.amount);
|
|
112
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.amount, 18).atomics);
|
|
112
113
|
}
|
|
113
114
|
return writer;
|
|
114
115
|
},
|
|
@@ -123,7 +124,7 @@ export const DecCoin = {
|
|
|
123
124
|
message.denom = reader.string();
|
|
124
125
|
break;
|
|
125
126
|
case 2:
|
|
126
|
-
message.amount = reader.string();
|
|
127
|
+
message.amount = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
127
128
|
break;
|
|
128
129
|
default:
|
|
129
130
|
reader.skipType(tag & 7);
|
|
@@ -151,7 +152,7 @@ export const DecCoin = {
|
|
|
151
152
|
toAmino(message) {
|
|
152
153
|
const obj = {};
|
|
153
154
|
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
154
|
-
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
155
|
+
obj.amount = message.amount === "" ? undefined : Decimal.fromUserInput(message.amount, 18).atomics;
|
|
155
156
|
return obj;
|
|
156
157
|
},
|
|
157
158
|
fromAminoMsg(object) {
|
|
@@ -270,7 +271,7 @@ export const DecProto = {
|
|
|
270
271
|
},
|
|
271
272
|
encode(message, writer = BinaryWriter.create()) {
|
|
272
273
|
if (message.dec !== "") {
|
|
273
|
-
writer.uint32(10).string(message.dec);
|
|
274
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.dec, 18).atomics);
|
|
274
275
|
}
|
|
275
276
|
return writer;
|
|
276
277
|
},
|
|
@@ -282,7 +283,7 @@ export const DecProto = {
|
|
|
282
283
|
const tag = reader.uint32();
|
|
283
284
|
switch (tag >>> 3) {
|
|
284
285
|
case 1:
|
|
285
|
-
message.dec = reader.string();
|
|
286
|
+
message.dec = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
286
287
|
break;
|
|
287
288
|
default:
|
|
288
289
|
reader.skipType(tag & 7);
|
|
@@ -305,7 +306,7 @@ export const DecProto = {
|
|
|
305
306
|
},
|
|
306
307
|
toAmino(message) {
|
|
307
308
|
const obj = {};
|
|
308
|
-
obj.dec = message.dec === "" ? undefined : message.dec;
|
|
309
|
+
obj.dec = message.dec === "" ? undefined : Decimal.fromUserInput(message.dec, 18).atomics;
|
|
309
310
|
return obj;
|
|
310
311
|
},
|
|
311
312
|
fromAminoMsg(object) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DecCoin, Coin } from "../../base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
3
4
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
5
|
function createBaseParams() {
|
|
5
6
|
return {
|
|
@@ -20,13 +21,13 @@ export const Params = {
|
|
|
20
21
|
},
|
|
21
22
|
encode(message, writer = BinaryWriter.create()) {
|
|
22
23
|
if (message.communityTax !== "") {
|
|
23
|
-
writer.uint32(10).string(message.communityTax);
|
|
24
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics);
|
|
24
25
|
}
|
|
25
26
|
if (message.baseProposerReward !== "") {
|
|
26
|
-
writer.uint32(18).string(message.baseProposerReward);
|
|
27
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics);
|
|
27
28
|
}
|
|
28
29
|
if (message.bonusProposerReward !== "") {
|
|
29
|
-
writer.uint32(26).string(message.bonusProposerReward);
|
|
30
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics);
|
|
30
31
|
}
|
|
31
32
|
if (message.withdrawAddrEnabled === true) {
|
|
32
33
|
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
@@ -41,13 +42,13 @@ export const Params = {
|
|
|
41
42
|
const tag = reader.uint32();
|
|
42
43
|
switch (tag >>> 3) {
|
|
43
44
|
case 1:
|
|
44
|
-
message.communityTax = reader.string();
|
|
45
|
+
message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
45
46
|
break;
|
|
46
47
|
case 2:
|
|
47
|
-
message.baseProposerReward = reader.string();
|
|
48
|
+
message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
48
49
|
break;
|
|
49
50
|
case 3:
|
|
50
|
-
message.bonusProposerReward = reader.string();
|
|
51
|
+
message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
51
52
|
break;
|
|
52
53
|
case 4:
|
|
53
54
|
message.withdrawAddrEnabled = reader.bool();
|
|
@@ -85,9 +86,9 @@ export const Params = {
|
|
|
85
86
|
},
|
|
86
87
|
toAmino(message) {
|
|
87
88
|
const obj = {};
|
|
88
|
-
obj.community_tax = message.communityTax ?? "";
|
|
89
|
-
obj.base_proposer_reward = message.baseProposerReward ?? "";
|
|
90
|
-
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 ?? "";
|
|
91
92
|
obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled;
|
|
92
93
|
return obj;
|
|
93
94
|
},
|
|
@@ -486,7 +487,7 @@ export const ValidatorSlashEvent = {
|
|
|
486
487
|
writer.uint32(8).uint64(message.validatorPeriod);
|
|
487
488
|
}
|
|
488
489
|
if (message.fraction !== "") {
|
|
489
|
-
writer.uint32(18).string(message.fraction);
|
|
490
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics);
|
|
490
491
|
}
|
|
491
492
|
return writer;
|
|
492
493
|
},
|
|
@@ -501,7 +502,7 @@ export const ValidatorSlashEvent = {
|
|
|
501
502
|
message.validatorPeriod = reader.uint64();
|
|
502
503
|
break;
|
|
503
504
|
case 2:
|
|
504
|
-
message.fraction = reader.string();
|
|
505
|
+
message.fraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
505
506
|
break;
|
|
506
507
|
default:
|
|
507
508
|
reader.skipType(tag & 7);
|
|
@@ -529,7 +530,7 @@ export const ValidatorSlashEvent = {
|
|
|
529
530
|
toAmino(message) {
|
|
530
531
|
const obj = {};
|
|
531
532
|
obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod?.toString() : undefined;
|
|
532
|
-
obj.fraction = message.fraction === "" ? undefined : message.fraction;
|
|
533
|
+
obj.fraction = message.fraction === "" ? undefined : Decimal.fromUserInput(message.fraction, 18).atomics;
|
|
533
534
|
return obj;
|
|
534
535
|
},
|
|
535
536
|
fromAminoMsg(object) {
|
|
@@ -860,7 +861,7 @@ export const DelegatorStartingInfo = {
|
|
|
860
861
|
writer.uint32(8).uint64(message.previousPeriod);
|
|
861
862
|
}
|
|
862
863
|
if (message.stake !== "") {
|
|
863
|
-
writer.uint32(18).string(message.stake);
|
|
864
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics);
|
|
864
865
|
}
|
|
865
866
|
if (message.height !== BigInt(0)) {
|
|
866
867
|
writer.uint32(24).uint64(message.height);
|
|
@@ -878,7 +879,7 @@ export const DelegatorStartingInfo = {
|
|
|
878
879
|
message.previousPeriod = reader.uint64();
|
|
879
880
|
break;
|
|
880
881
|
case 2:
|
|
881
|
-
message.stake = reader.string();
|
|
882
|
+
message.stake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
882
883
|
break;
|
|
883
884
|
case 3:
|
|
884
885
|
message.height = reader.uint64();
|
|
@@ -913,7 +914,7 @@ export const DelegatorStartingInfo = {
|
|
|
913
914
|
toAmino(message) {
|
|
914
915
|
const obj = {};
|
|
915
916
|
obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod?.toString() : undefined;
|
|
916
|
-
obj.stake = message.stake ?? "";
|
|
917
|
+
obj.stake = Decimal.fromUserInput(message.stake, 18).atomics ?? "";
|
|
917
918
|
obj.height = message.height ? message.height?.toString() : "0";
|
|
918
919
|
return obj;
|
|
919
920
|
},
|
|
@@ -12,6 +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 "@interchainjs/math";
|
|
15
16
|
import { GlobalDecoderRegistry } from "../../../registry";
|
|
16
17
|
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
|
17
18
|
export var VoteOption;
|
|
@@ -167,7 +168,7 @@ export const WeightedVoteOption = {
|
|
|
167
168
|
writer.uint32(8).int32(message.option);
|
|
168
169
|
}
|
|
169
170
|
if (message.weight !== "") {
|
|
170
|
-
writer.uint32(18).string(message.weight);
|
|
171
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.weight, 18).atomics);
|
|
171
172
|
}
|
|
172
173
|
return writer;
|
|
173
174
|
},
|
|
@@ -182,7 +183,7 @@ export const WeightedVoteOption = {
|
|
|
182
183
|
message.option = reader.int32();
|
|
183
184
|
break;
|
|
184
185
|
case 2:
|
|
185
|
-
message.weight = reader.string();
|
|
186
|
+
message.weight = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
186
187
|
break;
|
|
187
188
|
default:
|
|
188
189
|
reader.skipType(tag & 7);
|
|
@@ -210,7 +211,7 @@ export const WeightedVoteOption = {
|
|
|
210
211
|
toAmino(message) {
|
|
211
212
|
const obj = {};
|
|
212
213
|
obj.option = message.option === 0 ? undefined : message.option;
|
|
213
|
-
obj.weight = message.weight ?? "";
|
|
214
|
+
obj.weight = Decimal.fromUserInput(message.weight, 18).atomics ?? "";
|
|
214
215
|
return obj;
|
|
215
216
|
},
|
|
216
217
|
fromAminoMsg(object) {
|
|
@@ -7,6 +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 "@interchainjs/math";
|
|
10
11
|
import { encodePubkey, decodePubkey } from "@interchainjs/pubkey";
|
|
11
12
|
/** BondStatus is the status of a validator. */
|
|
12
13
|
export var BondStatus;
|
|
@@ -212,13 +213,13 @@ export const CommissionRates = {
|
|
|
212
213
|
},
|
|
213
214
|
encode(message, writer = BinaryWriter.create()) {
|
|
214
215
|
if (message.rate !== "") {
|
|
215
|
-
writer.uint32(10).string(message.rate);
|
|
216
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.rate, 18).atomics);
|
|
216
217
|
}
|
|
217
218
|
if (message.maxRate !== "") {
|
|
218
|
-
writer.uint32(18).string(message.maxRate);
|
|
219
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.maxRate, 18).atomics);
|
|
219
220
|
}
|
|
220
221
|
if (message.maxChangeRate !== "") {
|
|
221
|
-
writer.uint32(26).string(message.maxChangeRate);
|
|
222
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.maxChangeRate, 18).atomics);
|
|
222
223
|
}
|
|
223
224
|
return writer;
|
|
224
225
|
},
|
|
@@ -230,13 +231,13 @@ export const CommissionRates = {
|
|
|
230
231
|
const tag = reader.uint32();
|
|
231
232
|
switch (tag >>> 3) {
|
|
232
233
|
case 1:
|
|
233
|
-
message.rate = reader.string();
|
|
234
|
+
message.rate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
234
235
|
break;
|
|
235
236
|
case 2:
|
|
236
|
-
message.maxRate = reader.string();
|
|
237
|
+
message.maxRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
237
238
|
break;
|
|
238
239
|
case 3:
|
|
239
|
-
message.maxChangeRate = reader.string();
|
|
240
|
+
message.maxChangeRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
240
241
|
break;
|
|
241
242
|
default:
|
|
242
243
|
reader.skipType(tag & 7);
|
|
@@ -267,9 +268,9 @@ export const CommissionRates = {
|
|
|
267
268
|
},
|
|
268
269
|
toAmino(message) {
|
|
269
270
|
const obj = {};
|
|
270
|
-
obj.rate = message.rate ?? "";
|
|
271
|
-
obj.max_rate = message.maxRate ?? "";
|
|
272
|
-
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 ?? "";
|
|
273
274
|
return obj;
|
|
274
275
|
},
|
|
275
276
|
fromAminoMsg(object) {
|
|
@@ -554,7 +555,7 @@ export const Validator = {
|
|
|
554
555
|
writer.uint32(42).string(message.tokens);
|
|
555
556
|
}
|
|
556
557
|
if (message.delegatorShares !== "") {
|
|
557
|
-
writer.uint32(50).string(message.delegatorShares);
|
|
558
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.delegatorShares, 18).atomics);
|
|
558
559
|
}
|
|
559
560
|
if (message.description !== undefined) {
|
|
560
561
|
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
|
@@ -604,7 +605,7 @@ export const Validator = {
|
|
|
604
605
|
message.tokens = reader.string();
|
|
605
606
|
break;
|
|
606
607
|
case 6:
|
|
607
|
-
message.delegatorShares = reader.string();
|
|
608
|
+
message.delegatorShares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
608
609
|
break;
|
|
609
610
|
case 7:
|
|
610
611
|
message.description = Description.decode(reader, reader.uint32());
|
|
@@ -707,7 +708,7 @@ export const Validator = {
|
|
|
707
708
|
obj.jailed = message.jailed === false ? undefined : message.jailed;
|
|
708
709
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
709
710
|
obj.tokens = message.tokens === "" ? undefined : message.tokens;
|
|
710
|
-
obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares;
|
|
711
|
+
obj.delegator_shares = message.delegatorShares === "" ? undefined : Decimal.fromUserInput(message.delegatorShares, 18).atomics;
|
|
711
712
|
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
712
713
|
obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight?.toString() : undefined;
|
|
713
714
|
obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : new Date();
|
|
@@ -1206,7 +1207,7 @@ export const Delegation = {
|
|
|
1206
1207
|
writer.uint32(18).string(message.validatorAddress);
|
|
1207
1208
|
}
|
|
1208
1209
|
if (message.shares !== "") {
|
|
1209
|
-
writer.uint32(26).string(message.shares);
|
|
1210
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.shares, 18).atomics);
|
|
1210
1211
|
}
|
|
1211
1212
|
return writer;
|
|
1212
1213
|
},
|
|
@@ -1224,7 +1225,7 @@ export const Delegation = {
|
|
|
1224
1225
|
message.validatorAddress = reader.string();
|
|
1225
1226
|
break;
|
|
1226
1227
|
case 3:
|
|
1227
|
-
message.shares = reader.string();
|
|
1228
|
+
message.shares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1228
1229
|
break;
|
|
1229
1230
|
default:
|
|
1230
1231
|
reader.skipType(tag & 7);
|
|
@@ -1257,7 +1258,7 @@ export const Delegation = {
|
|
|
1257
1258
|
const obj = {};
|
|
1258
1259
|
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1259
1260
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1260
|
-
obj.shares = message.shares === "" ? undefined : message.shares;
|
|
1261
|
+
obj.shares = message.shares === "" ? undefined : Decimal.fromUserInput(message.shares, 18).atomics;
|
|
1261
1262
|
return obj;
|
|
1262
1263
|
},
|
|
1263
1264
|
fromAminoMsg(object) {
|
|
@@ -1556,7 +1557,7 @@ export const RedelegationEntry = {
|
|
|
1556
1557
|
writer.uint32(26).string(message.initialBalance);
|
|
1557
1558
|
}
|
|
1558
1559
|
if (message.sharesDst !== "") {
|
|
1559
|
-
writer.uint32(34).string(message.sharesDst);
|
|
1560
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.sharesDst, 18).atomics);
|
|
1560
1561
|
}
|
|
1561
1562
|
if (message.unbondingId !== BigInt(0)) {
|
|
1562
1563
|
writer.uint32(40).uint64(message.unbondingId);
|
|
@@ -1583,7 +1584,7 @@ export const RedelegationEntry = {
|
|
|
1583
1584
|
message.initialBalance = reader.string();
|
|
1584
1585
|
break;
|
|
1585
1586
|
case 4:
|
|
1586
|
-
message.sharesDst = reader.string();
|
|
1587
|
+
message.sharesDst = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1587
1588
|
break;
|
|
1588
1589
|
case 5:
|
|
1589
1590
|
message.unbondingId = reader.uint64();
|
|
@@ -1635,7 +1636,7 @@ export const RedelegationEntry = {
|
|
|
1635
1636
|
obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
|
|
1636
1637
|
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1637
1638
|
obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance;
|
|
1638
|
-
obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst;
|
|
1639
|
+
obj.shares_dst = message.sharesDst === "" ? undefined : Decimal.fromUserInput(message.sharesDst, 18).atomics;
|
|
1639
1640
|
obj.unbonding_id = message.unbondingId !== BigInt(0) ? message.unbondingId?.toString() : undefined;
|
|
1640
1641
|
obj.unbonding_on_hold_ref_count = message.unbondingOnHoldRefCount !== BigInt(0) ? message.unbondingOnHoldRefCount?.toString() : undefined;
|
|
1641
1642
|
return obj;
|
|
@@ -1817,7 +1818,7 @@ export const Params = {
|
|
|
1817
1818
|
writer.uint32(42).string(message.bondDenom);
|
|
1818
1819
|
}
|
|
1819
1820
|
if (message.minCommissionRate !== "") {
|
|
1820
|
-
writer.uint32(50).string(message.minCommissionRate);
|
|
1821
|
+
writer.uint32(50).string(Decimal.fromUserInput(message.minCommissionRate, 18).atomics);
|
|
1821
1822
|
}
|
|
1822
1823
|
return writer;
|
|
1823
1824
|
},
|
|
@@ -1844,7 +1845,7 @@ export const Params = {
|
|
|
1844
1845
|
message.bondDenom = reader.string();
|
|
1845
1846
|
break;
|
|
1846
1847
|
case 6:
|
|
1847
|
-
message.minCommissionRate = reader.string();
|
|
1848
|
+
message.minCommissionRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1848
1849
|
break;
|
|
1849
1850
|
default:
|
|
1850
1851
|
reader.skipType(tag & 7);
|
|
@@ -1892,7 +1893,7 @@ export const Params = {
|
|
|
1892
1893
|
obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries;
|
|
1893
1894
|
obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries;
|
|
1894
1895
|
obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom;
|
|
1895
|
-
obj.min_commission_rate = message.minCommissionRate ?? "";
|
|
1896
|
+
obj.min_commission_rate = Decimal.fromUserInput(message.minCommissionRate, 18).atomics ?? "";
|
|
1896
1897
|
return obj;
|
|
1897
1898
|
},
|
|
1898
1899
|
fromAminoMsg(object) {
|
|
@@ -6,6 +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 "@interchainjs/math";
|
|
9
10
|
function createBaseMsgCreateValidator() {
|
|
10
11
|
return {
|
|
11
12
|
description: Description.fromPartial({}),
|
|
@@ -246,7 +247,7 @@ export const MsgEditValidator = {
|
|
|
246
247
|
writer.uint32(18).string(message.validatorAddress);
|
|
247
248
|
}
|
|
248
249
|
if (message.commissionRate !== "") {
|
|
249
|
-
writer.uint32(26).string(message.commissionRate);
|
|
250
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics);
|
|
250
251
|
}
|
|
251
252
|
if (message.minSelfDelegation !== "") {
|
|
252
253
|
writer.uint32(34).string(message.minSelfDelegation);
|
|
@@ -267,7 +268,7 @@ export const MsgEditValidator = {
|
|
|
267
268
|
message.validatorAddress = reader.string();
|
|
268
269
|
break;
|
|
269
270
|
case 3:
|
|
270
|
-
message.commissionRate = reader.string();
|
|
271
|
+
message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
271
272
|
break;
|
|
272
273
|
case 4:
|
|
273
274
|
message.minSelfDelegation = reader.string();
|
|
@@ -307,7 +308,7 @@ export const MsgEditValidator = {
|
|
|
307
308
|
const obj = {};
|
|
308
309
|
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
309
310
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
310
|
-
obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate;
|
|
311
|
+
obj.commission_rate = message.commissionRate === "" ? undefined : Decimal.fromUserInput(message.commissionRate, 18).atomics;
|
|
311
312
|
obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation;
|
|
312
313
|
return obj;
|
|
313
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,5 +1,6 @@
|
|
|
1
1
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
3
4
|
function createBaseParams() {
|
|
4
5
|
return {
|
|
5
6
|
auctionPeriod: BigInt(0),
|
|
@@ -20,7 +21,7 @@ export const Params = {
|
|
|
20
21
|
writer.uint32(8).int64(message.auctionPeriod);
|
|
21
22
|
}
|
|
22
23
|
if (message.minNextBidIncrementRate !== "") {
|
|
23
|
-
writer.uint32(18).string(message.minNextBidIncrementRate);
|
|
24
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.minNextBidIncrementRate, 18).atomics);
|
|
24
25
|
}
|
|
25
26
|
return writer;
|
|
26
27
|
},
|
|
@@ -35,7 +36,7 @@ export const Params = {
|
|
|
35
36
|
message.auctionPeriod = reader.int64();
|
|
36
37
|
break;
|
|
37
38
|
case 2:
|
|
38
|
-
message.minNextBidIncrementRate = reader.string();
|
|
39
|
+
message.minNextBidIncrementRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
39
40
|
break;
|
|
40
41
|
default:
|
|
41
42
|
reader.skipType(tag & 7);
|
|
@@ -63,7 +64,7 @@ export const Params = {
|
|
|
63
64
|
toAmino(message) {
|
|
64
65
|
const obj = {};
|
|
65
66
|
obj.auction_period = message.auctionPeriod !== BigInt(0) ? message.auctionPeriod?.toString() : undefined;
|
|
66
|
-
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;
|
|
67
68
|
return obj;
|
|
68
69
|
},
|
|
69
70
|
fromAminoMsg(object) {
|