@injectivelabs/sdk-ts 1.19.27 → 1.19.29

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 (65) hide show
  1. package/dist/cjs/{BaseGrpcConsumer-CZTAcNtS.d.cts → BaseGrpcConsumer-Cuk8uOQM.d.cts} +1 -1
  2. package/dist/cjs/{MsgSetDenomMetadata-BfixGdXn.cjs → MsgSetDenomMetadata-DfRRsMJP.cjs} +29 -11
  3. package/dist/cjs/client/abacus.d.cts +4 -4
  4. package/dist/cjs/client/chain.d.cts +9 -9
  5. package/dist/cjs/client/indexer.d.cts +9 -9
  6. package/dist/cjs/client/olp.d.cts +4 -4
  7. package/dist/cjs/client/tcAbacus.d.cts +4 -4
  8. package/dist/cjs/client/wasm.d.cts +3 -3
  9. package/dist/cjs/core/accounts.d.cts +9 -9
  10. package/dist/cjs/core/modules.cjs +2 -2
  11. package/dist/cjs/core/modules.d.cts +9 -9
  12. package/dist/cjs/core/tx.cjs +1 -1
  13. package/dist/cjs/core/tx.d.cts +10 -10
  14. package/dist/cjs/cosmjs.cjs +1 -1
  15. package/dist/cjs/cosmjs.d.cts +2 -2
  16. package/dist/cjs/exports.cjs +1 -1
  17. package/dist/cjs/exports.d.cts +2 -2
  18. package/dist/{esm/index-DJtcTm1W.d.ts → cjs/index-BRxKHGQG.d.cts} +91 -10
  19. package/dist/cjs/{index-kODUUZaZ.d.cts → index-BSAoPX-y.d.cts} +1 -1
  20. package/dist/cjs/{index-C00Yswov.d.cts → index-BX2CHo8F.d.cts} +1 -1
  21. package/dist/cjs/{index-xSXf-Ct4.d.cts → index-BY25JExH.d.cts} +1 -1
  22. package/dist/cjs/{index-DD6UhYzr.d.cts → index-CHvc_fra.d.cts} +1 -1
  23. package/dist/cjs/{index-Dvfd07fs.d.cts → index-DRF-_f0u.d.cts} +6 -6
  24. package/dist/cjs/{index-B-Q3ov9G.d.cts → index-SSQxU55J.d.cts} +1 -1
  25. package/dist/cjs/{index-DJm-qDcY.d.cts → index-rqzTzOSi.d.cts} +250 -139
  26. package/dist/cjs/index.cjs +2 -2
  27. package/dist/cjs/index.d.cts +10 -10
  28. package/dist/cjs/service.d.cts +3 -3
  29. package/dist/cjs/{tx-OpVh8H3q.cjs → tx-BrB6tTAl.cjs} +68 -26
  30. package/dist/{esm/tx_pb-DG9OU_HE.d.ts → cjs/tx_pb-juo9yexz.d.cts} +4 -4
  31. package/dist/cjs/types.d.cts +2 -2
  32. package/dist/cjs/utils.d.cts +9 -9
  33. package/dist/esm/{BaseGrpcConsumer-BptQBj1l.d.ts → BaseGrpcConsumer-DqOMr000.d.ts} +1 -1
  34. package/dist/esm/{MsgSetDenomMetadata-CCP5OcIu.js → MsgSetDenomMetadata-ohjlOX6p.js} +28 -10
  35. package/dist/esm/client/abacus.d.ts +4 -4
  36. package/dist/esm/client/chain.d.ts +9 -9
  37. package/dist/esm/client/indexer.d.ts +9 -9
  38. package/dist/esm/client/olp.d.ts +4 -4
  39. package/dist/esm/client/tcAbacus.d.ts +4 -4
  40. package/dist/esm/client/wasm.d.ts +3 -3
  41. package/dist/esm/core/accounts.d.ts +9 -9
  42. package/dist/esm/core/modules.d.ts +9 -9
  43. package/dist/esm/core/modules.js +2 -2
  44. package/dist/esm/core/tx.d.ts +10 -10
  45. package/dist/esm/core/tx.js +1 -1
  46. package/dist/esm/cosmjs.d.ts +2 -2
  47. package/dist/esm/cosmjs.js +1 -1
  48. package/dist/esm/exports.d.ts +2 -2
  49. package/dist/esm/exports.js +1 -1
  50. package/dist/esm/{index-Cngh1mkP.d.ts → index-CYXjNxQX.d.ts} +1 -1
  51. package/dist/esm/{index-CGvR0jtI.d.ts → index-CjKVwgtI.d.ts} +1 -1
  52. package/dist/esm/{index-Db2hVJPi.d.ts → index-D4shu73e.d.ts} +1 -1
  53. package/dist/esm/{index-BYx0x8ba.d.ts → index-DW-13dLc.d.ts} +1 -1
  54. package/dist/{cjs/index-C15wCMY6.d.cts → esm/index-UJT9ZTxj.d.ts} +91 -10
  55. package/dist/esm/{index-BSAdUyzU.d.ts → index-YcClSIrG.d.ts} +1 -1
  56. package/dist/esm/{index-C4ebvHUB.d.ts → index-a4qvY7Ae.d.ts} +250 -139
  57. package/dist/esm/{index-sT17wTBx.d.ts → index-oaaCFohL.d.ts} +6 -6
  58. package/dist/esm/index.d.ts +10 -10
  59. package/dist/esm/index.js +2 -2
  60. package/dist/esm/service.d.ts +3 -3
  61. package/dist/esm/{tx-bExTfQxz.js → tx-4keRJVkg.js} +68 -26
  62. package/dist/{cjs/tx_pb-BGCQilBY.d.cts → esm/tx_pb-CEGobIZP.d.ts} +4 -4
  63. package/dist/esm/types.d.ts +2 -2
  64. package/dist/esm/utils.d.ts +9 -9
  65. package/package.json +6 -6
@@ -450,6 +450,7 @@ async function prepareTxInclusionWaiter({ txHash, timeout, options, fetchTx, fet
450
450
  if (!isTendermintEventStrategy(inclusionStrategy)) return createPollingInclusionWaiter({
451
451
  txHash,
452
452
  timeout,
453
+ options,
453
454
  fetchTxPoll
454
455
  });
455
456
  const eventOptions = options === null || options === void 0 ? void 0 : options.eventInclusion;
@@ -463,6 +464,7 @@ async function prepareTxInclusionWaiter({ txHash, timeout, options, fetchTx, fet
463
464
  return createPollingInclusionWaiter({
464
465
  txHash,
465
466
  timeout,
467
+ options,
466
468
  fetchTxPoll
467
469
  });
468
470
  }
@@ -487,11 +489,12 @@ async function prepareTxInclusionWaiter({ txHash, timeout, options, fetchTx, fet
487
489
  var _eventOptions$onFallb2;
488
490
  subscription.close();
489
491
  eventOptions === null || eventOptions === void 0 || (_eventOptions$onFallb2 = eventOptions.onFallback) === null || _eventOptions$onFallb2 === void 0 || _eventOptions$onFallb2.call(eventOptions, new GeneralException(/* @__PURE__ */ new Error(`Broadcast tx hash ${includedTxHash} did not match subscribed tx hash ${txHash}`)));
490
- return fetchTxPoll({
492
+ return fetchTxPoll(createFetchTxPollArgs({
491
493
  txHash: includedTxHash,
492
494
  timeout,
495
+ options,
493
496
  abortSignal: hashMismatchPollAbortController.signal
494
- });
497
+ }));
495
498
  }
496
499
  if (inclusionStrategy === TxInclusionStrategy.TendermintEventAndPoll) return waitForSubscribedTxInclusionAndPoll({
497
500
  txHash,
@@ -521,11 +524,12 @@ async function prepareTxInclusionWaiter({ txHash, timeout, options, fetchTx, fet
521
524
  return createPollingInclusionWaiter({
522
525
  txHash,
523
526
  timeout,
527
+ options,
524
528
  fetchTxPoll
525
529
  });
526
530
  }
527
531
  }
528
- function createPollingInclusionWaiter({ txHash, timeout, fetchTxPoll }) {
532
+ function createPollingInclusionWaiter({ txHash, timeout, options, fetchTxPoll }) {
529
533
  const pollAbortController = new AbortController();
530
534
  return {
531
535
  txHash,
@@ -533,11 +537,20 @@ function createPollingInclusionWaiter({ txHash, timeout, fetchTxPoll }) {
533
537
  close: () => {
534
538
  pollAbortController.abort();
535
539
  },
536
- wait: (includedTxHash = txHash) => fetchTxPoll({
540
+ wait: (includedTxHash = txHash) => fetchTxPoll(createFetchTxPollArgs({
537
541
  txHash: includedTxHash,
538
542
  timeout,
543
+ options,
539
544
  abortSignal: pollAbortController.signal
540
- })
545
+ }))
546
+ };
547
+ }
548
+ function createFetchTxPollArgs({ txHash, timeout, options, abortSignal }) {
549
+ return {
550
+ ...(options === null || options === void 0 ? void 0 : options.pollingInterval) === void 0 ? {} : { pollingInterval: options.pollingInterval },
551
+ ...abortSignal ? { abortSignal } : {},
552
+ txHash,
553
+ timeout
541
554
  };
542
555
  }
543
556
  async function waitForSubscribedTxInclusion({ txHash, timeout, options, fetchTx, fetchTxPoll, subscription, createRequestException }) {
@@ -555,10 +568,11 @@ async function waitForSubscribedTxInclusion({ txHash, timeout, options, fetchTx,
555
568
  const error = e instanceof GeneralException ? e : new GeneralException(new Error(String(e)));
556
569
  if (!fallbackToPolling) throw createRequestException(error, "event-inclusion");
557
570
  options === null || options === void 0 || (_options$eventInclusi2 = options.eventInclusion) === null || _options$eventInclusi2 === void 0 || (_options$eventInclusi3 = _options$eventInclusi2.onFallback) === null || _options$eventInclusi3 === void 0 || _options$eventInclusi3.call(_options$eventInclusi2, error);
558
- return fetchTxPoll({
571
+ return fetchTxPoll(createFetchTxPollArgs({
559
572
  txHash,
560
- timeout
561
- });
573
+ timeout,
574
+ options
575
+ }));
562
576
  }
563
577
  }
564
578
  async function waitForSubscribedTxInclusionAndPoll({ txHash, timeout, options, fetchTx, fetchTxPoll, subscription }) {
@@ -607,11 +621,12 @@ async function waitForSubscribedTxInclusionAndPoll({ txHash, timeout, options, f
607
621
  options === null || options === void 0 || (_options$eventInclusi4 = options.eventInclusion) === null || _options$eventInclusi4 === void 0 || (_options$eventInclusi5 = _options$eventInclusi4.onFallback) === null || _options$eventInclusi5 === void 0 || _options$eventInclusi5.call(_options$eventInclusi4, fallbackError);
608
622
  rejectIfBothFailed();
609
623
  });
610
- fetchTxPoll({
624
+ fetchTxPoll(createFetchTxPollArgs({
611
625
  txHash,
612
626
  timeout,
627
+ options,
613
628
  abortSignal: pollAbortController.signal
614
- }).then((txResponse) => resolveOnce(txResponse, "poll")).catch((error) => {
629
+ })).then((txResponse) => resolveOnce(txResponse, "poll")).catch((error) => {
615
630
  if (rejectTerminal(error)) return;
616
631
  pollError = error instanceof Error ? error : new Error(String(error));
617
632
  finishedCount += 1;
@@ -667,12 +682,16 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
667
682
  });
668
683
  }
669
684
  }
670
- async fetchTxPoll({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, abortSignal }) {
685
+ async fetchTxPoll({ txHash, abortSignal, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, pollingInterval = DEFAULT_TX_POLL_INTERVAL_MS }) {
671
686
  const deadline = Date.now() + timeout;
672
687
  for (let start = Date.now(); start < deadline; start = Date.now()) {
673
688
  this.throwIfTxPollingCancelled(abortSignal);
674
689
  try {
675
- const tx = await this.fetchTxDual(txHash, deadline, abortSignal);
690
+ const tx = await this.fetchTxDual({
691
+ txHash,
692
+ deadline,
693
+ abortSignal
694
+ });
676
695
  this.throwIfTxPollingCancelled(abortSignal);
677
696
  if (tx) return tx;
678
697
  } catch (e) {
@@ -680,7 +699,7 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
680
699
  if (e instanceof TransactionException) throw e;
681
700
  }
682
701
  this.throwIfTxPollingCancelled(abortSignal);
683
- const gap = DEFAULT_TX_POLL_INTERVAL_MS - (Date.now() - start);
702
+ const gap = pollingInterval - (Date.now() - start);
684
703
  if (gap > 0) await sleep(gap);
685
704
  }
686
705
  throw new GrpcUnaryRequestException(/* @__PURE__ */ new Error(`Transaction was not included in a block before timeout of ${timeout}ms`), {
@@ -688,15 +707,19 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
688
707
  contextModule: "fetch-tx-poll"
689
708
  });
690
709
  }
691
- async waitForTxInclusion(txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options) {
692
- const txResponse = await (await this.prepareTxInclusionWait(txHash, timeout, options)).wait();
710
+ async waitForTxInclusion({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options }) {
711
+ const txResponse = await (await this.prepareTxInclusionWait({
712
+ txHash,
713
+ timeout,
714
+ options
715
+ })).wait();
693
716
  if (!txResponse) throw new GrpcUnaryRequestException(/* @__PURE__ */ new Error(`The transaction with ${txHash} is not found`), {
694
717
  context: "TxGrpcApi",
695
718
  contextModule: "wait-for-tx-inclusion"
696
719
  });
697
720
  return txResponse;
698
721
  }
699
- async prepareTxInclusionWait(txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options) {
722
+ async prepareTxInclusionWait({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options }) {
700
723
  return prepareTxInclusionWaiter({
701
724
  txHash,
702
725
  timeout,
@@ -709,7 +732,7 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
709
732
  })
710
733
  });
711
734
  }
712
- async safeFetchTx(txHash, delay, abortSignal) {
735
+ async safeFetchTx({ txHash, delay, abortSignal }) {
713
736
  if (delay) await sleep(delay);
714
737
  this.throwIfTxPollingCancelled(abortSignal);
715
738
  return this.fetchTx(txHash).catch((e) => {
@@ -717,10 +740,17 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
717
740
  return null;
718
741
  });
719
742
  }
720
- fetchTxDual(txHash, deadline, abortSignal) {
743
+ fetchTxDual({ txHash, deadline, abortSignal }) {
721
744
  const STAGGER = 300;
722
745
  const timeout = Math.max(0, Math.min(DEFAULT_TX_POLL_CALL_TIMEOUT_MS, deadline - Date.now()));
723
- const fetches = Promise.all([this.safeFetchTx(txHash, void 0, abortSignal), this.safeFetchTx(txHash, STAGGER, abortSignal)]).then(([a, b]) => a !== null && a !== void 0 ? a : b);
746
+ const fetches = Promise.all([this.safeFetchTx({
747
+ txHash,
748
+ abortSignal
749
+ }), this.safeFetchTx({
750
+ txHash,
751
+ delay: STAGGER,
752
+ abortSignal
753
+ })]).then(([a, b]) => a !== null && a !== void 0 ? a : b);
724
754
  fetches.catch(() => {});
725
755
  return Promise.race([fetches, sleep(timeout).then(() => null)]);
726
756
  }
@@ -761,7 +791,11 @@ var TxGrpcApi = class extends BaseGrpcConsumer {
761
791
  const txHash = TxClient.hash(txRaw);
762
792
  let inclusionWaiter;
763
793
  try {
764
- inclusionWaiter = await this.prepareTxInclusionWait(txHash, timeout, options);
794
+ inclusionWaiter = await this.prepareTxInclusionWait({
795
+ txHash,
796
+ timeout,
797
+ options
798
+ });
765
799
  const mode = (options === null || options === void 0 ? void 0 : options.mode) || (inclusionWaiter.inclusionStrategy !== TxInclusionStrategy.Poll ? CosmosTxV1Beta1ServicePb.BroadcastMode.ASYNC : CosmosTxV1Beta1ServicePb.BroadcastMode.SYNC);
766
800
  const broadcastTxRequest = CosmosTxV1Beta1ServicePb.BroadcastTxRequest.create();
767
801
  broadcastTxRequest.txBytes = CosmosTxV1Beta1TxPb.TxRaw.toBinary(txRaw);
@@ -870,7 +904,7 @@ var TxRestApi = class {
870
904
  });
871
905
  }
872
906
  }
873
- async fetchTxPoll({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, abortSignal }) {
907
+ async fetchTxPoll({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, pollingInterval = DEFAULT_TX_POLL_INTERVAL_MS, abortSignal }) {
874
908
  const deadline = Date.now() + timeout;
875
909
  for (let start = Date.now(); start < deadline; start = Date.now()) {
876
910
  this.throwIfTxPollingCancelled(abortSignal);
@@ -883,7 +917,7 @@ var TxRestApi = class {
883
917
  if (e instanceof TransactionException) throw e;
884
918
  }
885
919
  this.throwIfTxPollingCancelled(abortSignal);
886
- const remaining = DEFAULT_TX_POLL_INTERVAL_MS - (Date.now() - start);
920
+ const remaining = pollingInterval - (Date.now() - start);
887
921
  if (remaining > 0) await sleep(remaining);
888
922
  }
889
923
  throw new HttpRequestException(/* @__PURE__ */ new Error(`Transaction was not included in a block before timeout of ${timeout}ms`), {
@@ -895,15 +929,19 @@ var TxRestApi = class {
895
929
  if (!(abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) return;
896
930
  throw new Error("Transaction inclusion polling was cancelled");
897
931
  }
898
- async waitForTxInclusion(txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options) {
899
- const txResponse = await (await this.prepareTxInclusionWait(txHash, timeout, options)).wait();
932
+ async waitForTxInclusion({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options }) {
933
+ const txResponse = await (await this.prepareTxInclusionWait({
934
+ txHash,
935
+ timeout,
936
+ options
937
+ })).wait();
900
938
  if (!txResponse) throw new HttpRequestException(/* @__PURE__ */ new Error(`The transaction with ${txHash} is not found`), {
901
939
  context: "TxRestApi",
902
940
  contextModule: "wait-for-tx-inclusion"
903
941
  });
904
942
  return txResponse;
905
943
  }
906
- async prepareTxInclusionWait(txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options) {
944
+ async prepareTxInclusionWait({ txHash, timeout = DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, options }) {
907
945
  return prepareTxInclusionWaiter({
908
946
  txHash,
909
947
  timeout,
@@ -941,7 +979,11 @@ var TxRestApi = class {
941
979
  const txHash = TxClient.hash(txRaw);
942
980
  let inclusionWaiter;
943
981
  try {
944
- inclusionWaiter = await this.prepareTxInclusionWait(txHash, timeout, options);
982
+ inclusionWaiter = await this.prepareTxInclusionWait({
983
+ txHash,
984
+ timeout,
985
+ options
986
+ });
945
987
  const { tx_response: txResponse } = await this.broadcastTx(txRaw, inclusionWaiter.inclusionStrategy !== TxInclusionStrategy.Poll ? BroadcastMode.Async : BroadcastMode.Sync);
946
988
  if (!txResponse) throw new HttpRequestException(/* @__PURE__ */ new Error("The transaction has failed to be broadcasted"), {
947
989
  context: "TxRestApi.broadcast",
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
- //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.19.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/base/v1beta1/coin_pb.d.ts
2
+ //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/base/v1beta1/coin_pb.d.ts
3
3
  /**
4
4
  * Coin defines a token with a denomination and an amount.
5
5
  *
@@ -45,7 +45,7 @@ declare const Coin = new Coin$Type();
45
45
  */
46
46
  declare const DecCoin = new DecCoin$Type();
47
47
  //#endregion
48
- //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.19.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts
48
+ //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts
49
49
  /**
50
50
  * CompactBitArray is an implementation of a space efficient bit array.
51
51
  * This is used to ensure that the encoded data takes up a minimal amount of
@@ -69,7 +69,7 @@ interface CompactBitArray {
69
69
  */
70
70
  declare const CompactBitArray = new CompactBitArray$Type();
71
71
  //#endregion
72
- //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.19.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/google/protobuf/any_pb.d.ts
72
+ //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/google/protobuf/any_pb.d.ts
73
73
 
74
74
  /**
75
75
  * `Any` contains an arbitrary serialized protocol buffer message along with a
@@ -208,7 +208,7 @@ interface Any {
208
208
  */
209
209
  declare const Any = new Any$Type();
210
210
  //#endregion
211
- //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.19.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/signing/v1beta1/signing_pb.d.ts
211
+ //#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.0/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/signing/v1beta1/signing_pb.d.ts
212
212
 
213
213
  /**
214
214
  * SignMode represents a signing mode with its own security guarantees.
@@ -1,3 +1,3 @@
1
- import "./tx_pb-DG9OU_HE.js";
2
- import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-DJtcTm1W.js";
1
+ import "./tx_pb-CEGobIZP.js";
2
+ import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-UJT9ZTxj.js";
3
3
  export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, GrpcWebTransportAdditionalOptions, OrderMask, OrderMaskMap, OrderSide, OrderState, PagePagination, Pagination, PaginationOption, ResolvedStreamManagerConfig, SignDoc, StreamDisconnectReason, StreamError, StreamEvent, StreamManagerConfig, StreamManagerEvents, StreamManagerRetryConfig, StreamOperation, StreamState, StreamSubscription, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
@@ -1,10 +1,10 @@
1
- import "./tx_pb-DG9OU_HE.js";
2
- import "./index-DJtcTm1W.js";
3
- import { $d as cosmosSdkDecToBigNumber, $f as SignTypedDataVersionV4, Ad as hexToBuff, Af as spotPriceFromChainPriceToFixed, Bd as getChecksumAddress, Bf as getErrorMessage, Cd as base64ToUint8Array, Cf as formatPriceToAllowablePrice, Cp as protobufTimestampToUnixSeconds, Dd as fromBase64, Df as isNumber, Ed as concatUint8Arrays, Ef as getTensMultiplier, Fd as uint8ArrayToBase64, Ff as spotQuantityToChainQuantity, Gd as getSubaccountId, Gf as isNode, Hd as getEthereumAddress, Hf as hexToNumber, Id as uint8ArrayToHex, If as spotQuantityToChainQuantityToFixed, Jd as getDerivativeMarketDecimals, Jf as objectToJson, Kd as isCw20ContractAddress, Kf as isReactNative, Ld as uint8ArrayToString, Lf as bigIntReplacer, Md as stringToUint8Array, Mf as spotPriceToChainPriceToFixed, Nd as toBase64, Nf as spotQuantityFromChainQuantity, Od as fromUtf8, Of as numberToCosmosSdkDecString, Pd as toUtf8, Pf as spotQuantityFromChainQuantityToFixed, Qd as amountToCosmosSdkDecAmount, Qf as sortObjectByKeysWithReduce, Rd as addHexPrefix, Rf as bigIntToNumber, Sd as DEFAULT_DERIVATION_PATH, Sf as formatPriceToAllowableDecimals, Sp as protobufTimestampToUnixMs, Td as binaryToBase64, Tf as getSignificantDecimalsFromNumber, Ud as getInjectiveAddress, Uf as isBrowser, Ux as GrpcWebFetchTransport, Vd as getDefaultSubaccountId, Vf as grpcCoinToUiCoin, Wd as getInjectiveAddressFromSubaccountId, Wf as isJsonString, Xd as getSpotMarketDecimals, Xf as safeBigIntStringify, Yd as getDerivativeMarketTensMultiplier, Yf as protoObjectToJson, Zd as getSpotMarketTensMultiplier, Zf as sortObjectByKeys, _d as BECH32_ADDR_CONS_PREFIX, _f as derivativeQuantityToChainQuantityToFixed, _p as getGrpcWebTransport, af as denomAmountToGrpcChainDenomAmount, ap as hashToHex, bd as BECH32_PUBKEY_CONS_PREFIX, bf as formatNumberToAllowableDecimals, bp as makeTimeoutTimestampInNs, cd as recoverTypedSignaturePubKey, cf as derivativeMarginToChainMargin, cp as privateKeyHashToPublicKeyBase64, dd as grpcPagingToPaging, df as derivativePriceFromChainPriceToFixed, dp as publicKeyToAddress, ef as denomAmountFromChainDenomAmount, ep as TypedDataUtilsHashStruct, fd as grpcPagingToPagingV2, ff as derivativePriceToChainPrice, fp as ripemd160, gd as BECH32_ADDR_ACC_PREFIX, gf as derivativeQuantityToChainQuantity, gp as ofacList, hd as paginationUint8ArrayToString, hf as derivativeQuantityFromChainQuantityToFixed, hp as parseCoins, if as denomAmountToChainDenomAmountToFixed, ip as domainHash, jd as hexToUint8Array, jf as spotPriceToChainPrice, kd as hexToBase64, kf as spotPriceFromChainPrice, ld as fetchAllWithPagination, lf as derivativeMarginToChainMarginToFixed, lp as privateKeyToPublicKey, md as paginationRequestFromPagination, mf as derivativeQuantityFromChainQuantity, mp as sha256, nf as denomAmountFromGrpcChainDenomAmount, np as TypedMessageV4, of as derivativeMarginFromChainMargin, op as messageHash, pd as pageRequestToGrpcPageRequestV2, pf as derivativePriceToChainPriceToFixed, pp as sanitizeTypedData, qd as removeHexPrefix, qf as isServerSide, rf as denomAmountToChainDenomAmount, rp as decompressPubKey, sf as derivativeMarginFromChainMarginToFixed, sp as privateKeyHashToPublicKey, tf as denomAmountFromChainDenomAmountToFixed, tp as TypedDataUtilsSanitizeData, ud as grpcPaginationToPagination, uf as derivativePriceFromChainPrice, up as privateKeyToPublicKeyBase64, vd as BECH32_ADDR_VAL_PREFIX, vf as formatAmountToAllowableAmount, vp as getGasPriceBasedOnMessage, wd as base64ToUtf8, wf as getExactDecimalsFromNumber, xd as BECH32_PUBKEY_VAL_PREFIX, xf as formatNumberToAllowableTensMultiplier, xp as protobufTimestampToDate, yd as BECH32_PUBKEY_ACC_PREFIX, yf as formatAmountToAllowableDecimals, yp as makeTimeoutTimestamp, zd as getAddressFromInjectiveAddress, zf as bigIntToString } from "./index-C4ebvHUB.js";
4
- import "./BaseGrpcConsumer-BptQBj1l.js";
5
- import "./index-BSAdUyzU.js";
6
- import "./index-sT17wTBx.js";
7
- import "./index-Cngh1mkP.js";
8
- import "./index-Db2hVJPi.js";
9
- import "./index-BYx0x8ba.js";
1
+ import "./tx_pb-CEGobIZP.js";
2
+ import "./index-UJT9ZTxj.js";
3
+ import { $d as cosmosSdkDecToBigNumber, $f as SignTypedDataVersionV4, Ad as hexToBuff, Af as spotPriceFromChainPriceToFixed, Bd as getChecksumAddress, Bf as getErrorMessage, Cd as base64ToUint8Array, Cf as formatPriceToAllowablePrice, Cp as protobufTimestampToUnixSeconds, Dd as fromBase64, Df as isNumber, Ed as concatUint8Arrays, Ef as getTensMultiplier, Fd as uint8ArrayToBase64, Ff as spotQuantityToChainQuantity, Gd as getSubaccountId, Gf as isNode, Gx as GrpcWebFetchTransport, Hd as getEthereumAddress, Hf as hexToNumber, Id as uint8ArrayToHex, If as spotQuantityToChainQuantityToFixed, Jd as getDerivativeMarketDecimals, Jf as objectToJson, Kd as isCw20ContractAddress, Kf as isReactNative, Ld as uint8ArrayToString, Lf as bigIntReplacer, Md as stringToUint8Array, Mf as spotPriceToChainPriceToFixed, Nd as toBase64, Nf as spotQuantityFromChainQuantity, Od as fromUtf8, Of as numberToCosmosSdkDecString, Pd as toUtf8, Pf as spotQuantityFromChainQuantityToFixed, Qd as amountToCosmosSdkDecAmount, Qf as sortObjectByKeysWithReduce, Rd as addHexPrefix, Rf as bigIntToNumber, Sd as DEFAULT_DERIVATION_PATH, Sf as formatPriceToAllowableDecimals, Sp as protobufTimestampToUnixMs, Td as binaryToBase64, Tf as getSignificantDecimalsFromNumber, Ud as getInjectiveAddress, Uf as isBrowser, Vd as getDefaultSubaccountId, Vf as grpcCoinToUiCoin, Wd as getInjectiveAddressFromSubaccountId, Wf as isJsonString, Xd as getSpotMarketDecimals, Xf as safeBigIntStringify, Yd as getDerivativeMarketTensMultiplier, Yf as protoObjectToJson, Zd as getSpotMarketTensMultiplier, Zf as sortObjectByKeys, _d as BECH32_ADDR_CONS_PREFIX, _f as derivativeQuantityToChainQuantityToFixed, _p as getGrpcWebTransport, af as denomAmountToGrpcChainDenomAmount, ap as hashToHex, bd as BECH32_PUBKEY_CONS_PREFIX, bf as formatNumberToAllowableDecimals, bp as makeTimeoutTimestampInNs, cd as recoverTypedSignaturePubKey, cf as derivativeMarginToChainMargin, cp as privateKeyHashToPublicKeyBase64, dd as grpcPagingToPaging, df as derivativePriceFromChainPriceToFixed, dp as publicKeyToAddress, ef as denomAmountFromChainDenomAmount, ep as TypedDataUtilsHashStruct, fd as grpcPagingToPagingV2, ff as derivativePriceToChainPrice, fp as ripemd160, gd as BECH32_ADDR_ACC_PREFIX, gf as derivativeQuantityToChainQuantity, gp as ofacList, hd as paginationUint8ArrayToString, hf as derivativeQuantityFromChainQuantityToFixed, hp as parseCoins, if as denomAmountToChainDenomAmountToFixed, ip as domainHash, jd as hexToUint8Array, jf as spotPriceToChainPrice, kd as hexToBase64, kf as spotPriceFromChainPrice, ld as fetchAllWithPagination, lf as derivativeMarginToChainMarginToFixed, lp as privateKeyToPublicKey, md as paginationRequestFromPagination, mf as derivativeQuantityFromChainQuantity, mp as sha256, nf as denomAmountFromGrpcChainDenomAmount, np as TypedMessageV4, of as derivativeMarginFromChainMargin, op as messageHash, pd as pageRequestToGrpcPageRequestV2, pf as derivativePriceToChainPriceToFixed, pp as sanitizeTypedData, qd as removeHexPrefix, qf as isServerSide, rf as denomAmountToChainDenomAmount, rp as decompressPubKey, sf as derivativeMarginFromChainMarginToFixed, sp as privateKeyHashToPublicKey, tf as denomAmountFromChainDenomAmountToFixed, tp as TypedDataUtilsSanitizeData, ud as grpcPaginationToPagination, uf as derivativePriceFromChainPrice, up as privateKeyToPublicKeyBase64, vd as BECH32_ADDR_VAL_PREFIX, vf as formatAmountToAllowableAmount, vp as getGasPriceBasedOnMessage, wd as base64ToUtf8, wf as getExactDecimalsFromNumber, xd as BECH32_PUBKEY_VAL_PREFIX, xf as formatNumberToAllowableTensMultiplier, xp as protobufTimestampToDate, yd as BECH32_PUBKEY_ACC_PREFIX, yf as formatAmountToAllowableDecimals, yp as makeTimeoutTimestamp, zd as getAddressFromInjectiveAddress, zf as bigIntToString } from "./index-a4qvY7Ae.js";
4
+ import "./BaseGrpcConsumer-DqOMr000.js";
5
+ import "./index-YcClSIrG.js";
6
+ import "./index-oaaCFohL.js";
7
+ import "./index-CYXjNxQX.js";
8
+ import "./index-D4shu73e.js";
9
+ import "./index-DW-13dLc.js";
10
10
  export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/sdk-ts",
3
- "version": "1.19.27",
3
+ "version": "1.19.29",
4
4
  "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -327,7 +327,7 @@
327
327
  "@cosmjs/proto-signing": "0.33.0",
328
328
  "@cosmjs/stargate": "0.33.0",
329
329
  "@injectivelabs/abacus-proto-ts-v2": "1.17.5",
330
- "@injectivelabs/core-proto-ts-v2": "1.19.0",
330
+ "@injectivelabs/core-proto-ts-v2": "1.20.0",
331
331
  "@injectivelabs/grpc-web": "^0.0.1",
332
332
  "@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
333
333
  "@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
@@ -351,10 +351,10 @@
351
351
  "rxjs": "7.8.2",
352
352
  "snakecase-keys": "^5.4.1",
353
353
  "viem": "^2.41.2",
354
- "@injectivelabs/exceptions": "1.19.27",
355
- "@injectivelabs/networks": "1.19.27",
356
- "@injectivelabs/ts-types": "1.19.27",
357
- "@injectivelabs/utils": "1.19.27"
354
+ "@injectivelabs/exceptions": "1.19.29",
355
+ "@injectivelabs/networks": "1.19.29",
356
+ "@injectivelabs/utils": "1.19.29",
357
+ "@injectivelabs/ts-types": "1.19.29"
358
358
  },
359
359
  "publishConfig": {
360
360
  "access": "public"