@injectivelabs/sdk-ts 1.20.67 → 1.21.0-alpha.0

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 (110) hide show
  1. package/README.md +25 -0
  2. package/dist/cjs/{BaseGrpcConsumer-DVDjYQks.d.cts → BaseGrpcConsumer-CRYBdXm9.d.cts} +1 -1
  3. package/dist/cjs/{ChainGrpcExchangeApi-DEoO0jhR.cjs → ChainGrpcExchangeApi-D2diaVMC.cjs} +2 -73
  4. package/dist/cjs/{ChainRestTendermintApi-BkHzZIRZ.cjs → ChainRestTendermintApi-BSGN-XV3.cjs} +2 -2
  5. package/dist/cjs/{DirectEthSecp256k1Wallet-DfvrKuF8.cjs → DirectEthSecp256k1Wallet-CsOHUTrG.cjs} +1 -1
  6. package/dist/cjs/{ExecArgNeptuneWithdraw-BJHAQJlT.cjs → ExecArgNeptuneWithdraw-CHK2kF7l.cjs} +2 -2
  7. package/dist/cjs/{IndexerGrpcWeb3GwApi-C9VUHKOj.cjs → IndexerGrpcWeb3GwApi-BaCa4M1S.cjs} +4 -2
  8. package/dist/cjs/{MsgBase-jNBijPHQ.cjs → MsgBase-Dt0pa34P.cjs} +93 -36
  9. package/dist/cjs/{MsgSetDenomMetadata-Did-0k6O.cjs → MsgSetDenomMetadata-BKnmW-f2.cjs} +3361 -4248
  10. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-B3pcJep3.cjs → QueryTradingStrategyContractTotalStrategies-BiIzwy-H.cjs} +2 -2
  11. package/dist/cjs/{StreamManagerV2-DRWQ5QH0.cjs → StreamManagerV2-DftPsZ02.cjs} +2 -2
  12. package/dist/cjs/{accounts-BeV7wTTf.cjs → accounts-C6QIpAkP.cjs} +22 -2
  13. package/dist/cjs/{chain-B3HLDM4b.cjs → chain-D4Z7pAD0.cjs} +120 -206
  14. package/dist/cjs/client/abacus.d.cts +5 -5
  15. package/dist/cjs/client/chain.cjs +4 -5
  16. package/dist/cjs/client/chain.d.cts +12 -12
  17. package/dist/cjs/client/indexer.cjs +3 -3
  18. package/dist/cjs/client/indexer.d.cts +12 -12
  19. package/dist/cjs/client/olp.d.cts +5 -5
  20. package/dist/cjs/client/platformServices.d.cts +5 -5
  21. package/dist/cjs/client/tcAbacus.d.cts +5 -5
  22. package/dist/cjs/client/wasm.cjs +7 -7
  23. package/dist/cjs/client/wasm.d.cts +4 -4
  24. package/dist/cjs/core/accounts.cjs +3 -3
  25. package/dist/cjs/core/accounts.d.cts +11 -11
  26. package/dist/cjs/core/modules.cjs +15 -23
  27. package/dist/cjs/core/modules.d.cts +12 -12
  28. package/dist/cjs/core/tx.cjs +7 -6
  29. package/dist/cjs/core/tx.d.cts +12 -12
  30. package/dist/cjs/cosmjs.cjs +7 -7
  31. package/dist/cjs/cosmjs.d.cts +2 -2
  32. package/dist/cjs/exports.cjs +7 -7
  33. package/dist/cjs/exports.d.cts +2 -2
  34. package/dist/cjs/{index-BtwpJOwb.d.cts → index-5s92DIT3.d.cts} +1 -1
  35. package/dist/{esm/index-B4-RPlmi.d.ts → cjs/index-B7LT8B2g.d.cts} +25673 -26257
  36. package/dist/cjs/{index-CfGvB4c1.d.cts → index-BNqPdwIL.d.cts} +1 -1
  37. package/dist/cjs/{index-iLM1noAM.d.cts → index-ByaAgMci.d.cts} +1 -1
  38. package/dist/{esm/index-CTEvW2RT.d.ts → cjs/index-CBEIfBLI.d.cts} +34 -84
  39. package/dist/{esm/index--I7NYLY5.d.ts → cjs/index-CKFM2Zot.d.cts} +35 -350
  40. package/dist/cjs/{index-Beskv_ry.d.cts → index-CcNtmgW5.d.cts} +2 -2
  41. package/dist/cjs/{index-Bv-5dlo_.d.cts → index-DzI7PClu.d.cts} +1 -1
  42. package/dist/cjs/{index-CY06tllr.d.cts → index-fb-zX9fQ.d.cts} +1 -1
  43. package/dist/cjs/index.cjs +19 -27
  44. package/dist/cjs/index.d.cts +12 -12
  45. package/dist/{esm/light-BFGvKXwS.d.ts → cjs/light-Dyi8qJP_.d.cts} +3 -0
  46. package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
  47. package/dist/cjs/service.cjs +1 -1
  48. package/dist/cjs/service.d.cts +4 -4
  49. package/dist/cjs/{tx-C8efeicO.cjs → tx-U8W1g3W8.cjs} +4 -4
  50. package/dist/cjs/{tx_pb-DSDGNMKS.d.cts → tx_pb-rX24LEP1.d.cts} +58 -107
  51. package/dist/cjs/types/light.d.cts +1 -1
  52. package/dist/cjs/types.d.cts +3 -3
  53. package/dist/cjs/{utils-DZoXzNOj.cjs → utils-CjlVVckg.cjs} +14 -24
  54. package/dist/cjs/utils.cjs +1 -1
  55. package/dist/cjs/utils.d.cts +11 -11
  56. package/dist/esm/{BaseGrpcConsumer-DzOno3EM.d.ts → BaseGrpcConsumer-BfhC9A-3.d.ts} +1 -1
  57. package/dist/esm/{ChainGrpcExchangeApi-N27wNM6N.js → ChainGrpcExchangeApi-YNNZqhBt.js} +2 -73
  58. package/dist/esm/{ChainRestTendermintApi-CfvwCl2L.js → ChainRestTendermintApi-DGLg38SO.js} +2 -2
  59. package/dist/esm/{DirectEthSecp256k1Wallet-Cq8NYHKd.js → DirectEthSecp256k1Wallet-mXW_mPaC.js} +1 -1
  60. package/dist/esm/{ExecArgNeptuneWithdraw-BRrsGhPy.js → ExecArgNeptuneWithdraw-CpaH5nlc.js} +2 -2
  61. package/dist/esm/{IndexerGrpcWeb3GwApi-CG_ZevUX.js → IndexerGrpcWeb3GwApi-BaQI4k4D.js} +4 -2
  62. package/dist/esm/{MsgBase-BC3GNddA.js → MsgBase-D3okqFzc.js} +88 -37
  63. package/dist/esm/{MsgSetDenomMetadata-B7IN-5j2.js → MsgSetDenomMetadata-snSM4b_f.js} +900 -1738
  64. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DNbF4zfF.js → QueryTradingStrategyContractTotalStrategies-C5T8K9t0.js} +2 -2
  65. package/dist/esm/{StreamManagerV2-IyJuIDxz.js → StreamManagerV2-DayR_Wxb.js} +2 -2
  66. package/dist/esm/{accounts-D2h6m8BF.js → accounts-BNTm8lj5.js} +22 -2
  67. package/dist/esm/{chain-cb8a0SyE.js → chain-Bx2cRWCa.js} +141 -220
  68. package/dist/esm/client/abacus.d.ts +5 -5
  69. package/dist/esm/client/chain.d.ts +12 -12
  70. package/dist/esm/client/chain.js +5 -5
  71. package/dist/esm/client/indexer.d.ts +12 -12
  72. package/dist/esm/client/indexer.js +3 -3
  73. package/dist/esm/client/olp.d.ts +5 -5
  74. package/dist/esm/client/platformServices.d.ts +5 -5
  75. package/dist/esm/client/tcAbacus.d.ts +5 -5
  76. package/dist/esm/client/wasm.d.ts +4 -4
  77. package/dist/esm/client/wasm.js +7 -7
  78. package/dist/esm/core/accounts.d.ts +11 -11
  79. package/dist/esm/core/accounts.js +3 -3
  80. package/dist/esm/core/modules.d.ts +12 -12
  81. package/dist/esm/core/modules.js +10 -10
  82. package/dist/esm/core/tx.d.ts +12 -12
  83. package/dist/esm/core/tx.js +7 -7
  84. package/dist/esm/cosmjs.d.ts +2 -2
  85. package/dist/esm/cosmjs.js +7 -7
  86. package/dist/esm/exports.d.ts +2 -2
  87. package/dist/esm/exports.js +7 -7
  88. package/dist/esm/{index-DG-I0T6b.d.ts → index-BLlbbiGL.d.ts} +1 -1
  89. package/dist/{cjs/index-B8XGu-SI.d.cts → esm/index-BeikP7Cq.d.ts} +35 -350
  90. package/dist/esm/{index-B2tw9CHl.d.ts → index-CQGymzVV.d.ts} +1 -1
  91. package/dist/esm/{index-BtOljr6v.d.ts → index-DhhaPvLx.d.ts} +1 -1
  92. package/dist/{cjs/index-4IPdy0bE.d.cts → esm/index-DjAbTs6N.d.ts} +34 -84
  93. package/dist/{cjs/index-Zlg1uSyt.d.cts → esm/index-DyuSCKzD.d.ts} +25673 -26257
  94. package/dist/esm/{index-CJxCX4wl.d.ts → index-KPxccQ6b.d.ts} +1 -1
  95. package/dist/esm/{index-BHELcAAg.d.ts → index-SCzTXWme.d.ts} +2 -2
  96. package/dist/esm/{index-OpqhooKr.d.ts → index-c0wEF5XN.d.ts} +1 -1
  97. package/dist/esm/index.d.ts +12 -12
  98. package/dist/esm/index.js +13 -13
  99. package/dist/{cjs/light-B-3BDUJ7.d.cts → esm/light-cJI0PSqu.d.ts} +3 -0
  100. package/dist/esm/proto/cosmos-tx.d.ts +1 -1
  101. package/dist/esm/service.d.ts +4 -4
  102. package/dist/esm/service.js +1 -1
  103. package/dist/esm/{tx-C9bEwXA1.js → tx-COcI7kYx.js} +4 -4
  104. package/dist/esm/{tx_pb-Blty6MDM.d.ts → tx_pb-pR8s8ZkE.d.ts} +58 -107
  105. package/dist/esm/types/light.d.ts +1 -1
  106. package/dist/esm/types.d.ts +3 -3
  107. package/dist/esm/{utils-Cs0fKB6M.js → utils-Bprop_i9.js} +14 -24
  108. package/dist/esm/utils.d.ts +11 -11
  109. package/dist/esm/utils.js +1 -1
  110. package/package.json +6 -6
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_encoding_light = require('./encoding-light-D96nxVLW.cjs');
3
3
  const require_defineProperty = require('./defineProperty-C3FP2y9Y.cjs');
4
- const require_chain = require('./chain-B3HLDM4b.cjs');
5
- const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-BJHAQJlT.cjs');
4
+ const require_chain = require('./chain-D4Z7pAD0.cjs');
5
+ const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-CHK2kF7l.cjs');
6
6
  let __injectivelabs_utils = require("@injectivelabs/utils");
7
7
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
8
8
  let __injectivelabs_networks = require("@injectivelabs/networks");
@@ -1,13 +1,13 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_encoding_light = require('./encoding-light-D96nxVLW.cjs');
3
3
  const require_defineProperty = require('./defineProperty-C3FP2y9Y.cjs');
4
- const require_utils = require('./utils-DZoXzNOj.cjs');
4
+ const require_utils = require('./utils-CjlVVckg.cjs');
5
5
  const require_light = require('./light-zeGviAVI.cjs');
6
6
  const require_stream = require('./stream-NLunNFnw.cjs');
7
7
  const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-BLIJoFic.cjs');
8
8
  const require_BaseIndexerGrpcConsumer = require('./BaseIndexerGrpcConsumer-C59DoCx1.cjs');
9
9
  const require_BaseRestConsumer = require('./BaseRestConsumer-BPrYlltM.cjs');
10
- const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-C9VUHKOj.cjs');
10
+ const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-BaCa4M1S.cjs');
11
11
  let __injectivelabs_utils = require("@injectivelabs/utils");
12
12
  let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
13
13
  let __injectivelabs_indexer_proto_ts_v2_generated_injective_rfq_rpc_pb = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb");
@@ -2,9 +2,9 @@ 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
4
  const require_defineProperty = require('./defineProperty-C3FP2y9Y.cjs');
5
- const require_utils = require('./utils-DZoXzNOj.cjs');
5
+ const require_utils = require('./utils-CjlVVckg.cjs');
6
6
  const require_address_light = require('./address-light-DUoYqdPQ.cjs');
7
- const require_MsgBase = require('./MsgBase-jNBijPHQ.cjs');
7
+ const require_MsgBase = require('./MsgBase-Dt0pa34P.cjs');
8
8
  let __injectivelabs_core_proto_ts_v2_generated_cosmos_tx_v1beta1_tx_pb = require("@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb");
9
9
  __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);
10
10
  let viem = require("viem");
@@ -556,12 +556,32 @@ const getEipTxContext = ({ accountNumber, sequence, fee, timeoutHeight, chainId,
556
556
  };
557
557
  };
558
558
 
559
+ //#endregion
560
+ //#region src/core/tx/eip712/validate.ts
561
+ const EIP712_V1_HINT = "Please use EIP712_v2";
562
+ /** The chain cannot hash a declared v1 field whose Amino value was omitted, or a non-array for an array type. */
563
+ const assertEip712V1Values = (value, types, type = "MsgValue", path = "value") => {
564
+ const fields = types.get(type);
565
+ if (!fields) return;
566
+ for (const field of fields) {
567
+ const fieldPath = `${path}.${field.name}`;
568
+ const fieldValue = typeof value === "object" && value !== null ? value[field.name] : void 0;
569
+ if (fieldValue === void 0 || fieldValue === null) throw new __injectivelabs_exceptions.GeneralException(/* @__PURE__ */ new Error(`EIP712_v1 cannot sign an omitted field (${fieldPath}). Please use EIP712_v2`));
570
+ if (field.type.endsWith("[]")) {
571
+ if (!Array.isArray(fieldValue)) throw new __injectivelabs_exceptions.GeneralException(/* @__PURE__ */ new Error(`EIP712_v1 cannot sign a non-array value for an array field (${fieldPath}). ${EIP712_V1_HINT}`));
572
+ fieldValue.forEach((entry, index) => assertEip712V1Values(entry, types, field.type.slice(0, -2), `${fieldPath}[${index}]`));
573
+ } else assertEip712V1Values(fieldValue, types, field.type, fieldPath);
574
+ }
575
+ };
576
+
559
577
  //#endregion
560
578
  //#region src/core/tx/eip712/eip712.ts
561
579
  const getEip712TypedData = ({ msgs, tx, fee, evmChainId }) => {
562
580
  const messages = Array.isArray(msgs) ? msgs : [msgs];
581
+ messages.forEach((m) => m.assertEip712V1Supported());
563
582
  const eip712Msgs = messages.map((m) => m.toEip712());
564
583
  const eip712MessageTypes = messages[0].toEip712Types();
584
+ eip712Msgs.forEach((message, index) => assertEip712V1Values(message.value, eip712MessageTypes, "MsgValue", `msgs[${index}].value`));
565
585
  return {
566
586
  ...getTypesIncludingFeeOptions({
567
587
  fee,
@@ -1,9 +1,9 @@
1
1
  const require_chunk = require('./chunk-CbDLau6x.cjs');
2
2
  const require_encoding_light = require('./encoding-light-D96nxVLW.cjs');
3
3
  const require_defineProperty = require('./defineProperty-C3FP2y9Y.cjs');
4
- const require_utils = require('./utils-DZoXzNOj.cjs');
4
+ const require_utils = require('./utils-CjlVVckg.cjs');
5
5
  const require_address_light = require('./address-light-DUoYqdPQ.cjs');
6
- const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-BkHzZIRZ.cjs');
6
+ const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-BSGN-XV3.cjs');
7
7
  const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-BLIJoFic.cjs');
8
8
  const require_BaseRestConsumer = require('./BaseRestConsumer-BPrYlltM.cjs');
9
9
  let __injectivelabs_utils = require("@injectivelabs/utils");
@@ -34,9 +34,6 @@ let __injectivelabs_core_proto_ts_v2_generated_cosmos_authz_v1beta1_query_pb_cli
34
34
  let __injectivelabs_core_proto_ts_v2_generated_injective_peggy_v1_query_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/peggy/v1/query_pb");
35
35
  __injectivelabs_core_proto_ts_v2_generated_injective_peggy_v1_query_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_peggy_v1_query_pb);
36
36
  let __injectivelabs_core_proto_ts_v2_generated_injective_peggy_v1_query_pb_client = require("@injectivelabs/core-proto-ts-v2/generated/injective/peggy/v1/query_pb.client");
37
- let __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/query_pb");
38
- __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb);
39
- let __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb_client = require("@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/query_pb.client");
40
37
  let __injectivelabs_core_proto_ts_v2_generated_injective_erc20_v1beta1_query_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/query_pb");
41
38
  __injectivelabs_core_proto_ts_v2_generated_injective_erc20_v1beta1_query_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_erc20_v1beta1_query_pb);
42
39
  let __injectivelabs_core_proto_ts_v2_generated_injective_erc20_v1beta1_query_pb_client = require("@injectivelabs/core-proto-ts-v2/generated/injective/erc20/v1beta1/query_pb.client");
@@ -929,49 +926,6 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
929
926
  ttlTimestamp: Number(info.ttlTimestamp)
930
927
  } : void 0;
931
928
  }
932
- static grpcPointsMultiplierToPointsMultiplier(point) {
933
- return {
934
- makerPointsMultiplier: point.makerPointsMultiplier,
935
- takerPointsMultiplier: point.takerPointsMultiplier
936
- };
937
- }
938
- static grpcTradingRewardCampaignBoostInfoToTradingRewardCampaignBoostInfo(info) {
939
- return info ? {
940
- boostedSpotMarketIdsList: info.boostedSpotMarketIds,
941
- spotMarketMultipliersList: info.spotMarketMultipliers.map(ChainGrpcExchangeTransformerV2.grpcPointsMultiplierToPointsMultiplier),
942
- boostedDerivativeMarketIdsList: info.boostedDerivativeMarketIds,
943
- derivativeMarketMultipliersList: info.derivativeMarketMultipliers.map(ChainGrpcExchangeTransformerV2.grpcPointsMultiplierToPointsMultiplier)
944
- } : void 0;
945
- }
946
- static grpcTradingRewardCampaignInfoToTradingRewardCampaignInfo(info) {
947
- return info ? {
948
- campaignDurationSeconds: Number(info.campaignDurationSeconds),
949
- quoteDenomsList: info.quoteDenoms,
950
- tradingRewardBoostInfo: ChainGrpcExchangeTransformerV2.grpcTradingRewardCampaignBoostInfoToTradingRewardCampaignBoostInfo(info.tradingRewardBoostInfo),
951
- disqualifiedMarketIdsList: info.disqualifiedMarketIds
952
- } : void 0;
953
- }
954
- static grpcCampaignRewardPoolToCampaignRewardPool(pool) {
955
- return {
956
- startTimestamp: Number(pool.startTimestamp),
957
- maxCampaignRewardsList: pool.maxCampaignRewards.map((coin) => ({
958
- amount: coin.amount,
959
- denom: coin.denom
960
- }))
961
- };
962
- }
963
- static tradingRewardsCampaignResponseToTradingRewardsCampaign(response) {
964
- return {
965
- tradingRewardCampaignInfo: ChainGrpcExchangeTransformerV2.grpcTradingRewardCampaignInfoToTradingRewardCampaignInfo(response.tradingRewardCampaignInfo),
966
- tradingRewardPoolCampaignScheduleList: response.tradingRewardPoolCampaignSchedule.map(ChainGrpcExchangeTransformerV2.grpcCampaignRewardPoolToCampaignRewardPool),
967
- pendingTradingRewardPoolCampaignScheduleList: response.pendingTradingRewardPoolCampaignSchedule.map(ChainGrpcExchangeTransformerV2.grpcCampaignRewardPoolToCampaignRewardPool),
968
- totalTradeRewardPoints: response.totalTradeRewardPoints,
969
- pendingTotalTradeRewardPointsList: response.pendingTotalTradeRewardPoints
970
- };
971
- }
972
- static isOptedOutOfRewardsResponseToIsOptedOutOfRewards(response) {
973
- return { isOptedOut: response.isOptedOut };
974
- }
975
929
  static activeStakeGrantResponseToActiveStakeGrant(response) {
976
930
  if (!response.grant || !response.effectiveGrant) throw new Error("Active stake grant not found in response");
977
931
  return {
@@ -1076,12 +1030,13 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1076
1030
  feeReserveTotal: response.feeReserveTotal,
1077
1031
  orderLockRequirement: response.orderLockRequirement,
1078
1032
  positiveUpnlHaircutRate: response.positiveUpnlHaircutRate,
1079
- healthFactor: response.healthFactor
1033
+ healthFactor: response.healthFactor,
1034
+ ratchetedMaintenanceMarginTotal: response.ratchetedMaintenanceMarginTotal,
1035
+ crossMarginUtilRatio: response.crossMarginUtilRatio,
1036
+ positionOrderLockRequirement: response.positionOrderLockRequirement,
1037
+ nonPositionOrderLockRequirement: response.nonPositionOrderLockRequirement
1080
1038
  };
1081
1039
  }
1082
- static tradeRewardPointsResponseToTradeRewardPoints(response) {
1083
- return { accountTradeRewardPoints: response.accountTradeRewardPoints };
1084
- }
1085
1040
  static openInterestResponseToOpenInterest(response) {
1086
1041
  return { amount: response.amount ? {
1087
1042
  marketId: response.amount.marketId,
@@ -1173,7 +1128,7 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1173
1128
  return response.markets.map(ChainGrpcExchangeTransformerV2.grpcFullDerivativeMarketToDerivativeMarket);
1174
1129
  }
1175
1130
  static grpcFullDerivativeMarketToDerivativeMarket(market) {
1176
- var _market$info, _perpetualMarketInfo$, _perpetualMarketInfo$2, _perpetualMarketInfo$3, _perpetualMarketInfo$4;
1131
+ var _market$info, _perpetualMarketInfo$, _perpetualMarketInfo$2, _perpetualMarketInfo$3, _perpetualMarketInfo$4, _perpetualMarketInfo$5;
1177
1132
  const marketInfo = market.market;
1178
1133
  const perpetualMarketInfo = ((_market$info = market.info) === null || _market$info === void 0 ? void 0 : _market$info.oneofKind) === "perpetualInfo" ? market.info.perpetualInfo.marketInfo : void 0;
1179
1134
  return {
@@ -1196,11 +1151,14 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1196
1151
  oracleBase: marketInfo.oracleBase,
1197
1152
  oracleQuote: marketInfo.oracleQuote,
1198
1153
  oracleScaleFactor: marketInfo.oracleScaleFactor,
1154
+ syntheticTradeFeeRate: marketInfo.syntheticTradeFeeRate,
1155
+ referencePriceGateConfig: marketInfo.referencePriceGateConfig,
1199
1156
  perpetualMarketInfo: {
1200
1157
  hourlyFundingRateCap: (_perpetualMarketInfo$ = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.hourlyFundingRateCap) !== null && _perpetualMarketInfo$ !== void 0 ? _perpetualMarketInfo$ : "0",
1201
1158
  hourlyInterestRate: (_perpetualMarketInfo$2 = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.hourlyInterestRate) !== null && _perpetualMarketInfo$2 !== void 0 ? _perpetualMarketInfo$2 : "0",
1202
1159
  nextFundingTimestamp: Number((_perpetualMarketInfo$3 = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.nextFundingTimestamp) !== null && _perpetualMarketInfo$3 !== void 0 ? _perpetualMarketInfo$3 : 0),
1203
- fundingInterval: Number((_perpetualMarketInfo$4 = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.fundingInterval) !== null && _perpetualMarketInfo$4 !== void 0 ? _perpetualMarketInfo$4 : 0)
1160
+ fundingInterval: Number((_perpetualMarketInfo$4 = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.fundingInterval) !== null && _perpetualMarketInfo$4 !== void 0 ? _perpetualMarketInfo$4 : 0),
1161
+ fundingImpactNotional: (_perpetualMarketInfo$5 = perpetualMarketInfo === null || perpetualMarketInfo === void 0 ? void 0 : perpetualMarketInfo.fundingImpactNotional) !== null && _perpetualMarketInfo$5 !== void 0 ? _perpetualMarketInfo$5 : "0"
1204
1162
  }
1205
1163
  };
1206
1164
  }
@@ -1262,7 +1220,8 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1262
1220
  hourlyFundingRateCap: response.info.hourlyFundingRateCap,
1263
1221
  hourlyInterestRate: response.info.hourlyInterestRate,
1264
1222
  nextFundingTimestamp: Number(response.info.nextFundingTimestamp),
1265
- fundingInterval: Number(response.info.fundingInterval)
1223
+ fundingInterval: Number(response.info.fundingInterval),
1224
+ fundingImpactNotional: response.info.fundingImpactNotional
1266
1225
  } : void 0 };
1267
1226
  }
1268
1227
  static expiryFuturesMarketInfoResponseToExpiryFuturesMarketInfo(response) {
@@ -1280,7 +1239,10 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1280
1239
  return { state: response.state ? {
1281
1240
  cumulativeFunding: response.state.cumulativeFunding,
1282
1241
  cumulativePrice: response.state.cumulativePrice,
1283
- lastTimestamp: Number(response.state.lastTimestamp)
1242
+ lastTimestamp: Number(response.state.lastTimestamp),
1243
+ periodStart: Number(response.state.periodStart),
1244
+ lastPremium: response.state.lastPremium,
1245
+ lastSampleTimestamp: Number(response.state.lastSampleTimestamp)
1284
1246
  } : void 0 };
1285
1247
  }
1286
1248
  static feeDiscountTierStatisticsResponseToFeeDiscountTierStatistics(response) {
@@ -1289,19 +1251,6 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1289
1251
  count: Number(statistic.count)
1290
1252
  })) };
1291
1253
  }
1292
- static historicalTradeRecordsResponseToHistoricalTradeRecords(response) {
1293
- return { tradeRecords: response.tradeRecords.map((records) => ({
1294
- marketId: records.marketId,
1295
- latestTradeRecords: records.latestTradeRecords.map(ChainGrpcExchangeTransformerV2.grpcTradeRecordToTradeRecord)
1296
- })) };
1297
- }
1298
- static grpcTradeRecordToTradeRecord(record) {
1299
- return {
1300
- timestamp: Number(record.timestamp),
1301
- price: record.price,
1302
- quantity: record.quantity
1303
- };
1304
- }
1305
1254
  static grantAuthorizationsResponseToGrantAuthorizations(response) {
1306
1255
  return {
1307
1256
  totalGrantAmount: response.totalGrantAmount,
@@ -1343,56 +1292,6 @@ var ChainGrpcExchangeTransformerV2 = class ChainGrpcExchangeTransformerV2 {
1343
1292
  } : void 0
1344
1293
  })) };
1345
1294
  }
1346
- static binaryOptionsMarketsResponseToBinaryOptionsMarkets(response) {
1347
- return { markets: response.markets.map((market) => ({
1348
- ticker: market.ticker,
1349
- oracleSymbol: market.oracleSymbol,
1350
- oracleProvider: market.oracleProvider,
1351
- oracleType: market.oracleType,
1352
- oracleScaleFactor: market.oracleScaleFactor,
1353
- expirationTimestamp: Number(market.expirationTimestamp),
1354
- settlementTimestamp: Number(market.settlementTimestamp),
1355
- admin: market.admin,
1356
- quoteDenom: market.quoteDenom,
1357
- marketId: market.marketId,
1358
- makerFeeRate: market.makerFeeRate,
1359
- takerFeeRate: market.takerFeeRate,
1360
- relayerFeeShareRate: market.relayerFeeShareRate,
1361
- status: market.status,
1362
- minPriceTickSize: market.minPriceTickSize,
1363
- minQuantityTickSize: market.minQuantityTickSize,
1364
- settlementPrice: market.settlementPrice,
1365
- minNotional: market.minNotional,
1366
- adminPermissions: market.adminPermissions,
1367
- quoteDecimals: market.quoteDecimals,
1368
- openNotionalCap: market.openNotionalCap && market.openNotionalCap.cap.oneofKind !== void 0 ? {
1369
- type: market.openNotionalCap.cap.oneofKind === "capped" ? "capped" : "uncapped",
1370
- value: market.openNotionalCap.cap.oneofKind === "capped" ? market.openNotionalCap.cap.capped.value : void 0
1371
- } : void 0,
1372
- hasDisabledMinimalProtocolFee: market.hasDisabledMinimalProtocolFee,
1373
- forcePausedInfo: market.forcePausedInfo ? {
1374
- reason: market.forcePausedInfo.reason,
1375
- markPriceAtPausing: market.forcePausedInfo.markPriceAtPausing
1376
- } : void 0
1377
- })) };
1378
- }
1379
- static marketVolatilityResponseToMarketVolatility(response) {
1380
- return {
1381
- volatility: response.volatility,
1382
- historyMetadata: response.historyMetadata ? {
1383
- groupCount: response.historyMetadata.groupCount,
1384
- recordsSampleSize: response.historyMetadata.recordsSampleSize,
1385
- mean: response.historyMetadata.mean,
1386
- twap: response.historyMetadata.twap,
1387
- firstTimestamp: Number(response.historyMetadata.firstTimestamp),
1388
- lastTimestamp: Number(response.historyMetadata.lastTimestamp),
1389
- minPrice: response.historyMetadata.minPrice,
1390
- maxPrice: response.historyMetadata.maxPrice,
1391
- medianPrice: response.historyMetadata.medianPrice
1392
- } : void 0,
1393
- rawHistory: response.rawHistory.map(ChainGrpcExchangeTransformerV2.grpcTradeRecordToTradeRecord)
1394
- };
1395
- }
1396
1295
  };
1397
1296
 
1398
1297
  //#endregion
@@ -1456,7 +1355,10 @@ var ChainGrpcPermissionsTransformer = class ChainGrpcPermissionsTransformer {
1456
1355
  static moduleParamsResponseToModuleParams(response) {
1457
1356
  const params = response.params;
1458
1357
  if (!params) throw new Error("Params not found in response");
1459
- return { wasmHookQueryMaxGas: params.contractHookMaxGas.toString() };
1358
+ return {
1359
+ wasmHookQueryMaxGas: params.contractHookMaxGas.toString(),
1360
+ ownerBlacklistQueryMaxGas: params.ownerBlacklistQueryMaxGas.toString()
1361
+ };
1460
1362
  }
1461
1363
  static nameSpaceDenomsResponseToNameSpaceDenoms(response) {
1462
1364
  return response.denoms.map((denom) => denom);
@@ -1606,6 +1508,63 @@ var ChainGrpcInsuranceFundTransformer = class ChainGrpcInsuranceFundTransformer
1606
1508
  static insuranceFundsResponseToInsuranceFunds(response) {
1607
1509
  return response.funds.map((fund) => ChainGrpcInsuranceFundTransformer.grpcInsuranceFundToInsuranceFund(fund));
1608
1510
  }
1511
+ static grpcConsolidatedPoolToConsolidatedPool(pool) {
1512
+ var _pool$redemptionNotic;
1513
+ return {
1514
+ depositDenom: pool.depositDenom,
1515
+ shareDenom: pool.shareDenom,
1516
+ quoteDecimals: pool.quoteDecimals,
1517
+ redemptionNoticePeriodDuration: Number(((_pool$redemptionNotic = pool.redemptionNoticePeriodDuration) === null || _pool$redemptionNotic === void 0 ? void 0 : _pool$redemptionNotic.seconds) || 0n),
1518
+ balance: pool.balance,
1519
+ totalShare: pool.totalShare,
1520
+ maxDrawPerMarket: pool.maxDrawPerMarket,
1521
+ paused: pool.paused,
1522
+ reservedBalance: pool.reservedBalance,
1523
+ pendingReservationRedemptions: Number(pool.pendingReservationRedemptions)
1524
+ };
1525
+ }
1526
+ static grpcConsolidatedPolicyToConsolidatedPolicy(policy) {
1527
+ return {
1528
+ marketId: policy.marketId,
1529
+ poolDenom: policy.poolDenom,
1530
+ maxDraw: policy.maxDraw,
1531
+ outstandingDraw: policy.outstandingDraw,
1532
+ netPrefunding: policy.netPrefunding,
1533
+ reservedAmount: policy.reservedAmount
1534
+ };
1535
+ }
1536
+ static grpcConsolidatedRedemptionToConsolidatedRedemption(schedule) {
1537
+ var _schedule$claimableRe, _schedule$shares, _schedule$shares2;
1538
+ return {
1539
+ id: Number(schedule.id),
1540
+ poolDenom: schedule.poolDenom,
1541
+ redeemer: schedule.redeemer,
1542
+ claimableRedemptionTime: Number(((_schedule$claimableRe = schedule.claimableRedemptionTime) === null || _schedule$claimableRe === void 0 ? void 0 : _schedule$claimableRe.seconds) || 0n),
1543
+ shares: {
1544
+ denom: ((_schedule$shares = schedule.shares) === null || _schedule$shares === void 0 ? void 0 : _schedule$shares.denom) || "",
1545
+ amount: ((_schedule$shares2 = schedule.shares) === null || _schedule$shares2 === void 0 ? void 0 : _schedule$shares2.amount) || "0"
1546
+ },
1547
+ waitingForReservedCash: schedule.waitingForReservedCash
1548
+ };
1549
+ }
1550
+ static consolidatedPoolsResponseToConsolidatedPools(response) {
1551
+ return response.pools.map(ChainGrpcInsuranceFundTransformer.grpcConsolidatedPoolToConsolidatedPool);
1552
+ }
1553
+ static consolidatedPolicyResponseToConsolidatedPolicy(response) {
1554
+ return response.policy ? ChainGrpcInsuranceFundTransformer.grpcConsolidatedPolicyToConsolidatedPolicy(response.policy) : void 0;
1555
+ }
1556
+ static consolidatedPoliciesResponseToConsolidatedPolicies(response) {
1557
+ return {
1558
+ policies: response.policies.map(ChainGrpcInsuranceFundTransformer.grpcConsolidatedPolicyToConsolidatedPolicy),
1559
+ pagination: require_utils.ChainGrpcCommonTransformer.grpcPaginationToPaginationV2(response.pagination)
1560
+ };
1561
+ }
1562
+ static consolidatedRedemptionsResponseToConsolidatedRedemptions(response) {
1563
+ return {
1564
+ schedules: response.schedules.map(ChainGrpcInsuranceFundTransformer.grpcConsolidatedRedemptionToConsolidatedRedemption),
1565
+ pagination: require_utils.ChainGrpcCommonTransformer.grpcPaginationToPaginationV2(response.pagination)
1566
+ };
1567
+ }
1609
1568
  static redemptionsResponseToRedemptions(response) {
1610
1569
  return response.amount.map((amount) => {
1611
1570
  return {
@@ -2057,31 +2016,6 @@ var ChainGrpcPeggyApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer
2057
2016
  }
2058
2017
  };
2059
2018
 
2060
- //#endregion
2061
- //#region src/client/chain/grpc/ChainGrpcWasmXApi.ts
2062
- /**
2063
- * @category Chain Grpc API
2064
- */
2065
- var ChainGrpcWasmXApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
2066
- constructor(..._args) {
2067
- super(..._args);
2068
- require_defineProperty._defineProperty(this, "module", require_ChainRestTendermintApi.ChainModule.WasmX);
2069
- }
2070
- get client() {
2071
- return this.initClient(__injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb_client.QueryClient);
2072
- }
2073
- async fetchModuleParams(options) {
2074
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2075
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb.QueryWasmxParamsRequest.create();
2076
- return await this.executeGrpcCall(request, this.client.wasmxParams.bind(this.client), options);
2077
- }
2078
- async fetchModuleState(options) {
2079
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2080
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_wasmx_v1_query_pb.QueryModuleStateRequest.create();
2081
- return (await this.executeGrpcCall(request, this.client.wasmxModuleState.bind(this.client), options)).state;
2082
- }
2083
- };
2084
-
2085
2019
  //#endregion
2086
2020
  //#region src/client/chain/grpc/ChainGrpcErc20Api.ts
2087
2021
  const MAX_LIMIT_FOR_SUPPLY = 1e4;
@@ -2486,27 +2420,6 @@ var ChainGrpcExchangeApiV2 = class extends require_BaseGrpcConsumer.BaseGrpcCons
2486
2420
  const response = await this.executeGrpcCall(request, this.client.feeDiscountAccountInfo.bind(this.client), options);
2487
2421
  return ChainGrpcExchangeTransformerV2.feeDiscountAccountInfoResponseToFeeDiscountAccountInfo(response);
2488
2422
  }
2489
- async fetchTradingRewardsCampaign(options) {
2490
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2491
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryTradeRewardCampaignRequest.create();
2492
- const response = await this.executeGrpcCall(request, this.client.tradeRewardCampaign.bind(this.client), options);
2493
- return ChainGrpcExchangeTransformerV2.tradingRewardsCampaignResponseToTradingRewardsCampaign(response);
2494
- }
2495
- async fetchTradeRewardPoints(injectiveAddresses, options) {
2496
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2497
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryTradeRewardPointsRequest.create();
2498
- request.accounts = injectiveAddresses;
2499
- const response = await this.executeGrpcCall(request, this.client.tradeRewardPoints.bind(this.client), options);
2500
- return ChainGrpcExchangeTransformerV2.tradeRewardPointsResponseToTradeRewardPoints(response);
2501
- }
2502
- async fetchPendingTradeRewardPoints(injectiveAddresses, timestamp, options) {
2503
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2504
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryTradeRewardPointsRequest.create();
2505
- request.accounts = injectiveAddresses;
2506
- if (timestamp !== void 0) request.pendingPoolTimestamp = BigInt(timestamp);
2507
- const response = await this.executeGrpcCall(request, this.client.pendingTradeRewardPoints.bind(this.client), options);
2508
- return ChainGrpcExchangeTransformerV2.tradeRewardPointsResponseToTradeRewardPoints(response);
2509
- }
2510
2423
  async fetchPositions(options) {
2511
2424
  (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2512
2425
  const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryPositionsRequest.create();
@@ -2519,13 +2432,6 @@ var ChainGrpcExchangeApiV2 = class extends require_BaseGrpcConsumer.BaseGrpcCons
2519
2432
  request.subaccountId = subaccountId;
2520
2433
  return { nonce: (await this.executeGrpcCall(request, this.client.subaccountTradeNonce.bind(this.client), options)).nonce };
2521
2434
  }
2522
- async fetchIsOptedOutOfRewards(account, options) {
2523
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2524
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryIsOptedOutOfRewardsRequest.create();
2525
- request.account = account;
2526
- const response = await this.executeGrpcCall(request, this.client.isOptedOutOfRewards.bind(this.client), options);
2527
- return ChainGrpcExchangeTransformerV2.isOptedOutOfRewardsResponseToIsOptedOutOfRewards(response);
2528
- }
2529
2435
  async fetchActiveStakeGrant(account, options) {
2530
2436
  (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2531
2437
  const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryActiveStakeGrantRequest.create();
@@ -2867,33 +2773,6 @@ var ChainGrpcExchangeApiV2 = class extends require_BaseGrpcConsumer.BaseGrpcCons
2867
2773
  request.vaultAddress = vaultAddress;
2868
2774
  return { marketId: (await this.executeGrpcCall(request, this.client.queryMarketIDFromVault.bind(this.client), options)).marketId };
2869
2775
  }
2870
- async fetchHistoricalTradeRecords(marketId, options) {
2871
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2872
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryHistoricalTradeRecordsRequest.create();
2873
- request.marketId = marketId;
2874
- const response = await this.executeGrpcCall(request, this.client.historicalTradeRecords.bind(this.client), options);
2875
- return ChainGrpcExchangeTransformerV2.historicalTradeRecordsResponseToHistoricalTradeRecords(response);
2876
- }
2877
- async fetchOptedOutOfRewardsAccounts(options) {
2878
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2879
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryOptedOutOfRewardsAccountsRequest.create();
2880
- return { accounts: (await this.executeGrpcCall(request, this.client.optedOutOfRewardsAccounts.bind(this.client), options)).accounts };
2881
- }
2882
- async fetchMarketVolatility({ marketId, tradeHistoryOptions }, options) {
2883
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2884
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryMarketVolatilityRequest.create();
2885
- request.marketId = marketId;
2886
- if (tradeHistoryOptions) request.tradeHistoryOptions = tradeHistoryOptions;
2887
- const response = await this.executeGrpcCall(request, this.client.marketVolatility.bind(this.client), options);
2888
- return ChainGrpcExchangeTransformerV2.marketVolatilityResponseToMarketVolatility(response);
2889
- }
2890
- async fetchBinaryOptionsMarkets(status, options) {
2891
- (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2892
- const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryBinaryMarketsRequest.create();
2893
- if (status) request.status = status;
2894
- const response = await this.executeGrpcCall(request, this.client.binaryOptionsMarkets.bind(this.client), options);
2895
- return ChainGrpcExchangeTransformerV2.binaryOptionsMarketsResponseToBinaryOptionsMarkets(response);
2896
- }
2897
2776
  async fetchTraderDerivativeConditionalOrders({ subaccountId, marketId }, options) {
2898
2777
  (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
2899
2778
  const request = __injectivelabs_core_proto_ts_v2_generated_injective_exchange_v2_query_pb.QueryTraderDerivativeConditionalOrdersRequest.create();
@@ -3188,6 +3067,47 @@ var ChainGrpcInsuranceFundApi = class extends require_BaseGrpcConsumer.BaseGrpcC
3188
3067
  const response = await this.executeGrpcCall(request, this.client.pendingRedemptions.bind(this.client), options);
3189
3068
  return ChainGrpcInsuranceFundTransformer.redemptionsResponseToRedemptions(response);
3190
3069
  }
3070
+ /** chain v1.21+, empty `depositDenom` returns every consolidated pool */
3071
+ async fetchConsolidatedInsurancePools({ depositDenom } = {}, options) {
3072
+ (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
3073
+ const request = __injectivelabs_core_proto_ts_v2_generated_injective_insurance_v1beta1_query_pb.QueryConsolidatedInsurancePoolsRequest.create();
3074
+ if (depositDenom) request.depositDenom = depositDenom;
3075
+ const response = await this.executeGrpcCall(request, this.client.consolidatedInsurancePools.bind(this.client), options);
3076
+ return ChainGrpcInsuranceFundTransformer.consolidatedPoolsResponseToConsolidatedPools(response);
3077
+ }
3078
+ async fetchConsolidatedInsurancePolicy(marketId, options) {
3079
+ (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
3080
+ const request = __injectivelabs_core_proto_ts_v2_generated_injective_insurance_v1beta1_query_pb.QueryConsolidatedInsurancePolicyRequest.create();
3081
+ request.marketId = marketId;
3082
+ const response = await this.executeGrpcCall(request, this.client.consolidatedInsurancePolicy.bind(this.client), options);
3083
+ return ChainGrpcInsuranceFundTransformer.consolidatedPolicyResponseToConsolidatedPolicy(response);
3084
+ }
3085
+ /**
3086
+ * chain v1.21+, empty `poolDenom` returns every policy.
3087
+ * Key-only pagination: use `key`, offset / total-count scans are rejected by the chain.
3088
+ */
3089
+ async fetchConsolidatedInsurancePolicies({ poolDenom, pagination } = {}, options) {
3090
+ (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
3091
+ const request = __injectivelabs_core_proto_ts_v2_generated_injective_insurance_v1beta1_query_pb.QueryConsolidatedInsurancePoliciesRequest.create();
3092
+ if (poolDenom) request.poolDenom = poolDenom;
3093
+ const paginationForRequest = require_utils.ChainGrpcCommonTransformer.pageRequestToGrpcPageRequestV2(pagination);
3094
+ if (paginationForRequest) request.pagination = paginationForRequest;
3095
+ const response = await this.executeGrpcCall(request, this.client.consolidatedInsurancePolicies.bind(this.client), options);
3096
+ return ChainGrpcInsuranceFundTransformer.consolidatedPoliciesResponseToConsolidatedPolicies(response);
3097
+ }
3098
+ /**
3099
+ * chain v1.21+, empty `redeemer` returns every pending schedule.
3100
+ * Key-only pagination: use `key`, offset / total-count scans are rejected by the chain.
3101
+ */
3102
+ async fetchConsolidatedRedemptions({ redeemer, pagination } = {}, options) {
3103
+ (0, __injectivelabs_utils.throwIfAborted)(options === null || options === void 0 ? void 0 : options.signal);
3104
+ const request = __injectivelabs_core_proto_ts_v2_generated_injective_insurance_v1beta1_query_pb.QueryConsolidatedRedemptionsRequest.create();
3105
+ if (redeemer) request.redeemer = redeemer;
3106
+ const paginationForRequest = require_utils.ChainGrpcCommonTransformer.pageRequestToGrpcPageRequestV2(pagination);
3107
+ if (paginationForRequest) request.pagination = paginationForRequest;
3108
+ const response = await this.executeGrpcCall(request, this.client.consolidatedRedemptions.bind(this.client), options);
3109
+ return ChainGrpcInsuranceFundTransformer.consolidatedRedemptionsResponseToConsolidatedRedemptions(response);
3110
+ }
3191
3111
  };
3192
3112
 
3193
3113
  //#endregion
@@ -3484,12 +3404,6 @@ Object.defineProperty(exports, 'ChainGrpcWasmTransformer', {
3484
3404
  return ChainGrpcWasmTransformer;
3485
3405
  }
3486
3406
  });
3487
- Object.defineProperty(exports, 'ChainGrpcWasmXApi', {
3488
- enumerable: true,
3489
- get: function () {
3490
- return ChainGrpcWasmXApi;
3491
- }
3492
- });
3493
3407
  Object.defineProperty(exports, 'ChainRestBankApi', {
3494
3408
  enumerable: true,
3495
3409
  get: function () {
@@ -1,6 +1,6 @@
1
- import "../tx_pb-DSDGNMKS.cjs";
2
- import "../index-4IPdy0bE.cjs";
3
- import "../light-B-3BDUJ7.cjs";
4
- import "../BaseGrpcConsumer-DVDjYQks.cjs";
5
- import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-BtwpJOwb.cjs";
1
+ import "../tx_pb-rX24LEP1.cjs";
2
+ import "../index-CBEIfBLI.cjs";
3
+ import "../light-Dyi8qJP_.cjs";
4
+ import "../BaseGrpcConsumer-CRYBdXm9.cjs";
5
+ import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-5s92DIT3.cjs";
6
6
  export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
@@ -2,16 +2,16 @@ const require_chunk = require('../chunk-CbDLau6x.cjs');
2
2
  require('../encoding-light-D96nxVLW.cjs');
3
3
  require('../constants-tPGACRGC.cjs');
4
4
  require('../defineProperty-C3FP2y9Y.cjs');
5
- const require_utils = require('../utils-DZoXzNOj.cjs');
5
+ const require_utils = require('../utils-CjlVVckg.cjs');
6
6
  require('../light-zeGviAVI.cjs');
7
7
  require('../grpc-D_3PKEFB.cjs');
8
8
  require('../coins-DBj8089z.cjs');
9
9
  require('../address-light-DUoYqdPQ.cjs');
10
- const require_ChainRestTendermintApi = require('../ChainRestTendermintApi-BkHzZIRZ.cjs');
10
+ const require_ChainRestTendermintApi = require('../ChainRestTendermintApi-BSGN-XV3.cjs');
11
11
  require('../stream-NLunNFnw.cjs');
12
12
  require('../BaseGrpcConsumer-BLIJoFic.cjs');
13
- const require_chain = require('../chain-B3HLDM4b.cjs');
14
- const require_ChainGrpcExchangeApi = require('../ChainGrpcExchangeApi-DEoO0jhR.cjs');
13
+ const require_chain = require('../chain-D4Z7pAD0.cjs');
14
+ const require_ChainGrpcExchangeApi = require('../ChainGrpcExchangeApi-D2diaVMC.cjs');
15
15
  require('../BaseRestConsumer-BPrYlltM.cjs');
16
16
  let __injectivelabs_core_proto_ts_v2_generated_injective_oracle_v1beta1_oracle_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/oracle_pb");
17
17
 
@@ -56,7 +56,6 @@ exports.ChainGrpcTxFeesApi = require_chain.ChainGrpcTxFeesApi;
56
56
  exports.ChainGrpcTxFeesTransformer = require_chain.ChainGrpcTxFeesTransformer;
57
57
  exports.ChainGrpcWasmApi = require_chain.ChainGrpcWasmApi;
58
58
  exports.ChainGrpcWasmTransformer = require_chain.ChainGrpcWasmTransformer;
59
- exports.ChainGrpcWasmXApi = require_chain.ChainGrpcWasmXApi;
60
59
  exports.ChainModule = require_ChainRestTendermintApi.ChainModule;
61
60
  exports.ChainRestAuthApi = require_ChainRestTendermintApi.ChainRestAuthApi;
62
61
  exports.ChainRestBankApi = require_chain.ChainRestBankApi;