@injectivelabs/sdk-ts 1.18.23 → 1.18.24
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-D20s0rdk.cjs → AbacusGrpcApi-U-0XgIsS.cjs} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-D3eBtnX-.cjs → BaseGrpcConsumer-Baz_ZnzI.cjs} +49 -4
- package/dist/cjs/{BaseGrpcConsumer-B0hgaf-W.d.cts → BaseGrpcConsumer-Lpd19eLZ.d.cts} +9 -1
- package/dist/cjs/{BaseIndexerGrpcConsumer-YYgLa4Qj.cjs → BaseIndexerGrpcConsumer-ChilNYlV.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-HCEhKxii.cjs → ChainGrpcExchangeApi-Ch1SgMjY.cjs} +2 -2
- package/dist/cjs/{ChainRestTendermintApi-BvCQntWI.cjs → ChainRestTendermintApi-COqTruoD.cjs} +2 -2
- package/dist/cjs/{IndexerGrpcWeb3GwApi-PomoqzKU.cjs → IndexerGrpcWeb3GwApi-BDH3Pyr6.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-DHTBupU-.cjs → MsgSetDenomMetadata-CebS5LD4.cjs} +2 -2
- package/dist/cjs/{OLPGrpcApi-Bs85G4Zy.cjs → OLPGrpcApi-C58l_b_2.cjs} +1 -1
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-C8v0BWFG.cjs → QueryTradingStrategyContractTotalStrategies-BiIMpmJw.cjs} +2 -2
- package/dist/cjs/{StreamManagerV2-BlaYMgW3.cjs → StreamManagerV2-J45IvgwP.cjs} +54 -53
- package/dist/cjs/{TcAbacusGrpcApi-C9Q51NfB.cjs → TcAbacusGrpcApi-D81-wnP0.cjs} +1 -1
- package/dist/cjs/{chain-DiG3S2xE.cjs → chain-DlfCX5eV.cjs} +3 -3
- package/dist/cjs/client/abacus.cjs +3 -2
- package/dist/cjs/client/abacus.d.cts +2 -2
- package/dist/cjs/client/chain.cjs +6 -5
- package/dist/cjs/client/chain.d.cts +5 -5
- package/dist/cjs/client/indexer.cjs +7 -6
- package/dist/cjs/client/indexer.d.cts +5 -5
- package/dist/cjs/client/olp.cjs +4 -3
- package/dist/cjs/client/olp.d.cts +2 -2
- package/dist/cjs/client/tcAbacus.cjs +3 -2
- package/dist/cjs/client/tcAbacus.d.cts +2 -2
- package/dist/cjs/client/wasm.cjs +8 -7
- package/dist/cjs/core/accounts.d.cts +5 -5
- package/dist/cjs/core/modules.cjs +10 -9
- package/dist/cjs/core/modules.d.cts +5 -5
- package/dist/cjs/core/tx.cjs +7 -6
- package/dist/cjs/core/tx.d.cts +5 -5
- package/dist/cjs/cosmjs.cjs +8 -7
- package/dist/cjs/exports.cjs +8 -7
- package/dist/cjs/{index-DDlyRc5p.d.cts → index-BOgI4kn6.d.cts} +1 -1
- package/dist/cjs/{index-ClEub7KI.d.cts → index-BqITpFrq.d.cts} +2 -2
- package/dist/cjs/{index-B1LZt9Ba.d.cts → index-DXUIh6mX.d.cts} +1 -1
- package/dist/cjs/{index-9AznyVQE.d.cts → index-Y7y9XqgY.d.cts} +1 -1
- package/dist/cjs/index.cjs +22 -21
- package/dist/cjs/index.d.cts +5 -5
- package/dist/cjs/{service-D7PCdXqp.cjs → service-V-f8W7rn.cjs} +1 -1
- package/dist/cjs/service.cjs +3 -2
- package/dist/cjs/stream-CfBvG3Ln.cjs +87 -0
- package/dist/cjs/{tx-CfOqIbPJ.cjs → tx-DW1Z6i1x.cjs} +3 -3
- package/dist/cjs/{types-BSrt7JzM.cjs → types-Cn54Lzf-.cjs} +0 -86
- package/dist/cjs/types.cjs +6 -5
- package/dist/cjs/utils.d.cts +5 -5
- package/dist/esm/{AbacusGrpcApi-5_yoQhYn.js → AbacusGrpcApi-B4YWpm-V.js} +1 -1
- package/dist/esm/{BaseGrpcConsumer-CK201Yfq.js → BaseGrpcConsumer-1Fv9J-Lp.js} +49 -4
- package/dist/esm/{BaseGrpcConsumer-BnUgov1D.d.ts → BaseGrpcConsumer-D__FlbC_.d.ts} +10 -2
- package/dist/esm/{BaseIndexerGrpcConsumer-Cig9Weiv.js → BaseIndexerGrpcConsumer-Ek6rfBH7.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-p4Qb1h7v.js → ChainGrpcExchangeApi-BApB4VXN.js} +2 -2
- package/dist/esm/{ChainRestTendermintApi-C_NNsrIz.js → ChainRestTendermintApi-DQdsD1Kf.js} +2 -2
- package/dist/esm/{IndexerGrpcWeb3GwApi-ClF9dNYJ.js → IndexerGrpcWeb3GwApi-QDeKgWsp.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-BdGx_g0q.js → MsgSetDenomMetadata-B8R3A3Z2.js} +2 -2
- package/dist/esm/{OLPGrpcApi-B8nlTHBl.js → OLPGrpcApi-Cn6LmYcu.js} +1 -1
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DFvMhigV.js → QueryTradingStrategyContractTotalStrategies-BhAe-C30.js} +2 -2
- package/dist/esm/{StreamManagerV2-DySHgXZI.js → StreamManagerV2-CukGXKvI.js} +6 -5
- package/dist/esm/{TcAbacusGrpcApi-DmZ-Qjr_.js → TcAbacusGrpcApi-DUch8B-a.js} +1 -1
- package/dist/esm/{chain-B3A9VY7_.js → chain-CrzcdwXB.js} +3 -3
- package/dist/esm/client/abacus.d.ts +3 -3
- package/dist/esm/client/abacus.js +3 -2
- package/dist/esm/client/chain.d.ts +8 -8
- package/dist/esm/client/chain.js +6 -5
- package/dist/esm/client/indexer.d.ts +8 -8
- package/dist/esm/client/indexer.js +7 -6
- package/dist/esm/client/olp.d.ts +3 -3
- package/dist/esm/client/olp.js +4 -3
- package/dist/esm/client/tcAbacus.d.ts +3 -3
- package/dist/esm/client/tcAbacus.js +3 -2
- package/dist/esm/client/wasm.d.ts +2 -2
- package/dist/esm/client/wasm.js +8 -7
- package/dist/esm/core/accounts.d.ts +8 -8
- package/dist/esm/core/modules.d.ts +8 -8
- package/dist/esm/core/modules.js +10 -9
- package/dist/esm/core/tx.d.ts +8 -8
- package/dist/esm/core/tx.js +7 -6
- package/dist/esm/cosmjs.d.ts +1 -1
- package/dist/esm/cosmjs.js +8 -7
- package/dist/esm/exports.d.ts +1 -1
- package/dist/esm/exports.js +8 -7
- package/dist/esm/{index-C_OOzEph.d.ts → index-B23H1gkY.d.ts} +4 -4
- package/dist/esm/{index-DhfsaTNU.d.ts → index-BArbGWnC.d.ts} +1 -1
- package/dist/esm/{index-ECwAlIYI.d.ts → index-CFBKZfge.d.ts} +1 -1
- package/dist/esm/{index-Bn3MMVpZ.d.ts → index-CTo6Ykx5.d.ts} +1 -1
- package/dist/esm/{index-Dc_UE3NR.d.ts → index-DldKexyA.d.ts} +1 -1
- package/dist/esm/{index-DSXLogeY.d.ts → index-gSJSfilR.d.ts} +1 -1
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js +18 -17
- package/dist/esm/{service-CuS3psRy.js → service-CpGjjdLV.js} +1 -1
- package/dist/esm/service.d.ts +2 -2
- package/dist/esm/service.js +3 -2
- package/dist/esm/stream-76M0PY9K.js +63 -0
- package/dist/esm/{tx-C696L2a1.js → tx-DoXJcHMC.js} +3 -3
- package/dist/esm/{types-WE16qNvL.js → types-tAnfZSw9.js} +1 -63
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.js +2 -1
- package/dist/esm/utils.d.ts +8 -8
- package/package.json +5 -5
- /package/dist/cjs/{BaseRestConsumer-CRkyjiSo.cjs → BaseRestConsumer-uSzCOit7.cjs} +0 -0
- /package/dist/cjs/{DirectEthSecp256k1Wallet-fFpCA8sp.cjs → DirectEthSecp256k1Wallet-B47wfyu3.cjs} +0 -0
- /package/dist/cjs/{ExecArgNeptuneWithdraw--tacGqxE.cjs → ExecArgNeptuneWithdraw-DJWhAi2w.cjs} +0 -0
- /package/dist/esm/{BaseRestConsumer-BySVL6Rh.js → BaseRestConsumer-Ca8S09Yp.js} +0 -0
- /package/dist/esm/{DirectEthSecp256k1Wallet--KKmwr9n.js → DirectEthSecp256k1Wallet-bZZ4bjk5.js} +0 -0
- /package/dist/esm/{ExecArgNeptuneWithdraw-DRip7cop.js → ExecArgNeptuneWithdraw-DRCUYj-r.js} +0 -0
- /package/dist/esm/{index-C8crIAg1.d.ts → index-CKcfmB-c.d.ts} +0 -0
- /package/dist/esm/{index-CZDITwmg.d.ts → index-QxYC3RN5.d.ts} +0 -0
package/dist/esm/service.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./utils-XYJbh13N.js";
|
|
2
2
|
import "./defineProperty-HO0rQlTT.js";
|
|
3
3
|
import "./grpc-BJmNoike.js";
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
4
|
+
import "./stream-76M0PY9K.js";
|
|
5
|
+
import "./types-tAnfZSw9.js";
|
|
6
|
+
import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-CpGjjdLV.js";
|
|
6
7
|
|
|
7
8
|
export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region src/types/stream.ts
|
|
2
|
+
/**
|
|
3
|
+
* Subscription interface for stream management with event-based lifecycle
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* gRPC Status Codes
|
|
7
|
+
* @see https://grpc.io/docs/guides/status-codes/
|
|
8
|
+
*/
|
|
9
|
+
const GrpcStatusCode = {
|
|
10
|
+
OK: 0,
|
|
11
|
+
CANCELLED: 1,
|
|
12
|
+
UNKNOWN: 2,
|
|
13
|
+
INVALID_ARGUMENT: 3,
|
|
14
|
+
DEADLINE_EXCEEDED: 4,
|
|
15
|
+
NOT_FOUND: 5,
|
|
16
|
+
ALREADY_EXISTS: 6,
|
|
17
|
+
PERMISSION_DENIED: 7,
|
|
18
|
+
RESOURCE_EXHAUSTED: 8,
|
|
19
|
+
FAILED_PRECONDITION: 9,
|
|
20
|
+
ABORTED: 10,
|
|
21
|
+
OUT_OF_RANGE: 11,
|
|
22
|
+
UNIMPLEMENTED: 12,
|
|
23
|
+
INTERNAL: 13,
|
|
24
|
+
UNAVAILABLE: 14,
|
|
25
|
+
DATA_LOSS: 15,
|
|
26
|
+
UNAUTHENTICATED: 16
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Enhanced disconnect reasons with gRPC error code mapping
|
|
30
|
+
*/
|
|
31
|
+
const StreamDisconnectReason = {
|
|
32
|
+
UserStopped: "user-stopped",
|
|
33
|
+
StreamError: "stream-error",
|
|
34
|
+
NetworkError: "network-error",
|
|
35
|
+
Timeout: "timeout",
|
|
36
|
+
AuthenticationError: "authentication-error",
|
|
37
|
+
InvalidRequest: "invalid-request",
|
|
38
|
+
RateLimited: "rate-limited",
|
|
39
|
+
MaxRetries: "max-retries",
|
|
40
|
+
StreamEnded: "stream-ended"
|
|
41
|
+
};
|
|
42
|
+
const StreamEvent = {
|
|
43
|
+
Data: "data",
|
|
44
|
+
Connect: "connect",
|
|
45
|
+
Disconnect: "disconnect",
|
|
46
|
+
Retry: "retry",
|
|
47
|
+
StateChange: "state:change",
|
|
48
|
+
Error: "error",
|
|
49
|
+
Warn: "warn"
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* StreamManager
|
|
53
|
+
*/
|
|
54
|
+
const StreamState = {
|
|
55
|
+
Idle: "idle",
|
|
56
|
+
Connecting: "connecting",
|
|
57
|
+
Connected: "connected",
|
|
58
|
+
Reconnecting: "reconnecting",
|
|
59
|
+
Stopped: "stopped"
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { StreamState as i, StreamDisconnectReason as n, StreamEvent as r, GrpcStatusCode as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Et as getGasPriceBasedOnMessage, Jt as stringToUint8Array, Qt as uint8ArrayToHex, Tt as ofacList, Xt as toUtf8, Zt as uint8ArrayToBase64, mn as sortObjectByKeys, mt as hashToHex, qt as hexToUint8Array, rn as getErrorMessage, zt as base64ToUint8Array } from "./utils-XYJbh13N.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
3
|
import { S as createSignDoc, T as createSigners, b as createFee, n as PrivateKey, t as BaseAccount, v as createAuthInfo, y as createBody } from "./accounts-B_eo5rUB.js";
|
|
4
|
-
import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-
|
|
5
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
6
|
-
import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-
|
|
4
|
+
import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-DQdsD1Kf.js";
|
|
5
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-1Fv9J-Lp.js";
|
|
6
|
+
import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-QDeKgWsp.js";
|
|
7
7
|
import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
|
|
8
8
|
import { keccak256 } from "viem";
|
|
9
9
|
import { DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, getDefaultStdFee, getStdFee, getStdFeeFromString, toBigNumber } from "@injectivelabs/utils";
|
|
@@ -36,68 +36,6 @@ const TokenSource = {
|
|
|
36
36
|
Axelar: "axelar"
|
|
37
37
|
};
|
|
38
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
39
|
//#endregion
|
|
102
40
|
//#region src/types/exchange.ts
|
|
103
41
|
/**
|
|
@@ -159,4 +97,4 @@ const StreamOperation = {
|
|
|
159
97
|
};
|
|
160
98
|
|
|
161
99
|
//#endregion
|
|
162
|
-
export { TradeDirection as a,
|
|
100
|
+
export { TradeDirection as a, TokenSource as c, OrderState as i, TokenType as l, OrderMaskMap as n, TradeExecutionSide as o, OrderSide as r, TradeExecutionType as s, StreamOperation as t, TokenVerification as u };
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./tx_pb-B9KzLX7v.js";
|
|
2
|
-
import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-
|
|
2
|
+
import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-CKcfmB-c.js";
|
|
3
3
|
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, GrpcWebTransportAdditionalOptions, 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,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as StreamState, n as StreamDisconnectReason, r as StreamEvent, t as GrpcStatusCode } from "./stream-76M0PY9K.js";
|
|
2
|
+
import { a as TradeDirection, c as TokenSource, i as OrderState, l as TokenType, n as OrderMaskMap, o as TradeExecutionSide, r as OrderSide, s as TradeExecutionType, t as StreamOperation, u as TokenVerification } from "./types-tAnfZSw9.js";
|
|
2
3
|
|
|
3
4
|
export { GrpcStatusCode, OrderMaskMap, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, StreamState, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
package/dist/esm/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./tx_pb-B9KzLX7v.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { $d as spotQuantityToChainQuantity, $u as uint8ArrayToBase64, Ad as derivativePriceToChainPrice, Af as ripemd160, Au as grpcPagingToPagingV2, Bd as formatPriceToAllowableDecimals, Bf as protobufTimestampToUnixMs, Bu as DEFAULT_DERIVATION_PATH, Cd as denomAmountToGrpcChainDenomAmount, Cf as hashToHex, Dd as derivativeMarginToChainMarginToFixed, Df as privateKeyToPublicKey, Du as fetchAllWithPagination, Eb as GrpcWebFetchTransport, Ed as derivativeMarginToChainMargin, Ef as privateKeyHashToPublicKeyBase64, Eu as recoverTypedSignaturePubKey, Fd as derivativeQuantityToChainQuantityToFixed, Ff as getGrpcWebTransport, Fu as BECH32_ADDR_CONS_PREFIX, Gd as isNumber, Gu as fromBase64, Hd as getExactDecimalsFromNumber, Hu as base64ToUtf8, Id as formatAmountToAllowableAmount, If as getGasPriceBasedOnMessage, Iu as BECH32_ADDR_VAL_PREFIX, Jd as spotPriceFromChainPriceToFixed, Ju as hexToBuff, Kd as numberToCosmosSdkDecString, Ku as fromUtf8, Ld as formatAmountToAllowableDecimals, Lf as makeTimeoutTimestamp, Lu as BECH32_PUBKEY_ACC_PREFIX, Md as derivativeQuantityFromChainQuantity, Mf as sha256, Mu as paginationRequestFromPagination, Nd as derivativeQuantityFromChainQuantityToFixed, Nf as parseCoins, Nu as paginationUint8ArrayToString, Od as derivativePriceFromChainPrice, Of as privateKeyToPublicKeyBase64, Ou as grpcPaginationToPagination, Pd as derivativeQuantityToChainQuantity, Pf as ofacList, Pu as BECH32_ADDR_ACC_PREFIX, Qd as spotQuantityFromChainQuantityToFixed, Qu as toUtf8, Rd as formatNumberToAllowableDecimals, Rf as makeTimeoutTimestampInNs, Ru as BECH32_PUBKEY_CONS_PREFIX, Sd as denomAmountToChainDenomAmountToFixed, Sf as domainHash, Td as derivativeMarginFromChainMarginToFixed, Tf as privateKeyHashToPublicKey, Ud as getSignificantDecimalsFromNumber, Uu as binaryToBase64, Vd as formatPriceToAllowablePrice, Vf as protobufTimestampToUnixSeconds, Vu as base64ToUint8Array, Wd as getTensMultiplier, Wu as concatUint8Arrays, Xd as spotPriceToChainPriceToFixed, Xu as stringToUint8Array, Yd as spotPriceToChainPrice, Yu as hexToUint8Array, Zd as spotQuantityFromChainQuantity, Zu as toBase64, _d as cosmosSdkDecToBigNumber, _f as SignTypedDataVersionV4, ad as getDefaultSubaccountId, af as grpcCoinToUiCoin, bd as denomAmountFromGrpcChainDenomAmount, bf as TypedMessageV4, cd as getInjectiveAddressFromSubaccountId, cf as isJsonString, dd as removeHexPrefix, df as isServerSide, ed as uint8ArrayToHex, ef as spotQuantityToChainQuantityToFixed, fd as getDerivativeMarketDecimals, ff as objectToJson, gd as amountToCosmosSdkDecAmount, gf as sortObjectByKeysWithReduce, hd as getSpotMarketTensMultiplier, hf as sortObjectByKeys, id as getChecksumAddress, if as getErrorMessage, jd as derivativePriceToChainPriceToFixed, jf as sanitizeTypedData, ju as pageRequestToGrpcPageRequestV2, kd as derivativePriceFromChainPriceToFixed, kf as publicKeyToAddress, ku as grpcPagingToPaging, ld as getSubaccountId, lf as isNode, md as getSpotMarketDecimals, mf as safeBigIntStringify, nd as addHexPrefix, nf as bigIntToNumber, od as getEthereumAddress, of as hexToNumber, pd as getDerivativeMarketTensMultiplier, pf as protoObjectToJson, qd as spotPriceFromChainPrice, qu as hexToBase64, rd as getAddressFromInjectiveAddress, rf as bigIntToString, sd as getInjectiveAddress, sf as isBrowser, td as uint8ArrayToString, tf as bigIntReplacer, ud as isCw20ContractAddress, uf as isReactNative, vd as denomAmountFromChainDenomAmount, vf as TypedDataUtilsHashStruct, wd as derivativeMarginFromChainMargin, wf as messageHash, xd as denomAmountToChainDenomAmount, xf as decompressPubKey, yd as denomAmountFromChainDenomAmountToFixed, yf as TypedDataUtilsSanitizeData, zd as formatNumberToAllowableTensMultiplier, zf as protobufTimestampToDate, zu as BECH32_PUBKEY_VAL_PREFIX } from "./index-
|
|
4
|
-
import "./BaseGrpcConsumer-
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
2
|
+
import "./index-CKcfmB-c.js";
|
|
3
|
+
import { $d as spotQuantityToChainQuantity, $u as uint8ArrayToBase64, Ad as derivativePriceToChainPrice, Af as ripemd160, Au as grpcPagingToPagingV2, Bd as formatPriceToAllowableDecimals, Bf as protobufTimestampToUnixMs, Bu as DEFAULT_DERIVATION_PATH, Cd as denomAmountToGrpcChainDenomAmount, Cf as hashToHex, Dd as derivativeMarginToChainMarginToFixed, Df as privateKeyToPublicKey, Du as fetchAllWithPagination, Eb as GrpcWebFetchTransport, Ed as derivativeMarginToChainMargin, Ef as privateKeyHashToPublicKeyBase64, Eu as recoverTypedSignaturePubKey, Fd as derivativeQuantityToChainQuantityToFixed, Ff as getGrpcWebTransport, Fu as BECH32_ADDR_CONS_PREFIX, Gd as isNumber, Gu as fromBase64, Hd as getExactDecimalsFromNumber, Hu as base64ToUtf8, Id as formatAmountToAllowableAmount, If as getGasPriceBasedOnMessage, Iu as BECH32_ADDR_VAL_PREFIX, Jd as spotPriceFromChainPriceToFixed, Ju as hexToBuff, Kd as numberToCosmosSdkDecString, Ku as fromUtf8, Ld as formatAmountToAllowableDecimals, Lf as makeTimeoutTimestamp, Lu as BECH32_PUBKEY_ACC_PREFIX, Md as derivativeQuantityFromChainQuantity, Mf as sha256, Mu as paginationRequestFromPagination, Nd as derivativeQuantityFromChainQuantityToFixed, Nf as parseCoins, Nu as paginationUint8ArrayToString, Od as derivativePriceFromChainPrice, Of as privateKeyToPublicKeyBase64, Ou as grpcPaginationToPagination, Pd as derivativeQuantityToChainQuantity, Pf as ofacList, Pu as BECH32_ADDR_ACC_PREFIX, Qd as spotQuantityFromChainQuantityToFixed, Qu as toUtf8, Rd as formatNumberToAllowableDecimals, Rf as makeTimeoutTimestampInNs, Ru as BECH32_PUBKEY_CONS_PREFIX, Sd as denomAmountToChainDenomAmountToFixed, Sf as domainHash, Td as derivativeMarginFromChainMarginToFixed, Tf as privateKeyHashToPublicKey, Ud as getSignificantDecimalsFromNumber, Uu as binaryToBase64, Vd as formatPriceToAllowablePrice, Vf as protobufTimestampToUnixSeconds, Vu as base64ToUint8Array, Wd as getTensMultiplier, Wu as concatUint8Arrays, Xd as spotPriceToChainPriceToFixed, Xu as stringToUint8Array, Yd as spotPriceToChainPrice, Yu as hexToUint8Array, Zd as spotQuantityFromChainQuantity, Zu as toBase64, _d as cosmosSdkDecToBigNumber, _f as SignTypedDataVersionV4, ad as getDefaultSubaccountId, af as grpcCoinToUiCoin, bd as denomAmountFromGrpcChainDenomAmount, bf as TypedMessageV4, cd as getInjectiveAddressFromSubaccountId, cf as isJsonString, dd as removeHexPrefix, df as isServerSide, ed as uint8ArrayToHex, ef as spotQuantityToChainQuantityToFixed, fd as getDerivativeMarketDecimals, ff as objectToJson, gd as amountToCosmosSdkDecAmount, gf as sortObjectByKeysWithReduce, hd as getSpotMarketTensMultiplier, hf as sortObjectByKeys, id as getChecksumAddress, if as getErrorMessage, jd as derivativePriceToChainPriceToFixed, jf as sanitizeTypedData, ju as pageRequestToGrpcPageRequestV2, kd as derivativePriceFromChainPriceToFixed, kf as publicKeyToAddress, ku as grpcPagingToPaging, ld as getSubaccountId, lf as isNode, md as getSpotMarketDecimals, mf as safeBigIntStringify, nd as addHexPrefix, nf as bigIntToNumber, od as getEthereumAddress, of as hexToNumber, pd as getDerivativeMarketTensMultiplier, pf as protoObjectToJson, qd as spotPriceFromChainPrice, qu as hexToBase64, rd as getAddressFromInjectiveAddress, rf as bigIntToString, sd as getInjectiveAddress, sf as isBrowser, td as uint8ArrayToString, tf as bigIntReplacer, ud as isCw20ContractAddress, uf as isReactNative, vd as denomAmountFromChainDenomAmount, vf as TypedDataUtilsHashStruct, wd as derivativeMarginFromChainMargin, wf as messageHash, xd as denomAmountToChainDenomAmount, xf as decompressPubKey, yd as denomAmountFromChainDenomAmountToFixed, yf as TypedDataUtilsSanitizeData, zd as formatNumberToAllowableTensMultiplier, zf as protobufTimestampToDate, zu as BECH32_PUBKEY_VAL_PREFIX } from "./index-B23H1gkY.js";
|
|
4
|
+
import "./BaseGrpcConsumer-D__FlbC_.js";
|
|
5
|
+
import "./index-gSJSfilR.js";
|
|
6
|
+
import "./index-CFBKZfge.js";
|
|
7
|
+
import "./index-DldKexyA.js";
|
|
8
|
+
import "./index-CTo6Ykx5.js";
|
|
9
|
+
import "./index-BArbGWnC.js";
|
|
10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.24",
|
|
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": {
|
|
@@ -350,10 +350,10 @@
|
|
|
350
350
|
"rxjs": "7.8.2",
|
|
351
351
|
"snakecase-keys": "^5.4.1",
|
|
352
352
|
"viem": "^2.41.2",
|
|
353
|
-
"@injectivelabs/exceptions": "1.18.
|
|
354
|
-
"@injectivelabs/networks": "1.18.
|
|
355
|
-
"@injectivelabs/ts-types": "1.18.
|
|
356
|
-
"@injectivelabs/utils": "1.18.
|
|
353
|
+
"@injectivelabs/exceptions": "1.18.24",
|
|
354
|
+
"@injectivelabs/networks": "1.18.24",
|
|
355
|
+
"@injectivelabs/ts-types": "1.18.24",
|
|
356
|
+
"@injectivelabs/utils": "1.18.24"
|
|
357
357
|
},
|
|
358
358
|
"publishConfig": {
|
|
359
359
|
"access": "public"
|
|
File without changes
|
/package/dist/cjs/{DirectEthSecp256k1Wallet-fFpCA8sp.cjs → DirectEthSecp256k1Wallet-B47wfyu3.cjs}
RENAMED
|
File without changes
|
/package/dist/cjs/{ExecArgNeptuneWithdraw--tacGqxE.cjs → ExecArgNeptuneWithdraw-DJWhAi2w.cjs}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/esm/{DirectEthSecp256k1Wallet--KKmwr9n.js → DirectEthSecp256k1Wallet-bZZ4bjk5.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|