@injectivelabs/sdk-ts 1.20.26 → 1.20.28
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/{BaseGrpcConsumer-me9h4XPt.d.cts → BaseGrpcConsumer-D-Ocoffv.d.cts} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-tA6IVCia.cjs → MsgSetDenomMetadata-DNaPq8w6.cjs} +477 -49
- package/dist/cjs/SocialTradingGrpcApi-Cm79vDb5.cjs +158 -0
- package/dist/cjs/{StreamManagerV2-DqJ4fWu_.cjs → StreamManagerV2-B6TX-Isx.cjs} +4 -0
- package/dist/cjs/client/abacus.d.cts +5 -5
- package/dist/cjs/client/chain.d.cts +15 -14
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +16 -15
- package/dist/cjs/client/olp.d.cts +5 -5
- package/dist/cjs/client/platformServices.cjs +8 -0
- package/dist/cjs/client/platformServices.d.cts +6 -0
- package/dist/cjs/client/tcAbacus.d.cts +5 -5
- package/dist/cjs/client/wasm.d.cts +4 -4
- package/dist/cjs/core/accounts.d.cts +15 -14
- package/dist/cjs/core/modules.cjs +8 -2
- package/dist/cjs/core/modules.d.cts +16 -15
- package/dist/cjs/core/tx.cjs +1 -1
- package/dist/cjs/core/tx.d.cts +15 -14
- package/dist/cjs/cosmjs.cjs +2 -2
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.cjs +2 -2
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-kR_oqvag.d.cts → index-B674D7pD.d.cts} +4 -4
- package/dist/cjs/{index-q5FdLZwj.d.cts → index-BSIx102w.d.cts} +10840 -10249
- package/dist/cjs/{index-J9cwHdjs.d.cts → index-BURuy3tW.d.cts} +1 -1
- package/dist/cjs/{index-BORRXTW4.d.cts → index-BZDon-tA.d.cts} +2 -2
- package/dist/cjs/{index-pjxJkZI4.d.cts → index-Bnw2tGrY.d.cts} +1 -1
- package/dist/cjs/{index-CFiDirCt.d.cts → index-C3kDJwt_.d.cts} +1 -1
- package/dist/cjs/{index-CEkvXgP3.d.cts → index-C9A-6Kpk.d.cts} +6 -6
- package/dist/cjs/{index-Dnv1vSBK.d.cts → index-Cbl-NhtN.d.cts} +1 -1
- package/dist/cjs/index-yXqxYazb.d.cts +305 -0
- package/dist/cjs/index.cjs +12 -4
- package/dist/cjs/index.d.cts +16 -15
- package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
- package/dist/cjs/service.cjs +1 -1
- package/dist/cjs/service.d.cts +4 -4
- package/dist/cjs/{tx_pb-wznwSZgU.d.cts → tx_pb-BzYfNmn2.d.cts} +4 -4
- package/dist/cjs/types/light.d.cts +1 -1
- package/dist/cjs/types.d.cts +3 -3
- package/dist/cjs/utils/address.d.cts +1 -1
- package/dist/cjs/utils/constants.d.cts +1 -1
- package/dist/cjs/utils/encoding.d.cts +1 -1
- package/dist/cjs/utils/light.d.cts +4 -4
- package/dist/cjs/utils.d.cts +15 -14
- package/dist/esm/{AbacusGrpcApi-DVO7c0mB.js → AbacusGrpcApi-yHhbSjrF.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-Ci8sUY5h.js → BaseGrpcConsumer-6MH_z0ci.js} +3 -3
- package/dist/esm/{BaseGrpcConsumer-BRgferJ5.d.ts → BaseGrpcConsumer-BEeBd9vk.d.ts} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-MGB306RP.js → BaseIndexerGrpcConsumer-CPx95BY0.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-S5nJzebX.js → ChainGrpcExchangeApi-CGspD5dV.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-D_FQwKrf.js → ChainRestTendermintApi-C3N6b45h.js} +5 -5
- package/dist/esm/{DirectEthSecp256k1Wallet-D-KJbto6.js → DirectEthSecp256k1Wallet-CpbdozpK.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-ljDnPI2p.js → ExecArgNeptuneWithdraw-DmYVr5B4.js} +4 -4
- package/dist/esm/{IndexerGrpcWeb3GwApi-BWuDmOjX.js → IndexerGrpcWeb3GwApi-ER1GujRh.js} +4 -4
- package/dist/esm/{MsgBase-CishJWMN.js → MsgBase-DYaDzmLm.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-DGdnd-QI.js → MsgSetDenomMetadata-OfZ7D1U-.js} +449 -58
- package/dist/esm/{OLPGrpcApi-BSFkBk80.js → OLPGrpcApi-Kp0vZ0Pu.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-C47sauu5.js → QueryTradingStrategyContractTotalStrategies-Bl44Zu8U.js} +4 -4
- package/dist/esm/SocialTradingGrpcApi-Gvt1eym5.js +151 -0
- package/dist/esm/{StreamManagerV2-CxVdNAtc.js → StreamManagerV2-CFg9pADw.js} +13 -9
- package/dist/esm/{TcAbacusGrpcApi-k3COziPh.js → TcAbacusGrpcApi-D4HZcXCV.js} +2 -2
- package/dist/esm/{accounts-3rypojw1.js → accounts-D7g8pgWl.js} +6 -6
- package/dist/esm/{chain-CQHfHLCM.js → chain-ChIDr_pP.js} +6 -6
- package/dist/esm/client/abacus.d.ts +5 -5
- package/dist/esm/client/abacus.js +6 -6
- package/dist/esm/client/chain.d.ts +15 -14
- package/dist/esm/client/chain.js +14 -14
- package/dist/esm/client/indexer.d.ts +16 -15
- package/dist/esm/client/indexer.js +15 -15
- package/dist/esm/client/olp.d.ts +5 -5
- package/dist/esm/client/olp.js +7 -7
- package/dist/esm/client/platformServices.d.ts +6 -0
- package/dist/esm/client/platformServices.js +8 -0
- package/dist/esm/client/tcAbacus.d.ts +5 -5
- package/dist/esm/client/tcAbacus.js +6 -6
- package/dist/esm/client/wasm.d.ts +4 -4
- package/dist/esm/client/wasm.js +17 -17
- package/dist/esm/core/accounts.d.ts +15 -14
- package/dist/esm/core/accounts.js +9 -9
- package/dist/esm/core/modules.d.ts +16 -15
- package/dist/esm/core/modules.js +21 -21
- package/dist/esm/core/tx.d.ts +15 -14
- package/dist/esm/core/tx.js +17 -17
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +18 -18
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +18 -18
- package/dist/esm/{index-BqmPYCxy.d.ts → index-B0keqriy.d.ts} +6 -6
- package/dist/esm/{index-o-N-zxKg.d.ts → index-BX0RYyak.d.ts} +2 -2
- package/dist/esm/{index-DjJS2GlY.d.ts → index-CUuBRId3.d.ts} +1 -1
- package/dist/esm/{index-VDXk-hTA.d.ts → index-Cp-Ayqjs.d.ts} +1 -1
- package/dist/esm/{index-Bbgn_zqu.d.ts → index-D8HsSSPt.d.ts} +4 -4
- package/dist/esm/{index-EwPuu2Cr.d.ts → index-DYBPtGG-.d.ts} +1 -1
- package/dist/esm/{index-CGReRoZv.d.ts → index-D_iauVcE.d.ts} +10840 -10249
- package/dist/esm/{index-DmQ5vaqU.d.ts → index-Do1evAZC.d.ts} +1 -1
- package/dist/esm/index-tsEWBsAJ.d.ts +305 -0
- package/dist/esm/index.d.ts +16 -15
- package/dist/esm/index.js +30 -29
- package/dist/esm/proto/cosmos-tx.d.ts +1 -1
- package/dist/esm/{service-BER-mZkG.js → service-ByVrhiMR.js} +3 -3
- package/dist/esm/service.d.ts +4 -4
- package/dist/esm/service.js +11 -11
- package/dist/esm/{tx-Pg714BW8.js → tx-C3kGdMjp.js} +7 -7
- package/dist/esm/{tx_pb-DZQILTFk.d.ts → tx_pb-DMlxbcd8.d.ts} +4 -4
- package/dist/esm/types/light.d.ts +1 -1
- package/dist/esm/types/light.js +1 -1
- package/dist/esm/types.d.ts +3 -3
- package/dist/esm/types.js +3 -3
- package/dist/esm/utils/address.d.ts +1 -1
- package/dist/esm/utils/address.js +1 -1
- package/dist/esm/utils/constants.d.ts +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/encoding.d.ts +1 -1
- package/dist/esm/utils/encoding.js +1 -1
- package/dist/esm/utils/light.d.ts +4 -4
- package/dist/esm/utils/light.js +4 -4
- package/dist/esm/{utils-B3t50ZnB.js → utils-BPuX8T_g.js} +1 -1
- package/dist/esm/utils.d.ts +15 -14
- package/dist/esm/utils.js +6 -6
- package/package.json +27 -6
- /package/dist/cjs/{DirectEthSecp256k1Wallet-BpU2M9A8.cjs → DirectEthSecp256k1Wallet-DMVCWKfg.cjs} +0 -0
- /package/dist/cjs/{address-light-B5-DYwES.d.cts → address-light-CnSMr-vR.d.cts} +0 -0
- /package/dist/cjs/{coins-JbAREn6e.d.cts → coins-CSrwziXH.d.cts} +0 -0
- /package/dist/cjs/{constants-DSzHAIp3.d.cts → constants-DQTrjP5R.d.cts} +0 -0
- /package/dist/cjs/{encoding-light-CrQ0cICT.d.cts → encoding-light-D-6m9tHO.d.cts} +0 -0
- /package/dist/cjs/{light-4nNsYXxr.d.cts → light-B-3BDUJ7.d.cts} +0 -0
- /package/dist/cjs/{service-nm5Ct4_w.cjs → service-DAfIXxMj.cjs} +0 -0
- /package/dist/cjs/{tx-BlFLQ52d.cjs → tx-D8W0e6qZ.cjs} +0 -0
- /package/dist/esm/{BaseRestConsumer-L3j9-i4T.js → BaseRestConsumer-BjN9JApr.js} +0 -0
- /package/dist/esm/{address-light-C9skTx0P.js → address-light-B2JvY3Or.js} +0 -0
- /package/dist/esm/{address-light-BcZDS-ks.d.ts → address-light-DEMtolvF.d.ts} +0 -0
- /package/dist/esm/{coins-ceq0Id0M.d.ts → coins-EA0hT1HY.d.ts} +0 -0
- /package/dist/esm/{coins-D4vONigS.js → coins-MO-ob9NV.js} +0 -0
- /package/dist/esm/{constants-BZ28P_pH.d.ts → constants-Cde3Np7d.d.ts} +0 -0
- /package/dist/esm/{constants-CCVyqUU9.js → constants-J9ftgKqC.js} +0 -0
- /package/dist/esm/{defineProperty-C0TI9N8m.js → defineProperty-BwBXXd7t.js} +0 -0
- /package/dist/esm/{encoding-light-18k0e_8v.d.ts → encoding-light--y1VYXkX.d.ts} +0 -0
- /package/dist/esm/{encoding-light-DHtTGSg1.js → encoding-light-BpntDob-.js} +0 -0
- /package/dist/esm/{grpc-aI_RLGoG.js → grpc-D2EQHGkK.js} +0 -0
- /package/dist/esm/{light-BflupdEX.js → light-BBrX6IRm.js} +0 -0
- /package/dist/esm/{light-Cr4m0DAA.d.ts → light-BFGvKXwS.d.ts} +0 -0
- /package/dist/esm/{stream-BhshHZxL.js → stream-AVOxjM-h.js} +0 -0
- /package/dist/esm/{types-BAV0654v.js → types-CD1KNXoO.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
1
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-D-Ocoffv.cjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@injectivelabs+tc-abacus-proto-ts-v2@1.18.6/node_modules/@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb.d.ts
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dt as TokenSource, ft as TokenStatic } from "./index-
|
|
2
|
-
import { b as TokenVerification, y as TokenType } from "./light-
|
|
1
|
+
import { dt as TokenSource, ft as TokenStatic } from "./index-B674D7pD.cjs";
|
|
2
|
+
import { b as TokenVerification, y as TokenType } from "./light-B-3BDUJ7.cjs";
|
|
3
3
|
import { Network } from "@injectivelabs/networks";
|
|
4
4
|
|
|
5
5
|
//#region src/service/TokenPrice.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
1
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-D-Ocoffv.cjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@injectivelabs+olp-proto-ts-v2@1.17.6/node_modules/@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.d.ts
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as Any } from "./tx_pb-
|
|
2
|
-
import { d as GrpcWebTransportAdditionalOptions } from "./index-
|
|
1
|
+
import { u as Any } from "./tx_pb-BzYfNmn2.cjs";
|
|
2
|
+
import { d as GrpcWebTransportAdditionalOptions } from "./index-B674D7pD.cjs";
|
|
3
3
|
import { SnakeCase } from "type-fest";
|
|
4
4
|
import { ChainId, Coin } from "@injectivelabs/ts-types";
|
|
5
5
|
import { Network, NetworkEndpoints } from "@injectivelabs/networks";
|
|
@@ -158,7 +158,7 @@ declare abstract class MsgBase<Params$1, ProtoRepresentation extends Object, Obj
|
|
|
158
158
|
toDirectSignJSON(): string;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.
|
|
161
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.3/node_modules/@injectivelabs/core-proto-ts-v2/generated/cosmwasm/wasm/v1/types_pb.d.ts
|
|
162
162
|
/**
|
|
163
163
|
* AccessConfig access control type.
|
|
164
164
|
*
|
|
@@ -941,7 +941,7 @@ declare class ExecPrivilegedArgOffChainVaultSubscribe extends ExecPrivilegedArgB
|
|
|
941
941
|
type ExecArgs = ExecArgCW20Send | ExecArgSubmitVaa | ExecArgCreateRound | ExecArgCW20Transfer | ExecArgFundCampaign | ExecArgSwapMinOutput | ExecArgDepositTokens | ExecArgCreateCampaign | ExecArgSwapExactOutput | ExecArgInitiateTransfer | ExecArgUpdateGridConfig | ExecArgIncreaseAllowance | ExecArgRemoveGridStrategy | ExecArgCreateSpotGridStrategy | ExecArgCreatePerpGridStrategy | ExecArgCW20AdapterRedeemAndTransfer;
|
|
942
942
|
type ExecPrivilegedArgs = ExecPrivilegedArgVaultRedeem | ExecPrivilegedArgVaultSubscribe | ExecPrivilegedArgOffChainVaultRedeem | ExecPrivilegedArgOffChainVaultSubscribe;
|
|
943
943
|
//#endregion
|
|
944
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.
|
|
944
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.3/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/proposal_pb.d.ts
|
|
945
945
|
/**
|
|
946
946
|
* @generated from protobuf enum injective.wasmx.v1.FundingMode
|
|
947
947
|
*/
|
|
@@ -964,7 +964,7 @@ declare enum FundingMode {
|
|
|
964
964
|
Dual = 3,
|
|
965
965
|
}
|
|
966
966
|
//#endregion
|
|
967
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.
|
|
967
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.3/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/wasmx_pb.d.ts
|
|
968
968
|
/**
|
|
969
969
|
* @generated from protobuf message injective.wasmx.v1.Params
|
|
970
970
|
*/
|
|
@@ -1060,7 +1060,7 @@ declare const Params = new Params$Type();
|
|
|
1060
1060
|
*/
|
|
1061
1061
|
declare const RegisteredContract = new RegisteredContract$Type();
|
|
1062
1062
|
//#endregion
|
|
1063
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.
|
|
1063
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.3/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/wasmx/v1/tx_pb.d.ts
|
|
1064
1064
|
/**
|
|
1065
1065
|
* MsgExecuteContractCompat submits the given message data to a smart contract,
|
|
1066
1066
|
* compatible with EIP712
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SignDoc } from "./tx_pb-
|
|
1
|
+
import { i as SignDoc } from "./tx_pb-BzYfNmn2.cjs";
|
|
2
2
|
import { AccountData, Algo, AminoSignResponse, OfflineAminoSigner, StdFee, StdSignDoc } from "@cosmjs/amino";
|
|
3
3
|
import { AccountData as AccountData$1, Algo as Algo$1, DirectSignResponse, EncodeObject, OfflineDirectSigner, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { Account, AminoTypes, DeliverTxResponse, GasPrice, StargateClient, StargateClientOptions } from "@cosmjs/stargate";
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-D-Ocoffv.cjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+platform-services-proto-ts-v2@1.0.0/node_modules/@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_positions_service_pb.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Persisted derivative position
|
|
7
|
+
*
|
|
8
|
+
* @generated from protobuf message positions_service.Position
|
|
9
|
+
*/
|
|
10
|
+
interface Position {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf field: string id = 1
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf field: string market_id = 2
|
|
17
|
+
*/
|
|
18
|
+
marketId: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string account_address = 3
|
|
21
|
+
*/
|
|
22
|
+
accountAddress: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: string subaccount_id = 4
|
|
25
|
+
*/
|
|
26
|
+
subaccountId: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: string state = 5
|
|
29
|
+
*/
|
|
30
|
+
state: string;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: optional string close_reason = 6
|
|
33
|
+
*/
|
|
34
|
+
closeReason?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: string side = 7
|
|
37
|
+
*/
|
|
38
|
+
side: string;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: string side_at_open = 8
|
|
41
|
+
*/
|
|
42
|
+
sideAtOpen: string;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: string pnl = 9
|
|
45
|
+
*/
|
|
46
|
+
pnl: string;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: string fees = 10
|
|
49
|
+
*/
|
|
50
|
+
fees: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: string net_pnl = 11
|
|
53
|
+
*/
|
|
54
|
+
netPnl: string;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: sint64 num_of_buy_trades = 12
|
|
57
|
+
*/
|
|
58
|
+
numOfBuyTrades: bigint;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf field: sint64 num_of_sell_trades = 13
|
|
61
|
+
*/
|
|
62
|
+
numOfSellTrades: bigint;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: sint64 total_trades = 14
|
|
65
|
+
*/
|
|
66
|
+
totalTrades: bigint;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: string avg_entry_price = 15
|
|
69
|
+
*/
|
|
70
|
+
avgEntryPrice: string;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: string quantity = 16
|
|
73
|
+
*/
|
|
74
|
+
quantity: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: string max_quantity = 17
|
|
77
|
+
*/
|
|
78
|
+
maxQuantity: string;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: string min_quantity = 18
|
|
81
|
+
*/
|
|
82
|
+
minQuantity: string;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: string initial_margin = 19
|
|
85
|
+
*/
|
|
86
|
+
initialMargin: string;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: string final_margin = 20
|
|
89
|
+
*/
|
|
90
|
+
finalMargin: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf field: string opened_at = 21
|
|
93
|
+
*/
|
|
94
|
+
openedAt: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: uint64 opened_height = 22
|
|
97
|
+
*/
|
|
98
|
+
openedHeight: bigint;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: string updated_at = 23
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf field: uint64 updated_height = 24
|
|
105
|
+
*/
|
|
106
|
+
updatedHeight: bigint;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from protobuf field: optional string closed_at = 25
|
|
109
|
+
*/
|
|
110
|
+
closedAt?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf field: optional uint64 closed_height = 26
|
|
113
|
+
*/
|
|
114
|
+
closedHeight?: bigint;
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf field: sint64 duration_in_seconds = 27
|
|
117
|
+
*/
|
|
118
|
+
durationInSeconds: bigint;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Daily realized PNL
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf message positions_service.DailyPNL
|
|
124
|
+
*/
|
|
125
|
+
interface DailyPNL {
|
|
126
|
+
/**
|
|
127
|
+
* UTC date in YYYY-MM-DD format
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: string date = 1
|
|
130
|
+
*/
|
|
131
|
+
date: string;
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf field: string pnl = 2
|
|
134
|
+
*/
|
|
135
|
+
pnl: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Account-level rolling position stats
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf message positions_service.AccountPositionStats
|
|
141
|
+
*/
|
|
142
|
+
interface AccountPositionStats {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf field: string account_address = 1
|
|
145
|
+
*/
|
|
146
|
+
accountAddress: string;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: sint64 wins = 2
|
|
149
|
+
*/
|
|
150
|
+
wins: bigint;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf field: sint64 losses = 3
|
|
153
|
+
*/
|
|
154
|
+
losses: bigint;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf field: sint64 closed_positions = 4
|
|
157
|
+
*/
|
|
158
|
+
closedPositions: bigint;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf field: sint64 trade_count = 5
|
|
161
|
+
*/
|
|
162
|
+
tradeCount: bigint;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from protobuf field: string pnl = 6
|
|
165
|
+
*/
|
|
166
|
+
pnl: string;
|
|
167
|
+
/**
|
|
168
|
+
* Valid-margin realized PNL divided by summed positive initial margin; 0.25
|
|
169
|
+
* means 25%.
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf field: string pnl_percentage = 7
|
|
172
|
+
*/
|
|
173
|
+
pnlPercentage: string;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from protobuf field: string win_rate = 8
|
|
176
|
+
*/
|
|
177
|
+
winRate: string;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from protobuf field: string leverage = 9
|
|
180
|
+
*/
|
|
181
|
+
leverage: string;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from protobuf field: string max_drawdown = 10
|
|
184
|
+
*/
|
|
185
|
+
maxDrawdown: string;
|
|
186
|
+
/**
|
|
187
|
+
* Cumulative realized PNL samples for the selected rolling window; empty for
|
|
188
|
+
* all_time.
|
|
189
|
+
*
|
|
190
|
+
* @generated from protobuf field: repeated string equity_curve = 11
|
|
191
|
+
*/
|
|
192
|
+
equityCurve: string[];
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @generated MessageType for protobuf message positions_service.Position
|
|
196
|
+
*/
|
|
197
|
+
declare const Position = new Position$Type();
|
|
198
|
+
/**
|
|
199
|
+
* @generated MessageType for protobuf message positions_service.DailyPNL
|
|
200
|
+
*/
|
|
201
|
+
declare const DailyPNL = new DailyPNL$Type();
|
|
202
|
+
/**
|
|
203
|
+
* @generated MessageType for protobuf message positions_service.AccountPositionStats
|
|
204
|
+
*/
|
|
205
|
+
declare const AccountPositionStats = new AccountPositionStats$Type();
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/client/platformServices/types/platformServices.d.ts
|
|
208
|
+
type PlatformServicesPositionsStatsWindow = '24h' | '7d' | '30d' | 'all_time';
|
|
209
|
+
type PlatformServicesPositionsSortBy = 'pnl' | 'trade_count' | 'num_trades' | 'win_rate';
|
|
210
|
+
type PlatformServicesPositionsSortDirection = 'asc' | 'desc';
|
|
211
|
+
interface PlatformServicesListPositionsParams {
|
|
212
|
+
pageSize?: number;
|
|
213
|
+
nextToken?: string;
|
|
214
|
+
accountAddress?: string;
|
|
215
|
+
}
|
|
216
|
+
interface PlatformServicesGetAccountPositionStatsParams {
|
|
217
|
+
accountAddress: string;
|
|
218
|
+
window?: PlatformServicesPositionsStatsWindow;
|
|
219
|
+
}
|
|
220
|
+
interface PlatformServicesGetAccountDailyPNLParams {
|
|
221
|
+
to: string;
|
|
222
|
+
from: string;
|
|
223
|
+
accountAddress: string;
|
|
224
|
+
}
|
|
225
|
+
interface PlatformServicesListAccountPositionStatsParams {
|
|
226
|
+
pageSize?: number;
|
|
227
|
+
nextToken?: string;
|
|
228
|
+
accountAddress?: string[];
|
|
229
|
+
sortBy?: PlatformServicesPositionsSortBy;
|
|
230
|
+
window?: PlatformServicesPositionsStatsWindow;
|
|
231
|
+
sortDirection?: PlatformServicesPositionsSortDirection;
|
|
232
|
+
}
|
|
233
|
+
interface PlatformServicesPosition {
|
|
234
|
+
id: string;
|
|
235
|
+
pnl: string;
|
|
236
|
+
side: string;
|
|
237
|
+
fees: string;
|
|
238
|
+
state: string;
|
|
239
|
+
netPnl: string;
|
|
240
|
+
marketId: string;
|
|
241
|
+
quantity: string;
|
|
242
|
+
openedAt: string;
|
|
243
|
+
updatedAt: string;
|
|
244
|
+
closedAt?: string;
|
|
245
|
+
sideAtOpen: string;
|
|
246
|
+
totalTrades: string;
|
|
247
|
+
maxQuantity: string;
|
|
248
|
+
minQuantity: string;
|
|
249
|
+
finalMargin: string;
|
|
250
|
+
subaccountId: string;
|
|
251
|
+
closeReason?: string;
|
|
252
|
+
openedHeight: string;
|
|
253
|
+
avgEntryPrice: string;
|
|
254
|
+
initialMargin: string;
|
|
255
|
+
updatedHeight: string;
|
|
256
|
+
closedHeight?: string;
|
|
257
|
+
accountAddress: string;
|
|
258
|
+
numOfBuyTrades: string;
|
|
259
|
+
numOfSellTrades: string;
|
|
260
|
+
durationInSeconds: string;
|
|
261
|
+
}
|
|
262
|
+
interface PlatformServicesListPositionsResponse {
|
|
263
|
+
positions: PlatformServicesPosition[];
|
|
264
|
+
nextToken?: string;
|
|
265
|
+
}
|
|
266
|
+
interface PlatformServicesAccountPositionStats {
|
|
267
|
+
pnl: string;
|
|
268
|
+
wins: string;
|
|
269
|
+
losses: string;
|
|
270
|
+
winRate: string;
|
|
271
|
+
leverage: string;
|
|
272
|
+
tradeCount: string;
|
|
273
|
+
maxDrawdown: string;
|
|
274
|
+
pnlPercentage: string;
|
|
275
|
+
equityCurve: string[];
|
|
276
|
+
accountAddress: string;
|
|
277
|
+
closedPositions: string;
|
|
278
|
+
}
|
|
279
|
+
interface PlatformServicesDailyPNL {
|
|
280
|
+
pnl: string;
|
|
281
|
+
date: string;
|
|
282
|
+
}
|
|
283
|
+
interface PlatformServicesGetAccountDailyPNLResponse {
|
|
284
|
+
accountAddress: string;
|
|
285
|
+
dailyPnl: PlatformServicesDailyPNL[];
|
|
286
|
+
}
|
|
287
|
+
interface PlatformServicesListAccountPositionStatsResponse {
|
|
288
|
+
nextToken?: string;
|
|
289
|
+
accounts: PlatformServicesAccountPositionStats[];
|
|
290
|
+
}
|
|
291
|
+
type GrpcPlatformServicesPosition = Position;
|
|
292
|
+
type GrpcPlatformServicesAccountPositionStats = AccountPositionStats;
|
|
293
|
+
type GrpcPlatformServicesDailyPNL = DailyPNL;
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/client/platformServices/grpc/SocialTradingGrpcApi.d.ts
|
|
296
|
+
declare class SocialTradingGrpcApi extends BaseGrpcConsumer {
|
|
297
|
+
protected module: string;
|
|
298
|
+
private get client();
|
|
299
|
+
fetchPositions(params?: PlatformServicesListPositionsParams): Promise<PlatformServicesListPositionsResponse>;
|
|
300
|
+
fetchAccountPositionStats(params: PlatformServicesGetAccountPositionStatsParams): Promise<PlatformServicesAccountPositionStats>;
|
|
301
|
+
fetchAccountDailyPNL(params: PlatformServicesGetAccountDailyPNLParams): Promise<PlatformServicesGetAccountDailyPNLResponse>;
|
|
302
|
+
fetchAccountPositionStatsList(params?: PlatformServicesListAccountPositionStatsParams): Promise<PlatformServicesListAccountPositionStatsResponse>;
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
export { PlatformServicesPositionsStatsWindow as _, PlatformServicesAccountPositionStats as a, PlatformServicesGetAccountDailyPNLResponse as c, PlatformServicesListAccountPositionStatsResponse as d, PlatformServicesListPositionsParams as f, PlatformServicesPositionsSortDirection as g, PlatformServicesPositionsSortBy as h, GrpcPlatformServicesPosition as i, PlatformServicesGetAccountPositionStatsParams as l, PlatformServicesPosition as m, GrpcPlatformServicesAccountPositionStats as n, PlatformServicesDailyPNL as o, PlatformServicesListPositionsResponse as p, GrpcPlatformServicesDailyPNL as r, PlatformServicesGetAccountDailyPNLParams as s, SocialTradingGrpcApi as t, PlatformServicesListAccountPositionStatsParams as u };
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const require_grpc = require('./grpc-3Z8ffFdZ.cjs');
|
|
|
8
8
|
const require_coins = require('./coins-DRrEtaSG.cjs');
|
|
9
9
|
const require_address_light = require('./address-light-C_a6b8yF.cjs');
|
|
10
10
|
const require_MsgBase = require('./MsgBase-BJmf0IHm.cjs');
|
|
11
|
-
const require_MsgSetDenomMetadata = require('./MsgSetDenomMetadata-
|
|
11
|
+
const require_MsgSetDenomMetadata = require('./MsgSetDenomMetadata-DNaPq8w6.cjs');
|
|
12
12
|
const require_ChainRestTendermintApi = require('./ChainRestTendermintApi-Sni05dAJ.cjs');
|
|
13
13
|
const require_light = require('./light-CrajlUvd.cjs');
|
|
14
14
|
const require_stream = require('./stream-NLunNFnw.cjs');
|
|
@@ -22,11 +22,12 @@ require('./BaseRestConsumer-BcHgNcNh.cjs');
|
|
|
22
22
|
const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-Sqk_zPQx.cjs');
|
|
23
23
|
const require_AbacusGrpcApi = require('./AbacusGrpcApi-Dwlpk6jY.cjs');
|
|
24
24
|
const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-KVLJE-jW.cjs');
|
|
25
|
-
const require_StreamManagerV2 = require('./StreamManagerV2-
|
|
25
|
+
const require_StreamManagerV2 = require('./StreamManagerV2-B6TX-Isx.cjs');
|
|
26
26
|
const require_types = require('./types-BJpWW-Rx.cjs');
|
|
27
27
|
const require_TcAbacusGrpcApi = require('./TcAbacusGrpcApi-DRKR_enO.cjs');
|
|
28
|
-
const
|
|
29
|
-
const
|
|
28
|
+
const require_SocialTradingGrpcApi = require('./SocialTradingGrpcApi-Cm79vDb5.cjs');
|
|
29
|
+
const require_tx = require('./tx-D8W0e6qZ.cjs');
|
|
30
|
+
const require_service = require('./service-DAfIXxMj.cjs');
|
|
30
31
|
let __injectivelabs_core_proto_ts_v2_generated_injective_types_v1beta1_account_pb = require("@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/account_pb");
|
|
31
32
|
__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);
|
|
32
33
|
let __injectivelabs_utils = require("@injectivelabs/utils");
|
|
@@ -239,6 +240,8 @@ exports.IndexerWsTakerStream = require_StreamManagerV2.IndexerWsTakerStream;
|
|
|
239
240
|
exports.InjNameServiceQueryTransformer = require_QueryTradingStrategyContractTotalStrategies.InjNameServiceQueryTransformer;
|
|
240
241
|
exports.MarketType = require_IndexerGrpcWeb3GwApi.MarketType;
|
|
241
242
|
exports.MitoGaugeStatus = require_IndexerGrpcWeb3GwApi.MitoGaugeStatus;
|
|
243
|
+
exports.MsgActivatePostOnlyModeV2 = require_MsgSetDenomMetadata.MsgActivatePostOnlyModeV2;
|
|
244
|
+
exports.MsgActivateStakeGrantV2 = require_MsgSetDenomMetadata.MsgActivateStakeGrantV2;
|
|
242
245
|
exports.MsgAdminUpdateBinaryOptionsMarket = require_MsgSetDenomMetadata.MsgAdminUpdateBinaryOptionsMarket;
|
|
243
246
|
exports.MsgAdminUpdateBinaryOptionsMarketV2 = require_MsgSetDenomMetadata.MsgAdminUpdateBinaryOptionsMarketV2;
|
|
244
247
|
exports.MsgAuthorizeStakeGrants = require_MsgSetDenomMetadata.MsgAuthorizeStakeGrants;
|
|
@@ -307,11 +310,13 @@ exports.MsgInstantBinaryOptionsMarketLaunchV2 = require_MsgSetDenomMetadata.MsgI
|
|
|
307
310
|
exports.MsgInstantSpotMarketLaunch = require_MsgSetDenomMetadata.MsgInstantSpotMarketLaunch;
|
|
308
311
|
exports.MsgInstantSpotMarketLaunchV2 = require_MsgSetDenomMetadata.MsgInstantSpotMarketLaunchV2;
|
|
309
312
|
exports.MsgInstantiateContract = require_MsgSetDenomMetadata.MsgInstantiateContract;
|
|
313
|
+
exports.MsgLiquidateCrossMarginPoolV2 = require_MsgSetDenomMetadata.MsgLiquidateCrossMarginPoolV2;
|
|
310
314
|
exports.MsgLiquidatePosition = require_MsgSetDenomMetadata.MsgLiquidatePosition;
|
|
311
315
|
exports.MsgLiquidatePositionV2 = require_MsgSetDenomMetadata.MsgLiquidatePositionV2;
|
|
312
316
|
exports.MsgMigrateContract = require_MsgSetDenomMetadata.MsgMigrateContract;
|
|
313
317
|
exports.MsgMint = require_MsgSetDenomMetadata.MsgMint;
|
|
314
318
|
exports.MsgMultiSend = require_MsgSetDenomMetadata.MsgMultiSend;
|
|
319
|
+
exports.MsgOffsetPositionV2 = require_MsgSetDenomMetadata.MsgOffsetPositionV2;
|
|
315
320
|
exports.MsgPrivilegedExecuteContract = require_MsgSetDenomMetadata.MsgPrivilegedExecuteContract;
|
|
316
321
|
exports.MsgReclaimLockedFunds = require_MsgSetDenomMetadata.MsgReclaimLockedFunds;
|
|
317
322
|
exports.MsgReclaimLockedFundsV2 = require_MsgSetDenomMetadata.MsgReclaimLockedFundsV2;
|
|
@@ -329,6 +334,7 @@ exports.MsgSetDenomMetadata = require_MsgSetDenomMetadata.MsgSetDenomMetadata;
|
|
|
329
334
|
exports.MsgSignData = require_accounts.MsgSignData;
|
|
330
335
|
exports.MsgSignDataV2 = require_MsgSetDenomMetadata.MsgSignDataV2;
|
|
331
336
|
exports.MsgStoreCode = require_MsgSetDenomMetadata.MsgStoreCode;
|
|
337
|
+
exports.MsgSubaccountTransferV2 = require_MsgSetDenomMetadata.MsgSubaccountTransferV2;
|
|
332
338
|
exports.MsgSubmitGenericProposal = require_MsgSetDenomMetadata.MsgSubmitGenericProposal;
|
|
333
339
|
exports.MsgSubmitProposalExpiryFuturesMarketLaunch = require_MsgSetDenomMetadata.MsgSubmitProposalExpiryFuturesMarketLaunch;
|
|
334
340
|
exports.MsgSubmitProposalPerpetualMarketLaunch = require_MsgSetDenomMetadata.MsgSubmitProposalPerpetualMarketLaunch;
|
|
@@ -347,6 +353,7 @@ exports.MsgUpdateNamespace = require_MsgSetDenomMetadata.MsgUpdateNamespace;
|
|
|
347
353
|
exports.MsgUpdateParams = require_MsgSetDenomMetadata.MsgUpdateParams;
|
|
348
354
|
exports.MsgUpdateRateLimit = require_MsgSetDenomMetadata.MsgUpdateRateLimit;
|
|
349
355
|
exports.MsgUpdateSpotMarketV2 = require_MsgSetDenomMetadata.MsgUpdateSpotMarketV2;
|
|
356
|
+
exports.MsgUpdateSubaccountRiskProfileV2 = require_MsgSetDenomMetadata.MsgUpdateSubaccountRiskProfileV2;
|
|
350
357
|
exports.MsgVote = require_MsgSetDenomMetadata.MsgVote;
|
|
351
358
|
exports.MsgWithdraw = require_MsgSetDenomMetadata.MsgWithdraw;
|
|
352
359
|
exports.MsgWithdrawDelegatorReward = require_MsgSetDenomMetadata.MsgWithdrawDelegatorReward;
|
|
@@ -389,6 +396,7 @@ exports.SIGN_DIRECT = require_tx.SIGN_DIRECT;
|
|
|
389
396
|
exports.SIGN_EIP712 = require_tx.SIGN_EIP712;
|
|
390
397
|
exports.SIGN_EIP712_V2 = require_tx.SIGN_EIP712_V2;
|
|
391
398
|
exports.SignTypedDataVersionV4 = require_utils.SignTypedDataVersionV4;
|
|
399
|
+
exports.SocialTradingGrpcApi = require_SocialTradingGrpcApi.SocialTradingGrpcApi;
|
|
392
400
|
exports.StrategyType = require_MsgSetDenomMetadata.StrategyType;
|
|
393
401
|
exports.StreamDisconnectReason = require_light.StreamDisconnectReason;
|
|
394
402
|
exports.StreamEvent = require_light.StreamEvent;
|