@injectivelabs/sdk-ts 1.20.52 → 1.20.55

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 (107) hide show
  1. package/dist/cjs/{AbacusGrpcApi-DwBUuoqV.cjs → AbacusGrpcApi-DexBiQxy.cjs} +1 -1
  2. package/dist/cjs/{BaseGrpcConsumer-Ppsh5NLZ.cjs → BaseGrpcConsumer-C1mk2V_9.cjs} +2 -2
  3. package/dist/cjs/{BaseIndexerGrpcConsumer-BYur8R3D.cjs → BaseIndexerGrpcConsumer-DVa_aYMU.cjs} +1 -1
  4. package/dist/cjs/{ChainGrpcExchangeApi-Cxcph7iG.cjs → ChainGrpcExchangeApi-Dmw4ijud.cjs} +3 -3
  5. package/dist/cjs/{ChainRestTendermintApi-lBt4Bo9-.cjs → ChainRestTendermintApi-D9n4xCwM.cjs} +2 -2
  6. package/dist/cjs/{SocialTradingGrpcApi-UXcBw3hy.cjs → ChartsTradingViewGrpcApi-BYuTrxWO.cjs} +187 -1
  7. package/dist/cjs/{DirectEthSecp256k1Wallet-DBw-GssU.cjs → DirectEthSecp256k1Wallet-D46YxXv2.cjs} +1 -1
  8. package/dist/cjs/{ExecArgNeptuneWithdraw-DyJyZke3.cjs → ExecArgNeptuneWithdraw-Cd85kmnw.cjs} +2 -2
  9. package/dist/cjs/{IndexerGrpcWeb3GwApi-Du3x0BEl.cjs → IndexerGrpcWeb3GwApi-BUhyscY_.cjs} +2 -2
  10. package/dist/cjs/{MsgBase-BrhVMws0.cjs → MsgBase-jNBijPHQ.cjs} +1 -0
  11. package/dist/cjs/{MsgSetDenomMetadata-CJO2AZPg.cjs → MsgSetDenomMetadata-D1okfyXa.cjs} +70 -6
  12. package/dist/cjs/{OLPGrpcApi-B4Nk34KA.cjs → OLPGrpcApi-DMzqzTp-.cjs} +1 -1
  13. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-DKD7pQUB.cjs → QueryTradingStrategyContractTotalStrategies-BTH7S9q8.cjs} +2 -2
  14. package/dist/cjs/{StreamManagerV2-DRXlho03.cjs → StreamManagerV2-x2J4dStX.cjs} +5 -5
  15. package/dist/cjs/{TcAbacusGrpcApi-OXtCK4u8.cjs → TcAbacusGrpcApi-By_xt_w-.cjs} +1 -1
  16. package/dist/cjs/{accounts-Bhuko7RT.cjs → accounts-BQ4KTUrh.cjs} +3 -3
  17. package/dist/cjs/{chain-DFYBhsui.cjs → chain-BXgN0R3H.cjs} +4 -4
  18. package/dist/cjs/client/abacus.cjs +4 -4
  19. package/dist/cjs/client/chain.cjs +9 -9
  20. package/dist/cjs/client/chain.d.cts +2 -2
  21. package/dist/cjs/client/indexer.cjs +9 -9
  22. package/dist/cjs/client/indexer.d.cts +2 -2
  23. package/dist/cjs/client/olp.cjs +5 -5
  24. package/dist/cjs/client/platformServices.cjs +7 -5
  25. package/dist/cjs/client/platformServices.d.cts +2 -2
  26. package/dist/cjs/client/tcAbacus.cjs +4 -4
  27. package/dist/cjs/client/wasm.cjs +12 -12
  28. package/dist/cjs/core/accounts.cjs +7 -6
  29. package/dist/cjs/core/accounts.d.cts +2 -2
  30. package/dist/cjs/core/modules.cjs +16 -15
  31. package/dist/cjs/core/modules.d.cts +3 -3
  32. package/dist/cjs/core/tx.cjs +12 -12
  33. package/dist/cjs/core/tx.d.cts +2 -2
  34. package/dist/cjs/cosmjs.cjs +13 -13
  35. package/dist/cjs/exports.cjs +13 -13
  36. package/dist/cjs/{index-Bml8CUoG.d.cts → index-BADdhB_k.d.cts} +405 -2
  37. package/dist/cjs/{index-BRi1PZdd.d.cts → index-BQ9E0FkE.d.cts} +99 -3
  38. package/dist/cjs/index.cjs +29 -24
  39. package/dist/cjs/index.d.cts +3 -3
  40. package/dist/cjs/{service-DAfIXxMj.cjs → service-UQHM4Fa_.cjs} +2 -2
  41. package/dist/cjs/service.cjs +6 -6
  42. package/dist/cjs/{tx-BbHKcjZg.cjs → tx-DiCzUF8y.cjs} +27 -13
  43. package/dist/cjs/types/light.cjs +1 -1
  44. package/dist/cjs/types.cjs +1 -1
  45. package/dist/cjs/utils/address.cjs +1 -1
  46. package/dist/cjs/utils/light.cjs +2 -2
  47. package/dist/cjs/{utils-CIqMZQ2o.cjs → utils-CzZ_KGSE.cjs} +110 -0
  48. package/dist/cjs/utils.cjs +7 -4
  49. package/dist/cjs/utils.d.cts +3 -3
  50. package/dist/esm/{AbacusGrpcApi-BIHq_AVs.js → AbacusGrpcApi-CLdXH5bZ.js} +1 -1
  51. package/dist/esm/{BaseGrpcConsumer-DEDRwnCk.js → BaseGrpcConsumer-B2qNaBaq.js} +2 -2
  52. package/dist/esm/{BaseIndexerGrpcConsumer-DkRSQkU9.js → BaseIndexerGrpcConsumer-DKboflD4.js} +1 -1
  53. package/dist/esm/{ChainGrpcExchangeApi-TO68UPsx.js → ChainGrpcExchangeApi-Z-fc46qR.js} +3 -3
  54. package/dist/esm/{ChainRestTendermintApi-BnJPMbSU.js → ChainRestTendermintApi-Chvt3SbJ.js} +2 -2
  55. package/dist/esm/{SocialTradingGrpcApi-Bax2F760.js → ChartsTradingViewGrpcApi-DDUNU_IX.js} +174 -2
  56. package/dist/esm/{DirectEthSecp256k1Wallet-D3DNBjSy.js → DirectEthSecp256k1Wallet-BgMlvMk6.js} +1 -1
  57. package/dist/esm/{ExecArgNeptuneWithdraw-BM5u-FxH.js → ExecArgNeptuneWithdraw-Cy5glCPr.js} +2 -2
  58. package/dist/esm/{IndexerGrpcWeb3GwApi-Dzaq-nAM.js → IndexerGrpcWeb3GwApi-DMTxPUfG.js} +2 -2
  59. package/dist/esm/{MsgBase-CmMIxNsl.js → MsgBase-BC3GNddA.js} +1 -0
  60. package/dist/esm/{MsgSetDenomMetadata-DGzlaIXS.js → MsgSetDenomMetadata-KZUkL3Ju.js} +65 -7
  61. package/dist/esm/{OLPGrpcApi-BaeWd600.js → OLPGrpcApi-CFbYM2qH.js} +1 -1
  62. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-B3eiQdnj.js → QueryTradingStrategyContractTotalStrategies-BA_fmR0e.js} +2 -2
  63. package/dist/esm/{StreamManagerV2-Dnq2AWna.js → StreamManagerV2-BAsZZNgk.js} +5 -5
  64. package/dist/esm/{TcAbacusGrpcApi-jJvLuo3L.js → TcAbacusGrpcApi-l8vyZCck.js} +1 -1
  65. package/dist/esm/{accounts-bOFI_1wE.js → accounts-qcht12Jt.js} +3 -3
  66. package/dist/esm/{chain-Jr63sBTP.js → chain-Ck-hh_DM.js} +4 -4
  67. package/dist/esm/client/abacus.js +4 -4
  68. package/dist/esm/client/chain.d.ts +2 -2
  69. package/dist/esm/client/chain.js +9 -9
  70. package/dist/esm/client/indexer.d.ts +2 -2
  71. package/dist/esm/client/indexer.js +9 -9
  72. package/dist/esm/client/olp.js +5 -5
  73. package/dist/esm/client/platformServices.d.ts +2 -2
  74. package/dist/esm/client/platformServices.js +5 -5
  75. package/dist/esm/client/tcAbacus.js +4 -4
  76. package/dist/esm/client/wasm.js +12 -12
  77. package/dist/esm/core/accounts.d.ts +2 -2
  78. package/dist/esm/core/accounts.js +7 -6
  79. package/dist/esm/core/modules.d.ts +3 -3
  80. package/dist/esm/core/modules.js +16 -16
  81. package/dist/esm/core/tx.d.ts +2 -2
  82. package/dist/esm/core/tx.js +12 -12
  83. package/dist/esm/cosmjs.js +13 -13
  84. package/dist/esm/exports.js +13 -13
  85. package/dist/esm/{index-uEknWjpx.d.ts → index-D5krZLwQ.d.ts} +99 -3
  86. package/dist/esm/{index-tgSyqu1L.d.ts → index-DMei-AO6.d.ts} +405 -2
  87. package/dist/esm/index.d.ts +3 -3
  88. package/dist/esm/index.js +24 -24
  89. package/dist/esm/{service-ByVrhiMR.js → service-BJtGNIsI.js} +2 -2
  90. package/dist/esm/service.js +6 -6
  91. package/dist/esm/{tx-BxMH4W6J.js → tx-BN0DItbb.js} +27 -13
  92. package/dist/esm/types/light.js +1 -1
  93. package/dist/esm/types.js +1 -1
  94. package/dist/esm/utils/address.js +1 -1
  95. package/dist/esm/utils/light.js +2 -2
  96. package/dist/esm/{utils-BvlndkVI.js → utils-BmpLdEfK.js} +99 -1
  97. package/dist/esm/utils.d.ts +3 -3
  98. package/dist/esm/utils.js +6 -5
  99. package/package.json +6 -6
  100. /package/dist/cjs/{address-light-C_a6b8yF.cjs → address-light-DUoYqdPQ.cjs} +0 -0
  101. /package/dist/cjs/{coins-DRrEtaSG.cjs → coins-DBj8089z.cjs} +0 -0
  102. /package/dist/cjs/{grpc-3Z8ffFdZ.cjs → grpc-D_3PKEFB.cjs} +0 -0
  103. /package/dist/cjs/{light-CrajlUvd.cjs → light-zeGviAVI.cjs} +0 -0
  104. /package/dist/esm/{address-light-B2JvY3Or.js → address-light-CwLNB73Y.js} +0 -0
  105. /package/dist/esm/{coins-MO-ob9NV.js → coins-DTdsvmX2.js} +0 -0
  106. /package/dist/esm/{grpc-D2EQHGkK.js → grpc-CSo1TcHx.js} +0 -0
  107. /package/dist/esm/{light-BBrX6IRm.js → light-BUFhVek8.js} +0 -0
@@ -1,5 +1,6 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_encoding_light = require('./encoding-light-D96nxVLW.cjs');
3
+ const require_light = require('./light-zeGviAVI.cjs');
3
4
  let viem = require("viem");
4
5
  let __injectivelabs_utils = require("@injectivelabs/utils");
5
6
  let __noble_curves_secp256k1 = require("@noble/curves/secp256k1");
@@ -52,6 +53,103 @@ const protobufTimestampToUnixMs = (timestamp) => {
52
53
 
53
54
  //#endregion
54
55
  //#region src/utils/msgs.ts
56
+ const fixedExchangeGas = {
57
+ MsgCreateDerivativeLimitOrder: {
58
+ gas: 33e4,
59
+ postOnlyGas: 37e4,
60
+ hasOrder: true
61
+ },
62
+ MsgCreateDerivativeMarketOrder: {
63
+ gas: 31e4,
64
+ hasOrder: true
65
+ },
66
+ MsgCancelDerivativeOrder: { gas: 2e5 },
67
+ MsgCreateSpotLimitOrder: {
68
+ gas: 3e5,
69
+ postOnlyGas: 33e4,
70
+ hasOrder: true
71
+ },
72
+ MsgCreateSpotMarketOrder: {
73
+ gas: 3e5,
74
+ hasOrder: true
75
+ },
76
+ MsgCancelSpotOrder: { gas: 185e3 },
77
+ MsgCreateBinaryOptionsLimitOrder: {
78
+ gas: 33e4,
79
+ postOnlyGas: 37e4,
80
+ hasOrder: true
81
+ },
82
+ MsgCreateBinaryOptionsMarketOrder: {
83
+ gas: 31e4,
84
+ hasOrder: true
85
+ },
86
+ MsgCancelBinaryOptionsOrder: { gas: 2e5 },
87
+ MsgDeposit: { gas: 33e4 },
88
+ MsgWithdraw: { gas: 32e4 },
89
+ MsgSubaccountTransfer: { gas: 22e4 },
90
+ MsgExternalTransfer: { gas: 3e5 },
91
+ MsgIncreasePositionMargin: { gas: 185e3 },
92
+ MsgDecreasePositionMargin: { gas: 2e5 }
93
+ };
94
+ const batchAnteGas = 12e4;
95
+ const batchExchangeGasPerOrder = {
96
+ MsgBatchCancelSpotOrders: 68e3,
97
+ MsgBatchCancelDerivativeOrders: 73e3,
98
+ MsgBatchCancelBinaryOptionsOrders: 123e3
99
+ };
100
+ const fixedExchangeType = /^\/injective\.exchange\.v(?:1beta1|2)\.(Msg\w+)$/;
101
+ const postOnlyOrderTypes = new Set([require_light.OrderTypeMap.BUY_PO, require_light.OrderTypeMap.SELL_PO]);
102
+ const isRecord = (value) => typeof value === "object" && value !== null;
103
+ const getExchangeOrder = (message) => {
104
+ if (!isRecord(message) || !isRecord(message.order)) return;
105
+ const { orderType, expirationBlock } = message.order;
106
+ if (typeof orderType !== "number" || expirationBlock !== void 0 && typeof expirationBlock !== "bigint") return;
107
+ return {
108
+ orderType,
109
+ expirationBlock
110
+ };
111
+ };
112
+ const isFixedExchangeMessage = (messageType) => Object.prototype.hasOwnProperty.call(fixedExchangeGas, messageType);
113
+ const isFixedBatchExchangeMessage = (messageType) => Object.prototype.hasOwnProperty.call(batchExchangeGasPerOrder, messageType);
114
+ const getFixedGasLimitBasedOnMessage = (msgs) => {
115
+ const messages = Array.isArray(msgs) ? msgs : [msgs];
116
+ if (!messages.length) return;
117
+ let gas = 0;
118
+ for (const msg of messages) {
119
+ var _order$expirationBloc;
120
+ const directSign = msg.toDirectSign();
121
+ const match = directSign.type.match(fixedExchangeType);
122
+ const messageType = match === null || match === void 0 ? void 0 : match[1];
123
+ if (!messageType) return;
124
+ if (isFixedBatchExchangeMessage(messageType)) {
125
+ if (messages.length > 1) return;
126
+ if (!isRecord(directSign.message) || !Array.isArray(directSign.message.data) || directSign.message.data.length === 0) return;
127
+ gas += batchAnteGas + directSign.message.data.length * batchExchangeGasPerOrder[messageType];
128
+ continue;
129
+ }
130
+ if (!isFixedExchangeMessage(messageType)) return;
131
+ const policy = fixedExchangeGas[messageType];
132
+ const order = "hasOrder" in policy ? getExchangeOrder(directSign.message) : void 0;
133
+ if ("hasOrder" in policy && !order) return;
134
+ const baseGas = (order === null || order === void 0 ? void 0 : order.orderType) !== void 0 && postOnlyOrderTypes.has(order.orderType) && "postOnlyGas" in policy ? policy.postOnlyGas : policy.gas;
135
+ const hasExpirationBlock = ((_order$expirationBloc = order === null || order === void 0 ? void 0 : order.expirationBlock) !== null && _order$expirationBloc !== void 0 ? _order$expirationBloc : 0n) > 0n;
136
+ gas += hasExpirationBlock ? baseGas + baseGas / 10 : baseGas;
137
+ }
138
+ return gas;
139
+ };
140
+ const getGasOptionsBasedOnMessage = ({ msgs, gas, simulateTx, useFixedGas = false }) => {
141
+ var _ref;
142
+ const messages = Array.isArray(msgs) ? msgs : [msgs];
143
+ const explicitGas = gas || void 0;
144
+ const fixedGasLimit = useFixedGas && explicitGas === void 0 ? getFixedGasLimitBasedOnMessage(messages) : void 0;
145
+ const gasLimit = (_ref = explicitGas !== null && explicitGas !== void 0 ? explicitGas : fixedGasLimit) !== null && _ref !== void 0 ? _ref : getGasPriceBasedOnMessage(messages);
146
+ const estimateGas = simulateTx && (!useFixedGas || explicitGas === void 0 && fixedGasLimit === void 0);
147
+ return {
148
+ gas: gasLimit.toString(),
149
+ gasLimit,
150
+ estimateGas
151
+ };
152
+ };
55
153
  const getGasPriceBasedOnMessage = (msgs) => {
56
154
  const messages = Array.isArray(msgs) ? msgs : [msgs];
57
155
  const messageType = messages[0].toDirectSign().type;
@@ -1190,6 +1288,18 @@ Object.defineProperty(exports, 'getErrorMessage', {
1190
1288
  return getErrorMessage;
1191
1289
  }
1192
1290
  });
1291
+ Object.defineProperty(exports, 'getFixedGasLimitBasedOnMessage', {
1292
+ enumerable: true,
1293
+ get: function () {
1294
+ return getFixedGasLimitBasedOnMessage;
1295
+ }
1296
+ });
1297
+ Object.defineProperty(exports, 'getGasOptionsBasedOnMessage', {
1298
+ enumerable: true,
1299
+ get: function () {
1300
+ return getGasOptionsBasedOnMessage;
1301
+ }
1302
+ });
1193
1303
  Object.defineProperty(exports, 'getGasPriceBasedOnMessage', {
1194
1304
  enumerable: true,
1195
1305
  get: function () {
@@ -1,10 +1,11 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_encoding_light = require('./encoding-light-D96nxVLW.cjs');
3
3
  const require_constants = require('./constants-tPGACRGC.cjs');
4
- const require_utils = require('./utils-CIqMZQ2o.cjs');
5
- const require_grpc = require('./grpc-3Z8ffFdZ.cjs');
6
- const require_coins = require('./coins-DRrEtaSG.cjs');
7
- const require_address_light = require('./address-light-C_a6b8yF.cjs');
4
+ const require_utils = require('./utils-CzZ_KGSE.cjs');
5
+ require('./light-zeGviAVI.cjs');
6
+ const require_grpc = require('./grpc-D_3PKEFB.cjs');
7
+ const require_coins = require('./coins-DBj8089z.cjs');
8
+ const require_address_light = require('./address-light-DUoYqdPQ.cjs');
8
9
  let __protobuf_ts_grpcweb_transport = require("@protobuf-ts/grpcweb-transport");
9
10
  let __injectivelabs_utils = require("@injectivelabs/utils");
10
11
 
@@ -68,6 +69,8 @@ exports.getDerivativeMarketTensMultiplier = require_utils.getDerivativeMarketTen
68
69
  exports.getErrorMessage = require_utils.getErrorMessage;
69
70
  exports.getEthereumAddress = require_address_light.getEthereumAddress;
70
71
  exports.getExactDecimalsFromNumber = __injectivelabs_utils.getExactDecimalsFromNumber;
72
+ exports.getFixedGasLimitBasedOnMessage = require_utils.getFixedGasLimitBasedOnMessage;
73
+ exports.getGasOptionsBasedOnMessage = require_utils.getGasOptionsBasedOnMessage;
71
74
  exports.getGasPriceBasedOnMessage = require_utils.getGasPriceBasedOnMessage;
72
75
  exports.getGrpcWebTransport = require_grpc.getGrpcWebTransport;
73
76
  exports.getInjectiveAddress = require_address_light.getInjectiveAddress;
@@ -1,7 +1,7 @@
1
1
  import "./tx_pb-DSDGNMKS.cjs";
2
2
  import "./index-BpbO2phm.cjs";
3
3
  import "./light-B-3BDUJ7.cjs";
4
- import { $d as derivativeMarginFromChainMargin, $f as messageHash, Af as bigIntReplacer, Bd as getChecksumAddress, Bf as isServerSide, Cf as spotPriceFromChainPriceToFixed, Df as spotQuantityFromChainQuantityToFixed, Ef as spotQuantityFromChainQuantity, Fd as grpcPagingToPaging, Ff as hexToNumber, Gd as amountToCosmosSdkDecAmount, Gf as sortObjectByKeysWithReduce, Hd as getDerivativeMarketTensMultiplier, Hf as protoObjectToJson, Id as grpcPagingToPagingV2, If as isBrowser, Jd as denomAmountFromChainDenomAmountToFixed, Jf as TypedDataUtilsSanitizeData, Kd as cosmosSdkDecToBigNumber, Kf as SignTypedDataVersionV4, Ld as pageRequestToGrpcPageRequestV2, Lf as isJsonString, Md as fetchAllWithPagination, Mf as bigIntToString, Nd as fetchAllWithTokenPagination, Nf as getErrorMessage, Of as spotQuantityToChainQuantity, Pd as grpcPaginationToPagination, Pf as grpcCoinToUiCoin, Qd as denomAmountToGrpcChainDenomAmount, Qf as hashToHex, Rd as paginationRequestFromPagination, Rf as isNode, Sf as spotPriceFromChainPrice, Tf as spotPriceToChainPriceToFixed, Ud as getSpotMarketDecimals, Uf as safeBigIntStringify, Vd as getDerivativeMarketDecimals, Vf as objectToJson, Wd as getSpotMarketTensMultiplier, Wf as sortObjectByKeys, Xd as denomAmountToChainDenomAmount, Xf as decompressPubKey, Yd as denomAmountFromGrpcChainDenomAmount, Yf as TypedMessageV4, Zd as denomAmountToChainDenomAmountToFixed, Zf as domainHash, _f as getExactDecimalsFromNumber, af as derivativePriceToChainPrice, ap as ripemd160, bS as GrpcWebFetchTransport, bf as isNumber, cf as derivativeQuantityFromChainQuantityToFixed, cp as ofacList, df as formatAmountToAllowableAmount, dp as makeTimeoutTimestamp, ef as derivativeMarginFromChainMarginToFixed, ep as privateKeyHashToPublicKey, ff as formatAmountToAllowableDecimals, fp as makeTimeoutTimestampInNs, gf as formatPriceToAllowablePrice, hf as formatPriceToAllowableDecimals, hp as protobufTimestampToUnixSeconds, if as derivativePriceFromChainPriceToFixed, ip as publicKeyToAddress, jd as recoverTypedSignaturePubKey, jf as bigIntToNumber, kf as spotQuantityToChainQuantityToFixed, lf as derivativeQuantityToChainQuantity, lp as getGrpcWebTransport, mf as formatNumberToAllowableTensMultiplier, mp as protobufTimestampToUnixMs, nf as derivativeMarginToChainMarginToFixed, np as privateKeyToPublicKey, of as derivativePriceToChainPriceToFixed, op as sanitizeTypedData, pf as formatNumberToAllowableDecimals, pp as protobufTimestampToDate, qd as denomAmountFromChainDenomAmount, qf as TypedDataUtilsHashStruct, rf as derivativePriceFromChainPrice, rp as privateKeyToPublicKeyBase64, sf as derivativeQuantityFromChainQuantity, sp as sha256, tf as derivativeMarginToChainMargin, tp as privateKeyHashToPublicKeyBase64, uf as derivativeQuantityToChainQuantityToFixed, up as getGasPriceBasedOnMessage, vf as getSignificantDecimalsFromNumber, wf as spotPriceToChainPrice, xf as numberToCosmosSdkDecString, yf as getTensMultiplier, zd as paginationUint8ArrayToString, zf as isReactNative } from "./index-BRi1PZdd.cjs";
4
+ import { $d as derivativeMarginFromChainMargin, $f as messageHash, Af as bigIntReplacer, Bd as getChecksumAddress, Bf as isServerSide, CS as GrpcWebFetchTransport, Cf as spotPriceFromChainPriceToFixed, Df as spotQuantityFromChainQuantityToFixed, Ef as spotQuantityFromChainQuantity, Fd as grpcPagingToPaging, Ff as hexToNumber, Gd as amountToCosmosSdkDecAmount, Gf as sortObjectByKeysWithReduce, Hd as getDerivativeMarketTensMultiplier, Hf as protoObjectToJson, Id as grpcPagingToPagingV2, If as isBrowser, Jd as denomAmountFromChainDenomAmountToFixed, Jf as TypedDataUtilsSanitizeData, Kd as cosmosSdkDecToBigNumber, Kf as SignTypedDataVersionV4, Ld as pageRequestToGrpcPageRequestV2, Lf as isJsonString, Md as fetchAllWithPagination, Mf as bigIntToString, Nd as fetchAllWithTokenPagination, Nf as getErrorMessage, Of as spotQuantityToChainQuantity, Pd as grpcPaginationToPagination, Pf as grpcCoinToUiCoin, Qd as denomAmountToGrpcChainDenomAmount, Qf as hashToHex, Rd as paginationRequestFromPagination, Rf as isNode, Sf as spotPriceFromChainPrice, Tf as spotPriceToChainPriceToFixed, Ud as getSpotMarketDecimals, Uf as safeBigIntStringify, Vd as getDerivativeMarketDecimals, Vf as objectToJson, Wd as getSpotMarketTensMultiplier, Wf as sortObjectByKeys, Xd as denomAmountToChainDenomAmount, Xf as decompressPubKey, Yd as denomAmountFromGrpcChainDenomAmount, Yf as TypedMessageV4, Zd as denomAmountToChainDenomAmountToFixed, Zf as domainHash, _f as getExactDecimalsFromNumber, _p as protobufTimestampToUnixSeconds, af as derivativePriceToChainPrice, ap as ripemd160, bf as isNumber, cf as derivativeQuantityFromChainQuantityToFixed, cp as ofacList, df as formatAmountToAllowableAmount, dp as getGasOptionsBasedOnMessage, ef as derivativeMarginFromChainMarginToFixed, ep as privateKeyHashToPublicKey, ff as formatAmountToAllowableDecimals, fp as getGasPriceBasedOnMessage, gf as formatPriceToAllowablePrice, gp as protobufTimestampToUnixMs, hf as formatPriceToAllowableDecimals, hp as protobufTimestampToDate, if as derivativePriceFromChainPriceToFixed, ip as publicKeyToAddress, jd as recoverTypedSignaturePubKey, jf as bigIntToNumber, kf as spotQuantityToChainQuantityToFixed, lf as derivativeQuantityToChainQuantity, lp as getGrpcWebTransport, mf as formatNumberToAllowableTensMultiplier, mp as makeTimeoutTimestampInNs, nf as derivativeMarginToChainMarginToFixed, np as privateKeyToPublicKey, of as derivativePriceToChainPriceToFixed, op as sanitizeTypedData, pf as formatNumberToAllowableDecimals, pp as makeTimeoutTimestamp, qd as denomAmountFromChainDenomAmount, qf as TypedDataUtilsHashStruct, rf as derivativePriceFromChainPrice, rp as privateKeyToPublicKeyBase64, sf as derivativeQuantityFromChainQuantity, sp as sha256, tf as derivativeMarginToChainMargin, tp as privateKeyHashToPublicKeyBase64, uf as derivativeQuantityToChainQuantityToFixed, up as getFixedGasLimitBasedOnMessage, vf as getSignificantDecimalsFromNumber, wf as spotPriceToChainPrice, xf as numberToCosmosSdkDecString, yf as getTensMultiplier, zd as paginationUint8ArrayToString, zf as isReactNative } from "./index-BQ9E0FkE.cjs";
5
5
  import "./BaseGrpcConsumer-Cet1W6Kq.cjs";
6
6
  import "./index-C7RKR121.cjs";
7
7
  import "./index-CSZ8iAjq.cjs";
@@ -11,6 +11,6 @@ import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8
11
11
  import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "./constants-DQTrjP5R.cjs";
12
12
  import "./index-C5x1GjO5.cjs";
13
13
  import "./index-CCRCRvKd.cjs";
14
- import "./index-Bml8CUoG.cjs";
14
+ import "./index-BADdhB_k.cjs";
15
15
  import "./index-Ch7IIzzg.cjs";
16
- export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, bytesToHex, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, fetchAllWithTokenPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToBytes, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
16
+ export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, bytesToHex, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, fetchAllWithTokenPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getFixedGasLimitBasedOnMessage, getGasOptionsBasedOnMessage, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToBytes, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
@@ -1,5 +1,5 @@
1
1
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
2
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-DEDRwnCk.js";
2
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B2qNaBaq.js";
3
3
  import { IndexerErrorModule } from "@injectivelabs/exceptions";
4
4
  import * as PointsSvcPb from "@injectivelabs/abacus-proto-ts-v2/generated/points_svc_pb";
5
5
  import { PointsSvcClient } from "@injectivelabs/abacus-proto-ts-v2/generated/points_svc_pb.client";
@@ -1,6 +1,6 @@
1
1
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
2
- import { n as getGrpcWebTransport } from "./grpc-D2EQHGkK.js";
3
- import { i as GrpcStatusCode } from "./light-BBrX6IRm.js";
2
+ import { i as GrpcStatusCode } from "./light-BUFhVek8.js";
3
+ import { n as getGrpcWebTransport } from "./grpc-CSo1TcHx.js";
4
4
  import { GrpcUnaryRequestException, TransactionException, UnspecifiedErrorCode, grpcErrorCodeToErrorCode } from "@injectivelabs/exceptions";
5
5
  import { RpcError } from "@protobuf-ts/runtime-rpc";
6
6
 
@@ -1,4 +1,4 @@
1
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-DEDRwnCk.js";
1
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B2qNaBaq.js";
2
2
 
3
3
  //#region src/client/base/BaseIndexerGrpcConsumer.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
2
- import { b as denomAmountFromGrpcChainDenomAmount } from "./utils-BvlndkVI.js";
3
- import { o as ChainModule } from "./ChainRestTendermintApi-BnJPMbSU.js";
4
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-DEDRwnCk.js";
2
+ import { b as denomAmountFromGrpcChainDenomAmount } from "./utils-BmpLdEfK.js";
3
+ import { o as ChainModule } from "./ChainRestTendermintApi-Chvt3SbJ.js";
4
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B2qNaBaq.js";
5
5
  import { toHumanReadable } from "@injectivelabs/utils";
6
6
  import * as InjectiveExchangeV1Beta1QueryPb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb";
7
7
  import { QueryClient } from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/query_pb.client";
@@ -1,7 +1,7 @@
1
1
  import { h as uint8ArrayToString, p as uint8ArrayToBase64 } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { u as ChainGrpcCommonTransformer } from "./utils-BvlndkVI.js";
4
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-DEDRwnCk.js";
3
+ import { u as ChainGrpcCommonTransformer } from "./utils-BmpLdEfK.js";
4
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B2qNaBaq.js";
5
5
  import { t as BaseRestConsumer } from "./BaseRestConsumer-BjN9JApr.js";
6
6
  import { ChainErrorModule, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
7
7
  import * as InjectiveCryptoV1Beta1Ethsecp256k1KeysPb from "@injectivelabs/core-proto-ts-v2/generated/injective/crypto/v1beta1/ethsecp256k1/keys_pb";
@@ -1,7 +1,11 @@
1
1
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
2
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-DEDRwnCk.js";
2
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B2qNaBaq.js";
3
+ import * as PlatformServicesArchiverPb from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_injective_archiver_rpc_pb";
4
+ import { InjectiveArchiverRPCClient } from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_injective_archiver_rpc_pb.client";
3
5
  import * as PlatformServicesPositionsPb from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_positions_service_pb";
4
6
  import { PositionsServiceClient } from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_positions_service_pb.client";
7
+ import * as PlatformServicesChartsPb from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_charts_trading_view_service_pb";
8
+ import { ChartsTradingViewServiceClient } from "@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_charts_trading_view_service_pb.client";
5
9
 
6
10
  //#region src/client/platformServices/transformers/index.ts
7
11
  var PlatformServicesGrpcPositionsTransformer = class PlatformServicesGrpcPositionsTransformer {
@@ -10,6 +14,7 @@ var PlatformServicesGrpcPositionsTransformer = class PlatformServicesGrpcPositio
10
14
  return {
11
15
  id: position.id,
12
16
  pnl: position.pnl,
17
+ pnlUsd: position.pnlUsd,
13
18
  fees: position.fees,
14
19
  side: position.side,
15
20
  state: position.state,
@@ -46,6 +51,7 @@ var PlatformServicesGrpcPositionsTransformer = class PlatformServicesGrpcPositio
46
51
  static grpcPositionTradeToPositionTrade(trade) {
47
52
  return {
48
53
  pnl: trade.pnl,
54
+ pnlUsd: trade.pnlUsd,
49
55
  amount: trade.amount,
50
56
  timestamp: trade.timestamp,
51
57
  eventType: trade.eventType,
@@ -127,6 +133,141 @@ var PlatformServicesGrpcPositionsTransformer = class PlatformServicesGrpcPositio
127
133
  };
128
134
  }
129
135
  };
136
+ var PlatformServicesGrpcChartsTransformer = class {
137
+ static grpcMarketHistoryToMarketHistory(response) {
138
+ return {
139
+ s: response.s,
140
+ t: response.t,
141
+ o: response.o,
142
+ h: response.h,
143
+ l: response.l,
144
+ c: response.c,
145
+ v: response.v
146
+ };
147
+ }
148
+ static grpcMarketSummaryToMarketSummary(summary) {
149
+ return {
150
+ open: summary.open,
151
+ high: summary.high,
152
+ low: summary.low,
153
+ volume: summary.volume,
154
+ price: summary.price,
155
+ change: summary.change,
156
+ marketId: summary.marketId
157
+ };
158
+ }
159
+ };
160
+ var PlatformServicesGrpcArchiverTransformer = class PlatformServicesGrpcArchiverTransformer {
161
+ static grpcHistoricalDetailedBalanceToHistoricalDetailedBalance(balance) {
162
+ return {
163
+ spot: balance.spot,
164
+ perp: balance.perp,
165
+ staking: balance.staking
166
+ };
167
+ }
168
+ static grpcHistoricalBalanceToHistoricalBalance(balance) {
169
+ return {
170
+ t: balance.t,
171
+ v: balance.v,
172
+ dv: balance.dv.map(PlatformServicesGrpcArchiverTransformer.grpcHistoricalDetailedBalanceToHistoricalDetailedBalance)
173
+ };
174
+ }
175
+ static grpcBalanceToBalance(response) {
176
+ return { historicalBalance: response.historicalBalance ? PlatformServicesGrpcArchiverTransformer.grpcHistoricalBalanceToHistoricalBalance(response.historicalBalance) : void 0 };
177
+ }
178
+ static grpcAccountStatsToAccountStats(response) {
179
+ return {
180
+ pnl: response.pnl,
181
+ stake: response.stake,
182
+ volume: response.volume,
183
+ account: response.account
184
+ };
185
+ }
186
+ static grpcHistoricalDetailedPnlToHistoricalDetailedPnl(pnl) {
187
+ return {
188
+ rpnl: pnl.rpnl,
189
+ upnl: pnl.upnl
190
+ };
191
+ }
192
+ static grpcHistoricalRpnlToHistoricalRpnl(rpnl) {
193
+ return {
194
+ t: rpnl.t,
195
+ v: rpnl.v,
196
+ dv: rpnl.dv.map(PlatformServicesGrpcArchiverTransformer.grpcHistoricalDetailedPnlToHistoricalDetailedPnl)
197
+ };
198
+ }
199
+ static grpcRpnlToRpnl(response) {
200
+ return { historicalRpnl: response.historicalRpnl ? PlatformServicesGrpcArchiverTransformer.grpcHistoricalRpnlToHistoricalRpnl(response.historicalRpnl) : void 0 };
201
+ }
202
+ static grpcPriceLevelToPriceLevel(price) {
203
+ return {
204
+ price: price.price,
205
+ quantity: price.quantity,
206
+ timestamp: price.timestamp.toString()
207
+ };
208
+ }
209
+ static grpcHistoricalTradeToHistoricalTrade(trade) {
210
+ return {
211
+ cid: trade.cid,
212
+ fee: trade.fee,
213
+ flags: trade.flags,
214
+ account: trade.account,
215
+ tradeId: trade.tradeId,
216
+ marketId: trade.marketId,
217
+ usdValue: trade.usdValue,
218
+ fundingRate: trade.fundingRate,
219
+ marketType: trade.marketType,
220
+ executionSide: trade.executionSide,
221
+ feeRecipient: trade.feeRecipient,
222
+ subaccountId: trade.subaccountId,
223
+ tradeDirection: trade.tradeDirection,
224
+ executionType: trade.executionType,
225
+ executedAt: trade.executedAt.toString(),
226
+ executedHeight: trade.executedHeight.toString(),
227
+ price: trade.price ? PlatformServicesGrpcArchiverTransformer.grpcPriceLevelToPriceLevel(trade.price) : void 0
228
+ };
229
+ }
230
+ static grpcHistoricalTradesToHistoricalTrades(response) {
231
+ return {
232
+ next: response.next,
233
+ lastHeight: response.lastHeight.toString(),
234
+ lastTime: response.lastTime.toString(),
235
+ trades: response.trades.map(PlatformServicesGrpcArchiverTransformer.grpcHistoricalTradeToHistoricalTrade)
236
+ };
237
+ }
238
+ };
239
+
240
+ //#endregion
241
+ //#region src/client/platformServices/grpc/ArchiverGrpcApi.ts
242
+ var ArchiverGrpcApi = class extends BaseGrpcConsumer {
243
+ constructor(..._args) {
244
+ super(..._args);
245
+ _defineProperty(this, "module", "platform-services");
246
+ }
247
+ get client() {
248
+ return this.initClient(InjectiveArchiverRPCClient);
249
+ }
250
+ async fetchBalance(params) {
251
+ const request = PlatformServicesArchiverPb.BalanceRequest.create(params);
252
+ const response = await this.executeGrpcCall(request, this.client.balance.bind(this.client));
253
+ return PlatformServicesGrpcArchiverTransformer.grpcBalanceToBalance(response);
254
+ }
255
+ async fetchAccountStats(params) {
256
+ const request = PlatformServicesArchiverPb.AccountStatsRequest.create(params);
257
+ const response = await this.executeGrpcCall(request, this.client.accountStats.bind(this.client));
258
+ return PlatformServicesGrpcArchiverTransformer.grpcAccountStatsToAccountStats(response);
259
+ }
260
+ async fetchRpnl(params) {
261
+ const request = PlatformServicesArchiverPb.RpnlRequest.create(params);
262
+ const response = await this.executeGrpcCall(request, this.client.rpnl.bind(this.client));
263
+ return PlatformServicesGrpcArchiverTransformer.grpcRpnlToRpnl(response);
264
+ }
265
+ async fetchHistoricalTrades(params) {
266
+ const request = PlatformServicesArchiverPb.HistoricalTradesRequest.create(params);
267
+ const response = await this.executeGrpcCall(request, this.client.historicalTrades.bind(this.client));
268
+ return PlatformServicesGrpcArchiverTransformer.grpcHistoricalTradesToHistoricalTrades(response);
269
+ }
270
+ };
130
271
 
131
272
  //#endregion
132
273
  //#region src/client/platformServices/grpc/SocialTradingGrpcApi.ts
@@ -212,4 +353,35 @@ var SocialTradingGrpcApi = class extends BaseGrpcConsumer {
212
353
  };
213
354
 
214
355
  //#endregion
215
- export { SocialTradingGrpcApi as t };
356
+ //#region src/client/platformServices/grpc/ChartsTradingViewGrpcApi.ts
357
+ var ChartsTradingViewGrpcApi = class extends BaseGrpcConsumer {
358
+ constructor(..._args) {
359
+ super(..._args);
360
+ _defineProperty(this, "module", "platform-services");
361
+ }
362
+ get client() {
363
+ return this.initClient(ChartsTradingViewServiceClient);
364
+ }
365
+ async fetchDerivativeMarketHistory(params) {
366
+ const request = PlatformServicesChartsPb.DerivativeMarketHistoryRequest.create(params);
367
+ const response = await this.executeGrpcCall(request, this.client.derivativeMarketHistory.bind(this.client));
368
+ return PlatformServicesGrpcChartsTransformer.grpcMarketHistoryToMarketHistory(response);
369
+ }
370
+ async fetchSpotMarketHistory(params) {
371
+ const request = PlatformServicesChartsPb.SpotMarketHistoryRequest.create(params);
372
+ const response = await this.executeGrpcCall(request, this.client.spotMarketHistory.bind(this.client));
373
+ return PlatformServicesGrpcChartsTransformer.grpcMarketHistoryToMarketHistory(response);
374
+ }
375
+ async fetchSpotMarketSummary(params) {
376
+ const request = PlatformServicesChartsPb.SpotMarketSummaryRequest.create(params);
377
+ const response = await this.executeGrpcCall(request, this.client.spotMarketSummary.bind(this.client));
378
+ return PlatformServicesGrpcChartsTransformer.grpcMarketSummaryToMarketSummary(response);
379
+ }
380
+ async fetchAllSpotMarketSummaries(params) {
381
+ const request = PlatformServicesChartsPb.AllSpotMarketSummaryRequest.create(params);
382
+ return (await this.executeGrpcCall(request, this.client.allSpotMarketSummary.bind(this.client))).field.map(PlatformServicesGrpcChartsTransformer.grpcMarketSummaryToMarketSummary);
383
+ }
384
+ };
385
+
386
+ //#endregion
387
+ export { SocialTradingGrpcApi as n, ArchiverGrpcApi as r, ChartsTradingViewGrpcApi as t };
@@ -1,6 +1,6 @@
1
1
  import { m as uint8ArrayToHex, p as uint8ArrayToBase64, t as base64ToUint8Array } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { F as PublicKey, k as getPublicKey, n as PrivateKey } from "./accounts-bOFI_1wE.js";
3
+ import { F as PublicKey, k as getPublicKey, n as PrivateKey } from "./accounts-qcht12Jt.js";
4
4
  import * as CosmosBaseV1Beta1CoinPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/base/v1beta1/coin_pb";
5
5
  import * as InjectiveTypesV1Beta1AccountPb from "@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/account_pb";
6
6
  import * as IbcCoreClientV1ClientPb from "@injectivelabs/core-proto-ts-v2/generated/ibc/core/client/v1/client_pb";
@@ -1,7 +1,7 @@
1
1
  import { d as toBase64, o as fromUtf8 } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { kt as safeBigIntStringify } from "./utils-BvlndkVI.js";
4
- import { t as MsgBase } from "./MsgBase-CmMIxNsl.js";
3
+ import { kt as safeBigIntStringify } from "./utils-BmpLdEfK.js";
4
+ import { t as MsgBase } from "./MsgBase-BC3GNddA.js";
5
5
  import { GeneralException } from "@injectivelabs/exceptions";
6
6
  import * as InjectiveWasmxV1TxPb from "@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/tx_pb";
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { m as uint8ArrayToHex, t as base64ToUint8Array, u as stringToUint8Array } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { kt as safeBigIntStringify, t as recoverTypedSignaturePubKey } from "./utils-BvlndkVI.js";
4
- import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-DkRSQkU9.js";
3
+ import { kt as safeBigIntStringify, t as recoverTypedSignaturePubKey } from "./utils-BmpLdEfK.js";
4
+ import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-DKboflD4.js";
5
5
  import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
6
6
  import { DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_GAS_LIMIT } from "@injectivelabs/utils";
7
7
  import { ErrorType, IndexerErrorModule, TransactionException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
@@ -240,6 +240,7 @@ const appendTypePrefixToPropertyType = (property, parentProperty = "") => {
240
240
  */
241
241
  const protoTypeToAminoType = (type) => {
242
242
  switch (type.startsWith("/") ? type.substring(1) : type) {
243
+ case "cosmwasm.wasm.v1.MsgUpdateInstantiateConfig": return "wasm/MsgUpdateInstantiateConfig";
243
244
  case "injective.exchange.v1beta1.MsgDeposit": return "exchange/MsgDeposit";
244
245
  case "injective.exchange.v1beta1.MsgWithdraw": return "exchange/MsgWithdraw";
245
246
  case "injective.exchange.v1beta1.MsgInstantSpotMarketLaunch": return "exchange/MsgInstantSpotMarketLaunch";
@@ -1,11 +1,11 @@
1
1
  import { f as toUtf8, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { I as Address, j as createAny } from "./accounts-bOFI_1wE.js";
4
- import { K as numberToCosmosSdkDecString, at as domainHash, kt as safeBigIntStringify, st as messageHash, vt as bigIntToString } from "./utils-BvlndkVI.js";
5
- import { a as getEthereumAddress } from "./address-light-B2JvY3Or.js";
6
- import { a as objectKeysToEip712Types, n as prepareSignBytes, o as patchOrderTypesWithExpirationBlock, t as MsgBase } from "./MsgBase-CmMIxNsl.js";
7
- import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-TO68UPsx.js";
8
- import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-BM5u-FxH.js";
3
+ import { I as Address, j as createAny } from "./accounts-qcht12Jt.js";
4
+ import { K as numberToCosmosSdkDecString, at as domainHash, kt as safeBigIntStringify, st as messageHash, vt as bigIntToString } from "./utils-BmpLdEfK.js";
5
+ import { a as getEthereumAddress } from "./address-light-CwLNB73Y.js";
6
+ import { a as objectKeysToEip712Types, n as prepareSignBytes, o as patchOrderTypesWithExpirationBlock, t as MsgBase } from "./MsgBase-BC3GNddA.js";
7
+ import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-Z-fc46qR.js";
8
+ import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-Cy5glCPr.js";
9
9
  import { keccak256 } from "viem";
10
10
  import { BigNumber, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, toBigNumber, toChainFormat, toPascalCase } from "@injectivelabs/utils";
11
11
  import { GeneralException } from "@injectivelabs/exceptions";
@@ -7774,6 +7774,64 @@ var ExecArgUpdateGridConfig = class ExecArgUpdateGridConfig extends ExecArgBase
7774
7774
  }
7775
7775
  };
7776
7776
 
7777
+ //#endregion
7778
+ //#region src/core/modules/wasm/msgs/MsgUpdateInstantiateConfig.ts
7779
+ /**
7780
+ * @category Messages
7781
+ */
7782
+ var MsgUpdateInstantiateConfig = class MsgUpdateInstantiateConfig extends MsgBase {
7783
+ static fromJSON(params) {
7784
+ return new MsgUpdateInstantiateConfig(params);
7785
+ }
7786
+ toProto() {
7787
+ const { params } = this;
7788
+ return CosmwasmWasmV1TxPb.MsgUpdateInstantiateConfig.create({
7789
+ sender: params.sender,
7790
+ codeId: BigInt(params.codeId),
7791
+ newInstantiatePermission: CosmwasmWasmV1TypesPb.AccessConfig.create(params.newInstantiatePermission)
7792
+ });
7793
+ }
7794
+ toData() {
7795
+ return {
7796
+ "@type": "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
7797
+ ...this.toProto()
7798
+ };
7799
+ }
7800
+ toAmino() {
7801
+ const proto = this.toProto();
7802
+ const permission = proto.newInstantiatePermission;
7803
+ return {
7804
+ type: "wasm/MsgUpdateInstantiateConfig",
7805
+ value: {
7806
+ sender: proto.sender,
7807
+ code_id: proto.codeId.toString(),
7808
+ new_instantiate_permission: {
7809
+ permission: toPascalCase(CosmwasmWasmV1TypesPb.AccessType[permission.permission].replace("ACCESS_TYPE_", "")),
7810
+ addresses: permission.addresses
7811
+ }
7812
+ }
7813
+ };
7814
+ }
7815
+ toWeb3Gw() {
7816
+ return {
7817
+ "@type": "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
7818
+ ...this.toAmino().value
7819
+ };
7820
+ }
7821
+ toEip712() {
7822
+ throw new GeneralException(/* @__PURE__ */ new Error("EIP712_v1 is not supported for MsgUpdateInstantiateConfig. Please use EIP712_v2"));
7823
+ }
7824
+ toDirectSign() {
7825
+ return {
7826
+ type: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
7827
+ message: this.toProto()
7828
+ };
7829
+ }
7830
+ toBinary() {
7831
+ return CosmwasmWasmV1TxPb.MsgUpdateInstantiateConfig.toBinary(this.toProto());
7832
+ }
7833
+ };
7834
+
7777
7835
  //#endregion
7778
7836
  //#region src/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.ts
7779
7837
  /**
@@ -10973,4 +11031,4 @@ var MsgSetDenomMetadata = class MsgSetDenomMetadata extends MsgBase {
10973
11031
  };
10974
11032
 
10975
11033
  //#endregion
10976
- export { ExecArgIncreaseAllowance as $, MsgIncreasePositionMarginV2 as $t, MsgCreateRateLimit as A, MsgCancelSpotOrder as An, OrderHashManager as At, MsgExec as B, MsgAdminUpdateBinaryOptionsMarket as Bt, MsgEditValidator as C, MsgReclaimLockedFunds as Cn, MsgSubmitProposalPerpetualMarketLaunch as Ct, MsgRelayProviderPrices as D, MsgOffsetPositionV2 as Dn, MsgSubmitTextProposal as Dt, MsgBid as E, MsgBatchUpdateOrders as En, MsgSubmitGenericProposal as Et, MsgGrantWithAuthorization as F, MsgWithdraw as Fn, MsgInstantBinaryOptionsMarketLaunch as Ft, ExecPrivilegedArgVaultSubscribe as G, MsgCreateDerivativeLimitOrderV2 as Gt, ExecPrivilegedArgOffChainVaultSubscribe as H, MsgCreateDerivativeMarketOrderV2 as Ht, MsgRevoke as I, MsgDeposit$1 as In, MsgSetDelegationTransferReceiversV2 as It, ExecArgCreatePerpGridStrategy as J, MsgCancelBinaryOptionsOrderV2 as Jt, ExecPrivilegedArgVaultRedeem as K, MsgCreateDerivativeMarketOrder as Kt, MsgGrant as L, MsgCreateBinaryOptionsLimitOrderV2 as Lt, ContractExecutionCompatAuthorization as M, MsgWithdrawV2 as Mn, MsgCreateBinaryOptionsMarketOrderV2 as Mt, ContractExecutionAuthorization as N, MsgSignDataV2 as Nn, MsgBatchCancelBinaryOptionsOrdersV2 as Nt, MsgRemoveRateLimit as O, MsgExternalTransfer as On, MsgDeposit as Ot, GenericAuthorization as P, MsgDepositV2 as Pn, MsgAdminUpdateBinaryOptionsMarketV2 as Pt, ExecArgRemoveGridStrategy as Q, MsgDecreasePositionMarginV2 as Qt, getGenericAuthorizationFromMessageType as R, MsgCreateBinaryOptionsMarketOrder as Rt, MsgBeginRedelegate as S, MsgUpdateSpotMarketV2 as Sn, MsgSubmitProposalSpotMarketParamUpdate as St, MsgDelegate as T, MsgLiquidatePosition as Tn, MsgSubmitProposalSpotMarketLaunch as Tt, ExecPrivilegedArgOffChainVaultRedeem as U, MsgBatchCancelDerivativeOrdersV2 as Ut, GrantAuthorizationType as V, MsgUpdateSubaccountRiskProfileV2 as Vt, ExecArgCW20AdapterRedeemAndTransfer as W, MsgCreateBinaryOptionsLimitOrder as Wt, StrategyType as X, MsgLiquidateCrossMarginPoolV2 as Xt, ExitType as Y, MsgCreateDerivativeLimitOrder as Yt, MsgPrivilegedExecuteContract as Z, MsgInstantSpotMarketLaunchV2 as Zt, MsgRevokeAllowance as _, MsgCancelPostOnlyModeV2 as _n, MsgSend as _t, MsgBurn as a, MsgInstantSpotMarketLaunch as an, ExecArgDepositTokens as at, MsgTransferDelegation as b, MsgUpdateSwapParamsV2 as bn, MsgSubmitProposalExpiryFuturesMarketLaunch as bt, MsgFundCommunityPool as c, MsgAuthorizeStakeGrantsV2 as cn, ExecArgCW20Transfer as ct, MsgCreateNamespace as d, MsgBatchCancelSpotOrders as dn, MsgMigrateContract as dt, MsgCancelBinaryOptionsOrder as en, ExecArgUpdateGridConfig as et, MsgUpdateParams as f, MsgActivateStakeGrantV2 as fn, MsgExecuteContract as ft, MsgUnderwrite as g, MsgSubaccountTransferV2 as gn, MsgMultiSend as gt, MsgRequestRedemption as h, MsgCreateSpotLimitOrder as hn, MsgStoreCode as ht, MsgMint as i, MsgCancelDerivativeOrderV2 as in, ExecArgSwapMinOutput as it, MsgSendToEth as j, MsgRewardsOptOut as jn, MsgInstantBinaryOptionsMarketLaunchV2 as jt, MsgUpdateRateLimit as k, MsgRewardsOptOutV2 as kn, MsgVote as kt, MsgUpdateActorRoles as l, MsgCreateSpotMarketOrder as ln, ExecArgCreateRound as lt, MsgCreateInsuranceFund as m, MsgAuthorizeStakeGrants as mn, MsgUpdateAdmin as mt, MsgCreateDenom as n, MsgCreateSpotMarketOrderV2 as nn, ExecArgSwapExactOutput as nt, MsgWithdrawValidatorCommission as o, MsgActivatePostOnlyModeV2 as on, MsgInstantiateContract as ot, MsgClaimVoucher as p, MsgReclaimLockedFundsV2 as pn, ExecArgCW20Send as pt, ExecArgCreateSpotGridStrategy as q, MsgBatchCancelDerivativeOrders as qt, MsgChangeAdmin as r, MsgBatchCancelSpotOrdersV2 as rn, ExecArgCreateCampaign as rt, MsgWithdrawDelegatorReward as s, MsgCreateSpotLimitOrderV2 as sn, ExecArgFundCampaign as st, MsgSetDenomMetadata as t, MsgUpdateDerivativeMarketV2 as tn, ExecArgInitiateTransfer as tt, MsgUpdateNamespace as u, MsgCancelDerivativeOrder as un, ExecArgSubmitVaa as ut, MsgGrantAllowance as v, MsgLiquidatePositionV2 as vn, MsgTransfer as vt, MsgUndelegate as w, MsgCancelSpotOrderV2 as wn, MsgGrantProviderPrivilegeProposal as wt, MsgCreateValidator as x, MsgExternalTransferV2 as xn, MsgSubmitProposalPerpetualMarketLaunchV2 as xt, MsgCancelUnbondingDelegation as y, MsgBatchUpdateOrdersV2 as yn, ProposalDecomposer as yt, msgsOrMsgExecMsgs as z, MsgBatchCancelBinaryOptionsOrders as zt };
11034
+ export { ExecArgIncreaseAllowance as $, MsgDecreasePositionMarginV2 as $t, MsgCreateRateLimit as A, MsgRewardsOptOutV2 as An, MsgVote as At, MsgExec as B, MsgBatchCancelBinaryOptionsOrders as Bt, MsgEditValidator as C, MsgUpdateSpotMarketV2 as Cn, MsgSubmitProposalSpotMarketParamUpdate as Ct, MsgRelayProviderPrices as D, MsgBatchUpdateOrders as Dn, MsgSubmitGenericProposal as Dt, MsgBid as E, MsgLiquidatePosition as En, MsgSubmitProposalSpotMarketLaunch as Et, MsgGrantWithAuthorization as F, MsgDepositV2 as Fn, MsgAdminUpdateBinaryOptionsMarketV2 as Ft, ExecPrivilegedArgVaultSubscribe as G, MsgCreateBinaryOptionsLimitOrder as Gt, ExecPrivilegedArgOffChainVaultSubscribe as H, MsgUpdateSubaccountRiskProfileV2 as Ht, MsgRevoke as I, MsgWithdraw as In, MsgInstantBinaryOptionsMarketLaunch as It, ExecArgCreatePerpGridStrategy as J, MsgBatchCancelDerivativeOrders as Jt, ExecPrivilegedArgVaultRedeem as K, MsgCreateDerivativeLimitOrderV2 as Kt, MsgGrant as L, MsgDeposit$1 as Ln, MsgSetDelegationTransferReceiversV2 as Lt, ContractExecutionCompatAuthorization as M, MsgRewardsOptOut as Mn, MsgInstantBinaryOptionsMarketLaunchV2 as Mt, ContractExecutionAuthorization as N, MsgWithdrawV2 as Nn, MsgCreateBinaryOptionsMarketOrderV2 as Nt, MsgRemoveRateLimit as O, MsgOffsetPositionV2 as On, MsgSubmitTextProposal as Ot, GenericAuthorization as P, MsgSignDataV2 as Pn, MsgBatchCancelBinaryOptionsOrdersV2 as Pt, ExecArgRemoveGridStrategy as Q, MsgInstantSpotMarketLaunchV2 as Qt, getGenericAuthorizationFromMessageType as R, MsgCreateBinaryOptionsLimitOrderV2 as Rt, MsgBeginRedelegate as S, MsgExternalTransferV2 as Sn, MsgSubmitProposalPerpetualMarketLaunchV2 as St, MsgDelegate as T, MsgCancelSpotOrderV2 as Tn, MsgGrantProviderPrivilegeProposal as Tt, ExecPrivilegedArgOffChainVaultRedeem as U, MsgCreateDerivativeMarketOrderV2 as Ut, GrantAuthorizationType as V, MsgAdminUpdateBinaryOptionsMarket as Vt, ExecArgCW20AdapterRedeemAndTransfer as W, MsgBatchCancelDerivativeOrdersV2 as Wt, StrategyType as X, MsgCreateDerivativeLimitOrder as Xt, ExitType as Y, MsgCancelBinaryOptionsOrderV2 as Yt, MsgPrivilegedExecuteContract as Z, MsgLiquidateCrossMarginPoolV2 as Zt, MsgRevokeAllowance as _, MsgSubaccountTransferV2 as _n, MsgMultiSend as _t, MsgBurn as a, MsgCancelDerivativeOrderV2 as an, ExecArgSwapMinOutput as at, MsgTransferDelegation as b, MsgBatchUpdateOrdersV2 as bn, ProposalDecomposer as bt, MsgFundCommunityPool as c, MsgCreateSpotLimitOrderV2 as cn, ExecArgFundCampaign as ct, MsgCreateNamespace as d, MsgCancelDerivativeOrder as dn, ExecArgSubmitVaa as dt, MsgIncreasePositionMarginV2 as en, MsgUpdateInstantiateConfig as et, MsgUpdateParams as f, MsgBatchCancelSpotOrders as fn, MsgMigrateContract as ft, MsgUnderwrite as g, MsgCreateSpotLimitOrder as gn, MsgStoreCode as gt, MsgRequestRedemption as h, MsgAuthorizeStakeGrants as hn, MsgUpdateAdmin as ht, MsgMint as i, MsgBatchCancelSpotOrdersV2 as in, ExecArgCreateCampaign as it, MsgSendToEth as j, MsgCancelSpotOrder as jn, OrderHashManager as jt, MsgUpdateRateLimit as k, MsgExternalTransfer as kn, MsgDeposit as kt, MsgUpdateActorRoles as l, MsgAuthorizeStakeGrantsV2 as ln, ExecArgCW20Transfer as lt, MsgCreateInsuranceFund as m, MsgReclaimLockedFundsV2 as mn, ExecArgCW20Send as mt, MsgCreateDenom as n, MsgUpdateDerivativeMarketV2 as nn, ExecArgInitiateTransfer as nt, MsgWithdrawValidatorCommission as o, MsgInstantSpotMarketLaunch as on, ExecArgDepositTokens as ot, MsgClaimVoucher as p, MsgActivateStakeGrantV2 as pn, MsgExecuteContract as pt, ExecArgCreateSpotGridStrategy as q, MsgCreateDerivativeMarketOrder as qt, MsgChangeAdmin as r, MsgCreateSpotMarketOrderV2 as rn, ExecArgSwapExactOutput as rt, MsgWithdrawDelegatorReward as s, MsgActivatePostOnlyModeV2 as sn, MsgInstantiateContract as st, MsgSetDenomMetadata as t, MsgCancelBinaryOptionsOrder as tn, ExecArgUpdateGridConfig as tt, MsgUpdateNamespace as u, MsgCreateSpotMarketOrder as un, ExecArgCreateRound as ut, MsgGrantAllowance as v, MsgCancelPostOnlyModeV2 as vn, MsgSend as vt, MsgUndelegate as w, MsgReclaimLockedFunds as wn, MsgSubmitProposalPerpetualMarketLaunch as wt, MsgCreateValidator as x, MsgUpdateSwapParamsV2 as xn, MsgSubmitProposalExpiryFuturesMarketLaunch as xt, MsgCancelUnbondingDelegation as y, MsgLiquidatePositionV2 as yn, MsgTransfer as yt, msgsOrMsgExecMsgs as z, MsgCreateBinaryOptionsMarketOrder as zt };
@@ -1,5 +1,5 @@
1
1
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
2
- import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-DkRSQkU9.js";
2
+ import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-DKboflD4.js";
3
3
  import { IndexerErrorModule } from "@injectivelabs/exceptions";
4
4
  import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb";
5
5
  import { InjectiveDmmV2Client } from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.client";
@@ -1,7 +1,7 @@
1
1
  import { a as fromBase64, d as toBase64, f as toUtf8, r as binaryToBase64 } from "./encoding-light-BpntDob-.js";
2
2
  import { t as _defineProperty } from "./defineProperty-BwBXXd7t.js";
3
- import { g as ChainGrpcWasmApi } from "./chain-Jr63sBTP.js";
4
- import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-BM5u-FxH.js";
3
+ import { g as ChainGrpcWasmApi } from "./chain-Ck-hh_DM.js";
4
+ import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-Cy5glCPr.js";
5
5
  import { GeneralException } from "@injectivelabs/exceptions";
6
6
  import { Network, getNetworkEndpoints, isMainnet } from "@injectivelabs/networks";
7
7