@injectivelabs/sdk-ts 1.17.2 → 1.17.3

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 (95) hide show
  1. package/dist/cjs/{AbacusGrpcApi-DXSuhb6R.cjs → AbacusGrpcApi-BSFhRFgK.cjs} +6 -5
  2. package/dist/cjs/{BaseGrpcConsumer-EtEQfhmo.cjs → BaseGrpcConsumer-B_mvIpmK.cjs} +34 -5
  3. package/dist/cjs/BaseGrpcConsumer-DjBlHZXf.d.cts +96 -0
  4. package/dist/cjs/{BaseIndexerGrpcConsumer-CW1kTn-_.cjs → BaseIndexerGrpcConsumer-DRpriWCr.cjs} +1 -1
  5. package/dist/cjs/{ChainGrpcExchangeApi-CF9ATYqN.cjs → ChainGrpcExchangeApi-6SEFLrhR.cjs} +7 -6
  6. package/dist/cjs/{ChainRestTendermintApi-vL0g-BF-.cjs → ChainRestTendermintApi-B2934YcX.cjs} +11 -9
  7. package/dist/cjs/{IndexerGrpcWeb3GwApi-C7kkr4Il.cjs → IndexerGrpcWeb3GwApi-DzqoC5Jw.cjs} +8 -7
  8. package/dist/cjs/{MsgSetDenomMetadata-CKvxIq_t.cjs → MsgSetDenomMetadata-CJFO-LDN.cjs} +1 -1
  9. package/dist/cjs/{OLPGrpcApi-BCCb6fBZ.cjs → OLPGrpcApi-REqBM4Dt.cjs} +6 -5
  10. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-Ayot_18R.cjs → QueryTradingStrategyContractTotalStrategies-BWV29f7F.cjs} +3 -3
  11. package/dist/cjs/{StreamManagerV2-igv0mn2I.cjs → StreamManagerV2-bxmrwMoi.cjs} +78 -63
  12. package/dist/cjs/{chain-CGHrf7gg.cjs → chain-CtjB0xod.cjs} +92 -74
  13. package/dist/cjs/client/abacus.cjs +2 -2
  14. package/dist/cjs/client/abacus.d.cts +4 -2
  15. package/dist/cjs/client/chain.cjs +4 -4
  16. package/dist/cjs/client/chain.d.cts +8 -9
  17. package/dist/cjs/client/indexer.cjs +4 -4
  18. package/dist/cjs/client/indexer.d.cts +8 -9
  19. package/dist/cjs/client/olp.cjs +3 -3
  20. package/dist/cjs/client/olp.d.cts +4 -2
  21. package/dist/cjs/client/wasm.cjs +5 -5
  22. package/dist/cjs/client/wasm.d.cts +3 -2
  23. package/dist/cjs/core/accounts.d.cts +8 -9
  24. package/dist/cjs/core/modules.cjs +7 -7
  25. package/dist/cjs/core/modules.d.cts +8 -9
  26. package/dist/cjs/core/tx.cjs +5 -5
  27. package/dist/cjs/core/tx.d.cts +8 -9
  28. package/dist/cjs/cosmjs.cjs +5 -5
  29. package/dist/cjs/cosmjs.d.cts +2 -3
  30. package/dist/cjs/exports.cjs +5 -5
  31. package/dist/cjs/exports.d.cts +2 -3
  32. package/dist/cjs/{index-D6ubyMlR.d.cts → index-B-ODtCMF.d.cts} +7 -7
  33. package/dist/{esm/index-DOyiZiUK.d.ts → cjs/index-B3Hd6YoY.d.cts} +2 -3
  34. package/dist/{esm/index-BJQt8IpY.d.ts → cjs/index-BdSf-iSf.d.cts} +2 -3
  35. package/dist/cjs/{index-DjRtDAy5.d.cts → index-Bp-AQIP3.d.cts} +2925 -1124
  36. package/dist/{esm/index-Dn4OxoMy.d.ts → cjs/index-CSWj2FPd.d.cts} +4 -3
  37. package/dist/cjs/{index-DemZnO3c.d.cts → index-C_ioefRg.d.cts} +81 -175
  38. package/dist/{esm/index-C_3bL-y4.d.ts → cjs/index-k83cbNQj.d.cts} +1 -1
  39. package/dist/cjs/index.cjs +12 -12
  40. package/dist/cjs/index.d.cts +9 -10
  41. package/dist/cjs/service.d.cts +3 -4
  42. package/dist/cjs/{tx-VwbP3UdI.cjs → tx-BXn3eqwi.cjs} +8 -7
  43. package/dist/{esm/tx_pb-zz4o4hHG.d.ts → cjs/tx_pb-Wr-aZfKH.d.cts} +186 -6
  44. package/dist/cjs/types.d.cts +3 -4
  45. package/dist/cjs/utils.d.cts +8 -9
  46. package/dist/esm/{AbacusGrpcApi-Ce1hRKuD.js → AbacusGrpcApi-Ccjmvton.js} +6 -5
  47. package/dist/esm/BaseGrpcConsumer-CBQRoq72.d.ts +96 -0
  48. package/dist/esm/{BaseGrpcConsumer-BTWyD665.js → BaseGrpcConsumer-D3CPxlPN.js} +34 -5
  49. package/dist/esm/{BaseIndexerGrpcConsumer-BTZzA_Eg.js → BaseIndexerGrpcConsumer-DQUmeane.js} +1 -1
  50. package/dist/esm/{ChainGrpcExchangeApi-DqdCst2Z.js → ChainGrpcExchangeApi-DQvLWB5R.js} +7 -6
  51. package/dist/esm/{ChainRestTendermintApi-BT_yOkAV.js → ChainRestTendermintApi-DUK7FvxW.js} +11 -9
  52. package/dist/esm/{IndexerGrpcWeb3GwApi-B2mgt9tE.js → IndexerGrpcWeb3GwApi-yHniiZ22.js} +8 -7
  53. package/dist/esm/{MsgSetDenomMetadata-CXgkQ3LF.js → MsgSetDenomMetadata-BNYIha2C.js} +1 -1
  54. package/dist/esm/{OLPGrpcApi-DUCfcca_.js → OLPGrpcApi-8NQqfKhT.js} +6 -5
  55. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-CZWdw3BE.js → QueryTradingStrategyContractTotalStrategies-D_4tvQEy.js} +3 -3
  56. package/dist/esm/{StreamManagerV2-B9xiJYLj.js → StreamManagerV2-BGjxaWMK.js} +78 -63
  57. package/dist/esm/{chain-CHX5uSpc.js → chain-DKislBAW.js} +92 -74
  58. package/dist/esm/client/abacus.d.ts +4 -2
  59. package/dist/esm/client/abacus.js +2 -2
  60. package/dist/esm/client/chain.d.ts +8 -9
  61. package/dist/esm/client/chain.js +4 -4
  62. package/dist/esm/client/indexer.d.ts +8 -9
  63. package/dist/esm/client/indexer.js +4 -4
  64. package/dist/esm/client/olp.d.ts +4 -2
  65. package/dist/esm/client/olp.js +3 -3
  66. package/dist/esm/client/wasm.d.ts +3 -2
  67. package/dist/esm/client/wasm.js +5 -5
  68. package/dist/esm/core/accounts.d.ts +8 -9
  69. package/dist/esm/core/modules.d.ts +8 -9
  70. package/dist/esm/core/modules.js +7 -7
  71. package/dist/esm/core/tx.d.ts +8 -9
  72. package/dist/esm/core/tx.js +5 -5
  73. package/dist/esm/cosmjs.d.ts +2 -3
  74. package/dist/esm/cosmjs.js +5 -5
  75. package/dist/esm/exports.d.ts +2 -3
  76. package/dist/esm/exports.js +5 -5
  77. package/dist/esm/{index-B-SD0p02.d.ts → index-BVWIwmli.d.ts} +2925 -1124
  78. package/dist/{cjs/index-CO3Y9drx.d.cts → esm/index-BhVscuMR.d.ts} +2 -3
  79. package/dist/{cjs/index-lRWP4rKg.d.cts → esm/index-BhybypN9.d.ts} +2 -3
  80. package/dist/esm/{index-Ch477yfL.d.ts → index-Bn3JkjMQ.d.ts} +80 -174
  81. package/dist/esm/{index--sg5xbEP.d.ts → index-BqYLsIZe.d.ts} +1 -1
  82. package/dist/{cjs/index-DWbxb1AB.d.cts → esm/index-Dh15HnVF.d.ts} +4 -3
  83. package/dist/{cjs/index-CGvISJoE.d.cts → esm/index-DpjBqbbT.d.ts} +1 -1
  84. package/dist/esm/index.d.ts +9 -10
  85. package/dist/esm/index.js +12 -12
  86. package/dist/esm/service.d.ts +3 -4
  87. package/dist/esm/{tx-DsGG15fH.js → tx-D0NTtgOO.js} +8 -7
  88. package/dist/{cjs/tx_pb-D-cNmrlO.d.cts → esm/tx_pb-DiV92WM9.d.ts} +186 -6
  89. package/dist/esm/types.d.ts +3 -4
  90. package/dist/esm/utils.d.ts +8 -9
  91. package/package.json +5 -5
  92. package/dist/cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts +0 -1841
  93. package/dist/cjs/any_pb-CutLnOUR.d.cts +0 -187
  94. package/dist/esm/BaseGrpcConsumer-6x4RlZ16.d.ts +0 -1841
  95. package/dist/esm/any_pb-DBt7qvTr.d.ts +0 -187
@@ -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-EtEQfhmo.cjs');
3
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B_mvIpmK.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);
@@ -42,11 +42,12 @@ var AbacusGrpcTransformer = class {
42
42
  //#endregion
43
43
  //#region src/client/abacus/grpc/AbacusGrpcApi.ts
44
44
  var AbacusGrpcApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
45
- constructor(endpoint) {
46
- super(endpoint);
45
+ constructor(..._args) {
46
+ super(..._args);
47
47
  require_defineProperty._defineProperty(this, "module", __injectivelabs_exceptions.IndexerErrorModule.Abacus);
48
- require_defineProperty._defineProperty(this, "client", void 0);
49
- this.client = new __injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb_client.PointsSvcClient(this.transport);
48
+ }
49
+ get client() {
50
+ return this.initClient(__injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb_client.PointsSvcClient);
50
51
  }
51
52
  async fetchAccountLatestPoints(address) {
52
53
  const request = __injectivelabs_abacus_proto_ts_v2_generated_points_svc_pb.PointsLatestForAccountRequest.create({ accountAddress: address });
@@ -40,27 +40,56 @@ var GrpcWebRpcTransport = class {
40
40
  * It uses the GrpcWebRpcTransport with GrpcWebFetchTransport from @protobuf-ts/grpcweb-transport.
41
41
  */
42
42
  var BaseGrpcConsumer = class {
43
- constructor(endpoint) {
44
- require_defineProperty._defineProperty(this, "transport", void 0);
43
+ constructor(endpoint, options) {
44
+ require_defineProperty._defineProperty(this, "_client", void 0);
45
+ require_defineProperty._defineProperty(this, "endpoint", void 0);
45
46
  require_defineProperty._defineProperty(this, "module", "");
47
+ require_defineProperty._defineProperty(this, "transport", void 0);
46
48
  require_defineProperty._defineProperty(this, "metadata", void 0);
47
- require_defineProperty._defineProperty(this, "endpoint", void 0);
49
+ require_defineProperty._defineProperty(this, "options", void 0);
50
+ this.options = options;
48
51
  this.endpoint = endpoint;
49
- this.transport = new GrpcWebRpcTransport(endpoint, { headers: {} });
52
+ this.transport = new GrpcWebRpcTransport(endpoint, options);
50
53
  }
54
+ /**
55
+ * @deprecated Pass options into the constructor instead
56
+ */
51
57
  setMetadata(map) {
52
58
  this.metadata = map;
53
- this.transport = new GrpcWebRpcTransport(this.endpoint, { headers: this.metadata });
59
+ this.transport = new GrpcWebRpcTransport(this.endpoint, {
60
+ ...this.options,
61
+ meta: this.metadata
62
+ });
63
+ this._client = void 0;
54
64
  return this;
55
65
  }
66
+ /**
67
+ * @deprecated Manage options within the constructor instead
68
+ */
56
69
  clearMetadata() {
57
70
  this.metadata = void 0;
71
+ this.transport = new GrpcWebRpcTransport(this.endpoint, this.options);
72
+ this._client = void 0;
58
73
  }
59
74
  getTransport() {
60
75
  return this.transport;
61
76
  }
62
77
  /**
78
+ * Lazily initializes and returns the gRPC client.
79
+ * Call this from a getter in subclasses to avoid constructor boilerplate.
80
+ *
81
+ * @example
82
+ * private get client() {
83
+ * return this.initClient(MyGrpcClient)
84
+ * }
85
+ */
86
+ initClient(ClientClass) {
87
+ if (!this._client) this._client = new ClientClass(this.transport);
88
+ return this._client;
89
+ }
90
+ /**
63
91
  * Builds RpcOptions with metadata
92
+ * @deprecated Options should be managed externally and passed into the constructor instead
64
93
  */
65
94
  getRpcOptions() {
66
95
  return { meta: this.metadata || {} };
@@ -0,0 +1,96 @@
1
+ import { At as MethodInfo, Dt as DuplexStreamingCall, Et as UnaryCall, Ot as ClientStreamingCall, Tt as RpcTransport, f as GrpcWebTransportAdditionalOptions, kt as ServerStreamingCall, wt as RpcOptions } from "./index-Bp-AQIP3.cjs";
2
+
3
+ //#region src/client/base/GrpcWebRpcTransport.d.ts
4
+
5
+ /**
6
+ * GrpcWebRpcTransport provides a simple wrapper around GrpcWebFetchTransport
7
+ * from @protobuf-ts/grpcweb-transport for use with protobuf-ts generated clients.
8
+ *
9
+ * This transport works in browser, Node.js, and React Native environments.
10
+ */
11
+ declare class GrpcWebRpcTransport implements RpcTransport {
12
+ private transport;
13
+ constructor(baseUrl: string, options?: GrpcWebTransportAdditionalOptions);
14
+ mergeOptions(options?: Partial<RpcOptions>): RpcOptions;
15
+ unary<I extends object, O extends object>(method: MethodInfo<I, O>, input: I, options: RpcOptions): UnaryCall<I, O>;
16
+ serverStreaming<I extends object, O extends object>(method: MethodInfo<I, O>, input: I, options: RpcOptions): ServerStreamingCall<I, O>;
17
+ clientStreaming<I extends object, O extends object>(method: MethodInfo<I, O>, options: RpcOptions): ClientStreamingCall<I, O>;
18
+ duplex<I extends object, O extends object>(method: MethodInfo<I, O>, options: RpcOptions): DuplexStreamingCall<I, O>;
19
+ }
20
+ //#endregion
21
+ //#region src/client/base/BaseGrpcConsumer.d.ts
22
+ /**
23
+ * BaseGrpcConsumer provides base functionality for all gRPC consumers.
24
+ * It uses the GrpcWebRpcTransport with GrpcWebFetchTransport from @protobuf-ts/grpcweb-transport.
25
+ */
26
+ declare class BaseGrpcConsumer {
27
+ private _client;
28
+ protected endpoint: string;
29
+ protected module: string;
30
+ protected transport: GrpcWebRpcTransport;
31
+ protected metadata?: Record<string, string>;
32
+ protected options?: GrpcWebTransportAdditionalOptions;
33
+ constructor(endpoint: string, options?: GrpcWebTransportAdditionalOptions);
34
+ /**
35
+ * @deprecated Pass options into the constructor instead
36
+ */
37
+ setMetadata(map: Record<string, string>): this;
38
+ /**
39
+ * @deprecated Manage options within the constructor instead
40
+ */
41
+ clearMetadata(): void;
42
+ getTransport(): GrpcWebRpcTransport;
43
+ /**
44
+ * Lazily initializes and returns the gRPC client.
45
+ * Call this from a getter in subclasses to avoid constructor boilerplate.
46
+ *
47
+ * @example
48
+ * private get client() {
49
+ * return this.initClient(MyGrpcClient)
50
+ * }
51
+ */
52
+ protected initClient<TClient>(ClientClass: new (transport: GrpcWebRpcTransport) => TClient): TClient;
53
+ /**
54
+ * Builds RpcOptions with metadata
55
+ * @deprecated Options should be managed externally and passed into the constructor instead
56
+ */
57
+ protected getRpcOptions(): RpcOptions;
58
+ /**
59
+ * Retry a gRPC call with exponential backoff
60
+ */
61
+ protected retry<TResponse>(grpcCall: () => Promise<TResponse>, retries?: number, delay?: number): Promise<TResponse>;
62
+ /**
63
+ * Extracts the ABCI error code from a gRPC error message.
64
+ * Chain errors contain patterns like: {key:"ABCICode" value:"100"}
65
+ */
66
+ private getABCICodeFromMessage;
67
+ /**
68
+ * Extracts the codespace/module from a gRPC error message.
69
+ * Chain errors contain patterns like: {key:"Codespace" value:"exchange"}
70
+ */
71
+ private getCodespaceFromMessage;
72
+ /**
73
+ * Centralized error handler for gRPC calls.
74
+ * When the error contains chain error details (ABCI code and codespace),
75
+ * throws a TransactionException which will map the error to a user-friendly message.
76
+ * Otherwise throws a GrpcUnaryRequestException for generic gRPC errors.
77
+ */
78
+ protected handleGrpcError(e: unknown, context: string): never;
79
+ /**
80
+ * Generic wrapper for gRPC calls with retry and error handling
81
+ * Simplifies the common pattern of: retry -> await response -> handle errors
82
+ *
83
+ * Usage with explicit type parameter:
84
+ * ```typescript
85
+ * const response = await this.executeGrpcCall<QueryParamsRequest, QueryParamsResponse>(
86
+ * request,
87
+ * this.client.params.bind(this.client),
88
+ * )
89
+ * ```
90
+ * @template TRequest - The request message type
91
+ * @template TResponse - The response message type
92
+ */
93
+ protected executeGrpcCall<TRequest extends object = object, TResponse extends object = object>(request: TRequest, clientMethod: (req: TRequest, options?: RpcOptions) => UnaryCall<TRequest, TResponse>): Promise<TResponse>;
94
+ }
95
+ //#endregion
96
+ export { BaseGrpcConsumer as t };
@@ -1,4 +1,4 @@
1
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
1
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B_mvIpmK.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-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-vL0g-BF-.cjs');
5
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
4
+ const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-B2934YcX.cjs');
5
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B_mvIpmK.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);
@@ -260,11 +260,12 @@ var ChainGrpcExchangeTransformer = class ChainGrpcExchangeTransformer {
260
260
  * @category Chain Grpc API
261
261
  */
262
262
  var ChainGrpcExchangeApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
263
- constructor(endpoint) {
264
- super(endpoint);
263
+ constructor(..._args) {
264
+ super(..._args);
265
265
  require_defineProperty._defineProperty(this, "module", require_ChainRestTendermintApi.ChainModule.Exchange);
266
- require_defineProperty._defineProperty(this, "client", void 0);
267
- this.client = new __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb_client.QueryClient(this.transport);
266
+ }
267
+ get client() {
268
+ return this.initClient(__injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb_client.QueryClient);
268
269
  }
269
270
  async fetchModuleParams() {
270
271
  const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v1beta1_query_pb.QueryExchangeParamsRequest.create();
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
4
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B_mvIpmK.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");
@@ -108,11 +108,12 @@ var ChainGrpcAuthTransformer = class ChainGrpcAuthTransformer {
108
108
  * @category Chain Grpc API
109
109
  */
110
110
  var ChainGrpcAuthApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
111
- constructor(endpoint) {
112
- super(endpoint);
111
+ constructor(..._args) {
112
+ super(..._args);
113
113
  require_defineProperty._defineProperty(this, "module", ChainModule.Auth);
114
- require_defineProperty._defineProperty(this, "client", void 0);
115
- this.client = new __injectivelabs_core_proto_ts_v2_generated_cosmos_auth_v1beta1_query_pb_client.QueryClient(this.transport);
114
+ }
115
+ get client() {
116
+ return this.initClient(__injectivelabs_core_proto_ts_v2_generated_cosmos_auth_v1beta1_query_pb_client.QueryClient);
116
117
  }
117
118
  async fetchModuleParams() {
118
119
  const request = __injectivelabs_core_proto_ts_v2_generated_cosmos_auth_v1beta1_query_pb.QueryParamsRequest.create();
@@ -140,11 +141,12 @@ var ChainGrpcAuthApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
140
141
  * @category Chain Grpc API
141
142
  */
142
143
  var ChainGrpcTendermintApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
143
- constructor(endpoint) {
144
- super(endpoint);
144
+ constructor(..._args) {
145
+ super(..._args);
145
146
  require_defineProperty._defineProperty(this, "module", ChainModule.Tendermint);
146
- require_defineProperty._defineProperty(this, "client", void 0);
147
- this.client = new __injectivelabs_core_proto_ts_v2_generated_cosmos_base_tendermint_v1beta1_query_pb_client.ServiceClient(this.transport);
147
+ }
148
+ get client() {
149
+ return this.initClient(__injectivelabs_core_proto_ts_v2_generated_cosmos_base_tendermint_v1beta1_query_pb_client.ServiceClient);
148
150
  }
149
151
  async fetchLatestBlock() {
150
152
  const request = __injectivelabs_core_proto_ts_v2_generated_cosmos_base_tendermint_v1beta1_query_pb.GetLatestBlockRequest.create();
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
4
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-DRpriWCr.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");
@@ -79,11 +79,12 @@ const IndexerModule = { ...__injectivelabs_exceptions.IndexerErrorModule };
79
79
  * @deprecated use IndexerGrpcWeb3GwApi
80
80
  */
81
81
  var IndexerGrpcTransactionApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
82
- constructor(endpoint) {
83
- super(endpoint);
82
+ constructor(..._args) {
83
+ super(..._args);
84
84
  require_defineProperty._defineProperty(this, "module", IndexerModule.Transaction);
85
- require_defineProperty._defineProperty(this, "client", void 0);
86
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_exchange_rpc_pb_client.InjectiveExchangeRPCClient(this.transport);
85
+ }
86
+ get client() {
87
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_exchange_rpc_pb_client.InjectiveExchangeRPCClient);
87
88
  }
88
89
  async prepareTxRequest(args) {
89
90
  const { address, chainId, message, memo, estimateGas = true, gasLimit = __injectivelabs_utils.DEFAULT_GAS_LIMIT, feeDenom = __injectivelabs_utils.DEFAULT_BRIDGE_FEE_DENOM, feePrice = __injectivelabs_utils.DEFAULT_BRIDGE_FEE_PRICE, timeoutHeight } = args;
@@ -188,8 +189,8 @@ var IndexerGrpcTransactionApi = class extends require_BaseIndexerGrpcConsumer.Ba
188
189
  * @category Indexer Grpc API
189
190
  */
190
191
  var IndexerGrpcWeb3GwApi = class extends IndexerGrpcTransactionApi {
191
- constructor(endpoint) {
192
- super(endpoint);
192
+ constructor(..._args) {
193
+ super(..._args);
193
194
  require_defineProperty._defineProperty(this, "module", IndexerModule.Web3Gw);
194
195
  }
195
196
  async prepareEip712Request({ address, chainId, message, memo, sequence, accountNumber, estimateGas = false, gasLimit = __injectivelabs_utils.DEFAULT_GAS_LIMIT, feeDenom = __injectivelabs_utils.DEFAULT_BRIDGE_FEE_DENOM, feePrice = __injectivelabs_utils.DEFAULT_BRIDGE_FEE_PRICE, timeoutHeight, eip712Version = "v1" }) {
@@ -3,7 +3,7 @@ const require_utils = require('./utils-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
4
  const require_accounts = require('./accounts-CHKUxDIf.cjs');
5
5
  const require_MsgBase = require('./MsgBase-DqOmzCyS.cjs');
6
- const require_ChainGrpcExchangeApi = require('./ChainGrpcExchangeApi-CF9ATYqN.cjs');
6
+ const require_ChainGrpcExchangeApi = require('./ChainGrpcExchangeApi-6SEFLrhR.cjs');
7
7
  const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-C-NQ72VM.cjs');
8
8
  let viem = require("viem");
9
9
  let __injectivelabs_utils = require("@injectivelabs/utils");
@@ -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-CW1kTn-_.cjs');
4
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-DRpriWCr.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);
@@ -250,11 +250,12 @@ var DmmGrpcTransformer = class DmmGrpcTransformer {
250
250
  //#endregion
251
251
  //#region src/client/olp/grpc/OLPGrpcApi.ts
252
252
  var OLPGrpcApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
253
- constructor(endpoint) {
254
- super(endpoint);
253
+ constructor(..._args) {
254
+ super(..._args);
255
255
  require_defineProperty._defineProperty(this, "module", __injectivelabs_exceptions.IndexerErrorModule.OLP);
256
- require_defineProperty._defineProperty(this, "client", void 0);
257
- this.client = new __injectivelabs_olp_proto_ts_v2_generated_dmm_pb_client.InjectiveDmmV2RPCClient(this.transport);
256
+ }
257
+ get client() {
258
+ return this.initClient(__injectivelabs_olp_proto_ts_v2_generated_dmm_pb_client.InjectiveDmmV2RPCClient);
258
259
  }
259
260
  async fetchEpochs(status) {
260
261
  const request = __injectivelabs_olp_proto_ts_v2_generated_dmm_pb.GetEpochsRequest.create();
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_chain = require('./chain-CGHrf7gg.cjs');
4
+ const require_chain = require('./chain-CtjB0xod.cjs');
5
5
  const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-C-NQ72VM.cjs');
6
6
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
7
7
  let __injectivelabs_networks = require("@injectivelabs/networks");
@@ -141,11 +141,11 @@ var NeptuneService = class {
141
141
  * @param network The network to use (default: Mainnet).
142
142
  * @param endpoints Optional custom network endpoints.
143
143
  */
144
- constructor(network = __injectivelabs_networks.Network.MainnetSentry, endpoints) {
144
+ constructor(network = __injectivelabs_networks.Network.MainnetSentry, endpoints, options) {
145
145
  require_defineProperty._defineProperty(this, "client", void 0);
146
146
  require_defineProperty._defineProperty(this, "priceOracleContract", void 0);
147
147
  if (!(0, __injectivelabs_networks.isMainnet)(network)) throw new __injectivelabs_exceptions.GeneralException(/* @__PURE__ */ new Error("Please switch to mainnet network"));
148
- this.client = new require_chain.ChainGrpcWasmApi((endpoints || (0, __injectivelabs_networks.getNetworkEndpoints)(network)).grpc);
148
+ this.client = new require_chain.ChainGrpcWasmApi((endpoints || (0, __injectivelabs_networks.getNetworkEndpoints)(network)).grpc, options);
149
149
  this.priceOracleContract = NEPTUNE_PRICE_CONTRACT;
150
150
  }
151
151
  /**
@@ -1,10 +1,10 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_utils = require('./utils-CDl812vv.cjs');
3
3
  const require_defineProperty = require('./defineProperty-dyr5BsvG.cjs');
4
- const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-EtEQfhmo.cjs');
5
- const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-CW1kTn-_.cjs');
4
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B_mvIpmK.cjs');
5
+ const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-DRpriWCr.cjs');
6
6
  const require_BaseRestConsumer = require('./BaseRestConsumer-uSzCOit7.cjs');
7
- const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-C7kkr4Il.cjs');
7
+ const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-DzqoC5Jw.cjs');
8
8
  const require_types = require('./types-BTuy007B.cjs');
9
9
  let __injectivelabs_utils = require("@injectivelabs/utils");
10
10
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
@@ -2844,11 +2844,12 @@ require_defineProperty._defineProperty(IndexerAccountPortfolioStreamTransformer,
2844
2844
  * @category Indexer Grpc API
2845
2845
  */
2846
2846
  var IndexerGrpcMitoApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
2847
- constructor(endpoint) {
2848
- super(endpoint);
2847
+ constructor(..._args) {
2848
+ super(..._args);
2849
2849
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Mito);
2850
- require_defineProperty._defineProperty(this, "client", void 0);
2851
- this.client = new __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb_client.MitoAPIClient(this.transport);
2850
+ }
2851
+ get client() {
2852
+ return this.initClient(__injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb_client.MitoAPIClient);
2852
2853
  }
2853
2854
  async fetchVault({ contractAddress, slug }) {
2854
2855
  const request = __injectivelabs_mito_proto_ts_v2_generated_goadesign_goagen_mito_api_pb.GetVaultRequest.create();
@@ -3032,11 +3033,12 @@ var IndexerGrpcMitoApi = class extends require_BaseIndexerGrpcConsumer.BaseIndex
3032
3033
  * @category Indexer Grpc API
3033
3034
  */
3034
3035
  var IndexerGrpcMetaApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3035
- constructor(endpoint) {
3036
- super(endpoint);
3036
+ constructor(..._args) {
3037
+ super(..._args);
3037
3038
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Meta);
3038
- require_defineProperty._defineProperty(this, "client", void 0);
3039
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_meta_rpc_pb_client.InjectiveMetaRPCClient(this.transport);
3039
+ }
3040
+ get client() {
3041
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_meta_rpc_pb_client.InjectiveMetaRPCClient);
3040
3042
  }
3041
3043
  async fetchPing() {
3042
3044
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_meta_rpc_pb.PingRequest.create();
@@ -3059,11 +3061,12 @@ var IndexerGrpcMetaApi = class extends require_BaseIndexerGrpcConsumer.BaseIndex
3059
3061
  * @category Indexer Grpc API
3060
3062
  */
3061
3063
  var IndexerGrpcSpotApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3062
- constructor(endpoint) {
3063
- super(endpoint);
3064
+ constructor(..._args) {
3065
+ super(..._args);
3064
3066
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Spot);
3065
- require_defineProperty._defineProperty(this, "client", void 0);
3066
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_spot_exchange_rpc_pb_client.InjectiveSpotExchangeRPCClient(this.transport);
3067
+ }
3068
+ get client() {
3069
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_spot_exchange_rpc_pb_client.InjectiveSpotExchangeRPCClient);
3067
3070
  }
3068
3071
  async fetchMarkets(params) {
3069
3072
  const { baseDenom, marketStatus, quoteDenom, marketStatuses } = params || {};
@@ -3211,11 +3214,12 @@ var IndexerGrpcSpotApi = class extends require_BaseIndexerGrpcConsumer.BaseIndex
3211
3214
  * @category Indexer Grpc API
3212
3215
  */
3213
3216
  var IndexerGrpcOracleApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3214
- constructor(endpoint) {
3215
- super(endpoint);
3217
+ constructor(..._args) {
3218
+ super(..._args);
3216
3219
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Oracle);
3217
- require_defineProperty._defineProperty(this, "client", void 0);
3218
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_oracle_rpc_pb_client.InjectiveOracleRPCClient(this.transport);
3220
+ }
3221
+ get client() {
3222
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_oracle_rpc_pb_client.InjectiveOracleRPCClient);
3219
3223
  }
3220
3224
  async fetchOracleList() {
3221
3225
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_oracle_rpc_pb.OracleListRequest.create();
@@ -3251,11 +3255,12 @@ var IndexerGrpcOracleApi = class extends require_BaseIndexerGrpcConsumer.BaseInd
3251
3255
  * @category Indexer Grpc API
3252
3256
  */
3253
3257
  var IndexerGrpcAccountApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3254
- constructor(endpoint) {
3255
- super(endpoint);
3258
+ constructor(..._args) {
3259
+ super(..._args);
3256
3260
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Account);
3257
- require_defineProperty._defineProperty(this, "client", void 0);
3258
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_accounts_rpc_pb_client.InjectiveAccountsRPCClient(this.transport);
3261
+ }
3262
+ get client() {
3263
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_accounts_rpc_pb_client.InjectiveAccountsRPCClient);
3259
3264
  }
3260
3265
  /**
3261
3266
  * @deprecated - use IndexerGrpcAccountPortfolioApi.fetchPortfolio instead
@@ -3323,11 +3328,12 @@ var IndexerGrpcAccountApi = class extends require_BaseIndexerGrpcConsumer.BaseIn
3323
3328
  * @category Indexer Grpc API
3324
3329
  */
3325
3330
  var IndexerGrpcAuctionApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3326
- constructor(endpoint) {
3327
- super(endpoint);
3331
+ constructor(..._args) {
3332
+ super(..._args);
3328
3333
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Auction);
3329
- require_defineProperty._defineProperty(this, "client", void 0);
3330
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_auction_rpc_pb_client.InjectiveAuctionRPCClient(this.transport);
3334
+ }
3335
+ get client() {
3336
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_auction_rpc_pb_client.InjectiveAuctionRPCClient);
3331
3337
  }
3332
3338
  async fetchAuction(round) {
3333
3339
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_auction_rpc_pb.AuctionEndpointRequest.create();
@@ -3384,11 +3390,12 @@ var IndexerGrpcAuctionApi = class extends require_BaseIndexerGrpcConsumer.BaseIn
3384
3390
  * @category Indexer Grpc API
3385
3391
  */
3386
3392
  var IndexerGrpcTradingApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3387
- constructor(endpoint) {
3388
- super(endpoint);
3393
+ constructor(..._args) {
3394
+ super(..._args);
3389
3395
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Trading);
3390
- require_defineProperty._defineProperty(this, "client", void 0);
3391
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_trading_rpc_pb_client.InjectiveTradingRPCClient(this.transport);
3396
+ }
3397
+ get client() {
3398
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_trading_rpc_pb_client.InjectiveTradingRPCClient);
3392
3399
  }
3393
3400
  async fetchTradingStats() {
3394
3401
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_trading_rpc_pb.GetTradingStatsRequest.create();
@@ -3421,11 +3428,12 @@ var IndexerGrpcTradingApi = class extends require_BaseIndexerGrpcConsumer.BaseIn
3421
3428
  * @category Indexer Grpc API
3422
3429
  */
3423
3430
  var IndexerGrpcExplorerApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3424
- constructor(endpoint) {
3425
- super(endpoint);
3431
+ constructor(..._args) {
3432
+ super(..._args);
3426
3433
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Explorer);
3427
- require_defineProperty._defineProperty(this, "client", void 0);
3428
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb_client.InjectiveExplorerRPCClient(this.transport);
3434
+ }
3435
+ get client() {
3436
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb_client.InjectiveExplorerRPCClient);
3429
3437
  }
3430
3438
  async fetchTxByHash(hash, isEvmHash = false) {
3431
3439
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_explorer_rpc_pb.GetTxByTxHashRequest.create();
@@ -3570,11 +3578,12 @@ var IndexerGrpcExplorerApi = class extends require_BaseIndexerGrpcConsumer.BaseI
3570
3578
  * @category Indexer Grpc API
3571
3579
  */
3572
3580
  var IndexerGrpcCampaignApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3573
- constructor(endpoint) {
3574
- super(endpoint);
3581
+ constructor(..._args) {
3582
+ super(..._args);
3575
3583
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Campaign);
3576
- require_defineProperty._defineProperty(this, "client", void 0);
3577
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_campaign_rpc_pb_client.InjectiveCampaignRPCClient(this.transport);
3584
+ }
3585
+ get client() {
3586
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_campaign_rpc_pb_client.InjectiveCampaignRPCClient);
3578
3587
  }
3579
3588
  async fetchCampaign({ skip, limit, marketId, campaignId, accountAddress, contractAddress }) {
3580
3589
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_campaign_rpc_pb.RankingRequest.create();
@@ -3641,11 +3650,12 @@ var IndexerGrpcCampaignApi = class extends require_BaseIndexerGrpcConsumer.BaseI
3641
3650
  * @category Indexer Grpc API
3642
3651
  */
3643
3652
  var IndexerGrpcArchiverApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3644
- constructor(endpoint) {
3645
- super(endpoint);
3653
+ constructor(..._args) {
3654
+ super(..._args);
3646
3655
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Archiver);
3647
- require_defineProperty._defineProperty(this, "client", void 0);
3648
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_archiver_rpc_pb_client.InjectiveArchiverRPCClient(this.transport);
3656
+ }
3657
+ get client() {
3658
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_archiver_rpc_pb_client.InjectiveArchiverRPCClient);
3649
3659
  }
3650
3660
  async fetchHistoricalBalance({ account, resolution }) {
3651
3661
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_archiver_rpc_pb.BalanceRequest.create();
@@ -3725,11 +3735,12 @@ var IndexerGrpcArchiverApi = class extends require_BaseIndexerGrpcConsumer.BaseI
3725
3735
  * @category Indexer Grpc API
3726
3736
  */
3727
3737
  var IndexerGrpcReferralApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3728
- constructor(endpoint) {
3729
- super(endpoint);
3738
+ constructor(..._args) {
3739
+ super(..._args);
3730
3740
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Referral);
3731
- require_defineProperty._defineProperty(this, "client", void 0);
3732
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_referral_rpc_pb_client.InjectiveReferralRPCClient(this.transport);
3741
+ }
3742
+ get client() {
3743
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_referral_rpc_pb_client.InjectiveReferralRPCClient);
3733
3744
  }
3734
3745
  async fetchReferrerDetails(address) {
3735
3746
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_referral_rpc_pb.GetReferrerDetailsRequest.create();
@@ -3757,11 +3768,12 @@ var IndexerGrpcReferralApi = class extends require_BaseIndexerGrpcConsumer.BaseI
3757
3768
  * @category Indexer Grpc API
3758
3769
  */
3759
3770
  var IndexerGrpcMegaVaultApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3760
- constructor(endpoint) {
3761
- super(endpoint);
3771
+ constructor(..._args) {
3772
+ super(..._args);
3762
3773
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.MegaVault);
3763
- require_defineProperty._defineProperty(this, "client", void 0);
3764
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_megavault_rpc_pb_client.InjectiveMegavaultRPCClient(this.transport);
3774
+ }
3775
+ get client() {
3776
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_megavault_rpc_pb_client.InjectiveMegavaultRPCClient);
3765
3777
  }
3766
3778
  async fetchVault({ vaultAddress }) {
3767
3779
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_megavault_rpc_pb.GetVaultRequest.create();
@@ -3827,11 +3839,12 @@ var IndexerGrpcMegaVaultApi = class extends require_BaseIndexerGrpcConsumer.Base
3827
3839
  * @category Indexer Grpc API
3828
3840
  */
3829
3841
  var IndexerGrpcDerivativesApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
3830
- constructor(endpoint) {
3831
- super(endpoint);
3842
+ constructor(..._args) {
3843
+ super(..._args);
3832
3844
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Derivatives);
3833
- require_defineProperty._defineProperty(this, "client", void 0);
3834
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_rpc_pb_client.InjectiveDerivativeExchangeRPCClient(this.transport);
3845
+ }
3846
+ get client() {
3847
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_rpc_pb_client.InjectiveDerivativeExchangeRPCClient);
3835
3848
  }
3836
3849
  async fetchMarkets(params) {
3837
3850
  const { marketStatus, quoteDenom, marketStatuses } = params || {};
@@ -4042,11 +4055,12 @@ var IndexerGrpcDerivativesApi = class extends require_BaseIndexerGrpcConsumer.Ba
4042
4055
  * @category Indexer Grpc API
4043
4056
  */
4044
4057
  var IndexerGrpcAccountPortfolioApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
4045
- constructor(endpoint) {
4046
- super(endpoint);
4058
+ constructor(..._args) {
4059
+ super(..._args);
4047
4060
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.Portfolio);
4048
- require_defineProperty._defineProperty(this, "client", void 0);
4049
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb_client.InjectivePortfolioRPCClient(this.transport);
4061
+ }
4062
+ get client() {
4063
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb_client.InjectivePortfolioRPCClient);
4050
4064
  }
4051
4065
  async fetchAccountPortfolio(address) {
4052
4066
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb.AccountPortfolioRequest.create();
@@ -4087,11 +4101,12 @@ var IndexerGrpcAccountPortfolioApi = class extends require_BaseIndexerGrpcConsum
4087
4101
  * @category Indexer Grpc API
4088
4102
  */
4089
4103
  var IndexerGrpcInsuranceFundApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
4090
- constructor(endpoint) {
4091
- super(endpoint);
4104
+ constructor(..._args) {
4105
+ super(..._args);
4092
4106
  require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.InsuranceFund);
4093
- require_defineProperty._defineProperty(this, "client", void 0);
4094
- this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb_client.InjectiveInsuranceRPCClient(this.transport);
4107
+ }
4108
+ get client() {
4109
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb_client.InjectiveInsuranceRPCClient);
4095
4110
  }
4096
4111
  async fetchRedemptions({ denom, address, status }) {
4097
4112
  const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb.RedemptionsRequest.create();