@injectivelabs/sdk-ts 1.17.6 → 1.17.8

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 (81) hide show
  1. package/dist/cjs/{AbacusGrpcApi-QbGB8ZMB.cjs → AbacusGrpcApi-Da2mxc3z.cjs} +2 -2
  2. package/dist/cjs/{BaseGrpcConsumer-Db3sCC6b.cjs → BaseGrpcConsumer-B1hpRQJ-.cjs} +1 -1
  3. package/dist/cjs/{BaseIndexerGrpcConsumer-BBXxg_BR.cjs → BaseIndexerGrpcConsumer-rRYRp48i.cjs} +1 -1
  4. package/dist/cjs/{ChainGrpcExchangeApi-Xtflr7xp.cjs → ChainGrpcExchangeApi-5On5kown.cjs} +3 -3
  5. package/dist/cjs/{ChainRestTendermintApi-CyeoAmer.cjs → ChainRestTendermintApi-DILpgVDN.cjs} +2 -2
  6. package/dist/cjs/{DirectEthSecp256k1Wallet-BiAOoEd6.cjs → DirectEthSecp256k1Wallet-Bz_TABf8.cjs} +2 -2
  7. package/dist/cjs/{ExecArgNeptuneWithdraw-4esQ6Su-.cjs → ExecArgNeptuneWithdraw-TyUvdHsN.cjs} +2 -2
  8. package/dist/cjs/{IndexerGrpcWeb3GwApi-BxJoq1-k.cjs → IndexerGrpcWeb3GwApi-wpbu-sy0.cjs} +2 -2
  9. package/dist/cjs/{MsgBase-D_1CCpXQ.cjs → MsgBase-DknjeeDb.cjs} +1 -1
  10. package/dist/cjs/{MsgSetDenomMetadata-DzYvKtNj.cjs → MsgSetDenomMetadata-MOKVZiSF.cjs} +39 -8
  11. package/dist/cjs/{OLPGrpcApi-CoVqLaSC.cjs → OLPGrpcApi-DYU9vRNO.cjs} +2 -2
  12. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-DPrIH5Jb.cjs → QueryTradingStrategyContractTotalStrategies-CDeAJmZj.cjs} +3 -3
  13. package/dist/cjs/{StreamManagerV2-Dvfpwi5Z.cjs → StreamManagerV2-ocvGmGvp.cjs} +1034 -4
  14. package/dist/cjs/{accounts-HFzAaFRB.cjs → accounts-BPCUUwFm.cjs} +2 -2
  15. package/dist/cjs/{chain-CPs0kwL0.cjs → chain-DmIDW_8V.cjs} +3 -3
  16. package/dist/cjs/client/abacus.cjs +3 -3
  17. package/dist/cjs/client/chain.cjs +5 -5
  18. package/dist/cjs/client/chain.d.cts +2 -2
  19. package/dist/cjs/client/indexer.cjs +17 -5
  20. package/dist/cjs/client/indexer.d.cts +3 -3
  21. package/dist/cjs/client/olp.cjs +4 -4
  22. package/dist/cjs/client/wasm.cjs +8 -8
  23. package/dist/cjs/client/wasm.d.cts +1 -1
  24. package/dist/cjs/core/accounts.cjs +3 -3
  25. package/dist/cjs/core/accounts.d.cts +2 -2
  26. package/dist/cjs/core/modules.cjs +11 -11
  27. package/dist/cjs/core/modules.d.cts +2 -2
  28. package/dist/cjs/core/tx.cjs +8 -8
  29. package/dist/cjs/core/tx.d.cts +2 -2
  30. package/dist/cjs/cosmjs.cjs +9 -9
  31. package/dist/cjs/{defineProperty-dyr5BsvG.cjs → defineProperty-DAtJs5JQ.cjs} +4 -4
  32. package/dist/cjs/exports.cjs +9 -9
  33. package/dist/cjs/{index-Dz6elmkG.d.cts → index-CNxu0jEc.d.cts} +1312 -113
  34. package/dist/cjs/{index-CSWj2FPd.d.cts → index-COusnMLC.d.cts} +8 -5
  35. package/dist/cjs/index.cjs +29 -17
  36. package/dist/cjs/index.d.cts +3 -3
  37. package/dist/cjs/{service-C0DSVBn_.cjs → service-DmzN9jAl.cjs} +1 -1
  38. package/dist/cjs/service.cjs +2 -2
  39. package/dist/cjs/{tx-MgHAjEie.cjs → tx-CYMyLXlj.cjs} +5 -5
  40. package/dist/cjs/utils.d.cts +2 -2
  41. package/dist/esm/{AbacusGrpcApi-H-P0UiPh.js → AbacusGrpcApi-DG807S_D.js} +2 -2
  42. package/dist/esm/{BaseGrpcConsumer-a7fB9A_e.js → BaseGrpcConsumer-lUDP-V1I.js} +1 -1
  43. package/dist/esm/{BaseIndexerGrpcConsumer-CrwqSxDq.js → BaseIndexerGrpcConsumer-ByGqwnv0.js} +1 -1
  44. package/dist/esm/{ChainGrpcExchangeApi-Ko7rM6Df.js → ChainGrpcExchangeApi-dM8pIv3Q.js} +3 -3
  45. package/dist/esm/{ChainRestTendermintApi-BUV-cxVj.js → ChainRestTendermintApi-iiW50Z2J.js} +2 -2
  46. package/dist/esm/{DirectEthSecp256k1Wallet-CMxBvSTE.js → DirectEthSecp256k1Wallet-BV8ttcYH.js} +2 -2
  47. package/dist/esm/{ExecArgNeptuneWithdraw-BRJZq8Vb.js → ExecArgNeptuneWithdraw-DqIWmqJy.js} +2 -2
  48. package/dist/esm/{IndexerGrpcWeb3GwApi-CX4ohUOk.js → IndexerGrpcWeb3GwApi-OwqVZsKE.js} +2 -2
  49. package/dist/esm/{MsgBase-D4pO6org.js → MsgBase-BYNH7Kr5.js} +1 -1
  50. package/dist/esm/{MsgSetDenomMetadata-CeD0R82a.js → MsgSetDenomMetadata-CTyvXOGo.js} +39 -8
  51. package/dist/esm/{OLPGrpcApi-CX-m2wvC.js → OLPGrpcApi-CYVKwBCj.js} +2 -2
  52. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-D9fMELJH.js → QueryTradingStrategyContractTotalStrategies-CCM0S67l.js} +3 -3
  53. package/dist/esm/{StreamManagerV2-B_6ctbMb.js → StreamManagerV2-CbZamzIn.js} +962 -5
  54. package/dist/esm/{accounts-CP_DVUou.js → accounts-DaSGlOcB.js} +2 -2
  55. package/dist/esm/{chain-CQczt2h3.js → chain-DqFxHeeE.js} +3 -3
  56. package/dist/esm/client/abacus.js +3 -3
  57. package/dist/esm/client/chain.d.ts +2 -2
  58. package/dist/esm/client/chain.js +5 -5
  59. package/dist/esm/client/indexer.d.ts +3 -3
  60. package/dist/esm/client/indexer.js +6 -6
  61. package/dist/esm/client/olp.js +4 -4
  62. package/dist/esm/client/wasm.d.ts +1 -1
  63. package/dist/esm/client/wasm.js +8 -8
  64. package/dist/esm/core/accounts.d.ts +2 -2
  65. package/dist/esm/core/accounts.js +3 -3
  66. package/dist/esm/core/modules.d.ts +2 -2
  67. package/dist/esm/core/modules.js +11 -11
  68. package/dist/esm/core/tx.d.ts +2 -2
  69. package/dist/esm/core/tx.js +8 -8
  70. package/dist/esm/cosmjs.js +9 -9
  71. package/dist/esm/{defineProperty-Bq6QU9Te.js → defineProperty-DuYPbdEg.js} +4 -4
  72. package/dist/esm/exports.js +9 -9
  73. package/dist/esm/{index-CvTpnDXx.d.ts → index-C32ydr8i.d.ts} +1313 -113
  74. package/dist/esm/{index-BbVYW9Fg.d.ts → index-M499Wbuy.d.ts} +8 -5
  75. package/dist/esm/index.d.ts +3 -3
  76. package/dist/esm/index.js +18 -18
  77. package/dist/esm/{service-CqKPnKgb.js → service-DcE3KfV9.js} +1 -1
  78. package/dist/esm/service.js +2 -2
  79. package/dist/esm/{tx-ZGcAWTaC.js → tx-CSkj2rce.js} +5 -5
  80. package/dist/esm/utils.d.ts +2 -2
  81. package/package.json +7 -6
@@ -1,9 +1,9 @@
1
1
  import { Ht as concatUint8Arrays, Vt as binaryToBase64, Wt as fromUtf8, Zt as uint8ArrayToBase64, et as numberToCosmosSdkDecString, ht as messageHash, nn as bigIntToString, pn as safeBigIntStringify, pt as domainHash, qt as hexToUint8Array, zt as base64ToUint8Array } from "./utils-CewUFGKA.js";
2
- import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
3
- import { A as createAny, F as Address } from "./accounts-CP_DVUou.js";
4
- import { n as prepareSignBytes, t as MsgBase } from "./MsgBase-D4pO6org.js";
5
- import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-Ko7rM6Df.js";
6
- import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-BRJZq8Vb.js";
2
+ import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
3
+ import { A as createAny, F as Address } from "./accounts-DaSGlOcB.js";
4
+ import { n as prepareSignBytes, t as MsgBase } from "./MsgBase-BYNH7Kr5.js";
5
+ import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-dM8pIv3Q.js";
6
+ import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-DqIWmqJy.js";
7
7
  import { keccak256 } from "viem";
8
8
  import { BigNumber, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, toChainFormat, toPascalCase } from "@injectivelabs/utils";
9
9
  import { GeneralException } from "@injectivelabs/exceptions";
@@ -7307,7 +7307,7 @@ var MsgBurn = class MsgBurn extends MsgBase {
7307
7307
  value: {
7308
7308
  sender: proto.sender,
7309
7309
  amount: proto.amount,
7310
- ...proto.burnFromAddress && { burnFromAddress: proto.burnFromAddress }
7310
+ burnFromAddress: proto.burnFromAddress || ""
7311
7311
  }
7312
7312
  };
7313
7313
  }
@@ -7343,6 +7343,9 @@ var MsgBurn = class MsgBurn extends MsgBase {
7343
7343
  ]);
7344
7344
  return map;
7345
7345
  }
7346
+ toEip712() {
7347
+ throw new GeneralException(/* @__PURE__ */ new Error("EIP712_v1 is not supported for MsgBurn. Please use EIP712_v2"));
7348
+ }
7346
7349
  toDirectSign() {
7347
7350
  return {
7348
7351
  type: "/injective.tokenfactory.v1beta1.MsgBurn",
@@ -7372,7 +7375,7 @@ var MsgMint = class MsgMint extends MsgBase {
7372
7375
  return InjectiveTokenFactoryV1Beta1TxPb.MsgMint.create({
7373
7376
  sender: params.sender,
7374
7377
  amount: coin,
7375
- ...params.receiver && { receiver: params.receiver }
7378
+ receiver: params.receiver || ""
7376
7379
  });
7377
7380
  }
7378
7381
  toData() {
@@ -7389,7 +7392,7 @@ var MsgMint = class MsgMint extends MsgBase {
7389
7392
  value: {
7390
7393
  sender: proto.sender,
7391
7394
  amount: proto.amount,
7392
- ...proto.receiver && { receiver: proto.receiver }
7395
+ ...proto.receiver !== void 0 ? { receiver: proto.receiver } : { receiver: "" }
7393
7396
  }
7394
7397
  };
7395
7398
  }
@@ -7400,6 +7403,34 @@ var MsgMint = class MsgMint extends MsgBase {
7400
7403
  ...value
7401
7404
  };
7402
7405
  }
7406
+ toEip712Types() {
7407
+ const map = /* @__PURE__ */ new Map();
7408
+ map.set("TypeAmount", [{
7409
+ name: "denom",
7410
+ type: "string"
7411
+ }, {
7412
+ name: "amount",
7413
+ type: "string"
7414
+ }]);
7415
+ map.set("MsgValue", [
7416
+ {
7417
+ name: "sender",
7418
+ type: "string"
7419
+ },
7420
+ {
7421
+ name: "amount",
7422
+ type: "TypeAmount"
7423
+ },
7424
+ {
7425
+ name: "receiver",
7426
+ type: "string"
7427
+ }
7428
+ ]);
7429
+ return map;
7430
+ }
7431
+ toEip712() {
7432
+ throw new GeneralException(/* @__PURE__ */ new Error("EIP712_v1 is not supported for MsgMint. Please use EIP712_v2"));
7433
+ }
7403
7434
  toDirectSign() {
7404
7435
  return {
7405
7436
  type: "/injective.tokenfactory.v1beta1.MsgMint",
@@ -1,5 +1,5 @@
1
- import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
2
- import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-CrwqSxDq.js";
1
+ import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
2
+ import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-ByGqwnv0.js";
3
3
  import { IndexerErrorModule } from "@injectivelabs/exceptions";
4
4
  import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb";
5
5
  import { InjectiveDmmV2Client } from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.client";
@@ -1,7 +1,7 @@
1
1
  import { Ut as fromBase64, Vt as binaryToBase64, Xt as toUtf8, Yt as toBase64 } from "./utils-CewUFGKA.js";
2
- import { t as _defineProperty } from "./defineProperty-Bq6QU9Te.js";
3
- import { h as ChainGrpcWasmApi } from "./chain-CQczt2h3.js";
4
- import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-BRJZq8Vb.js";
2
+ import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
3
+ import { h as ChainGrpcWasmApi } from "./chain-DqFxHeeE.js";
4
+ import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-DqIWmqJy.js";
5
5
  import { GeneralException } from "@injectivelabs/exceptions";
6
6
  import { Network, getNetworkEndpoints, isMainnet } from "@injectivelabs/networks";
7
7