@injectivelabs/sdk-ts 1.18.19 → 1.18.20
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.
- package/dist/cjs/{StreamManagerV2-Bp3B3Oi6.cjs → StreamManagerV2-Bs2uI8ml.cjs} +34 -25
- package/dist/cjs/client/chain.d.cts +1 -1
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +1 -1
- package/dist/cjs/core/accounts.d.cts +1 -1
- package/dist/cjs/core/modules.d.cts +1 -1
- package/dist/cjs/core/tx.d.cts +1 -1
- package/dist/cjs/{index-Dx2YEV9Z.d.cts → index-D-rJaM8A.d.cts} +127 -115
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/utils.d.cts +1 -1
- package/dist/esm/{StreamManagerV2-CgXR0Fbk.js → StreamManagerV2-jKwiDH8k.js} +34 -25
- package/dist/esm/client/chain.d.ts +1 -1
- package/dist/esm/client/indexer.d.ts +1 -1
- package/dist/esm/client/indexer.js +1 -1
- package/dist/esm/core/accounts.d.ts +1 -1
- package/dist/esm/core/modules.d.ts +1 -1
- package/dist/esm/core/tx.d.ts +1 -1
- package/dist/esm/{index-qSVIL-S5.d.ts → index-B7UAQ6cm.d.ts} +127 -115
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils.d.ts +1 -1
- package/package.json +6 -6
|
@@ -18688,7 +18688,7 @@ declare const BECH32_ADDR_VAL_PREFIX = "injvaloper";
|
|
|
18688
18688
|
declare const BECH32_ADDR_CONS_PREFIX = "injvalcons";
|
|
18689
18689
|
declare const DEFAULT_DERIVATION_PATH = "m/44'/60'/0'/0/0";
|
|
18690
18690
|
//#endregion
|
|
18691
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
18691
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_accounts_rpc_pb.d.ts
|
|
18692
18692
|
/**
|
|
18693
18693
|
* @generated from protobuf message injective_accounts_rpc.PortfolioResponse
|
|
18694
18694
|
*/
|
|
@@ -19204,7 +19204,7 @@ declare const Reward = new Reward$Type();
|
|
|
19204
19204
|
*/
|
|
19205
19205
|
declare const Coin$7 = new Coin$Type();
|
|
19206
19206
|
//#endregion
|
|
19207
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
19207
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_explorer_rpc_pb.d.ts
|
|
19208
19208
|
/**
|
|
19209
19209
|
* @generated from protobuf message injective_explorer_rpc.GetAccountTxsResponse
|
|
19210
19210
|
*/
|
|
@@ -20638,7 +20638,7 @@ declare const fetchAllWithPagination: <T extends {
|
|
|
20638
20638
|
//#region src/utils/transaction.d.ts
|
|
20639
20639
|
declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise<string>;
|
|
20640
20640
|
//#endregion
|
|
20641
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
20641
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb.d.ts
|
|
20642
20642
|
/**
|
|
20643
20643
|
* @generated from protobuf message injective_rfq_rpc.StreamRequestResponse
|
|
20644
20644
|
*/
|
|
@@ -21261,11 +21261,11 @@ interface StreamSettlementResponse {
|
|
|
21261
21261
|
*/
|
|
21262
21262
|
interface ConditionalOrderResponseType {
|
|
21263
21263
|
/**
|
|
21264
|
-
*
|
|
21264
|
+
* RFQ order ID
|
|
21265
21265
|
*
|
|
21266
|
-
* @generated from protobuf field:
|
|
21266
|
+
* @generated from protobuf field: uint64 rfq_id = 1
|
|
21267
21267
|
*/
|
|
21268
|
-
|
|
21268
|
+
rfqId: bigint;
|
|
21269
21269
|
/**
|
|
21270
21270
|
* Derivative market ID
|
|
21271
21271
|
*
|
|
@@ -21302,42 +21302,48 @@ interface ConditionalOrderResponseType {
|
|
|
21302
21302
|
* @generated from protobuf field: string request_address = 7
|
|
21303
21303
|
*/
|
|
21304
21304
|
requestAddress: string;
|
|
21305
|
-
/**
|
|
21306
|
-
* Order type (take_profit/stop_loss)
|
|
21307
|
-
*
|
|
21308
|
-
* @generated from protobuf field: string order_type = 8
|
|
21309
|
-
*/
|
|
21310
|
-
orderType: string;
|
|
21311
21305
|
/**
|
|
21312
21306
|
* Mark price threshold
|
|
21313
21307
|
*
|
|
21314
|
-
* @generated from protobuf field: string trigger_price =
|
|
21308
|
+
* @generated from protobuf field: string trigger_price = 8
|
|
21315
21309
|
*/
|
|
21316
21310
|
triggerPrice: string;
|
|
21317
21311
|
/**
|
|
21318
21312
|
* Order status
|
|
21319
21313
|
*
|
|
21320
|
-
* @generated from protobuf field: string status =
|
|
21314
|
+
* @generated from protobuf field: string status = 9
|
|
21321
21315
|
*/
|
|
21322
21316
|
status: string;
|
|
21323
21317
|
/**
|
|
21324
21318
|
* Creation timestamp in milliseconds
|
|
21325
21319
|
*
|
|
21326
|
-
* @generated from protobuf field: sint64 created_at =
|
|
21320
|
+
* @generated from protobuf field: sint64 created_at = 10
|
|
21327
21321
|
*/
|
|
21328
21322
|
createdAt: bigint;
|
|
21329
21323
|
/**
|
|
21330
21324
|
* Last update timestamp in milliseconds
|
|
21331
21325
|
*
|
|
21332
|
-
* @generated from protobuf field: sint64 updated_at =
|
|
21326
|
+
* @generated from protobuf field: sint64 updated_at = 11
|
|
21333
21327
|
*/
|
|
21334
21328
|
updatedAt: bigint;
|
|
21335
21329
|
/**
|
|
21336
21330
|
* Expiry timestamp in milliseconds
|
|
21337
21331
|
*
|
|
21338
|
-
* @generated from protobuf field: sint64 expires_at =
|
|
21332
|
+
* @generated from protobuf field: sint64 expires_at = 12
|
|
21339
21333
|
*/
|
|
21340
21334
|
expiresAt: bigint;
|
|
21335
|
+
/**
|
|
21336
|
+
* Trigger condition (mark_price_gte, mark_price_lte)
|
|
21337
|
+
*
|
|
21338
|
+
* @generated from protobuf field: string trigger_type = 13
|
|
21339
|
+
*/
|
|
21340
|
+
triggerType: string;
|
|
21341
|
+
/**
|
|
21342
|
+
* Minimum total fill quantity
|
|
21343
|
+
*
|
|
21344
|
+
* @generated from protobuf field: string min_total_fill_quantity = 14
|
|
21345
|
+
*/
|
|
21346
|
+
minTotalFillQuantity: string;
|
|
21341
21347
|
}
|
|
21342
21348
|
/**
|
|
21343
21349
|
* @generated from protobuf message injective_rfq_rpc.ListConditionalOrdersResponse
|
|
@@ -21361,8 +21367,7 @@ interface ListConditionalOrdersResponse {
|
|
|
21361
21367
|
*/
|
|
21362
21368
|
interface TakerStreamResponse {
|
|
21363
21369
|
/**
|
|
21364
|
-
* Type: 'quote', 'request_ack', 'error', 'pong', 'conditional_order_ack'
|
|
21365
|
-
* 'cancel_conditional_order_ack'
|
|
21370
|
+
* Type: 'quote', 'request_ack', 'error', 'pong', 'conditional_order_ack'
|
|
21366
21371
|
*
|
|
21367
21372
|
* @generated from protobuf field: string message_type = 1
|
|
21368
21373
|
*/
|
|
@@ -21391,12 +21396,6 @@ interface TakerStreamResponse {
|
|
|
21391
21396
|
* @generated from protobuf field: injective_rfq_rpc.ConditionalOrderAck conditional_order_ack = 5
|
|
21392
21397
|
*/
|
|
21393
21398
|
conditionalOrderAck?: ConditionalOrderAck;
|
|
21394
|
-
/**
|
|
21395
|
-
* Acknowledgment for conditional order cancellation
|
|
21396
|
-
*
|
|
21397
|
-
* @generated from protobuf field: injective_rfq_rpc.CancelConditionalOrderAck cancel_conditional_order_ack = 6
|
|
21398
|
-
*/
|
|
21399
|
-
cancelConditionalOrderAck?: CancelConditionalOrderAck;
|
|
21400
21399
|
}
|
|
21401
21400
|
/**
|
|
21402
21401
|
* Acknowledgment for stream operations
|
|
@@ -21455,19 +21454,6 @@ interface ConditionalOrderAck {
|
|
|
21455
21454
|
*/
|
|
21456
21455
|
order?: ConditionalOrderResponseType;
|
|
21457
21456
|
}
|
|
21458
|
-
/**
|
|
21459
|
-
* Acknowledgment for conditional order cancellation
|
|
21460
|
-
*
|
|
21461
|
-
* @generated from protobuf message injective_rfq_rpc.CancelConditionalOrderAck
|
|
21462
|
-
*/
|
|
21463
|
-
interface CancelConditionalOrderAck {
|
|
21464
|
-
/**
|
|
21465
|
-
* Cancelled conditional order
|
|
21466
|
-
*
|
|
21467
|
-
* @generated from protobuf field: injective_rfq_rpc.ConditionalOrderResponseType order = 1
|
|
21468
|
-
*/
|
|
21469
|
-
order?: ConditionalOrderResponseType;
|
|
21470
|
-
}
|
|
21471
21457
|
/**
|
|
21472
21458
|
* @generated from protobuf message injective_rfq_rpc.MakerStreamResponse
|
|
21473
21459
|
*/
|
|
@@ -21777,10 +21763,6 @@ declare const StreamError = new StreamError$Type();
|
|
|
21777
21763
|
* @generated MessageType for protobuf message injective_rfq_rpc.ConditionalOrderAck
|
|
21778
21764
|
*/
|
|
21779
21765
|
declare const ConditionalOrderAck = new ConditionalOrderAck$Type();
|
|
21780
|
-
/**
|
|
21781
|
-
* @generated MessageType for protobuf message injective_rfq_rpc.CancelConditionalOrderAck
|
|
21782
|
-
*/
|
|
21783
|
-
declare const CancelConditionalOrderAck = new CancelConditionalOrderAck$Type();
|
|
21784
21766
|
/**
|
|
21785
21767
|
* @generated MessageType for protobuf message injective_rfq_rpc.MakerStreamResponse
|
|
21786
21768
|
*/
|
|
@@ -23773,7 +23755,7 @@ type GrpcSubaccountBalance = SubaccountBalance$2;
|
|
|
23773
23755
|
type GrpcSubaccountPortfolio = SubaccountPortfolio$1;
|
|
23774
23756
|
type GrpcSubaccountBalanceTransfer = SubaccountBalanceTransfer;
|
|
23775
23757
|
//#endregion
|
|
23776
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
23758
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_trading_rpc_pb.d.ts
|
|
23777
23759
|
/**
|
|
23778
23760
|
* @generated from protobuf message injective_trading_rpc.ListTradingStrategiesResponse
|
|
23779
23761
|
*/
|
|
@@ -24847,31 +24829,42 @@ interface SettlementsResponse {
|
|
|
24847
24829
|
settlements: RFQSettlementType[];
|
|
24848
24830
|
}
|
|
24849
24831
|
interface RFQConditionalOrderInput {
|
|
24850
|
-
|
|
24851
|
-
|
|
24832
|
+
version: number;
|
|
24833
|
+
chainId: string;
|
|
24834
|
+
contractAddress: string;
|
|
24835
|
+
taker: string;
|
|
24836
|
+
epoch: bigint;
|
|
24837
|
+
rfqId: bigint;
|
|
24852
24838
|
marketId: string;
|
|
24853
|
-
|
|
24839
|
+
subaccountNonce: number;
|
|
24840
|
+
laneVersion: bigint;
|
|
24841
|
+
deadlineMs: bigint;
|
|
24854
24842
|
direction: string;
|
|
24855
|
-
|
|
24856
|
-
|
|
24843
|
+
quantity: string;
|
|
24844
|
+
margin: string;
|
|
24857
24845
|
worstPrice: string;
|
|
24846
|
+
minTotalFillQuantity: string;
|
|
24847
|
+
triggerType: string;
|
|
24858
24848
|
triggerPrice: string;
|
|
24859
|
-
|
|
24849
|
+
unfilledAction?: string;
|
|
24850
|
+
cid?: string;
|
|
24851
|
+
allowedRelayer?: string;
|
|
24860
24852
|
}
|
|
24861
24853
|
interface RFQConditionalOrder {
|
|
24862
|
-
|
|
24863
|
-
margin: string;
|
|
24864
|
-
status: string;
|
|
24854
|
+
rfqId: number;
|
|
24865
24855
|
marketId: string;
|
|
24866
|
-
quantity: string;
|
|
24867
24856
|
direction: string;
|
|
24868
|
-
|
|
24857
|
+
margin: string;
|
|
24858
|
+
quantity: string;
|
|
24859
|
+
worstPrice: string;
|
|
24860
|
+
requestAddress: string;
|
|
24861
|
+
triggerPrice: string;
|
|
24862
|
+
status: string;
|
|
24869
24863
|
createdAt: number;
|
|
24870
24864
|
updatedAt: number;
|
|
24871
24865
|
expiresAt: number;
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
requestAddress: string;
|
|
24866
|
+
triggerType: string;
|
|
24867
|
+
minTotalFillQuantity: string;
|
|
24875
24868
|
}
|
|
24876
24869
|
interface RFQConditionalOrdersResponse {
|
|
24877
24870
|
next: string[];
|
|
@@ -24976,7 +24969,7 @@ interface QuantityAndFees {
|
|
|
24976
24969
|
resultQuantity: string;
|
|
24977
24970
|
}
|
|
24978
24971
|
//#endregion
|
|
24979
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
24972
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_spot_exchange_rpc_pb.d.ts
|
|
24980
24973
|
/**
|
|
24981
24974
|
* @generated from protobuf message injective_spot_exchange_rpc.MarketsResponse
|
|
24982
24975
|
*/
|
|
@@ -26132,7 +26125,7 @@ type GrpcSpotLimitOrder = SpotLimitOrder$1;
|
|
|
26132
26125
|
type GrpcSpotOrderHistory = SpotOrderHistory$1;
|
|
26133
26126
|
type GrpcAtomicSwap = AtomicSwap$1;
|
|
26134
26127
|
//#endregion
|
|
26135
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
26128
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_oracle_rpc_pb.d.ts
|
|
26136
26129
|
/**
|
|
26137
26130
|
* @generated from protobuf message injective_oracle_rpc.OracleListResponse
|
|
26138
26131
|
*/
|
|
@@ -26261,7 +26254,7 @@ declare const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$
|
|
|
26261
26254
|
type GrpcOracle = Oracle$1;
|
|
26262
26255
|
interface Oracle extends GrpcOracle {}
|
|
26263
26256
|
//#endregion
|
|
26264
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
26257
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_auction_rpc_pb.d.ts
|
|
26265
26258
|
/**
|
|
26266
26259
|
* @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse
|
|
26267
26260
|
*/
|
|
@@ -26758,7 +26751,7 @@ type GrpcAccountAuctionV2 = AccountAuctionV2$1;
|
|
|
26758
26751
|
type GrpcAuctionContract = AuctionContract$1;
|
|
26759
26752
|
type StreamBidsResponse = StreamBidsResponse$1;
|
|
26760
26753
|
//#endregion
|
|
26761
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
26754
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_archiver_rpc_pb.d.ts
|
|
26762
26755
|
/**
|
|
26763
26756
|
* @generated from protobuf message injective_archiver_rpc.BalanceResponse
|
|
26764
26757
|
*/
|
|
@@ -27280,7 +27273,7 @@ type GrpcHistoricalVolumes = HistoricalVolumes$1;
|
|
|
27280
27273
|
type GrpcPnlLeaderboard = PnlLeaderboardResponse | PnlLeaderboardFixedResolutionResponse;
|
|
27281
27274
|
type GrpcVolLeaderboard = VolLeaderboardResponse | VolLeaderboardFixedResolutionResponse;
|
|
27282
27275
|
//#endregion
|
|
27283
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
27276
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_referral_rpc_pb.d.ts
|
|
27284
27277
|
/**
|
|
27285
27278
|
* @generated from protobuf message injective_referral_rpc.GetReferrerDetailsResponse
|
|
27286
27279
|
*/
|
|
@@ -27411,7 +27404,7 @@ interface ReferralDetails {
|
|
|
27411
27404
|
invitees: ReferralInvitee[];
|
|
27412
27405
|
}
|
|
27413
27406
|
//#endregion
|
|
27414
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
27407
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_campaign_rpc_pb.d.ts
|
|
27415
27408
|
/**
|
|
27416
27409
|
* @generated from protobuf message injective_campaign_rpc.RankingResponse
|
|
27417
27410
|
*/
|
|
@@ -28248,7 +28241,7 @@ interface AllSpotMarketSummaryResponse {
|
|
|
28248
28241
|
data: AllChronosSpotMarketSummary[];
|
|
28249
28242
|
}
|
|
28250
28243
|
//#endregion
|
|
28251
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
28244
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_megavault_rpc_pb.d.ts
|
|
28252
28245
|
/**
|
|
28253
28246
|
* @generated from protobuf message injective_megavault_rpc.GetVaultResponse
|
|
28254
28247
|
*/
|
|
@@ -29367,7 +29360,7 @@ interface IncentivesCampaign {
|
|
|
29367
29360
|
subaccountIdSuffix: string;
|
|
29368
29361
|
}
|
|
29369
29362
|
//#endregion
|
|
29370
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
29363
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.d.ts
|
|
29371
29364
|
/**
|
|
29372
29365
|
* @generated from protobuf message injective_insurance_rpc.FundsResponse
|
|
29373
29366
|
*/
|
|
@@ -29629,7 +29622,7 @@ interface InsuranceFundCreateParams {
|
|
|
29629
29622
|
type GrpcIndexerInsuranceFund = InsuranceFund$2;
|
|
29630
29623
|
type GrpcIndexerRedemptionSchedule = RedemptionSchedule;
|
|
29631
29624
|
//#endregion
|
|
29632
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
29625
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_derivative_exchange_rpc_pb.d.ts
|
|
29633
29626
|
/**
|
|
29634
29627
|
* @generated from protobuf message injective_derivative_exchange_rpc.MarketsResponse
|
|
29635
29628
|
*/
|
|
@@ -30869,7 +30862,7 @@ interface TradesResponse$1 {
|
|
|
30869
30862
|
*
|
|
30870
30863
|
* @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeTrade trades = 1
|
|
30871
30864
|
*/
|
|
30872
|
-
trades: DerivativeTrade$
|
|
30865
|
+
trades: DerivativeTrade$1[];
|
|
30873
30866
|
/**
|
|
30874
30867
|
* @generated from protobuf field: injective_derivative_exchange_rpc.Paging paging = 2
|
|
30875
30868
|
*/
|
|
@@ -30878,7 +30871,7 @@ interface TradesResponse$1 {
|
|
|
30878
30871
|
/**
|
|
30879
30872
|
* @generated from protobuf message injective_derivative_exchange_rpc.DerivativeTrade
|
|
30880
30873
|
*/
|
|
30881
|
-
interface DerivativeTrade$
|
|
30874
|
+
interface DerivativeTrade$1 {
|
|
30882
30875
|
/**
|
|
30883
30876
|
* Order hash.
|
|
30884
30877
|
*
|
|
@@ -31002,7 +30995,7 @@ interface StreamTradesResponse$1 {
|
|
|
31002
30995
|
*
|
|
31003
30996
|
* @generated from protobuf field: injective_derivative_exchange_rpc.DerivativeTrade trade = 1
|
|
31004
30997
|
*/
|
|
31005
|
-
trade?: DerivativeTrade$
|
|
30998
|
+
trade?: DerivativeTrade$1;
|
|
31006
30999
|
/**
|
|
31007
31000
|
* Executed trades update type
|
|
31008
31001
|
*
|
|
@@ -31025,7 +31018,7 @@ interface SubaccountTradesListResponse {
|
|
|
31025
31018
|
*
|
|
31026
31019
|
* @generated from protobuf field: repeated injective_derivative_exchange_rpc.DerivativeTrade trades = 1
|
|
31027
31020
|
*/
|
|
31028
|
-
trades: DerivativeTrade$
|
|
31021
|
+
trades: DerivativeTrade$1[];
|
|
31029
31022
|
}
|
|
31030
31023
|
/**
|
|
31031
31024
|
* @generated from protobuf message injective_derivative_exchange_rpc.OrdersHistoryResponse
|
|
@@ -31343,7 +31336,7 @@ declare const TradesResponse$1 = new TradesResponse$Type();
|
|
|
31343
31336
|
/**
|
|
31344
31337
|
* @generated MessageType for protobuf message injective_derivative_exchange_rpc.DerivativeTrade
|
|
31345
31338
|
*/
|
|
31346
|
-
declare const DerivativeTrade$
|
|
31339
|
+
declare const DerivativeTrade$1 = new DerivativeTrade$Type();
|
|
31347
31340
|
/**
|
|
31348
31341
|
* @generated MessageType for protobuf message injective_derivative_exchange_rpc.PositionDelta
|
|
31349
31342
|
*/
|
|
@@ -31552,7 +31545,7 @@ interface FundingRate {
|
|
|
31552
31545
|
type GrpcFundingRate = FundingRate$1;
|
|
31553
31546
|
type GrpcPositionDelta = PositionDelta$2;
|
|
31554
31547
|
type GrpcFundingPayment = FundingPayment$1;
|
|
31555
|
-
type GrpcDerivativeTrade = DerivativeTrade$
|
|
31548
|
+
type GrpcDerivativeTrade = DerivativeTrade$1;
|
|
31556
31549
|
type GrpcDerivativePosition = DerivativePosition$1;
|
|
31557
31550
|
type GrpcDerivativePositionV2 = DerivativePositionV2$1;
|
|
31558
31551
|
type GrpcPerpetualMarketInfo = PerpetualMarketInfo$1;
|
|
@@ -31719,7 +31712,7 @@ interface BankTransferFromExplorerApiResponse {
|
|
|
31719
31712
|
block_timestamp: string;
|
|
31720
31713
|
}
|
|
31721
31714
|
//#endregion
|
|
31722
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31715
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.d.ts
|
|
31723
31716
|
/**
|
|
31724
31717
|
* @generated from protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
|
|
31725
31718
|
*/
|
|
@@ -32077,9 +32070,9 @@ interface TradesResponse {
|
|
|
32077
32070
|
/**
|
|
32078
32071
|
* Trades of TC Derivative Markets
|
|
32079
32072
|
*
|
|
32080
|
-
* @generated from protobuf field: repeated injective_tc_derivatives_rpc.
|
|
32073
|
+
* @generated from protobuf field: repeated injective_tc_derivatives_rpc.TCDerivativeTrade trades = 1
|
|
32081
32074
|
*/
|
|
32082
|
-
trades:
|
|
32075
|
+
trades: TCDerivativeTrade[];
|
|
32083
32076
|
/**
|
|
32084
32077
|
* Next tokens for pagination
|
|
32085
32078
|
*
|
|
@@ -32088,9 +32081,11 @@ interface TradesResponse {
|
|
|
32088
32081
|
next: string[];
|
|
32089
32082
|
}
|
|
32090
32083
|
/**
|
|
32091
|
-
*
|
|
32084
|
+
* TC derivative trade including position metadata fields
|
|
32085
|
+
*
|
|
32086
|
+
* @generated from protobuf message injective_tc_derivatives_rpc.TCDerivativeTrade
|
|
32092
32087
|
*/
|
|
32093
|
-
interface
|
|
32088
|
+
interface TCDerivativeTrade {
|
|
32094
32089
|
/**
|
|
32095
32090
|
* Order hash.
|
|
32096
32091
|
*
|
|
@@ -32175,6 +32170,24 @@ interface DerivativeTrade$1 {
|
|
|
32175
32170
|
* @generated from protobuf field: string pnl = 14
|
|
32176
32171
|
*/
|
|
32177
32172
|
pnl: string;
|
|
32173
|
+
/**
|
|
32174
|
+
* True if the position associated with this trade is long
|
|
32175
|
+
*
|
|
32176
|
+
* @generated from protobuf field: bool position_is_long = 15
|
|
32177
|
+
*/
|
|
32178
|
+
positionIsLong: boolean;
|
|
32179
|
+
/**
|
|
32180
|
+
* Timestamp when the position was opened in UNIX millis
|
|
32181
|
+
*
|
|
32182
|
+
* @generated from protobuf field: sint64 position_opened_at = 16
|
|
32183
|
+
*/
|
|
32184
|
+
positionOpenedAt: bigint;
|
|
32185
|
+
/**
|
|
32186
|
+
* Entry price of the position associated with this trade
|
|
32187
|
+
*
|
|
32188
|
+
* @generated from protobuf field: string position_entry_price = 17
|
|
32189
|
+
*/
|
|
32190
|
+
positionEntryPrice: string;
|
|
32178
32191
|
}
|
|
32179
32192
|
/**
|
|
32180
32193
|
* @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
|
|
@@ -32212,9 +32225,9 @@ interface StreamTradesResponse {
|
|
|
32212
32225
|
/**
|
|
32213
32226
|
* New TC derivative market trade
|
|
32214
32227
|
*
|
|
32215
|
-
* @generated from protobuf field: injective_tc_derivatives_rpc.
|
|
32228
|
+
* @generated from protobuf field: injective_tc_derivatives_rpc.TCDerivativeTrade trade = 1
|
|
32216
32229
|
*/
|
|
32217
|
-
trade?:
|
|
32230
|
+
trade?: TCDerivativeTrade;
|
|
32218
32231
|
/**
|
|
32219
32232
|
* Executed trades update type
|
|
32220
32233
|
*
|
|
@@ -32397,9 +32410,9 @@ declare const StreamOrdersResponse = new StreamOrdersResponse$Type();
|
|
|
32397
32410
|
*/
|
|
32398
32411
|
declare const TradesResponse = new TradesResponse$Type();
|
|
32399
32412
|
/**
|
|
32400
|
-
* @generated MessageType for protobuf message injective_tc_derivatives_rpc.
|
|
32413
|
+
* @generated MessageType for protobuf message injective_tc_derivatives_rpc.TCDerivativeTrade
|
|
32401
32414
|
*/
|
|
32402
|
-
declare const
|
|
32415
|
+
declare const TCDerivativeTrade = new TCDerivativeTrade$Type();
|
|
32403
32416
|
/**
|
|
32404
32417
|
* @generated MessageType for protobuf message injective_tc_derivatives_rpc.PositionDelta
|
|
32405
32418
|
*/
|
|
@@ -32469,6 +32482,9 @@ interface TcDerivativeTradeHistory {
|
|
|
32469
32482
|
tradeDirection: TradeDirection;
|
|
32470
32483
|
executionSide: TradeExecutionSide;
|
|
32471
32484
|
tradeExecutionType: TradeExecutionType;
|
|
32485
|
+
positionIsLong: boolean;
|
|
32486
|
+
positionOpenedAt: number;
|
|
32487
|
+
positionEntryPrice: string;
|
|
32472
32488
|
}
|
|
32473
32489
|
interface TcDerivativePosition {
|
|
32474
32490
|
upnl: string;
|
|
@@ -32530,7 +32546,7 @@ interface TcDerivativesPositionsResponse {
|
|
|
32530
32546
|
}
|
|
32531
32547
|
type GrpcTcPositionDelta = PositionDelta$1;
|
|
32532
32548
|
type GrpcTcDerivativeLimitOrder = DerivativeLimitOrder$1;
|
|
32533
|
-
type GrpcTcDerivativeTradeHistory =
|
|
32549
|
+
type GrpcTcDerivativeTradeHistory = TCDerivativeTrade;
|
|
32534
32550
|
type GrpcTcDerivativePosition = DerivativePositionV2;
|
|
32535
32551
|
type GrpcTcDerivativeOrderHistory = TCDerivativeOrderHistoryType;
|
|
32536
32552
|
type GrpcTcDerivativeOrdersResponse = OrdersResponse;
|
|
@@ -32578,7 +32594,7 @@ interface ChronosLeaderboardResponse {
|
|
|
32578
32594
|
data: ChronosLeaderboard;
|
|
32579
32595
|
}
|
|
32580
32596
|
//#endregion
|
|
32581
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
32597
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.d.ts
|
|
32582
32598
|
/**
|
|
32583
32599
|
* @generated from protobuf message injective_portfolio_rpc.AccountPortfolioResponse
|
|
32584
32600
|
*/
|
|
@@ -33195,27 +33211,32 @@ declare class IndexerGrpcRFQApi extends BaseIndexerGrpcConsumer {
|
|
|
33195
33211
|
addresses?: string[];
|
|
33196
33212
|
}): Promise<SettlementsResponse>;
|
|
33197
33213
|
createConditionalOrder({
|
|
33198
|
-
|
|
33199
|
-
|
|
33200
|
-
marketId,
|
|
33201
|
-
quantity,
|
|
33202
|
-
direction,
|
|
33203
|
-
orderType,
|
|
33204
|
-
signature,
|
|
33205
|
-
worstPrice,
|
|
33206
|
-
triggerPrice,
|
|
33207
|
-
requestAddress
|
|
33214
|
+
order,
|
|
33215
|
+
signature
|
|
33208
33216
|
}: {
|
|
33209
|
-
|
|
33210
|
-
|
|
33211
|
-
|
|
33212
|
-
|
|
33213
|
-
|
|
33214
|
-
|
|
33217
|
+
order: {
|
|
33218
|
+
version: number;
|
|
33219
|
+
chainId: string;
|
|
33220
|
+
contractAddress: string;
|
|
33221
|
+
taker: string;
|
|
33222
|
+
epoch: bigint;
|
|
33223
|
+
rfqId: bigint;
|
|
33224
|
+
marketId: string;
|
|
33225
|
+
subaccountNonce: number;
|
|
33226
|
+
laneVersion: bigint;
|
|
33227
|
+
deadlineMs: bigint;
|
|
33228
|
+
direction: string;
|
|
33229
|
+
quantity: string;
|
|
33230
|
+
margin: string;
|
|
33231
|
+
worstPrice: string;
|
|
33232
|
+
minTotalFillQuantity: string;
|
|
33233
|
+
triggerType: string;
|
|
33234
|
+
triggerPrice: string;
|
|
33235
|
+
unfilledAction?: string;
|
|
33236
|
+
cid?: string;
|
|
33237
|
+
allowedRelayer?: string;
|
|
33238
|
+
};
|
|
33215
33239
|
signature: string;
|
|
33216
|
-
worstPrice: string;
|
|
33217
|
-
triggerPrice: string;
|
|
33218
|
-
requestAddress: string;
|
|
33219
33240
|
}): Promise<{
|
|
33220
33241
|
order: RFQConditionalOrder | undefined;
|
|
33221
33242
|
}>;
|
|
@@ -33226,17 +33247,6 @@ declare class IndexerGrpcRFQApi extends BaseIndexerGrpcConsumer {
|
|
|
33226
33247
|
marketId?: string;
|
|
33227
33248
|
requestAddress?: string;
|
|
33228
33249
|
}): Promise<RFQConditionalOrdersResponse>;
|
|
33229
|
-
cancelConditionalOrder({
|
|
33230
|
-
orderId,
|
|
33231
|
-
requestAddress,
|
|
33232
|
-
signature
|
|
33233
|
-
}: {
|
|
33234
|
-
orderId: string;
|
|
33235
|
-
requestAddress: string;
|
|
33236
|
-
signature: string;
|
|
33237
|
-
}): Promise<{
|
|
33238
|
-
order: RFQConditionalOrder | undefined;
|
|
33239
|
-
}>;
|
|
33240
33250
|
}
|
|
33241
33251
|
//#endregion
|
|
33242
33252
|
//#region src/client/indexer/grpc/IndexerGrpcMitoApi.d.ts
|
|
@@ -33498,7 +33508,7 @@ declare class IndexerGrpcMitoApi extends BaseIndexerGrpcConsumer {
|
|
|
33498
33508
|
}>;
|
|
33499
33509
|
}
|
|
33500
33510
|
//#endregion
|
|
33501
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
33511
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_meta_rpc_pb.d.ts
|
|
33502
33512
|
/**
|
|
33503
33513
|
* @generated from protobuf message injective_meta_rpc.PingResponse
|
|
33504
33514
|
*/
|
|
@@ -33710,7 +33720,7 @@ declare class IndexerGrpcOracleApi extends BaseIndexerGrpcConsumer {
|
|
|
33710
33720
|
}): Promise<PriceResponse>;
|
|
33711
33721
|
}
|
|
33712
33722
|
//#endregion
|
|
33713
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
33723
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.14/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_exchange_rpc_pb.d.ts
|
|
33714
33724
|
/**
|
|
33715
33725
|
* @generated from protobuf message injective_exchange_rpc.PrepareTxResponse
|
|
33716
33726
|
*/
|
|
@@ -34839,9 +34849,11 @@ declare class IndexerGrpcTcDerivativesApi extends BaseIndexerGrpcConsumer {
|
|
|
34839
34849
|
}): Promise<TcDerivativesOrdersHistoryResponse>;
|
|
34840
34850
|
fetchTradesHistory(params?: {
|
|
34841
34851
|
token?: string;
|
|
34852
|
+
sortBy?: string;
|
|
34842
34853
|
perPage?: number;
|
|
34843
34854
|
marketId?: string;
|
|
34844
34855
|
direction?: string;
|
|
34856
|
+
sortDirection?: string;
|
|
34845
34857
|
accountAddress?: string;
|
|
34846
34858
|
}): Promise<TcDerivativeTradesResponse>;
|
|
34847
34859
|
fetchPositions(params?: {
|