@injectivelabs/sdk-ts 1.18.9 → 1.18.10

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 (102) hide show
  1. package/dist/cjs/{BaseGrpcConsumer-XU1gXJm6.d.cts → BaseGrpcConsumer-Ba4uw4ZN.d.cts} +1 -1
  2. package/dist/cjs/{StreamManagerV2-l-Prs2cZ.cjs → StreamManagerV2-DlTHwjnI.cjs} +303 -2
  3. package/dist/cjs/TcAbacusGrpcApi-QxfMHhQI.cjs +132 -0
  4. package/dist/cjs/client/abacus.d.cts +4 -4
  5. package/dist/cjs/client/chain.d.cts +9 -8
  6. package/dist/cjs/client/indexer.cjs +5 -1
  7. package/dist/cjs/client/indexer.d.cts +10 -9
  8. package/dist/cjs/client/olp.d.cts +4 -4
  9. package/dist/cjs/client/tcAbacus.cjs +6 -0
  10. package/dist/cjs/client/tcAbacus.d.cts +5 -0
  11. package/dist/cjs/client/wasm.d.cts +3 -3
  12. package/dist/cjs/core/accounts.d.cts +9 -8
  13. package/dist/cjs/core/modules.cjs +1 -1
  14. package/dist/cjs/core/modules.d.cts +9 -8
  15. package/dist/cjs/core/tx.cjs +1 -1
  16. package/dist/cjs/core/tx.d.cts +9 -8
  17. package/dist/cjs/cosmjs.cjs +2 -2
  18. package/dist/cjs/cosmjs.d.cts +2 -2
  19. package/dist/cjs/exports.cjs +2 -2
  20. package/dist/cjs/exports.d.cts +2 -2
  21. package/dist/cjs/{index--sK2-HcK.d.cts → index-BYBE7jYC.d.cts} +1 -1
  22. package/dist/cjs/{index-K2VD9zHZ.d.cts → index-BhsPcNn5.d.cts} +1 -1
  23. package/dist/cjs/{index-CW3Yxjjk.d.cts → index-CDEYM6Fs.d.cts} +1378 -265
  24. package/dist/cjs/{index-YxLQKJVw.d.cts → index-CgHU4RQF.d.cts} +1 -1
  25. package/dist/cjs/{index-DBRk7KBS.d.cts → index-Cur9wjzW.d.cts} +1 -1
  26. package/dist/cjs/index-D0D2Btyn.d.cts +65 -0
  27. package/dist/cjs/{index-r0RxGSzR.d.cts → index-DfJ_98xz.d.cts} +2 -2
  28. package/dist/cjs/{index-DkZCBLFW.d.cts → index-m48Rf9ow.d.cts} +1 -1
  29. package/dist/cjs/index.cjs +9 -3
  30. package/dist/cjs/index.d.cts +10 -9
  31. package/dist/cjs/service.cjs +1 -1
  32. package/dist/cjs/service.d.cts +3 -3
  33. package/dist/cjs/types.d.cts +2 -2
  34. package/dist/cjs/utils.d.cts +9 -8
  35. package/dist/esm/{AbacusGrpcApi-DG807S_D.js → AbacusGrpcApi-Dh2A_RaD.js} +2 -2
  36. package/dist/esm/{BaseGrpcConsumer-lUDP-V1I.js → BaseGrpcConsumer-CsJHyzUs.js} +2 -2
  37. package/dist/esm/{BaseGrpcConsumer-CReMIR81.d.ts → BaseGrpcConsumer-DEH9Rq7m.d.ts} +1 -1
  38. package/dist/esm/{BaseIndexerGrpcConsumer-ByGqwnv0.js → BaseIndexerGrpcConsumer-B_zDF6-R.js} +1 -1
  39. package/dist/esm/{ChainGrpcExchangeApi-NAgOIabe.js → ChainGrpcExchangeApi-CnWi3kXP.js} +4 -4
  40. package/dist/esm/{ChainRestTendermintApi-B92SD57B.js → ChainRestTendermintApi-Duz8V3KK.js} +4 -4
  41. package/dist/esm/{DirectEthSecp256k1Wallet-B0yFLmu-.js → DirectEthSecp256k1Wallet-D-k0846W.js} +3 -3
  42. package/dist/esm/{ExecArgNeptuneWithdraw-DkvG3TrF.js → ExecArgNeptuneWithdraw-PqmStnen.js} +3 -3
  43. package/dist/esm/{IndexerGrpcWeb3GwApi-mj4kvjlu.js → IndexerGrpcWeb3GwApi-wVedW8ol.js} +3 -3
  44. package/dist/esm/{MsgBase-CbjK9owE.js → MsgBase-Cd9l1FGI.js} +1 -1
  45. package/dist/esm/{MsgSetDenomMetadata-CxTQAJII.js → MsgSetDenomMetadata-HLrc45ya.js} +6 -6
  46. package/dist/esm/{OLPGrpcApi-CYVKwBCj.js → OLPGrpcApi-ItkvGAWH.js} +2 -2
  47. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DIye8SrB.js → QueryTradingStrategyContractTotalStrategies-CDKtJs6H.js} +4 -4
  48. package/dist/esm/{StreamManagerV2-Bi2Lmzaw.js → StreamManagerV2-BbAZJdT5.js} +286 -10
  49. package/dist/esm/TcAbacusGrpcApi-DX8y2a33.js +125 -0
  50. package/dist/esm/{accounts-CltOgZyU.js → accounts-B_bymcv_.js} +3 -3
  51. package/dist/esm/{chain-BpdM-5x7.js → chain-cZz2uvOr.js} +5 -5
  52. package/dist/esm/client/abacus.d.ts +4 -4
  53. package/dist/esm/client/abacus.js +4 -4
  54. package/dist/esm/client/chain.d.ts +9 -8
  55. package/dist/esm/client/chain.js +8 -8
  56. package/dist/esm/client/indexer.d.ts +10 -9
  57. package/dist/esm/client/indexer.js +10 -10
  58. package/dist/esm/client/olp.d.ts +4 -4
  59. package/dist/esm/client/olp.js +5 -5
  60. package/dist/esm/client/tcAbacus.d.ts +5 -0
  61. package/dist/esm/client/tcAbacus.js +6 -0
  62. package/dist/esm/client/wasm.d.ts +3 -3
  63. package/dist/esm/client/wasm.js +11 -11
  64. package/dist/esm/core/accounts.d.ts +9 -8
  65. package/dist/esm/core/accounts.js +5 -5
  66. package/dist/esm/core/modules.d.ts +9 -8
  67. package/dist/esm/core/modules.js +14 -14
  68. package/dist/esm/core/tx.d.ts +9 -8
  69. package/dist/esm/core/tx.js +11 -11
  70. package/dist/esm/cosmjs.d.ts +2 -2
  71. package/dist/esm/cosmjs.js +12 -12
  72. package/dist/esm/exports.d.ts +2 -2
  73. package/dist/esm/exports.js +12 -12
  74. package/dist/esm/index-AiZDHh70.d.ts +65 -0
  75. package/dist/esm/{index-CzA8Vsvu.d.ts → index-C8crIAg1.d.ts} +1 -1
  76. package/dist/esm/{index-CyAnGzHK.d.ts → index-CZDITwmg.d.ts} +1 -1
  77. package/dist/esm/{index-Ct_nWHem.d.ts → index-CgoUDnJ_.d.ts} +1378 -265
  78. package/dist/esm/{index-2mDHsfhZ.d.ts → index-DKn53Idr.d.ts} +1 -1
  79. package/dist/esm/{index-C50cGGLl.d.ts → index-DQnG0Shp.d.ts} +1 -1
  80. package/dist/esm/{index-DCYNIH-b.d.ts → index-ECwAlIYI.d.ts} +2 -2
  81. package/dist/esm/{index-CSIVgVUj.d.ts → index-YDJMFRVk.d.ts} +1 -1
  82. package/dist/esm/index.d.ts +10 -9
  83. package/dist/esm/index.js +23 -22
  84. package/dist/esm/{service-B_wKHuhK.js → service-VNRTqysm.js} +3 -3
  85. package/dist/esm/service.d.ts +3 -3
  86. package/dist/esm/service.js +5 -5
  87. package/dist/esm/{tx-DMyI6qgw.js → tx-ByxSGpt3.js} +6 -6
  88. package/dist/esm/types.d.ts +2 -2
  89. package/dist/esm/types.js +1 -1
  90. package/dist/esm/utils.d.ts +9 -8
  91. package/dist/esm/utils.js +2 -2
  92. package/package.json +28 -7
  93. /package/dist/cjs/{DirectEthSecp256k1Wallet-BzOQi_Wj.cjs → DirectEthSecp256k1Wallet-L677kLZ7.cjs} +0 -0
  94. /package/dist/cjs/{service-CuS8x3-T.cjs → service-0PhYqd2q.cjs} +0 -0
  95. /package/dist/cjs/{tx-GyeN0ufS.cjs → tx-DD4X9BrB.cjs} +0 -0
  96. /package/dist/cjs/{tx_pb-DDTuVb3m.d.cts → tx_pb-BN7h9uqT.d.cts} +0 -0
  97. /package/dist/esm/{BaseRestConsumer-DTvorEHL.js → BaseRestConsumer-BySVL6Rh.js} +0 -0
  98. /package/dist/esm/{defineProperty-DuYPbdEg.js → defineProperty-HO0rQlTT.js} +0 -0
  99. /package/dist/esm/{grpc-C3eJiY2o.js → grpc-BJmNoike.js} +0 -0
  100. /package/dist/esm/{tx_pb-D8fPXRH8.d.ts → tx_pb-B9KzLX7v.d.ts} +0 -0
  101. /package/dist/esm/{types-Cf4oVv93.js → types-WE16qNvL.js} +0 -0
  102. /package/dist/esm/{utils-C2KjM4mQ.js → utils-XYJbh13N.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { At as MethodInfo, Dt as DuplexStreamingCall, Et as UnaryCall, Ot as ClientStreamingCall, Tt as RpcTransport, f as GrpcWebTransportAdditionalOptions, kt as ServerStreamingCall, wt as RpcOptions } from "./index-DkZCBLFW.cjs";
1
+ import { At as MethodInfo, Dt as DuplexStreamingCall, Et as UnaryCall, Ot as ClientStreamingCall, Tt as RpcTransport, f as GrpcWebTransportAdditionalOptions, kt as ServerStreamingCall, wt as RpcOptions } from "./index-m48Rf9ow.cjs";
2
2
 
3
3
  //#region src/client/base/GrpcWebRpcTransport.d.ts
4
4
 
@@ -53,6 +53,9 @@ let __injectivelabs_indexer_proto_ts_v2_generated_injective_derivative_exchange_
53
53
  let __injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb");
54
54
  __injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb = require_chunk.__toESM(__injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb);
55
55
  let __injectivelabs_indexer_proto_ts_v2_generated_injective_portfolio_rpc_pb_client = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.client");
56
+ let __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb");
57
+ __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb = require_chunk.__toESM(__injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb);
58
+ let __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb_client = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.client");
56
59
  let __injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb");
57
60
  __injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb = require_chunk.__toESM(__injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb);
58
61
  let __injectivelabs_indexer_proto_ts_v2_generated_injective_insurance_rpc_pb_client = require("@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.client");
@@ -3108,7 +3111,7 @@ require_defineProperty._defineProperty(ExplorerStreamTransformer, "transactionsS
3108
3111
 
3109
3112
  //#endregion
3110
3113
  //#region src/client/indexer/transformers/IndexerGrpcDerivativeTransformer.ts
3111
- const zeroPositionDelta = () => ({
3114
+ const zeroPositionDelta$1 = () => ({
3112
3115
  tradeDirection: require_types.TradeDirection.Buy,
3113
3116
  executionPrice: "0",
3114
3117
  executionQuantity: "0",
@@ -3449,7 +3452,7 @@ var IndexerGrpcDerivativeTransformer = class IndexerGrpcDerivativeTransformer {
3449
3452
  }
3450
3453
  static grpcTradeToTrade(trade) {
3451
3454
  const positionDelta = trade.positionDelta;
3452
- const mappedPositionDelta = positionDelta ? IndexerGrpcDerivativeTransformer.grpcPositionDeltaToPositionDelta(positionDelta) : zeroPositionDelta();
3455
+ const mappedPositionDelta = positionDelta ? IndexerGrpcDerivativeTransformer.grpcPositionDeltaToPositionDelta(positionDelta) : zeroPositionDelta$1();
3453
3456
  return {
3454
3457
  cid: trade.cid,
3455
3458
  fee: trade.fee,
@@ -3704,6 +3707,179 @@ var IndexerGrpcInsuranceFundTransformer = class IndexerGrpcInsuranceFundTransfor
3704
3707
  }
3705
3708
  };
3706
3709
 
3710
+ //#endregion
3711
+ //#region src/client/indexer/transformers/IndexerGrpcTcDerivativesTransformer.ts
3712
+ const zeroPositionDelta = () => ({
3713
+ executionPrice: "0",
3714
+ executionMargin: "0",
3715
+ executionQuantity: "0",
3716
+ tradeDirection: require_types.TradeDirection.Buy
3717
+ });
3718
+ /**
3719
+ * @category Indexer Grpc Transformer
3720
+ */
3721
+ var IndexerGrpcTcDerivativesTransformer = class IndexerGrpcTcDerivativesTransformer {
3722
+ static grpcPositionDeltaToPositionDelta(positionDelta) {
3723
+ return {
3724
+ tradeDirection: positionDelta.tradeDirection,
3725
+ executionPrice: positionDelta.executionPrice,
3726
+ executionMargin: positionDelta.executionMargin,
3727
+ executionQuantity: positionDelta.executionQuantity
3728
+ };
3729
+ }
3730
+ static grpcOrderHistoryToOrderHistory(order) {
3731
+ return {
3732
+ cid: order.cid,
3733
+ price: order.price,
3734
+ state: order.state,
3735
+ margin: order.margin,
3736
+ txHash: order.txHash,
3737
+ marketId: order.marketId,
3738
+ isActive: order.isActive,
3739
+ quantity: order.quantity,
3740
+ orderHash: order.orderHash,
3741
+ orderType: order.orderType,
3742
+ direction: order.direction,
3743
+ subaccountId: order.subaccountId,
3744
+ triggerPrice: order.triggerPrice,
3745
+ isReduceOnly: order.isReduceOnly,
3746
+ executionType: order.executionType,
3747
+ createdAt: Number(order.createdAt),
3748
+ updatedAt: Number(order.updatedAt),
3749
+ isConditional: order.isConditional,
3750
+ triggerAt: Number(order.triggerAt),
3751
+ filledQuantity: order.filledQuantity,
3752
+ placedOrderHash: order.placedOrderHash
3753
+ };
3754
+ }
3755
+ static grpcTradeToTrade(trade) {
3756
+ const positionDelta = trade.positionDelta;
3757
+ const mappedPositionDelta = positionDelta ? IndexerGrpcTcDerivativesTransformer.grpcPositionDeltaToPositionDelta(positionDelta) : zeroPositionDelta();
3758
+ return {
3759
+ fee: trade.fee,
3760
+ cid: trade.cid,
3761
+ pnl: trade.pnl,
3762
+ payout: trade.payout,
3763
+ tradeId: trade.tradeId,
3764
+ marketId: trade.marketId,
3765
+ orderHash: trade.orderHash,
3766
+ subaccountId: trade.subaccountId,
3767
+ feeRecipient: trade.feeRecipient,
3768
+ isLiquidation: trade.isLiquidation,
3769
+ executionSide: trade.executionSide,
3770
+ executedAt: Number(trade.executedAt),
3771
+ tradeExecutionType: trade.tradeExecutionType,
3772
+ ...mappedPositionDelta
3773
+ };
3774
+ }
3775
+ static grpcPositionToPosition(position) {
3776
+ return {
3777
+ denom: position.denom,
3778
+ ticker: position.ticker,
3779
+ margin: position.margin,
3780
+ marketId: position.marketId,
3781
+ quantity: position.quantity,
3782
+ direction: position.direction,
3783
+ markPrice: position.markPrice,
3784
+ entryPrice: position.entryPrice,
3785
+ fundingSum: position.fundingSum,
3786
+ fundingLast: position.fundingLast,
3787
+ subaccountId: position.subaccountId,
3788
+ updatedAt: Number(position.updatedAt),
3789
+ liquidationPrice: position.liquidationPrice,
3790
+ cumulativeFundingEntry: position.cumulativeFundingEntry,
3791
+ effectiveCumulativeFundingEntry: position.effectiveCumulativeFundingEntry
3792
+ };
3793
+ }
3794
+ static grpcDerivativeLimitOrderToDerivativeLimitOrder(order) {
3795
+ return {
3796
+ price: order.price,
3797
+ state: order.state,
3798
+ margin: order.margin,
3799
+ marketId: order.marketId,
3800
+ quantity: order.quantity,
3801
+ orderHash: order.orderHash,
3802
+ orderSide: order.orderSide,
3803
+ orderType: order.orderType,
3804
+ subaccountId: order.subaccountId,
3805
+ isReduceOnly: order.isReduceOnly,
3806
+ triggerPrice: order.triggerPrice,
3807
+ feeRecipient: order.feeRecipient,
3808
+ createdAt: Number(order.createdAt),
3809
+ updatedAt: Number(order.updatedAt),
3810
+ isConditional: order.isConditional,
3811
+ triggerAt: Number(order.triggerAt),
3812
+ executionType: order.executionType,
3813
+ orderNumber: Number(order.orderNumber),
3814
+ placedOrderHash: order.placedOrderHash,
3815
+ unfilledQuantity: order.unfilledQuantity
3816
+ };
3817
+ }
3818
+ static ordersHistoryResponseToOrdersHistory(response) {
3819
+ return {
3820
+ orders: response.orders.map(IndexerGrpcTcDerivativesTransformer.grpcOrderHistoryToOrderHistory),
3821
+ next: response.next
3822
+ };
3823
+ }
3824
+ static ordersResponseToOrders(response) {
3825
+ return {
3826
+ next: response.next,
3827
+ orders: response.orders.map(IndexerGrpcTcDerivativesTransformer.grpcDerivativeLimitOrderToDerivativeLimitOrder)
3828
+ };
3829
+ }
3830
+ static tradesResponseToTrades(response) {
3831
+ return {
3832
+ trades: response.trades.map(IndexerGrpcTcDerivativesTransformer.grpcTradeToTrade),
3833
+ next: response.next
3834
+ };
3835
+ }
3836
+ static positionsResponseToPositions(response) {
3837
+ return {
3838
+ positions: response.positions.map(IndexerGrpcTcDerivativesTransformer.grpcPositionToPosition),
3839
+ next: response.next,
3840
+ total: response.total ? Number(response.total) : void 0
3841
+ };
3842
+ }
3843
+ };
3844
+
3845
+ //#endregion
3846
+ //#region src/client/indexer/transformers/IndexerTcDerivativesStreamTransformer.ts
3847
+ /**
3848
+ * @category Indexer Stream Transformer
3849
+ */
3850
+ var IndexerTcDerivativesStreamTransformer = class {};
3851
+ require_defineProperty._defineProperty(IndexerTcDerivativesStreamTransformer, "orderHistoryStreamCallback", (response) => {
3852
+ const order = response.order;
3853
+ return {
3854
+ operationType: response.operationType,
3855
+ timestamp: Number(response.timestamp),
3856
+ order: order ? IndexerGrpcTcDerivativesTransformer.grpcOrderHistoryToOrderHistory(order) : void 0
3857
+ };
3858
+ });
3859
+ require_defineProperty._defineProperty(IndexerTcDerivativesStreamTransformer, "tradesStreamCallback", (response) => {
3860
+ const trade = response.trade;
3861
+ return {
3862
+ operationType: response.operationType,
3863
+ timestamp: Number(response.timestamp),
3864
+ trade: trade ? IndexerGrpcTcDerivativesTransformer.grpcTradeToTrade(trade) : void 0
3865
+ };
3866
+ });
3867
+ require_defineProperty._defineProperty(IndexerTcDerivativesStreamTransformer, "positionsStreamCallback", (response) => {
3868
+ const position = response.position;
3869
+ return {
3870
+ timestamp: Number(response.timestamp),
3871
+ position: position ? IndexerGrpcTcDerivativesTransformer.grpcPositionToPosition(position) : void 0
3872
+ };
3873
+ });
3874
+ require_defineProperty._defineProperty(IndexerTcDerivativesStreamTransformer, "ordersStreamCallback", (response) => {
3875
+ const order = response.order;
3876
+ return {
3877
+ operationType: response.operationType,
3878
+ timestamp: Number(response.timestamp),
3879
+ order: order ? IndexerGrpcTcDerivativesTransformer.grpcDerivativeLimitOrderToDerivativeLimitOrder(order) : void 0
3880
+ };
3881
+ });
3882
+
3707
3883
  //#endregion
3708
3884
  //#region src/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.ts
3709
3885
  /**
@@ -5050,6 +5226,63 @@ var IndexerGrpcAccountPortfolioApi = class extends require_BaseIndexerGrpcConsum
5050
5226
  }
5051
5227
  };
5052
5228
 
5229
+ //#endregion
5230
+ //#region src/client/indexer/grpc/IndexerGrpcTcDerivativesApi.ts
5231
+ /**
5232
+ * @category Indexer Grpc API
5233
+ */
5234
+ var IndexerGrpcTcDerivativesApi = class extends require_BaseIndexerGrpcConsumer.BaseIndexerGrpcConsumer {
5235
+ constructor(..._args) {
5236
+ super(..._args);
5237
+ require_defineProperty._defineProperty(this, "module", require_IndexerGrpcWeb3GwApi.IndexerModule.TcDerivatives);
5238
+ }
5239
+ get client() {
5240
+ return this.initClient(__injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb_client.InjectiveTCDerivativesRPCClient);
5241
+ }
5242
+ async fetchOrdersHistory(params) {
5243
+ const { marketId, direction, perPage, token } = params || {};
5244
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.OrdersHistoryRequest.create();
5245
+ if (marketId) request.marketIds = [marketId];
5246
+ if (direction) request.direction = direction;
5247
+ if (perPage) request.perPage = perPage;
5248
+ if (token) request.token = token;
5249
+ const response = await this.executeGrpcCall(request, this.client.ordersHistory.bind(this.client));
5250
+ return IndexerGrpcTcDerivativesTransformer.ordersHistoryResponseToOrdersHistory(response);
5251
+ }
5252
+ async fetchTradesHistory(params) {
5253
+ const { marketId, direction, perPage, token } = params || {};
5254
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.TradesRequest.create();
5255
+ if (marketId) request.marketIds = [marketId];
5256
+ if (direction) request.direction = direction;
5257
+ if (perPage) request.perPage = perPage;
5258
+ if (token) request.token = token;
5259
+ const response = await this.executeGrpcCall(request, this.client.trades.bind(this.client));
5260
+ return IndexerGrpcTcDerivativesTransformer.tradesResponseToTrades(response);
5261
+ }
5262
+ async fetchPositions(params) {
5263
+ const { marketId, direction, perPage, token, accountAddress, withCount } = params || {};
5264
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.PositionsRequest.create();
5265
+ if (marketId) request.marketIds = [marketId];
5266
+ if (direction) request.direction = direction;
5267
+ if (accountAddress) request.accountAddress = accountAddress;
5268
+ if (withCount !== void 0) request.withCount = withCount;
5269
+ if (perPage) request.perPage = perPage;
5270
+ if (token) request.token = token;
5271
+ const response = await this.executeGrpcCall(request, this.client.positions.bind(this.client));
5272
+ return IndexerGrpcTcDerivativesTransformer.positionsResponseToPositions(response);
5273
+ }
5274
+ async fetchOrders(params) {
5275
+ const { marketId, direction, perPage, token } = params || {};
5276
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.OrdersRequest.create();
5277
+ if (marketId) request.marketIds = [marketId];
5278
+ if (direction) request.direction = direction;
5279
+ if (perPage) request.perPage = perPage;
5280
+ if (token) request.token = token;
5281
+ const response = await this.executeGrpcCall(request, this.client.orders.bind(this.client));
5282
+ return IndexerGrpcTcDerivativesTransformer.ordersResponseToOrders(response);
5283
+ }
5284
+ };
5285
+
5053
5286
  //#endregion
5054
5287
  //#region src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.ts
5055
5288
  /**
@@ -7062,6 +7295,50 @@ var IndexerGrpcDerivativesStreamV2 = class {
7062
7295
  }
7063
7296
  };
7064
7297
 
7298
+ //#endregion
7299
+ //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcTcDerivativesStreamV2.ts
7300
+ var IndexerGrpcTcDerivativesStreamV2 = class {
7301
+ constructor(endpoint, metadata) {
7302
+ require_defineProperty._defineProperty(this, "client", void 0);
7303
+ require_defineProperty._defineProperty(this, "transport", void 0);
7304
+ this.transport = new require_BaseGrpcConsumer.GrpcWebRpcTransport(endpoint, metadata);
7305
+ this.client = new __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb_client.InjectiveTCDerivativesRPCClient(this.transport);
7306
+ }
7307
+ streamOrdersHistory({ marketId, callback }) {
7308
+ if (typeof callback !== "function") throw new Error("callback must be a function");
7309
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamOrdersHistoryRequest.create();
7310
+ if (marketId) request.marketIds = [marketId];
7311
+ return createStreamSubscriptionV2(this.client.streamOrdersHistory(request), (response) => {
7312
+ callback(IndexerTcDerivativesStreamTransformer.orderHistoryStreamCallback(response));
7313
+ });
7314
+ }
7315
+ streamTrades({ marketId, callback }) {
7316
+ if (typeof callback !== "function") throw new Error("callback must be a function");
7317
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamTradesRequest.create();
7318
+ if (marketId) request.marketIds = [marketId];
7319
+ return createStreamSubscriptionV2(this.client.streamTrades(request), (response) => {
7320
+ callback(IndexerTcDerivativesStreamTransformer.tradesStreamCallback(response));
7321
+ });
7322
+ }
7323
+ streamPositions({ marketId, accountAddress, callback }) {
7324
+ if (typeof callback !== "function") throw new Error("callback must be a function");
7325
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamPositionsRequest.create();
7326
+ if (marketId) request.marketIds = [marketId];
7327
+ if (accountAddress) request.accountAddress = accountAddress;
7328
+ return createStreamSubscriptionV2(this.client.streamPositions(request), (response) => {
7329
+ callback(IndexerTcDerivativesStreamTransformer.positionsStreamCallback(response));
7330
+ });
7331
+ }
7332
+ streamOrders({ marketId, callback }) {
7333
+ if (typeof callback !== "function") throw new Error("callback must be a function");
7334
+ const request = __injectivelabs_indexer_proto_ts_v2_generated_injective_tc_derivatives_rpc_pb.StreamOrdersRequest.create();
7335
+ if (marketId) request.marketIds = [marketId];
7336
+ return createStreamSubscriptionV2(this.client.streamOrders(request), (response) => {
7337
+ callback(IndexerTcDerivativesStreamTransformer.ordersStreamCallback(response));
7338
+ });
7339
+ }
7340
+ };
7341
+
7065
7342
  //#endregion
7066
7343
  //#region src/client/indexer/grpc_stream/streamV2/IndexerGrpcAccountPortfolioStreamV2.ts
7067
7344
  var IndexerGrpcAccountPortfolioStreamV2 = class {
@@ -7666,6 +7943,24 @@ Object.defineProperty(exports, 'IndexerGrpcSpotTransformer', {
7666
7943
  return IndexerGrpcSpotTransformer;
7667
7944
  }
7668
7945
  });
7946
+ Object.defineProperty(exports, 'IndexerGrpcTcDerivativesApi', {
7947
+ enumerable: true,
7948
+ get: function () {
7949
+ return IndexerGrpcTcDerivativesApi;
7950
+ }
7951
+ });
7952
+ Object.defineProperty(exports, 'IndexerGrpcTcDerivativesStreamV2', {
7953
+ enumerable: true,
7954
+ get: function () {
7955
+ return IndexerGrpcTcDerivativesStreamV2;
7956
+ }
7957
+ });
7958
+ Object.defineProperty(exports, 'IndexerGrpcTcDerivativesTransformer', {
7959
+ enumerable: true,
7960
+ get: function () {
7961
+ return IndexerGrpcTcDerivativesTransformer;
7962
+ }
7963
+ });
7669
7964
  Object.defineProperty(exports, 'IndexerGrpcTradingApi', {
7670
7965
  enumerable: true,
7671
7966
  get: function () {
@@ -7738,6 +8033,12 @@ Object.defineProperty(exports, 'IndexerSpotStreamTransformer', {
7738
8033
  return IndexerSpotStreamTransformer;
7739
8034
  }
7740
8035
  });
8036
+ Object.defineProperty(exports, 'IndexerTcDerivativesStreamTransformer', {
8037
+ enumerable: true,
8038
+ get: function () {
8039
+ return IndexerTcDerivativesStreamTransformer;
8040
+ }
8041
+ });
7741
8042
  Object.defineProperty(exports, 'IndexerWsMakerStream', {
7742
8043
  enumerable: true,
7743
8044
  get: function () {
@@ -0,0 +1,132 @@
1
+ const require_chunk = require('./chunk-CbDLau6x.cjs');
2
+ const require_defineProperty = require('./defineProperty-DAtJs5JQ.cjs');
3
+ const require_BaseGrpcConsumer = require('./BaseGrpcConsumer-B1hpRQJ-.cjs');
4
+ let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
5
+ let __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb = require("@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb");
6
+ __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb = require_chunk.__toESM(__injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb);
7
+ let __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb_client = require("@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb.client");
8
+
9
+ //#region src/client/tcAbacus/grpc/transformers/index.ts
10
+ var TcAbacusGrpcTransformer = class TcAbacusGrpcTransformer {
11
+ static grpcHealthCheckToHealthCheck(response) {
12
+ return {
13
+ uptime: response.uptime,
14
+ uptimeSeconds: response.uptimeSeconds
15
+ };
16
+ }
17
+ static grpcSnapshotPointsToSnapshotPoints(snapshot) {
18
+ return {
19
+ rank: snapshot.rank,
20
+ points: snapshot.points,
21
+ endTime: snapshot.endTime,
22
+ startTime: snapshot.startTime,
23
+ snapshotId: snapshot.snapshotId
24
+ };
25
+ }
26
+ static grpcAccountPointsToAccountPoints(response) {
27
+ return {
28
+ rank: response.rank,
29
+ address: response.address,
30
+ updatedAt: response.updatedAt,
31
+ nextCursor: response.nextCursor,
32
+ totalPoints: response.totalPoints,
33
+ snapshots: response.snapshots.map((snapshot) => TcAbacusGrpcTransformer.grpcSnapshotPointsToSnapshotPoints(snapshot))
34
+ };
35
+ }
36
+ static grpcAccountStatsToAccountStats(response) {
37
+ return {
38
+ cap: response.cap,
39
+ address: response.address,
40
+ last7DVolume: response.last7DVolume,
41
+ inviteeCount: response.inviteeCount,
42
+ allTimeVolume: response.allTimeVolume,
43
+ activeInviteeCount: response.activeInviteeCount
44
+ };
45
+ }
46
+ static grpcReferrerToReferrer(referrer) {
47
+ return {
48
+ cap: referrer.cap,
49
+ code: referrer.code,
50
+ address: referrer.address,
51
+ createdAt: referrer.createdAt,
52
+ height: referrer.height.toString()
53
+ };
54
+ }
55
+ static grpcListReferrersToListReferrers(response) {
56
+ return {
57
+ nextCursor: response.nextCursor,
58
+ referrers: response.referrers.map((referrer) => TcAbacusGrpcTransformer.grpcReferrerToReferrer(referrer))
59
+ };
60
+ }
61
+ static grpcReferrerInviteeToReferrerInvitee(invitee) {
62
+ return {
63
+ address: invitee.address,
64
+ createdAt: invitee.createdAt,
65
+ height: invitee.height.toString(),
66
+ referralPoints: invitee.referralPoints
67
+ };
68
+ }
69
+ static grpcAccountInviteesToAccountInvitees(response) {
70
+ return {
71
+ address: response.address,
72
+ nextCursor: response.nextCursor,
73
+ invitees: response.invitees.map((invitee) => TcAbacusGrpcTransformer.grpcReferrerInviteeToReferrerInvitee(invitee))
74
+ };
75
+ }
76
+ };
77
+
78
+ //#endregion
79
+ //#region src/client/tcAbacus/grpc/TcAbacusGrpcApi.ts
80
+ var TcAbacusGrpcApi = class extends require_BaseGrpcConsumer.BaseGrpcConsumer {
81
+ constructor(..._args) {
82
+ super(..._args);
83
+ require_defineProperty._defineProperty(this, "module", __injectivelabs_exceptions.IndexerErrorModule.Abacus);
84
+ }
85
+ get client() {
86
+ return this.initClient(__injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb_client.InjectiveTCAbacusRPCClient);
87
+ }
88
+ async fetchHealthCheck() {
89
+ const request = __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb.HealthCheckRequest.create({});
90
+ const response = await this.executeGrpcCall(request, this.client.healthCheck.bind(this.client));
91
+ return TcAbacusGrpcTransformer.grpcHealthCheckToHealthCheck(response);
92
+ }
93
+ async fetchAccountPoints(address, cursor, limit) {
94
+ const request = __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb.GetAccountPointsRequest.create({
95
+ limit,
96
+ cursor,
97
+ address
98
+ });
99
+ const response = await this.executeGrpcCall(request, this.client.getAccountPoints.bind(this.client));
100
+ return TcAbacusGrpcTransformer.grpcAccountPointsToAccountPoints(response);
101
+ }
102
+ async fetchAccountStats(address) {
103
+ const request = __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb.GetAccountStatsRequest.create({ address });
104
+ const response = await this.executeGrpcCall(request, this.client.getAccountStats.bind(this.client));
105
+ return TcAbacusGrpcTransformer.grpcAccountStatsToAccountStats(response);
106
+ }
107
+ async fetchReferrers(cursor, limit) {
108
+ const request = __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb.ListReferrersRequest.create({
109
+ limit,
110
+ cursor
111
+ });
112
+ const response = await this.executeGrpcCall(request, this.client.listReferrers.bind(this.client));
113
+ return TcAbacusGrpcTransformer.grpcListReferrersToListReferrers(response);
114
+ }
115
+ async fetchAccountInvitees(address, cursor, limit) {
116
+ const request = __injectivelabs_tc_abacus_proto_ts_v2_generated_injective_tc_abacus_rpc_pb.GetAccountInviteesRequest.create({
117
+ limit,
118
+ cursor,
119
+ address
120
+ });
121
+ const response = await this.executeGrpcCall(request, this.client.getAccountInvitees.bind(this.client));
122
+ return TcAbacusGrpcTransformer.grpcAccountInviteesToAccountInvitees(response);
123
+ }
124
+ };
125
+
126
+ //#endregion
127
+ Object.defineProperty(exports, 'TcAbacusGrpcApi', {
128
+ enumerable: true,
129
+ get: function () {
130
+ return TcAbacusGrpcApi;
131
+ }
132
+ });
@@ -1,5 +1,5 @@
1
- import "../tx_pb-DDTuVb3m.cjs";
2
- import "../index-DkZCBLFW.cjs";
3
- import "../BaseGrpcConsumer-XU1gXJm6.cjs";
4
- import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-YxLQKJVw.cjs";
1
+ import "../tx_pb-BN7h9uqT.cjs";
2
+ import "../index-m48Rf9ow.cjs";
3
+ import "../BaseGrpcConsumer-Ba4uw4ZN.cjs";
4
+ import { n as PointsStatsRow, r as AbacusGrpcApi, t as PointsLatestResponse } from "../index-CgHU4RQF.cjs";
5
5
  export { AbacusGrpcApi, PointsLatestResponse, PointsStatsRow };
@@ -1,9 +1,10 @@
1
- import "../tx_pb-DDTuVb3m.cjs";
2
- import { st as OracleType } from "../index-DkZCBLFW.cjs";
3
- import { $_ as grpcContractInfo, $g as GrpcOrderType, $h as InsuranceModuleParams, $m as GrpcPermissionPolicyStatus, A as ChainGrpcAuctionApi, A_ as Pool, Ag as ExchangeModuleParams, Ah as Params, Am as AccountsResponse, B as ChainGrpcAuthApi, B_ as ContractAccountsBalanceWithPagination, Bg as GrpcChainFullSpotMarket, Bh as CreateDerivativeLimitOrderAuthz, Bm as AuctionModuleState, C as ChainGrpcInsuranceFundApi, C_ as GrpcStakingParams, Cg as GrpcEvmParams, Ch as OracleModuleParams, Cm as GrpcDelegationDelegatorReward, D as ChainGrpcTendermintApi, D_ as GrpcValidatorCommission, Dg as ChainDerivativePosition, Dh as TxFeesModuleStateParams, Dm as DenomBalance, E as ChainGrpcPermissionsApi, E_ as GrpcValidator, Eg as ChainDenomMinNotional, Eh as TxFeesEipBaseFee, Em as BalancesResponse, F as ChainGrpcPeggyApi, F_ as ValidatorCommission, Fg as FeeDiscountTierTTL, Fh as BatchCancelSpotOrdersAuthz, Fm as AuctionEventAuctionResult, G_ as ContractStateWithPagination, Gg as GrpcExchangeParams, Gh as Grant, Gm as GrpcAuctionEventAuctionResult, H as ChainGrpcIbcApi, H_ as ContractCodeHistoryOperationType, Hg as GrpcChainSpotMarket, Hh as CreateSpotLimitOrderAuthz, Hm as AuctionModuleStateResponse, I as ChainGrpcAuthZApi, I_ as ValidatorDescription, Ig as GrpcCampaignRewardPool, Ih as BatchCreateDerivativeLimitOrdersAuthz, Im as AuctionEventAuctionStart, J_ as GrpcCodeInfoResponse, Jg as GrpcFeeDiscountTierInfo, Jh as GrantWithDecodedAuthorization, Jm as GrpcAuctionLastAuctionResult, K_ as GoogleProtoBufAny, Kg as GrpcFeeDiscountAccountInfo, Kh as GrantAuthorization, Km as GrpcAuctionEventAuctionStart, L as ChainGrpcWasmApi, L_ as AbsoluteTxPosition, Lg as GrpcChainDerivativeMarket, Lh as BatchCreateSpotLimitOrdersAuthz, Lm as AuctionEventBid, M as ChainGrpcOracleApi, M_ as StakingModuleParams, Mg as FeeDiscountAccountInfo, Mh as GrpcPeggyParams, Mm as CosmosAccountRestResponse, N as ChainGrpcErc20Api, N_ as UnBondingDelegation, Ng as FeeDiscountSchedule, Nh as PeggyModuleParams, Nm as AuctionBid, O as ChainGrpcExchangeApi, O_ as GrpcValidatorCommissionRates, Og as ChainPosition, Oh as GrpcParams, Om as DenomOwnersResponse, P as ChainGrpcWasmXApi, P_ as Validator, Pg as FeeDiscountTierInfo, Ph as BatchCancelDerivativeOrdersAuthz, Pm as AuctionCurrentBasket, Q_ as TokenInfo, Qg as GrpcOrderInfo, Qh as InsuranceFund, Qm as GrpcPermissionNamespace, R as ChainGrpcMintApi, R_ as CodeInfoResponse, Rg as GrpcChainDerivativePosition, Rh as CancelDerivativeOrderAuthz, Rm as AuctionLastAuctionResult, S as ChainRestBankApi, S_ as GrpcReDelegationResponse, Sg as GrpcEvmLog, Sh as GrpcOracleParams, Sm as GrpcDecCoin, T as ChainGrpcDistributionApi, T_ as GrpcUnbondingDelegationEntry, Tg as ChainDenomDecimal, Th as GrpcTxFeesParams, Tm as ValidatorRewards, U as ChainGrpcGovApi, U_ as ContractCodeHistoryOperationTypeMap, Ug as GrpcDenomDecimals, Uh as CreateSpotMarketOrderAuthz, Um as AuctionParams, V as ChainGrpcEvmApi, V_ as ContractCodeHistoryEntry, Vg as GrpcChainPosition, Vh as CreateDerivativeMarketOrderAuthz, Vm as AuctionModuleStateParams, W_ as ContractInfo, Wg as GrpcDenomMinNotional, Wh as GenericAuthorization, Wm as GrpcAuctionBid, X_ as GrpcContractInfo, Xg as GrpcMarketStatus, Xh as GrpcInsuranceParams, Xm as GrpcPermissionActorRoles, Y_ as GrpcContractCodeHistoryEntry, Yg as GrpcFeeDiscountTierTTL, Yh as GrpcInsuranceFund, Ym as GrpcAuctionParams, Z_ as MarketingInfo, Zg as GrpcMarketStatusMap, Zh as GrpcRedemptionSchedule, Zm as GrpcPermissionAddressVoucher, _ as ChainGrpcEvmTransformer, __ as GrpcDelegation, _g as EvmLog, _h as PermissionRoleActors, _m as AuthorityMetadata, a as ChainGrpcExchangeTransformer, a_ as GrpcTradeRewardCampaign, ag as GrpcSupply, ah as GrpcPermissionsNamespace, av as GrpcProposalDeposit, b as ChainRestWasmApi, b_ as GrpcReDelegation, bg as GrpcEvmBlobScheduleConfig, bh as PermissionVoucher, bm as TokenFactoryModuleState, c as ChainGrpcCommonTransformer, c_ as IsOptedOutOfRewards, cg as TotalSupply, ch as PermissionActorRoles, cv as Proposal, d as ChainGrpcPeggyTransformer, d_ as PointsMultiplier, dg as AuthModuleParams, dh as PermissionGenesisState, dv as ProposalStatusMap, e_ as GrpcOrderTypeMap, eg as OracleTypeMap, eh as GrpcPermissionPolicyStatusManagerCapability, ev as GovModuleStateParams, f as ChainGrpcAuthZTransformer, f_ as TradeRewardCampaign, fg as EthAccount, fh as PermissionNamespace, fv as TallyResult, g as ChainGrpcAuthTransformer, g_ as Delegation, gg as EvmChainConfig, gh as PermissionRole, gm as NodeInfoRestResponse, gv as WeightedVoteOption, h as ChainGrpcBankTransformer, h_ as BondStatus, hg as EvmBlobScheduleConfig, hh as PermissionPolicyStatus, hm as BlockLatestRestResponse, hv as VoteOptionMap, i as ChainGrpcPermissionsTransformer, i_ as GrpcSpotOrder, ig as GrpcBankParams, ih as GrpcPermissionRoleManager, iv as GrpcProposal, j as ChainGrpcTxFeesApi, j_ as ReDelegation, jg as ExchangeParams, jh as TokenPair, jm as BaseAccountRestResponse, k as ChainGrpcStakingApi, k_ as GrpcValidatorDescription, kg as DepositProposalParams, kh as GrpcTokenPair, km as AccountResponse, l as ChainGrpcTxFeesTransformer, l_ as OrderType, lg as Account, lh as PermissionAddressRoles, lv as ProposalDeposit, m as ChainGrpcMintTransformer, m_ as TradingRewardCampaignInfo, mg as EvmBlobConfig, mh as PermissionPolicyManagerCapability, mm as RestApiResponse, mv as VoteOption, n as ChainGrpcTokenFactoryTransformer, n_ as GrpcSpotMarket, ng as MinModuleParams, nh as GrpcPermissionRoleActors, nv as GrpcGovernanceTallyParams, o as ChainGrpcStakingTransformer, o_ as GrpcTradingRewardCampaignBoostInfo, og as Metadata, oh as GrpcPermissionsParams, ov as GrpcTallyResult, p as ChainGrpcWasmTransformer, p_ as TradingRewardCampaignBoostInfo, pg as PubKey, ph as PermissionParams, pm as ChainModule, pv as Vote, q_ as GrpcAbsoluteTxPosition, qg as GrpcFeeDiscountSchedule, qh as GrantAuthorizationWithDecodedAuthorization, qm as GrpcAuctionEventBid, r as ChainGrpcDistributionTransformer, r_ as GrpcSpotMarketOrder, rg as BankModuleParams, rh as GrpcPermissionRoleIDs, rv as GrpcGovernanceVotingParams, s as ChainGrpcAuctionTransformer, s_ as GrpcTradingRewardCampaignInfo, sg as SendEnabled, sh as PermissionActionMap, sv as GrpcVote, t as ChainGrpcInsuranceFundTransformer, t_ as GrpcPointsMultiplier, tg as GrpcMintParams, th as GrpcPermissionRole, tv as GrpcGovernanceDepositParams, u as ChainGrpcErc20Transformer, u_ as OrderTypeMap, ug as AuthBaseAccount, uh as PermissionAddressVoucher, uv as ProposalStatus, v as ChainGrpcGovTransformer, v_ as GrpcDelegationResponse, vg as EvmParams, vh as PermissionRoleIDs, vm as FactoryDenomWithMetadata, w as ChainGrpcTokenFactoryApi, w_ as GrpcUnbondingDelegation, wg as CampaignRewardPool, wh as GrpcTxFeesEipBaseFee, wm as GrpcDistributionParams, x as ChainRestAuthApi, x_ as GrpcReDelegationEntryResponse, xg as GrpcEvmChainConfig, xh as PermissionsModuleParams, xm as DistributionModuleParams, y as ChainRestTendermintApi, y_ as GrpcPool, yg as GrpcEvmBlobConfig, yh as PermissionRoleManager, ym as TokenFactoryModuleParams, z as ChainGrpcBankApi, z_ as ContractAccountBalance, zg as GrpcChainFullDerivativeMarket, zh as CancelSpotOrderAuthz, zm as AuctionModuleParams } from "../index-CW3Yxjjk.cjs";
4
- import "../BaseGrpcConsumer-XU1gXJm6.cjs";
5
- import "../index-YxLQKJVw.cjs";
6
- import "../index-r0RxGSzR.cjs";
7
- import "../index-K2VD9zHZ.cjs";
8
- import "../index--sK2-HcK.cjs";
1
+ import "../tx_pb-BN7h9uqT.cjs";
2
+ import { st as OracleType } from "../index-m48Rf9ow.cjs";
3
+ import { $_ as GrpcValidatorCommission, $g as ChainDerivativePosition, $h as TxFeesModuleStateParams, $m as DenomBalance, A as ChainGrpcAuctionApi, A_ as GrpcSpotOrder, Ag as GrpcBankParams, Ah as GrpcPermissionRoleManager, Av as GrpcProposal, B as ChainGrpcAuthApi, B_ as TradingRewardCampaignInfo, Bg as EvmBlobConfig, Bh as PermissionPolicyManagerCapability, Bm as RestApiResponse, Bv as VoteOption, C as ChainGrpcInsuranceFundApi, C_ as GrpcMarketStatusMap, Cg as GrpcRedemptionSchedule, Ch as GrpcPermissionAddressVoucher, Cv as MarketingInfo, D as ChainGrpcTendermintApi, D_ as GrpcPointsMultiplier, Dg as GrpcMintParams, Dh as GrpcPermissionRole, Dv as GrpcGovernanceDepositParams, E as ChainGrpcPermissionsApi, E_ as GrpcOrderTypeMap, Eg as OracleTypeMap, Eh as GrpcPermissionPolicyStatusManagerCapability, Ev as GovModuleStateParams, F as ChainGrpcPeggyApi, F_ as OrderType, Fg as Account, Fh as PermissionAddressRoles, Fv as ProposalDeposit, G_ as GrpcPool, Gg as GrpcEvmBlobConfig, Gh as PermissionRoleManager, Gm as TokenFactoryModuleParams, H as ChainGrpcIbcApi, H_ as Delegation, Hg as EvmChainConfig, Hh as PermissionRole, Hm as NodeInfoRestResponse, Hv as WeightedVoteOption, I as ChainGrpcAuthZApi, I_ as OrderTypeMap, Ig as AuthBaseAccount, Ih as PermissionAddressVoucher, Iv as ProposalStatus, J_ as GrpcReDelegationResponse, Jg as GrpcEvmLog, Jh as GrpcOracleParams, Jm as GrpcDecCoin, K_ as GrpcReDelegation, Kg as GrpcEvmBlobScheduleConfig, Kh as PermissionVoucher, Km as TokenFactoryModuleState, L as ChainGrpcWasmApi, L_ as PointsMultiplier, Lg as AuthModuleParams, Lh as PermissionGenesisState, Lv as ProposalStatusMap, M as ChainGrpcOracleApi, M_ as GrpcTradingRewardCampaignBoostInfo, Mg as Metadata, Mh as GrpcPermissionsParams, Mv as GrpcTallyResult, N as ChainGrpcErc20Api, N_ as GrpcTradingRewardCampaignInfo, Ng as SendEnabled, Nh as PermissionActionMap, Nv as GrpcVote, O as ChainGrpcExchangeApi, O_ as GrpcSpotMarket, Og as MinModuleParams, Oh as GrpcPermissionRoleActors, Ov as GrpcGovernanceTallyParams, P as ChainGrpcWasmXApi, P_ as IsOptedOutOfRewards, Pg as TotalSupply, Ph as PermissionActorRoles, Pv as Proposal, Q_ as GrpcValidator, Qg as ChainDenomMinNotional, Qh as TxFeesEipBaseFee, Qm as BalancesResponse, R as ChainGrpcMintApi, R_ as TradeRewardCampaign, Rg as EthAccount, Rh as PermissionNamespace, Rv as TallyResult, S as ChainRestBankApi, S_ as GrpcMarketStatus, Sg as GrpcInsuranceParams, Sh as GrpcPermissionActorRoles, Sv as GrpcContractInfo, T as ChainGrpcDistributionApi, T_ as GrpcOrderType, Tg as InsuranceModuleParams, Th as GrpcPermissionPolicyStatus, Tv as grpcContractInfo, U as ChainGrpcGovApi, U_ as GrpcDelegation, Ug as EvmLog, Uh as PermissionRoleActors, Um as AuthorityMetadata, V as ChainGrpcEvmApi, V_ as BondStatus, Vg as EvmBlobScheduleConfig, Vh as PermissionPolicyStatus, Vm as BlockLatestRestResponse, Vv as VoteOptionMap, W_ as GrpcDelegationResponse, Wg as EvmParams, Wh as PermissionRoleIDs, Wm as FactoryDenomWithMetadata, X_ as GrpcUnbondingDelegation, Xg as CampaignRewardPool, Xh as GrpcTxFeesEipBaseFee, Xm as GrpcDistributionParams, Y_ as GrpcStakingParams, Yg as GrpcEvmParams, Yh as OracleModuleParams, Ym as GrpcDelegationDelegatorReward, Z_ as GrpcUnbondingDelegationEntry, Zg as ChainDenomDecimal, Zh as GrpcTxFeesParams, Zm as ValidatorRewards, _ as ChainGrpcEvmTransformer, __ as GrpcExchangeParams, _g as Grant, _h as GrpcAuctionEventAuctionResult, _v as ContractStateWithPagination, a as ChainGrpcExchangeTransformer, a_ as FeeDiscountSchedule, ag as PeggyModuleParams, ah as AuctionBid, av as UnBondingDelegation, b as ChainRestWasmApi, b_ as GrpcFeeDiscountTierInfo, bg as GrantWithDecodedAuthorization, bh as GrpcAuctionLastAuctionResult, bv as GrpcCodeInfoResponse, c as ChainGrpcCommonTransformer, c_ as GrpcCampaignRewardPool, cg as BatchCreateDerivativeLimitOrdersAuthz, ch as AuctionEventAuctionStart, cv as ValidatorDescription, d as ChainGrpcPeggyTransformer, d_ as GrpcChainFullDerivativeMarket, dg as CancelSpotOrderAuthz, dh as AuctionModuleParams, dv as ContractAccountBalance, e_ as ChainPosition, eg as GrpcParams, eh as DenomOwnersResponse, ev as GrpcValidatorCommissionRates, f as ChainGrpcAuthZTransformer, f_ as GrpcChainFullSpotMarket, fg as CreateDerivativeLimitOrderAuthz, fh as AuctionModuleState, fv as ContractAccountsBalanceWithPagination, g as ChainGrpcAuthTransformer, g_ as GrpcDenomMinNotional, gg as GenericAuthorization, gh as GrpcAuctionBid, gv as ContractInfo, h as ChainGrpcBankTransformer, h_ as GrpcDenomDecimals, hg as CreateSpotMarketOrderAuthz, hh as AuctionParams, hv as ContractCodeHistoryOperationTypeMap, i as ChainGrpcPermissionsTransformer, i_ as FeeDiscountAccountInfo, ig as GrpcPeggyParams, ih as CosmosAccountRestResponse, iv as StakingModuleParams, j as ChainGrpcTxFeesApi, j_ as GrpcTradeRewardCampaign, jg as GrpcSupply, jh as GrpcPermissionsNamespace, jv as GrpcProposalDeposit, k as ChainGrpcStakingApi, k_ as GrpcSpotMarketOrder, kg as BankModuleParams, kh as GrpcPermissionRoleIDs, kv as GrpcGovernanceVotingParams, l as ChainGrpcTxFeesTransformer, l_ as GrpcChainDerivativeMarket, lg as BatchCreateSpotLimitOrdersAuthz, lh as AuctionEventBid, lv as AbsoluteTxPosition, m as ChainGrpcMintTransformer, m_ as GrpcChainSpotMarket, mg as CreateSpotLimitOrderAuthz, mh as AuctionModuleStateResponse, mv as ContractCodeHistoryOperationType, n as ChainGrpcTokenFactoryTransformer, n_ as ExchangeModuleParams, ng as Params, nh as AccountsResponse, nv as Pool, o as ChainGrpcStakingTransformer, o_ as FeeDiscountTierInfo, og as BatchCancelDerivativeOrdersAuthz, oh as AuctionCurrentBasket, ov as Validator, p as ChainGrpcWasmTransformer, p_ as GrpcChainPosition, pg as CreateDerivativeMarketOrderAuthz, ph as AuctionModuleStateParams, pv as ContractCodeHistoryEntry, q_ as GrpcReDelegationEntryResponse, qg as GrpcEvmChainConfig, qh as PermissionsModuleParams, qm as DistributionModuleParams, r as ChainGrpcDistributionTransformer, r_ as ExchangeParams, rg as TokenPair, rh as BaseAccountRestResponse, rv as ReDelegation, s as ChainGrpcAuctionTransformer, s_ as FeeDiscountTierTTL, sg as BatchCancelSpotOrdersAuthz, sh as AuctionEventAuctionResult, sv as ValidatorCommission, t as ChainGrpcInsuranceFundTransformer, t_ as DepositProposalParams, tg as GrpcTokenPair, th as AccountResponse, tv as GrpcValidatorDescription, u as ChainGrpcErc20Transformer, u_ as GrpcChainDerivativePosition, ug as CancelDerivativeOrderAuthz, uh as AuctionLastAuctionResult, uv as CodeInfoResponse, v as ChainGrpcGovTransformer, v_ as GrpcFeeDiscountAccountInfo, vg as GrantAuthorization, vh as GrpcAuctionEventAuctionStart, vv as GoogleProtoBufAny, w as ChainGrpcTokenFactoryApi, w_ as GrpcOrderInfo, wg as InsuranceFund, wh as GrpcPermissionNamespace, wv as TokenInfo, x as ChainRestAuthApi, x_ as GrpcFeeDiscountTierTTL, xg as GrpcInsuranceFund, xh as GrpcAuctionParams, xv as GrpcContractCodeHistoryEntry, y as ChainRestTendermintApi, y_ as GrpcFeeDiscountSchedule, yg as GrantAuthorizationWithDecodedAuthorization, yh as GrpcAuctionEventBid, yv as GrpcAbsoluteTxPosition, z as ChainGrpcBankApi, z_ as TradingRewardCampaignBoostInfo, zg as PubKey, zh as PermissionParams, zm as ChainModule, zv as Vote } from "../index-CDEYM6Fs.cjs";
4
+ import "../BaseGrpcConsumer-Ba4uw4ZN.cjs";
5
+ import "../index-CgHU4RQF.cjs";
6
+ import "../index-DfJ_98xz.cjs";
7
+ import "../index-BhsPcNn5.cjs";
8
+ import "../index-D0D2Btyn.cjs";
9
+ import "../index-BYBE7jYC.cjs";
9
10
  export { AbsoluteTxPosition, Account, AccountResponse, AccountsResponse, AuctionBid, AuctionCurrentBasket, AuctionEventAuctionResult, AuctionEventAuctionStart, AuctionEventBid, AuctionLastAuctionResult, AuctionModuleParams, AuctionModuleState, AuctionModuleStateParams, AuctionModuleStateResponse, AuctionParams, AuthBaseAccount, AuthModuleParams, AuthorityMetadata, BalancesResponse, BankModuleParams, BaseAccountRestResponse, BatchCancelDerivativeOrdersAuthz, BatchCancelSpotOrdersAuthz, BatchCreateDerivativeLimitOrdersAuthz, BatchCreateSpotLimitOrdersAuthz, BlockLatestRestResponse, BondStatus, CampaignRewardPool, CancelDerivativeOrderAuthz, CancelSpotOrderAuthz, ChainDenomDecimal, ChainDenomMinNotional, ChainDerivativePosition, ChainGrpcAuctionApi, ChainGrpcAuctionTransformer, ChainGrpcAuthApi, ChainGrpcAuthTransformer, ChainGrpcAuthZApi, ChainGrpcAuthZTransformer, ChainGrpcBankApi, ChainGrpcBankTransformer, ChainGrpcCommonTransformer, ChainGrpcDistributionApi, ChainGrpcDistributionTransformer, ChainGrpcErc20Api, ChainGrpcErc20Transformer, ChainGrpcEvmApi, ChainGrpcEvmTransformer, ChainGrpcExchangeApi, ChainGrpcExchangeTransformer, ChainGrpcGovApi, ChainGrpcGovTransformer, ChainGrpcIbcApi, ChainGrpcInsuranceFundApi, ChainGrpcInsuranceFundTransformer, ChainGrpcMintApi, ChainGrpcMintTransformer, ChainGrpcOracleApi, ChainGrpcPeggyApi, ChainGrpcPeggyTransformer, ChainGrpcPermissionsApi, ChainGrpcPermissionsTransformer, ChainGrpcStakingApi, ChainGrpcStakingTransformer, ChainGrpcTendermintApi, ChainGrpcTokenFactoryApi, ChainGrpcTokenFactoryTransformer, ChainGrpcTxFeesApi, ChainGrpcTxFeesTransformer, ChainGrpcWasmApi, ChainGrpcWasmTransformer, ChainGrpcWasmXApi, ChainModule, ChainPosition, ChainRestAuthApi, ChainRestBankApi, ChainRestTendermintApi, ChainRestWasmApi, CodeInfoResponse, ContractAccountBalance, ContractAccountsBalanceWithPagination, ContractCodeHistoryEntry, ContractCodeHistoryOperationType, ContractCodeHistoryOperationTypeMap, ContractInfo, ContractStateWithPagination, CosmosAccountRestResponse, CreateDerivativeLimitOrderAuthz, CreateDerivativeMarketOrderAuthz, CreateSpotLimitOrderAuthz, CreateSpotMarketOrderAuthz, Delegation, DenomBalance, DenomOwnersResponse, DepositProposalParams, DistributionModuleParams, EthAccount, EvmBlobConfig, EvmBlobScheduleConfig, EvmChainConfig, EvmLog, EvmParams, ExchangeModuleParams, ExchangeParams, FactoryDenomWithMetadata, FeeDiscountAccountInfo, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, GenericAuthorization, GoogleProtoBufAny, GovModuleStateParams, Grant, GrantAuthorization, GrantAuthorizationWithDecodedAuthorization, GrantWithDecodedAuthorization, GrpcAbsoluteTxPosition, GrpcAuctionBid, GrpcAuctionEventAuctionResult, GrpcAuctionEventAuctionStart, GrpcAuctionEventBid, GrpcAuctionLastAuctionResult, GrpcAuctionParams, GrpcBankParams, GrpcCampaignRewardPool, GrpcChainDerivativeMarket, GrpcChainDerivativePosition, GrpcChainFullDerivativeMarket, GrpcChainFullSpotMarket, GrpcChainPosition, GrpcChainSpotMarket, GrpcCodeInfoResponse, GrpcContractCodeHistoryEntry, GrpcContractInfo, GrpcDecCoin, GrpcDelegation, GrpcDelegationDelegatorReward, GrpcDelegationResponse, GrpcDenomDecimals, GrpcDenomMinNotional, GrpcDistributionParams, GrpcEvmBlobConfig, GrpcEvmBlobScheduleConfig, GrpcEvmChainConfig, GrpcEvmLog, GrpcEvmParams, GrpcExchangeParams, GrpcFeeDiscountAccountInfo, GrpcFeeDiscountSchedule, GrpcFeeDiscountTierInfo, GrpcFeeDiscountTierTTL, GrpcGovernanceDepositParams, GrpcGovernanceTallyParams, GrpcGovernanceVotingParams, GrpcInsuranceFund, GrpcInsuranceParams, GrpcMarketStatus, GrpcMarketStatusMap, GrpcMintParams, GrpcOracleParams, GrpcOrderInfo, GrpcOrderType, GrpcOrderTypeMap, GrpcParams, GrpcPeggyParams, GrpcPermissionActorRoles, GrpcPermissionAddressVoucher, GrpcPermissionNamespace, GrpcPermissionPolicyStatus, GrpcPermissionPolicyStatusManagerCapability, GrpcPermissionRole, GrpcPermissionRoleActors, GrpcPermissionRoleIDs, GrpcPermissionRoleManager, GrpcPermissionsNamespace, GrpcPermissionsParams, GrpcPointsMultiplier, GrpcPool, GrpcProposal, GrpcProposalDeposit, ProposalStatus as GrpcProposalStatus, ProposalStatus, GrpcReDelegation, GrpcReDelegationEntryResponse, GrpcReDelegationResponse, GrpcRedemptionSchedule, GrpcSpotMarket, GrpcSpotMarketOrder, GrpcSpotOrder, GrpcStakingParams, GrpcSupply, GrpcTallyResult, GrpcTokenPair, GrpcTradeRewardCampaign, GrpcTradingRewardCampaignBoostInfo, GrpcTradingRewardCampaignInfo, GrpcTxFeesEipBaseFee, GrpcTxFeesParams, GrpcUnbondingDelegation, GrpcUnbondingDelegationEntry, GrpcValidator, GrpcValidatorCommission, GrpcValidatorCommissionRates, GrpcValidatorDescription, GrpcVote, InsuranceFund, InsuranceModuleParams, IsOptedOutOfRewards, MarketingInfo, Metadata, MinModuleParams, NodeInfoRestResponse, OracleModuleParams, OracleType, OracleTypeMap, OrderType, OrderTypeMap, Params, PeggyModuleParams, PermissionActionMap, PermissionActorRoles, PermissionAddressRoles, PermissionAddressVoucher, PermissionGenesisState, PermissionNamespace, PermissionParams, PermissionPolicyManagerCapability, PermissionPolicyStatus, PermissionRole, PermissionRoleActors, PermissionRoleIDs, PermissionRoleManager, PermissionVoucher, PermissionsModuleParams, PointsMultiplier, Pool, Proposal, ProposalDeposit, ProposalStatusMap, PubKey, ReDelegation, RestApiResponse, SendEnabled, StakingModuleParams, TallyResult, TokenFactoryModuleParams, TokenFactoryModuleState, TokenInfo, TokenPair, TotalSupply, TradeRewardCampaign, TradingRewardCampaignBoostInfo, TradingRewardCampaignInfo, TxFeesEipBaseFee, TxFeesModuleStateParams, UnBondingDelegation, Validator, ValidatorCommission, ValidatorDescription, ValidatorRewards, Vote, VoteOption, VoteOptionMap, WeightedVoteOption, grpcContractInfo };
@@ -5,7 +5,7 @@ require('../BaseGrpcConsumer-B1hpRQJ-.cjs');
5
5
  require('../BaseIndexerGrpcConsumer-rRYRp48i.cjs');
6
6
  require('../BaseRestConsumer-CRkyjiSo.cjs');
7
7
  const require_IndexerGrpcWeb3GwApi = require('../IndexerGrpcWeb3GwApi-BjMwVPdm.cjs');
8
- const require_StreamManagerV2 = require('../StreamManagerV2-l-Prs2cZ.cjs');
8
+ const require_StreamManagerV2 = require('../StreamManagerV2-DlTHwjnI.cjs');
9
9
  require('../types-BSrt7JzM.cjs');
10
10
 
11
11
  exports.AccessType = require_IndexerGrpcWeb3GwApi.AccessType;
@@ -69,6 +69,9 @@ exports.IndexerGrpcSpotApi = require_StreamManagerV2.IndexerGrpcSpotApi;
69
69
  exports.IndexerGrpcSpotStream = require_StreamManagerV2.IndexerGrpcSpotStream;
70
70
  exports.IndexerGrpcSpotStreamV2 = require_StreamManagerV2.IndexerGrpcSpotStreamV2;
71
71
  exports.IndexerGrpcSpotTransformer = require_StreamManagerV2.IndexerGrpcSpotTransformer;
72
+ exports.IndexerGrpcTcDerivativesApi = require_StreamManagerV2.IndexerGrpcTcDerivativesApi;
73
+ exports.IndexerGrpcTcDerivativesStreamV2 = require_StreamManagerV2.IndexerGrpcTcDerivativesStreamV2;
74
+ exports.IndexerGrpcTcDerivativesTransformer = require_StreamManagerV2.IndexerGrpcTcDerivativesTransformer;
72
75
  exports.IndexerGrpcTradingApi = require_StreamManagerV2.IndexerGrpcTradingApi;
73
76
  exports.IndexerGrpcTradingStream = require_StreamManagerV2.IndexerGrpcTradingStream;
74
77
  exports.IndexerGrpcTradingStreamV2 = require_StreamManagerV2.IndexerGrpcTradingStreamV2;
@@ -84,6 +87,7 @@ exports.IndexerRestMarketChronosApi = require_StreamManagerV2.IndexerRestMarketC
84
87
  exports.IndexerRestSpotChronosApi = require_StreamManagerV2.IndexerRestSpotChronosApi;
85
88
  exports.IndexerRfqStreamTransformer = require_StreamManagerV2.IndexerRfqStreamTransformer;
86
89
  exports.IndexerSpotStreamTransformer = require_StreamManagerV2.IndexerSpotStreamTransformer;
90
+ exports.IndexerTcDerivativesStreamTransformer = require_StreamManagerV2.IndexerTcDerivativesStreamTransformer;
87
91
  exports.IndexerWsMakerStream = require_StreamManagerV2.IndexerWsMakerStream;
88
92
  exports.IndexerWsTakerStream = require_StreamManagerV2.IndexerWsTakerStream;
89
93
  exports.MarketType = require_IndexerGrpcWeb3GwApi.MarketType;