@injectivelabs/sdk-ts 1.18.9 → 1.18.11
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/{StreamManagerV2-l-Prs2cZ.cjs → StreamManagerV2-DlTHwjnI.cjs} +303 -2
- package/dist/cjs/TcAbacusGrpcApi-QxfMHhQI.cjs +132 -0
- package/dist/cjs/client/abacus.d.cts +4 -4
- package/dist/cjs/client/chain.d.cts +9 -8
- package/dist/cjs/client/indexer.cjs +5 -1
- 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.d.cts +3 -3
- package/dist/cjs/core/accounts.d.cts +9 -8
- package/dist/cjs/core/modules.cjs +1 -1
- package/dist/cjs/core/modules.d.cts +9 -8
- package/dist/cjs/core/tx.cjs +1 -1
- package/dist/cjs/core/tx.d.cts +9 -8
- package/dist/cjs/cosmjs.cjs +2 -2
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/exports.cjs +2 -2
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index--sK2-HcK.d.cts → index-4xdeGNK4.d.cts} +8 -1
- package/dist/cjs/{index-K2VD9zHZ.d.cts → index-BhsPcNn5.d.cts} +1 -1
- package/dist/cjs/{index-CW3Yxjjk.d.cts → index-CDEYM6Fs.d.cts} +1378 -265
- 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 +9 -3
- package/dist/cjs/index.d.cts +10 -9
- package/dist/cjs/{service-CuS8x3-T.cjs → service-D7PCdXqp.cjs} +12 -0
- package/dist/cjs/service.cjs +1 -1
- package/dist/cjs/service.d.cts +3 -3
- package/dist/cjs/types.d.cts +2 -2
- 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-NAgOIabe.js → ChainGrpcExchangeApi-CnWi3kXP.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-B92SD57B.js → ChainRestTendermintApi-Duz8V3KK.js} +4 -4
- package/dist/esm/{DirectEthSecp256k1Wallet-B0yFLmu-.js → DirectEthSecp256k1Wallet-D-k0846W.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-DkvG3TrF.js → ExecArgNeptuneWithdraw-PqmStnen.js} +3 -3
- package/dist/esm/{IndexerGrpcWeb3GwApi-mj4kvjlu.js → IndexerGrpcWeb3GwApi-wVedW8ol.js} +3 -3
- package/dist/esm/{MsgBase-CbjK9owE.js → MsgBase-Cd9l1FGI.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-CxTQAJII.js → MsgSetDenomMetadata-HLrc45ya.js} +6 -6
- package/dist/esm/{OLPGrpcApi-CYVKwBCj.js → OLPGrpcApi-ItkvGAWH.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DIye8SrB.js → QueryTradingStrategyContractTotalStrategies-CDKtJs6H.js} +4 -4
- package/dist/esm/{StreamManagerV2-Bi2Lmzaw.js → StreamManagerV2-BbAZJdT5.js} +286 -10
- package/dist/esm/TcAbacusGrpcApi-DX8y2a33.js +125 -0
- package/dist/esm/{accounts-CltOgZyU.js → accounts-B_bymcv_.js} +3 -3
- package/dist/esm/{chain-BpdM-5x7.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 +9 -8
- package/dist/esm/core/modules.js +14 -14
- 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-Ct_nWHem.d.ts → index-CgoUDnJ_.d.ts} +1378 -265
- 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-CSIVgVUj.d.ts → index-DhfsaTNU.d.ts} +8 -1
- package/dist/esm/{index-DCYNIH-b.d.ts → index-ECwAlIYI.d.ts} +2 -2
- package/dist/esm/index.d.ts +10 -9
- package/dist/esm/index.js +23 -22
- package/dist/esm/{service-B_wKHuhK.js → service-CuS3psRy.js} +15 -3
- package/dist/esm/service.d.ts +3 -3
- package/dist/esm/service.js +5 -5
- package/dist/esm/{tx-DMyI6qgw.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.d.ts +9 -8
- package/dist/esm/utils.js +2 -2
- package/package.json +28 -7
- /package/dist/cjs/{DirectEthSecp256k1Wallet-BzOQi_Wj.cjs → DirectEthSecp256k1Wallet-L677kLZ7.cjs} +0 -0
- /package/dist/cjs/{tx-GyeN0ufS.cjs → tx-DD4X9BrB.cjs} +0 -0
- /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
- /package/dist/esm/{utils-C2KjM4mQ.js → utils-XYJbh13N.js} +0 -0
package/dist/esm/service.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import "./defineProperty-
|
|
3
|
-
import "./grpc-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-
|
|
1
|
+
import "./utils-XYJbh13N.js";
|
|
2
|
+
import "./defineProperty-HO0rQlTT.js";
|
|
3
|
+
import "./grpc-BJmNoike.js";
|
|
4
|
+
import "./types-WE16qNvL.js";
|
|
5
|
+
import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-CuS3psRy.js";
|
|
6
6
|
|
|
7
7
|
export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
3
|
-
import { _ as createAuthInfo, n as PrivateKey, t as BaseAccount, v as createBody, w as createSigners, x as createSignDoc, y as createFee } from "./accounts-
|
|
4
|
-
import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-
|
|
5
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
6
|
-
import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-
|
|
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-XYJbh13N.js";
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-HO0rQlTT.js";
|
|
3
|
+
import { _ as createAuthInfo, n as PrivateKey, t as BaseAccount, v as createBody, w as createSigners, x as createSignDoc, y as createFee } from "./accounts-B_bymcv_.js";
|
|
4
|
+
import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-Duz8V3KK.js";
|
|
5
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-CsJHyzUs.js";
|
|
6
|
+
import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-wVedW8ol.js";
|
|
7
7
|
import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
|
|
8
8
|
import { keccak256 } from "viem";
|
|
9
9
|
import { DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, getDefaultStdFee, getStdFee, getStdFeeFromString, toBigNumber } from "@injectivelabs/utils";
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
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-
|
|
1
|
+
import "./tx_pb-B9KzLX7v.js";
|
|
2
|
+
import { Ct as TokenVerification, St as TokenType, _ as OrderState, _t as StreamState, a as StreamOperation, b as TradeExecutionType, bt as TokenSource, c as DirectSignResponse, d as TxRaw, dt as StreamDisconnectReason, f as GrpcWebTransportAdditionalOptions, ft as StreamError, g as OrderSide, gt as StreamManagerRetryConfig, h as OrderMaskMap, ht as StreamManagerEvents, i as PaginationOption, l as GrpcCoin, lt as GrpcStatusCode, m as OrderMask, mt as StreamManagerConfig, n as PagePagination, o as AminoSignResponse, pt as StreamEvent, r as Pagination, s as Coin, t as ExchangePagination, u as SignDoc, ut as ResolvedStreamManagerConfig, v as TradeDirection, vt as StreamSubscription, xt as TokenStatic, y as TradeExecutionSide, yt as TokenMeta } from "./index-C8crIAg1.js";
|
|
3
3
|
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, GrpcWebTransportAdditionalOptions, OrderMask, OrderMaskMap, OrderSide, OrderState, PagePagination, Pagination, PaginationOption, ResolvedStreamManagerConfig, SignDoc, StreamDisconnectReason, StreamError, StreamEvent, StreamManagerConfig, StreamManagerEvents, StreamManagerRetryConfig, StreamOperation, StreamState, StreamSubscription, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
|
package/dist/esm/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as TradeDirection, c as GrpcStatusCode, d as StreamState, f as TokenSource, i as OrderState, l as StreamDisconnectReason, m as TokenVerification, n as OrderMaskMap, o as TradeExecutionSide, p as TokenType, r as OrderSide, s as TradeExecutionType, t as StreamOperation, u as StreamEvent } from "./types-
|
|
1
|
+
import { a as TradeDirection, c as GrpcStatusCode, d as StreamState, f as TokenSource, i as OrderState, l as StreamDisconnectReason, m as TokenVerification, n as OrderMaskMap, o as TradeExecutionSide, p as TokenType, r as OrderSide, s as TradeExecutionType, t as StreamOperation, u as StreamEvent } from "./types-WE16qNvL.js";
|
|
2
2
|
|
|
3
3
|
export { GrpcStatusCode, OrderMaskMap, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, StreamState, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
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-DhfsaTNU.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.11",
|
|
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/
|
|
334
|
-
"@injectivelabs/
|
|
335
|
-
"@injectivelabs/
|
|
336
|
-
"@injectivelabs/
|
|
354
|
+
"@injectivelabs/exceptions": "1.18.11",
|
|
355
|
+
"@injectivelabs/networks": "1.18.11",
|
|
356
|
+
"@injectivelabs/ts-types": "1.18.11",
|
|
357
|
+
"@injectivelabs/utils": "1.18.11"
|
|
337
358
|
},
|
|
338
359
|
"publishConfig": {
|
|
339
360
|
"access": "public"
|
/package/dist/cjs/{DirectEthSecp256k1Wallet-BzOQi_Wj.cjs → DirectEthSecp256k1Wallet-L677kLZ7.cjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|