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.
Files changed (84) hide show
  1. package/binary.d.ts +1 -1
  2. package/binary.js +1 -1
  3. package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +3 -3
  4. package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +4 -4
  5. package/cosmos/base/v1beta1/coin.js +7 -6
  6. package/cosmos/distribution/v1beta1/distribution.js +16 -15
  7. package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +7 -7
  8. package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +3 -3
  9. package/cosmos/gov/v1/tx.rpc.func.d.ts +7 -7
  10. package/cosmos/gov/v1beta1/gov.js +4 -3
  11. package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +4 -4
  12. package/cosmos/group/v1/tx.rpc.func.d.ts +14 -14
  13. package/cosmos/staking/v1beta1/staking.js +22 -21
  14. package/cosmos/staking/v1beta1/tx.js +4 -3
  15. package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +7 -7
  16. package/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +3 -3
  17. package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +17 -17
  18. package/esm/binary.js +1 -1
  19. package/esm/cosmos/base/v1beta1/coin.js +7 -6
  20. package/esm/cosmos/distribution/v1beta1/distribution.js +16 -15
  21. package/esm/cosmos/gov/v1beta1/gov.js +4 -3
  22. package/esm/cosmos/staking/v1beta1/staking.js +22 -21
  23. package/esm/cosmos/staking/v1beta1/tx.js +4 -3
  24. package/esm/extern.js +1 -1
  25. package/esm/helper-func-types.js +1 -1
  26. package/esm/helpers.js +1 -1
  27. package/esm/injective/auction/v1beta1/auction.js +4 -3
  28. package/esm/injective/exchange/v1beta1/events.js +19 -18
  29. package/esm/injective/exchange/v1beta1/exchange.js +274 -273
  30. package/esm/injective/exchange/v1beta1/genesis.js +7 -6
  31. package/esm/injective/exchange/v1beta1/proposal.js +148 -147
  32. package/esm/injective/exchange/v1beta1/query.js +133 -132
  33. package/esm/injective/exchange/v1beta1/tx.js +121 -120
  34. package/esm/injective/ocr/v1beta1/ocr.js +25 -24
  35. package/esm/injective/oracle/v1beta1/events.js +19 -18
  36. package/esm/injective/oracle/v1beta1/oracle.js +46 -45
  37. package/esm/injective/oracle/v1beta1/query.js +19 -18
  38. package/esm/injective/oracle/v1beta1/tx.js +7 -6
  39. package/esm/injective/stream/v1beta1/query.js +31 -30
  40. package/esm/registry.js +1 -1
  41. package/esm/types.js +1 -1
  42. package/esm/utf8.js +1 -1
  43. package/esm/varint.js +1 -1
  44. package/extern.d.ts +1 -1
  45. package/extern.js +1 -1
  46. package/helper-func-types.d.ts +3 -66
  47. package/helper-func-types.js +1 -1
  48. package/helpers.d.ts +1 -1
  49. package/helpers.js +1 -1
  50. package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +2 -2
  51. package/ibc/core/channel/v1/tx.rpc.func.d.ts +19 -19
  52. package/ibc/core/client/v1/tx.rpc.func.d.ts +7 -7
  53. package/ibc/core/connection/v1/tx.rpc.func.d.ts +5 -5
  54. package/injective/auction/v1beta1/auction.js +4 -3
  55. package/injective/auction/v1beta1/tx.rpc.func.d.ts +2 -2
  56. package/injective/exchange/v1beta1/events.js +19 -18
  57. package/injective/exchange/v1beta1/exchange.js +274 -273
  58. package/injective/exchange/v1beta1/genesis.js +7 -6
  59. package/injective/exchange/v1beta1/proposal.js +148 -147
  60. package/injective/exchange/v1beta1/query.js +133 -132
  61. package/injective/exchange/v1beta1/tx.js +121 -120
  62. package/injective/exchange/v1beta1/tx.rpc.func.d.ts +35 -35
  63. package/injective/insurance/v1beta1/tx.rpc.func.d.ts +4 -4
  64. package/injective/ocr/v1beta1/ocr.js +25 -24
  65. package/injective/ocr/v1beta1/tx.rpc.func.d.ts +9 -9
  66. package/injective/oracle/v1beta1/events.js +19 -18
  67. package/injective/oracle/v1beta1/oracle.js +46 -45
  68. package/injective/oracle/v1beta1/query.js +19 -18
  69. package/injective/oracle/v1beta1/tx.js +7 -6
  70. package/injective/oracle/v1beta1/tx.rpc.func.d.ts +8 -8
  71. package/injective/peggy/v1/msgs.rpc.func.d.ts +14 -14
  72. package/injective/permissions/v1beta1/tx.rpc.func.d.ts +7 -7
  73. package/injective/stream/v1beta1/query.js +31 -30
  74. package/injective/tokenfactory/v1beta1/tx.rpc.func.d.ts +6 -6
  75. package/injective/wasmx/v1/tx.rpc.func.d.ts +6 -6
  76. package/package.json +8 -8
  77. package/registry.d.ts +1 -1
  78. package/registry.js +1 -1
  79. package/types.d.ts +1 -1
  80. package/types.js +1 -1
  81. package/utf8.d.ts +1 -1
  82. package/utf8.js +1 -1
  83. package/varint.d.ts +1 -1
  84. package/varint.js +1 -1
package/binary.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.20
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/binary.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.20
3
+ * This file and any referenced files were automatically generated by @cosmology/telescope@1.11.25
4
4
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
5
5
  * and run the transpile command or npm scripts command that is used to regenerate this bundle.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgGrant, MsgExec, MsgRevoke } from "./tx";
3
- export declare const createGrant: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgGrant | MsgGrant[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createExec: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExec | MsgExec[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createRevoke: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRevoke | MsgRevoke[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createGrant: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgGrant | MsgGrant[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createExec: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExec | MsgExec[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createRevoke: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRevoke | MsgRevoke[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -1,6 +1,6 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgSend, MsgMultiSend, MsgUpdateParams, MsgSetSendEnabled } from "./tx";
3
- export declare const createSend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSend | MsgSend[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createMultiSend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgMultiSend | MsgMultiSend[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createSetSendEnabled: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSetSendEnabled | MsgSetSendEnabled[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createSend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSend | MsgSend[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createMultiSend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgMultiSend | MsgMultiSend[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createSetSendEnabled: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSetSendEnabled | MsgSetSendEnabled[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DecProto = exports.IntProto = exports.DecCoin = exports.Coin = void 0;
4
4
  const binary_1 = require("../../../binary");
5
+ const math_1 = require("@interchainjs/math");
5
6
  function createBaseCoin() {
6
7
  return {
7
8
  denom: "",
@@ -111,7 +112,7 @@ exports.DecCoin = {
111
112
  writer.uint32(10).string(message.denom);
112
113
  }
113
114
  if (message.amount !== "") {
114
- writer.uint32(18).string(message.amount);
115
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.amount, 18).atomics);
115
116
  }
116
117
  return writer;
117
118
  },
@@ -126,7 +127,7 @@ exports.DecCoin = {
126
127
  message.denom = reader.string();
127
128
  break;
128
129
  case 2:
129
- message.amount = reader.string();
130
+ message.amount = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
130
131
  break;
131
132
  default:
132
133
  reader.skipType(tag & 7);
@@ -154,7 +155,7 @@ exports.DecCoin = {
154
155
  toAmino(message) {
155
156
  const obj = {};
156
157
  obj.denom = message.denom === "" ? undefined : message.denom;
157
- obj.amount = message.amount === "" ? undefined : message.amount;
158
+ obj.amount = message.amount === "" ? undefined : math_1.Decimal.fromUserInput(message.amount, 18).atomics;
158
159
  return obj;
159
160
  },
160
161
  fromAminoMsg(object) {
@@ -273,7 +274,7 @@ exports.DecProto = {
273
274
  },
274
275
  encode(message, writer = binary_1.BinaryWriter.create()) {
275
276
  if (message.dec !== "") {
276
- writer.uint32(10).string(message.dec);
277
+ writer.uint32(10).string(math_1.Decimal.fromUserInput(message.dec, 18).atomics);
277
278
  }
278
279
  return writer;
279
280
  },
@@ -285,7 +286,7 @@ exports.DecProto = {
285
286
  const tag = reader.uint32();
286
287
  switch (tag >>> 3) {
287
288
  case 1:
288
- message.dec = reader.string();
289
+ message.dec = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
289
290
  break;
290
291
  default:
291
292
  reader.skipType(tag & 7);
@@ -308,7 +309,7 @@ exports.DecProto = {
308
309
  },
309
310
  toAmino(message) {
310
311
  const obj = {};
311
- obj.dec = message.dec === "" ? undefined : message.dec;
312
+ obj.dec = message.dec === "" ? undefined : math_1.Decimal.fromUserInput(message.dec, 18).atomics;
312
313
  return obj;
313
314
  },
314
315
  fromAminoMsg(object) {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorReward = exports.DelegatorStartingInfo = exports.CommunityPoolSpendProposal = exports.FeePool = exports.ValidatorSlashEvents = exports.ValidatorSlashEvent = exports.ValidatorOutstandingRewards = exports.ValidatorAccumulatedCommission = exports.ValidatorCurrentRewards = exports.ValidatorHistoricalRewards = exports.Params = void 0;
4
4
  const coin_1 = require("../../base/v1beta1/coin");
5
5
  const binary_1 = require("../../../binary");
6
+ const math_1 = require("@interchainjs/math");
6
7
  const registry_1 = require("../../../registry");
7
8
  function createBaseParams() {
8
9
  return {
@@ -23,13 +24,13 @@ exports.Params = {
23
24
  },
24
25
  encode(message, writer = binary_1.BinaryWriter.create()) {
25
26
  if (message.communityTax !== "") {
26
- writer.uint32(10).string(message.communityTax);
27
+ writer.uint32(10).string(math_1.Decimal.fromUserInput(message.communityTax, 18).atomics);
27
28
  }
28
29
  if (message.baseProposerReward !== "") {
29
- writer.uint32(18).string(message.baseProposerReward);
30
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.baseProposerReward, 18).atomics);
30
31
  }
31
32
  if (message.bonusProposerReward !== "") {
32
- writer.uint32(26).string(message.bonusProposerReward);
33
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.bonusProposerReward, 18).atomics);
33
34
  }
34
35
  if (message.withdrawAddrEnabled === true) {
35
36
  writer.uint32(32).bool(message.withdrawAddrEnabled);
@@ -44,13 +45,13 @@ exports.Params = {
44
45
  const tag = reader.uint32();
45
46
  switch (tag >>> 3) {
46
47
  case 1:
47
- message.communityTax = reader.string();
48
+ message.communityTax = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
48
49
  break;
49
50
  case 2:
50
- message.baseProposerReward = reader.string();
51
+ message.baseProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
51
52
  break;
52
53
  case 3:
53
- message.bonusProposerReward = reader.string();
54
+ message.bonusProposerReward = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
54
55
  break;
55
56
  case 4:
56
57
  message.withdrawAddrEnabled = reader.bool();
@@ -88,9 +89,9 @@ exports.Params = {
88
89
  },
89
90
  toAmino(message) {
90
91
  const obj = {};
91
- obj.community_tax = message.communityTax ?? "";
92
- obj.base_proposer_reward = message.baseProposerReward ?? "";
93
- obj.bonus_proposer_reward = message.bonusProposerReward ?? "";
92
+ obj.community_tax = math_1.Decimal.fromUserInput(message.communityTax, 18).atomics ?? "";
93
+ obj.base_proposer_reward = math_1.Decimal.fromUserInput(message.baseProposerReward, 18).atomics ?? "";
94
+ obj.bonus_proposer_reward = math_1.Decimal.fromUserInput(message.bonusProposerReward, 18).atomics ?? "";
94
95
  obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled;
95
96
  return obj;
96
97
  },
@@ -489,7 +490,7 @@ exports.ValidatorSlashEvent = {
489
490
  writer.uint32(8).uint64(message.validatorPeriod);
490
491
  }
491
492
  if (message.fraction !== "") {
492
- writer.uint32(18).string(message.fraction);
493
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.fraction, 18).atomics);
493
494
  }
494
495
  return writer;
495
496
  },
@@ -504,7 +505,7 @@ exports.ValidatorSlashEvent = {
504
505
  message.validatorPeriod = reader.uint64();
505
506
  break;
506
507
  case 2:
507
- message.fraction = reader.string();
508
+ message.fraction = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
508
509
  break;
509
510
  default:
510
511
  reader.skipType(tag & 7);
@@ -532,7 +533,7 @@ exports.ValidatorSlashEvent = {
532
533
  toAmino(message) {
533
534
  const obj = {};
534
535
  obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod?.toString() : undefined;
535
- obj.fraction = message.fraction === "" ? undefined : message.fraction;
536
+ obj.fraction = message.fraction === "" ? undefined : math_1.Decimal.fromUserInput(message.fraction, 18).atomics;
536
537
  return obj;
537
538
  },
538
539
  fromAminoMsg(object) {
@@ -863,7 +864,7 @@ exports.DelegatorStartingInfo = {
863
864
  writer.uint32(8).uint64(message.previousPeriod);
864
865
  }
865
866
  if (message.stake !== "") {
866
- writer.uint32(18).string(message.stake);
867
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.stake, 18).atomics);
867
868
  }
868
869
  if (message.height !== BigInt(0)) {
869
870
  writer.uint32(24).uint64(message.height);
@@ -881,7 +882,7 @@ exports.DelegatorStartingInfo = {
881
882
  message.previousPeriod = reader.uint64();
882
883
  break;
883
884
  case 2:
884
- message.stake = reader.string();
885
+ message.stake = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
885
886
  break;
886
887
  case 3:
887
888
  message.height = reader.uint64();
@@ -916,7 +917,7 @@ exports.DelegatorStartingInfo = {
916
917
  toAmino(message) {
917
918
  const obj = {};
918
919
  obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod?.toString() : undefined;
919
- obj.stake = message.stake ?? "";
920
+ obj.stake = math_1.Decimal.fromUserInput(message.stake, 18).atomics ?? "";
920
921
  obj.height = message.height ? message.height?.toString() : "0";
921
922
  return obj;
922
923
  },
@@ -1,9 +1,9 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgUpdateParams, MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool } from "./tx";
3
- export declare const createSetWithdrawAddress: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSetWithdrawAddress | MsgSetWithdrawAddress[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createWithdrawDelegatorReward: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawDelegatorReward | MsgWithdrawDelegatorReward[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createWithdrawValidatorCommission: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawValidatorCommission | MsgWithdrawValidatorCommission[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createFundCommunityPool: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgFundCommunityPool | MsgFundCommunityPool[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
7
- export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
8
- export declare const createCommunityPoolSpend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCommunityPoolSpend | MsgCommunityPoolSpend[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
9
- export declare const createDepositValidatorRewardsPool: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDepositValidatorRewardsPool | MsgDepositValidatorRewardsPool[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createSetWithdrawAddress: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSetWithdrawAddress | MsgSetWithdrawAddress[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createWithdrawDelegatorReward: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawDelegatorReward | MsgWithdrawDelegatorReward[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createWithdrawValidatorCommission: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawValidatorCommission | MsgWithdrawValidatorCommission[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createFundCommunityPool: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgFundCommunityPool | MsgFundCommunityPool[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
7
+ export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
8
+ export declare const createCommunityPoolSpend: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCommunityPoolSpend | MsgCommunityPoolSpend[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
9
+ export declare const createDepositValidatorRewardsPool: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDepositValidatorRewardsPool | MsgDepositValidatorRewardsPool[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -1,5 +1,5 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgGrantAllowance, MsgRevokeAllowance, MsgPruneAllowances } from "./tx";
3
- export declare const createGrantAllowance: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgGrantAllowance | MsgGrantAllowance[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createRevokeAllowance: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRevokeAllowance | MsgRevokeAllowance[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createPruneAllowances: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgPruneAllowances | MsgPruneAllowances[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createGrantAllowance: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgGrantAllowance | MsgGrantAllowance[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createRevokeAllowance: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgRevokeAllowance | MsgRevokeAllowance[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createPruneAllowances: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgPruneAllowances | MsgPruneAllowances[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -1,9 +1,9 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit, MsgUpdateParams, MsgCancelProposal } from "./tx";
3
- export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createExecLegacyContent: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExecLegacyContent | MsgExecLegacyContent[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createVoteWeighted: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVoteWeighted | MsgVoteWeighted[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
7
- export declare const createDeposit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDeposit | MsgDeposit[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
8
- export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
9
- export declare const createCancelProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCancelProposal | MsgCancelProposal[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createExecLegacyContent: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExecLegacyContent | MsgExecLegacyContent[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createVoteWeighted: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVoteWeighted | MsgVoteWeighted[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
7
+ export declare const createDeposit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDeposit | MsgDeposit[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
8
+ export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
9
+ export declare const createCancelProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCancelProposal | MsgCancelProposal[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -19,6 +19,7 @@ const proposal_3 = require("../../../injective/peggy/v1/proposal");
19
19
  const proposal_4 = require("../../../injective/wasmx/v1/proposal");
20
20
  const helpers_1 = require("../../../helpers");
21
21
  const binary_1 = require("../../../binary");
22
+ const math_1 = require("@interchainjs/math");
22
23
  const registry_1 = require("../../../registry");
23
24
  /** VoteOption enumerates the valid vote options for a given governance proposal. */
24
25
  var VoteOption;
@@ -174,7 +175,7 @@ exports.WeightedVoteOption = {
174
175
  writer.uint32(8).int32(message.option);
175
176
  }
176
177
  if (message.weight !== "") {
177
- writer.uint32(18).string(message.weight);
178
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.weight, 18).atomics);
178
179
  }
179
180
  return writer;
180
181
  },
@@ -189,7 +190,7 @@ exports.WeightedVoteOption = {
189
190
  message.option = reader.int32();
190
191
  break;
191
192
  case 2:
192
- message.weight = reader.string();
193
+ message.weight = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
193
194
  break;
194
195
  default:
195
196
  reader.skipType(tag & 7);
@@ -217,7 +218,7 @@ exports.WeightedVoteOption = {
217
218
  toAmino(message) {
218
219
  const obj = {};
219
220
  obj.option = message.option === 0 ? undefined : message.option;
220
- obj.weight = message.weight ?? "";
221
+ obj.weight = math_1.Decimal.fromUserInput(message.weight, 18).atomics ?? "";
221
222
  return obj;
222
223
  },
223
224
  fromAminoMsg(object) {
@@ -1,6 +1,6 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx";
3
- export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createVoteWeighted: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVoteWeighted | MsgVoteWeighted[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createDeposit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDeposit | MsgDeposit[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createVoteWeighted: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVoteWeighted | MsgVoteWeighted[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createDeposit: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDeposit | MsgDeposit[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -1,16 +1,16 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx";
3
- export declare const createCreateGroup: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroup | MsgCreateGroup[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createUpdateGroupMembers: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupMembers | MsgUpdateGroupMembers[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createUpdateGroupAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupAdmin | MsgUpdateGroupAdmin[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createUpdateGroupMetadata: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupMetadata | MsgUpdateGroupMetadata[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
7
- export declare const createCreateGroupPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroupPolicy | MsgCreateGroupPolicy[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
8
- export declare const createCreateGroupWithPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroupWithPolicy | MsgCreateGroupWithPolicy[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
9
- export declare const createUpdateGroupPolicyAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyAdmin | MsgUpdateGroupPolicyAdmin[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
10
- export declare const createUpdateGroupPolicyDecisionPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyDecisionPolicy | MsgUpdateGroupPolicyDecisionPolicy[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
11
- export declare const createUpdateGroupPolicyMetadata: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyMetadata | MsgUpdateGroupPolicyMetadata[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
12
- export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
13
- export declare const createWithdrawProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawProposal | MsgWithdrawProposal[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
14
- export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
15
- export declare const createExec: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExec | MsgExec[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
16
- export declare const createLeaveGroup: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgLeaveGroup | MsgLeaveGroup[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createCreateGroup: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroup | MsgCreateGroup[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createUpdateGroupMembers: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupMembers | MsgUpdateGroupMembers[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createUpdateGroupAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupAdmin | MsgUpdateGroupAdmin[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createUpdateGroupMetadata: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupMetadata | MsgUpdateGroupMetadata[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
7
+ export declare const createCreateGroupPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroupPolicy | MsgCreateGroupPolicy[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
8
+ export declare const createCreateGroupWithPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateGroupWithPolicy | MsgCreateGroupWithPolicy[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
9
+ export declare const createUpdateGroupPolicyAdmin: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyAdmin | MsgUpdateGroupPolicyAdmin[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
10
+ export declare const createUpdateGroupPolicyDecisionPolicy: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyDecisionPolicy | MsgUpdateGroupPolicyDecisionPolicy[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
11
+ export declare const createUpdateGroupPolicyMetadata: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateGroupPolicyMetadata | MsgUpdateGroupPolicyMetadata[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
12
+ export declare const createSubmitProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgSubmitProposal | MsgSubmitProposal[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
13
+ export declare const createWithdrawProposal: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgWithdrawProposal | MsgWithdrawProposal[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
14
+ export declare const createVote: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgVote | MsgVote[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
15
+ export declare const createExec: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgExec | MsgExec[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
16
+ export declare const createLeaveGroup: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgLeaveGroup | MsgLeaveGroup[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -14,6 +14,7 @@ const types_2 = require("../../../tendermint/abci/types");
14
14
  const binary_1 = require("../../../binary");
15
15
  const registry_1 = require("../../../registry");
16
16
  const helpers_1 = require("../../../helpers");
17
+ const math_1 = require("@interchainjs/math");
17
18
  const pubkey_1 = require("@interchainjs/pubkey");
18
19
  /** BondStatus is the status of a validator. */
19
20
  var BondStatus;
@@ -219,13 +220,13 @@ exports.CommissionRates = {
219
220
  },
220
221
  encode(message, writer = binary_1.BinaryWriter.create()) {
221
222
  if (message.rate !== "") {
222
- writer.uint32(10).string(message.rate);
223
+ writer.uint32(10).string(math_1.Decimal.fromUserInput(message.rate, 18).atomics);
223
224
  }
224
225
  if (message.maxRate !== "") {
225
- writer.uint32(18).string(message.maxRate);
226
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.maxRate, 18).atomics);
226
227
  }
227
228
  if (message.maxChangeRate !== "") {
228
- writer.uint32(26).string(message.maxChangeRate);
229
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.maxChangeRate, 18).atomics);
229
230
  }
230
231
  return writer;
231
232
  },
@@ -237,13 +238,13 @@ exports.CommissionRates = {
237
238
  const tag = reader.uint32();
238
239
  switch (tag >>> 3) {
239
240
  case 1:
240
- message.rate = reader.string();
241
+ message.rate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
241
242
  break;
242
243
  case 2:
243
- message.maxRate = reader.string();
244
+ message.maxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
244
245
  break;
245
246
  case 3:
246
- message.maxChangeRate = reader.string();
247
+ message.maxChangeRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
247
248
  break;
248
249
  default:
249
250
  reader.skipType(tag & 7);
@@ -274,9 +275,9 @@ exports.CommissionRates = {
274
275
  },
275
276
  toAmino(message) {
276
277
  const obj = {};
277
- obj.rate = message.rate ?? "";
278
- obj.max_rate = message.maxRate ?? "";
279
- obj.max_change_rate = message.maxChangeRate ?? "";
278
+ obj.rate = math_1.Decimal.fromUserInput(message.rate, 18).atomics ?? "";
279
+ obj.max_rate = math_1.Decimal.fromUserInput(message.maxRate, 18).atomics ?? "";
280
+ obj.max_change_rate = math_1.Decimal.fromUserInput(message.maxChangeRate, 18).atomics ?? "";
280
281
  return obj;
281
282
  },
282
283
  fromAminoMsg(object) {
@@ -561,7 +562,7 @@ exports.Validator = {
561
562
  writer.uint32(42).string(message.tokens);
562
563
  }
563
564
  if (message.delegatorShares !== "") {
564
- writer.uint32(50).string(message.delegatorShares);
565
+ writer.uint32(50).string(math_1.Decimal.fromUserInput(message.delegatorShares, 18).atomics);
565
566
  }
566
567
  if (message.description !== undefined) {
567
568
  exports.Description.encode(message.description, writer.uint32(58).fork()).ldelim();
@@ -611,7 +612,7 @@ exports.Validator = {
611
612
  message.tokens = reader.string();
612
613
  break;
613
614
  case 6:
614
- message.delegatorShares = reader.string();
615
+ message.delegatorShares = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
615
616
  break;
616
617
  case 7:
617
618
  message.description = exports.Description.decode(reader, reader.uint32());
@@ -714,7 +715,7 @@ exports.Validator = {
714
715
  obj.jailed = message.jailed === false ? undefined : message.jailed;
715
716
  obj.status = message.status === 0 ? undefined : message.status;
716
717
  obj.tokens = message.tokens === "" ? undefined : message.tokens;
717
- obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares;
718
+ obj.delegator_shares = message.delegatorShares === "" ? undefined : math_1.Decimal.fromUserInput(message.delegatorShares, 18).atomics;
718
719
  obj.description = message.description ? exports.Description.toAmino(message.description) : exports.Description.toAmino(exports.Description.fromPartial({}));
719
720
  obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight?.toString() : undefined;
720
721
  obj.unbonding_time = message.unbondingTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.unbondingTime)) : new Date();
@@ -1213,7 +1214,7 @@ exports.Delegation = {
1213
1214
  writer.uint32(18).string(message.validatorAddress);
1214
1215
  }
1215
1216
  if (message.shares !== "") {
1216
- writer.uint32(26).string(message.shares);
1217
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.shares, 18).atomics);
1217
1218
  }
1218
1219
  return writer;
1219
1220
  },
@@ -1231,7 +1232,7 @@ exports.Delegation = {
1231
1232
  message.validatorAddress = reader.string();
1232
1233
  break;
1233
1234
  case 3:
1234
- message.shares = reader.string();
1235
+ message.shares = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1235
1236
  break;
1236
1237
  default:
1237
1238
  reader.skipType(tag & 7);
@@ -1264,7 +1265,7 @@ exports.Delegation = {
1264
1265
  const obj = {};
1265
1266
  obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
1266
1267
  obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
1267
- obj.shares = message.shares === "" ? undefined : message.shares;
1268
+ obj.shares = message.shares === "" ? undefined : math_1.Decimal.fromUserInput(message.shares, 18).atomics;
1268
1269
  return obj;
1269
1270
  },
1270
1271
  fromAminoMsg(object) {
@@ -1563,7 +1564,7 @@ exports.RedelegationEntry = {
1563
1564
  writer.uint32(26).string(message.initialBalance);
1564
1565
  }
1565
1566
  if (message.sharesDst !== "") {
1566
- writer.uint32(34).string(message.sharesDst);
1567
+ writer.uint32(34).string(math_1.Decimal.fromUserInput(message.sharesDst, 18).atomics);
1567
1568
  }
1568
1569
  if (message.unbondingId !== BigInt(0)) {
1569
1570
  writer.uint32(40).uint64(message.unbondingId);
@@ -1590,7 +1591,7 @@ exports.RedelegationEntry = {
1590
1591
  message.initialBalance = reader.string();
1591
1592
  break;
1592
1593
  case 4:
1593
- message.sharesDst = reader.string();
1594
+ message.sharesDst = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1594
1595
  break;
1595
1596
  case 5:
1596
1597
  message.unbondingId = reader.uint64();
@@ -1642,7 +1643,7 @@ exports.RedelegationEntry = {
1642
1643
  obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
1643
1644
  obj.completion_time = message.completionTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.completionTime)) : new Date();
1644
1645
  obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance;
1645
- obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst;
1646
+ obj.shares_dst = message.sharesDst === "" ? undefined : math_1.Decimal.fromUserInput(message.sharesDst, 18).atomics;
1646
1647
  obj.unbonding_id = message.unbondingId !== BigInt(0) ? message.unbondingId?.toString() : undefined;
1647
1648
  obj.unbonding_on_hold_ref_count = message.unbondingOnHoldRefCount !== BigInt(0) ? message.unbondingOnHoldRefCount?.toString() : undefined;
1648
1649
  return obj;
@@ -1824,7 +1825,7 @@ exports.Params = {
1824
1825
  writer.uint32(42).string(message.bondDenom);
1825
1826
  }
1826
1827
  if (message.minCommissionRate !== "") {
1827
- writer.uint32(50).string(message.minCommissionRate);
1828
+ writer.uint32(50).string(math_1.Decimal.fromUserInput(message.minCommissionRate, 18).atomics);
1828
1829
  }
1829
1830
  return writer;
1830
1831
  },
@@ -1851,7 +1852,7 @@ exports.Params = {
1851
1852
  message.bondDenom = reader.string();
1852
1853
  break;
1853
1854
  case 6:
1854
- message.minCommissionRate = reader.string();
1855
+ message.minCommissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1855
1856
  break;
1856
1857
  default:
1857
1858
  reader.skipType(tag & 7);
@@ -1899,7 +1900,7 @@ exports.Params = {
1899
1900
  obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries;
1900
1901
  obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries;
1901
1902
  obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom;
1902
- obj.min_commission_rate = message.minCommissionRate ?? "";
1903
+ obj.min_commission_rate = math_1.Decimal.fromUserInput(message.minCommissionRate, 18).atomics ?? "";
1903
1904
  return obj;
1904
1905
  },
1905
1906
  fromAminoMsg(object) {
@@ -9,6 +9,7 @@ const binary_1 = require("../../../binary");
9
9
  const registry_1 = require("../../../registry");
10
10
  const helpers_1 = require("../../../helpers");
11
11
  const pubkey_1 = require("@interchainjs/pubkey");
12
+ const math_1 = require("@interchainjs/math");
12
13
  function createBaseMsgCreateValidator() {
13
14
  return {
14
15
  description: staking_1.Description.fromPartial({}),
@@ -249,7 +250,7 @@ exports.MsgEditValidator = {
249
250
  writer.uint32(18).string(message.validatorAddress);
250
251
  }
251
252
  if (message.commissionRate !== "") {
252
- writer.uint32(26).string(message.commissionRate);
253
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.commissionRate, 18).atomics);
253
254
  }
254
255
  if (message.minSelfDelegation !== "") {
255
256
  writer.uint32(34).string(message.minSelfDelegation);
@@ -270,7 +271,7 @@ exports.MsgEditValidator = {
270
271
  message.validatorAddress = reader.string();
271
272
  break;
272
273
  case 3:
273
- message.commissionRate = reader.string();
274
+ message.commissionRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
274
275
  break;
275
276
  case 4:
276
277
  message.minSelfDelegation = reader.string();
@@ -310,7 +311,7 @@ exports.MsgEditValidator = {
310
311
  const obj = {};
311
312
  obj.description = message.description ? staking_1.Description.toAmino(message.description) : staking_1.Description.toAmino(staking_1.Description.fromPartial({}));
312
313
  obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
313
- obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate;
314
+ obj.commission_rate = message.commissionRate === "" ? undefined : math_1.Decimal.fromUserInput(message.commissionRate, 18).atomics;
314
315
  obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation;
315
316
  return obj;
316
317
  },
@@ -1,9 +1,9 @@
1
1
  import { SigningClientResolver } from "../../../helper-func-types";
2
2
  import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx";
3
- export declare const createCreateValidator: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateValidator | MsgCreateValidator[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createEditValidator: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgEditValidator | MsgEditValidator[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createDelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDelegate | MsgDelegate[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
6
- export declare const createBeginRedelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgBeginRedelegate | MsgBeginRedelegate[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
7
- export declare const createUndelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUndelegate | MsgUndelegate[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
8
- export declare const createCancelUnbondingDelegation: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCancelUnbondingDelegation | MsgCancelUnbondingDelegation[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
9
- export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
3
+ export declare const createCreateValidator: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreateValidator | MsgCreateValidator[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
4
+ export declare const createEditValidator: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgEditValidator | MsgEditValidator[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
5
+ export declare const createDelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgDelegate | MsgDelegate[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
6
+ export declare const createBeginRedelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgBeginRedelegate | MsgBeginRedelegate[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
7
+ export declare const createUndelegate: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUndelegate | MsgUndelegate[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
8
+ export declare const createCancelUnbondingDelegation: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCancelUnbondingDelegation | MsgCancelUnbondingDelegation[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
9
+ export declare const createUpdateParams: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../../types").StdFee | "auto", memo: string) => Promise<import("../../../types").DeliverTxResponse>;
@@ -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("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
4
- export declare const createCreatePermanentLockedAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePermanentLockedAccount | MsgCreatePermanentLockedAccount[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
5
- export declare const createCreatePeriodicVestingAccount: (clientResolver?: SigningClientResolver) => (signerAddress: string, message: MsgCreatePeriodicVestingAccount | MsgCreatePeriodicVestingAccount[], fee: import("../../../helper-func-types").StdFee | "auto", memo: string) => Promise<import("../../../helper-func-types").DeliverTxResponse>;
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>;