@injectivelabs/sdk-ts 1.17.2-alpha.9 → 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.
Files changed (114) hide show
  1. package/dist/cjs/{AbacusGrpcApi-vcp-9fNL.cjs → AbacusGrpcApi-DXSuhb6R.cjs} +1 -1
  2. package/dist/cjs/{BaseGrpcConsumer-DUwCngI6.cjs → BaseGrpcConsumer-EtEQfhmo.cjs} +47 -6
  3. package/dist/{esm/BaseGrpcConsumer-BbvNzhrS.d.ts → cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts} +14 -2
  4. package/dist/cjs/{BaseIndexerGrpcConsumer-BGLVnJtw.cjs → BaseIndexerGrpcConsumer-CW1kTn-_.cjs} +1 -1
  5. package/dist/cjs/{ChainGrpcExchangeApi-DLpkgEyg.cjs → ChainGrpcExchangeApi-CF9ATYqN.cjs} +3 -3
  6. package/dist/cjs/{ChainRestTendermintApi-BiZOeKcG.cjs → ChainRestTendermintApi-vL0g-BF-.cjs} +2 -2
  7. package/dist/cjs/{DirectEthSecp256k1Wallet-CU18lti3.cjs → DirectEthSecp256k1Wallet-CIdxvYjL.cjs} +2 -2
  8. package/dist/cjs/{ExecArgNeptuneWithdraw-DOHeo3AJ.cjs → ExecArgNeptuneWithdraw-C-NQ72VM.cjs} +1 -1
  9. package/dist/cjs/{IndexerGrpcWeb3GwApi-BgWT2tWK.cjs → IndexerGrpcWeb3GwApi-C7kkr4Il.cjs} +2 -2
  10. package/dist/cjs/{MsgSetDenomMetadata-CUoGqV8P.cjs → MsgSetDenomMetadata-CKvxIq_t.cjs} +21 -10
  11. package/dist/cjs/{OLPGrpcApi-B9O9HcGv.cjs → OLPGrpcApi-BCCb6fBZ.cjs} +1 -1
  12. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-Bh8AXm4k.cjs → QueryTradingStrategyContractTotalStrategies-Ayot_18R.cjs} +3 -3
  13. package/dist/cjs/{IndexerGrpcAccountPortfolioStream-DO5_FF4l.cjs → StreamManagerV2-igv0mn2I.cjs} +1375 -378
  14. package/dist/cjs/{accounts-CXaUasU5.cjs → accounts-CHKUxDIf.cjs} +1 -1
  15. package/dist/{esm/any_pb-B1YYUSUf.d.ts → cjs/any_pb-CutLnOUR.d.cts} +2 -2
  16. package/dist/cjs/{chain-Cs9sNuT1.cjs → chain-CGHrf7gg.cjs} +4 -4
  17. package/dist/cjs/client/abacus.cjs +2 -2
  18. package/dist/cjs/client/abacus.d.cts +2 -2
  19. package/dist/cjs/client/chain.cjs +5 -5
  20. package/dist/cjs/client/chain.d.cts +9 -9
  21. package/dist/cjs/client/indexer.cjs +74 -60
  22. package/dist/cjs/client/indexer.d.cts +10 -10
  23. package/dist/cjs/client/olp.cjs +3 -3
  24. package/dist/cjs/client/olp.d.cts +2 -2
  25. package/dist/cjs/client/wasm.cjs +7 -7
  26. package/dist/cjs/client/wasm.d.cts +2 -2
  27. package/dist/cjs/core/accounts.cjs +2 -2
  28. package/dist/cjs/core/accounts.d.cts +9 -9
  29. package/dist/cjs/core/modules.cjs +10 -10
  30. package/dist/cjs/core/modules.d.cts +9 -9
  31. package/dist/cjs/core/tx.cjs +7 -7
  32. package/dist/cjs/core/tx.d.cts +9 -9
  33. package/dist/cjs/cosmjs.cjs +8 -8
  34. package/dist/cjs/cosmjs.d.cts +3 -3
  35. package/dist/cjs/exports.cjs +8 -8
  36. package/dist/cjs/exports.d.cts +3 -3
  37. package/dist/cjs/{index-Cc5Q73-y.d.cts → index-CGvISJoE.d.cts} +1 -1
  38. package/dist/cjs/{index-CKBod1ba.d.cts → index-CO3Y9drx.d.cts} +4 -3
  39. package/dist/cjs/{index-Cc4mqAsR.d.cts → index-D6ubyMlR.d.cts} +1 -1
  40. package/dist/{esm/index-DdGVE3_u.d.ts → cjs/index-DWbxb1AB.d.cts} +7 -13
  41. package/dist/cjs/{index-1Wy-0PTh.d.cts → index-DemZnO3c.d.cts} +969 -291
  42. package/dist/cjs/{index-Cqfc1ppG.d.cts → index-DjRtDAy5.d.cts} +241 -19
  43. package/dist/cjs/{index-B19YRG03.d.cts → index-lRWP4rKg.d.cts} +1 -1
  44. package/dist/cjs/index.cjs +92 -70
  45. package/dist/cjs/index.d.cts +10 -10
  46. package/dist/cjs/{service-DcwwCSxu.cjs → service-BCLvTVy_.cjs} +2 -2
  47. package/dist/cjs/service.cjs +3 -3
  48. package/dist/cjs/service.d.cts +4 -4
  49. package/dist/cjs/{tx-Cn0j2SRh.cjs → tx-VwbP3UdI.cjs} +6 -6
  50. package/dist/{esm/tx_pb-TiSRD5ay.d.ts → cjs/tx_pb-D-cNmrlO.d.cts} +4 -3
  51. package/dist/cjs/{types-NFV4P_J_.cjs → types-BTuy007B.cjs} +135 -7
  52. package/dist/cjs/types.cjs +7 -1
  53. package/dist/cjs/types.d.cts +4 -4
  54. package/dist/cjs/{utils-V1uXtT51.cjs → utils-CDl812vv.cjs} +44 -8
  55. package/dist/cjs/utils.cjs +3 -1
  56. package/dist/cjs/utils.d.cts +10 -10
  57. package/dist/esm/{AbacusGrpcApi-CXaVHTrN.js → AbacusGrpcApi-Ce1hRKuD.js} +1 -1
  58. package/dist/{cjs/BaseGrpcConsumer-PDufF0fz.d.cts → esm/BaseGrpcConsumer-6x4RlZ16.d.ts} +14 -2
  59. package/dist/esm/{BaseGrpcConsumer-DptVGP0n.js → BaseGrpcConsumer-BTWyD665.js} +48 -7
  60. package/dist/esm/{BaseIndexerGrpcConsumer-CjpUoGXy.js → BaseIndexerGrpcConsumer-BTZzA_Eg.js} +1 -1
  61. package/dist/esm/{ChainGrpcExchangeApi-C-2XsVVs.js → ChainGrpcExchangeApi-DqdCst2Z.js} +3 -3
  62. package/dist/esm/{ChainRestTendermintApi-CMrAg0Zm.js → ChainRestTendermintApi-BT_yOkAV.js} +2 -2
  63. package/dist/esm/{DirectEthSecp256k1Wallet-a9KiF9fA.js → DirectEthSecp256k1Wallet-BqxC1b40.js} +2 -2
  64. package/dist/esm/{ExecArgNeptuneWithdraw-DEljIeLd.js → ExecArgNeptuneWithdraw-uLf3HttI.js} +1 -1
  65. package/dist/esm/{IndexerGrpcWeb3GwApi-CtUYowus.js → IndexerGrpcWeb3GwApi-B2mgt9tE.js} +2 -2
  66. package/dist/esm/{MsgSetDenomMetadata-BhJMebO9.js → MsgSetDenomMetadata-CXgkQ3LF.js} +21 -10
  67. package/dist/esm/{OLPGrpcApi-CMwW7LXZ.js → OLPGrpcApi-DUCfcca_.js} +1 -1
  68. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-7IjWZLsc.js → QueryTradingStrategyContractTotalStrategies-CZWdw3BE.js} +3 -3
  69. package/dist/esm/{IndexerGrpcAccountPortfolioStream-3AGGiB1c.js → StreamManagerV2-B9xiJYLj.js} +1116 -203
  70. package/dist/esm/{accounts-DFC9RYDH.js → accounts-C5HEaz0B.js} +1 -1
  71. package/dist/{cjs/any_pb-CP-3DVyl.d.cts → esm/any_pb-DBt7qvTr.d.ts} +2 -2
  72. package/dist/esm/{chain-phKWVf8c.js → chain-CHX5uSpc.js} +4 -4
  73. package/dist/esm/client/abacus.d.ts +2 -2
  74. package/dist/esm/client/abacus.js +2 -2
  75. package/dist/esm/client/chain.d.ts +9 -9
  76. package/dist/esm/client/chain.js +5 -5
  77. package/dist/esm/client/indexer.d.ts +10 -10
  78. package/dist/esm/client/indexer.js +7 -7
  79. package/dist/esm/client/olp.d.ts +2 -2
  80. package/dist/esm/client/olp.js +3 -3
  81. package/dist/esm/client/wasm.d.ts +2 -2
  82. package/dist/esm/client/wasm.js +7 -7
  83. package/dist/esm/core/accounts.d.ts +9 -9
  84. package/dist/esm/core/accounts.js +2 -2
  85. package/dist/esm/core/modules.d.ts +9 -9
  86. package/dist/esm/core/modules.js +10 -10
  87. package/dist/esm/core/tx.d.ts +9 -9
  88. package/dist/esm/core/tx.js +7 -7
  89. package/dist/esm/cosmjs.d.ts +3 -3
  90. package/dist/esm/cosmjs.js +8 -8
  91. package/dist/esm/exports.d.ts +3 -3
  92. package/dist/esm/exports.js +8 -8
  93. package/dist/esm/{index-BOKuUpVZ.d.ts → index--sg5xbEP.d.ts} +1 -1
  94. package/dist/esm/{index-B1R417vW.d.ts → index-B-SD0p02.d.ts} +241 -19
  95. package/dist/esm/{index-qFCOVI7n.d.ts → index-BJQt8IpY.d.ts} +1 -1
  96. package/dist/esm/{index-DS6aJrL5.d.ts → index-C_3bL-y4.d.ts} +1 -1
  97. package/dist/esm/{index-IV55OZfT.d.ts → index-Ch477yfL.d.ts} +984 -306
  98. package/dist/esm/{index-aNMYd-s0.d.ts → index-DOyiZiUK.d.ts} +4 -3
  99. package/dist/{cjs/index-D4uWOVE5.d.cts → esm/index-Dn4OxoMy.d.ts} +7 -13
  100. package/dist/esm/index.d.ts +10 -10
  101. package/dist/esm/index.js +18 -18
  102. package/dist/esm/{service-CoINtWpF.js → service-CnqMmybI.js} +2 -2
  103. package/dist/esm/service.d.ts +4 -4
  104. package/dist/esm/service.js +3 -3
  105. package/dist/esm/{tx-CcaVBSym.js → tx-DsGG15fH.js} +6 -6
  106. package/dist/{cjs/tx_pb-tECSPcSB.d.cts → esm/tx_pb-zz4o4hHG.d.ts} +4 -3
  107. package/dist/esm/types-68OuBiEQ.js +162 -0
  108. package/dist/esm/types.d.ts +4 -4
  109. package/dist/esm/types.js +2 -2
  110. package/dist/esm/{utils-DwGoPRTL.js → utils-BFBu_LnJ.js} +33 -9
  111. package/dist/esm/utils.d.ts +10 -10
  112. package/dist/esm/utils.js +2 -2
  113. package/package.json +11 -13
  114. package/dist/esm/types-Cq0sRR6y.js +0 -70
@@ -1,9 +1,10 @@
1
- import { n as Coin, t as Any } from "./any_pb-CP-3DVyl.cjs";
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.2/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts
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.2/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/cosmos/tx/signing/v1beta1/signing_pb.d.ts
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 };
@@ -1,4 +1,4 @@
1
- import "./tx_pb-TiSRD5ay.js";
2
- import "./any_pb-B1YYUSUf.js";
3
- import { _ as TokenVerification, a as TradeExecutionType, b as Pagination, c as DirectSignResponse, d as StreamOperation, f as TxRaw, g as TokenType, h as TokenStatic, i as TradeExecutionSide, l as GrpcCoin, m as TokenSource, n as OrderMaskMap, o as AminoSignResponse, p as TokenMeta, r as TradeDirection, s as Coin, t as OrderMask, u as SignDoc, v as ExchangePagination, x as PaginationOption, y as PagePagination } from "./index-B1R417vW.js";
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 StreamOperation, c as TokenVerification, i as TradeExecutionType, n as TradeDirection, o as TokenSource, r as TradeExecutionSide, s as TokenType, t as OrderMaskMap } from "./types-Cq0sRR6y.js";
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 };
@@ -88,7 +88,31 @@ function isJsonString(str) {
88
88
  * BigInt-safe JSON replacer function.
89
89
  * Converts BigInt values to strings during JSON serialization.
90
90
  */
91
- const bigIntReplacer = (_key, value) => typeof value === "bigint" ? value.toString() : value;
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
+ };
92
116
  /**
93
117
  * Stringify an object to JSON with BigInt support.
94
118
  * Converts BigInt values to strings during serialization to prevent
@@ -534,7 +558,7 @@ const sanitizeTypedData = (data) => {
534
558
  return Object.fromEntries(entries);
535
559
  }
536
560
  case "[object Array]": return data.map((v) => sanitizeTypedData(v));
537
- case "[object BigInt]": return data.toString();
561
+ case "[object BigInt]": return bigIntToString(data);
538
562
  default: return data;
539
563
  }
540
564
  };
@@ -1020,7 +1044,7 @@ var ChainGrpcCommonTransformer = class ChainGrpcCommonTransformer {
1020
1044
  }
1021
1045
  static grpcPaginationToPaginationV2(pagination) {
1022
1046
  return {
1023
- total: pagination ? Number(pagination.total) : 0,
1047
+ total: pagination ? bigIntToNumber(pagination.total) : 0,
1024
1048
  next: pagination ? ChainGrpcCommonTransformer.paginationUint8ArrayToString(pagination.nextKey) : ""
1025
1049
  };
1026
1050
  }
@@ -1060,15 +1084,16 @@ const grpcPagingToPaging = (pagination) => {
1060
1084
  };
1061
1085
  return {
1062
1086
  ...pagination,
1087
+ total: bigIntToNumber(pagination.total),
1063
1088
  to: parseInt(pagination.to.toString() || "0", 10),
1064
1089
  from: parseInt(pagination.from.toString() || "0", 10),
1065
- total: parseInt((pagination.total || 0n).toString(), 10)
1090
+ countBySubaccount: bigIntToNumber(pagination.countBySubaccount)
1066
1091
  };
1067
1092
  };
1068
1093
  /**
1069
1094
  * Converts gRPC Paging to ExchangePagination for V2 proto packages.
1070
1095
  * Handles both InjectiveAccountsRpcPb.Paging and InjectiveExplorerRpcPb.Paging types.
1071
- * Supports bigint and string types for the total field.
1096
+ * Supports bigint and string types for the total and countBySubaccount fields.
1072
1097
  */
1073
1098
  const grpcPagingToPagingV2 = (pagination) => {
1074
1099
  if (!pagination) return {
@@ -1076,13 +1101,12 @@ const grpcPagingToPagingV2 = (pagination) => {
1076
1101
  from: 0,
1077
1102
  total: 0
1078
1103
  };
1079
- const total = pagination.total;
1080
- const totalNumber = typeof total === "bigint" ? Number(total) : typeof total === "string" ? parseInt(total || "0", 10) : parseInt(String(total) || "0", 10);
1081
1104
  return {
1082
1105
  ...pagination,
1106
+ total: bigIntToNumber(pagination.total),
1083
1107
  to: parseInt(pagination.to.toString() || "0", 10),
1084
1108
  from: parseInt(pagination.from.toString() || "0", 10),
1085
- total: totalNumber
1109
+ countBySubaccount: bigIntToNumber(pagination.countBySubaccount)
1086
1110
  };
1087
1111
  };
1088
1112
  const fetchAllWithPagination = async (args, method, result = []) => {
@@ -1112,4 +1136,4 @@ const recoverTypedSignaturePubKey = async (data, signature) => {
1112
1136
  };
1113
1137
 
1114
1138
  //#endregion
1115
- export { isNumber as $, isBrowser 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, hexToNumber 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, getErrorMessage as Xt, formatPriceToAllowablePrice as Y, bigIntReplacer as Yt, getSignificantDecimalsFromNumber as Z, grpcCoinToUiCoin as Zt, getSubaccountId as _, privateKeyHashToPublicKeyBase64 as _t, grpcPagingToPagingV2 as a, protoObjectToJson as an, spotQuantityFromChainQuantity as at, getDerivativeMarketDecimals as b, publicKeyToAddress as bt, paginationUint8ArrayToString as c, sortObjectByKeysWithReduce as cn, spotQuantityToChainQuantityToFixed as ct, getAddressFromInjectiveAddress as d, TypedDataUtilsSanitizeData as dt, isJsonString 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, objectToJson 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, SignTypedDataVersionV4 as lt, getEthereumAddress as m, hashToHex as mt, fetchAllWithPagination as n, isReactNative as nn, spotPriceFromChainPriceToFixed as nt, pageRequestToGrpcPageRequestV2 as o, safeBigIntStringify as on, spotQuantityFromChainQuantityToFixed as ot, getDefaultSubaccountId as p, domainHash as pt, formatNumberToAllowableTensMultiplier as q, uint8ArrayToHex as qt, grpcPaginationToPagination as r, isServerSide as rn, spotPriceToChainPrice as rt, paginationRequestFromPagination as s, sortObjectByKeys as sn, spotQuantityToChainQuantity as st, recoverTypedSignaturePubKey as t, isNode as tn, spotPriceFromChainPrice as tt, addHexPrefix as u, 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 };
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 };
@@ -1,10 +1,10 @@
1
- import "./tx_pb-TiSRD5ay.js";
2
- import "./BaseGrpcConsumer-BbvNzhrS.js";
3
- import "./index-qFCOVI7n.js";
4
- import "./any_pb-B1YYUSUf.js";
5
- import { $c as cosmosSdkDecToBigNumber, $l as TypedDataUtilsSanitizeData, Ac as hexToBuff, Al as spotPriceFromChainPriceToFixed, Bc as getChecksumAddress, Bl as hexToNumber, Cc as base64ToUint8Array, Cl as formatPriceToAllowablePrice, Dc as fromBase64, Dl as isNumber, Ec as concatUint8Arrays, El as getTensMultiplier, Fc as uint8ArrayToBase64, Fl as spotQuantityToChainQuantity, Gc as getSubaccountId, Gl as isServerSide, Hc as getEthereumAddress, Hl as isJsonString, Ic as uint8ArrayToHex, Il as spotQuantityToChainQuantityToFixed, Jc as getDerivativeMarketDecimals, Jl as safeBigIntStringify, Kc as isCw20ContractAddress, Kl as objectToJson, Lc as uint8ArrayToString, Ll as bigIntReplacer, Mc as stringToUint8Array, Ml as spotPriceToChainPriceToFixed, Nc as toBase64, Nl as spotQuantityFromChainQuantity, Oc as fromUtf8, Ol as numberToCosmosSdkDecString, Pc as toUtf8, Pl as spotQuantityFromChainQuantityToFixed, Qc as amountToCosmosSdkDecAmount, Ql as TypedDataUtilsHashStruct, Rc as addHexPrefix, Rl as getErrorMessage, Sc as DEFAULT_DERIVATION_PATH, Sl as formatPriceToAllowableDecimals, Su as protobufTimestampToUnixSeconds, Tc as binaryToBase64, Tl as getSignificantDecimalsFromNumber, Uc as getInjectiveAddress, Ul as isNode, Vc as getDefaultSubaccountId, Vl as isBrowser, Wc as getInjectiveAddressFromSubaccountId, Wl as isReactNative, Xc as getSpotMarketDecimals, Xl as sortObjectByKeysWithReduce, Yc as getDerivativeMarketTensMultiplier, Yl as sortObjectByKeys, Zc as getSpotMarketTensMultiplier, Zl as SignTypedDataVersionV4, _c as BECH32_ADDR_CONS_PREFIX, _l as derivativeQuantityToChainQuantityToFixed, _u as getGasPriceBasedOnMessage, al as denomAmountToGrpcChainDenomAmount, au as privateKeyHashToPublicKey, bc as BECH32_PUBKEY_CONS_PREFIX, bl as formatNumberToAllowableDecimals, bu as protobufTimestampToDate, cc as recoverTypedSignaturePubKey, cl as derivativeMarginToChainMargin, cu as privateKeyToPublicKeyBase64, dc as grpcPagingToPaging, dl as derivativePriceFromChainPriceToFixed, du as sanitizeTypedData, el as denomAmountFromChainDenomAmount, eu as TypedMessageV4, fc as grpcPagingToPagingV2, fl as derivativePriceToChainPrice, fu as sha256, gc as BECH32_ADDR_ACC_PREFIX, gl as derivativeQuantityToChainQuantity, gu as GrpcWebFetchTransport, hc as paginationUint8ArrayToString, hl as derivativeQuantityFromChainQuantityToFixed, hu as getGrpcWebTransport, il as denomAmountToChainDenomAmountToFixed, iu as messageHash, jc as hexToUint8Array, jl as spotPriceToChainPrice, kc as hexToBase64, kl as spotPriceFromChainPrice, lc as fetchAllWithPagination, ll as derivativeMarginToChainMarginToFixed, lu as publicKeyToAddress, mc as paginationRequestFromPagination, ml as derivativeQuantityFromChainQuantity, mu as ofacList, nl as denomAmountFromGrpcChainDenomAmount, nu as domainHash, ol as derivativeMarginFromChainMargin, ou as privateKeyHashToPublicKeyBase64, pc as pageRequestToGrpcPageRequestV2, pl as derivativePriceToChainPriceToFixed, pu as parseCoins, qc as removeHexPrefix, ql as protoObjectToJson, rl as denomAmountToChainDenomAmount, ru as hashToHex, sl as derivativeMarginFromChainMarginToFixed, su as privateKeyToPublicKey, tl as denomAmountFromChainDenomAmountToFixed, tu as decompressPubKey, uc as grpcPaginationToPagination, ul as derivativePriceFromChainPrice, uu as ripemd160, vc as BECH32_ADDR_VAL_PREFIX, vl as formatAmountToAllowableAmount, vu as makeTimeoutTimestamp, wc as base64ToUtf8, wl as getExactDecimalsFromNumber, xc as BECH32_PUBKEY_VAL_PREFIX, xl as formatNumberToAllowableTensMultiplier, xu as protobufTimestampToUnixMs, yc as BECH32_PUBKEY_ACC_PREFIX, yl as formatAmountToAllowableDecimals, yu as makeTimeoutTimestampInNs, zc as getAddressFromInjectiveAddress, zl as grpcCoinToUiCoin } from "./index-IV55OZfT.js";
6
- import "./index-DdGVE3_u.js";
7
- import "./index-B1R417vW.js";
8
- import "./index-aNMYd-s0.js";
9
- import "./index-DS6aJrL5.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, 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 };
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 isBrowser, 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 hexToNumber, 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 getErrorMessage, Y as formatPriceToAllowablePrice, Yt as bigIntReplacer, Z as getSignificantDecimalsFromNumber, Zt as grpcCoinToUiCoin, _ as getSubaccountId, _t as privateKeyHashToPublicKeyBase64, a as grpcPagingToPagingV2, an as protoObjectToJson, at as spotQuantityFromChainQuantity, b as getDerivativeMarketDecimals, bt as publicKeyToAddress, c as paginationUint8ArrayToString, cn as sortObjectByKeysWithReduce, ct as spotQuantityToChainQuantityToFixed, d as getAddressFromInjectiveAddress, dt as TypedDataUtilsSanitizeData, en as isJsonString, 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 objectToJson, it as spotPriceToChainPriceToFixed, j as denomAmountToGrpcChainDenomAmount, jt as BECH32_PUBKEY_CONS_PREFIX, k as denomAmountToChainDenomAmount, kt as BECH32_ADDR_VAL_PREFIX, lt as SignTypedDataVersionV4, m as getEthereumAddress, mt as hashToHex, n as fetchAllWithPagination, nn as isReactNative, nt as spotPriceFromChainPriceToFixed, o as pageRequestToGrpcPageRequestV2, on as safeBigIntStringify, ot as spotQuantityFromChainQuantityToFixed, p as getDefaultSubaccountId, pt as domainHash, q as formatNumberToAllowableTensMultiplier, qt as uint8ArrayToHex, r as grpcPaginationToPagination, rn as isServerSide, rt as spotPriceToChainPrice, s as paginationRequestFromPagination, sn as sortObjectByKeys, st as spotQuantityToChainQuantity, t as recoverTypedSignaturePubKey, tn as isNode, tt as spotPriceFromChainPrice, u as addHexPrefix, 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-DwGoPRTL.js";
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, bigIntReplacer, 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 };
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-alpha.9",
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.3",
310
- "@injectivelabs/core-proto-ts-v2": "1.17.2",
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.4",
315
- "@injectivelabs/mito-proto-ts-v2": "1.17.2",
316
- "@injectivelabs/olp-proto-ts-v2": "1.17.2",
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/exceptions": "1.17.2-alpha.9",
332
- "@injectivelabs/networks": "1.17.2-alpha.9",
333
- "@injectivelabs/ts-types": "1.17.2-alpha.9",
334
- "@injectivelabs/utils": "1.17.2-alpha.9"
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"
@@ -1,70 +0,0 @@
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/cosmos.ts
41
- const StreamOperation = {
42
- Insert: "insert",
43
- Delete: "delete",
44
- Replace: "replace",
45
- Update: "update",
46
- Invalidate: "invalidate"
47
- };
48
-
49
- //#endregion
50
- //#region src/types/exchange.ts
51
- const TradeExecutionType = {
52
- Market: "market",
53
- LimitFill: "limitFill",
54
- LimitMatchRestingOrder: "limitMatchRestingOrder",
55
- LimitMatchNewOrder: "limitMatchNewOrder"
56
- };
57
- const TradeExecutionSide = {
58
- Maker: "maker",
59
- Taker: "taker"
60
- };
61
- const TradeDirection = {
62
- Buy: "buy",
63
- Sell: "sell",
64
- Long: "long",
65
- Short: "short"
66
- };
67
- const OrderMaskMap = InjectiveExchangeV1Beta1ExchangePb.OrderMask;
68
-
69
- //#endregion
70
- export { StreamOperation as a, TokenVerification as c, TradeExecutionType as i, TradeDirection as n, TokenSource as o, TradeExecutionSide as r, TokenType as s, OrderMaskMap as t };