@injectivelabs/sdk-ts 1.19.16 → 1.19.18
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-Di7iOXpa.cjs → StreamManagerV2-C7d4Q1Sc.cjs} +75 -66
- 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.cjs +1 -1
- package/dist/cjs/core/modules.d.cts +1 -1
- package/dist/cjs/core/tx.cjs +1 -1
- package/dist/cjs/core/tx.d.cts +1 -1
- package/dist/cjs/cosmjs.cjs +1 -1
- package/dist/cjs/exports.cjs +1 -1
- package/dist/cjs/{index-mRr0558b.d.cts → index-BbSReEJu.d.cts} +146 -92
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/{tx-DHOQ_8xq.cjs → tx-jN0kY2rr.cjs} +22 -0
- package/dist/cjs/utils.d.cts +1 -1
- package/dist/esm/{StreamManagerV2-mZliXsfe.js → StreamManagerV2-Dzgh302M.js} +75 -66
- 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/modules.js +1 -1
- package/dist/esm/core/tx.d.ts +1 -1
- package/dist/esm/core/tx.js +1 -1
- package/dist/esm/cosmjs.js +1 -1
- package/dist/esm/exports.js +1 -1
- package/dist/esm/{index-Didif4w4.d.ts → index-BQCEjcu1.d.ts} +146 -92
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{tx-Cn44TJ5Z.js → tx-DayFdy4a.js} +22 -0
- package/dist/esm/utils.d.ts +1 -1
- package/package.json +6 -6
|
@@ -16489,6 +16489,7 @@ interface TxClientBroadcastOptions {
|
|
|
16489
16489
|
mode?: BroadcastMode$1;
|
|
16490
16490
|
timeout?: number;
|
|
16491
16491
|
txTimeout?: number;
|
|
16492
|
+
skipPoll?: boolean;
|
|
16492
16493
|
}
|
|
16493
16494
|
interface TxClientBroadcastResponse {
|
|
16494
16495
|
height: number;
|
|
@@ -21867,7 +21868,7 @@ declare const BECH32_ADDR_VAL_PREFIX = "injvaloper";
|
|
|
21867
21868
|
declare const BECH32_ADDR_CONS_PREFIX = "injvalcons";
|
|
21868
21869
|
declare const DEFAULT_DERIVATION_PATH = "m/44'/60'/0'/0/0";
|
|
21869
21870
|
//#endregion
|
|
21870
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
21871
|
+
//#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
|
|
21871
21872
|
/**
|
|
21872
21873
|
* @generated from protobuf message injective_accounts_rpc.PortfolioResponse
|
|
21873
21874
|
*/
|
|
@@ -22383,7 +22384,7 @@ declare const Reward = new Reward$Type();
|
|
|
22383
22384
|
*/
|
|
22384
22385
|
declare const Coin$7 = new Coin$Type();
|
|
22385
22386
|
//#endregion
|
|
22386
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
22387
|
+
//#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
|
|
22387
22388
|
/**
|
|
22388
22389
|
* @generated from protobuf message injective_explorer_rpc.GetAccountTxsResponse
|
|
22389
22390
|
*/
|
|
@@ -23817,7 +23818,7 @@ declare const fetchAllWithPagination: <T extends {
|
|
|
23817
23818
|
//#region src/utils/transaction.d.ts
|
|
23818
23819
|
declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise<string>;
|
|
23819
23820
|
//#endregion
|
|
23820
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
23821
|
+
//#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
|
|
23821
23822
|
/**
|
|
23822
23823
|
* @generated from protobuf message injective_rfq_rpc.StreamRequestResponse
|
|
23823
23824
|
*/
|
|
@@ -27065,7 +27066,7 @@ type GrpcSubaccountBalance = SubaccountBalance$2;
|
|
|
27065
27066
|
type GrpcSubaccountPortfolio = SubaccountPortfolio$1;
|
|
27066
27067
|
type GrpcSubaccountBalanceTransfer = SubaccountBalanceTransfer;
|
|
27067
27068
|
//#endregion
|
|
27068
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
27069
|
+
//#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
|
|
27069
27070
|
/**
|
|
27070
27071
|
* @generated from protobuf message injective_trading_rpc.ListTradingStrategiesResponse
|
|
27071
27072
|
*/
|
|
@@ -28317,7 +28318,7 @@ interface QuantityAndFees {
|
|
|
28317
28318
|
resultQuantity: string;
|
|
28318
28319
|
}
|
|
28319
28320
|
//#endregion
|
|
28320
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
28321
|
+
//#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
|
|
28321
28322
|
/**
|
|
28322
28323
|
* @generated from protobuf message injective_spot_exchange_rpc.MarketsResponse
|
|
28323
28324
|
*/
|
|
@@ -29473,7 +29474,7 @@ type GrpcSpotLimitOrder = SpotLimitOrder$1;
|
|
|
29473
29474
|
type GrpcSpotOrderHistory = SpotOrderHistory$1;
|
|
29474
29475
|
type GrpcAtomicSwap = AtomicSwap$1;
|
|
29475
29476
|
//#endregion
|
|
29476
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
29477
|
+
//#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
|
|
29477
29478
|
/**
|
|
29478
29479
|
* @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712AutoSignRequestType
|
|
29479
29480
|
*/
|
|
@@ -30570,7 +30571,7 @@ type GrpcRFQGwPrepareEip712Response = PrepareEip712Response$1;
|
|
|
30570
30571
|
type GrpcRFQGwPrepareEip712AutoSignRequest = RFQGwPrepareEip712AutoSignRequestType$1;
|
|
30571
30572
|
type GrpcRFQGwPrepareEip712AutoSignResponse = PrepareEip712AutoSignResponse;
|
|
30572
30573
|
//#endregion
|
|
30573
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
30574
|
+
//#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
|
|
30574
30575
|
/**
|
|
30575
30576
|
* @generated from protobuf message injective_oracle_rpc.OracleListResponse
|
|
30576
30577
|
*/
|
|
@@ -30732,7 +30733,7 @@ declare const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$
|
|
|
30732
30733
|
type GrpcOracle = Oracle$1;
|
|
30733
30734
|
interface Oracle extends GrpcOracle {}
|
|
30734
30735
|
//#endregion
|
|
30735
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
30736
|
+
//#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
|
|
30736
30737
|
/**
|
|
30737
30738
|
* @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse
|
|
30738
30739
|
*/
|
|
@@ -31229,7 +31230,7 @@ type GrpcAccountAuctionV2 = AccountAuctionV2$1;
|
|
|
31229
31230
|
type GrpcAuctionContract = AuctionContract$1;
|
|
31230
31231
|
type StreamBidsResponse = StreamBidsResponse$1;
|
|
31231
31232
|
//#endregion
|
|
31232
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31233
|
+
//#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
|
|
31233
31234
|
/**
|
|
31234
31235
|
* @generated from protobuf message injective_archiver_rpc.BalanceResponse
|
|
31235
31236
|
*/
|
|
@@ -31751,7 +31752,7 @@ type GrpcHistoricalVolumes = HistoricalVolumes$1;
|
|
|
31751
31752
|
type GrpcPnlLeaderboard = PnlLeaderboardResponse | PnlLeaderboardFixedResolutionResponse;
|
|
31752
31753
|
type GrpcVolLeaderboard = VolLeaderboardResponse | VolLeaderboardFixedResolutionResponse;
|
|
31753
31754
|
//#endregion
|
|
31754
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31755
|
+
//#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
|
|
31755
31756
|
/**
|
|
31756
31757
|
* @generated from protobuf message injective_referral_rpc.GetReferrerDetailsResponse
|
|
31757
31758
|
*/
|
|
@@ -31882,7 +31883,7 @@ interface ReferralDetails {
|
|
|
31882
31883
|
invitees: ReferralInvitee[];
|
|
31883
31884
|
}
|
|
31884
31885
|
//#endregion
|
|
31885
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31886
|
+
//#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
|
|
31886
31887
|
/**
|
|
31887
31888
|
* @generated from protobuf message injective_campaign_rpc.RankingResponse
|
|
31888
31889
|
*/
|
|
@@ -32719,7 +32720,7 @@ interface AllSpotMarketSummaryResponse {
|
|
|
32719
32720
|
data: AllChronosSpotMarketSummary[];
|
|
32720
32721
|
}
|
|
32721
32722
|
//#endregion
|
|
32722
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
32723
|
+
//#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
|
|
32723
32724
|
/**
|
|
32724
32725
|
* @generated from protobuf message injective_megavault_rpc.GetVaultResponse
|
|
32725
32726
|
*/
|
|
@@ -33838,7 +33839,7 @@ interface IncentivesCampaign {
|
|
|
33838
33839
|
subaccountIdSuffix: string;
|
|
33839
33840
|
}
|
|
33840
33841
|
//#endregion
|
|
33841
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
33842
|
+
//#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
|
|
33842
33843
|
/**
|
|
33843
33844
|
* @generated from protobuf message injective_insurance_rpc.FundsResponse
|
|
33844
33845
|
*/
|
|
@@ -34100,7 +34101,7 @@ interface InsuranceFundCreateParams {
|
|
|
34100
34101
|
type GrpcIndexerInsuranceFund = InsuranceFund$2;
|
|
34101
34102
|
type GrpcIndexerRedemptionSchedule = RedemptionSchedule;
|
|
34102
34103
|
//#endregion
|
|
34103
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
34104
|
+
//#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
|
|
34104
34105
|
/**
|
|
34105
34106
|
* @generated from protobuf message injective_derivative_exchange_rpc.MarketsResponse
|
|
34106
34107
|
*/
|
|
@@ -34962,6 +34963,12 @@ interface DerivativeLimitOrder$2 {
|
|
|
34962
34963
|
* @generated from protobuf field: string cid = 22
|
|
34963
34964
|
*/
|
|
34964
34965
|
cid: string;
|
|
34966
|
+
/**
|
|
34967
|
+
* Account address that owns the subaccount which placed this order
|
|
34968
|
+
*
|
|
34969
|
+
* @generated from protobuf field: string account_address = 23
|
|
34970
|
+
*/
|
|
34971
|
+
accountAddress: string;
|
|
34965
34972
|
}
|
|
34966
34973
|
/**
|
|
34967
34974
|
* @generated from protobuf message injective_derivative_exchange_rpc.PositionsResponse
|
|
@@ -35307,6 +35314,12 @@ interface StreamPositionsV2Response {
|
|
|
35307
35314
|
* @generated from protobuf field: sint64 timestamp = 2
|
|
35308
35315
|
*/
|
|
35309
35316
|
timestamp: bigint;
|
|
35317
|
+
/**
|
|
35318
|
+
* Position update type
|
|
35319
|
+
*
|
|
35320
|
+
* @generated from protobuf field: string operation_type = 3
|
|
35321
|
+
*/
|
|
35322
|
+
operationType: string;
|
|
35310
35323
|
}
|
|
35311
35324
|
/**
|
|
35312
35325
|
* @generated from protobuf message injective_derivative_exchange_rpc.StreamOrdersResponse
|
|
@@ -35842,23 +35855,23 @@ declare const StreamOrdersHistoryResponse$1 = new StreamOrdersHistoryResponse$Ty
|
|
|
35842
35855
|
//#endregion
|
|
35843
35856
|
//#region src/client/indexer/types/derivatives.d.ts
|
|
35844
35857
|
interface PositionDelta {
|
|
35845
|
-
tradeDirection: TradeDirection;
|
|
35846
35858
|
executionPrice: string;
|
|
35847
|
-
executionQuantity: string;
|
|
35848
35859
|
executionMargin: string;
|
|
35860
|
+
executionQuantity: string;
|
|
35861
|
+
tradeDirection: TradeDirection;
|
|
35849
35862
|
}
|
|
35850
35863
|
interface Position {
|
|
35864
|
+
margin: string;
|
|
35865
|
+
ticker: string;
|
|
35851
35866
|
marketId: string;
|
|
35852
|
-
subaccountId: string;
|
|
35853
|
-
direction: TradeDirection;
|
|
35854
35867
|
quantity: string;
|
|
35868
|
+
markPrice: string;
|
|
35869
|
+
updatedAt: number;
|
|
35855
35870
|
entryPrice: string;
|
|
35856
|
-
|
|
35871
|
+
subaccountId: string;
|
|
35857
35872
|
liquidationPrice: string;
|
|
35858
|
-
|
|
35859
|
-
ticker: string;
|
|
35873
|
+
direction: TradeDirection;
|
|
35860
35874
|
aggregateReduceOnlyQuantity: string;
|
|
35861
|
-
updatedAt: number;
|
|
35862
35875
|
}
|
|
35863
35876
|
interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
|
|
35864
35877
|
upnl: string;
|
|
@@ -35869,155 +35882,156 @@ interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
|
|
|
35869
35882
|
effectiveCumulativeFundingEntry: string;
|
|
35870
35883
|
}
|
|
35871
35884
|
interface PerpetualMarketInfo {
|
|
35872
|
-
|
|
35885
|
+
fundingInterval: number;
|
|
35873
35886
|
hourlyInterestRate: string;
|
|
35887
|
+
hourlyFundingRateCap: string;
|
|
35874
35888
|
nextFundingTimestamp: number;
|
|
35875
|
-
fundingInterval: number;
|
|
35876
35889
|
}
|
|
35877
35890
|
interface PerpetualMarketFunding {
|
|
35878
|
-
cumulativeFunding: string;
|
|
35879
|
-
cumulativePrice: string;
|
|
35880
35891
|
lastTimestamp: number;
|
|
35892
|
+
cumulativePrice: string;
|
|
35893
|
+
cumulativeFunding: string;
|
|
35881
35894
|
}
|
|
35882
35895
|
interface ExpiryFuturesMarketInfo {
|
|
35883
|
-
expirationTimestamp: number;
|
|
35884
35896
|
settlementPrice: string;
|
|
35897
|
+
expirationTimestamp: number;
|
|
35885
35898
|
}
|
|
35886
35899
|
interface BaseDerivativeMarket {
|
|
35887
|
-
oracleType: string;
|
|
35888
|
-
marketId: string;
|
|
35889
|
-
marketStatus: string;
|
|
35890
35900
|
ticker: string;
|
|
35901
|
+
marketId: string;
|
|
35902
|
+
oracleType: string;
|
|
35891
35903
|
quoteDenom: string;
|
|
35904
|
+
minNotional: number;
|
|
35905
|
+
marketStatus: string;
|
|
35892
35906
|
makerFeeRate: string;
|
|
35893
|
-
quoteToken: TokenMeta | undefined;
|
|
35894
35907
|
takerFeeRate: string;
|
|
35895
|
-
serviceProviderFee: string;
|
|
35896
35908
|
minPriceTickSize: number;
|
|
35909
|
+
serviceProviderFee: string;
|
|
35897
35910
|
minQuantityTickSize: number;
|
|
35898
|
-
|
|
35911
|
+
quoteToken: TokenMeta | undefined;
|
|
35899
35912
|
}
|
|
35900
35913
|
interface PerpetualMarket extends BaseDerivativeMarket {
|
|
35901
|
-
reduceMarginRatio: string;
|
|
35902
|
-
initialMarginRatio: string;
|
|
35903
|
-
maintenanceMarginRatio: string;
|
|
35904
|
-
isPerpetual: boolean;
|
|
35905
35914
|
oracleBase: string;
|
|
35906
35915
|
oracleQuote: string;
|
|
35916
|
+
isPerpetual: boolean;
|
|
35917
|
+
reduceMarginRatio: string;
|
|
35907
35918
|
oracleScaleFactor: number;
|
|
35919
|
+
initialMarginRatio: string;
|
|
35920
|
+
maintenanceMarginRatio: string;
|
|
35908
35921
|
perpetualMarketInfo?: PerpetualMarketInfo;
|
|
35909
35922
|
perpetualMarketFunding?: PerpetualMarketFunding;
|
|
35910
35923
|
}
|
|
35911
35924
|
interface ExpiryFuturesMarket extends BaseDerivativeMarket {
|
|
35912
|
-
reduceMarginRatio: string;
|
|
35913
|
-
initialMarginRatio: string;
|
|
35914
|
-
maintenanceMarginRatio: string;
|
|
35915
|
-
isPerpetual: boolean;
|
|
35916
35925
|
oracleBase: string;
|
|
35917
35926
|
oracleQuote: string;
|
|
35927
|
+
isPerpetual: boolean;
|
|
35928
|
+
reduceMarginRatio: string;
|
|
35918
35929
|
oracleScaleFactor: number;
|
|
35930
|
+
initialMarginRatio: string;
|
|
35931
|
+
maintenanceMarginRatio: string;
|
|
35919
35932
|
expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo;
|
|
35920
35933
|
}
|
|
35921
35934
|
interface BinaryOptionsMarket extends Omit<BaseDerivativeMarket, 'minPriceTickSize' | 'minQuantityTickSize'> {
|
|
35935
|
+
minNotional: number;
|
|
35922
35936
|
oracleSymbol: string;
|
|
35923
35937
|
oracleProvider: string;
|
|
35938
|
+
settlementPrice: string;
|
|
35939
|
+
minPriceTickSize: number;
|
|
35924
35940
|
oracleScaleFactor: number;
|
|
35941
|
+
serviceProviderFee: string;
|
|
35925
35942
|
expirationTimestamp: number;
|
|
35926
35943
|
settlementTimestamp: number;
|
|
35927
|
-
serviceProviderFee: string;
|
|
35928
|
-
minPriceTickSize: number;
|
|
35929
35944
|
minQuantityTickSize: number;
|
|
35930
|
-
minNotional: number;
|
|
35931
|
-
settlementPrice: string;
|
|
35932
35945
|
}
|
|
35933
35946
|
type DerivativeMarket = PerpetualMarket | ExpiryFuturesMarket | BinaryOptionsMarket;
|
|
35934
35947
|
type DerivativeMarketWithoutBinaryOptions = PerpetualMarket | ExpiryFuturesMarket;
|
|
35935
35948
|
interface DerivativeLimitOrder {
|
|
35936
|
-
orderHash: string;
|
|
35937
|
-
orderSide: OrderSide;
|
|
35938
|
-
marketId: string;
|
|
35939
35949
|
cid: string;
|
|
35940
|
-
subaccountId: string;
|
|
35941
|
-
isReduceOnly: boolean;
|
|
35942
|
-
margin: string;
|
|
35943
35950
|
price: string;
|
|
35951
|
+
margin: string;
|
|
35952
|
+
marketId: string;
|
|
35944
35953
|
quantity: string;
|
|
35945
|
-
|
|
35946
|
-
triggerPrice: string;
|
|
35947
|
-
feeRecipient: string;
|
|
35954
|
+
orderHash: string;
|
|
35948
35955
|
state: OrderState;
|
|
35949
35956
|
createdAt: number;
|
|
35950
35957
|
updatedAt: number;
|
|
35951
|
-
orderNumber: number;
|
|
35952
35958
|
orderType: string;
|
|
35953
|
-
isConditional: boolean;
|
|
35954
35959
|
triggerAt: number;
|
|
35955
|
-
|
|
35960
|
+
orderNumber: number;
|
|
35961
|
+
orderSide: OrderSide;
|
|
35962
|
+
subaccountId: string;
|
|
35963
|
+
triggerPrice: string;
|
|
35964
|
+
feeRecipient: string;
|
|
35965
|
+
isReduceOnly: boolean;
|
|
35956
35966
|
executionType: string;
|
|
35967
|
+
isConditional: boolean;
|
|
35968
|
+
accountAddress: string;
|
|
35969
|
+
placedOrderHash: string;
|
|
35970
|
+
unfilledQuantity: string;
|
|
35957
35971
|
}
|
|
35958
35972
|
interface DerivativeOrderHistory {
|
|
35959
|
-
orderHash: string;
|
|
35960
|
-
marketId: string;
|
|
35961
35973
|
cid: string;
|
|
35962
|
-
isActive: boolean;
|
|
35963
|
-
subaccountId: string;
|
|
35964
|
-
executionType: string;
|
|
35965
|
-
orderType: string;
|
|
35966
35974
|
price: string;
|
|
35967
|
-
triggerPrice: string;
|
|
35968
|
-
quantity: string;
|
|
35969
|
-
filledQuantity: string;
|
|
35970
35975
|
state: string;
|
|
35976
|
+
margin: string;
|
|
35977
|
+
marketId: string;
|
|
35978
|
+
quantity: string;
|
|
35979
|
+
orderHash: string;
|
|
35980
|
+
isActive: boolean;
|
|
35981
|
+
orderType: string;
|
|
35971
35982
|
createdAt: number;
|
|
35972
35983
|
updatedAt: number;
|
|
35973
|
-
isReduceOnly: boolean;
|
|
35974
35984
|
direction: string;
|
|
35975
|
-
isConditional: boolean;
|
|
35976
35985
|
triggerAt: number;
|
|
35986
|
+
subaccountId: string;
|
|
35987
|
+
triggerPrice: string;
|
|
35988
|
+
executionType: string;
|
|
35989
|
+
isReduceOnly: boolean;
|
|
35990
|
+
filledQuantity: string;
|
|
35991
|
+
isConditional: boolean;
|
|
35977
35992
|
placedOrderHash: string;
|
|
35978
|
-
margin: string;
|
|
35979
35993
|
}
|
|
35980
35994
|
interface DerivativeTrade extends PositionDelta {
|
|
35981
|
-
orderHash: string;
|
|
35982
|
-
subaccountId: string;
|
|
35983
|
-
tradeId: string;
|
|
35984
35995
|
cid: string;
|
|
35996
|
+
fee: string;
|
|
35997
|
+
pnl: string;
|
|
35998
|
+
payout: string;
|
|
35999
|
+
tradeId: string;
|
|
35985
36000
|
marketId: string;
|
|
36001
|
+
orderHash: string;
|
|
35986
36002
|
executedAt: number;
|
|
35987
|
-
|
|
35988
|
-
tradeDirection: TradeDirection;
|
|
35989
|
-
executionSide: TradeExecutionSide;
|
|
35990
|
-
fee: string;
|
|
36003
|
+
subaccountId: string;
|
|
35991
36004
|
feeRecipient: string;
|
|
35992
36005
|
isLiquidation: boolean;
|
|
35993
|
-
|
|
35994
|
-
|
|
36006
|
+
tradeDirection: TradeDirection;
|
|
36007
|
+
executionSide: TradeExecutionSide;
|
|
36008
|
+
tradeExecutionType: TradeExecutionType;
|
|
35995
36009
|
}
|
|
35996
36010
|
interface DerivativeLimitOrderParams {
|
|
35997
|
-
orderType: GrpcOrderType;
|
|
35998
|
-
triggerPrice?: string;
|
|
35999
|
-
feeRecipient: string;
|
|
36000
36011
|
price: string;
|
|
36001
36012
|
margin: string;
|
|
36002
36013
|
quantity: string;
|
|
36014
|
+
feeRecipient: string;
|
|
36015
|
+
triggerPrice?: string;
|
|
36016
|
+
orderType: GrpcOrderType;
|
|
36003
36017
|
}
|
|
36004
36018
|
interface DerivativeOrderCancelParams {
|
|
36005
36019
|
orderHash: string;
|
|
36006
36020
|
}
|
|
36007
36021
|
interface BatchDerivativeOrderCancelParams {
|
|
36008
36022
|
marketId: string;
|
|
36009
|
-
subaccountId: string;
|
|
36010
36023
|
orderHash: string;
|
|
36024
|
+
subaccountId: string;
|
|
36011
36025
|
}
|
|
36012
36026
|
interface FundingPayment {
|
|
36013
|
-
marketId: string;
|
|
36014
|
-
subaccountId: string;
|
|
36015
36027
|
amount: string;
|
|
36028
|
+
marketId: string;
|
|
36016
36029
|
timestamp: number;
|
|
36030
|
+
subaccountId: string;
|
|
36017
36031
|
}
|
|
36018
36032
|
interface FundingRate {
|
|
36019
|
-
marketId: string;
|
|
36020
36033
|
rate: string;
|
|
36034
|
+
marketId: string;
|
|
36021
36035
|
timestamp: number;
|
|
36022
36036
|
}
|
|
36023
36037
|
type GrpcFundingRate = FundingRate$1;
|
|
@@ -36190,7 +36204,7 @@ interface BankTransferFromExplorerApiResponse {
|
|
|
36190
36204
|
block_timestamp: string;
|
|
36191
36205
|
}
|
|
36192
36206
|
//#endregion
|
|
36193
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
36207
|
+
//#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
|
|
36194
36208
|
/**
|
|
36195
36209
|
* @generated from protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
|
|
36196
36210
|
*/
|
|
@@ -36340,6 +36354,12 @@ interface TCDerivativeOrderHistoryType {
|
|
|
36340
36354
|
* @generated from protobuf field: string cid = 21
|
|
36341
36355
|
*/
|
|
36342
36356
|
cid: string;
|
|
36357
|
+
/**
|
|
36358
|
+
* Account address that owns the subaccount which placed this order
|
|
36359
|
+
*
|
|
36360
|
+
* @generated from protobuf field: string account_address = 22
|
|
36361
|
+
*/
|
|
36362
|
+
accountAddress: string;
|
|
36343
36363
|
}
|
|
36344
36364
|
/**
|
|
36345
36365
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersHistoryResponse
|
|
@@ -36517,6 +36537,12 @@ interface DerivativeLimitOrder$1 {
|
|
|
36517
36537
|
* @generated from protobuf field: string cid = 22
|
|
36518
36538
|
*/
|
|
36519
36539
|
cid: string;
|
|
36540
|
+
/**
|
|
36541
|
+
* Account address that owns the subaccount which placed this order
|
|
36542
|
+
*
|
|
36543
|
+
* @generated from protobuf field: string account_address = 23
|
|
36544
|
+
*/
|
|
36545
|
+
accountAddress: string;
|
|
36520
36546
|
}
|
|
36521
36547
|
/**
|
|
36522
36548
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersResponse
|
|
@@ -36672,6 +36698,19 @@ interface TCDerivativeTrade {
|
|
|
36672
36698
|
* @generated from protobuf field: bool is_position_closed = 18
|
|
36673
36699
|
*/
|
|
36674
36700
|
isPositionClosed: boolean;
|
|
36701
|
+
/**
|
|
36702
|
+
* RFQ maker address for the synthetic trade (set only on synthetic trades
|
|
36703
|
+
* coming from an RFQ settlement)
|
|
36704
|
+
*
|
|
36705
|
+
* @generated from protobuf field: string rfq_maker = 19
|
|
36706
|
+
*/
|
|
36707
|
+
rfqMaker: string;
|
|
36708
|
+
/**
|
|
36709
|
+
* Account address that owns the subaccount which executed this trade
|
|
36710
|
+
*
|
|
36711
|
+
* @generated from protobuf field: string account_address = 20
|
|
36712
|
+
*/
|
|
36713
|
+
accountAddress: string;
|
|
36675
36714
|
}
|
|
36676
36715
|
/**
|
|
36677
36716
|
* @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
|
|
@@ -36864,6 +36903,12 @@ interface StreamPositionsResponse {
|
|
|
36864
36903
|
* @generated from protobuf field: sint64 timestamp = 2
|
|
36865
36904
|
*/
|
|
36866
36905
|
timestamp: bigint;
|
|
36906
|
+
/**
|
|
36907
|
+
* Position update type
|
|
36908
|
+
*
|
|
36909
|
+
* @generated from protobuf field: string operation_type = 3
|
|
36910
|
+
*/
|
|
36911
|
+
operationType: string;
|
|
36867
36912
|
}
|
|
36868
36913
|
/**
|
|
36869
36914
|
* @generated MessageType for protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
|
|
@@ -36945,6 +36990,7 @@ interface TcDerivativeOrderHistory {
|
|
|
36945
36990
|
isReduceOnly: boolean;
|
|
36946
36991
|
filledQuantity: string;
|
|
36947
36992
|
isConditional: boolean;
|
|
36993
|
+
accountAddress: string;
|
|
36948
36994
|
placedOrderHash: string;
|
|
36949
36995
|
direction: TradeDirection;
|
|
36950
36996
|
}
|
|
@@ -36955,11 +37001,13 @@ interface TcDerivativeTradeHistory {
|
|
|
36955
37001
|
payout: string;
|
|
36956
37002
|
tradeId: string;
|
|
36957
37003
|
marketId: string;
|
|
37004
|
+
rfqMaker: string;
|
|
36958
37005
|
orderHash: string;
|
|
36959
37006
|
executedAt: number;
|
|
36960
37007
|
subaccountId: string;
|
|
36961
37008
|
feeRecipient: string;
|
|
36962
37009
|
isLiquidation: boolean;
|
|
37010
|
+
accountAddress: string;
|
|
36963
37011
|
executionPrice: string;
|
|
36964
37012
|
positionIsLong: boolean;
|
|
36965
37013
|
executionMargin: string;
|
|
@@ -37011,6 +37059,7 @@ interface TcDerivativeLimitOrder {
|
|
|
37011
37059
|
isConditional: boolean;
|
|
37012
37060
|
placedOrderHash: string;
|
|
37013
37061
|
unfilledQuantity: string;
|
|
37062
|
+
accountAddress: string;
|
|
37014
37063
|
}
|
|
37015
37064
|
interface TcDerivativesOrdersHistoryResponse {
|
|
37016
37065
|
next: string[];
|
|
@@ -37244,7 +37293,7 @@ interface ChronosLeaderboardResponse {
|
|
|
37244
37293
|
data: ChronosLeaderboard;
|
|
37245
37294
|
}
|
|
37246
37295
|
//#endregion
|
|
37247
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
37296
|
+
//#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
|
|
37248
37297
|
/**
|
|
37249
37298
|
* @generated from protobuf message injective_portfolio_rpc.AccountPortfolioResponse
|
|
37250
37299
|
*/
|
|
@@ -38100,7 +38149,7 @@ declare class IndexerGrpcMitoApi extends BaseIndexerGrpcConsumer {
|
|
|
38100
38149
|
}>;
|
|
38101
38150
|
}
|
|
38102
38151
|
//#endregion
|
|
38103
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
38152
|
+
//#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
|
|
38104
38153
|
/**
|
|
38105
38154
|
* @generated from protobuf message injective_meta_rpc.PingResponse
|
|
38106
38155
|
*/
|
|
@@ -38485,7 +38534,7 @@ declare class IndexerGrpcOracleApi extends BaseIndexerGrpcConsumer {
|
|
|
38485
38534
|
}): Promise<PriceResponse>;
|
|
38486
38535
|
}
|
|
38487
38536
|
//#endregion
|
|
38488
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
38537
|
+
//#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
|
|
38489
38538
|
/**
|
|
38490
38539
|
* @generated from protobuf message injective_exchange_rpc.PrepareTxResponse
|
|
38491
38540
|
*/
|
|
@@ -39615,10 +39664,11 @@ declare class IndexerGrpcTcDerivativesApi extends BaseIndexerGrpcConsumer {
|
|
|
39615
39664
|
fetchTradesHistory(params?: {
|
|
39616
39665
|
token?: string;
|
|
39617
39666
|
sortBy?: string;
|
|
39618
|
-
withPnl?: boolean;
|
|
39619
39667
|
endTime?: number;
|
|
39620
39668
|
perPage?: number;
|
|
39669
|
+
withPnl?: boolean;
|
|
39621
39670
|
marketId?: string;
|
|
39671
|
+
rfqMaker?: string;
|
|
39622
39672
|
startTime?: number;
|
|
39623
39673
|
direction?: string;
|
|
39624
39674
|
sortDirection?: string;
|
|
@@ -40614,6 +40664,7 @@ declare class IndexerDerivativeStreamTransformer {
|
|
|
40614
40664
|
static positionV2StreamCallback: (response: StreamPositionsV2Response) => {
|
|
40615
40665
|
position: PositionV2 | undefined;
|
|
40616
40666
|
timestamp: bigint;
|
|
40667
|
+
operationType: string;
|
|
40617
40668
|
};
|
|
40618
40669
|
}
|
|
40619
40670
|
//#endregion
|
|
@@ -40674,6 +40725,7 @@ declare class IndexerTcDerivativesStreamTransformer {
|
|
|
40674
40725
|
};
|
|
40675
40726
|
static positionsStreamCallback: (response: StreamPositionsResponse) => {
|
|
40676
40727
|
timestamp: number;
|
|
40728
|
+
operationType: string;
|
|
40677
40729
|
position: TcDerivativePosition | undefined;
|
|
40678
40730
|
};
|
|
40679
40731
|
static ordersStreamCallback: (response: StreamOrdersResponse) => {
|
|
@@ -42221,10 +42273,12 @@ declare class IndexerGrpcTcDerivativesStreamV2 {
|
|
|
42221
42273
|
}): StreamSubscription;
|
|
42222
42274
|
streamTrades({
|
|
42223
42275
|
marketId,
|
|
42224
|
-
|
|
42225
|
-
callback
|
|
42276
|
+
rfqMaker,
|
|
42277
|
+
callback,
|
|
42278
|
+
accountAddress
|
|
42226
42279
|
}: {
|
|
42227
42280
|
marketId?: string;
|
|
42281
|
+
rfqMaker?: string;
|
|
42228
42282
|
accountAddress?: string;
|
|
42229
42283
|
callback: TcDerivativeTradesStreamCallbackV2;
|
|
42230
42284
|
}): StreamSubscription;
|