@injectivelabs/sdk-ts 1.17.2-alpha.13 → 1.17.2-alpha.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 (91) hide show
  1. package/dist/cjs/{AbacusGrpcApi-vcp-9fNL.cjs → AbacusGrpcApi-DXSuhb6R.cjs} +1 -1
  2. package/dist/cjs/{BaseGrpcConsumer-DUwCngI6.cjs → BaseGrpcConsumer-EtEQfhmo.cjs} +47 -6
  3. package/dist/{esm/BaseGrpcConsumer-BbvNzhrS.d.ts → cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts} +14 -2
  4. package/dist/cjs/{BaseIndexerGrpcConsumer-BGLVnJtw.cjs → BaseIndexerGrpcConsumer-CW1kTn-_.cjs} +1 -1
  5. package/dist/cjs/{ChainGrpcExchangeApi-DLpkgEyg.cjs → ChainGrpcExchangeApi-dYHAldxE.cjs} +2 -2
  6. package/dist/cjs/{ChainRestTendermintApi-BiZOeKcG.cjs → ChainRestTendermintApi-DSAe-L00.cjs} +1 -1
  7. package/dist/cjs/{IndexerGrpcWeb3GwApi-BgWT2tWK.cjs → IndexerGrpcWeb3GwApi-BbmDpT6t.cjs} +1 -1
  8. package/dist/cjs/{MsgSetDenomMetadata-CUoGqV8P.cjs → MsgSetDenomMetadata-DOgxFYSh.cjs} +17 -6
  9. package/dist/cjs/{OLPGrpcApi-B9O9HcGv.cjs → OLPGrpcApi-BCCb6fBZ.cjs} +1 -1
  10. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-Bh8AXm4k.cjs → QueryTradingStrategyContractTotalStrategies-D3mZephn.cjs} +1 -1
  11. package/dist/cjs/{StreamManagerV2-XjbYIH1t.cjs → StreamManagerV2-DrMt8n5L.cjs} +132 -42
  12. package/dist/cjs/{chain-Cs9sNuT1.cjs → chain-CgOrRg-v.cjs} +2 -2
  13. package/dist/cjs/client/abacus.cjs +2 -2
  14. package/dist/cjs/client/abacus.d.cts +2 -2
  15. package/dist/cjs/client/chain.cjs +4 -4
  16. package/dist/cjs/client/chain.d.cts +7 -7
  17. package/dist/cjs/client/indexer.cjs +5 -5
  18. package/dist/cjs/client/indexer.d.cts +7 -7
  19. package/dist/cjs/client/olp.cjs +3 -3
  20. package/dist/cjs/client/olp.d.cts +2 -2
  21. package/dist/cjs/client/wasm.cjs +5 -5
  22. package/dist/cjs/client/wasm.d.cts +1 -1
  23. package/dist/cjs/core/accounts.d.cts +7 -7
  24. package/dist/cjs/core/modules.cjs +7 -7
  25. package/dist/cjs/core/modules.d.cts +7 -7
  26. package/dist/cjs/core/tx.cjs +5 -5
  27. package/dist/cjs/core/tx.d.cts +7 -7
  28. package/dist/cjs/cosmjs.cjs +5 -5
  29. package/dist/cjs/exports.cjs +5 -5
  30. package/dist/cjs/{index-D__cYp7U.d.cts → index-CO3Y9drx.d.cts} +1 -1
  31. package/dist/cjs/{index-O-kK0YEY.d.cts → index-DUviIeCX.d.cts} +1 -1
  32. package/dist/cjs/{index-B8XmWgDc.d.cts → index-DWbxb1AB.d.cts} +1 -7
  33. package/dist/cjs/{index-ctP454k1.d.cts → index-DrWYgvch.d.cts} +26 -23
  34. package/dist/cjs/{index-D4lKfyjW.d.cts → index-PO0ZN7MW.d.cts} +33 -2
  35. package/dist/cjs/{index-B19YRG03.d.cts → index-lRWP4rKg.d.cts} +1 -1
  36. package/dist/cjs/index.cjs +15 -14
  37. package/dist/cjs/index.d.cts +8 -8
  38. package/dist/cjs/{service-yA6fSem8.cjs → service-DLt677s-.cjs} +1 -1
  39. package/dist/cjs/service.cjs +2 -2
  40. package/dist/cjs/service.d.cts +2 -2
  41. package/dist/cjs/{tx-Cn0j2SRh.cjs → tx-CQ_itzn7.cjs} +3 -3
  42. package/dist/cjs/{types-DvoTS2v1.cjs → types-BTuy007B.cjs} +31 -0
  43. package/dist/cjs/types.cjs +2 -1
  44. package/dist/cjs/types.d.cts +2 -2
  45. package/dist/cjs/utils.d.cts +7 -7
  46. package/dist/esm/{AbacusGrpcApi-CXaVHTrN.js → AbacusGrpcApi-Ce1hRKuD.js} +1 -1
  47. package/dist/{cjs/BaseGrpcConsumer-PDufF0fz.d.cts → esm/BaseGrpcConsumer-6x4RlZ16.d.ts} +14 -2
  48. package/dist/esm/{BaseGrpcConsumer-DptVGP0n.js → BaseGrpcConsumer-BTWyD665.js} +48 -7
  49. package/dist/esm/{BaseIndexerGrpcConsumer-CjpUoGXy.js → BaseIndexerGrpcConsumer-BTZzA_Eg.js} +1 -1
  50. package/dist/esm/{ChainGrpcExchangeApi-C-2XsVVs.js → ChainGrpcExchangeApi-DN6bib00.js} +2 -2
  51. package/dist/esm/{ChainRestTendermintApi-CMrAg0Zm.js → ChainRestTendermintApi-B81BhCLB.js} +1 -1
  52. package/dist/esm/{IndexerGrpcWeb3GwApi-CtUYowus.js → IndexerGrpcWeb3GwApi-D-eeyhez.js} +1 -1
  53. package/dist/esm/{MsgSetDenomMetadata-BhJMebO9.js → MsgSetDenomMetadata-B0keccEU.js} +17 -6
  54. package/dist/esm/{OLPGrpcApi-CMwW7LXZ.js → OLPGrpcApi-DUCfcca_.js} +1 -1
  55. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-7IjWZLsc.js → QueryTradingStrategyContractTotalStrategies-DTYH0h7s.js} +1 -1
  56. package/dist/esm/{StreamManagerV2-CX94azDA.js → StreamManagerV2-BRdQVuOe.js} +132 -42
  57. package/dist/esm/{chain-phKWVf8c.js → chain-BN7_-SJr.js} +2 -2
  58. package/dist/esm/client/abacus.d.ts +2 -2
  59. package/dist/esm/client/abacus.js +2 -2
  60. package/dist/esm/client/chain.d.ts +7 -7
  61. package/dist/esm/client/chain.js +4 -4
  62. package/dist/esm/client/indexer.d.ts +7 -7
  63. package/dist/esm/client/indexer.js +5 -5
  64. package/dist/esm/client/olp.d.ts +2 -2
  65. package/dist/esm/client/olp.js +3 -3
  66. package/dist/esm/client/wasm.d.ts +1 -1
  67. package/dist/esm/client/wasm.js +5 -5
  68. package/dist/esm/core/accounts.d.ts +7 -7
  69. package/dist/esm/core/modules.d.ts +7 -7
  70. package/dist/esm/core/modules.js +7 -7
  71. package/dist/esm/core/tx.d.ts +7 -7
  72. package/dist/esm/core/tx.js +5 -5
  73. package/dist/esm/cosmjs.js +5 -5
  74. package/dist/esm/exports.js +5 -5
  75. package/dist/esm/{index-qFCOVI7n.d.ts → index-BJQt8IpY.d.ts} +1 -1
  76. package/dist/esm/{index-h4hnL8ya.d.ts → index-C4r9rD3e.d.ts} +33 -2
  77. package/dist/esm/{index-DXAxMChZ.d.ts → index-CRJomww5.d.ts} +1 -1
  78. package/dist/esm/{index-GYWzGC7S.d.ts → index-D5l6jMWJ.d.ts} +26 -23
  79. package/dist/esm/{index-BoEe6weX.d.ts → index-DOyiZiUK.d.ts} +1 -1
  80. package/dist/esm/{index-GcFVWcCn.d.ts → index-Dn4OxoMy.d.ts} +1 -7
  81. package/dist/esm/index.d.ts +8 -8
  82. package/dist/esm/index.js +15 -15
  83. package/dist/esm/{service-B_k552b0.js → service-BIyV7hPV.js} +1 -1
  84. package/dist/esm/service.d.ts +2 -2
  85. package/dist/esm/service.js +2 -2
  86. package/dist/esm/{tx-CcaVBSym.js → tx-BN-D7lwq.js} +3 -3
  87. package/dist/esm/{types-Bu8IAJ0R.js → types-68OuBiEQ.js} +26 -1
  88. package/dist/esm/types.d.ts +2 -2
  89. package/dist/esm/types.js +2 -2
  90. package/dist/esm/utils.d.ts +7 -7
  91. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
3
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
3
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
4
4
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
5
5
  let __injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb = require("@injectivelabs/abacus-proto-ts-v2/generated/points_svc_pb");
6
6
  __injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb = require_chunk.__toESM(__injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb);
@@ -80,16 +80,57 @@ var BaseGrpcConsumer = class {
80
80
  return retryGrpcCall();
81
81
  }
82
82
  /**
83
- * Centralized error handler for gRPC calls
84
- * Converts RpcError to GrpcUnaryRequestException with proper error codes
83
+ * Extracts the ABCI error code from a gRPC error message.
84
+ * Chain errors contain patterns like: {key:"ABCICode" value:"100"}
85
+ */
86
+ getABCICodeFromMessage(message) {
87
+ const ABCICode = /{key:"ABCICode"[ \t]+value:"(.*?)"}/g.exec(message);
88
+ if (!ABCICode || ABCICode.length < 2) return;
89
+ return Number(ABCICode[1]);
90
+ }
91
+ /**
92
+ * Extracts the codespace/module from a gRPC error message.
93
+ * Chain errors contain patterns like: {key:"Codespace" value:"exchange"}
94
+ */
95
+ getCodespaceFromMessage(message) {
96
+ const codespace = /{key:"Codespace"[ \t]+value:"(.*?)"}/g.exec(message);
97
+ if (!codespace || codespace.length < 2) return;
98
+ return codespace[1];
99
+ }
100
+ /**
101
+ * Centralized error handler for gRPC calls.
102
+ * When the error contains chain error details (ABCI code and codespace),
103
+ * throws a TransactionException which will map the error to a user-friendly message.
104
+ * Otherwise throws a GrpcUnaryRequestException for generic gRPC errors.
85
105
  */
86
106
  handleGrpcError(e, context) {
87
- if (e instanceof __protobuf_ts_runtime_rpc.RpcError) throw new __injectivelabs_exceptions.GrpcUnaryRequestException(new Error(e.message), {
88
- code: (0, __injectivelabs_exceptions.grpcErrorCodeToErrorCode)(Number(e.code)),
107
+ if (e instanceof __protobuf_ts_runtime_rpc.RpcError) {
108
+ const message$1 = e.message;
109
+ const abciCode$1 = this.getABCICodeFromMessage(message$1);
110
+ const codespace$1 = this.getCodespaceFromMessage(message$1);
111
+ if (abciCode$1 && codespace$1) throw new __injectivelabs_exceptions.TransactionException(new Error(message$1), {
112
+ code: (0, __injectivelabs_exceptions.grpcErrorCodeToErrorCode)(Number(e.code)),
113
+ context,
114
+ contextModule: codespace$1,
115
+ contextCode: abciCode$1
116
+ });
117
+ throw new __injectivelabs_exceptions.GrpcUnaryRequestException(new Error(message$1), {
118
+ code: (0, __injectivelabs_exceptions.grpcErrorCodeToErrorCode)(Number(e.code)),
119
+ context,
120
+ contextModule: this.module
121
+ });
122
+ }
123
+ const error = e;
124
+ const message = (error === null || error === void 0 ? void 0 : error.message) || "";
125
+ const abciCode = this.getABCICodeFromMessage(message);
126
+ const codespace = this.getCodespaceFromMessage(message);
127
+ if (abciCode && codespace) throw new __injectivelabs_exceptions.TransactionException(error, {
128
+ code: __injectivelabs_exceptions.UnspecifiedErrorCode,
89
129
  context,
90
- contextModule: this.module
130
+ contextModule: codespace,
131
+ contextCode: abciCode
91
132
  });
92
- throw new __injectivelabs_exceptions.GrpcUnaryRequestException(e, {
133
+ throw new __injectivelabs_exceptions.GrpcUnaryRequestException(error, {
93
134
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
94
135
  context,
95
136
  contextModule: this.module
@@ -1805,8 +1805,20 @@ declare class BaseGrpcConsumer {
1805
1805
  */
1806
1806
  protected retry<TResponse>(grpcCall: () => Promise<TResponse>, retries?: number, delay?: number): Promise<TResponse>;
1807
1807
  /**
1808
- * Centralized error handler for gRPC calls
1809
- * Converts RpcError to GrpcUnaryRequestException with proper error codes
1808
+ * Extracts the ABCI error code from a gRPC error message.
1809
+ * Chain errors contain patterns like: {key:"ABCICode" value:"100"}
1810
+ */
1811
+ private getABCICodeFromMessage;
1812
+ /**
1813
+ * Extracts the codespace/module from a gRPC error message.
1814
+ * Chain errors contain patterns like: {key:"Codespace" value:"exchange"}
1815
+ */
1816
+ private getCodespaceFromMessage;
1817
+ /**
1818
+ * Centralized error handler for gRPC calls.
1819
+ * When the error contains chain error details (ABCI code and codespace),
1820
+ * throws a TransactionException which will map the error to a user-friendly message.
1821
+ * Otherwise throws a GrpcUnaryRequestException for generic gRPC errors.
1810
1822
  */
1811
1823
  protected handleGrpcError(e: unknown, context: string): never;
1812
1824
  /**
@@ -1,4 +1,4 @@
1
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
1
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
2
2
 
3
3
  //#region src/client/base/BaseIndexerGrpcConsumer.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-BiZOeKcG.cjs');
5
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
4
+ const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-DSAe-L00.cjs');
5
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
6
6
  let __injectivelabs_utils = require("@injectivelabs/utils");
7
7
  let __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb");
8
8
  __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb);
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
4
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
5
5
  const require_BaseRestConsumer = require('./BaseRestConsumer-uSzCOit7.cjs');
6
6
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
7
7
  let __injectivelabs_core_proto_ts_v2_generated_injective_crypto_v1beta1_ethsecp256k1_keys_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/crypto/v1beta1/ethsecp256k1/keys_pb");
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-BGLVnJtw.cjs');
4
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
5
5
  let __injectivelabs_core_proto_ts_v2_generated_cosmos_tx_v1beta1_tx_pb = require("@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb");
6
6
  __injectivelabs_core_proto_ts_v2_generated_cosmos_tx_v1beta1_tx_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_cosmos_tx_v1beta1_tx_pb);
7
7
  let __injectivelabs_utils = require("@injectivelabs/utils");
@@ -3,7 +3,7 @@ const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
4
  const require_accounts = require('./accounts-CXaUasU5.cjs');
5
5
  const require_MsgBase = require('./MsgBase-DqOmzCyS.cjs');
6
- const require_ChainGrpcExchangeApi = require('./ChainGrpcExchangeApi-DLpkgEyg.cjs');
6
+ const require_ChainGrpcExchangeApi = require('./ChainGrpcExchangeApi-dYHAldxE.cjs');
7
7
  const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-DOHeo3AJ.cjs');
8
8
  let viem = require("viem");
9
9
  let __injectivelabs_utils = require("@injectivelabs/utils");
@@ -409,13 +409,14 @@ const createBinaryOptionOrder = (args) => {
409
409
  });
410
410
  };
411
411
  const createMsgAndCancelOrders = (params) => {
412
+ const hasCancelAll = params.spotMarketIdsToCancelAll && params.spotMarketIdsToCancelAll.length > 0 || params.derivativeMarketIdsToCancelAll && params.derivativeMarketIdsToCancelAll.length > 0 || params.binaryOptionsMarketIdsToCancelAll && params.binaryOptionsMarketIdsToCancelAll.length > 0;
412
413
  const message = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_tx_pb.MsgBatchUpdateOrders.create({
413
414
  sender: params.injectiveAddress,
414
- subaccountId: params.subaccountId
415
+ ...hasCancelAll && { subaccountId: params.subaccountId }
415
416
  });
416
- if (params.spotMarketIdsToCancelAll) message.spotMarketIdsToCancelAll = params.spotMarketIdsToCancelAll;
417
- if (params.derivativeMarketIdsToCancelAll) message.derivativeMarketIdsToCancelAll = params.derivativeMarketIdsToCancelAll;
418
- if (params.binaryOptionsMarketIdsToCancelAll) message.binaryOptionsMarketIdsToCancelAll = params.binaryOptionsMarketIdsToCancelAll;
417
+ if (params.spotMarketIdsToCancelAll && params.spotMarketIdsToCancelAll.length > 0) message.spotMarketIdsToCancelAll = params.spotMarketIdsToCancelAll;
418
+ if (params.derivativeMarketIdsToCancelAll && params.derivativeMarketIdsToCancelAll.length > 0) message.derivativeMarketIdsToCancelAll = params.derivativeMarketIdsToCancelAll;
419
+ if (params.binaryOptionsMarketIdsToCancelAll && params.binaryOptionsMarketIdsToCancelAll.length > 0) message.binaryOptionsMarketIdsToCancelAll = params.binaryOptionsMarketIdsToCancelAll;
419
420
  if (params.spotOrdersToCancel) message.spotOrdersToCancel = params.spotOrdersToCancel.map(({ marketId, subaccountId, orderHash, cid }) => {
420
421
  return __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_tx_pb.OrderData.create({
421
422
  marketId,
@@ -4081,6 +4082,16 @@ var MsgTransfer = class MsgTransfer extends require_MsgBase.MsgBase {
4081
4082
 
4082
4083
  //#endregion
4083
4084
  //#region src/core/modules/bank/msgs/MsgSend.ts
4085
+ /**
4086
+ * @category Messages
4087
+ }[]
4088
+ srcInjectiveAddress: string
4089
+ dstInjectiveAddress: string
4090
+ }
4091
+
4092
+ export type Proto = CosmosBankV1Beta1TxPb.MsgSend
4093
+ }
4094
+
4084
4095
  /**
4085
4096
  * @category Messages
4086
4097
  */
@@ -7133,7 +7144,7 @@ var MsgFundCommunityPool = class MsgFundCommunityPool extends require_MsgBase.Ms
7133
7144
  }
7134
7145
  toProto() {
7135
7146
  const { params } = this;
7136
- const coins = params.amount.map((amount) => {
7147
+ const coins = (Array.isArray(params.amount) ? params.amount : [params.amount]).map((amount) => {
7137
7148
  return __injectivelabs_core_proto_ts_v2_generated_cosmos_base_v1beta1_coin_pb.Coin.create({
7138
7149
  denom: amount.denom,
7139
7150
  amount: amount.amount
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
3
3
  const require_time = require('./time-B4xLc27Y.cjs');
4
- const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-BGLVnJtw.cjs');
4
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
5
5
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
6
6
  let __injectivelabs_olp_proto_ts_v2_generated_dmm_pb = require("@injectivelabs/olp-proto-ts-v2/generated/dmm_pb");
7
7
  __injectivelabs_olp_proto_ts_v2_generated_dmm_pb = require_chunk.__toESM(__injectivelabs_olp_proto_ts_v2_generated_dmm_pb);
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_chain = require('./chain-Cs9sNuT1.cjs');
4
+ const require_chain = require('./chain-CgOrRg-v.cjs');
5
5
  const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-DOHeo3AJ.cjs');
6
6
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
7
7
  let __injectivelabs_networks = require("@injectivelabs/networks");
@@ -1,11 +1,11 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
5
- const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-BGLVnJtw.cjs');
4
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
5
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
6
6
  const require_BaseRestConsumer = require('./BaseRestConsumer-uSzCOit7.cjs');
7
- const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-BgWT2tWK.cjs');
8
- const require_types = require('./types-DvoTS2v1.cjs');
7
+ const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-BbmDpT6t.cjs');
8
+ const require_types = require('./types-BTuy007B.cjs');
9
9
  let __injectivelabs_utils = require("@injectivelabs/utils");
10
10
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
11
11
  let __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb_client = require("@injectivelabs/mito-proto-ts-v2/generated/goadesign_goagen_mito_api_pb.client");
@@ -5452,9 +5452,54 @@ var StreamManager = class {
5452
5452
  //#endregion
5453
5453
  //#region src/client/indexer/grpc_stream/streamV2/streamHelpersV2.ts
5454
5454
  /**
5455
+ * Extracts detailed error information from a gRPC/RpcError object.
5456
+ *
5457
+ * gRPC-web errors typically have these properties:
5458
+ * - code: gRPC status code (number)
5459
+ * - message: Error message
5460
+ * - name: 'RpcError'
5461
+ * - methodName: The RPC method that failed
5462
+ * - serviceName: The service name
5463
+ * - metadata: Response metadata/trailers
5464
+ */
5465
+ function extractGrpcError(error) {
5466
+ let code = require_types.GrpcStatusCode.UNKNOWN;
5467
+ let details = "Unknown stream error";
5468
+ let metadata = void 0;
5469
+ if (error && typeof error === "object") {
5470
+ if ("code" in error && typeof error.code === "number") code = error.code;
5471
+ if ("message" in error && typeof error.message === "string") details = error.message;
5472
+ else if ("details" in error && typeof error.details === "string") details = error.details;
5473
+ const errorObj = error;
5474
+ metadata = {
5475
+ originalError: error,
5476
+ ..."name" in errorObj && { errorName: errorObj.name },
5477
+ ..."methodName" in errorObj && { methodName: errorObj.methodName },
5478
+ ..."serviceName" in errorObj && { serviceName: errorObj.serviceName },
5479
+ ..."metadata" in errorObj && { grpcMetadata: errorObj.metadata }
5480
+ };
5481
+ } else if (error instanceof Error) {
5482
+ details = error.message;
5483
+ metadata = {
5484
+ originalError: error,
5485
+ stack: error.stack
5486
+ };
5487
+ }
5488
+ return {
5489
+ code,
5490
+ details,
5491
+ metadata
5492
+ };
5493
+ }
5494
+ /**
5455
5495
  * Creates an event-based subscription for StreamManager V2.
5456
5496
  * This emits 'error' and 'complete' events instead of using callbacks.
5457
5497
  *
5498
+ * Error Handling:
5499
+ * - gRPC errors are extracted with full metadata and emitted as 'error' events
5500
+ * - User callback errors are caught and emitted separately to distinguish from stream errors
5501
+ * - Aborted streams don't emit any events (clean shutdown)
5502
+ *
5458
5503
  * @param stream - The ServerStreamingCall from the V2 client
5459
5504
  * @param handleResponse - Callback to process each stream response
5460
5505
  * @returns StreamSubscription with event emitters for error/complete
@@ -5462,6 +5507,7 @@ var StreamManager = class {
5462
5507
  function createStreamSubscriptionV2(stream, handleResponse) {
5463
5508
  const emitter = new eventemitter3.EventEmitter();
5464
5509
  const abortController = new AbortController();
5510
+ let hasEmittedTerminalEvent = false;
5465
5511
  const subscription = {
5466
5512
  unsubscribe: () => {
5467
5513
  abortController.abort();
@@ -5477,21 +5523,34 @@ function createStreamSubscriptionV2(stream, handleResponse) {
5477
5523
  (async () => {
5478
5524
  try {
5479
5525
  for await (const response of stream.responses) {
5480
- if (abortController.signal.aborted) break;
5481
- if (abortController.signal.aborted) break;
5482
- handleResponse(response);
5526
+ if (abortController.signal.aborted) return;
5527
+ try {
5528
+ handleResponse(response);
5529
+ } catch (callbackError) {
5530
+ if (!abortController.signal.aborted && !hasEmittedTerminalEvent) {
5531
+ hasEmittedTerminalEvent = true;
5532
+ const streamError = {
5533
+ code: require_types.GrpcStatusCode.INTERNAL,
5534
+ details: callbackError instanceof Error ? `Callback error: ${callbackError.message}` : "Callback error: Unknown",
5535
+ metadata: {
5536
+ type: "callback-error",
5537
+ originalError: callbackError,
5538
+ stack: callbackError instanceof Error ? callbackError.stack : void 0
5539
+ }
5540
+ };
5541
+ emitter.emit("error", streamError);
5542
+ }
5543
+ return;
5544
+ }
5545
+ }
5546
+ if (!abortController.signal.aborted && !hasEmittedTerminalEvent) {
5547
+ hasEmittedTerminalEvent = true;
5548
+ emitter.emit("complete");
5483
5549
  }
5484
- if (!abortController.signal.aborted) emitter.emit("complete");
5485
5550
  } catch (error) {
5486
- if (!abortController.signal.aborted) {
5487
- const errorMessage = error instanceof Error ? error.message : "Unknown stream error";
5488
- let grpcCode = 2;
5489
- if (error && typeof error === "object" && "code" in error) grpcCode = error.code;
5490
- const streamError = {
5491
- code: grpcCode,
5492
- metadata: error,
5493
- details: errorMessage
5494
- };
5551
+ if (!abortController.signal.aborted && !hasEmittedTerminalEvent) {
5552
+ hasEmittedTerminalEvent = true;
5553
+ const streamError = extractGrpcError(error);
5495
5554
  emitter.emit("error", streamError);
5496
5555
  }
5497
5556
  }
@@ -6089,14 +6148,55 @@ const DEFAULT_RETRY_CONFIG = {
6089
6148
  persistent: true
6090
6149
  };
6091
6150
  /**
6151
+ * Maps gRPC status code to disconnect reason
6152
+ */
6153
+ function mapGrpcCodeToReason(code) {
6154
+ switch (code) {
6155
+ case require_types.GrpcStatusCode.CANCELLED: return require_types.StreamDisconnectReason.UserStopped;
6156
+ case require_types.GrpcStatusCode.UNAVAILABLE: return require_types.StreamDisconnectReason.NetworkError;
6157
+ case require_types.GrpcStatusCode.DEADLINE_EXCEEDED: return require_types.StreamDisconnectReason.Timeout;
6158
+ case require_types.GrpcStatusCode.UNAUTHENTICATED:
6159
+ case require_types.GrpcStatusCode.PERMISSION_DENIED: return require_types.StreamDisconnectReason.AuthenticationError;
6160
+ case require_types.GrpcStatusCode.RESOURCE_EXHAUSTED: return require_types.StreamDisconnectReason.RateLimited;
6161
+ case require_types.GrpcStatusCode.INVALID_ARGUMENT:
6162
+ case require_types.GrpcStatusCode.NOT_FOUND:
6163
+ case require_types.GrpcStatusCode.ALREADY_EXISTS:
6164
+ case require_types.GrpcStatusCode.OUT_OF_RANGE:
6165
+ case require_types.GrpcStatusCode.UNIMPLEMENTED:
6166
+ case require_types.GrpcStatusCode.FAILED_PRECONDITION: return require_types.StreamDisconnectReason.InvalidRequest;
6167
+ case require_types.GrpcStatusCode.UNKNOWN:
6168
+ case require_types.GrpcStatusCode.INTERNAL:
6169
+ case require_types.GrpcStatusCode.DATA_LOSS:
6170
+ case require_types.GrpcStatusCode.ABORTED:
6171
+ default: return require_types.StreamDisconnectReason.StreamError;
6172
+ }
6173
+ }
6174
+ /**
6175
+ * Determines if a disconnect reason should trigger a retry
6176
+ */
6177
+ function isRetryableReason(reason) {
6178
+ switch (reason) {
6179
+ case require_types.StreamDisconnectReason.NetworkError:
6180
+ case require_types.StreamDisconnectReason.Timeout:
6181
+ case require_types.StreamDisconnectReason.RateLimited:
6182
+ case require_types.StreamDisconnectReason.StreamError:
6183
+ case require_types.StreamDisconnectReason.StreamEnded: return true;
6184
+ case require_types.StreamDisconnectReason.UserStopped:
6185
+ case require_types.StreamDisconnectReason.MaxRetries:
6186
+ case require_types.StreamDisconnectReason.AuthenticationError:
6187
+ case require_types.StreamDisconnectReason.InvalidRequest: return false;
6188
+ default: return false;
6189
+ }
6190
+ }
6191
+ /**
6092
6192
  * StreamManagerV2 - Manages gRPC stream connections with automatic retry
6093
6193
  *
6094
6194
  * V2 Features:
6095
6195
  * - Event-based lifecycle (on/off methods)
6096
6196
  * - Automatic retry with exponential backoff
6097
6197
  * - Persistent retry mode
6098
- * - Comprehensive statistics tracking
6099
- * - gRPC error code mapping
6198
+ * - Comprehensive gRPC error code mapping
6199
+ * - Distinguishes retryable vs non-retryable errors
6100
6200
  *
6101
6201
  */
6102
6202
  var StreamManagerV2 = class extends eventemitter3.EventEmitter {
@@ -6164,14 +6264,15 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6164
6264
  clearTimeout(this.retryTimeoutId);
6165
6265
  this.retryTimeoutId = null;
6166
6266
  }
6167
- calculateNextBackoff() {
6267
+ calculateNextBackoff(reason) {
6268
+ const baseDelay = reason === require_types.StreamDisconnectReason.RateLimited ? Math.max(this.config.retryConfig.initialDelayMs, 5e3) : this.config.retryConfig.initialDelayMs;
6168
6269
  if (this.config.retryConfig.maxAttempts > 0 && this.retryAttempt >= this.config.retryConfig.maxAttempts) return this.config.retryConfig.persistent ? this.config.retryConfig.maxDelayMs : null;
6169
- const nextBackoffDelay = this.config.retryConfig.initialDelayMs * Math.pow(this.config.retryConfig.backoffMultiplier, this.retryAttempt);
6270
+ const nextBackoffDelay = baseDelay * Math.pow(this.config.retryConfig.backoffMultiplier, this.retryAttempt);
6170
6271
  return Math.min(nextBackoffDelay, this.config.retryConfig.maxDelayMs);
6171
6272
  }
6172
- scheduleRetry() {
6273
+ scheduleRetry(reason) {
6173
6274
  if (!this.config.retryConfig.enabled) return;
6174
- const nextBackoff = this.calculateNextBackoff();
6275
+ const nextBackoff = this.calculateNextBackoff(reason);
6175
6276
  if (nextBackoff === null) {
6176
6277
  this.handleMaxRetriesReached();
6177
6278
  return;
@@ -6181,7 +6282,7 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6181
6282
  this.emit(require_types.StreamEvent.Retry, {
6182
6283
  attempt: this.retryAttempt,
6183
6284
  delayMs: nextBackoff,
6184
- nextBackoff: this.calculateNextBackoff()
6285
+ nextBackoff: this.calculateNextBackoff(reason)
6185
6286
  });
6186
6287
  this.connect();
6187
6288
  }, nextBackoff);
@@ -6193,21 +6294,7 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6193
6294
  handleError(error) {
6194
6295
  const errorInfo = this.extractErrorInfo(error);
6195
6296
  this.emit(require_types.StreamEvent.Error, errorInfo);
6196
- let reason = require_types.StreamDisconnectReason.StreamError;
6197
- if (error && typeof error === "object" && "code" in error) switch (error.code) {
6198
- case 14:
6199
- reason = require_types.StreamDisconnectReason.NetworkError;
6200
- break;
6201
- case 4:
6202
- reason = require_types.StreamDisconnectReason.Timeout;
6203
- break;
6204
- case 16:
6205
- reason = require_types.StreamDisconnectReason.AuthenticationError;
6206
- break;
6207
- case 1:
6208
- reason = require_types.StreamDisconnectReason.UserStopped;
6209
- break;
6210
- }
6297
+ const reason = mapGrpcCodeToReason(error && typeof error === "object" && "code" in error ? error.code : require_types.GrpcStatusCode.UNKNOWN);
6211
6298
  this.handleDisconnect(reason);
6212
6299
  }
6213
6300
  /**
@@ -6232,7 +6319,7 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6232
6319
  handleDisconnect(reason) {
6233
6320
  this.clearSubscription();
6234
6321
  this.clearRetryTimeout();
6235
- const willRetry = reason !== require_types.StreamDisconnectReason.UserStopped && reason !== require_types.StreamDisconnectReason.MaxRetries && this.config.retryConfig.enabled;
6322
+ const willRetry = isRetryableReason(reason) && this.config.retryConfig.enabled;
6236
6323
  this.emit(require_types.StreamEvent.Disconnect, {
6237
6324
  reason,
6238
6325
  willRetry,
@@ -6240,7 +6327,7 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6240
6327
  });
6241
6328
  if (willRetry) {
6242
6329
  this.updateState(require_types.StreamState.Reconnecting);
6243
- this.scheduleRetry();
6330
+ this.scheduleRetry(reason);
6244
6331
  } else this.updateState(require_types.StreamState.Stopped);
6245
6332
  }
6246
6333
  connect() {
@@ -6261,15 +6348,18 @@ var StreamManagerV2 = class extends eventemitter3.EventEmitter {
6261
6348
  }
6262
6349
  }
6263
6350
  /**
6264
- * Extracts error message and details from an error object
6351
+ * Extracts error message, code, and details from an error object
6265
6352
  */
6266
6353
  extractErrorInfo(error) {
6267
6354
  if (error && typeof error === "object" && "details" in error) return {
6268
6355
  message: error.details,
6356
+ code: error.code,
6269
6357
  details: error
6270
6358
  };
6359
+ const code = error && typeof error === "object" && "code" in error ? error.code : void 0;
6271
6360
  return {
6272
6361
  message: error instanceof Error ? error.message : "Unknown error",
6362
+ code,
6273
6363
  details: error instanceof Error ? error.stack : error
6274
6364
  };
6275
6365
  }
@@ -2,8 +2,8 @@ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-V1uXtT51.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
4
  const require_time = require('./time-B4xLc27Y.cjs');
5
- const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-BiZOeKcG.cjs');
6
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-DUwCngI6.cjs');
5
+ const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-DSAe-L00.cjs');
6
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
7
7
  const require_BaseRestConsumer = require('./BaseRestConsumer-uSzCOit7.cjs');
8
8
  let __injectivelabs_utils = require("@injectivelabs/utils");
9
9
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
@@ -1,6 +1,6 @@
1
1
  require('../defineProperty-dyr5BsvG.cjs');
2
2
  require('../grpc-DQDVCGpY.cjs');
3
- require('../BaseGrpcConsumer-DUwCngI6.cjs');
4
- const require_AbacusGrpcApi = require('../AbacusGrpcApi-vcp-9fNL.cjs');
3
+ require('../BaseGrpcConsumer-EtEQfhmo.cjs');
4
+ const require_AbacusGrpcApi = require('../AbacusGrpcApi-DXSuhb6R.cjs');
5
5
 
6
6
  exports.AbacusGrpcApi = require_AbacusGrpcApi.AbacusGrpcApi;
@@ -1,3 +1,3 @@
1
- import "../BaseGrpcConsumer-PDufF0fz.cjs";
2
- import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-B19YRG03.cjs";
1
+ import "../BaseGrpcConsumer-Vvj4lzyS.cjs";
2
+ import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-lRWP4rKg.cjs";
3
3
  export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
@@ -3,10 +3,10 @@ const require_utils = require('../utils-V1uXtT51.cjs');
3
3
  require('../defineProperty-dyr5BsvG.cjs');
4
4
  require('../time-B4xLc27Y.cjs');
5
5
  require('../grpc-DQDVCGpY.cjs');
6
- const require_ChainRestTendermintApi = require('../ChainRestTendermintApi-BiZOeKcG.cjs');
7
- require('../BaseGrpcConsumer-DUwCngI6.cjs');
8
- const require_chain = require('../chain-Cs9sNuT1.cjs');
9
- const require_ChainGrpcExchangeApi = require('../ChainGrpcExchangeApi-DLpkgEyg.cjs');
6
+ const require_ChainRestTendermintApi = require('../ChainRestTendermintApi-DSAe-L00.cjs');
7
+ require('../BaseGrpcConsumer-EtEQfhmo.cjs');
8
+ const require_chain = require('../chain-CgOrRg-v.cjs');
9
+ const require_ChainGrpcExchangeApi = require('../ChainGrpcExchangeApi-dYHAldxE.cjs');
10
10
  require('../BaseRestConsumer-uSzCOit7.cjs');
11
11
  let __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/oracle_pb");
12
12
 
@@ -1,10 +1,10 @@
1
1
  import "../tx_pb-D-cNmrlO.cjs";
2
- import "../BaseGrpcConsumer-PDufF0fz.cjs";
3
- import "../index-B19YRG03.cjs";
2
+ import "../BaseGrpcConsumer-Vvj4lzyS.cjs";
3
+ import "../index-lRWP4rKg.cjs";
4
4
  import "../any_pb-CutLnOUR.cjs";
5
- import { $g as ContractStateWithPagination, $h as GrpcExchangeParams, $m as Grant, $p as GrpcAuctionEventAuctionResult, A as ChainGrpcAuctionApi, Ag as GrpcReDelegationResponse, Ah as GrpcEvmLog, Am as GrpcOracleParams, Ap as GrpcDecCoin, B as ChainGrpcAuthApi, Bg as StakingModuleParams, Bh as FeeDiscountAccountInfo, Bm as GrpcPeggyParams, Bp as CosmosAccountRestResponse, C as ChainGrpcInsuranceFundApi, C_ as VoteOptionMap, Cg as BondStatus, Ch as EvmBlobScheduleConfig, Cm as PermissionPolicyStatus, Cp as BlockLatestRestResponse, D as ChainGrpcTendermintApi, Dg as GrpcPool, Dh as GrpcEvmBlobConfig, Dm as PermissionRoleManager, Dp as TokenFactoryModuleParams, E as ChainGrpcPermissionsApi, Eg as GrpcDelegationResponse, Eh as EvmParams, Em as PermissionRoleIDs, Ep as FactoryDenomWithMetadata, F as ChainGrpcPeggyApi, Fg as GrpcValidatorCommission, Fh as ChainDerivativePosition, Fm as TxFeesModuleStateParams, Fp as DenomBalance, Gg as AbsoluteTxPosition, Gh as GrpcChainDerivativeMarket, Gm as BatchCreateSpotLimitOrdersAuthz, Gp as AuctionEventBid, H as ChainGrpcIbcApi, Hg as Validator, Hh as FeeDiscountTierInfo, Hm as BatchCancelDerivativeOrdersAuthz, Hp as AuctionCurrentBasket, I as ChainGrpcAuthZApi, Ig as GrpcValidatorCommissionRates, Ih as ChainPosition, Im as GrpcParams, Ip as DenomOwnersResponse, Jg as ContractAccountsBalanceWithPagination, Jh as GrpcChainFullSpotMarket, Jm as CreateDerivativeLimitOrderAuthz, Jp as AuctionModuleState, Kg as CodeInfoResponse, Kh as GrpcChainDerivativePosition, Km as CancelDerivativeOrderAuthz, Kp as AuctionLastAuctionResult, L as ChainGrpcWasmApi, Lg as GrpcValidatorDescription, Lh as DepositProposalParams, Lm as GrpcTokenPair, Lp as AccountResponse, M as ChainGrpcOracleApi, Mg as GrpcUnbondingDelegation, Mh as CampaignRewardPool, Mm as GrpcTxFeesEipBaseFee, Mp as GrpcDistributionParams, N as ChainGrpcErc20Api, Ng as GrpcUnbondingDelegationEntry, Nh as ChainDenomDecimal, Nm as GrpcTxFeesParams, Np as ValidatorRewards, O as ChainGrpcExchangeApi, Og as GrpcReDelegation, Oh as GrpcEvmBlobScheduleConfig, Om as PermissionVoucher, Op as TokenFactoryModuleState, P as ChainGrpcWasmXApi, Pg as GrpcValidator, Ph as ChainDenomMinNotional, Pm as TxFeesEipBaseFee, Pp as BalancesResponse, Qg as ContractInfo, Qh as GrpcDenomMinNotional, Qm as GenericAuthorization, Qp as GrpcAuctionBid, R as ChainGrpcMintApi, Rg as Pool, Rh as ExchangeModuleParams, Rm as Params, Rp as AccountsResponse, S as ChainRestBankApi, S_ as VoteOption, Sg as TradingRewardCampaignInfo, Sh as EvmBlobConfig, Sm as PermissionPolicyManagerCapability, Sp as RestApiResponse, T as ChainGrpcDistributionApi, Tg as GrpcDelegation, Th as EvmLog, Tm as PermissionRoleActors, Tp as AuthorityMetadata, U as ChainGrpcGovApi, Ug as ValidatorCommission, Uh as FeeDiscountTierTTL, Um as BatchCancelSpotOrdersAuthz, Up as AuctionEventAuctionResult, V as ChainGrpcEvmApi, Vg as UnBondingDelegation, Vh as FeeDiscountSchedule, Vm as PeggyModuleParams, Vp as AuctionBid, Wg as ValidatorDescription, Wh as GrpcCampaignRewardPool, Wm as BatchCreateDerivativeLimitOrdersAuthz, Wp as AuctionEventAuctionStart, Xg as ContractCodeHistoryOperationType, Xh as GrpcChainSpotMarket, Xm as CreateSpotLimitOrderAuthz, Xp as AuctionModuleStateResponse, Yg as ContractCodeHistoryEntry, Yh as GrpcChainPosition, Ym as CreateDerivativeMarketOrderAuthz, Yp as AuctionModuleStateParams, Zg as ContractCodeHistoryOperationTypeMap, Zh as GrpcDenomDecimals, Zm as CreateSpotMarketOrderAuthz, Zp as AuctionParams, _ as ChainGrpcEvmTransformer, __ as ProposalDeposit, _g as OrderType, _h as Account, _m as PermissionAddressRoles, a as ChainGrpcExchangeTransformer, a_ as MarketingInfo, ag as GrpcMarketStatusMap, ah as GrpcRedemptionSchedule, am as GrpcPermissionAddressVoucher, b as ChainRestWasmApi, b_ as TallyResult, bg as TradeRewardCampaign, bh as EthAccount, bm as PermissionNamespace, c as ChainGrpcCommonTransformer, c_ as GovModuleStateParams, cg as GrpcOrderTypeMap, ch as OracleTypeMap, cm as GrpcPermissionPolicyStatusManagerCapability, d as ChainGrpcPeggyTransformer, d_ as GrpcGovernanceVotingParams, dg as GrpcSpotMarketOrder, dh as BankModuleParams, dm as GrpcPermissionRoleIDs, e_ as GoogleProtoBufAny, eg as GrpcFeeDiscountAccountInfo, eh as GrantAuthorization, em as GrpcAuctionEventAuctionStart, f as ChainGrpcAuthZTransformer, f_ as GrpcProposal, fg as GrpcSpotOrder, fh as GrpcBankParams, fm as GrpcPermissionRoleManager, g as ChainGrpcAuthTransformer, g_ as Proposal, gg as IsOptedOutOfRewards, gh as TotalSupply, gm as PermissionActorRoles, h as ChainGrpcBankTransformer, h_ as GrpcVote, hg as GrpcTradingRewardCampaignInfo, hh as SendEnabled, hm as PermissionActionMap, i as ChainGrpcPermissionsTransformer, i_ as GrpcContractInfo, ig as GrpcMarketStatus, ih as GrpcInsuranceParams, im as GrpcPermissionActorRoles, j as ChainGrpcTxFeesApi, jg as GrpcStakingParams, jh as GrpcEvmParams, jm as OracleModuleParams, jp as GrpcDelegationDelegatorReward, k as ChainGrpcStakingApi, kg as GrpcReDelegationEntryResponse, kh as GrpcEvmChainConfig, km as PermissionsModuleParams, kp as DistributionModuleParams, l as ChainGrpcTxFeesTransformer, l_ as GrpcGovernanceDepositParams, lg as GrpcPointsMultiplier, lh as GrpcMintParams, lm as GrpcPermissionRole, m as ChainGrpcMintTransformer, m_ as GrpcTallyResult, mg as GrpcTradingRewardCampaignBoostInfo, mh as Metadata, mm as GrpcPermissionsParams, n as ChainGrpcTokenFactoryTransformer, n_ as GrpcCodeInfoResponse, ng as GrpcFeeDiscountTierInfo, nh as GrantWithDecodedAuthorization, nm as GrpcAuctionLastAuctionResult, o as ChainGrpcStakingTransformer, o_ as TokenInfo, og as GrpcOrderInfo, oh as InsuranceFund, om as GrpcPermissionNamespace, p as ChainGrpcWasmTransformer, p_ as GrpcProposalDeposit, pg as GrpcTradeRewardCampaign, ph as GrpcSupply, pm as GrpcPermissionsNamespace, qg as ContractAccountBalance, qh as GrpcChainFullDerivativeMarket, qm as CancelSpotOrderAuthz, qp as AuctionModuleParams, r as ChainGrpcDistributionTransformer, r_ as GrpcContractCodeHistoryEntry, rg as GrpcFeeDiscountTierTTL, rh as GrpcInsuranceFund, rm as GrpcAuctionParams, s as ChainGrpcAuctionTransformer, s_ as grpcContractInfo, sg as GrpcOrderType, sh as InsuranceModuleParams, sm as GrpcPermissionPolicyStatus, t as ChainGrpcInsuranceFundTransformer, t_ as GrpcAbsoluteTxPosition, tg as GrpcFeeDiscountSchedule, th as GrantAuthorizationWithDecodedAuthorization, tm as GrpcAuctionEventBid, u as ChainGrpcErc20Transformer, u_ as GrpcGovernanceTallyParams, ug as GrpcSpotMarket, uh as MinModuleParams, um as GrpcPermissionRoleActors, v as ChainGrpcGovTransformer, v_ as ProposalStatus, vg as OrderTypeMap, vh as AuthBaseAccount, vm as PermissionAddressVoucher, w as ChainGrpcTokenFactoryApi, w_ as WeightedVoteOption, wg as Delegation, wh as EvmChainConfig, wm as PermissionRole, wp as NodeInfoRestResponse, x as ChainRestAuthApi, x_ as Vote, xg as TradingRewardCampaignBoostInfo, xh as PubKey, xm as PermissionParams, xp as ChainModule, y as ChainRestTendermintApi, y_ as ProposalStatusMap, yg as PointsMultiplier, yh as AuthModuleParams, ym as PermissionGenesisState, z as ChainGrpcBankApi, zg as ReDelegation, zh as ExchangeParams, zm as TokenPair, zp as BaseAccountRestResponse } from "../index-ctP454k1.cjs";
6
- import "../index-B8XmWgDc.cjs";
7
- import { yt as OracleType } from "../index-D4lKfyjW.cjs";
8
- import "../index-D__cYp7U.cjs";
9
- import "../index-O-kK0YEY.cjs";
5
+ import { $g as ContractStateWithPagination, $h as GrpcExchangeParams, $m as Grant, $p as GrpcAuctionEventAuctionResult, A as ChainGrpcAuctionApi, Ag as GrpcReDelegationResponse, Ah as GrpcEvmLog, Am as GrpcOracleParams, Ap as GrpcDecCoin, B as ChainGrpcAuthApi, Bg as StakingModuleParams, Bh as FeeDiscountAccountInfo, Bm as GrpcPeggyParams, Bp as CosmosAccountRestResponse, C as ChainGrpcInsuranceFundApi, C_ as VoteOptionMap, Cg as BondStatus, Ch as EvmBlobScheduleConfig, Cm as PermissionPolicyStatus, Cp as BlockLatestRestResponse, D as ChainGrpcTendermintApi, Dg as GrpcPool, Dh as GrpcEvmBlobConfig, Dm as PermissionRoleManager, Dp as TokenFactoryModuleParams, E as ChainGrpcPermissionsApi, Eg as GrpcDelegationResponse, Eh as EvmParams, Em as PermissionRoleIDs, Ep as FactoryDenomWithMetadata, F as ChainGrpcPeggyApi, Fg as GrpcValidatorCommission, Fh as ChainDerivativePosition, Fm as TxFeesModuleStateParams, Fp as DenomBalance, Gg as AbsoluteTxPosition, Gh as GrpcChainDerivativeMarket, Gm as BatchCreateSpotLimitOrdersAuthz, Gp as AuctionEventBid, H as ChainGrpcIbcApi, Hg as Validator, Hh as FeeDiscountTierInfo, Hm as BatchCancelDerivativeOrdersAuthz, Hp as AuctionCurrentBasket, I as ChainGrpcAuthZApi, Ig as GrpcValidatorCommissionRates, Ih as ChainPosition, Im as GrpcParams, Ip as DenomOwnersResponse, Jg as ContractAccountsBalanceWithPagination, Jh as GrpcChainFullSpotMarket, Jm as CreateDerivativeLimitOrderAuthz, Jp as AuctionModuleState, Kg as CodeInfoResponse, Kh as GrpcChainDerivativePosition, Km as CancelDerivativeOrderAuthz, Kp as AuctionLastAuctionResult, L as ChainGrpcWasmApi, Lg as GrpcValidatorDescription, Lh as DepositProposalParams, Lm as GrpcTokenPair, Lp as AccountResponse, M as ChainGrpcOracleApi, Mg as GrpcUnbondingDelegation, Mh as CampaignRewardPool, Mm as GrpcTxFeesEipBaseFee, Mp as GrpcDistributionParams, N as ChainGrpcErc20Api, Ng as GrpcUnbondingDelegationEntry, Nh as ChainDenomDecimal, Nm as GrpcTxFeesParams, Np as ValidatorRewards, O as ChainGrpcExchangeApi, Og as GrpcReDelegation, Oh as GrpcEvmBlobScheduleConfig, Om as PermissionVoucher, Op as TokenFactoryModuleState, P as ChainGrpcWasmXApi, Pg as GrpcValidator, Ph as ChainDenomMinNotional, Pm as TxFeesEipBaseFee, Pp as BalancesResponse, Qg as ContractInfo, Qh as GrpcDenomMinNotional, Qm as GenericAuthorization, Qp as GrpcAuctionBid, R as ChainGrpcMintApi, Rg as Pool, Rh as ExchangeModuleParams, Rm as Params, Rp as AccountsResponse, S as ChainRestBankApi, S_ as VoteOption, Sg as TradingRewardCampaignInfo, Sh as EvmBlobConfig, Sm as PermissionPolicyManagerCapability, Sp as RestApiResponse, T as ChainGrpcDistributionApi, Tg as GrpcDelegation, Th as EvmLog, Tm as PermissionRoleActors, Tp as AuthorityMetadata, U as ChainGrpcGovApi, Ug as ValidatorCommission, Uh as FeeDiscountTierTTL, Um as BatchCancelSpotOrdersAuthz, Up as AuctionEventAuctionResult, V as ChainGrpcEvmApi, Vg as UnBondingDelegation, Vh as FeeDiscountSchedule, Vm as PeggyModuleParams, Vp as AuctionBid, Wg as ValidatorDescription, Wh as GrpcCampaignRewardPool, Wm as BatchCreateDerivativeLimitOrdersAuthz, Wp as AuctionEventAuctionStart, Xg as ContractCodeHistoryOperationType, Xh as GrpcChainSpotMarket, Xm as CreateSpotLimitOrderAuthz, Xp as AuctionModuleStateResponse, Yg as ContractCodeHistoryEntry, Yh as GrpcChainPosition, Ym as CreateDerivativeMarketOrderAuthz, Yp as AuctionModuleStateParams, Zg as ContractCodeHistoryOperationTypeMap, Zh as GrpcDenomDecimals, Zm as CreateSpotMarketOrderAuthz, Zp as AuctionParams, _ as ChainGrpcEvmTransformer, __ as ProposalDeposit, _g as OrderType, _h as Account, _m as PermissionAddressRoles, a as ChainGrpcExchangeTransformer, a_ as MarketingInfo, ag as GrpcMarketStatusMap, ah as GrpcRedemptionSchedule, am as GrpcPermissionAddressVoucher, b as ChainRestWasmApi, b_ as TallyResult, bg as TradeRewardCampaign, bh as EthAccount, bm as PermissionNamespace, c as ChainGrpcCommonTransformer, c_ as GovModuleStateParams, cg as GrpcOrderTypeMap, ch as OracleTypeMap, cm as GrpcPermissionPolicyStatusManagerCapability, d as ChainGrpcPeggyTransformer, d_ as GrpcGovernanceVotingParams, dg as GrpcSpotMarketOrder, dh as BankModuleParams, dm as GrpcPermissionRoleIDs, e_ as GoogleProtoBufAny, eg as GrpcFeeDiscountAccountInfo, eh as GrantAuthorization, em as GrpcAuctionEventAuctionStart, f as ChainGrpcAuthZTransformer, f_ as GrpcProposal, fg as GrpcSpotOrder, fh as GrpcBankParams, fm as GrpcPermissionRoleManager, g as ChainGrpcAuthTransformer, g_ as Proposal, gg as IsOptedOutOfRewards, gh as TotalSupply, gm as PermissionActorRoles, h as ChainGrpcBankTransformer, h_ as GrpcVote, hg as GrpcTradingRewardCampaignInfo, hh as SendEnabled, hm as PermissionActionMap, i as ChainGrpcPermissionsTransformer, i_ as GrpcContractInfo, ig as GrpcMarketStatus, ih as GrpcInsuranceParams, im as GrpcPermissionActorRoles, j as ChainGrpcTxFeesApi, jg as GrpcStakingParams, jh as GrpcEvmParams, jm as OracleModuleParams, jp as GrpcDelegationDelegatorReward, k as ChainGrpcStakingApi, kg as GrpcReDelegationEntryResponse, kh as GrpcEvmChainConfig, km as PermissionsModuleParams, kp as DistributionModuleParams, l as ChainGrpcTxFeesTransformer, l_ as GrpcGovernanceDepositParams, lg as GrpcPointsMultiplier, lh as GrpcMintParams, lm as GrpcPermissionRole, m as ChainGrpcMintTransformer, m_ as GrpcTallyResult, mg as GrpcTradingRewardCampaignBoostInfo, mh as Metadata, mm as GrpcPermissionsParams, n as ChainGrpcTokenFactoryTransformer, n_ as GrpcCodeInfoResponse, ng as GrpcFeeDiscountTierInfo, nh as GrantWithDecodedAuthorization, nm as GrpcAuctionLastAuctionResult, o as ChainGrpcStakingTransformer, o_ as TokenInfo, og as GrpcOrderInfo, oh as InsuranceFund, om as GrpcPermissionNamespace, p as ChainGrpcWasmTransformer, p_ as GrpcProposalDeposit, pg as GrpcTradeRewardCampaign, ph as GrpcSupply, pm as GrpcPermissionsNamespace, qg as ContractAccountBalance, qh as GrpcChainFullDerivativeMarket, qm as CancelSpotOrderAuthz, qp as AuctionModuleParams, r as ChainGrpcDistributionTransformer, r_ as GrpcContractCodeHistoryEntry, rg as GrpcFeeDiscountTierTTL, rh as GrpcInsuranceFund, rm as GrpcAuctionParams, s as ChainGrpcAuctionTransformer, s_ as grpcContractInfo, sg as GrpcOrderType, sh as InsuranceModuleParams, sm as GrpcPermissionPolicyStatus, t as ChainGrpcInsuranceFundTransformer, t_ as GrpcAbsoluteTxPosition, tg as GrpcFeeDiscountSchedule, th as GrantAuthorizationWithDecodedAuthorization, tm as GrpcAuctionEventBid, u as ChainGrpcErc20Transformer, u_ as GrpcGovernanceTallyParams, ug as GrpcSpotMarket, uh as MinModuleParams, um as GrpcPermissionRoleActors, v as ChainGrpcGovTransformer, v_ as ProposalStatus, vg as OrderTypeMap, vh as AuthBaseAccount, vm as PermissionAddressVoucher, w as ChainGrpcTokenFactoryApi, w_ as WeightedVoteOption, wg as Delegation, wh as EvmChainConfig, wm as PermissionRole, wp as NodeInfoRestResponse, x as ChainRestAuthApi, x_ as Vote, xg as TradingRewardCampaignBoostInfo, xh as PubKey, xm as PermissionParams, xp as ChainModule, y as ChainRestTendermintApi, y_ as ProposalStatusMap, yg as PointsMultiplier, yh as AuthModuleParams, ym as PermissionGenesisState, z as ChainGrpcBankApi, zg as ReDelegation, zh as ExchangeParams, zm as TokenPair, zp as BaseAccountRestResponse } from "../index-DrWYgvch.cjs";
6
+ import "../index-DWbxb1AB.cjs";
7
+ import { bt as OracleType } from "../index-PO0ZN7MW.cjs";
8
+ import "../index-CO3Y9drx.cjs";
9
+ import "../index-DUviIeCX.cjs";
10
10
  export { AbsoluteTxPosition, Account, AccountResponse, AccountsResponse, AuctionBid, AuctionCurrentBasket, AuctionEventAuctionResult, AuctionEventAuctionStart, AuctionEventBid, AuctionLastAuctionResult, AuctionModuleParams, AuctionModuleState, AuctionModuleStateParams, AuctionModuleStateResponse, AuctionParams, AuthBaseAccount, AuthModuleParams, AuthorityMetadata, BalancesResponse, BankModuleParams, BaseAccountRestResponse, BatchCancelDerivativeOrdersAuthz, BatchCancelSpotOrdersAuthz, BatchCreateDerivativeLimitOrdersAuthz, BatchCreateSpotLimitOrdersAuthz, BlockLatestRestResponse, BondStatus, CampaignRewardPool, CancelDerivativeOrderAuthz, CancelSpotOrderAuthz, ChainDenomDecimal, ChainDenomMinNotional, ChainDerivativePosition, ChainGrpcAuctionApi, ChainGrpcAuctionTransformer, ChainGrpcAuthApi, ChainGrpcAuthTransformer, ChainGrpcAuthZApi, ChainGrpcAuthZTransformer, ChainGrpcBankApi, ChainGrpcBankTransformer, ChainGrpcCommonTransformer, ChainGrpcDistributionApi, ChainGrpcDistributionTransformer, ChainGrpcErc20Api, ChainGrpcErc20Transformer, ChainGrpcEvmApi, ChainGrpcEvmTransformer, ChainGrpcExchangeApi, ChainGrpcExchangeTransformer, ChainGrpcGovApi, ChainGrpcGovTransformer, ChainGrpcIbcApi, ChainGrpcInsuranceFundApi, ChainGrpcInsuranceFundTransformer, ChainGrpcMintApi, ChainGrpcMintTransformer, ChainGrpcOracleApi, ChainGrpcPeggyApi, ChainGrpcPeggyTransformer, ChainGrpcPermissionsApi, ChainGrpcPermissionsTransformer, ChainGrpcStakingApi, ChainGrpcStakingTransformer, ChainGrpcTendermintApi, ChainGrpcTokenFactoryApi, ChainGrpcTokenFactoryTransformer, ChainGrpcTxFeesApi, ChainGrpcTxFeesTransformer, ChainGrpcWasmApi, ChainGrpcWasmTransformer, ChainGrpcWasmXApi, ChainModule, ChainPosition, ChainRestAuthApi, ChainRestBankApi, ChainRestTendermintApi, ChainRestWasmApi, CodeInfoResponse, ContractAccountBalance, ContractAccountsBalanceWithPagination, ContractCodeHistoryEntry, ContractCodeHistoryOperationType, ContractCodeHistoryOperationTypeMap, ContractInfo, ContractStateWithPagination, CosmosAccountRestResponse, CreateDerivativeLimitOrderAuthz, CreateDerivativeMarketOrderAuthz, CreateSpotLimitOrderAuthz, CreateSpotMarketOrderAuthz, Delegation, DenomBalance, DenomOwnersResponse, DepositProposalParams, DistributionModuleParams, EthAccount, EvmBlobConfig, EvmBlobScheduleConfig, EvmChainConfig, EvmLog, EvmParams, ExchangeModuleParams, ExchangeParams, FactoryDenomWithMetadata, FeeDiscountAccountInfo, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, GenericAuthorization, GoogleProtoBufAny, GovModuleStateParams, Grant, GrantAuthorization, GrantAuthorizationWithDecodedAuthorization, GrantWithDecodedAuthorization, GrpcAbsoluteTxPosition, GrpcAuctionBid, GrpcAuctionEventAuctionResult, GrpcAuctionEventAuctionStart, GrpcAuctionEventBid, GrpcAuctionLastAuctionResult, GrpcAuctionParams, GrpcBankParams, GrpcCampaignRewardPool, GrpcChainDerivativeMarket, GrpcChainDerivativePosition, GrpcChainFullDerivativeMarket, GrpcChainFullSpotMarket, GrpcChainPosition, GrpcChainSpotMarket, GrpcCodeInfoResponse, GrpcContractCodeHistoryEntry, GrpcContractInfo, GrpcDecCoin, GrpcDelegation, GrpcDelegationDelegatorReward, GrpcDelegationResponse, GrpcDenomDecimals, GrpcDenomMinNotional, GrpcDistributionParams, GrpcEvmBlobConfig, GrpcEvmBlobScheduleConfig, GrpcEvmChainConfig, GrpcEvmLog, GrpcEvmParams, GrpcExchangeParams, GrpcFeeDiscountAccountInfo, GrpcFeeDiscountSchedule, GrpcFeeDiscountTierInfo, GrpcFeeDiscountTierTTL, GrpcGovernanceDepositParams, GrpcGovernanceTallyParams, GrpcGovernanceVotingParams, GrpcInsuranceFund, GrpcInsuranceParams, GrpcMarketStatus, GrpcMarketStatusMap, GrpcMintParams, GrpcOracleParams, GrpcOrderInfo, GrpcOrderType, GrpcOrderTypeMap, GrpcParams, GrpcPeggyParams, GrpcPermissionActorRoles, GrpcPermissionAddressVoucher, GrpcPermissionNamespace, GrpcPermissionPolicyStatus, GrpcPermissionPolicyStatusManagerCapability, GrpcPermissionRole, GrpcPermissionRoleActors, GrpcPermissionRoleIDs, GrpcPermissionRoleManager, GrpcPermissionsNamespace, GrpcPermissionsParams, GrpcPointsMultiplier, GrpcPool, GrpcProposal, GrpcProposalDeposit, ProposalStatus as GrpcProposalStatus, ProposalStatus, GrpcReDelegation, GrpcReDelegationEntryResponse, GrpcReDelegationResponse, GrpcRedemptionSchedule, GrpcSpotMarket, GrpcSpotMarketOrder, GrpcSpotOrder, GrpcStakingParams, GrpcSupply, GrpcTallyResult, GrpcTokenPair, GrpcTradeRewardCampaign, GrpcTradingRewardCampaignBoostInfo, GrpcTradingRewardCampaignInfo, GrpcTxFeesEipBaseFee, GrpcTxFeesParams, GrpcUnbondingDelegation, GrpcUnbondingDelegationEntry, GrpcValidator, GrpcValidatorCommission, GrpcValidatorCommissionRates, GrpcValidatorDescription, GrpcVote, InsuranceFund, InsuranceModuleParams, IsOptedOutOfRewards, MarketingInfo, Metadata, MinModuleParams, NodeInfoRestResponse, OracleModuleParams, OracleType, OracleTypeMap, OrderType, OrderTypeMap, Params, PeggyModuleParams, PermissionActionMap, PermissionActorRoles, PermissionAddressRoles, PermissionAddressVoucher, PermissionGenesisState, PermissionNamespace, PermissionParams, PermissionPolicyManagerCapability, PermissionPolicyStatus, PermissionRole, PermissionRoleActors, PermissionRoleIDs, PermissionRoleManager, PermissionVoucher, PermissionsModuleParams, PointsMultiplier, Pool, Proposal, ProposalDeposit, ProposalStatusMap, PubKey, ReDelegation, RestApiResponse, SendEnabled, StakingModuleParams, TallyResult, TokenFactoryModuleParams, TokenFactoryModuleState, TokenInfo, TokenPair, TotalSupply, TradeRewardCampaign, TradingRewardCampaignBoostInfo, TradingRewardCampaignInfo, TxFeesEipBaseFee, TxFeesModuleStateParams, UnBondingDelegation, Validator, ValidatorCommission, ValidatorDescription, ValidatorRewards, Vote, VoteOption, VoteOptionMap, WeightedVoteOption, grpcContractInfo };
@@ -2,12 +2,12 @@ require('../utils-V1uXtT51.cjs');
2
2
  require('../defineProperty-dyr5BsvG.cjs');
3
3
  require('../time-B4xLc27Y.cjs');
4
4
  require('../grpc-DQDVCGpY.cjs');
5
- require('../BaseGrpcConsumer-DUwCngI6.cjs');
6
- require('../BaseIndexerGrpcConsumer-BGLVnJtw.cjs');
5
+ require('../BaseGrpcConsumer-EtEQfhmo.cjs');
6
+ require('../BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
7
7
  require('../BaseRestConsumer-uSzCOit7.cjs');
8
- const require_IndexerGrpcWeb3GwApi = require('../IndexerGrpcWeb3GwApi-BgWT2tWK.cjs');
9
- const require_StreamManagerV2 = require('../StreamManagerV2-XjbYIH1t.cjs');
10
- require('../types-DvoTS2v1.cjs');
8
+ const require_IndexerGrpcWeb3GwApi = require('../IndexerGrpcWeb3GwApi-BbmDpT6t.cjs');
9
+ const require_StreamManagerV2 = require('../StreamManagerV2-DrMt8n5L.cjs');
10
+ require('../types-BTuy007B.cjs');
11
11
 
12
12
  exports.AccessType = require_IndexerGrpcWeb3GwApi.AccessType;
13
13
  exports.AccessTypeCode = require_IndexerGrpcWeb3GwApi.AccessTypeCode;