@injectivelabs/sdk-ts 1.17.2-alpha.8 → 1.17.2-alpha.9

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 (67) hide show
  1. package/dist/cjs/{ChainGrpcExchangeApi-VVmtAGW5.cjs → ChainGrpcExchangeApi-DLpkgEyg.cjs} +2 -2
  2. package/dist/cjs/{ChainRestTendermintApi-CW49Mtmx.cjs → ChainRestTendermintApi-BiZOeKcG.cjs} +1 -1
  3. package/dist/cjs/{DirectEthSecp256k1Wallet-Chd5kOwo.cjs → DirectEthSecp256k1Wallet-CU18lti3.cjs} +2 -2
  4. package/dist/cjs/{ExecArgNeptuneWithdraw-BqrKFTTp.cjs → ExecArgNeptuneWithdraw-DOHeo3AJ.cjs} +6 -6
  5. package/dist/cjs/{IndexerGrpcAccountPortfolioStream-CGaNa5R7.cjs → IndexerGrpcAccountPortfolioStream-DO5_FF4l.cjs} +2 -2
  6. package/dist/cjs/{IndexerGrpcWeb3GwApi-RL0sxzNw.cjs → IndexerGrpcWeb3GwApi-BgWT2tWK.cjs} +6 -6
  7. package/dist/cjs/{MsgBase-BJ1-Qh5c.cjs → MsgBase-DqOmzCyS.cjs} +1 -0
  8. package/dist/cjs/{MsgSetDenomMetadata-BzFtwh7v.cjs → MsgSetDenomMetadata-CUoGqV8P.cjs} +9 -9
  9. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-t-5fuyN_.cjs → QueryTradingStrategyContractTotalStrategies-Bh8AXm4k.cjs} +3 -3
  10. package/dist/cjs/{accounts-DC6uKJZm.cjs → accounts-CXaUasU5.cjs} +6 -6
  11. package/dist/cjs/{chain-CdI97AzZ.cjs → chain-Cs9sNuT1.cjs} +2 -2
  12. package/dist/cjs/client/chain.cjs +4 -4
  13. package/dist/cjs/client/chain.d.cts +1 -1
  14. package/dist/cjs/client/indexer.cjs +3 -3
  15. package/dist/cjs/client/indexer.d.cts +1 -1
  16. package/dist/cjs/client/wasm.cjs +7 -7
  17. package/dist/cjs/core/accounts.cjs +3 -3
  18. package/dist/cjs/core/accounts.d.cts +1 -1
  19. package/dist/cjs/core/modules.cjs +9 -9
  20. package/dist/cjs/core/modules.d.cts +1 -1
  21. package/dist/cjs/core/tx.cjs +6 -6
  22. package/dist/cjs/core/tx.d.cts +1 -1
  23. package/dist/cjs/cosmjs.cjs +7 -7
  24. package/dist/cjs/exports.cjs +7 -7
  25. package/dist/cjs/{index-9KV6P3U_.d.cts → index-1Wy-0PTh.d.cts} +20 -4
  26. package/dist/cjs/index.cjs +16 -14
  27. package/dist/cjs/index.d.cts +2 -2
  28. package/dist/cjs/{service-Do5zpuEu.cjs → service-DcwwCSxu.cjs} +1 -1
  29. package/dist/cjs/service.cjs +2 -2
  30. package/dist/cjs/{tx-D51SCHxX.cjs → tx-Cn0j2SRh.cjs} +4 -4
  31. package/dist/cjs/{utils-CaAHoOvO.cjs → utils-V1uXtT51.cjs} +115 -81
  32. package/dist/cjs/utils.cjs +3 -1
  33. package/dist/cjs/utils.d.cts +2 -2
  34. package/dist/esm/{ChainGrpcExchangeApi-CDMDxAJf.js → ChainGrpcExchangeApi-C-2XsVVs.js} +2 -2
  35. package/dist/esm/{ChainRestTendermintApi-Cy7hYJYp.js → ChainRestTendermintApi-CMrAg0Zm.js} +1 -1
  36. package/dist/esm/{DirectEthSecp256k1Wallet-VC6TDitT.js → DirectEthSecp256k1Wallet-a9KiF9fA.js} +2 -2
  37. package/dist/esm/{ExecArgNeptuneWithdraw-yQxlQZWQ.js → ExecArgNeptuneWithdraw-DEljIeLd.js} +6 -6
  38. package/dist/esm/{IndexerGrpcAccountPortfolioStream-BOLdMeVd.js → IndexerGrpcAccountPortfolioStream-3AGGiB1c.js} +2 -2
  39. package/dist/esm/{IndexerGrpcWeb3GwApi-BngLjriD.js → IndexerGrpcWeb3GwApi-CtUYowus.js} +6 -6
  40. package/dist/esm/{MsgBase-aKq3ln6R.js → MsgBase-BkRgVbdY.js} +1 -0
  41. package/dist/esm/{MsgSetDenomMetadata-CTc1ec1M.js → MsgSetDenomMetadata-BhJMebO9.js} +9 -9
  42. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DnsH6JLf.js → QueryTradingStrategyContractTotalStrategies-7IjWZLsc.js} +3 -3
  43. package/dist/esm/{accounts-DXee44Zk.js → accounts-DFC9RYDH.js} +6 -6
  44. package/dist/esm/{chain-BquCFi0h.js → chain-phKWVf8c.js} +2 -2
  45. package/dist/esm/client/chain.d.ts +1 -1
  46. package/dist/esm/client/chain.js +4 -4
  47. package/dist/esm/client/indexer.d.ts +1 -1
  48. package/dist/esm/client/indexer.js +3 -3
  49. package/dist/esm/client/wasm.js +7 -7
  50. package/dist/esm/core/accounts.d.ts +1 -1
  51. package/dist/esm/core/accounts.js +3 -3
  52. package/dist/esm/core/modules.d.ts +1 -1
  53. package/dist/esm/core/modules.js +9 -9
  54. package/dist/esm/core/tx.d.ts +1 -1
  55. package/dist/esm/core/tx.js +6 -6
  56. package/dist/esm/cosmjs.js +7 -7
  57. package/dist/esm/exports.js +7 -7
  58. package/dist/esm/{index-CIU3qLo9.d.ts → index-IV55OZfT.d.ts} +20 -4
  59. package/dist/esm/index.d.ts +2 -2
  60. package/dist/esm/index.js +14 -14
  61. package/dist/esm/{service-DYSaTvVz.js → service-CoINtWpF.js} +1 -1
  62. package/dist/esm/service.js +2 -2
  63. package/dist/esm/{tx-B9VusHOP.js → tx-CcaVBSym.js} +4 -4
  64. package/dist/esm/{utils-DlnuXIe8.js → utils-DwGoPRTL.js} +104 -82
  65. package/dist/esm/utils.d.ts +2 -2
  66. package/dist/esm/utils.js +2 -2
  67. package/package.json +5 -5
@@ -6,6 +6,108 @@ import { sha256 } from "@noble/hashes/sha2";
6
6
  import { ripemd160 } from "@noble/hashes/legacy";
7
7
  import * as CosmosBaseQueryV1Beta1PaginationPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/base/query/v1beta1/pagination_pb";
8
8
 
9
+ //#region src/utils/helpers.ts
10
+ const isServerSide = () => typeof window === "undefined";
11
+ const isReactNative = () => {
12
+ return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
13
+ };
14
+ const isNode = () => {
15
+ if (typeof window === "undefined") return true;
16
+ return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
17
+ };
18
+ const isBrowser = () => {
19
+ if (isReactNative()) return false;
20
+ if (isNode()) return false;
21
+ return typeof window !== "undefined";
22
+ };
23
+ const objectToJson = (object, params) => {
24
+ const { replacer, indentation } = params || {
25
+ replacer: void 0,
26
+ indentation: 2
27
+ };
28
+ return safeBigIntStringify(object, replacer, indentation);
29
+ };
30
+ const protoObjectToJson = (object, params) => {
31
+ const { replacer, indentation } = params || {
32
+ replacer: void 0,
33
+ indentation: 2
34
+ };
35
+ if (object.toObject !== void 0) return safeBigIntStringify(object.toObject(), replacer, indentation);
36
+ return objectToJson(object, {
37
+ replacer,
38
+ indentation
39
+ });
40
+ };
41
+ const grpcCoinToUiCoin = (coin) => ({
42
+ amount: coin.amount,
43
+ denom: coin.denom
44
+ });
45
+ const sortObjectByKeysWithReduce = (obj) => {
46
+ if (typeof obj !== "object" || obj === null) return obj;
47
+ if (Array.isArray(obj)) return obj.map((e) => sortObjectByKeysWithReduce(e)).sort();
48
+ return Object.keys(obj).sort().reduce((sorted, k) => {
49
+ const key = k;
50
+ sorted[key] = sortObjectByKeysWithReduce(obj[key]);
51
+ return sorted;
52
+ }, {});
53
+ };
54
+ const sortObjectByKeys = (obj) => {
55
+ if (typeof obj !== "object" || obj === null) return obj;
56
+ if (Array.isArray(obj)) return obj.map(sortObjectByKeys);
57
+ const sortedKeys = Object.keys(obj).sort();
58
+ const result = {};
59
+ sortedKeys.forEach((key) => {
60
+ result[key] = sortObjectByKeys(obj[key]);
61
+ });
62
+ return result;
63
+ };
64
+ const getErrorMessage = (error, endpoint) => {
65
+ if (!error.response) return `The request to ${endpoint} has failed.`;
66
+ return error.response.data ? error.response.data.message || error.response.data : error.response.statusText;
67
+ };
68
+ /**
69
+ * Converts value to it's number representation
70
+ */
71
+ const hexToNumber = (value) => {
72
+ const [negative, hexValue] = value.startsWith("-") ? [true, value.slice(1)] : [false, value];
73
+ const num = BigInt(hexValue);
74
+ if (num > Number.MAX_SAFE_INTEGER) return Number(negative ? -num : num);
75
+ if (num < Number.MIN_SAFE_INTEGER) return Number(num);
76
+ return negative ? -1 * Number(num) : Number(num);
77
+ };
78
+ function isJsonString(str) {
79
+ if (typeof str !== "string") return false;
80
+ try {
81
+ JSON.parse(str);
82
+ } catch (_unused) {
83
+ return false;
84
+ }
85
+ return true;
86
+ }
87
+ /**
88
+ * BigInt-safe JSON replacer function.
89
+ * Converts BigInt values to strings during JSON serialization.
90
+ */
91
+ const bigIntReplacer = (_key, value) => typeof value === "bigint" ? value.toString() : value;
92
+ /**
93
+ * Stringify an object to JSON with BigInt support.
94
+ * Converts BigInt values to strings during serialization to prevent
95
+ * "Do not know how to serialize a BigInt" errors.
96
+ *
97
+ * @param value - The value to serialize
98
+ * @param replacer - Optional custom replacer function (BigInt handling is applied first)
99
+ * @param space - Optional indentation for pretty printing
100
+ * @returns JSON string
101
+ */
102
+ const safeBigIntStringify = (value, replacer, space) => {
103
+ const combinedReplacer = (key, val) => {
104
+ const bigIntHandled = bigIntReplacer(key, val);
105
+ return replacer ? replacer(key, bigIntHandled) : bigIntHandled;
106
+ };
107
+ return JSON.stringify(value, combinedReplacer, space);
108
+ };
109
+
110
+ //#endregion
9
111
  //#region src/utils/encoding.ts
10
112
  /**
11
113
  * Encoding/decoding utilities using industry-standard libraries
@@ -144,7 +246,7 @@ function binaryToBase64(data) {
144
246
  * @returns Base64 encoded string
145
247
  */
146
248
  function toBase64(data) {
147
- return uint8ArrayToBase64(stringToUint8Array(JSON.stringify(data)));
249
+ return uint8ArrayToBase64(stringToUint8Array(safeBigIntStringify(data)));
148
250
  }
149
251
  /**
150
252
  * Convert a base64 string to JSON object
@@ -461,86 +563,6 @@ const TypedDataUtilsSanitizeData = sanitizeTypedData;
461
563
  const TypedDataUtilsHashStruct = hashStruct;
462
564
  const SignTypedDataVersionV4 = "V4";
463
565
 
464
- //#endregion
465
- //#region src/utils/helpers.ts
466
- const isServerSide = () => typeof window === "undefined";
467
- const isReactNative = () => {
468
- return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
469
- };
470
- const isNode = () => {
471
- if (typeof window === "undefined") return true;
472
- return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
473
- };
474
- const isBrowser = () => {
475
- if (isReactNative()) return false;
476
- if (isNode()) return false;
477
- return typeof window !== "undefined";
478
- };
479
- const objectToJson = (object, params) => {
480
- const { replacer, indentation } = params || {
481
- replacer: null,
482
- indentation: 2
483
- };
484
- return JSON.stringify(object, replacer, indentation);
485
- };
486
- const protoObjectToJson = (object, params) => {
487
- const { replacer, indentation } = params || {
488
- replacer: null,
489
- indentation: 2
490
- };
491
- if (object.toObject !== void 0) return JSON.stringify(object.toObject(), replacer, indentation);
492
- return objectToJson(object, {
493
- replacer,
494
- indentation
495
- });
496
- };
497
- const grpcCoinToUiCoin = (coin) => ({
498
- amount: coin.amount,
499
- denom: coin.denom
500
- });
501
- const sortObjectByKeysWithReduce = (obj) => {
502
- if (typeof obj !== "object" || obj === null) return obj;
503
- if (Array.isArray(obj)) return obj.map((e) => sortObjectByKeysWithReduce(e)).sort();
504
- return Object.keys(obj).sort().reduce((sorted, k) => {
505
- const key = k;
506
- sorted[key] = sortObjectByKeysWithReduce(obj[key]);
507
- return sorted;
508
- }, {});
509
- };
510
- const sortObjectByKeys = (obj) => {
511
- if (typeof obj !== "object" || obj === null) return obj;
512
- if (Array.isArray(obj)) return obj.map(sortObjectByKeys);
513
- const sortedKeys = Object.keys(obj).sort();
514
- const result = {};
515
- sortedKeys.forEach((key) => {
516
- result[key] = sortObjectByKeys(obj[key]);
517
- });
518
- return result;
519
- };
520
- const getErrorMessage = (error, endpoint) => {
521
- if (!error.response) return `The request to ${endpoint} has failed.`;
522
- return error.response.data ? error.response.data.message || error.response.data : error.response.statusText;
523
- };
524
- /**
525
- * Converts value to it's number representation
526
- */
527
- const hexToNumber = (value) => {
528
- const [negative, hexValue] = value.startsWith("-") ? [true, value.slice(1)] : [false, value];
529
- const num = BigInt(hexValue);
530
- if (num > Number.MAX_SAFE_INTEGER) return Number(negative ? -num : num);
531
- if (num < Number.MIN_SAFE_INTEGER) return Number(num);
532
- return negative ? -1 * Number(num) : Number(num);
533
- };
534
- function isJsonString(str) {
535
- if (typeof str !== "string") return false;
536
- try {
537
- JSON.parse(str);
538
- } catch (_unused) {
539
- return false;
540
- }
541
- return true;
542
- }
543
-
544
566
  //#endregion
545
567
  //#region src/utils/numbers.ts
546
568
  const $BigNumber = BigNumber.clone({ ROUNDING_MODE: BigNumber.ROUND_DOWN });
@@ -1090,4 +1112,4 @@ const recoverTypedSignaturePubKey = async (data, signature) => {
1090
1112
  };
1091
1113
 
1092
1114
  //#endregion
1093
- export { isNumber as $, hexToBuff as $t, denomAmountToChainDenomAmountToFixed as A, privateKeyToPublicKey as At, derivativeQuantityFromChainQuantity as B, BECH32_ADDR_CONS_PREFIX as Bt, getSpotMarketTensMultiplier as C, TypedDataUtilsSanitizeData as Ct, denomAmountFromChainDenomAmountToFixed as D, messageHash as Dt, denomAmountFromChainDenomAmount as E, hashToHex as Et, derivativeMarginToChainMarginToFixed as F, sha256$1 as Ft, formatAmountToAllowableDecimals as G, DEFAULT_DERIVATION_PATH as Gt, derivativeQuantityToChainQuantity as H, BECH32_PUBKEY_ACC_PREFIX as Ht, derivativePriceFromChainPrice as I, parseCoins as It, formatPriceToAllowableDecimals as J, binaryToBase64 as Jt, formatNumberToAllowableDecimals as K, base64ToUint8Array as Kt, derivativePriceFromChainPriceToFixed as L, ofacList as Lt, derivativeMarginFromChainMargin as M, publicKeyToAddress as Mt, derivativeMarginFromChainMarginToFixed as N, ripemd160$1 as Nt, denomAmountFromGrpcChainDenomAmount as O, privateKeyHashToPublicKey as Ot, derivativeMarginToChainMargin as P, sanitizeTypedData as Pt, getTensMultiplier as Q, hexToBase64 as Qt, derivativePriceToChainPrice as R, getGasPriceBasedOnMessage as Rt, getSpotMarketDecimals as S, TypedDataUtilsHashStruct as St, cosmosSdkDecToBigNumber as T, domainHash as Tt, derivativeQuantityToChainQuantityToFixed as U, BECH32_PUBKEY_CONS_PREFIX as Ut, derivativeQuantityFromChainQuantityToFixed as V, BECH32_ADDR_VAL_PREFIX as Vt, formatAmountToAllowableAmount as W, BECH32_PUBKEY_VAL_PREFIX as Wt, getExactDecimalsFromNumber as X, fromBase64 as Xt, formatPriceToAllowablePrice as Y, concatUint8Arrays as Yt, getSignificantDecimalsFromNumber as Z, fromUtf8 as Zt, getSubaccountId as _, objectToJson as _t, grpcPagingToPagingV2 as a, uint8ArrayToHex as an, spotQuantityFromChainQuantity as at, getDerivativeMarketDecimals as b, sortObjectByKeysWithReduce as bt, paginationUint8ArrayToString as c, spotQuantityToChainQuantityToFixed as ct, getAddressFromInjectiveAddress as d, hexToNumber as dt, hexToUint8Array as en, numberToCosmosSdkDecString as et, getChecksumAddress as f, isBrowser as ft, getInjectiveAddressFromSubaccountId as g, isServerSide as gt, getInjectiveAddress as h, isReactNative as ht, grpcPagingToPaging as i, uint8ArrayToBase64 as in, spotPriceToChainPriceToFixed as it, denomAmountToGrpcChainDenomAmount as j, privateKeyToPublicKeyBase64 as jt, denomAmountToChainDenomAmount as k, privateKeyHashToPublicKeyBase64 as kt, ChainGrpcCommonTransformer as l, getErrorMessage as lt, getEthereumAddress as m, isNode as mt, fetchAllWithPagination as n, toBase64 as nn, spotPriceFromChainPriceToFixed as nt, pageRequestToGrpcPageRequestV2 as o, uint8ArrayToString as on, spotQuantityFromChainQuantityToFixed as ot, getDefaultSubaccountId as p, isJsonString as pt, formatNumberToAllowableTensMultiplier as q, base64ToUtf8 as qt, grpcPaginationToPagination as r, toUtf8 as rn, spotPriceToChainPrice as rt, paginationRequestFromPagination as s, spotQuantityToChainQuantity as st, recoverTypedSignaturePubKey as t, stringToUint8Array as tn, spotPriceFromChainPrice as tt, addHexPrefix as u, grpcCoinToUiCoin as ut, isCw20ContractAddress as v, protoObjectToJson as vt, amountToCosmosSdkDecAmount as w, decompressPubKey as wt, getDerivativeMarketTensMultiplier as x, SignTypedDataVersionV4 as xt, removeHexPrefix as y, sortObjectByKeys as yt, derivativePriceToChainPriceToFixed as z, BECH32_ADDR_ACC_PREFIX as zt };
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 };
@@ -2,9 +2,9 @@ import "./tx_pb-TiSRD5ay.js";
2
2
  import "./BaseGrpcConsumer-BbvNzhrS.js";
3
3
  import "./index-qFCOVI7n.js";
4
4
  import "./any_pb-B1YYUSUf.js";
5
- import { $c as cosmosSdkDecToBigNumber, $l as decompressPubKey, Ac as hexToBuff, Al as spotPriceFromChainPriceToFixed, Bc as getChecksumAddress, Bl as isBrowser, 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 objectToJson, Hc as getEthereumAddress, Hl as isNode, Ic as uint8ArrayToHex, Il as spotQuantityToChainQuantityToFixed, Jc as getDerivativeMarketDecimals, Jl as sortObjectByKeysWithReduce, Kc as isCw20ContractAddress, Kl as protoObjectToJson, Lc as uint8ArrayToString, Ll as getErrorMessage, 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 TypedMessageV4, Rc as addHexPrefix, Rl as grpcCoinToUiCoin, Sc as DEFAULT_DERIVATION_PATH, Sl as formatPriceToAllowableDecimals, Tc as binaryToBase64, Tl as getSignificantDecimalsFromNumber, Uc as getInjectiveAddress, Ul as isReactNative, Vc as getDefaultSubaccountId, Vl as isJsonString, Wc as getInjectiveAddressFromSubaccountId, Wl as isServerSide, Xc as getSpotMarketDecimals, Xl as TypedDataUtilsHashStruct, Yc as getDerivativeMarketTensMultiplier, Yl as SignTypedDataVersionV4, Zc as getSpotMarketTensMultiplier, Zl as TypedDataUtilsSanitizeData, _c as BECH32_ADDR_CONS_PREFIX, _l as derivativeQuantityToChainQuantityToFixed, _u as makeTimeoutTimestampInNs, al as denomAmountToGrpcChainDenomAmount, au as privateKeyToPublicKey, bc as BECH32_PUBKEY_CONS_PREFIX, bl as formatNumberToAllowableDecimals, bu as protobufTimestampToUnixSeconds, cc as recoverTypedSignaturePubKey, cl as derivativeMarginToChainMargin, cu as ripemd160, dc as grpcPagingToPaging, dl as derivativePriceFromChainPriceToFixed, du as parseCoins, el as denomAmountFromChainDenomAmount, eu as domainHash, fc as grpcPagingToPagingV2, fl as derivativePriceToChainPrice, fu as ofacList, gc as BECH32_ADDR_ACC_PREFIX, gl as derivativeQuantityToChainQuantity, gu as makeTimeoutTimestamp, hc as paginationUint8ArrayToString, hl as derivativeQuantityFromChainQuantityToFixed, hu as getGasPriceBasedOnMessage, il as denomAmountToChainDenomAmountToFixed, iu as privateKeyHashToPublicKeyBase64, jc as hexToUint8Array, jl as spotPriceToChainPrice, kc as hexToBase64, kl as spotPriceFromChainPrice, lc as fetchAllWithPagination, ll as derivativeMarginToChainMarginToFixed, lu as sanitizeTypedData, mc as paginationRequestFromPagination, ml as derivativeQuantityFromChainQuantity, mu as GrpcWebFetchTransport, nl as denomAmountFromGrpcChainDenomAmount, nu as messageHash, ol as derivativeMarginFromChainMargin, ou as privateKeyToPublicKeyBase64, pc as pageRequestToGrpcPageRequestV2, pl as derivativePriceToChainPriceToFixed, pu as getGrpcWebTransport, qc as removeHexPrefix, ql as sortObjectByKeys, rl as denomAmountToChainDenomAmount, ru as privateKeyHashToPublicKey, sl as derivativeMarginFromChainMarginToFixed, su as publicKeyToAddress, tl as denomAmountFromChainDenomAmountToFixed, tu as hashToHex, uc as grpcPaginationToPagination, ul as derivativePriceFromChainPrice, uu as sha256, vc as BECH32_ADDR_VAL_PREFIX, vl as formatAmountToAllowableAmount, vu as protobufTimestampToDate, wc as base64ToUtf8, wl as getExactDecimalsFromNumber, xc as BECH32_PUBKEY_VAL_PREFIX, xl as formatNumberToAllowableTensMultiplier, yc as BECH32_PUBKEY_ACC_PREFIX, yl as formatAmountToAllowableDecimals, yu as protobufTimestampToUnixMs, zc as getAddressFromInjectiveAddress, zl as hexToNumber } from "./index-CIU3qLo9.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
6
  import "./index-DdGVE3_u.js";
7
7
  import "./index-B1R417vW.js";
8
8
  import "./index-aNMYd-s0.js";
9
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, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
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 };
package/dist/esm/utils.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as isNumber, $t as hexToBuff, A as denomAmountToChainDenomAmountToFixed, At as privateKeyToPublicKey, B as derivativeQuantityFromChainQuantity, Bt as BECH32_ADDR_CONS_PREFIX, C as getSpotMarketTensMultiplier, Ct as TypedDataUtilsSanitizeData, D as denomAmountFromChainDenomAmountToFixed, Dt as messageHash, E as denomAmountFromChainDenomAmount, Et as hashToHex, F as derivativeMarginToChainMarginToFixed, Ft as sha256, G as formatAmountToAllowableDecimals, Gt as DEFAULT_DERIVATION_PATH, H as derivativeQuantityToChainQuantity, Ht as BECH32_PUBKEY_ACC_PREFIX, I as derivativePriceFromChainPrice, It as parseCoins, J as formatPriceToAllowableDecimals, Jt as binaryToBase64, K as formatNumberToAllowableDecimals, Kt as base64ToUint8Array, L as derivativePriceFromChainPriceToFixed, Lt as ofacList, M as derivativeMarginFromChainMargin, Mt as publicKeyToAddress, N as derivativeMarginFromChainMarginToFixed, Nt as ripemd160, O as denomAmountFromGrpcChainDenomAmount, Ot as privateKeyHashToPublicKey, P as derivativeMarginToChainMargin, Pt as sanitizeTypedData, Q as getTensMultiplier, Qt as hexToBase64, R as derivativePriceToChainPrice, Rt as getGasPriceBasedOnMessage, S as getSpotMarketDecimals, St as TypedDataUtilsHashStruct, T as cosmosSdkDecToBigNumber, Tt as domainHash, U as derivativeQuantityToChainQuantityToFixed, Ut as BECH32_PUBKEY_CONS_PREFIX, V as derivativeQuantityFromChainQuantityToFixed, Vt as BECH32_ADDR_VAL_PREFIX, W as formatAmountToAllowableAmount, Wt as BECH32_PUBKEY_VAL_PREFIX, X as getExactDecimalsFromNumber, Xt as fromBase64, Y as formatPriceToAllowablePrice, Yt as concatUint8Arrays, Z as getSignificantDecimalsFromNumber, Zt as fromUtf8, _ as getSubaccountId, _t as objectToJson, a as grpcPagingToPagingV2, an as uint8ArrayToHex, at as spotQuantityFromChainQuantity, b as getDerivativeMarketDecimals, bt as sortObjectByKeysWithReduce, c as paginationUint8ArrayToString, ct as spotQuantityToChainQuantityToFixed, d as getAddressFromInjectiveAddress, dt as hexToNumber, en as hexToUint8Array, et as numberToCosmosSdkDecString, f as getChecksumAddress, ft as isBrowser, g as getInjectiveAddressFromSubaccountId, gt as isServerSide, h as getInjectiveAddress, ht as isReactNative, i as grpcPagingToPaging, in as uint8ArrayToBase64, it as spotPriceToChainPriceToFixed, j as denomAmountToGrpcChainDenomAmount, jt as privateKeyToPublicKeyBase64, k as denomAmountToChainDenomAmount, kt as privateKeyHashToPublicKeyBase64, lt as getErrorMessage, m as getEthereumAddress, mt as isNode, n as fetchAllWithPagination, nn as toBase64, nt as spotPriceFromChainPriceToFixed, o as pageRequestToGrpcPageRequestV2, on as uint8ArrayToString, ot as spotQuantityFromChainQuantityToFixed, p as getDefaultSubaccountId, pt as isJsonString, q as formatNumberToAllowableTensMultiplier, qt as base64ToUtf8, r as grpcPaginationToPagination, rn as toUtf8, rt as spotPriceToChainPrice, s as paginationRequestFromPagination, st as spotQuantityToChainQuantity, t as recoverTypedSignaturePubKey, tn as stringToUint8Array, tt as spotPriceFromChainPrice, u as addHexPrefix, ut as grpcCoinToUiCoin, v as isCw20ContractAddress, vt as protoObjectToJson, w as amountToCosmosSdkDecAmount, wt as decompressPubKey, x as getDerivativeMarketTensMultiplier, xt as SignTypedDataVersionV4, y as removeHexPrefix, yt as sortObjectByKeys, z as derivativePriceToChainPriceToFixed, zt as BECH32_ADDR_ACC_PREFIX } from "./utils-DlnuXIe8.js";
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";
2
2
  import { a as protobufTimestampToUnixSeconds, i as protobufTimestampToUnixMs, n as makeTimeoutTimestampInNs, r as protobufTimestampToDate, t as makeTimeoutTimestamp } from "./time-DYEqYFao.js";
3
3
  import { n as getGrpcWebTransport, t as GrpcWebFetchTransport } from "./grpc-lYZqzL0k.js";
4
4
 
5
- export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, cosmosSdkDecToBigNumber, decompressPubKey, denomAmountFromChainDenomAmount, denomAmountFromChainDenomAmountToFixed, denomAmountFromGrpcChainDenomAmount, denomAmountToChainDenomAmount, denomAmountToChainDenomAmountToFixed, denomAmountToGrpcChainDenomAmount, derivativeMarginFromChainMargin, derivativeMarginFromChainMarginToFixed, derivativeMarginToChainMargin, derivativeMarginToChainMarginToFixed, derivativePriceFromChainPrice, derivativePriceFromChainPriceToFixed, derivativePriceToChainPrice, derivativePriceToChainPriceToFixed, derivativeQuantityFromChainQuantity, derivativeQuantityFromChainQuantityToFixed, derivativeQuantityToChainQuantity, derivativeQuantityToChainQuantityToFixed, domainHash, fetchAllWithPagination, formatAmountToAllowableAmount, formatAmountToAllowableDecimals, formatNumberToAllowableDecimals, formatNumberToAllowableTensMultiplier, formatPriceToAllowableDecimals, formatPriceToAllowablePrice, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getChecksumAddress, getDefaultSubaccountId, getDerivativeMarketDecimals, getDerivativeMarketTensMultiplier, getErrorMessage, getEthereumAddress, getExactDecimalsFromNumber, getGasPriceBasedOnMessage, getGrpcWebTransport, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSignificantDecimalsFromNumber, getSpotMarketDecimals, getSpotMarketTensMultiplier, getSubaccountId, getTensMultiplier, grpcCoinToUiCoin, grpcPaginationToPagination, grpcPagingToPaging, grpcPagingToPagingV2, hashToHex, hexToBase64, hexToBuff, hexToNumber, hexToUint8Array, isBrowser, isCw20ContractAddress, isJsonString, isNode, isNumber, isReactNative, isServerSide, makeTimeoutTimestamp, makeTimeoutTimestampInNs, messageHash, numberToCosmosSdkDecString, objectToJson, ofacList, pageRequestToGrpcPageRequestV2, paginationRequestFromPagination, paginationUint8ArrayToString, parseCoins, privateKeyHashToPublicKey, privateKeyHashToPublicKeyBase64, privateKeyToPublicKey, privateKeyToPublicKeyBase64, protoObjectToJson, protobufTimestampToDate, protobufTimestampToUnixMs, protobufTimestampToUnixSeconds, publicKeyToAddress, recoverTypedSignaturePubKey, removeHexPrefix, ripemd160, sanitizeTypedData, sha256, sortObjectByKeys, sortObjectByKeysWithReduce, spotPriceFromChainPrice, spotPriceFromChainPriceToFixed, spotPriceToChainPrice, spotPriceToChainPriceToFixed, spotQuantityFromChainQuantity, spotQuantityFromChainQuantityToFixed, spotQuantityToChainQuantity, spotQuantityToChainQuantityToFixed, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
5
+ export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, GrpcWebFetchTransport, SignTypedDataVersionV4, TypedDataUtilsHashStruct, TypedDataUtilsSanitizeData, addHexPrefix, amountToCosmosSdkDecAmount, base64ToUint8Array, base64ToUtf8, bigIntReplacer, 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.8",
3
+ "version": "1.17.2-alpha.9",
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": {
@@ -328,10 +328,10 @@
328
328
  "rxjs": "7.8.2",
329
329
  "snakecase-keys": "^5.4.1",
330
330
  "viem": "^2.41.2",
331
- "@injectivelabs/exceptions": "1.17.2-alpha.8",
332
- "@injectivelabs/networks": "1.17.2-alpha.8",
333
- "@injectivelabs/utils": "1.17.2-alpha.8",
334
- "@injectivelabs/ts-types": "1.17.2-alpha.8"
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
335
  },
336
336
  "devDependencies": {
337
337
  "shx": "^0.3.4"