@injectivelabs/sdk-ts 1.17.2-alpha.8 → 1.17.2
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/{AbacusGrpcApi-vcp-9fNL.cjs → AbacusGrpcApi-DXSuhb6R.cjs} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-DUwCngI6.cjs → BaseGrpcConsumer-EtEQfhmo.cjs} +47 -6
- package/dist/{esm/BaseGrpcConsumer-BbvNzhrS.d.ts → cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts} +14 -2
- package/dist/cjs/{BaseIndexerGrpcConsumer-BGLVnJtw.cjs → BaseIndexerGrpcConsumer-CW1kTn-_.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-VVmtAGW5.cjs → ChainGrpcExchangeApi-CF9ATYqN.cjs} +3 -3
- package/dist/cjs/{ChainRestTendermintApi-CW49Mtmx.cjs → ChainRestTendermintApi-vL0g-BF-.cjs} +2 -2
- package/dist/cjs/{DirectEthSecp256k1Wallet-Chd5kOwo.cjs → DirectEthSecp256k1Wallet-CIdxvYjL.cjs} +2 -2
- package/dist/cjs/{ExecArgNeptuneWithdraw-BqrKFTTp.cjs → ExecArgNeptuneWithdraw-C-NQ72VM.cjs} +6 -6
- package/dist/cjs/{IndexerGrpcWeb3GwApi-RL0sxzNw.cjs → IndexerGrpcWeb3GwApi-C7kkr4Il.cjs} +7 -7
- package/dist/cjs/{MsgBase-BJ1-Qh5c.cjs → MsgBase-DqOmzCyS.cjs} +1 -0
- package/dist/cjs/{MsgSetDenomMetadata-BzFtwh7v.cjs → MsgSetDenomMetadata-CKvxIq_t.cjs} +26 -15
- package/dist/cjs/{OLPGrpcApi-B9O9HcGv.cjs → OLPGrpcApi-BCCb6fBZ.cjs} +1 -1
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-t-5fuyN_.cjs → QueryTradingStrategyContractTotalStrategies-Ayot_18R.cjs} +3 -3
- package/dist/cjs/{IndexerGrpcAccountPortfolioStream-CGaNa5R7.cjs → StreamManagerV2-igv0mn2I.cjs} +1375 -378
- package/dist/cjs/{accounts-DC6uKJZm.cjs → accounts-CHKUxDIf.cjs} +6 -6
- package/dist/{esm/any_pb-B1YYUSUf.d.ts → cjs/any_pb-CutLnOUR.d.cts} +2 -2
- package/dist/cjs/{chain-CdI97AzZ.cjs → chain-CGHrf7gg.cjs} +4 -4
- package/dist/cjs/client/abacus.cjs +2 -2
- package/dist/cjs/client/abacus.d.cts +2 -2
- package/dist/cjs/client/chain.cjs +5 -5
- package/dist/cjs/client/chain.d.cts +9 -9
- package/dist/cjs/client/indexer.cjs +74 -60
- package/dist/cjs/client/indexer.d.cts +10 -10
- package/dist/cjs/client/olp.cjs +3 -3
- package/dist/cjs/client/olp.d.cts +2 -2
- package/dist/cjs/client/wasm.cjs +8 -8
- package/dist/cjs/client/wasm.d.cts +2 -2
- package/dist/cjs/core/accounts.cjs +3 -3
- package/dist/cjs/core/accounts.d.cts +9 -9
- package/dist/cjs/core/modules.cjs +11 -11
- package/dist/cjs/core/modules.d.cts +9 -9
- package/dist/cjs/core/tx.cjs +8 -8
- package/dist/cjs/core/tx.d.cts +9 -9
- package/dist/cjs/cosmjs.cjs +9 -9
- package/dist/cjs/cosmjs.d.cts +3 -3
- package/dist/cjs/exports.cjs +9 -9
- package/dist/cjs/exports.d.cts +3 -3
- package/dist/cjs/{index-Cc5Q73-y.d.cts → index-CGvISJoE.d.cts} +1 -1
- package/dist/cjs/{index-CKBod1ba.d.cts → index-CO3Y9drx.d.cts} +4 -3
- package/dist/cjs/{index-Cc4mqAsR.d.cts → index-D6ubyMlR.d.cts} +1 -1
- package/dist/{esm/index-DdGVE3_u.d.ts → cjs/index-DWbxb1AB.d.cts} +7 -13
- package/dist/cjs/{index-9KV6P3U_.d.cts → index-DemZnO3c.d.cts} +986 -292
- package/dist/cjs/{index-Cqfc1ppG.d.cts → index-DjRtDAy5.d.cts} +241 -19
- package/dist/cjs/{index-B19YRG03.d.cts → index-lRWP4rKg.d.cts} +1 -1
- package/dist/cjs/index.cjs +96 -72
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/{service-Do5zpuEu.cjs → service-BCLvTVy_.cjs} +2 -2
- package/dist/cjs/service.cjs +3 -3
- package/dist/cjs/service.d.cts +4 -4
- package/dist/cjs/{tx-D51SCHxX.cjs → tx-VwbP3UdI.cjs} +6 -6
- package/dist/cjs/{tx_pb-tECSPcSB.d.cts → tx_pb-D-cNmrlO.d.cts} +4 -3
- package/dist/cjs/{types-NFV4P_J_.cjs → types-BTuy007B.cjs} +135 -7
- package/dist/cjs/types.cjs +7 -1
- package/dist/cjs/types.d.cts +4 -4
- package/dist/cjs/{utils-CaAHoOvO.cjs → utils-CDl812vv.cjs} +158 -88
- package/dist/cjs/utils.cjs +5 -1
- package/dist/cjs/utils.d.cts +10 -10
- package/dist/esm/{AbacusGrpcApi-CXaVHTrN.js → AbacusGrpcApi-Ce1hRKuD.js} +1 -1
- package/dist/{cjs/BaseGrpcConsumer-PDufF0fz.d.cts → esm/BaseGrpcConsumer-6x4RlZ16.d.ts} +14 -2
- package/dist/esm/{BaseGrpcConsumer-DptVGP0n.js → BaseGrpcConsumer-BTWyD665.js} +48 -7
- package/dist/esm/{BaseIndexerGrpcConsumer-CjpUoGXy.js → BaseIndexerGrpcConsumer-BTZzA_Eg.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-CDMDxAJf.js → ChainGrpcExchangeApi-DqdCst2Z.js} +3 -3
- package/dist/esm/{ChainRestTendermintApi-Cy7hYJYp.js → ChainRestTendermintApi-BT_yOkAV.js} +2 -2
- package/dist/esm/{DirectEthSecp256k1Wallet-VC6TDitT.js → DirectEthSecp256k1Wallet-BqxC1b40.js} +2 -2
- package/dist/esm/{ExecArgNeptuneWithdraw-yQxlQZWQ.js → ExecArgNeptuneWithdraw-uLf3HttI.js} +6 -6
- package/dist/esm/{IndexerGrpcWeb3GwApi-BngLjriD.js → IndexerGrpcWeb3GwApi-B2mgt9tE.js} +7 -7
- package/dist/esm/{MsgBase-aKq3ln6R.js → MsgBase-BkRgVbdY.js} +1 -0
- package/dist/esm/{MsgSetDenomMetadata-CTc1ec1M.js → MsgSetDenomMetadata-CXgkQ3LF.js} +26 -15
- package/dist/esm/{OLPGrpcApi-CMwW7LXZ.js → OLPGrpcApi-DUCfcca_.js} +1 -1
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DnsH6JLf.js → QueryTradingStrategyContractTotalStrategies-CZWdw3BE.js} +3 -3
- package/dist/esm/{IndexerGrpcAccountPortfolioStream-BOLdMeVd.js → StreamManagerV2-B9xiJYLj.js} +1116 -203
- package/dist/esm/{accounts-DXee44Zk.js → accounts-C5HEaz0B.js} +6 -6
- package/dist/{cjs/any_pb-CP-3DVyl.d.cts → esm/any_pb-DBt7qvTr.d.ts} +2 -2
- package/dist/esm/{chain-BquCFi0h.js → chain-CHX5uSpc.js} +4 -4
- package/dist/esm/client/abacus.d.ts +2 -2
- package/dist/esm/client/abacus.js +2 -2
- package/dist/esm/client/chain.d.ts +9 -9
- package/dist/esm/client/chain.js +5 -5
- package/dist/esm/client/indexer.d.ts +10 -10
- package/dist/esm/client/indexer.js +7 -7
- package/dist/esm/client/olp.d.ts +2 -2
- package/dist/esm/client/olp.js +3 -3
- package/dist/esm/client/wasm.d.ts +2 -2
- package/dist/esm/client/wasm.js +8 -8
- package/dist/esm/core/accounts.d.ts +9 -9
- package/dist/esm/core/accounts.js +3 -3
- package/dist/esm/core/modules.d.ts +9 -9
- package/dist/esm/core/modules.js +11 -11
- package/dist/esm/core/tx.d.ts +9 -9
- package/dist/esm/core/tx.js +8 -8
- package/dist/esm/cosmjs.d.ts +3 -3
- package/dist/esm/cosmjs.js +9 -9
- package/dist/esm/exports.d.ts +3 -3
- package/dist/esm/exports.js +9 -9
- package/dist/esm/{index-BOKuUpVZ.d.ts → index--sg5xbEP.d.ts} +1 -1
- package/dist/esm/{index-B1R417vW.d.ts → index-B-SD0p02.d.ts} +241 -19
- package/dist/esm/{index-qFCOVI7n.d.ts → index-BJQt8IpY.d.ts} +1 -1
- package/dist/esm/{index-DS6aJrL5.d.ts → index-C_3bL-y4.d.ts} +1 -1
- package/dist/esm/{index-CIU3qLo9.d.ts → index-Ch477yfL.d.ts} +1001 -307
- package/dist/esm/{index-aNMYd-s0.d.ts → index-DOyiZiUK.d.ts} +4 -3
- package/dist/{cjs/index-D4uWOVE5.d.cts → esm/index-Dn4OxoMy.d.ts} +7 -13
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +19 -19
- package/dist/esm/{service-DYSaTvVz.js → service-CnqMmybI.js} +2 -2
- package/dist/esm/service.d.ts +4 -4
- package/dist/esm/service.js +3 -3
- package/dist/esm/{tx-B9VusHOP.js → tx-DsGG15fH.js} +6 -6
- package/dist/esm/{tx_pb-TiSRD5ay.d.ts → tx_pb-zz4o4hHG.d.ts} +4 -3
- package/dist/esm/types-68OuBiEQ.js +162 -0
- package/dist/esm/types.d.ts +4 -4
- package/dist/esm/types.js +2 -2
- package/dist/esm/{utils-DlnuXIe8.js → utils-BFBu_LnJ.js} +135 -89
- package/dist/esm/utils.d.ts +10 -10
- package/dist/esm/utils.js +2 -2
- package/package.json +11 -13
- package/dist/esm/types-Cq0sRR6y.js +0 -70
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { n as Coin, t as Any } from "./any_pb-
|
|
1
|
+
import { n as Coin, t as Any } from "./any_pb-DBt7qvTr.js";
|
|
2
2
|
|
|
3
3
|
//#region rolldown:runtime
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.
|
|
6
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* CompactBitArray is an implementation of a space efficient bit array.
|
|
9
10
|
* This is used to ensure that the encoded data takes up a minimal amount of
|
|
@@ -27,7 +28,7 @@ interface CompactBitArray {
|
|
|
27
28
|
*/
|
|
28
29
|
declare const CompactBitArray = new CompactBitArray$Type();
|
|
29
30
|
//#endregion
|
|
30
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.
|
|
31
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/cosmos/tx/signing/v1beta1/signing_pb.d.ts
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* SignMode represents a signing mode with its own security guarantees.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as InjectiveExchangeV1Beta1ExchangePb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/exchange_pb";
|
|
2
|
+
|
|
3
|
+
//#region src/types/token.ts
|
|
4
|
+
const TokenType = {
|
|
5
|
+
Ibc: "ibc",
|
|
6
|
+
Cw20: "cw20",
|
|
7
|
+
Spl: "spl",
|
|
8
|
+
Erc20: "erc20",
|
|
9
|
+
Lp: "lp",
|
|
10
|
+
Evm: "evm",
|
|
11
|
+
Native: "native",
|
|
12
|
+
Symbol: "symbol",
|
|
13
|
+
TokenFactory: "tokenFactory",
|
|
14
|
+
InsuranceFund: "insuranceFund",
|
|
15
|
+
Unknown: "unknown"
|
|
16
|
+
};
|
|
17
|
+
const TokenVerification = {
|
|
18
|
+
Verified: "verified",
|
|
19
|
+
Submitted: "submitted",
|
|
20
|
+
Internal: "internal",
|
|
21
|
+
External: "external",
|
|
22
|
+
Unverified: "unverified"
|
|
23
|
+
};
|
|
24
|
+
const TokenSource = {
|
|
25
|
+
Aptos: "aptos",
|
|
26
|
+
Solana: "solana",
|
|
27
|
+
Cosmos: "cosmos",
|
|
28
|
+
Ethereum: "ethereum",
|
|
29
|
+
EthereumWh: "ethereum-wormhole",
|
|
30
|
+
Polygon: "polygon",
|
|
31
|
+
Klaytn: "klaytn",
|
|
32
|
+
Arbitrum: "arbitrum",
|
|
33
|
+
Sui: "sui",
|
|
34
|
+
Ibc: "ibc",
|
|
35
|
+
BinanceSmartChain: "binance-smart-chain",
|
|
36
|
+
Axelar: "axelar"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/types/stream.ts
|
|
41
|
+
/**
|
|
42
|
+
* Subscription interface for stream management with event-based lifecycle
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* gRPC Status Codes
|
|
46
|
+
* @see https://grpc.io/docs/guides/status-codes/
|
|
47
|
+
*/
|
|
48
|
+
const GrpcStatusCode = {
|
|
49
|
+
OK: 0,
|
|
50
|
+
CANCELLED: 1,
|
|
51
|
+
UNKNOWN: 2,
|
|
52
|
+
INVALID_ARGUMENT: 3,
|
|
53
|
+
DEADLINE_EXCEEDED: 4,
|
|
54
|
+
NOT_FOUND: 5,
|
|
55
|
+
ALREADY_EXISTS: 6,
|
|
56
|
+
PERMISSION_DENIED: 7,
|
|
57
|
+
RESOURCE_EXHAUSTED: 8,
|
|
58
|
+
FAILED_PRECONDITION: 9,
|
|
59
|
+
ABORTED: 10,
|
|
60
|
+
OUT_OF_RANGE: 11,
|
|
61
|
+
UNIMPLEMENTED: 12,
|
|
62
|
+
INTERNAL: 13,
|
|
63
|
+
UNAVAILABLE: 14,
|
|
64
|
+
DATA_LOSS: 15,
|
|
65
|
+
UNAUTHENTICATED: 16
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Enhanced disconnect reasons with gRPC error code mapping
|
|
69
|
+
*/
|
|
70
|
+
const StreamDisconnectReason = {
|
|
71
|
+
UserStopped: "user-stopped",
|
|
72
|
+
StreamError: "stream-error",
|
|
73
|
+
NetworkError: "network-error",
|
|
74
|
+
Timeout: "timeout",
|
|
75
|
+
AuthenticationError: "authentication-error",
|
|
76
|
+
InvalidRequest: "invalid-request",
|
|
77
|
+
RateLimited: "rate-limited",
|
|
78
|
+
MaxRetries: "max-retries",
|
|
79
|
+
StreamEnded: "stream-ended"
|
|
80
|
+
};
|
|
81
|
+
const StreamEvent = {
|
|
82
|
+
Data: "data",
|
|
83
|
+
Connect: "connect",
|
|
84
|
+
Disconnect: "disconnect",
|
|
85
|
+
Retry: "retry",
|
|
86
|
+
StateChange: "state:change",
|
|
87
|
+
Error: "error",
|
|
88
|
+
Warn: "warn"
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* StreamManager
|
|
92
|
+
*/
|
|
93
|
+
const StreamState = {
|
|
94
|
+
Idle: "idle",
|
|
95
|
+
Connecting: "connecting",
|
|
96
|
+
Connected: "connected",
|
|
97
|
+
Reconnecting: "reconnecting",
|
|
98
|
+
Stopped: "stopped"
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/types/exchange.ts
|
|
103
|
+
/**
|
|
104
|
+
* Trade and Order types
|
|
105
|
+
*/
|
|
106
|
+
const TradeExecutionType = {
|
|
107
|
+
Market: "market",
|
|
108
|
+
LimitFill: "limitFill",
|
|
109
|
+
LimitMatchRestingOrder: "limitMatchRestingOrder",
|
|
110
|
+
LimitMatchNewOrder: "limitMatchNewOrder"
|
|
111
|
+
};
|
|
112
|
+
const TradeExecutionSide = {
|
|
113
|
+
Maker: "maker",
|
|
114
|
+
Taker: "taker"
|
|
115
|
+
};
|
|
116
|
+
const TradeDirection = {
|
|
117
|
+
Buy: "buy",
|
|
118
|
+
Sell: "sell",
|
|
119
|
+
Long: "long",
|
|
120
|
+
Short: "short"
|
|
121
|
+
};
|
|
122
|
+
const OrderState = {
|
|
123
|
+
Unfilled: "unfilled",
|
|
124
|
+
Booked: "booked",
|
|
125
|
+
PartialFilled: "partial_filled",
|
|
126
|
+
PartiallyFilled: "partially_filled",
|
|
127
|
+
Filled: "filled",
|
|
128
|
+
Canceled: "canceled",
|
|
129
|
+
Triggered: "triggered"
|
|
130
|
+
};
|
|
131
|
+
const OrderSide = {
|
|
132
|
+
Unspecified: "unspecified",
|
|
133
|
+
Buy: "buy",
|
|
134
|
+
Sell: "sell",
|
|
135
|
+
StopBuy: "stop_buy",
|
|
136
|
+
StopSell: "stop_sell",
|
|
137
|
+
TakeBuy: "take_buy",
|
|
138
|
+
TakeSell: "take_sell",
|
|
139
|
+
BuyPO: "buy_po",
|
|
140
|
+
SellPO: "sell_po",
|
|
141
|
+
BuyAtomic: "buy_atomic",
|
|
142
|
+
SellAtomic: "sell_atomic",
|
|
143
|
+
Unrecognized: "unrecognized"
|
|
144
|
+
};
|
|
145
|
+
const OrderMaskMap = InjectiveExchangeV1Beta1ExchangePb.OrderMask;
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/types/stream-legacy.ts
|
|
149
|
+
/**
|
|
150
|
+
* Legacy stream operation types
|
|
151
|
+
* Used by indexer stream transformers
|
|
152
|
+
*/
|
|
153
|
+
const StreamOperation = {
|
|
154
|
+
Insert: "insert",
|
|
155
|
+
Delete: "delete",
|
|
156
|
+
Replace: "replace",
|
|
157
|
+
Update: "update",
|
|
158
|
+
Invalidate: "invalidate"
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
//#endregion
|
|
162
|
+
export { TradeDirection as a, GrpcStatusCode as c, StreamState as d, TokenSource as f, OrderState as i, StreamDisconnectReason as l, TokenVerification as m, OrderMaskMap as n, TradeExecutionSide as o, TokenType as p, OrderSide as r, TradeExecutionType as s, StreamOperation as t, StreamEvent as u };
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./any_pb-
|
|
3
|
-
import { _ as
|
|
4
|
-
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, OrderMask, OrderMaskMap, PagePagination, Pagination, PaginationOption, SignDoc, StreamOperation, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
|
|
1
|
+
import "./tx_pb-zz4o4hHG.js";
|
|
2
|
+
import "./any_pb-DBt7qvTr.js";
|
|
3
|
+
import { A as ExchangePagination, C as StreamState, D as TokenStatic, E as TokenSource, M as Pagination, N as PaginationOption, O as TokenType, S as StreamManagerRetryConfig, T as TokenMeta, _ as StreamDisconnectReason, a as GrpcCoin, b as StreamManagerConfig, c as OrderMask, d as OrderState, f as TradeDirection, g as ResolvedStreamManagerConfig, h as GrpcStatusCode, i as DirectSignResponse, j as PagePagination, k as TokenVerification, l as OrderMaskMap, m as TradeExecutionType, n as AminoSignResponse, o as SignDoc, p as TradeExecutionSide, r as Coin, s as TxRaw, t as StreamOperation, u as OrderSide, v as StreamError, w as StreamSubscription, x as StreamManagerEvents, y as StreamEvent } from "./index-B-SD0p02.js";
|
|
4
|
+
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, OrderMask, OrderMaskMap, OrderSide, OrderState, PagePagination, Pagination, PaginationOption, ResolvedStreamManagerConfig, SignDoc, StreamDisconnectReason, StreamError, StreamEvent, StreamManagerConfig, StreamManagerEvents, StreamManagerRetryConfig, StreamOperation, StreamState, StreamSubscription, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
|
package/dist/esm/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as TradeDirection, c as GrpcStatusCode, d as StreamState, f as TokenSource, i as OrderState, l as StreamDisconnectReason, m as TokenVerification, n as OrderMaskMap, o as TradeExecutionSide, p as TokenType, r as OrderSide, s as TradeExecutionType, t as StreamOperation, u as StreamEvent } from "./types-68OuBiEQ.js";
|
|
2
2
|
|
|
3
|
-
export { OrderMaskMap, StreamOperation, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
|
3
|
+
export { GrpcStatusCode, OrderMaskMap, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, StreamState, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
|
@@ -6,6 +6,132 @@ import { sha256 } from "@noble/hashes/sha2";
|
|
|
6
6
|
import { ripemd160 } from "@noble/hashes/legacy";
|
|
7
7
|
import * as CosmosBaseQueryV1Beta1PaginationPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/base/query/v1beta1/pagination_pb";
|
|
8
8
|
|
|
9
|
+
//#region src/utils/helpers.ts
|
|
10
|
+
const isServerSide = () => typeof window === "undefined";
|
|
11
|
+
const isReactNative = () => {
|
|
12
|
+
return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
13
|
+
};
|
|
14
|
+
const isNode = () => {
|
|
15
|
+
if (typeof window === "undefined") return true;
|
|
16
|
+
return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
|
|
17
|
+
};
|
|
18
|
+
const isBrowser = () => {
|
|
19
|
+
if (isReactNative()) return false;
|
|
20
|
+
if (isNode()) return false;
|
|
21
|
+
return typeof window !== "undefined";
|
|
22
|
+
};
|
|
23
|
+
const objectToJson = (object, params) => {
|
|
24
|
+
const { replacer, indentation } = params || {
|
|
25
|
+
replacer: void 0,
|
|
26
|
+
indentation: 2
|
|
27
|
+
};
|
|
28
|
+
return safeBigIntStringify(object, replacer, indentation);
|
|
29
|
+
};
|
|
30
|
+
const protoObjectToJson = (object, params) => {
|
|
31
|
+
const { replacer, indentation } = params || {
|
|
32
|
+
replacer: void 0,
|
|
33
|
+
indentation: 2
|
|
34
|
+
};
|
|
35
|
+
if (object.toObject !== void 0) return safeBigIntStringify(object.toObject(), replacer, indentation);
|
|
36
|
+
return objectToJson(object, {
|
|
37
|
+
replacer,
|
|
38
|
+
indentation
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const grpcCoinToUiCoin = (coin) => ({
|
|
42
|
+
amount: coin.amount,
|
|
43
|
+
denom: coin.denom
|
|
44
|
+
});
|
|
45
|
+
const sortObjectByKeysWithReduce = (obj) => {
|
|
46
|
+
if (typeof obj !== "object" || obj === null) return obj;
|
|
47
|
+
if (Array.isArray(obj)) return obj.map((e) => sortObjectByKeysWithReduce(e)).sort();
|
|
48
|
+
return Object.keys(obj).sort().reduce((sorted, k) => {
|
|
49
|
+
const key = k;
|
|
50
|
+
sorted[key] = sortObjectByKeysWithReduce(obj[key]);
|
|
51
|
+
return sorted;
|
|
52
|
+
}, {});
|
|
53
|
+
};
|
|
54
|
+
const sortObjectByKeys = (obj) => {
|
|
55
|
+
if (typeof obj !== "object" || obj === null) return obj;
|
|
56
|
+
if (Array.isArray(obj)) return obj.map(sortObjectByKeys);
|
|
57
|
+
const sortedKeys = Object.keys(obj).sort();
|
|
58
|
+
const result = {};
|
|
59
|
+
sortedKeys.forEach((key) => {
|
|
60
|
+
result[key] = sortObjectByKeys(obj[key]);
|
|
61
|
+
});
|
|
62
|
+
return result;
|
|
63
|
+
};
|
|
64
|
+
const getErrorMessage = (error, endpoint) => {
|
|
65
|
+
if (!error.response) return `The request to ${endpoint} has failed.`;
|
|
66
|
+
return error.response.data ? error.response.data.message || error.response.data : error.response.statusText;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Converts value to it's number representation
|
|
70
|
+
*/
|
|
71
|
+
const hexToNumber = (value) => {
|
|
72
|
+
const [negative, hexValue] = value.startsWith("-") ? [true, value.slice(1)] : [false, value];
|
|
73
|
+
const num = BigInt(hexValue);
|
|
74
|
+
if (num > Number.MAX_SAFE_INTEGER) return Number(negative ? -num : num);
|
|
75
|
+
if (num < Number.MIN_SAFE_INTEGER) return Number(num);
|
|
76
|
+
return negative ? -1 * Number(num) : Number(num);
|
|
77
|
+
};
|
|
78
|
+
function isJsonString(str) {
|
|
79
|
+
if (typeof str !== "string") return false;
|
|
80
|
+
try {
|
|
81
|
+
JSON.parse(str);
|
|
82
|
+
} catch (_unused) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* BigInt-safe JSON replacer function.
|
|
89
|
+
* Converts BigInt values to strings during JSON serialization.
|
|
90
|
+
*/
|
|
91
|
+
const bigIntReplacer = (_key, value) => typeof value === "bigint" ? bigIntToString(value) : value;
|
|
92
|
+
/**
|
|
93
|
+
* Converts a potentially bigint value to a number.
|
|
94
|
+
* Handles bigint, string, and other number-like types.
|
|
95
|
+
* Returns 0 for null/undefined values.
|
|
96
|
+
*/
|
|
97
|
+
const bigIntToNumber = (value) => {
|
|
98
|
+
if (value === null || value === void 0) return 0;
|
|
99
|
+
if (typeof value === "bigint") return Number(value);
|
|
100
|
+
if (typeof value === "string") return parseInt(value || "0", 10);
|
|
101
|
+
if (typeof value === "number") return value;
|
|
102
|
+
return parseInt(String(value || "0"), 10);
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Converts a potentially bigint value to a string.
|
|
106
|
+
* Handles bigint, string, and other types that can be converted to string.
|
|
107
|
+
* Returns empty string for null/undefined values.
|
|
108
|
+
*/
|
|
109
|
+
const bigIntToString = (value) => {
|
|
110
|
+
if (value === null || value === void 0) return "";
|
|
111
|
+
if (typeof value === "bigint") return value.toString();
|
|
112
|
+
if (typeof value === "string") return value;
|
|
113
|
+
if (typeof value === "number") return value.toString();
|
|
114
|
+
return String(value || "");
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Stringify an object to JSON with BigInt support.
|
|
118
|
+
* Converts BigInt values to strings during serialization to prevent
|
|
119
|
+
* "Do not know how to serialize a BigInt" errors.
|
|
120
|
+
*
|
|
121
|
+
* @param value - The value to serialize
|
|
122
|
+
* @param replacer - Optional custom replacer function (BigInt handling is applied first)
|
|
123
|
+
* @param space - Optional indentation for pretty printing
|
|
124
|
+
* @returns JSON string
|
|
125
|
+
*/
|
|
126
|
+
const safeBigIntStringify = (value, replacer, space) => {
|
|
127
|
+
const combinedReplacer = (key, val) => {
|
|
128
|
+
const bigIntHandled = bigIntReplacer(key, val);
|
|
129
|
+
return replacer ? replacer(key, bigIntHandled) : bigIntHandled;
|
|
130
|
+
};
|
|
131
|
+
return JSON.stringify(value, combinedReplacer, space);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
//#endregion
|
|
9
135
|
//#region src/utils/encoding.ts
|
|
10
136
|
/**
|
|
11
137
|
* Encoding/decoding utilities using industry-standard libraries
|
|
@@ -144,7 +270,7 @@ function binaryToBase64(data) {
|
|
|
144
270
|
* @returns Base64 encoded string
|
|
145
271
|
*/
|
|
146
272
|
function toBase64(data) {
|
|
147
|
-
return uint8ArrayToBase64(stringToUint8Array(
|
|
273
|
+
return uint8ArrayToBase64(stringToUint8Array(safeBigIntStringify(data)));
|
|
148
274
|
}
|
|
149
275
|
/**
|
|
150
276
|
* Convert a base64 string to JSON object
|
|
@@ -432,7 +558,7 @@ const sanitizeTypedData = (data) => {
|
|
|
432
558
|
return Object.fromEntries(entries);
|
|
433
559
|
}
|
|
434
560
|
case "[object Array]": return data.map((v) => sanitizeTypedData(v));
|
|
435
|
-
case "[object BigInt]": return data
|
|
561
|
+
case "[object BigInt]": return bigIntToString(data);
|
|
436
562
|
default: return data;
|
|
437
563
|
}
|
|
438
564
|
};
|
|
@@ -461,86 +587,6 @@ const TypedDataUtilsSanitizeData = sanitizeTypedData;
|
|
|
461
587
|
const TypedDataUtilsHashStruct = hashStruct;
|
|
462
588
|
const SignTypedDataVersionV4 = "V4";
|
|
463
589
|
|
|
464
|
-
//#endregion
|
|
465
|
-
//#region src/utils/helpers.ts
|
|
466
|
-
const isServerSide = () => typeof window === "undefined";
|
|
467
|
-
const isReactNative = () => {
|
|
468
|
-
return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
469
|
-
};
|
|
470
|
-
const isNode = () => {
|
|
471
|
-
if (typeof window === "undefined") return true;
|
|
472
|
-
return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
|
|
473
|
-
};
|
|
474
|
-
const isBrowser = () => {
|
|
475
|
-
if (isReactNative()) return false;
|
|
476
|
-
if (isNode()) return false;
|
|
477
|
-
return typeof window !== "undefined";
|
|
478
|
-
};
|
|
479
|
-
const objectToJson = (object, params) => {
|
|
480
|
-
const { replacer, indentation } = params || {
|
|
481
|
-
replacer: null,
|
|
482
|
-
indentation: 2
|
|
483
|
-
};
|
|
484
|
-
return JSON.stringify(object, replacer, indentation);
|
|
485
|
-
};
|
|
486
|
-
const protoObjectToJson = (object, params) => {
|
|
487
|
-
const { replacer, indentation } = params || {
|
|
488
|
-
replacer: null,
|
|
489
|
-
indentation: 2
|
|
490
|
-
};
|
|
491
|
-
if (object.toObject !== void 0) return JSON.stringify(object.toObject(), replacer, indentation);
|
|
492
|
-
return objectToJson(object, {
|
|
493
|
-
replacer,
|
|
494
|
-
indentation
|
|
495
|
-
});
|
|
496
|
-
};
|
|
497
|
-
const grpcCoinToUiCoin = (coin) => ({
|
|
498
|
-
amount: coin.amount,
|
|
499
|
-
denom: coin.denom
|
|
500
|
-
});
|
|
501
|
-
const sortObjectByKeysWithReduce = (obj) => {
|
|
502
|
-
if (typeof obj !== "object" || obj === null) return obj;
|
|
503
|
-
if (Array.isArray(obj)) return obj.map((e) => sortObjectByKeysWithReduce(e)).sort();
|
|
504
|
-
return Object.keys(obj).sort().reduce((sorted, k) => {
|
|
505
|
-
const key = k;
|
|
506
|
-
sorted[key] = sortObjectByKeysWithReduce(obj[key]);
|
|
507
|
-
return sorted;
|
|
508
|
-
}, {});
|
|
509
|
-
};
|
|
510
|
-
const sortObjectByKeys = (obj) => {
|
|
511
|
-
if (typeof obj !== "object" || obj === null) return obj;
|
|
512
|
-
if (Array.isArray(obj)) return obj.map(sortObjectByKeys);
|
|
513
|
-
const sortedKeys = Object.keys(obj).sort();
|
|
514
|
-
const result = {};
|
|
515
|
-
sortedKeys.forEach((key) => {
|
|
516
|
-
result[key] = sortObjectByKeys(obj[key]);
|
|
517
|
-
});
|
|
518
|
-
return result;
|
|
519
|
-
};
|
|
520
|
-
const getErrorMessage = (error, endpoint) => {
|
|
521
|
-
if (!error.response) return `The request to ${endpoint} has failed.`;
|
|
522
|
-
return error.response.data ? error.response.data.message || error.response.data : error.response.statusText;
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* Converts value to it's number representation
|
|
526
|
-
*/
|
|
527
|
-
const hexToNumber = (value) => {
|
|
528
|
-
const [negative, hexValue] = value.startsWith("-") ? [true, value.slice(1)] : [false, value];
|
|
529
|
-
const num = BigInt(hexValue);
|
|
530
|
-
if (num > Number.MAX_SAFE_INTEGER) return Number(negative ? -num : num);
|
|
531
|
-
if (num < Number.MIN_SAFE_INTEGER) return Number(num);
|
|
532
|
-
return negative ? -1 * Number(num) : Number(num);
|
|
533
|
-
};
|
|
534
|
-
function isJsonString(str) {
|
|
535
|
-
if (typeof str !== "string") return false;
|
|
536
|
-
try {
|
|
537
|
-
JSON.parse(str);
|
|
538
|
-
} catch (_unused) {
|
|
539
|
-
return false;
|
|
540
|
-
}
|
|
541
|
-
return true;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
590
|
//#endregion
|
|
545
591
|
//#region src/utils/numbers.ts
|
|
546
592
|
const $BigNumber = BigNumber.clone({ ROUNDING_MODE: BigNumber.ROUND_DOWN });
|
|
@@ -998,7 +1044,7 @@ var ChainGrpcCommonTransformer = class ChainGrpcCommonTransformer {
|
|
|
998
1044
|
}
|
|
999
1045
|
static grpcPaginationToPaginationV2(pagination) {
|
|
1000
1046
|
return {
|
|
1001
|
-
total: pagination ?
|
|
1047
|
+
total: pagination ? bigIntToNumber(pagination.total) : 0,
|
|
1002
1048
|
next: pagination ? ChainGrpcCommonTransformer.paginationUint8ArrayToString(pagination.nextKey) : ""
|
|
1003
1049
|
};
|
|
1004
1050
|
}
|
|
@@ -1038,15 +1084,16 @@ const grpcPagingToPaging = (pagination) => {
|
|
|
1038
1084
|
};
|
|
1039
1085
|
return {
|
|
1040
1086
|
...pagination,
|
|
1087
|
+
total: bigIntToNumber(pagination.total),
|
|
1041
1088
|
to: parseInt(pagination.to.toString() || "0", 10),
|
|
1042
1089
|
from: parseInt(pagination.from.toString() || "0", 10),
|
|
1043
|
-
|
|
1090
|
+
countBySubaccount: bigIntToNumber(pagination.countBySubaccount)
|
|
1044
1091
|
};
|
|
1045
1092
|
};
|
|
1046
1093
|
/**
|
|
1047
1094
|
* Converts gRPC Paging to ExchangePagination for V2 proto packages.
|
|
1048
1095
|
* Handles both InjectiveAccountsRpcPb.Paging and InjectiveExplorerRpcPb.Paging types.
|
|
1049
|
-
* Supports bigint and string types for the total
|
|
1096
|
+
* Supports bigint and string types for the total and countBySubaccount fields.
|
|
1050
1097
|
*/
|
|
1051
1098
|
const grpcPagingToPagingV2 = (pagination) => {
|
|
1052
1099
|
if (!pagination) return {
|
|
@@ -1054,13 +1101,12 @@ const grpcPagingToPagingV2 = (pagination) => {
|
|
|
1054
1101
|
from: 0,
|
|
1055
1102
|
total: 0
|
|
1056
1103
|
};
|
|
1057
|
-
const total = pagination.total;
|
|
1058
|
-
const totalNumber = typeof total === "bigint" ? Number(total) : typeof total === "string" ? parseInt(total || "0", 10) : parseInt(String(total) || "0", 10);
|
|
1059
1104
|
return {
|
|
1060
1105
|
...pagination,
|
|
1106
|
+
total: bigIntToNumber(pagination.total),
|
|
1061
1107
|
to: parseInt(pagination.to.toString() || "0", 10),
|
|
1062
1108
|
from: parseInt(pagination.from.toString() || "0", 10),
|
|
1063
|
-
|
|
1109
|
+
countBySubaccount: bigIntToNumber(pagination.countBySubaccount)
|
|
1064
1110
|
};
|
|
1065
1111
|
};
|
|
1066
1112
|
const fetchAllWithPagination = async (args, method, result = []) => {
|
|
@@ -1090,4 +1136,4 @@ const recoverTypedSignaturePubKey = async (data, signature) => {
|
|
|
1090
1136
|
};
|
|
1091
1137
|
|
|
1092
1138
|
//#endregion
|
|
1093
|
-
export { isNumber as $,
|
|
1139
|
+
export { isNumber as $, grpcCoinToUiCoin as $t, denomAmountToChainDenomAmountToFixed as A, BECH32_PUBKEY_ACC_PREFIX as At, derivativeQuantityFromChainQuantity as B, hexToBase64 as Bt, getSpotMarketTensMultiplier as C, sha256$1 as Ct, denomAmountFromChainDenomAmountToFixed as D, BECH32_ADDR_ACC_PREFIX as Dt, denomAmountFromChainDenomAmount as E, getGasPriceBasedOnMessage as Et, derivativeMarginToChainMarginToFixed as F, base64ToUtf8 as Ft, formatAmountToAllowableDecimals as G, toUtf8 as Gt, derivativeQuantityToChainQuantity as H, hexToUint8Array as Ht, derivativePriceFromChainPrice as I, binaryToBase64 as It, formatPriceToAllowableDecimals as J, uint8ArrayToString as Jt, formatNumberToAllowableDecimals as K, uint8ArrayToBase64 as Kt, derivativePriceFromChainPriceToFixed as L, concatUint8Arrays as Lt, derivativeMarginFromChainMargin as M, BECH32_PUBKEY_VAL_PREFIX as Mt, derivativeMarginFromChainMarginToFixed as N, DEFAULT_DERIVATION_PATH as Nt, denomAmountFromGrpcChainDenomAmount as O, BECH32_ADDR_CONS_PREFIX as Ot, derivativeMarginToChainMargin as P, base64ToUint8Array as Pt, getTensMultiplier as Q, getErrorMessage as Qt, derivativePriceToChainPrice as R, fromBase64 as Rt, getSpotMarketDecimals as S, sanitizeTypedData as St, cosmosSdkDecToBigNumber as T, ofacList as Tt, derivativeQuantityToChainQuantityToFixed as U, stringToUint8Array as Ut, derivativeQuantityFromChainQuantityToFixed as V, hexToBuff as Vt, formatAmountToAllowableAmount as W, toBase64 as Wt, getExactDecimalsFromNumber as X, bigIntToNumber as Xt, formatPriceToAllowablePrice as Y, bigIntReplacer as Yt, getSignificantDecimalsFromNumber as Z, bigIntToString as Zt, getSubaccountId as _, privateKeyHashToPublicKeyBase64 as _t, grpcPagingToPagingV2 as a, isServerSide as an, spotQuantityFromChainQuantity as at, getDerivativeMarketDecimals as b, publicKeyToAddress as bt, paginationUint8ArrayToString as c, safeBigIntStringify as cn, spotQuantityToChainQuantityToFixed as ct, getAddressFromInjectiveAddress as d, TypedDataUtilsSanitizeData as dt, hexToNumber as en, numberToCosmosSdkDecString as et, getChecksumAddress as f, decompressPubKey as ft, getInjectiveAddressFromSubaccountId as g, privateKeyHashToPublicKey as gt, getInjectiveAddress as h, messageHash as ht, grpcPagingToPaging as i, isReactNative as in, spotPriceToChainPriceToFixed as it, denomAmountToGrpcChainDenomAmount as j, BECH32_PUBKEY_CONS_PREFIX as jt, denomAmountToChainDenomAmount as k, BECH32_ADDR_VAL_PREFIX as kt, ChainGrpcCommonTransformer as l, sortObjectByKeys as ln, SignTypedDataVersionV4 as lt, getEthereumAddress as m, hashToHex as mt, fetchAllWithPagination as n, isJsonString as nn, spotPriceFromChainPriceToFixed as nt, pageRequestToGrpcPageRequestV2 as o, objectToJson as on, spotQuantityFromChainQuantityToFixed as ot, getDefaultSubaccountId as p, domainHash as pt, formatNumberToAllowableTensMultiplier as q, uint8ArrayToHex as qt, grpcPaginationToPagination as r, isNode as rn, spotPriceToChainPrice as rt, paginationRequestFromPagination as s, protoObjectToJson as sn, spotQuantityToChainQuantity as st, recoverTypedSignaturePubKey as t, isBrowser as tn, spotPriceFromChainPrice as tt, addHexPrefix as u, sortObjectByKeysWithReduce as un, TypedDataUtilsHashStruct as ut, isCw20ContractAddress as v, privateKeyToPublicKey as vt, amountToCosmosSdkDecAmount as w, parseCoins as wt, getDerivativeMarketTensMultiplier as x, ripemd160$1 as xt, removeHexPrefix as y, privateKeyToPublicKeyBase64 as yt, derivativePriceToChainPriceToFixed as z, fromUtf8 as zt };
|
package/dist/esm/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./BaseGrpcConsumer-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./any_pb-
|
|
5
|
-
import { $c as
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
1
|
+
import "./tx_pb-zz4o4hHG.js";
|
|
2
|
+
import "./BaseGrpcConsumer-6x4RlZ16.js";
|
|
3
|
+
import "./index-BJQt8IpY.js";
|
|
4
|
+
import "./any_pb-DBt7qvTr.js";
|
|
5
|
+
import { $c as grpcPagingToPagingV2, $l as derivativePriceToChainPrice, $u as ripemd160, Al as getInjectiveAddress, Au as isBrowser, Bl as cosmosSdkDecToBigNumber, Bu as SignTypedDataVersionV4, Cl as uint8ArrayToHex, Cu as spotQuantityToChainQuantityToFixed, Dl as getChecksumAddress, Du as getErrorMessage, El as getAddressFromInjectiveAddress, Eu as bigIntToString, Fl as getDerivativeMarketDecimals, Fu as objectToJson, Gl as denomAmountToChainDenomAmountToFixed, Gu as domainHash, Hl as denomAmountFromChainDenomAmountToFixed, Hu as TypedDataUtilsSanitizeData, Il as getDerivativeMarketTensMultiplier, Iu as protoObjectToJson, Jl as derivativeMarginFromChainMarginToFixed, Ju as privateKeyHashToPublicKey, Kl as denomAmountToGrpcChainDenomAmount, Ku as hashToHex, Ll as getSpotMarketDecimals, Lu as safeBigIntStringify, Ml as getSubaccountId, Mu as isNode, Nl as isCw20ContractAddress, Nu as isReactNative, Ol as getDefaultSubaccountId, Ou as grpcCoinToUiCoin, Pl as removeHexPrefix, Pu as isServerSide, Qc as grpcPagingToPaging, Ql as derivativePriceFromChainPriceToFixed, Qu as publicKeyToAddress, Rl as getSpotMarketTensMultiplier, Ru as sortObjectByKeys, Sl as uint8ArrayToBase64, Su as spotQuantityToChainQuantity, Tl as addHexPrefix, Tu as bigIntToNumber, Ul as denomAmountFromGrpcChainDenomAmount, Uu as TypedMessageV4, Vl as denomAmountFromChainDenomAmount, Vu as TypedDataUtilsHashStruct, Wl as denomAmountToChainDenomAmount, Wu as decompressPubKey, Xc as fetchAllWithPagination, Xl as derivativeMarginToChainMarginToFixed, Xu as privateKeyToPublicKey, Yc as recoverTypedSignaturePubKey, Yl as derivativeMarginToChainMargin, Yu as privateKeyHashToPublicKeyBase64, Zc as grpcPaginationToPagination, Zl as derivativePriceFromChainPrice, Zu as privateKeyToPublicKeyBase64, _l as hexToBuff, _u as spotPriceFromChainPriceToFixed, ad as GrpcWebFetchTransport, al as BECH32_ADDR_VAL_PREFIX, au as formatAmountToAllowableAmount, bl as toBase64, bu as spotQuantityFromChainQuantity, cd as makeTimeoutTimestampInNs, cl as BECH32_PUBKEY_VAL_PREFIX, cu as formatNumberToAllowableTensMultiplier, dd as protobufTimestampToUnixSeconds, dl as base64ToUtf8, du as getExactDecimalsFromNumber, ed as sanitizeTypedData, el as pageRequestToGrpcPageRequestV2, eu as derivativePriceToChainPriceToFixed, fl as binaryToBase64, fu as getSignificantDecimalsFromNumber, gl as hexToBase64, gu as spotPriceFromChainPrice, hl as fromUtf8, hu as numberToCosmosSdkDecString, id as getGrpcWebTransport, il as BECH32_ADDR_CONS_PREFIX, iu as derivativeQuantityToChainQuantityToFixed, jl as getInjectiveAddressFromSubaccountId, ju as isJsonString, kl as getEthereumAddress, ku as hexToNumber, ld as protobufTimestampToDate, ll as DEFAULT_DERIVATION_PATH, lu as formatPriceToAllowableDecimals, ml as fromBase64, mu as isNumber, nd as parseCoins, nl as paginationUint8ArrayToString, nu as derivativeQuantityFromChainQuantityToFixed, od as getGasPriceBasedOnMessage, ol as BECH32_PUBKEY_ACC_PREFIX, ou as formatAmountToAllowableDecimals, pl as concatUint8Arrays, pu as getTensMultiplier, ql as derivativeMarginFromChainMargin, qu as messageHash, rd as ofacList, rl as BECH32_ADDR_ACC_PREFIX, ru as derivativeQuantityToChainQuantity, sd as makeTimeoutTimestamp, sl as BECH32_PUBKEY_CONS_PREFIX, su as formatNumberToAllowableDecimals, td as sha256, tl as paginationRequestFromPagination, tu as derivativeQuantityFromChainQuantity, ud as protobufTimestampToUnixMs, ul as base64ToUint8Array, uu as formatPriceToAllowablePrice, vl as hexToUint8Array, vu as spotPriceToChainPrice, wl as uint8ArrayToString, wu as bigIntReplacer, xl as toUtf8, xu as spotQuantityFromChainQuantityToFixed, yl as stringToUint8Array, yu as spotPriceToChainPriceToFixed, zl as amountToCosmosSdkDecAmount, zu as sortObjectByKeysWithReduce } from "./index-Ch477yfL.js";
|
|
6
|
+
import "./index-Dn4OxoMy.js";
|
|
7
|
+
import "./index-B-SD0p02.js";
|
|
8
|
+
import "./index-DOyiZiUK.js";
|
|
9
|
+
import "./index-C_3bL-y4.js";
|
|
10
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, TypedMessageV4, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as isNumber, $t as
|
|
1
|
+
import { $ as isNumber, $t as grpcCoinToUiCoin, A as denomAmountToChainDenomAmountToFixed, At as BECH32_PUBKEY_ACC_PREFIX, B as derivativeQuantityFromChainQuantity, Bt as hexToBase64, C as getSpotMarketTensMultiplier, Ct as sha256, D as denomAmountFromChainDenomAmountToFixed, Dt as BECH32_ADDR_ACC_PREFIX, E as denomAmountFromChainDenomAmount, Et as getGasPriceBasedOnMessage, F as derivativeMarginToChainMarginToFixed, Ft as base64ToUtf8, G as formatAmountToAllowableDecimals, Gt as toUtf8, H as derivativeQuantityToChainQuantity, Ht as hexToUint8Array, I as derivativePriceFromChainPrice, It as binaryToBase64, J as formatPriceToAllowableDecimals, Jt as uint8ArrayToString, K as formatNumberToAllowableDecimals, Kt as uint8ArrayToBase64, L as derivativePriceFromChainPriceToFixed, Lt as concatUint8Arrays, M as derivativeMarginFromChainMargin, Mt as BECH32_PUBKEY_VAL_PREFIX, N as derivativeMarginFromChainMarginToFixed, Nt as DEFAULT_DERIVATION_PATH, O as denomAmountFromGrpcChainDenomAmount, Ot as BECH32_ADDR_CONS_PREFIX, P as derivativeMarginToChainMargin, Pt as base64ToUint8Array, Q as getTensMultiplier, Qt as getErrorMessage, R as derivativePriceToChainPrice, Rt as fromBase64, S as getSpotMarketDecimals, St as sanitizeTypedData, T as cosmosSdkDecToBigNumber, Tt as ofacList, U as derivativeQuantityToChainQuantityToFixed, Ut as stringToUint8Array, V as derivativeQuantityFromChainQuantityToFixed, Vt as hexToBuff, W as formatAmountToAllowableAmount, Wt as toBase64, X as getExactDecimalsFromNumber, Xt as bigIntToNumber, Y as formatPriceToAllowablePrice, Yt as bigIntReplacer, Z as getSignificantDecimalsFromNumber, Zt as bigIntToString, _ as getSubaccountId, _t as privateKeyHashToPublicKeyBase64, a as grpcPagingToPagingV2, an as isServerSide, at as spotQuantityFromChainQuantity, b as getDerivativeMarketDecimals, bt as publicKeyToAddress, c as paginationUint8ArrayToString, cn as safeBigIntStringify, ct as spotQuantityToChainQuantityToFixed, d as getAddressFromInjectiveAddress, dt as TypedDataUtilsSanitizeData, en as hexToNumber, et as numberToCosmosSdkDecString, f as getChecksumAddress, ft as decompressPubKey, g as getInjectiveAddressFromSubaccountId, gt as privateKeyHashToPublicKey, h as getInjectiveAddress, ht as messageHash, i as grpcPagingToPaging, in as isReactNative, it as spotPriceToChainPriceToFixed, j as denomAmountToGrpcChainDenomAmount, jt as BECH32_PUBKEY_CONS_PREFIX, k as denomAmountToChainDenomAmount, kt as BECH32_ADDR_VAL_PREFIX, ln as sortObjectByKeys, lt as SignTypedDataVersionV4, m as getEthereumAddress, mt as hashToHex, n as fetchAllWithPagination, nn as isJsonString, nt as spotPriceFromChainPriceToFixed, o as pageRequestToGrpcPageRequestV2, on as objectToJson, ot as spotQuantityFromChainQuantityToFixed, p as getDefaultSubaccountId, pt as domainHash, q as formatNumberToAllowableTensMultiplier, qt as uint8ArrayToHex, r as grpcPaginationToPagination, rn as isNode, rt as spotPriceToChainPrice, s as paginationRequestFromPagination, sn as protoObjectToJson, st as spotQuantityToChainQuantity, t as recoverTypedSignaturePubKey, tn as isBrowser, tt as spotPriceFromChainPrice, u as addHexPrefix, un as sortObjectByKeysWithReduce, ut as TypedDataUtilsHashStruct, v as isCw20ContractAddress, vt as privateKeyToPublicKey, w as amountToCosmosSdkDecAmount, wt as parseCoins, x as getDerivativeMarketTensMultiplier, xt as ripemd160, y as removeHexPrefix, yt as privateKeyToPublicKeyBase64, z as derivativePriceToChainPriceToFixed, zt as fromUtf8 } from "./utils-BFBu_LnJ.js";
|
|
2
2
|
import { a as protobufTimestampToUnixSeconds, i as protobufTimestampToUnixMs, n as makeTimeoutTimestampInNs, r as protobufTimestampToDate, t as makeTimeoutTimestamp } from "./time-DYEqYFao.js";
|
|
3
3
|
import { n as getGrpcWebTransport, t as GrpcWebFetchTransport } from "./grpc-lYZqzL0k.js";
|
|
4
4
|
|
|
5
|
-
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
5
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, bigIntToNumber, bigIntToString, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, safeBigIntStringify, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
|
-
"version": "1.17.2
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -306,14 +306,14 @@
|
|
|
306
306
|
"@cosmjs/amino": "0.33.0",
|
|
307
307
|
"@cosmjs/proto-signing": "0.33.0",
|
|
308
308
|
"@cosmjs/stargate": "0.33.0",
|
|
309
|
-
"@injectivelabs/abacus-proto-ts-v2": "1.17.
|
|
310
|
-
"@injectivelabs/core-proto-ts-v2": "1.17.
|
|
309
|
+
"@injectivelabs/abacus-proto-ts-v2": "1.17.4",
|
|
310
|
+
"@injectivelabs/core-proto-ts-v2": "1.17.3",
|
|
311
311
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
312
312
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
313
313
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
314
|
-
"@injectivelabs/indexer-proto-ts-v2": "1.17.
|
|
315
|
-
"@injectivelabs/mito-proto-ts-v2": "1.17.
|
|
316
|
-
"@injectivelabs/olp-proto-ts-v2": "1.17.
|
|
314
|
+
"@injectivelabs/indexer-proto-ts-v2": "1.17.5",
|
|
315
|
+
"@injectivelabs/mito-proto-ts-v2": "1.17.3",
|
|
316
|
+
"@injectivelabs/olp-proto-ts-v2": "1.17.3",
|
|
317
317
|
"@noble/curves": "^1.9.0",
|
|
318
318
|
"@noble/hashes": "^1.8.0",
|
|
319
319
|
"@protobuf-ts/grpcweb-transport": "^2.11.1",
|
|
@@ -324,17 +324,15 @@
|
|
|
324
324
|
"axios": "^1.13.2",
|
|
325
325
|
"cosmjs-types": "0.9.0",
|
|
326
326
|
"ethers": "^6.16.0",
|
|
327
|
+
"eventemitter3": "^5.0.1",
|
|
327
328
|
"http-status-codes": "^2.3.0",
|
|
328
329
|
"rxjs": "7.8.2",
|
|
329
330
|
"snakecase-keys": "^5.4.1",
|
|
330
331
|
"viem": "^2.41.2",
|
|
331
|
-
"@injectivelabs/
|
|
332
|
-
"@injectivelabs/
|
|
333
|
-
"@injectivelabs/
|
|
334
|
-
"@injectivelabs/ts-types": "1.17.2
|
|
335
|
-
},
|
|
336
|
-
"devDependencies": {
|
|
337
|
-
"shx": "^0.3.4"
|
|
332
|
+
"@injectivelabs/networks": "1.17.2",
|
|
333
|
+
"@injectivelabs/utils": "1.17.2",
|
|
334
|
+
"@injectivelabs/exceptions": "1.17.2",
|
|
335
|
+
"@injectivelabs/ts-types": "1.17.2"
|
|
338
336
|
},
|
|
339
337
|
"publishConfig": {
|
|
340
338
|
"access": "public"
|