@injectivelabs/sdk-ts 1.18.8 → 1.18.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{BaseGrpcConsumer-XU1gXJm6.d.cts → BaseGrpcConsumer-Ba4uw4ZN.d.cts} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-5On5kown.cjs → ChainGrpcExchangeApi-3DY04PHO.cjs} +2 -2
- package/dist/cjs/{ChainRestTendermintApi-DILpgVDN.cjs → ChainRestTendermintApi-MF5q19L2.cjs} +1 -1
- package/dist/cjs/{DirectEthSecp256k1Wallet-Dspl1Hmi.cjs → DirectEthSecp256k1Wallet-L677kLZ7.cjs} +2 -2
- package/dist/cjs/{ExecArgNeptuneWithdraw-DbSKGUcw.cjs → ExecArgNeptuneWithdraw-8SOWKjdg.cjs} +1 -1
- package/dist/cjs/{IndexerGrpcWeb3GwApi-3Y1DacFO.cjs → IndexerGrpcWeb3GwApi-BjMwVPdm.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-MI0yndU_.cjs → MsgSetDenomMetadata-BIumq-9w.cjs} +211 -4
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-CVrylFf2.cjs → QueryTradingStrategyContractTotalStrategies-BGgUJe2N.cjs} +3 -3
- package/dist/cjs/{StreamManagerV2-xej88ONZ.cjs → StreamManagerV2-DlTHwjnI.cjs} +305 -4
- package/dist/cjs/TcAbacusGrpcApi-QxfMHhQI.cjs +132 -0
- package/dist/cjs/{accounts-CAskEh_H.cjs → accounts-wHt0IgWE.cjs} +1 -1
- package/dist/cjs/{chain-BspgV0Jj.cjs → chain-DKhn1v5I.cjs} +2 -2
- package/dist/cjs/client/abacus.d.cts +4 -4
- package/dist/cjs/client/chain.cjs +4 -4
- package/dist/cjs/client/chain.d.cts +9 -8
- package/dist/cjs/client/indexer.cjs +7 -3
- package/dist/cjs/client/indexer.d.cts +10 -9
- package/dist/cjs/client/olp.d.cts +4 -4
- package/dist/cjs/client/tcAbacus.cjs +6 -0
- package/dist/cjs/client/tcAbacus.d.cts +5 -0
- package/dist/cjs/client/wasm.cjs +6 -6
- package/dist/cjs/client/wasm.d.cts +3 -3
- package/dist/cjs/core/accounts.cjs +2 -2
- package/dist/cjs/core/accounts.d.cts +9 -8
- package/dist/cjs/core/modules.cjs +11 -8
- package/dist/cjs/core/modules.d.cts +10 -9
- package/dist/cjs/core/tx.cjs +5 -5
- package/dist/cjs/core/tx.d.cts +9 -8
- package/dist/cjs/cosmjs.cjs +6 -6
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.cjs +6 -6
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index--sK2-HcK.d.cts → index-BYBE7jYC.d.cts} +1 -1
- package/dist/cjs/{index-K2VD9zHZ.d.cts → index-BhsPcNn5.d.cts} +1 -1
- package/dist/cjs/{index-D8VsT7vx.d.cts → index-CDEYM6Fs.d.cts} +1484 -90
- package/dist/cjs/{index-YxLQKJVw.d.cts → index-CgHU4RQF.d.cts} +1 -1
- package/dist/cjs/{index-DBRk7KBS.d.cts → index-Cur9wjzW.d.cts} +1 -1
- package/dist/cjs/index-D0D2Btyn.d.cts +65 -0
- package/dist/cjs/{index-r0RxGSzR.d.cts → index-DfJ_98xz.d.cts} +2 -2
- package/dist/cjs/{index-DkZCBLFW.d.cts → index-m48Rf9ow.d.cts} +1 -1
- package/dist/cjs/index.cjs +21 -12
- package/dist/cjs/index.d.cts +10 -9
- package/dist/cjs/{service-DmzN9jAl.cjs → service-0PhYqd2q.cjs} +1 -1
- package/dist/cjs/service.cjs +2 -2
- package/dist/cjs/service.d.cts +3 -3
- package/dist/cjs/{tx-BI50N6Ug.cjs → tx-DD4X9BrB.cjs} +4 -4
- package/dist/cjs/types.d.cts +2 -2
- package/dist/cjs/{utils-D3XFGv8y.cjs → utils-Bfjw459k.cjs} +10 -0
- package/dist/cjs/utils.cjs +1 -1
- package/dist/cjs/utils.d.cts +9 -8
- package/dist/esm/{AbacusGrpcApi-DG807S_D.js → AbacusGrpcApi-Dh2A_RaD.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-lUDP-V1I.js → BaseGrpcConsumer-CsJHyzUs.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-CReMIR81.d.ts → BaseGrpcConsumer-DEH9Rq7m.d.ts} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-ByGqwnv0.js → BaseIndexerGrpcConsumer-B_zDF6-R.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-dM8pIv3Q.js → ChainGrpcExchangeApi-CnWi3kXP.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-iiW50Z2J.js → ChainRestTendermintApi-Duz8V3KK.js} +4 -4
- package/dist/esm/{DirectEthSecp256k1Wallet-CbAgcHKE.js → DirectEthSecp256k1Wallet-D-k0846W.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-DJORl4u0.js → ExecArgNeptuneWithdraw-PqmStnen.js} +3 -3
- package/dist/esm/{IndexerGrpcWeb3GwApi-B4aThnBY.js → IndexerGrpcWeb3GwApi-wVedW8ol.js} +3 -3
- package/dist/esm/{MsgBase-CbjK9owE.js → MsgBase-Cd9l1FGI.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-BpZGNLUP.js → MsgSetDenomMetadata-HLrc45ya.js} +197 -8
- package/dist/esm/{OLPGrpcApi-CYVKwBCj.js → OLPGrpcApi-ItkvGAWH.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-C3UaOByy.js → QueryTradingStrategyContractTotalStrategies-CDKtJs6H.js} +4 -4
- package/dist/esm/{StreamManagerV2-DuognV94.js → StreamManagerV2-BbAZJdT5.js} +286 -10
- package/dist/esm/TcAbacusGrpcApi-DX8y2a33.js +125 -0
- package/dist/esm/{accounts-BKHD67r1.js → accounts-B_bymcv_.js} +3 -3
- package/dist/esm/{chain-ByyF76p2.js → chain-cZz2uvOr.js} +5 -5
- package/dist/esm/client/abacus.d.ts +4 -4
- package/dist/esm/client/abacus.js +4 -4
- package/dist/esm/client/chain.d.ts +9 -8
- package/dist/esm/client/chain.js +8 -8
- package/dist/esm/client/indexer.d.ts +10 -9
- package/dist/esm/client/indexer.js +10 -10
- package/dist/esm/client/olp.d.ts +4 -4
- package/dist/esm/client/olp.js +5 -5
- package/dist/esm/client/tcAbacus.d.ts +5 -0
- package/dist/esm/client/tcAbacus.js +6 -0
- package/dist/esm/client/wasm.d.ts +3 -3
- package/dist/esm/client/wasm.js +11 -11
- package/dist/esm/core/accounts.d.ts +9 -8
- package/dist/esm/core/accounts.js +5 -5
- package/dist/esm/core/modules.d.ts +10 -9
- package/dist/esm/core/modules.js +15 -15
- package/dist/esm/core/tx.d.ts +9 -8
- package/dist/esm/core/tx.js +11 -11
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +12 -12
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +12 -12
- package/dist/esm/index-AiZDHh70.d.ts +65 -0
- package/dist/esm/{index-CzA8Vsvu.d.ts → index-C8crIAg1.d.ts} +1 -1
- package/dist/esm/{index-CyAnGzHK.d.ts → index-CZDITwmg.d.ts} +1 -1
- package/dist/esm/{index-DURa_Zcr.d.ts → index-CgoUDnJ_.d.ts} +1484 -90
- package/dist/esm/{index-2mDHsfhZ.d.ts → index-DKn53Idr.d.ts} +1 -1
- package/dist/esm/{index-C50cGGLl.d.ts → index-DQnG0Shp.d.ts} +1 -1
- package/dist/esm/{index-DCYNIH-b.d.ts → index-ECwAlIYI.d.ts} +2 -2
- package/dist/esm/{index-CSIVgVUj.d.ts → index-YDJMFRVk.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -9
- package/dist/esm/index.js +23 -22
- package/dist/esm/{service-DcE3KfV9.js → service-VNRTqysm.js} +3 -3
- package/dist/esm/service.d.ts +3 -3
- package/dist/esm/service.js +5 -5
- package/dist/esm/{tx-cGBIe-BE.js → tx-ByxSGpt3.js} +6 -6
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/types.js +1 -1
- package/dist/esm/{utils-CewUFGKA.js → utils-XYJbh13N.js} +10 -0
- package/dist/esm/utils.d.ts +9 -8
- package/dist/esm/utils.js +2 -2
- package/package.json +28 -7
- /package/dist/cjs/{tx_pb-DDTuVb3m.d.cts → tx_pb-BN7h9uqT.d.cts} +0 -0
- /package/dist/esm/{BaseRestConsumer-DTvorEHL.js → BaseRestConsumer-BySVL6Rh.js} +0 -0
- /package/dist/esm/{defineProperty-DuYPbdEg.js → defineProperty-HO0rQlTT.js} +0 -0
- /package/dist/esm/{grpc-C3eJiY2o.js → grpc-BJmNoike.js} +0 -0
- /package/dist/esm/{tx_pb-D8fPXRH8.d.ts → tx_pb-B9KzLX7v.d.ts} +0 -0
- /package/dist/esm/{types-Cf4oVv93.js → types-WE16qNvL.js} +0 -0
|
@@ -377,6 +377,7 @@ const getGasPriceBasedOnMessage = (msgs) => {
|
|
|
377
377
|
//#endregion
|
|
378
378
|
//#region src/utils/ofac.ts
|
|
379
379
|
const ofacList = [
|
|
380
|
+
"0x0330070fd38ec3bb94f58fa55d40368271e9e54a",
|
|
380
381
|
"0x04dba1194ee10112fe6c3207c0687def0e78bacf",
|
|
381
382
|
"0x08723392ed15743cc38513c4925f5e6be5c17243",
|
|
382
383
|
"0x08b2efdcdb8822efe5ad0eae55517cf5dc544251",
|
|
@@ -417,6 +418,8 @@ const ofacList = [
|
|
|
417
418
|
"0x6be0ae71e6c41f2f9d0d1a3b8d0f75e6f6a0b46e",
|
|
418
419
|
"0x6f1ca141a28907f78ebaa64fb83a9088b02a8352",
|
|
419
420
|
"0x72a5843cc08275c8171e582972aa4fda8c397b2a",
|
|
421
|
+
"0x747afb5c7a7fc34b547cd0fdebf9b91759c5a52b",
|
|
422
|
+
"0x76ea76ca4eb727f18956ab93445a94c5280412b9",
|
|
420
423
|
"0x797d7ae72ebddcdea2a346c1834e04d1f8df102b",
|
|
421
424
|
"0x7ced75026204ac29c34bea98905d4c949f27361e",
|
|
422
425
|
"0x7db418b5d567a4e0e8c59ad71be1fce48f3e6107",
|
|
@@ -428,18 +431,23 @@ const ofacList = [
|
|
|
428
431
|
"0x8dce2aac0de82bdcaf6b4373b79f94331b8e4995",
|
|
429
432
|
"0x901bb9583b24d97e995513c6778dc6888ab6870e",
|
|
430
433
|
"0x931546d9e66836abf687d2bc64b30407bac8c568",
|
|
434
|
+
"0x95584c303fcd48af5c6b9873015f2ad0ca84eae3",
|
|
431
435
|
"0x961c5be54a2ffc17cf4cb021d863c42dacd47fc1",
|
|
432
436
|
"0x97b1043abd9e6fc31681635166d430a458d14f9c",
|
|
433
437
|
"0x983a81ca6fb1e441266d2fbcb7d8e530ac2e05a2",
|
|
438
|
+
"0x9be599d7867f5e1a2d7ec6db9710df2b98a15573",
|
|
434
439
|
"0x9c2bc757b66f24d60f016b6237f8cdd414a879fa",
|
|
435
440
|
"0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9",
|
|
436
441
|
"0xa0e1c89ef1a489c9c7de96311ed5ce5d32c20e4b",
|
|
437
442
|
"0xa7e5d5a720f06526557c513402f2e6b5fa20b008",
|
|
438
443
|
"0xb338962b92cd818d6aef0a32a9ecd01212a71f33",
|
|
444
|
+
"0xb637f84b66876ebf609c2a4208905f9ddac9d075",
|
|
439
445
|
"0xb6f5ec1a0a9cd1526536d3f0426c429529471f40",
|
|
440
446
|
"0xc103b7dc095c904b92081eef0c1640081ec01c10",
|
|
441
447
|
"0xc2a3829f459b3edd87791c74cd45402ba0a20be3",
|
|
442
448
|
"0xc455f7fd3e0e12afd51fba5c106909934d8a0e4a",
|
|
449
|
+
"0xcb74874f1e06fcf80a306e06e5379a44b488ba2d",
|
|
450
|
+
"0xd04e33461fea8302c5e1e13895b60cee8aefda7f",
|
|
443
451
|
"0xd0975b32cea532eadddfc9c60481976e39db3472",
|
|
444
452
|
"0xd5ed34b52ac4ab84d8fa8a231a3218bbf01ed510",
|
|
445
453
|
"0xd8500c631dc32fa18645b7436344a99e4825e10e",
|
|
@@ -457,6 +465,8 @@ const ofacList = [
|
|
|
457
465
|
"0xf4377eda661e04b6dda78969796ed31658d602d4",
|
|
458
466
|
"0xf7b31119c2682c88d88d455dbb9d5932c65cf1be",
|
|
459
467
|
"0xfac583c0cf07ea434052c49115a4682172ab6b4f",
|
|
468
|
+
"0xfb3eff152ea55d1bfa04dbdd509a80fd7b72cdeb",
|
|
469
|
+
"0xfda1ec4a6178d4916b001a065422d31ebe5f62ff",
|
|
460
470
|
"0xfec8a60023265364d066a1212fde3930f6ae8da7",
|
|
461
471
|
"0xc5801cd781d168e2d3899ad9c39d8a2541871298",
|
|
462
472
|
"0x0992E2D17e0082Df8a31Bf36Bd8Cc662551de68B",
|
package/dist/esm/utils.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { $d as
|
|
4
|
-
import "./BaseGrpcConsumer-
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
1
|
+
import "./tx_pb-B9KzLX7v.js";
|
|
2
|
+
import "./index-C8crIAg1.js";
|
|
3
|
+
import { $d as safeBigIntStringify, $u as getSpotMarketDecimals, Ad as isNumber, Au as fromBase64, Bd as bigIntReplacer, Bu as uint8ArrayToString, Cd as formatNumberToAllowableDecimals, Cf as makeTimeoutTimestampInNs, Cu as BECH32_PUBKEY_CONS_PREFIX, Dd as getExactDecimalsFromNumber, Du as base64ToUtf8, Ed as formatPriceToAllowablePrice, Ef as protobufTimestampToUnixSeconds, Eu as base64ToUint8Array, Fd as spotPriceToChainPriceToFixed, Fu as stringToUint8Array, Gd as hexToNumber, Gu as getEthereumAddress, Hd as bigIntToString, Hu as getAddressFromInjectiveAddress, Id as spotQuantityFromChainQuantity, Iu as toBase64, Jd as isNode, Ju as getSubaccountId, Kd as isBrowser, Ku as getInjectiveAddress, Ld as spotQuantityFromChainQuantityToFixed, Lu as toUtf8, Md as spotPriceFromChainPrice, Mu as hexToBase64, Nd as spotPriceFromChainPriceToFixed, Nu as hexToBuff, Od as getSignificantDecimalsFromNumber, Ou as binaryToBase64, Pd as spotPriceToChainPrice, Pu as hexToUint8Array, Qd as protoObjectToJson, Qu as getDerivativeMarketTensMultiplier, Rd as spotQuantityToChainQuantity, Ru as uint8ArrayToBase64, Sd as formatAmountToAllowableDecimals, Sf as makeTimeoutTimestamp, Su as BECH32_PUBKEY_ACC_PREFIX, Td as formatPriceToAllowableDecimals, Tf as protobufTimestampToUnixMs, Tu as DEFAULT_DERIVATION_PATH, Ud as getErrorMessage, Uu as getChecksumAddress, Vd as bigIntToNumber, Vu as addHexPrefix, Wd as grpcCoinToUiCoin, Wu as getDefaultSubaccountId, Xd as isServerSide, Xu as removeHexPrefix, Yd as isReactNative, Yu as isCw20ContractAddress, Zd as objectToJson, Zu as getDerivativeMarketDecimals, _d as derivativeQuantityFromChainQuantity, _f as sha256, _u as paginationRequestFromPagination, ad as denomAmountFromGrpcChainDenomAmount, af as TypedMessageV4, bd as derivativeQuantityToChainQuantityToFixed, bf as getGrpcWebTransport, bu as BECH32_ADDR_CONS_PREFIX, cd as denomAmountToGrpcChainDenomAmount, cf as hashToHex, dd as derivativeMarginToChainMargin, df as privateKeyHashToPublicKeyBase64, du as recoverTypedSignaturePubKey, ed as getSpotMarketTensMultiplier, ef as sortObjectByKeys, fd as derivativeMarginToChainMarginToFixed, ff as privateKeyToPublicKey, fu as fetchAllWithPagination, gd as derivativePriceToChainPriceToFixed, gf as sanitizeTypedData, gu as pageRequestToGrpcPageRequestV2, hd as derivativePriceToChainPrice, hf as ripemd160, hu as grpcPagingToPagingV2, id as denomAmountFromChainDenomAmountToFixed, if as TypedDataUtilsSanitizeData, jd as numberToCosmosSdkDecString, ju as fromUtf8, kd as getTensMultiplier, ku as concatUint8Arrays, ld as derivativeMarginFromChainMargin, lf as messageHash, md as derivativePriceFromChainPriceToFixed, mf as publicKeyToAddress, mu as grpcPagingToPaging, nd as cosmosSdkDecToBigNumber, nf as SignTypedDataVersionV4, od as denomAmountToChainDenomAmount, of as decompressPubKey, pd as derivativePriceFromChainPrice, pf as privateKeyToPublicKeyBase64, pu as grpcPaginationToPagination, qd as isJsonString, qu as getInjectiveAddressFromSubaccountId, rd as denomAmountFromChainDenomAmount, rf as TypedDataUtilsHashStruct, sd as denomAmountToChainDenomAmountToFixed, sf as domainHash, td as amountToCosmosSdkDecAmount, tf as sortObjectByKeysWithReduce, ub as GrpcWebFetchTransport, ud as derivativeMarginFromChainMarginToFixed, uf as privateKeyHashToPublicKey, vd as derivativeQuantityFromChainQuantityToFixed, vf as parseCoins, vu as paginationUint8ArrayToString, wd as formatNumberToAllowableTensMultiplier, wf as protobufTimestampToDate, wu as BECH32_PUBKEY_VAL_PREFIX, xd as formatAmountToAllowableAmount, xf as getGasPriceBasedOnMessage, xu as BECH32_ADDR_VAL_PREFIX, yd as derivativeQuantityToChainQuantity, yf as ofacList, yu as BECH32_ADDR_ACC_PREFIX, zd as spotQuantityToChainQuantityToFixed, zu as uint8ArrayToHex } from "./index-CgoUDnJ_.js";
|
|
4
|
+
import "./BaseGrpcConsumer-DEH9Rq7m.js";
|
|
5
|
+
import "./index-DKn53Idr.js";
|
|
6
|
+
import "./index-ECwAlIYI.js";
|
|
7
|
+
import "./index-DQnG0Shp.js";
|
|
8
|
+
import "./index-AiZDHh70.js";
|
|
9
|
+
import "./index-YDJMFRVk.js";
|
|
9
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,4 +1,4 @@
|
|
|
1
|
-
import { $ as isNumber, $t as uint8ArrayToString, A as denomAmountToChainDenomAmountToFixed, At as protobufTimestampToUnixMs, B as derivativeQuantityFromChainQuantity, Bt as base64ToUtf8, C as getSpotMarketTensMultiplier, Ct as sha256, D as denomAmountFromChainDenomAmountToFixed, Dt as makeTimeoutTimestamp, E as denomAmountFromChainDenomAmount, Et as getGasPriceBasedOnMessage, F as derivativeMarginToChainMarginToFixed, Ft as BECH32_PUBKEY_ACC_PREFIX, G as formatAmountToAllowableDecimals, Gt as hexToBase64, H as derivativeQuantityToChainQuantity, Ht as concatUint8Arrays, I as derivativePriceFromChainPrice, It as BECH32_PUBKEY_CONS_PREFIX, J as formatPriceToAllowableDecimals, Jt as stringToUint8Array, K as formatNumberToAllowableDecimals, Kt as hexToBuff, L as derivativePriceFromChainPriceToFixed, Lt as BECH32_PUBKEY_VAL_PREFIX, M as derivativeMarginFromChainMargin, Mt as BECH32_ADDR_ACC_PREFIX, N as derivativeMarginFromChainMarginToFixed, Nt as BECH32_ADDR_CONS_PREFIX, O as denomAmountFromGrpcChainDenomAmount, Ot as makeTimeoutTimestampInNs, P as derivativeMarginToChainMargin, Pt as BECH32_ADDR_VAL_PREFIX, Q as getTensMultiplier, Qt as uint8ArrayToHex, R as derivativePriceToChainPrice, Rt as DEFAULT_DERIVATION_PATH, S as getSpotMarketDecimals, St as sanitizeTypedData, T as cosmosSdkDecToBigNumber, Tt as ofacList, U as derivativeQuantityToChainQuantityToFixed, Ut as fromBase64, V as derivativeQuantityFromChainQuantityToFixed, Vt as binaryToBase64, W as formatAmountToAllowableAmount, Wt as fromUtf8, X as getExactDecimalsFromNumber, Xt as toUtf8, Y as formatPriceToAllowablePrice, Yt as toBase64, Z as getSignificantDecimalsFromNumber, Zt as uint8ArrayToBase64, _ as getSubaccountId, _t as privateKeyHashToPublicKeyBase64, a as grpcPagingToPagingV2, an as hexToNumber, at as spotQuantityFromChainQuantity, b as getDerivativeMarketDecimals, bt as publicKeyToAddress, c as paginationUint8ArrayToString, cn as isNode, ct as spotQuantityToChainQuantityToFixed, d as getAddressFromInjectiveAddress, dn as objectToJson, dt as TypedDataUtilsSanitizeData, en as bigIntReplacer, et as numberToCosmosSdkDecString, f as getChecksumAddress, fn as protoObjectToJson, ft as decompressPubKey, g as getInjectiveAddressFromSubaccountId, gt as privateKeyHashToPublicKey, h as getInjectiveAddress, hn as sortObjectByKeysWithReduce, ht as messageHash, i as grpcPagingToPaging, in as grpcCoinToUiCoin, it as spotPriceToChainPriceToFixed, j as denomAmountToGrpcChainDenomAmount, jt as protobufTimestampToUnixSeconds, k as denomAmountToChainDenomAmount, kt as protobufTimestampToDate, ln as isReactNative, lt as SignTypedDataVersionV4, m as getEthereumAddress, mn as sortObjectByKeys, mt as hashToHex, n as fetchAllWithPagination, nn as bigIntToString, nt as spotPriceFromChainPriceToFixed, o as pageRequestToGrpcPageRequestV2, on as isBrowser, ot as spotQuantityFromChainQuantityToFixed, p as getDefaultSubaccountId, pn as safeBigIntStringify, pt as domainHash, q as formatNumberToAllowableTensMultiplier, qt as hexToUint8Array, r as grpcPaginationToPagination, rn as getErrorMessage, rt as spotPriceToChainPrice, s as paginationRequestFromPagination, sn as isJsonString, st as spotQuantityToChainQuantity, t as recoverTypedSignaturePubKey, tn as bigIntToNumber, tt as spotPriceFromChainPrice, u as addHexPrefix, un as isServerSide, 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 base64ToUint8Array } from "./utils-
|
|
2
|
-
import { n as getGrpcWebTransport, t as GrpcWebFetchTransport } from "./grpc-
|
|
1
|
+
import { $ as isNumber, $t as uint8ArrayToString, A as denomAmountToChainDenomAmountToFixed, At as protobufTimestampToUnixMs, B as derivativeQuantityFromChainQuantity, Bt as base64ToUtf8, C as getSpotMarketTensMultiplier, Ct as sha256, D as denomAmountFromChainDenomAmountToFixed, Dt as makeTimeoutTimestamp, E as denomAmountFromChainDenomAmount, Et as getGasPriceBasedOnMessage, F as derivativeMarginToChainMarginToFixed, Ft as BECH32_PUBKEY_ACC_PREFIX, G as formatAmountToAllowableDecimals, Gt as hexToBase64, H as derivativeQuantityToChainQuantity, Ht as concatUint8Arrays, I as derivativePriceFromChainPrice, It as BECH32_PUBKEY_CONS_PREFIX, J as formatPriceToAllowableDecimals, Jt as stringToUint8Array, K as formatNumberToAllowableDecimals, Kt as hexToBuff, L as derivativePriceFromChainPriceToFixed, Lt as BECH32_PUBKEY_VAL_PREFIX, M as derivativeMarginFromChainMargin, Mt as BECH32_ADDR_ACC_PREFIX, N as derivativeMarginFromChainMarginToFixed, Nt as BECH32_ADDR_CONS_PREFIX, O as denomAmountFromGrpcChainDenomAmount, Ot as makeTimeoutTimestampInNs, P as derivativeMarginToChainMargin, Pt as BECH32_ADDR_VAL_PREFIX, Q as getTensMultiplier, Qt as uint8ArrayToHex, R as derivativePriceToChainPrice, Rt as DEFAULT_DERIVATION_PATH, S as getSpotMarketDecimals, St as sanitizeTypedData, T as cosmosSdkDecToBigNumber, Tt as ofacList, U as derivativeQuantityToChainQuantityToFixed, Ut as fromBase64, V as derivativeQuantityFromChainQuantityToFixed, Vt as binaryToBase64, W as formatAmountToAllowableAmount, Wt as fromUtf8, X as getExactDecimalsFromNumber, Xt as toUtf8, Y as formatPriceToAllowablePrice, Yt as toBase64, Z as getSignificantDecimalsFromNumber, Zt as uint8ArrayToBase64, _ as getSubaccountId, _t as privateKeyHashToPublicKeyBase64, a as grpcPagingToPagingV2, an as hexToNumber, at as spotQuantityFromChainQuantity, b as getDerivativeMarketDecimals, bt as publicKeyToAddress, c as paginationUint8ArrayToString, cn as isNode, ct as spotQuantityToChainQuantityToFixed, d as getAddressFromInjectiveAddress, dn as objectToJson, dt as TypedDataUtilsSanitizeData, en as bigIntReplacer, et as numberToCosmosSdkDecString, f as getChecksumAddress, fn as protoObjectToJson, ft as decompressPubKey, g as getInjectiveAddressFromSubaccountId, gt as privateKeyHashToPublicKey, h as getInjectiveAddress, hn as sortObjectByKeysWithReduce, ht as messageHash, i as grpcPagingToPaging, in as grpcCoinToUiCoin, it as spotPriceToChainPriceToFixed, j as denomAmountToGrpcChainDenomAmount, jt as protobufTimestampToUnixSeconds, k as denomAmountToChainDenomAmount, kt as protobufTimestampToDate, ln as isReactNative, lt as SignTypedDataVersionV4, m as getEthereumAddress, mn as sortObjectByKeys, mt as hashToHex, n as fetchAllWithPagination, nn as bigIntToString, nt as spotPriceFromChainPriceToFixed, o as pageRequestToGrpcPageRequestV2, on as isBrowser, ot as spotQuantityFromChainQuantityToFixed, p as getDefaultSubaccountId, pn as safeBigIntStringify, pt as domainHash, q as formatNumberToAllowableTensMultiplier, qt as hexToUint8Array, r as grpcPaginationToPagination, rn as getErrorMessage, rt as spotPriceToChainPrice, s as paginationRequestFromPagination, sn as isJsonString, st as spotQuantityToChainQuantity, t as recoverTypedSignaturePubKey, tn as bigIntToNumber, tt as spotPriceFromChainPrice, u as addHexPrefix, un as isServerSide, 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 base64ToUint8Array } from "./utils-XYJbh13N.js";
|
|
2
|
+
import { n as getGrpcWebTransport, t as GrpcWebFetchTransport } from "./grpc-BJmNoike.js";
|
|
3
3
|
|
|
4
4
|
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.18.
|
|
3
|
+
"version": "1.18.10",
|
|
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": {
|
|
@@ -174,6 +174,26 @@
|
|
|
174
174
|
"default": "./dist/cjs/client/olp.cjs"
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
+
"./client/tcAbacus": {
|
|
178
|
+
"react-native": {
|
|
179
|
+
"import": "./dist/esm/client/tcAbacus.js",
|
|
180
|
+
"require": "./dist/cjs/client/tcAbacus.cjs",
|
|
181
|
+
"types": "./dist/cjs/client/tcAbacus.d.cts",
|
|
182
|
+
"default": "./dist/cjs/client/tcAbacus.cjs"
|
|
183
|
+
},
|
|
184
|
+
"require": {
|
|
185
|
+
"types": "./dist/cjs/client/tcAbacus.d.cts",
|
|
186
|
+
"default": "./dist/cjs/client/tcAbacus.cjs"
|
|
187
|
+
},
|
|
188
|
+
"import": {
|
|
189
|
+
"types": "./dist/esm/client/tcAbacus.d.ts",
|
|
190
|
+
"default": "./dist/esm/client/tcAbacus.js"
|
|
191
|
+
},
|
|
192
|
+
"default": {
|
|
193
|
+
"types": "./dist/cjs/client/tcAbacus.d.cts",
|
|
194
|
+
"default": "./dist/cjs/client/tcAbacus.cjs"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
177
197
|
"./core/modules": {
|
|
178
198
|
"react-native": {
|
|
179
199
|
"import": "./dist/esm/core/modules.js",
|
|
@@ -306,14 +326,15 @@
|
|
|
306
326
|
"@cosmjs/amino": "0.33.0",
|
|
307
327
|
"@cosmjs/proto-signing": "0.33.0",
|
|
308
328
|
"@cosmjs/stargate": "0.33.0",
|
|
309
|
-
"@injectivelabs/abacus-proto-ts-v2": "1.17.
|
|
329
|
+
"@injectivelabs/abacus-proto-ts-v2": "1.17.5",
|
|
310
330
|
"@injectivelabs/core-proto-ts-v2": "1.18.0",
|
|
311
331
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
312
332
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
313
333
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
314
|
-
"@injectivelabs/indexer-proto-ts-v2": "1.18.
|
|
334
|
+
"@injectivelabs/indexer-proto-ts-v2": "1.18.9",
|
|
315
335
|
"@injectivelabs/mito-proto-ts-v2": "1.17.3",
|
|
316
336
|
"@injectivelabs/olp-proto-ts-v2": "1.17.6",
|
|
337
|
+
"@injectivelabs/tc-abacus-proto-ts-v2": "1.18.1",
|
|
317
338
|
"@noble/curves": "^1.9.0",
|
|
318
339
|
"@noble/hashes": "^1.8.0",
|
|
319
340
|
"@protobuf-ts/grpcweb-transport": "^2.11.1",
|
|
@@ -330,10 +351,10 @@
|
|
|
330
351
|
"snakecase-keys": "^5.4.1",
|
|
331
352
|
"viem": "^2.41.2",
|
|
332
353
|
"ws": "^8.18.0",
|
|
333
|
-
"@injectivelabs/exceptions": "1.18.
|
|
334
|
-
"@injectivelabs/
|
|
335
|
-
"@injectivelabs/utils": "1.18.
|
|
336
|
-
"@injectivelabs/
|
|
354
|
+
"@injectivelabs/exceptions": "1.18.10",
|
|
355
|
+
"@injectivelabs/ts-types": "1.18.10",
|
|
356
|
+
"@injectivelabs/utils": "1.18.10",
|
|
357
|
+
"@injectivelabs/networks": "1.18.10"
|
|
337
358
|
},
|
|
338
359
|
"publishConfig": {
|
|
339
360
|
"access": "public"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|