@injectivelabs/sdk-ts 1.19.17 → 1.19.19

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.
@@ -16489,7 +16489,7 @@ interface TxClientBroadcastOptions {
16489
16489
  mode?: BroadcastMode$1;
16490
16490
  timeout?: number;
16491
16491
  txTimeout?: number;
16492
- skipPoll?: boolean;
16492
+ onBroadcast?: (txHash: string) => void;
16493
16493
  }
16494
16494
  interface TxClientBroadcastResponse {
16495
16495
  height: number;
@@ -16820,6 +16820,7 @@ declare class TxGrpcApi extends BaseGrpcConsumer implements TxConcreteApi {
16820
16820
  private get client();
16821
16821
  fetchTx(hash: string): Promise<TxResponse>;
16822
16822
  fetchTxPoll(txHash: string, timeout?: number): Promise<TxResponse>;
16823
+ private fetchTxDual;
16823
16824
  simulate(txRaw: TxRaw): Promise<{
16824
16825
  result: {
16825
16826
  data: string | Uint8Array<ArrayBufferLike>;
@@ -16866,14 +16867,14 @@ declare class TxRestApi implements TxConcreteApi {
16866
16867
  gasUsed: number;
16867
16868
  };
16868
16869
  }>;
16869
- broadcast(tx: TxRaw, options?: TxClientBroadcastOptions): Promise<TxResponse>;
16870
+ broadcast(txRaw: TxRaw, options?: TxClientBroadcastOptions): Promise<TxResponse>;
16870
16871
  /**
16871
16872
  * Broadcast the transaction using the "block" mode, waiting for its inclusion in the blockchain.
16872
16873
  * @param tx transaction to broadcast
16873
16874
  *
16874
16875
  * @deprecated - the BLOCk mode broadcasting is deprecated now, use either sync or async
16875
16876
  */
16876
- broadcastBlock(tx: TxRaw): Promise<{
16877
+ broadcastBlock(txRaw: TxRaw): Promise<{
16877
16878
  txHash: string;
16878
16879
  rawLog: string;
16879
16880
  gasWanted: number;
@@ -21868,7 +21869,7 @@ declare const BECH32_ADDR_VAL_PREFIX = "injvaloper";
21868
21869
  declare const BECH32_ADDR_CONS_PREFIX = "injvalcons";
21869
21870
  declare const DEFAULT_DERIVATION_PATH = "m/44'/60'/0'/0/0";
21870
21871
  //#endregion
21871
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_accounts_rpc_pb.d.ts
21872
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_accounts_rpc_pb.d.ts
21872
21873
  /**
21873
21874
  * @generated from protobuf message injective_accounts_rpc.PortfolioResponse
21874
21875
  */
@@ -22384,7 +22385,7 @@ declare const Reward = new Reward$Type();
22384
22385
  */
22385
22386
  declare const Coin$7 = new Coin$Type();
22386
22387
  //#endregion
22387
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_explorer_rpc_pb.d.ts
22388
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_explorer_rpc_pb.d.ts
22388
22389
  /**
22389
22390
  * @generated from protobuf message injective_explorer_rpc.GetAccountTxsResponse
22390
22391
  */
@@ -23818,7 +23819,7 @@ declare const fetchAllWithPagination: <T extends {
23818
23819
  //#region src/utils/transaction.d.ts
23819
23820
  declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise<string>;
23820
23821
  //#endregion
23821
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb.d.ts
23822
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb.d.ts
23822
23823
  /**
23823
23824
  * @generated from protobuf message injective_rfq_rpc.StreamRequestResponse
23824
23825
  */
@@ -27066,7 +27067,7 @@ type GrpcSubaccountBalance = SubaccountBalance$2;
27066
27067
  type GrpcSubaccountPortfolio = SubaccountPortfolio$1;
27067
27068
  type GrpcSubaccountBalanceTransfer = SubaccountBalanceTransfer;
27068
27069
  //#endregion
27069
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_trading_rpc_pb.d.ts
27070
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_trading_rpc_pb.d.ts
27070
27071
  /**
27071
27072
  * @generated from protobuf message injective_trading_rpc.ListTradingStrategiesResponse
27072
27073
  */
@@ -28318,7 +28319,7 @@ interface QuantityAndFees {
28318
28319
  resultQuantity: string;
28319
28320
  }
28320
28321
  //#endregion
28321
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_spot_exchange_rpc_pb.d.ts
28322
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_spot_exchange_rpc_pb.d.ts
28322
28323
  /**
28323
28324
  * @generated from protobuf message injective_spot_exchange_rpc.MarketsResponse
28324
28325
  */
@@ -29474,7 +29475,7 @@ type GrpcSpotLimitOrder = SpotLimitOrder$1;
29474
29475
  type GrpcSpotOrderHistory = SpotOrderHistory$1;
29475
29476
  type GrpcAtomicSwap = AtomicSwap$1;
29476
29477
  //#endregion
29477
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_gw_rpc_pb.d.ts
29478
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_gw_rpc_pb.d.ts
29478
29479
  /**
29479
29480
  * @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712AutoSignRequestType
29480
29481
  */
@@ -30571,7 +30572,7 @@ type GrpcRFQGwPrepareEip712Response = PrepareEip712Response$1;
30571
30572
  type GrpcRFQGwPrepareEip712AutoSignRequest = RFQGwPrepareEip712AutoSignRequestType$1;
30572
30573
  type GrpcRFQGwPrepareEip712AutoSignResponse = PrepareEip712AutoSignResponse;
30573
30574
  //#endregion
30574
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_oracle_rpc_pb.d.ts
30575
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_oracle_rpc_pb.d.ts
30575
30576
  /**
30576
30577
  * @generated from protobuf message injective_oracle_rpc.OracleListResponse
30577
30578
  */
@@ -30733,7 +30734,7 @@ declare const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$
30733
30734
  type GrpcOracle = Oracle$1;
30734
30735
  interface Oracle extends GrpcOracle {}
30735
30736
  //#endregion
30736
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_auction_rpc_pb.d.ts
30737
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_auction_rpc_pb.d.ts
30737
30738
  /**
30738
30739
  * @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse
30739
30740
  */
@@ -31230,7 +31231,7 @@ type GrpcAccountAuctionV2 = AccountAuctionV2$1;
31230
31231
  type GrpcAuctionContract = AuctionContract$1;
31231
31232
  type StreamBidsResponse = StreamBidsResponse$1;
31232
31233
  //#endregion
31233
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_archiver_rpc_pb.d.ts
31234
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_archiver_rpc_pb.d.ts
31234
31235
  /**
31235
31236
  * @generated from protobuf message injective_archiver_rpc.BalanceResponse
31236
31237
  */
@@ -31752,7 +31753,7 @@ type GrpcHistoricalVolumes = HistoricalVolumes$1;
31752
31753
  type GrpcPnlLeaderboard = PnlLeaderboardResponse | PnlLeaderboardFixedResolutionResponse;
31753
31754
  type GrpcVolLeaderboard = VolLeaderboardResponse | VolLeaderboardFixedResolutionResponse;
31754
31755
  //#endregion
31755
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_referral_rpc_pb.d.ts
31756
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_referral_rpc_pb.d.ts
31756
31757
  /**
31757
31758
  * @generated from protobuf message injective_referral_rpc.GetReferrerDetailsResponse
31758
31759
  */
@@ -31883,7 +31884,7 @@ interface ReferralDetails {
31883
31884
  invitees: ReferralInvitee[];
31884
31885
  }
31885
31886
  //#endregion
31886
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_campaign_rpc_pb.d.ts
31887
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_campaign_rpc_pb.d.ts
31887
31888
  /**
31888
31889
  * @generated from protobuf message injective_campaign_rpc.RankingResponse
31889
31890
  */
@@ -32720,7 +32721,7 @@ interface AllSpotMarketSummaryResponse {
32720
32721
  data: AllChronosSpotMarketSummary[];
32721
32722
  }
32722
32723
  //#endregion
32723
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_megavault_rpc_pb.d.ts
32724
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_megavault_rpc_pb.d.ts
32724
32725
  /**
32725
32726
  * @generated from protobuf message injective_megavault_rpc.GetVaultResponse
32726
32727
  */
@@ -33839,7 +33840,7 @@ interface IncentivesCampaign {
33839
33840
  subaccountIdSuffix: string;
33840
33841
  }
33841
33842
  //#endregion
33842
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.d.ts
33843
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.d.ts
33843
33844
  /**
33844
33845
  * @generated from protobuf message injective_insurance_rpc.FundsResponse
33845
33846
  */
@@ -34101,7 +34102,7 @@ interface InsuranceFundCreateParams {
34101
34102
  type GrpcIndexerInsuranceFund = InsuranceFund$2;
34102
34103
  type GrpcIndexerRedemptionSchedule = RedemptionSchedule;
34103
34104
  //#endregion
34104
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_derivative_exchange_rpc_pb.d.ts
34105
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_derivative_exchange_rpc_pb.d.ts
34105
34106
  /**
34106
34107
  * @generated from protobuf message injective_derivative_exchange_rpc.MarketsResponse
34107
34108
  */
@@ -34963,6 +34964,12 @@ interface DerivativeLimitOrder$2 {
34963
34964
  * @generated from protobuf field: string cid = 22
34964
34965
  */
34965
34966
  cid: string;
34967
+ /**
34968
+ * Account address that owns the subaccount which placed this order
34969
+ *
34970
+ * @generated from protobuf field: string account_address = 23
34971
+ */
34972
+ accountAddress: string;
34966
34973
  }
34967
34974
  /**
34968
34975
  * @generated from protobuf message injective_derivative_exchange_rpc.PositionsResponse
@@ -35308,6 +35315,12 @@ interface StreamPositionsV2Response {
35308
35315
  * @generated from protobuf field: sint64 timestamp = 2
35309
35316
  */
35310
35317
  timestamp: bigint;
35318
+ /**
35319
+ * Position update type
35320
+ *
35321
+ * @generated from protobuf field: string operation_type = 3
35322
+ */
35323
+ operationType: string;
35311
35324
  }
35312
35325
  /**
35313
35326
  * @generated from protobuf message injective_derivative_exchange_rpc.StreamOrdersResponse
@@ -35843,23 +35856,23 @@ declare const StreamOrdersHistoryResponse$1 = new StreamOrdersHistoryResponse$Ty
35843
35856
  //#endregion
35844
35857
  //#region src/client/indexer/types/derivatives.d.ts
35845
35858
  interface PositionDelta {
35846
- tradeDirection: TradeDirection;
35847
35859
  executionPrice: string;
35848
- executionQuantity: string;
35849
35860
  executionMargin: string;
35861
+ executionQuantity: string;
35862
+ tradeDirection: TradeDirection;
35850
35863
  }
35851
35864
  interface Position {
35865
+ margin: string;
35866
+ ticker: string;
35852
35867
  marketId: string;
35853
- subaccountId: string;
35854
- direction: TradeDirection;
35855
35868
  quantity: string;
35869
+ markPrice: string;
35870
+ updatedAt: number;
35856
35871
  entryPrice: string;
35857
- margin: string;
35872
+ subaccountId: string;
35858
35873
  liquidationPrice: string;
35859
- markPrice: string;
35860
- ticker: string;
35874
+ direction: TradeDirection;
35861
35875
  aggregateReduceOnlyQuantity: string;
35862
- updatedAt: number;
35863
35876
  }
35864
35877
  interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
35865
35878
  upnl: string;
@@ -35870,155 +35883,156 @@ interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
35870
35883
  effectiveCumulativeFundingEntry: string;
35871
35884
  }
35872
35885
  interface PerpetualMarketInfo {
35873
- hourlyFundingRateCap: string;
35886
+ fundingInterval: number;
35874
35887
  hourlyInterestRate: string;
35888
+ hourlyFundingRateCap: string;
35875
35889
  nextFundingTimestamp: number;
35876
- fundingInterval: number;
35877
35890
  }
35878
35891
  interface PerpetualMarketFunding {
35879
- cumulativeFunding: string;
35880
- cumulativePrice: string;
35881
35892
  lastTimestamp: number;
35893
+ cumulativePrice: string;
35894
+ cumulativeFunding: string;
35882
35895
  }
35883
35896
  interface ExpiryFuturesMarketInfo {
35884
- expirationTimestamp: number;
35885
35897
  settlementPrice: string;
35898
+ expirationTimestamp: number;
35886
35899
  }
35887
35900
  interface BaseDerivativeMarket {
35888
- oracleType: string;
35889
- marketId: string;
35890
- marketStatus: string;
35891
35901
  ticker: string;
35902
+ marketId: string;
35903
+ oracleType: string;
35892
35904
  quoteDenom: string;
35905
+ minNotional: number;
35906
+ marketStatus: string;
35893
35907
  makerFeeRate: string;
35894
- quoteToken: TokenMeta | undefined;
35895
35908
  takerFeeRate: string;
35896
- serviceProviderFee: string;
35897
35909
  minPriceTickSize: number;
35910
+ serviceProviderFee: string;
35898
35911
  minQuantityTickSize: number;
35899
- minNotional: number;
35912
+ quoteToken: TokenMeta | undefined;
35900
35913
  }
35901
35914
  interface PerpetualMarket extends BaseDerivativeMarket {
35902
- reduceMarginRatio: string;
35903
- initialMarginRatio: string;
35904
- maintenanceMarginRatio: string;
35905
- isPerpetual: boolean;
35906
35915
  oracleBase: string;
35907
35916
  oracleQuote: string;
35917
+ isPerpetual: boolean;
35918
+ reduceMarginRatio: string;
35908
35919
  oracleScaleFactor: number;
35920
+ initialMarginRatio: string;
35921
+ maintenanceMarginRatio: string;
35909
35922
  perpetualMarketInfo?: PerpetualMarketInfo;
35910
35923
  perpetualMarketFunding?: PerpetualMarketFunding;
35911
35924
  }
35912
35925
  interface ExpiryFuturesMarket extends BaseDerivativeMarket {
35913
- reduceMarginRatio: string;
35914
- initialMarginRatio: string;
35915
- maintenanceMarginRatio: string;
35916
- isPerpetual: boolean;
35917
35926
  oracleBase: string;
35918
35927
  oracleQuote: string;
35928
+ isPerpetual: boolean;
35929
+ reduceMarginRatio: string;
35919
35930
  oracleScaleFactor: number;
35931
+ initialMarginRatio: string;
35932
+ maintenanceMarginRatio: string;
35920
35933
  expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo;
35921
35934
  }
35922
35935
  interface BinaryOptionsMarket extends Omit<BaseDerivativeMarket, 'minPriceTickSize' | 'minQuantityTickSize'> {
35936
+ minNotional: number;
35923
35937
  oracleSymbol: string;
35924
35938
  oracleProvider: string;
35939
+ settlementPrice: string;
35940
+ minPriceTickSize: number;
35925
35941
  oracleScaleFactor: number;
35942
+ serviceProviderFee: string;
35926
35943
  expirationTimestamp: number;
35927
35944
  settlementTimestamp: number;
35928
- serviceProviderFee: string;
35929
- minPriceTickSize: number;
35930
35945
  minQuantityTickSize: number;
35931
- minNotional: number;
35932
- settlementPrice: string;
35933
35946
  }
35934
35947
  type DerivativeMarket = PerpetualMarket | ExpiryFuturesMarket | BinaryOptionsMarket;
35935
35948
  type DerivativeMarketWithoutBinaryOptions = PerpetualMarket | ExpiryFuturesMarket;
35936
35949
  interface DerivativeLimitOrder {
35937
- orderHash: string;
35938
- orderSide: OrderSide;
35939
- marketId: string;
35940
35950
  cid: string;
35941
- subaccountId: string;
35942
- isReduceOnly: boolean;
35943
- margin: string;
35944
35951
  price: string;
35952
+ margin: string;
35953
+ marketId: string;
35945
35954
  quantity: string;
35946
- unfilledQuantity: string;
35947
- triggerPrice: string;
35948
- feeRecipient: string;
35955
+ orderHash: string;
35949
35956
  state: OrderState;
35950
35957
  createdAt: number;
35951
35958
  updatedAt: number;
35952
- orderNumber: number;
35953
35959
  orderType: string;
35954
- isConditional: boolean;
35955
35960
  triggerAt: number;
35956
- placedOrderHash: string;
35961
+ orderNumber: number;
35962
+ orderSide: OrderSide;
35963
+ subaccountId: string;
35964
+ triggerPrice: string;
35965
+ feeRecipient: string;
35966
+ isReduceOnly: boolean;
35957
35967
  executionType: string;
35968
+ isConditional: boolean;
35969
+ accountAddress: string;
35970
+ placedOrderHash: string;
35971
+ unfilledQuantity: string;
35958
35972
  }
35959
35973
  interface DerivativeOrderHistory {
35960
- orderHash: string;
35961
- marketId: string;
35962
35974
  cid: string;
35963
- isActive: boolean;
35964
- subaccountId: string;
35965
- executionType: string;
35966
- orderType: string;
35967
35975
  price: string;
35968
- triggerPrice: string;
35969
- quantity: string;
35970
- filledQuantity: string;
35971
35976
  state: string;
35977
+ margin: string;
35978
+ marketId: string;
35979
+ quantity: string;
35980
+ orderHash: string;
35981
+ isActive: boolean;
35982
+ orderType: string;
35972
35983
  createdAt: number;
35973
35984
  updatedAt: number;
35974
- isReduceOnly: boolean;
35975
35985
  direction: string;
35976
- isConditional: boolean;
35977
35986
  triggerAt: number;
35987
+ subaccountId: string;
35988
+ triggerPrice: string;
35989
+ executionType: string;
35990
+ isReduceOnly: boolean;
35991
+ filledQuantity: string;
35992
+ isConditional: boolean;
35978
35993
  placedOrderHash: string;
35979
- margin: string;
35980
35994
  }
35981
35995
  interface DerivativeTrade extends PositionDelta {
35982
- orderHash: string;
35983
- subaccountId: string;
35984
- tradeId: string;
35985
35996
  cid: string;
35997
+ fee: string;
35998
+ pnl: string;
35999
+ payout: string;
36000
+ tradeId: string;
35986
36001
  marketId: string;
36002
+ orderHash: string;
35987
36003
  executedAt: number;
35988
- tradeExecutionType: TradeExecutionType;
35989
- tradeDirection: TradeDirection;
35990
- executionSide: TradeExecutionSide;
35991
- fee: string;
36004
+ subaccountId: string;
35992
36005
  feeRecipient: string;
35993
36006
  isLiquidation: boolean;
35994
- payout: string;
35995
- pnl: string;
36007
+ tradeDirection: TradeDirection;
36008
+ executionSide: TradeExecutionSide;
36009
+ tradeExecutionType: TradeExecutionType;
35996
36010
  }
35997
36011
  interface DerivativeLimitOrderParams {
35998
- orderType: GrpcOrderType;
35999
- triggerPrice?: string;
36000
- feeRecipient: string;
36001
36012
  price: string;
36002
36013
  margin: string;
36003
36014
  quantity: string;
36015
+ feeRecipient: string;
36016
+ triggerPrice?: string;
36017
+ orderType: GrpcOrderType;
36004
36018
  }
36005
36019
  interface DerivativeOrderCancelParams {
36006
36020
  orderHash: string;
36007
36021
  }
36008
36022
  interface BatchDerivativeOrderCancelParams {
36009
36023
  marketId: string;
36010
- subaccountId: string;
36011
36024
  orderHash: string;
36025
+ subaccountId: string;
36012
36026
  }
36013
36027
  interface FundingPayment {
36014
- marketId: string;
36015
- subaccountId: string;
36016
36028
  amount: string;
36029
+ marketId: string;
36017
36030
  timestamp: number;
36031
+ subaccountId: string;
36018
36032
  }
36019
36033
  interface FundingRate {
36020
- marketId: string;
36021
36034
  rate: string;
36035
+ marketId: string;
36022
36036
  timestamp: number;
36023
36037
  }
36024
36038
  type GrpcFundingRate = FundingRate$1;
@@ -36191,7 +36205,7 @@ interface BankTransferFromExplorerApiResponse {
36191
36205
  block_timestamp: string;
36192
36206
  }
36193
36207
  //#endregion
36194
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.d.ts
36208
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.d.ts
36195
36209
  /**
36196
36210
  * @generated from protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
36197
36211
  */
@@ -36341,6 +36355,12 @@ interface TCDerivativeOrderHistoryType {
36341
36355
  * @generated from protobuf field: string cid = 21
36342
36356
  */
36343
36357
  cid: string;
36358
+ /**
36359
+ * Account address that owns the subaccount which placed this order
36360
+ *
36361
+ * @generated from protobuf field: string account_address = 22
36362
+ */
36363
+ accountAddress: string;
36344
36364
  }
36345
36365
  /**
36346
36366
  * @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersHistoryResponse
@@ -36518,6 +36538,12 @@ interface DerivativeLimitOrder$1 {
36518
36538
  * @generated from protobuf field: string cid = 22
36519
36539
  */
36520
36540
  cid: string;
36541
+ /**
36542
+ * Account address that owns the subaccount which placed this order
36543
+ *
36544
+ * @generated from protobuf field: string account_address = 23
36545
+ */
36546
+ accountAddress: string;
36521
36547
  }
36522
36548
  /**
36523
36549
  * @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersResponse
@@ -36673,6 +36699,19 @@ interface TCDerivativeTrade {
36673
36699
  * @generated from protobuf field: bool is_position_closed = 18
36674
36700
  */
36675
36701
  isPositionClosed: boolean;
36702
+ /**
36703
+ * RFQ maker address for the synthetic trade (set only on synthetic trades
36704
+ * coming from an RFQ settlement)
36705
+ *
36706
+ * @generated from protobuf field: string rfq_maker = 19
36707
+ */
36708
+ rfqMaker: string;
36709
+ /**
36710
+ * Account address that owns the subaccount which executed this trade
36711
+ *
36712
+ * @generated from protobuf field: string account_address = 20
36713
+ */
36714
+ accountAddress: string;
36676
36715
  }
36677
36716
  /**
36678
36717
  * @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
@@ -36865,6 +36904,12 @@ interface StreamPositionsResponse {
36865
36904
  * @generated from protobuf field: sint64 timestamp = 2
36866
36905
  */
36867
36906
  timestamp: bigint;
36907
+ /**
36908
+ * Position update type
36909
+ *
36910
+ * @generated from protobuf field: string operation_type = 3
36911
+ */
36912
+ operationType: string;
36868
36913
  }
36869
36914
  /**
36870
36915
  * @generated MessageType for protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
@@ -36946,6 +36991,7 @@ interface TcDerivativeOrderHistory {
36946
36991
  isReduceOnly: boolean;
36947
36992
  filledQuantity: string;
36948
36993
  isConditional: boolean;
36994
+ accountAddress: string;
36949
36995
  placedOrderHash: string;
36950
36996
  direction: TradeDirection;
36951
36997
  }
@@ -36956,11 +37002,13 @@ interface TcDerivativeTradeHistory {
36956
37002
  payout: string;
36957
37003
  tradeId: string;
36958
37004
  marketId: string;
37005
+ rfqMaker: string;
36959
37006
  orderHash: string;
36960
37007
  executedAt: number;
36961
37008
  subaccountId: string;
36962
37009
  feeRecipient: string;
36963
37010
  isLiquidation: boolean;
37011
+ accountAddress: string;
36964
37012
  executionPrice: string;
36965
37013
  positionIsLong: boolean;
36966
37014
  executionMargin: string;
@@ -37012,6 +37060,7 @@ interface TcDerivativeLimitOrder {
37012
37060
  isConditional: boolean;
37013
37061
  placedOrderHash: string;
37014
37062
  unfilledQuantity: string;
37063
+ accountAddress: string;
37015
37064
  }
37016
37065
  interface TcDerivativesOrdersHistoryResponse {
37017
37066
  next: string[];
@@ -37245,7 +37294,7 @@ interface ChronosLeaderboardResponse {
37245
37294
  data: ChronosLeaderboard;
37246
37295
  }
37247
37296
  //#endregion
37248
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.d.ts
37297
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.d.ts
37249
37298
  /**
37250
37299
  * @generated from protobuf message injective_portfolio_rpc.AccountPortfolioResponse
37251
37300
  */
@@ -38101,7 +38150,7 @@ declare class IndexerGrpcMitoApi extends BaseIndexerGrpcConsumer {
38101
38150
  }>;
38102
38151
  }
38103
38152
  //#endregion
38104
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_meta_rpc_pb.d.ts
38153
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_meta_rpc_pb.d.ts
38105
38154
  /**
38106
38155
  * @generated from protobuf message injective_meta_rpc.PingResponse
38107
38156
  */
@@ -38486,7 +38535,7 @@ declare class IndexerGrpcOracleApi extends BaseIndexerGrpcConsumer {
38486
38535
  }): Promise<PriceResponse>;
38487
38536
  }
38488
38537
  //#endregion
38489
- //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.20/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_exchange_rpc_pb.d.ts
38538
+ //#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_exchange_rpc_pb.d.ts
38490
38539
  /**
38491
38540
  * @generated from protobuf message injective_exchange_rpc.PrepareTxResponse
38492
38541
  */
@@ -39616,10 +39665,11 @@ declare class IndexerGrpcTcDerivativesApi extends BaseIndexerGrpcConsumer {
39616
39665
  fetchTradesHistory(params?: {
39617
39666
  token?: string;
39618
39667
  sortBy?: string;
39619
- withPnl?: boolean;
39620
39668
  endTime?: number;
39621
39669
  perPage?: number;
39670
+ withPnl?: boolean;
39622
39671
  marketId?: string;
39672
+ rfqMaker?: string;
39623
39673
  startTime?: number;
39624
39674
  direction?: string;
39625
39675
  sortDirection?: string;
@@ -40615,6 +40665,7 @@ declare class IndexerDerivativeStreamTransformer {
40615
40665
  static positionV2StreamCallback: (response: StreamPositionsV2Response) => {
40616
40666
  position: PositionV2 | undefined;
40617
40667
  timestamp: bigint;
40668
+ operationType: string;
40618
40669
  };
40619
40670
  }
40620
40671
  //#endregion
@@ -40675,6 +40726,7 @@ declare class IndexerTcDerivativesStreamTransformer {
40675
40726
  };
40676
40727
  static positionsStreamCallback: (response: StreamPositionsResponse) => {
40677
40728
  timestamp: number;
40729
+ operationType: string;
40678
40730
  position: TcDerivativePosition | undefined;
40679
40731
  };
40680
40732
  static ordersStreamCallback: (response: StreamOrdersResponse) => {
@@ -42222,10 +42274,12 @@ declare class IndexerGrpcTcDerivativesStreamV2 {
42222
42274
  }): StreamSubscription;
42223
42275
  streamTrades({
42224
42276
  marketId,
42225
- accountAddress,
42226
- callback
42277
+ rfqMaker,
42278
+ callback,
42279
+ accountAddress
42227
42280
  }: {
42228
42281
  marketId?: string;
42282
+ rfqMaker?: string;
42229
42283
  accountAddress?: string;
42230
42284
  callback: TcDerivativeTradesStreamCallbackV2;
42231
42285
  }): StreamSubscription;
@@ -17,10 +17,10 @@ require('./BaseRestConsumer-uSzCOit7.cjs');
17
17
  const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-ChJ7QUin.cjs');
18
18
  const require_AbacusGrpcApi = require('./AbacusGrpcApi-DlbYSnBj.cjs');
19
19
  const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-4kYonJ54.cjs');
20
- const require_StreamManagerV2 = require('./StreamManagerV2-Di7iOXpa.cjs');
20
+ const require_StreamManagerV2 = require('./StreamManagerV2-C7d4Q1Sc.cjs');
21
21
  const require_types = require('./types-Cn54Lzf-.cjs');
22
22
  const require_TcAbacusGrpcApi = require('./TcAbacusGrpcApi-DIX90jRr.cjs');
23
- const require_tx = require('./tx-jN0kY2rr.cjs');
23
+ const require_tx = require('./tx-agSYcGFh.cjs');
24
24
  const require_service = require('./service-2B8kFWdK.cjs');
25
25
  let __injectivelabs_core_proto_ts_v2_generated_injective_types_v1beta1_account_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/account_pb");
26
26
  __injectivelabs_core_proto_ts_v2_generated_injective_types_v1beta1_account_pb = require_chunk.__toESM(__injectivelabs_core_proto_ts_v2_generated_injective_types_v1beta1_account_pb);