@injectivelabs/sdk-ts 1.20.14 → 1.20.16

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 (173) hide show
  1. package/dist/cjs/{AbacusGrpcApi-xrQAr-fH.cjs → AbacusGrpcApi-CIMZFwl6.cjs} +2 -2
  2. package/dist/cjs/{BaseGrpcConsumer-DHYpiqn5.cjs → BaseGrpcConsumer-BCGDaVy8.cjs} +24 -24
  3. package/dist/cjs/{BaseGrpcConsumer-CgIbwIvJ.d.cts → BaseGrpcConsumer-CrbGIyOg.d.cts} +1 -1
  4. package/dist/cjs/{BaseIndexerGrpcConsumer-GHyeUHdH.cjs → BaseIndexerGrpcConsumer-CoMGNooL.cjs} +1 -1
  5. package/dist/cjs/{ChainGrpcExchangeApi-MspF9deW.cjs → ChainGrpcExchangeApi-ChrfB9cv.cjs} +4 -4
  6. package/dist/cjs/{ChainRestTendermintApi-TZoqfN-E.cjs → ChainRestTendermintApi-utYZ9cZL.cjs} +7 -6
  7. package/dist/cjs/{DirectEthSecp256k1Wallet-D_rQWJR4.cjs → DirectEthSecp256k1Wallet-CbsATe2T.cjs} +14 -14
  8. package/dist/cjs/{ExecArgNeptuneWithdraw-ChJ7QUin.cjs → ExecArgNeptuneWithdraw-Sqk_zPQx.cjs} +7 -6
  9. package/dist/cjs/{IndexerGrpcWeb3GwApi-Cj9gotHt.cjs → IndexerGrpcWeb3GwApi-Di6ko7ub.cjs} +11 -10
  10. package/dist/cjs/{MsgBase-CAiwUyBz.cjs → MsgBase-BJmf0IHm.cjs} +1 -1
  11. package/dist/cjs/{MsgSetDenomMetadata-BDNtlSxx.cjs → MsgSetDenomMetadata-ycI5AKU4.cjs} +33 -31
  12. package/dist/cjs/{OLPGrpcApi-BqcMEdma.cjs → OLPGrpcApi-fdkKcWVJ.cjs} +2 -2
  13. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-CbfuOlxa.cjs → QueryTradingStrategyContractTotalStrategies-CIlJC3Cq.cjs} +29 -29
  14. package/dist/cjs/{StreamManagerV2-Bo7m_nUZ.cjs → StreamManagerV2-B3ar_Wxz.cjs} +72 -71
  15. package/dist/cjs/{TcAbacusGrpcApi-7a0vFnWK.cjs → TcAbacusGrpcApi-B7wlTqfE.cjs} +2 -2
  16. package/dist/cjs/{accounts-gu3aR3dJ.cjs → accounts-pXwUOxWb.cjs} +38 -35
  17. package/dist/cjs/address-light-B5-DYwES.d.cts +14 -0
  18. package/dist/cjs/address-light-C_a6b8yF.cjs +114 -0
  19. package/dist/cjs/{chain-lo3Cyc0M.cjs → chain-D--KOL1m.cjs} +36 -35
  20. package/dist/cjs/client/abacus.cjs +6 -5
  21. package/dist/cjs/client/abacus.d.cts +5 -4
  22. package/dist/cjs/client/chain.cjs +14 -9
  23. package/dist/cjs/client/chain.d.cts +14 -9
  24. package/dist/cjs/client/indexer.cjs +15 -10
  25. package/dist/cjs/client/indexer.d.cts +14 -9
  26. package/dist/cjs/client/olp.cjs +7 -6
  27. package/dist/cjs/client/olp.d.cts +5 -4
  28. package/dist/cjs/client/tcAbacus.cjs +6 -5
  29. package/dist/cjs/client/tcAbacus.d.cts +5 -4
  30. package/dist/cjs/client/wasm.cjs +17 -12
  31. package/dist/cjs/client/wasm.d.cts +4 -3
  32. package/dist/cjs/coins-DRrEtaSG.cjs +20 -0
  33. package/dist/cjs/coins-JbAREn6e.d.cts +7 -0
  34. package/dist/cjs/constants-DSzHAIp3.d.cts +10 -0
  35. package/dist/cjs/constants-tPGACRGC.cjs +53 -0
  36. package/dist/cjs/core/accounts.cjs +9 -5
  37. package/dist/cjs/core/accounts.d.cts +14 -9
  38. package/dist/cjs/core/modules.cjs +20 -15
  39. package/dist/cjs/core/modules.d.cts +14 -9
  40. package/dist/cjs/core/tx.cjs +17 -12
  41. package/dist/cjs/core/tx.d.cts +14 -9
  42. package/dist/cjs/cosmjs.cjs +18 -13
  43. package/dist/cjs/cosmjs.d.cts +2 -2
  44. package/dist/cjs/encoding-light-CrQ0cICT.d.cts +18 -0
  45. package/dist/cjs/encoding-light-D96nxVLW.cjs +176 -0
  46. package/dist/cjs/exports.cjs +18 -13
  47. package/dist/cjs/exports.d.cts +2 -2
  48. package/dist/cjs/{index-DiXeIFAS.d.cts → index-BINBkEIb.d.cts} +1 -1
  49. package/dist/cjs/{index-D3pv75E_.d.cts → index-BaPRB8bU.d.cts} +1 -1
  50. package/dist/cjs/{index-uJW9LUqV.d.cts → index-C4k2HkhI.d.cts} +1 -1
  51. package/dist/{esm/index-DCxzFRMk.d.ts → cjs/index-CBmgjh-q.d.cts} +3 -146
  52. package/dist/cjs/{index-DfNpbUN6.d.cts → index-DE9mGZGH.d.cts} +1 -1
  53. package/dist/{esm/index-Bw9qjGRX.d.ts → cjs/index-eG3KUAK0.d.cts} +2 -1
  54. package/dist/cjs/{index-Ckay0hId.d.cts → index-i4yKnGpI.d.cts} +2 -2
  55. package/dist/cjs/{index-CKLOaQYD.d.cts → index-nXX5E77u.d.cts} +7 -188
  56. package/dist/cjs/index.cjs +74 -67
  57. package/dist/cjs/index.d.cts +15 -10
  58. package/dist/cjs/light-BhvqsgHj.d.cts +119 -0
  59. package/dist/cjs/{types-Cn54Lzf-.cjs → light-Qbh16DQE.cjs} +72 -58
  60. package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
  61. package/dist/cjs/{service-2B8kFWdK.cjs → service-WTWXJzS1.cjs} +18 -18
  62. package/dist/cjs/service.cjs +11 -6
  63. package/dist/cjs/service.d.cts +4 -3
  64. package/dist/cjs/stream-CcqYpdwJ.cjs +20 -0
  65. package/dist/cjs/{tx-C2jfAA8Y.cjs → tx-eQttrX5b.cjs} +14 -13
  66. package/dist/cjs/types/light.cjs +13 -0
  67. package/dist/cjs/types/light.d.cts +2 -0
  68. package/dist/cjs/types-BJpWW-Rx.cjs +37 -0
  69. package/dist/cjs/types.cjs +14 -13
  70. package/dist/cjs/types.d.cts +3 -2
  71. package/dist/cjs/utils/address.cjs +13 -0
  72. package/dist/cjs/utils/address.d.cts +2 -0
  73. package/dist/cjs/utils/constants.cjs +9 -0
  74. package/dist/cjs/utils/constants.d.cts +2 -0
  75. package/dist/cjs/utils/encoding.cjs +17 -0
  76. package/dist/cjs/utils/encoding.d.cts +2 -0
  77. package/dist/cjs/utils/light.cjs +39 -0
  78. package/dist/cjs/utils/light.d.cts +5 -0
  79. package/dist/cjs/{utils-DbzXsOHS.cjs → utils-CH1Ojxun.cjs} +132 -592
  80. package/dist/cjs/utils.cjs +40 -34
  81. package/dist/cjs/utils.d.cts +15 -10
  82. package/dist/esm/{AbacusGrpcApi-CtwUxhbH.js → AbacusGrpcApi-DVniM62M.js} +2 -2
  83. package/dist/esm/{BaseGrpcConsumer-C8YhjVn6.d.ts → BaseGrpcConsumer-B9J3abKI.d.ts} +1 -1
  84. package/dist/esm/{BaseGrpcConsumer-C2_ejXG6.js → BaseGrpcConsumer-D-uEnIgH.js} +3 -3
  85. package/dist/esm/{BaseIndexerGrpcConsumer-B7ubNh4y.js → BaseIndexerGrpcConsumer-BUcOBQHD.js} +1 -1
  86. package/dist/esm/{ChainGrpcExchangeApi-46tg3Hzg.js → ChainGrpcExchangeApi-CT0WW59O.js} +4 -4
  87. package/dist/esm/{ChainRestTendermintApi-J6BTcNft.js → ChainRestTendermintApi-C5sizTTA.js} +5 -4
  88. package/dist/esm/{DirectEthSecp256k1Wallet-DOuSBBhp.js → DirectEthSecp256k1Wallet-Daky9CEn.js} +3 -3
  89. package/dist/esm/{ExecArgNeptuneWithdraw-DiiRJIyN.js → ExecArgNeptuneWithdraw-ljDnPI2p.js} +4 -3
  90. package/dist/esm/{IndexerGrpcWeb3GwApi-43sbzWOe.js → IndexerGrpcWeb3GwApi-D9GO0m1v.js} +4 -3
  91. package/dist/esm/{MsgBase-C7o5mYq2.js → MsgBase-CishJWMN.js} +1 -1
  92. package/dist/esm/{MsgSetDenomMetadata-k1Be2o9j.js → MsgSetDenomMetadata-DJaQwf94.js} +8 -6
  93. package/dist/esm/{OLPGrpcApi-DJHRAhPY.js → OLPGrpcApi-thWMIX2S.js} +2 -2
  94. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-NvpGnD6O.js → QueryTradingStrategyContractTotalStrategies-NKplhQpi.js} +4 -4
  95. package/dist/esm/{StreamManagerV2-DiRDW-5W.js → StreamManagerV2-BdSq7ThE.js} +9 -8
  96. package/dist/esm/{TcAbacusGrpcApi-Dat50xET.js → TcAbacusGrpcApi-0zuZRiGi.js} +2 -2
  97. package/dist/esm/{accounts-Bu0DRjk4.js → accounts-3rypojw1.js} +6 -3
  98. package/dist/esm/address-light-BcZDS-ks.d.ts +14 -0
  99. package/dist/esm/address-light-C9skTx0P.js +48 -0
  100. package/dist/esm/{chain-DDGdMRsP.js → chain-CFXdQ_RS.js} +6 -5
  101. package/dist/esm/client/abacus.d.ts +5 -4
  102. package/dist/esm/client/abacus.js +6 -5
  103. package/dist/esm/client/chain.d.ts +14 -9
  104. package/dist/esm/client/chain.js +14 -9
  105. package/dist/esm/client/indexer.d.ts +14 -9
  106. package/dist/esm/client/indexer.js +15 -10
  107. package/dist/esm/client/olp.d.ts +5 -4
  108. package/dist/esm/client/olp.js +7 -6
  109. package/dist/esm/client/tcAbacus.d.ts +5 -4
  110. package/dist/esm/client/tcAbacus.js +6 -5
  111. package/dist/esm/client/wasm.d.ts +4 -3
  112. package/dist/esm/client/wasm.js +17 -12
  113. package/dist/esm/coins-D4vONigS.js +14 -0
  114. package/dist/esm/coins-ceq0Id0M.d.ts +7 -0
  115. package/dist/esm/constants-BZ28P_pH.d.ts +10 -0
  116. package/dist/esm/constants-CCVyqUU9.js +11 -0
  117. package/dist/esm/core/accounts.d.ts +14 -9
  118. package/dist/esm/core/accounts.js +9 -5
  119. package/dist/esm/core/modules.d.ts +14 -9
  120. package/dist/esm/core/modules.js +20 -15
  121. package/dist/esm/core/tx.d.ts +14 -9
  122. package/dist/esm/core/tx.js +17 -12
  123. package/dist/esm/cosmjs.d.ts +2 -2
  124. package/dist/esm/cosmjs.js +18 -13
  125. package/dist/esm/encoding-light-18k0e_8v.d.ts +18 -0
  126. package/dist/esm/encoding-light-DHtTGSg1.js +86 -0
  127. package/dist/esm/exports.d.ts +2 -2
  128. package/dist/esm/exports.js +18 -13
  129. package/dist/esm/{index-BrfNx2yV.d.ts → index-BAxR1qDR.d.ts} +1 -1
  130. package/dist/esm/{index-DA42BIjg.d.ts → index-CFTXl2dv.d.ts} +1 -1
  131. package/dist/esm/{index-IC9v94fK.d.ts → index-CnGE9D2Q.d.ts} +7 -188
  132. package/dist/esm/{index-B0mpSZSK.d.ts → index-DIP5sGCK.d.ts} +1 -1
  133. package/dist/{cjs/index-DpsYFbif.d.cts → esm/index-DPmNu-i9.d.ts} +2 -1
  134. package/dist/{cjs/index-DYAz6OYS.d.cts → esm/index-fqs5eTyD.d.ts} +3 -146
  135. package/dist/esm/{index-JlA-uSsc.d.ts → index-lki5l2NS.d.ts} +1 -1
  136. package/dist/esm/{index-CZhX_Ynf.d.ts → index-reHqEgGi.d.ts} +2 -2
  137. package/dist/esm/index.d.ts +15 -10
  138. package/dist/esm/index.js +29 -24
  139. package/dist/esm/{types-DQ7rwavH.js → light-ClZwkrDK.js} +61 -52
  140. package/dist/esm/light-CrlUMC8c.d.ts +119 -0
  141. package/dist/esm/proto/cosmos-tx.d.ts +1 -1
  142. package/dist/esm/{service-Uo4J-lwR.js → service-B2z6s85o.js} +3 -3
  143. package/dist/esm/service.d.ts +4 -3
  144. package/dist/esm/service.js +11 -6
  145. package/dist/esm/stream-BqkNM_6g.js +14 -0
  146. package/dist/esm/{tx-Ajrd7cHg.js → tx-Bh9bfmCB.js} +7 -6
  147. package/dist/esm/types/light.d.ts +2 -0
  148. package/dist/esm/types/light.js +3 -0
  149. package/dist/esm/types-BAV0654v.js +24 -0
  150. package/dist/esm/types.d.ts +3 -2
  151. package/dist/esm/types.js +3 -2
  152. package/dist/esm/utils/address.d.ts +2 -0
  153. package/dist/esm/utils/address.js +3 -0
  154. package/dist/esm/utils/constants.d.ts +2 -0
  155. package/dist/esm/utils/constants.js +3 -0
  156. package/dist/esm/utils/encoding.d.ts +2 -0
  157. package/dist/esm/utils/encoding.js +3 -0
  158. package/dist/esm/utils/light.d.ts +5 -0
  159. package/dist/esm/utils/light.js +6 -0
  160. package/dist/esm/{utils-bfl-Zimr.js → utils-B3t50ZnB.js} +125 -393
  161. package/dist/esm/utils.d.ts +15 -10
  162. package/dist/esm/utils.js +7 -3
  163. package/package.json +105 -5
  164. package/dist/cjs/stream-CfBvG3Ln.cjs +0 -87
  165. package/dist/esm/stream-Cdx47Nhx.js +0 -63
  166. /package/dist/cjs/{BaseRestConsumer-uSzCOit7.cjs → BaseRestConsumer-BcHgNcNh.cjs} +0 -0
  167. /package/dist/cjs/{defineProperty-DAtJs5JQ.cjs → defineProperty-C3FP2y9Y.cjs} +0 -0
  168. /package/dist/cjs/{grpc-FG2z-ICE.cjs → grpc-3Z8ffFdZ.cjs} +0 -0
  169. /package/dist/cjs/{tx_pb-7h617od9.d.cts → tx_pb-BmZhAoWC.d.cts} +0 -0
  170. /package/dist/esm/{BaseRestConsumer-DMS02DwS.js → BaseRestConsumer-L3j9-i4T.js} +0 -0
  171. /package/dist/esm/{defineProperty-CmydwPCD.js → defineProperty-C0TI9N8m.js} +0 -0
  172. /package/dist/esm/{grpc-lYZqzL0k.js → grpc-aI_RLGoG.js} +0 -0
  173. /package/dist/esm/{tx_pb-Bb9pvoP6.d.ts → tx_pb-DhFh6sWY.d.ts} +0 -0
@@ -1,46 +1,4 @@
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/exchange.ts
41
- /**
42
- * Trade and Order types
43
- */
1
+ //#region src/types/light.ts
44
2
  const TradeExecutionType = {
45
3
  Market: "market",
46
4
  LimitFill: "limitFill",
@@ -80,14 +38,45 @@ const OrderSide = {
80
38
  SellAtomic: "sell_atomic",
81
39
  Unrecognized: "unrecognized"
82
40
  };
83
- const OrderMaskMap = InjectiveExchangeV1Beta1ExchangePb.OrderMask;
84
-
85
- //#endregion
86
- //#region src/types/stream-legacy.ts
87
- /**
88
- * Legacy stream operation types
89
- * Used by indexer stream transformers
90
- */
41
+ const TokenType = {
42
+ Ibc: "ibc",
43
+ Cw20: "cw20",
44
+ Spl: "spl",
45
+ Erc20: "erc20",
46
+ Lp: "lp",
47
+ Evm: "evm",
48
+ Native: "native",
49
+ Symbol: "symbol",
50
+ TokenFactory: "tokenFactory",
51
+ InsuranceFund: "insuranceFund",
52
+ Unknown: "unknown"
53
+ };
54
+ const TokenVerification = {
55
+ Verified: "verified",
56
+ Submitted: "submitted",
57
+ Internal: "internal",
58
+ External: "external",
59
+ Unverified: "unverified"
60
+ };
61
+ const GrpcStatusCode = {
62
+ OK: 0,
63
+ CANCELLED: 1,
64
+ UNKNOWN: 2,
65
+ INVALID_ARGUMENT: 3,
66
+ DEADLINE_EXCEEDED: 4,
67
+ NOT_FOUND: 5,
68
+ ALREADY_EXISTS: 6,
69
+ PERMISSION_DENIED: 7,
70
+ RESOURCE_EXHAUSTED: 8,
71
+ FAILED_PRECONDITION: 9,
72
+ ABORTED: 10,
73
+ OUT_OF_RANGE: 11,
74
+ UNIMPLEMENTED: 12,
75
+ INTERNAL: 13,
76
+ UNAVAILABLE: 14,
77
+ DATA_LOSS: 15,
78
+ UNAUTHENTICATED: 16
79
+ };
91
80
  const StreamOperation = {
92
81
  Insert: "insert",
93
82
  Delete: "delete",
@@ -95,6 +84,26 @@ const StreamOperation = {
95
84
  Update: "update",
96
85
  Invalidate: "invalidate"
97
86
  };
87
+ const StreamDisconnectReason = {
88
+ UserStopped: "user-stopped",
89
+ StreamError: "stream-error",
90
+ NetworkError: "network-error",
91
+ Timeout: "timeout",
92
+ AuthenticationError: "authentication-error",
93
+ InvalidRequest: "invalid-request",
94
+ RateLimited: "rate-limited",
95
+ MaxRetries: "max-retries",
96
+ StreamEnded: "stream-ended"
97
+ };
98
+ const StreamEvent = {
99
+ Data: "data",
100
+ Connect: "connect",
101
+ Disconnect: "disconnect",
102
+ Retry: "retry",
103
+ StateChange: "state:change",
104
+ Error: "error",
105
+ Warn: "warn"
106
+ };
98
107
 
99
108
  //#endregion
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 };
109
+ export { StreamEvent as a, TokenVerification as c, TradeExecutionType as d, StreamDisconnectReason as i, TradeDirection as l, OrderSide as n, StreamOperation as o, OrderState as r, TokenType as s, GrpcStatusCode as t, TradeExecutionSide as u };
@@ -0,0 +1,119 @@
1
+ //#region src/types/light.d.ts
2
+ declare const TradeExecutionType: {
3
+ readonly Market: "market";
4
+ readonly LimitFill: "limitFill";
5
+ readonly LimitMatchRestingOrder: "limitMatchRestingOrder";
6
+ readonly LimitMatchNewOrder: "limitMatchNewOrder";
7
+ };
8
+ type TradeExecutionType = (typeof TradeExecutionType)[keyof typeof TradeExecutionType];
9
+ declare const TradeExecutionSide: {
10
+ readonly Maker: "maker";
11
+ readonly Taker: "taker";
12
+ };
13
+ type TradeExecutionSide = (typeof TradeExecutionSide)[keyof typeof TradeExecutionSide];
14
+ declare const TradeDirection: {
15
+ readonly Buy: "buy";
16
+ readonly Sell: "sell";
17
+ readonly Long: "long";
18
+ readonly Short: "short";
19
+ };
20
+ type TradeDirection = (typeof TradeDirection)[keyof typeof TradeDirection];
21
+ declare const OrderState: {
22
+ readonly Unfilled: "unfilled";
23
+ readonly Booked: "booked";
24
+ readonly PartialFilled: "partial_filled";
25
+ readonly PartiallyFilled: "partially_filled";
26
+ readonly Filled: "filled";
27
+ readonly Canceled: "canceled";
28
+ readonly Triggered: "triggered";
29
+ };
30
+ type OrderState = (typeof OrderState)[keyof typeof OrderState];
31
+ declare const OrderSide: {
32
+ readonly Unspecified: "unspecified";
33
+ readonly Buy: "buy";
34
+ readonly Sell: "sell";
35
+ readonly StopBuy: "stop_buy";
36
+ readonly StopSell: "stop_sell";
37
+ readonly TakeBuy: "take_buy";
38
+ readonly TakeSell: "take_sell";
39
+ readonly BuyPO: "buy_po";
40
+ readonly SellPO: "sell_po";
41
+ readonly BuyAtomic: "buy_atomic";
42
+ readonly SellAtomic: "sell_atomic";
43
+ readonly Unrecognized: "unrecognized";
44
+ };
45
+ type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
46
+ declare const TokenType: {
47
+ readonly Ibc: "ibc";
48
+ readonly Cw20: "cw20";
49
+ readonly Spl: "spl";
50
+ readonly Erc20: "erc20";
51
+ readonly Lp: "lp";
52
+ readonly Evm: "evm";
53
+ readonly Native: "native";
54
+ readonly Symbol: "symbol";
55
+ readonly TokenFactory: "tokenFactory";
56
+ readonly InsuranceFund: "insuranceFund";
57
+ readonly Unknown: "unknown";
58
+ };
59
+ type TokenType = (typeof TokenType)[keyof typeof TokenType];
60
+ declare const TokenVerification: {
61
+ readonly Verified: "verified";
62
+ readonly Submitted: "submitted";
63
+ readonly Internal: "internal";
64
+ readonly External: "external";
65
+ readonly Unverified: "unverified";
66
+ };
67
+ type TokenVerification = (typeof TokenVerification)[keyof typeof TokenVerification];
68
+ declare const GrpcStatusCode: {
69
+ readonly OK: 0;
70
+ readonly CANCELLED: 1;
71
+ readonly UNKNOWN: 2;
72
+ readonly INVALID_ARGUMENT: 3;
73
+ readonly DEADLINE_EXCEEDED: 4;
74
+ readonly NOT_FOUND: 5;
75
+ readonly ALREADY_EXISTS: 6;
76
+ readonly PERMISSION_DENIED: 7;
77
+ readonly RESOURCE_EXHAUSTED: 8;
78
+ readonly FAILED_PRECONDITION: 9;
79
+ readonly ABORTED: 10;
80
+ readonly OUT_OF_RANGE: 11;
81
+ readonly UNIMPLEMENTED: 12;
82
+ readonly INTERNAL: 13;
83
+ readonly UNAVAILABLE: 14;
84
+ readonly DATA_LOSS: 15;
85
+ readonly UNAUTHENTICATED: 16;
86
+ };
87
+ type GrpcStatusCode = (typeof GrpcStatusCode)[keyof typeof GrpcStatusCode];
88
+ declare const StreamOperation: {
89
+ readonly Insert: "insert";
90
+ readonly Delete: "delete";
91
+ readonly Replace: "replace";
92
+ readonly Update: "update";
93
+ readonly Invalidate: "invalidate";
94
+ };
95
+ type StreamOperation = (typeof StreamOperation)[keyof typeof StreamOperation];
96
+ declare const StreamDisconnectReason: {
97
+ readonly UserStopped: "user-stopped";
98
+ readonly StreamError: "stream-error";
99
+ readonly NetworkError: "network-error";
100
+ readonly Timeout: "timeout";
101
+ readonly AuthenticationError: "authentication-error";
102
+ readonly InvalidRequest: "invalid-request";
103
+ readonly RateLimited: "rate-limited";
104
+ readonly MaxRetries: "max-retries";
105
+ readonly StreamEnded: "stream-ended";
106
+ };
107
+ type StreamDisconnectReason = (typeof StreamDisconnectReason)[keyof typeof StreamDisconnectReason];
108
+ declare const StreamEvent: {
109
+ readonly Data: "data";
110
+ readonly Connect: "connect";
111
+ readonly Disconnect: "disconnect";
112
+ readonly Retry: "retry";
113
+ readonly StateChange: "state:change";
114
+ readonly Error: "error";
115
+ readonly Warn: "warn";
116
+ };
117
+ type StreamEvent = (typeof StreamEvent)[keyof typeof StreamEvent];
118
+ //#endregion
119
+ export { StreamEvent as a, TokenVerification as c, TradeExecutionType as d, StreamDisconnectReason as i, TradeDirection as l, OrderSide as n, StreamOperation as o, OrderState as r, TokenType as s, GrpcStatusCode as t, TradeExecutionSide as u };
@@ -1,2 +1,2 @@
1
- import { c as tx_pb_d_exports } from "../tx_pb-Bb9pvoP6.js";
1
+ import { c as tx_pb_d_exports } from "../tx_pb-DhFh6sWY.js";
2
2
  export { tx_pb_d_exports as CosmosTxV1Beta1TxPb };
@@ -1,6 +1,6 @@
1
- import { v as isCw20ContractAddress } from "./utils-bfl-Zimr.js";
2
- import { t as _defineProperty } from "./defineProperty-CmydwPCD.js";
3
- import { l as TokenType, u as TokenVerification } from "./types-DQ7rwavH.js";
1
+ import { t as _defineProperty } from "./defineProperty-C0TI9N8m.js";
2
+ import { u as isCw20ContractAddress } from "./address-light-C9skTx0P.js";
3
+ import { c as TokenVerification, s as TokenType } from "./light-ClZwkrDK.js";
4
4
  import { HttpRestClient } from "@injectivelabs/utils";
5
5
  import { Network, isDevnet, isTestnet } from "@injectivelabs/networks";
6
6
 
@@ -1,4 +1,5 @@
1
- import "./tx_pb-Bb9pvoP6.js";
2
- import "./index-DCxzFRMk.js";
3
- import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./index-Bw9qjGRX.js";
1
+ import "./tx_pb-DhFh6sWY.js";
2
+ import "./index-fqs5eTyD.js";
3
+ import "./light-CrlUMC8c.js";
4
+ import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./index-DPmNu-i9.js";
4
5
  export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
@@ -1,8 +1,13 @@
1
- import "./utils-bfl-Zimr.js";
2
- import "./defineProperty-CmydwPCD.js";
3
- import "./grpc-lYZqzL0k.js";
4
- import "./stream-Cdx47Nhx.js";
5
- import "./types-DQ7rwavH.js";
6
- import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-Uo4J-lwR.js";
1
+ import "./encoding-light-DHtTGSg1.js";
2
+ import "./constants-CCVyqUU9.js";
3
+ import "./defineProperty-C0TI9N8m.js";
4
+ import "./utils-B3t50ZnB.js";
5
+ import "./grpc-aI_RLGoG.js";
6
+ import "./coins-D4vONigS.js";
7
+ import "./address-light-C9skTx0P.js";
8
+ import "./light-ClZwkrDK.js";
9
+ import "./stream-BqkNM_6g.js";
10
+ import "./types-BAV0654v.js";
11
+ import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-B2z6s85o.js";
7
12
 
8
13
  export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
@@ -0,0 +1,14 @@
1
+ //#region src/types/stream.ts
2
+ /**
3
+ * StreamManager
4
+ */
5
+ const StreamState = {
6
+ Idle: "idle",
7
+ Connecting: "connecting",
8
+ Connected: "connected",
9
+ Reconnecting: "reconnecting",
10
+ Stopped: "stopped"
11
+ };
12
+
13
+ //#endregion
14
+ export { StreamState as t };
@@ -1,9 +1,10 @@
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, rn as getErrorMessage, zt as base64ToUint8Array } from "./utils-bfl-Zimr.js";
2
- import { t as _defineProperty } from "./defineProperty-CmydwPCD.js";
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-Bu0DRjk4.js";
4
- import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-J6BTcNft.js";
5
- import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-C2_ejXG6.js";
6
- import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-43sbzWOe.js";
1
+ import { f as toUtf8, m as uint8ArrayToHex, p as uint8ArrayToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "./encoding-light-DHtTGSg1.js";
2
+ import { t as _defineProperty } from "./defineProperty-C0TI9N8m.js";
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-3rypojw1.js";
4
+ import { Mt as getGasPriceBasedOnMessage, at as hashToHex, jt as ofacList, kt as sortObjectByKeys, vt as getErrorMessage } from "./utils-B3t50ZnB.js";
5
+ import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-C5sizTTA.js";
6
+ import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-D-uEnIgH.js";
7
+ import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-D9GO0m1v.js";
7
8
  import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
8
9
  import { keccak256 } from "viem";
9
10
  import { DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, DEFAULT_TX_POLL_CALL_TIMEOUT_MS, DEFAULT_TX_POLL_INTERVAL_MS, HttpClient, getDefaultStdFee, getStdFee, getStdFeeFromString, sleep, toBigNumber } from "@injectivelabs/utils";
@@ -0,0 +1,2 @@
1
+ import { a as StreamEvent, c as TokenVerification, d as TradeExecutionType, i as StreamDisconnectReason, l as TradeDirection, n as OrderSide, o as StreamOperation, r as OrderState, s as TokenType, t as GrpcStatusCode, u as TradeExecutionSide } from "../light-CrlUMC8c.js";
2
+ export { GrpcStatusCode, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
@@ -0,0 +1,3 @@
1
+ import { a as StreamEvent, c as TokenVerification, d as TradeExecutionType, i as StreamDisconnectReason, l as TradeDirection, n as OrderSide, o as StreamOperation, r as OrderState, s as TokenType, t as GrpcStatusCode, u as TradeExecutionSide } from "../light-ClZwkrDK.js";
2
+
3
+ export { GrpcStatusCode, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
@@ -0,0 +1,24 @@
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 TokenSource = {
5
+ Aptos: "aptos",
6
+ Solana: "solana",
7
+ Cosmos: "cosmos",
8
+ Ethereum: "ethereum",
9
+ EthereumWh: "ethereum-wormhole",
10
+ Polygon: "polygon",
11
+ Klaytn: "klaytn",
12
+ Arbitrum: "arbitrum",
13
+ Sui: "sui",
14
+ Ibc: "ibc",
15
+ BinanceSmartChain: "binance-smart-chain",
16
+ Axelar: "axelar"
17
+ };
18
+
19
+ //#endregion
20
+ //#region src/types/exchange.ts
21
+ const OrderMaskMap = InjectiveExchangeV1Beta1ExchangePb.OrderMask;
22
+
23
+ //#endregion
24
+ export { TokenSource as n, OrderMaskMap as t };
@@ -1,3 +1,4 @@
1
- import "./tx_pb-Bb9pvoP6.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-DCxzFRMk.js";
1
+ import "./tx_pb-DhFh6sWY.js";
2
+ import { a as AminoSignResponse, at as StreamManagerConfig, c as GrpcCoin, ct as StreamState, d as GrpcWebTransportAdditionalOptions, dt as TokenSource, ft as TokenStatic, i as PaginationOption, it as StreamError, l as SignDoc, lt as StreamSubscription, m as OrderMaskMap, n as PagePagination, o as Coin, ot as StreamManagerEvents, p as OrderMask, r as Pagination, rt as ResolvedStreamManagerConfig, s as DirectSignResponse, st as StreamManagerRetryConfig, t as ExchangePagination, u as TxRaw, ut as TokenMeta } from "./index-fqs5eTyD.js";
3
+ import { a as StreamEvent, c as TokenVerification, d as TradeExecutionType, i as StreamDisconnectReason, l as TradeDirection, n as OrderSide, o as StreamOperation, r as OrderState, s as TokenType, t as GrpcStatusCode, u as TradeExecutionSide } from "./light-CrlUMC8c.js";
3
4
  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,4 +1,5 @@
1
- import { i as StreamState, n as StreamDisconnectReason, r as StreamEvent, t as GrpcStatusCode } from "./stream-Cdx47Nhx.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-DQ7rwavH.js";
1
+ import { a as StreamEvent, c as TokenVerification, d as TradeExecutionType, i as StreamDisconnectReason, l as TradeDirection, n as OrderSide, o as StreamOperation, r as OrderState, s as TokenType, t as GrpcStatusCode, u as TradeExecutionSide } from "./light-ClZwkrDK.js";
2
+ import { t as StreamState } from "./stream-BqkNM_6g.js";
3
+ import { n as TokenSource, t as OrderMaskMap } from "./types-BAV0654v.js";
3
4
 
4
5
  export { GrpcStatusCode, OrderMaskMap, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, StreamState, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
@@ -0,0 +1,2 @@
1
+ import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-BcZDS-ks.js";
2
+ export { addHexPrefix, bytesToHex, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBytes, isCw20ContractAddress, removeHexPrefix };
@@ -0,0 +1,3 @@
1
+ import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-C9skTx0P.js";
2
+
3
+ export { addHexPrefix, bytesToHex, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBytes, isCw20ContractAddress, removeHexPrefix };
@@ -0,0 +1,2 @@
1
+ import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-BZ28P_pH.js";
2
+ 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 };
@@ -0,0 +1,3 @@
1
+ import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-CCVyqUU9.js";
2
+
3
+ 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 };
@@ -0,0 +1,2 @@
1
+ import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-18k0e_8v.js";
2
+ export { base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, fromBase64, fromUtf8, hexToBase64, hexToBuff, hexToUint8Array, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
@@ -0,0 +1,3 @@
1
+ import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-DHtTGSg1.js";
2
+
3
+ export { base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, fromBase64, fromUtf8, hexToBase64, hexToBuff, hexToUint8Array, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
@@ -0,0 +1,5 @@
1
+ import { t as parseCoins } from "../coins-ceq0Id0M.js";
2
+ import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-BcZDS-ks.js";
3
+ import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-18k0e_8v.js";
4
+ import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-BZ28P_pH.js";
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, addHexPrefix, base64ToUint8Array, base64ToUtf8, binaryToBase64, bytesToHex, concatUint8Arrays, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBase64, hexToBuff, hexToBytes, hexToUint8Array, isCw20ContractAddress, parseCoins, removeHexPrefix, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
@@ -0,0 +1,6 @@
1
+ import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-DHtTGSg1.js";
2
+ import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-CCVyqUU9.js";
3
+ import { t as parseCoins } from "../coins-D4vONigS.js";
4
+ import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-C9skTx0P.js";
5
+
6
+ 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, addHexPrefix, base64ToUint8Array, base64ToUtf8, binaryToBase64, bytesToHex, concatUint8Arrays, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBase64, hexToBuff, hexToBytes, hexToUint8Array, isCw20ContractAddress, parseCoins, removeHexPrefix, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };