@injectivelabs/sdk-ts 1.20.14 → 1.20.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{AbacusGrpcApi-xrQAr-fH.cjs → AbacusGrpcApi-CIMZFwl6.cjs} +2 -2
- package/dist/cjs/{BaseGrpcConsumer-DHYpiqn5.cjs → BaseGrpcConsumer-BCGDaVy8.cjs} +24 -24
- package/dist/cjs/{BaseGrpcConsumer-CgIbwIvJ.d.cts → BaseGrpcConsumer-CrbGIyOg.d.cts} +1 -1
- package/dist/cjs/{BaseIndexerGrpcConsumer-GHyeUHdH.cjs → BaseIndexerGrpcConsumer-CoMGNooL.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-MspF9deW.cjs → ChainGrpcExchangeApi-ChrfB9cv.cjs} +4 -4
- package/dist/cjs/{ChainRestTendermintApi-TZoqfN-E.cjs → ChainRestTendermintApi-utYZ9cZL.cjs} +7 -6
- package/dist/cjs/{DirectEthSecp256k1Wallet-D_rQWJR4.cjs → DirectEthSecp256k1Wallet-CbsATe2T.cjs} +14 -14
- package/dist/cjs/{ExecArgNeptuneWithdraw-ChJ7QUin.cjs → ExecArgNeptuneWithdraw-Sqk_zPQx.cjs} +7 -6
- package/dist/cjs/{IndexerGrpcWeb3GwApi-Cj9gotHt.cjs → IndexerGrpcWeb3GwApi-Di6ko7ub.cjs} +11 -10
- package/dist/cjs/{MsgBase-CAiwUyBz.cjs → MsgBase-BJmf0IHm.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-BDNtlSxx.cjs → MsgSetDenomMetadata-ycI5AKU4.cjs} +33 -31
- package/dist/cjs/{OLPGrpcApi-BqcMEdma.cjs → OLPGrpcApi-fdkKcWVJ.cjs} +2 -2
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-CbfuOlxa.cjs → QueryTradingStrategyContractTotalStrategies-CIlJC3Cq.cjs} +29 -29
- package/dist/cjs/{StreamManagerV2-Bo7m_nUZ.cjs → StreamManagerV2-B3ar_Wxz.cjs} +72 -71
- package/dist/cjs/{TcAbacusGrpcApi-7a0vFnWK.cjs → TcAbacusGrpcApi-B7wlTqfE.cjs} +2 -2
- package/dist/cjs/{accounts-gu3aR3dJ.cjs → accounts-pXwUOxWb.cjs} +38 -35
- package/dist/cjs/address-light-B5-DYwES.d.cts +14 -0
- package/dist/cjs/address-light-C_a6b8yF.cjs +114 -0
- package/dist/cjs/{chain-lo3Cyc0M.cjs → chain-D--KOL1m.cjs} +36 -35
- package/dist/cjs/client/abacus.cjs +6 -5
- package/dist/cjs/client/abacus.d.cts +5 -4
- package/dist/cjs/client/chain.cjs +14 -9
- package/dist/cjs/client/chain.d.cts +14 -9
- package/dist/cjs/client/indexer.cjs +15 -10
- package/dist/cjs/client/indexer.d.cts +14 -9
- package/dist/cjs/client/olp.cjs +7 -6
- package/dist/cjs/client/olp.d.cts +5 -4
- package/dist/cjs/client/tcAbacus.cjs +6 -5
- package/dist/cjs/client/tcAbacus.d.cts +5 -4
- package/dist/cjs/client/wasm.cjs +17 -12
- package/dist/cjs/client/wasm.d.cts +4 -3
- package/dist/cjs/coins-DRrEtaSG.cjs +20 -0
- package/dist/cjs/coins-JbAREn6e.d.cts +7 -0
- package/dist/cjs/constants-DSzHAIp3.d.cts +10 -0
- package/dist/cjs/constants-tPGACRGC.cjs +53 -0
- package/dist/cjs/core/accounts.cjs +9 -5
- package/dist/cjs/core/accounts.d.cts +14 -9
- package/dist/cjs/core/modules.cjs +20 -15
- package/dist/cjs/core/modules.d.cts +14 -9
- package/dist/cjs/core/tx.cjs +17 -12
- package/dist/cjs/core/tx.d.cts +14 -9
- package/dist/cjs/cosmjs.cjs +18 -13
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/encoding-light-CrQ0cICT.d.cts +18 -0
- package/dist/cjs/encoding-light-D96nxVLW.cjs +176 -0
- package/dist/cjs/exports.cjs +18 -13
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-DiXeIFAS.d.cts → index-BINBkEIb.d.cts} +1 -1
- package/dist/cjs/{index-D3pv75E_.d.cts → index-BaPRB8bU.d.cts} +1 -1
- package/dist/cjs/{index-uJW9LUqV.d.cts → index-C4k2HkhI.d.cts} +1 -1
- package/dist/{esm/index-DCxzFRMk.d.ts → cjs/index-CBmgjh-q.d.cts} +3 -146
- package/dist/cjs/{index-DfNpbUN6.d.cts → index-DE9mGZGH.d.cts} +1 -1
- package/dist/{esm/index-Bw9qjGRX.d.ts → cjs/index-eG3KUAK0.d.cts} +2 -1
- package/dist/cjs/{index-Ckay0hId.d.cts → index-i4yKnGpI.d.cts} +2 -2
- package/dist/cjs/{index-CKLOaQYD.d.cts → index-nXX5E77u.d.cts} +7 -188
- package/dist/cjs/index.cjs +74 -67
- package/dist/cjs/index.d.cts +15 -10
- package/dist/cjs/light-BhvqsgHj.d.cts +119 -0
- package/dist/cjs/{types-Cn54Lzf-.cjs → light-Qbh16DQE.cjs} +72 -58
- package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
- package/dist/cjs/{service-2B8kFWdK.cjs → service-WTWXJzS1.cjs} +18 -18
- package/dist/cjs/service.cjs +11 -6
- package/dist/cjs/service.d.cts +4 -3
- package/dist/cjs/stream-CcqYpdwJ.cjs +20 -0
- package/dist/cjs/{tx-C2jfAA8Y.cjs → tx-eQttrX5b.cjs} +14 -13
- package/dist/cjs/types/light.cjs +13 -0
- package/dist/cjs/types/light.d.cts +2 -0
- package/dist/cjs/types-BJpWW-Rx.cjs +37 -0
- package/dist/cjs/types.cjs +14 -13
- package/dist/cjs/types.d.cts +3 -2
- package/dist/cjs/utils/address.cjs +13 -0
- package/dist/cjs/utils/address.d.cts +2 -0
- package/dist/cjs/utils/constants.cjs +9 -0
- package/dist/cjs/utils/constants.d.cts +2 -0
- package/dist/cjs/utils/encoding.cjs +17 -0
- package/dist/cjs/utils/encoding.d.cts +2 -0
- package/dist/cjs/utils/light.cjs +39 -0
- package/dist/cjs/utils/light.d.cts +5 -0
- package/dist/cjs/{utils-DbzXsOHS.cjs → utils-CH1Ojxun.cjs} +132 -592
- package/dist/cjs/utils.cjs +40 -34
- package/dist/cjs/utils.d.cts +15 -10
- package/dist/esm/{AbacusGrpcApi-CtwUxhbH.js → AbacusGrpcApi-DVniM62M.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-C8YhjVn6.d.ts → BaseGrpcConsumer-B9J3abKI.d.ts} +1 -1
- package/dist/esm/{BaseGrpcConsumer-C2_ejXG6.js → BaseGrpcConsumer-D-uEnIgH.js} +3 -3
- package/dist/esm/{BaseIndexerGrpcConsumer-B7ubNh4y.js → BaseIndexerGrpcConsumer-BUcOBQHD.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-46tg3Hzg.js → ChainGrpcExchangeApi-CT0WW59O.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-J6BTcNft.js → ChainRestTendermintApi-C5sizTTA.js} +5 -4
- package/dist/esm/{DirectEthSecp256k1Wallet-DOuSBBhp.js → DirectEthSecp256k1Wallet-Daky9CEn.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-DiiRJIyN.js → ExecArgNeptuneWithdraw-ljDnPI2p.js} +4 -3
- package/dist/esm/{IndexerGrpcWeb3GwApi-43sbzWOe.js → IndexerGrpcWeb3GwApi-D9GO0m1v.js} +4 -3
- package/dist/esm/{MsgBase-C7o5mYq2.js → MsgBase-CishJWMN.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-k1Be2o9j.js → MsgSetDenomMetadata-DJaQwf94.js} +8 -6
- package/dist/esm/{OLPGrpcApi-DJHRAhPY.js → OLPGrpcApi-thWMIX2S.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-NvpGnD6O.js → QueryTradingStrategyContractTotalStrategies-NKplhQpi.js} +4 -4
- package/dist/esm/{StreamManagerV2-DiRDW-5W.js → StreamManagerV2-BdSq7ThE.js} +9 -8
- package/dist/esm/{TcAbacusGrpcApi-Dat50xET.js → TcAbacusGrpcApi-0zuZRiGi.js} +2 -2
- package/dist/esm/{accounts-Bu0DRjk4.js → accounts-3rypojw1.js} +6 -3
- package/dist/esm/address-light-BcZDS-ks.d.ts +14 -0
- package/dist/esm/address-light-C9skTx0P.js +48 -0
- package/dist/esm/{chain-DDGdMRsP.js → chain-CFXdQ_RS.js} +6 -5
- package/dist/esm/client/abacus.d.ts +5 -4
- package/dist/esm/client/abacus.js +6 -5
- package/dist/esm/client/chain.d.ts +14 -9
- package/dist/esm/client/chain.js +14 -9
- package/dist/esm/client/indexer.d.ts +14 -9
- package/dist/esm/client/indexer.js +15 -10
- package/dist/esm/client/olp.d.ts +5 -4
- package/dist/esm/client/olp.js +7 -6
- package/dist/esm/client/tcAbacus.d.ts +5 -4
- package/dist/esm/client/tcAbacus.js +6 -5
- package/dist/esm/client/wasm.d.ts +4 -3
- package/dist/esm/client/wasm.js +17 -12
- package/dist/esm/coins-D4vONigS.js +14 -0
- package/dist/esm/coins-ceq0Id0M.d.ts +7 -0
- package/dist/esm/constants-BZ28P_pH.d.ts +10 -0
- package/dist/esm/constants-CCVyqUU9.js +11 -0
- package/dist/esm/core/accounts.d.ts +14 -9
- package/dist/esm/core/accounts.js +9 -5
- package/dist/esm/core/modules.d.ts +14 -9
- package/dist/esm/core/modules.js +20 -15
- package/dist/esm/core/tx.d.ts +14 -9
- package/dist/esm/core/tx.js +17 -12
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +18 -13
- package/dist/esm/encoding-light-18k0e_8v.d.ts +18 -0
- package/dist/esm/encoding-light-DHtTGSg1.js +86 -0
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +18 -13
- package/dist/esm/{index-BrfNx2yV.d.ts → index-BAxR1qDR.d.ts} +1 -1
- package/dist/esm/{index-DA42BIjg.d.ts → index-CFTXl2dv.d.ts} +1 -1
- package/dist/esm/{index-IC9v94fK.d.ts → index-CnGE9D2Q.d.ts} +7 -188
- package/dist/esm/{index-B0mpSZSK.d.ts → index-DIP5sGCK.d.ts} +1 -1
- package/dist/{cjs/index-DpsYFbif.d.cts → esm/index-DPmNu-i9.d.ts} +2 -1
- package/dist/{cjs/index-DYAz6OYS.d.cts → esm/index-fqs5eTyD.d.ts} +3 -146
- package/dist/esm/{index-JlA-uSsc.d.ts → index-lki5l2NS.d.ts} +1 -1
- package/dist/esm/{index-CZhX_Ynf.d.ts → index-reHqEgGi.d.ts} +2 -2
- package/dist/esm/index.d.ts +15 -10
- package/dist/esm/index.js +29 -24
- package/dist/esm/{types-DQ7rwavH.js → light-ClZwkrDK.js} +61 -52
- package/dist/esm/light-CrlUMC8c.d.ts +119 -0
- package/dist/esm/proto/cosmos-tx.d.ts +1 -1
- package/dist/esm/{service-Uo4J-lwR.js → service-B2z6s85o.js} +3 -3
- package/dist/esm/service.d.ts +4 -3
- package/dist/esm/service.js +11 -6
- package/dist/esm/stream-BqkNM_6g.js +14 -0
- package/dist/esm/{tx-Ajrd7cHg.js → tx-Bh9bfmCB.js} +7 -6
- package/dist/esm/types/light.d.ts +2 -0
- package/dist/esm/types/light.js +3 -0
- package/dist/esm/types-BAV0654v.js +24 -0
- package/dist/esm/types.d.ts +3 -2
- package/dist/esm/types.js +3 -2
- package/dist/esm/utils/address.d.ts +2 -0
- package/dist/esm/utils/address.js +3 -0
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/esm/utils/constants.js +3 -0
- package/dist/esm/utils/encoding.d.ts +2 -0
- package/dist/esm/utils/encoding.js +3 -0
- package/dist/esm/utils/light.d.ts +5 -0
- package/dist/esm/utils/light.js +6 -0
- package/dist/esm/{utils-bfl-Zimr.js → utils-B3t50ZnB.js} +125 -393
- package/dist/esm/utils.d.ts +15 -10
- package/dist/esm/utils.js +7 -3
- package/package.json +105 -5
- package/dist/cjs/stream-CfBvG3Ln.cjs +0 -87
- package/dist/esm/stream-Cdx47Nhx.js +0 -63
- /package/dist/cjs/{BaseRestConsumer-uSzCOit7.cjs → BaseRestConsumer-BcHgNcNh.cjs} +0 -0
- /package/dist/cjs/{defineProperty-DAtJs5JQ.cjs → defineProperty-C3FP2y9Y.cjs} +0 -0
- /package/dist/cjs/{grpc-FG2z-ICE.cjs → grpc-3Z8ffFdZ.cjs} +0 -0
- /package/dist/cjs/{tx_pb-7h617od9.d.cts → tx_pb-BmZhAoWC.d.cts} +0 -0
- /package/dist/esm/{BaseRestConsumer-DMS02DwS.js → BaseRestConsumer-L3j9-i4T.js} +0 -0
- /package/dist/esm/{defineProperty-CmydwPCD.js → defineProperty-C0TI9N8m.js} +0 -0
- /package/dist/esm/{grpc-lYZqzL0k.js → grpc-aI_RLGoG.js} +0 -0
- /package/dist/esm/{tx_pb-Bb9pvoP6.d.ts → tx_pb-DhFh6sWY.d.ts} +0 -0
package/dist/esm/core/tx.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import
|
|
4
|
-
import "../
|
|
5
|
-
import
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
1
|
+
import "../encoding-light-DHtTGSg1.js";
|
|
2
|
+
import "../constants-CCVyqUU9.js";
|
|
3
|
+
import "../defineProperty-C0TI9N8m.js";
|
|
4
|
+
import { A as getTransactionPartsFromTxRaw, C as createSignDocFromTransaction, D as createWeb3Extension, E as createTxRawEIP712, M as createAnyMessage, N as getEthereumSignerAddress, O as getAminoStdSignDoc, P as getInjectiveSignerAddress, S as createSignDoc, T as createSigners, _ as getTypesIncludingFeeOptions, b as createFee, c as getEip712TypedDataV2, d as getEip712Domain, f as getEip712DomainV2, g as getEipTxDetails, h as getEipTxContext, j as createAny, k as getPublicKey, l as getDefaultEip712Types, m as getEip712FeeV2, p as getEip712Fee, r as MsgDecoder, s as getEip712TypedData, u as getDefaultEip712TypesV2, v as createAuthInfo, w as createSignerInfo, x as createNonCriticalExtensionFromObject, y as createBody } from "../accounts-3rypojw1.js";
|
|
5
|
+
import "../utils-B3t50ZnB.js";
|
|
6
|
+
import "../grpc-aI_RLGoG.js";
|
|
7
|
+
import "../coins-D4vONigS.js";
|
|
8
|
+
import "../address-light-C9skTx0P.js";
|
|
9
|
+
import { a as objectKeysToEip712Types, c as stringTypeToReflectionStringType, i as numberTypeToReflectionNumberType, o as patchOrderTypesWithExpirationBlock, r as getObjectEip712PropertyType, s as protoTypeToAminoType } from "../MsgBase-CishJWMN.js";
|
|
10
|
+
import "../ChainRestTendermintApi-C5sizTTA.js";
|
|
11
|
+
import "../light-ClZwkrDK.js";
|
|
12
|
+
import "../stream-BqkNM_6g.js";
|
|
13
|
+
import "../BaseGrpcConsumer-D-uEnIgH.js";
|
|
14
|
+
import "../BaseIndexerGrpcConsumer-BUcOBQHD.js";
|
|
15
|
+
import "../BaseRestConsumer-L3j9-i4T.js";
|
|
16
|
+
import "../IndexerGrpcWeb3GwApi-D9GO0m1v.js";
|
|
17
|
+
import { C as SIGN_DIRECT, D as isTxNotFoundError, E as errorToErrorMessage, S as SIGN_AMINO, T as SIGN_EIP712_V2, _ as createTransactionWithSigners, a as BroadcastMode, b as CosmosTxV1Beta1TxPb, c as normalizeTendermintWebSocketEndpoint, d as TxInclusionStrategy, f as createTransaction, g as createTransactionFromMsg, h as createTransactionForAddressAndMsg, i as TxRestApi, l as subscribeToTendermintTxEvent, m as createTransactionAndCosmosSignDocForAddressAndMsg, n as generateArbitrarySignDoc, o as BroadcastModeKeplr, p as createTransactionAndCosmosSignDoc, r as waitTxBroadcasted, s as TxGrpcApi, t as MsgBroadcasterWithPk, u as TxClientMode, v as createTxRawFromSigResponse, w as SIGN_EIP712, x as TxClient, y as getTxRawFromTxRawOrDirectSignResponse } from "../tx-Bh9bfmCB.js";
|
|
13
18
|
|
|
14
19
|
export { BroadcastMode, BroadcastModeKeplr, CosmosTxV1Beta1TxPb, MsgBroadcasterWithPk, MsgDecoder, SIGN_AMINO, SIGN_DIRECT, SIGN_EIP712, SIGN_EIP712_V2, TxClient, TxClientMode, TxGrpcApi, TxInclusionStrategy, TxRestApi, createAny, createAnyMessage, createAuthInfo, createBody, createFee, createNonCriticalExtensionFromObject, createSignDoc, createSignDocFromTransaction, createSignerInfo, createSigners, createTransaction, createTransactionAndCosmosSignDoc, createTransactionAndCosmosSignDocForAddressAndMsg, createTransactionForAddressAndMsg, createTransactionFromMsg, createTransactionWithSigners, createTxRawEIP712, createTxRawFromSigResponse, createWeb3Extension, errorToErrorMessage, generateArbitrarySignDoc, getAminoStdSignDoc, getDefaultEip712Types, getDefaultEip712TypesV2, getEip712Domain, getEip712DomainV2, getEip712Fee, getEip712FeeV2, getEip712TypedData, getEip712TypedDataV2, getEipTxContext, getEipTxDetails, getEthereumSignerAddress, getInjectiveSignerAddress, getObjectEip712PropertyType, getPublicKey, getTransactionPartsFromTxRaw, getTxRawFromTxRawOrDirectSignResponse, getTypesIncludingFeeOptions, isTxNotFoundError, normalizeTendermintWebSocketEndpoint, numberTypeToReflectionNumberType, objectKeysToEip712Types, patchOrderTypesWithExpirationBlock, protoTypeToAminoType, stringTypeToReflectionStringType, subscribeToTendermintTxEvent, waitTxBroadcasted };
|
package/dist/esm/cosmjs.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index-
|
|
1
|
+
import "./tx_pb-DhFh6sWY.js";
|
|
2
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index-CFTXl2dv.js";
|
|
3
3
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
package/dist/esm/cosmjs.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
1
|
+
import "./encoding-light-DHtTGSg1.js";
|
|
2
|
+
import "./constants-CCVyqUU9.js";
|
|
3
|
+
import "./defineProperty-C0TI9N8m.js";
|
|
4
|
+
import "./accounts-3rypojw1.js";
|
|
5
|
+
import "./utils-B3t50ZnB.js";
|
|
6
|
+
import "./grpc-aI_RLGoG.js";
|
|
7
|
+
import "./coins-D4vONigS.js";
|
|
8
|
+
import "./address-light-C9skTx0P.js";
|
|
9
|
+
import "./MsgBase-CishJWMN.js";
|
|
10
|
+
import "./ChainRestTendermintApi-C5sizTTA.js";
|
|
11
|
+
import "./light-ClZwkrDK.js";
|
|
12
|
+
import "./stream-BqkNM_6g.js";
|
|
13
|
+
import "./BaseGrpcConsumer-D-uEnIgH.js";
|
|
14
|
+
import "./BaseIndexerGrpcConsumer-BUcOBQHD.js";
|
|
15
|
+
import "./BaseRestConsumer-L3j9-i4T.js";
|
|
16
|
+
import "./IndexerGrpcWeb3GwApi-D9GO0m1v.js";
|
|
17
|
+
import "./tx-Bh9bfmCB.js";
|
|
18
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-Daky9CEn.js";
|
|
14
19
|
|
|
15
20
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/utils/encoding-light.d.ts
|
|
2
|
+
declare function hexToUint8Array(hex: string): Uint8Array;
|
|
3
|
+
declare function uint8ArrayToHex(arr: Uint8Array): string;
|
|
4
|
+
declare function base64ToUint8Array(base64String: string): Uint8Array;
|
|
5
|
+
declare function uint8ArrayToBase64(arr: Uint8Array): string;
|
|
6
|
+
declare function stringToUint8Array(str: string): Uint8Array;
|
|
7
|
+
declare function hexToBuff(hex: string): Uint8Array;
|
|
8
|
+
declare function hexToBase64(hex: string): string;
|
|
9
|
+
declare function base64ToUtf8(base64String: string): string;
|
|
10
|
+
declare function fromUtf8(str: Uint8Array | string): Uint8Array;
|
|
11
|
+
declare function toUtf8(data: Uint8Array | string): string;
|
|
12
|
+
declare function uint8ArrayToString(string: string | Uint8Array | null | undefined): string;
|
|
13
|
+
declare function binaryToBase64(data: string | Uint8Array): string;
|
|
14
|
+
declare function toBase64(data: Record<string, any>): string;
|
|
15
|
+
declare function fromBase64(payload: string): Record<string, any>;
|
|
16
|
+
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { fromBase64 as a, hexToBuff as c, toBase64 as d, toUtf8 as f, uint8ArrayToString as h, concatUint8Arrays as i, hexToUint8Array as l, uint8ArrayToHex as m, base64ToUtf8 as n, fromUtf8 as o, uint8ArrayToBase64 as p, binaryToBase64 as r, hexToBase64 as s, base64ToUint8Array as t, stringToUint8Array as u };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { base64 } from "@scure/base";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/encoding-light.ts
|
|
4
|
+
const HEX_PATTERN = /^[0-9a-fA-F]*$/;
|
|
5
|
+
const normalizeHex = (hex) => {
|
|
6
|
+
if (typeof hex !== "string") throw new Error("Hex string must be a string");
|
|
7
|
+
if (hex.trim() === "") throw new Error("Hex string cannot be empty");
|
|
8
|
+
const actualHex = hex.replace(/^0x/i, "");
|
|
9
|
+
if (!HEX_PATTERN.test(actualHex) || actualHex.length % 2 !== 0) throw new Error(`Invalid hex string: ${hex}`);
|
|
10
|
+
return actualHex;
|
|
11
|
+
};
|
|
12
|
+
const bigIntReplacer = (_key, value) => typeof value === "bigint" ? value.toString() : value;
|
|
13
|
+
function hexToUint8Array(hex) {
|
|
14
|
+
var _actualHex$match;
|
|
15
|
+
const actualHex = normalizeHex(hex);
|
|
16
|
+
return Uint8Array.from(((_actualHex$match = actualHex.match(/.{1,2}/g)) === null || _actualHex$match === void 0 ? void 0 : _actualHex$match.map((byte) => Number.parseInt(byte, 16))) || []);
|
|
17
|
+
}
|
|
18
|
+
function uint8ArrayToHex(arr) {
|
|
19
|
+
return Array.from(arr, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
20
|
+
}
|
|
21
|
+
function base64ToUint8Array(base64String) {
|
|
22
|
+
if (typeof base64String !== "string") throw new Error("Base64 string must be a string");
|
|
23
|
+
if (base64String.trim() === "") throw new Error("Base64 string cannot be empty");
|
|
24
|
+
try {
|
|
25
|
+
return base64.decode(base64String);
|
|
26
|
+
} catch (_unused) {
|
|
27
|
+
throw new Error(`Invalid base64 string: ${base64String}`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function uint8ArrayToBase64(arr) {
|
|
31
|
+
return base64.encode(arr);
|
|
32
|
+
}
|
|
33
|
+
function stringToUint8Array(str) {
|
|
34
|
+
return new TextEncoder().encode(str);
|
|
35
|
+
}
|
|
36
|
+
function hexToBuff(hex) {
|
|
37
|
+
return hexToUint8Array(hex.startsWith("0x") ? hex.slice(2) : hex);
|
|
38
|
+
}
|
|
39
|
+
function hexToBase64(hex) {
|
|
40
|
+
return uint8ArrayToBase64(hexToUint8Array(hex.startsWith("0x") ? hex.slice(2) : hex));
|
|
41
|
+
}
|
|
42
|
+
function base64ToUtf8(base64String) {
|
|
43
|
+
return toUtf8(base64ToUint8Array(base64String));
|
|
44
|
+
}
|
|
45
|
+
function fromUtf8(str) {
|
|
46
|
+
if (typeof str !== "string") return str;
|
|
47
|
+
return stringToUint8Array(str);
|
|
48
|
+
}
|
|
49
|
+
function toUtf8(data) {
|
|
50
|
+
if (typeof data === "string") return data;
|
|
51
|
+
return new TextDecoder().decode(data);
|
|
52
|
+
}
|
|
53
|
+
function uint8ArrayToString(string) {
|
|
54
|
+
if (!string) return "";
|
|
55
|
+
if (!(string instanceof Uint8Array)) return string;
|
|
56
|
+
return new TextDecoder().decode(string);
|
|
57
|
+
}
|
|
58
|
+
function binaryToBase64(data) {
|
|
59
|
+
return typeof data === "string" ? data : uint8ArrayToBase64(data);
|
|
60
|
+
}
|
|
61
|
+
function toBase64(data) {
|
|
62
|
+
return uint8ArrayToBase64(stringToUint8Array(JSON.stringify(data, bigIntReplacer)));
|
|
63
|
+
}
|
|
64
|
+
function fromBase64(payload) {
|
|
65
|
+
if (typeof payload !== "string") throw new Error("Base64 payload must be a string");
|
|
66
|
+
if (payload.trim() === "") throw new Error("Base64 payload cannot be empty");
|
|
67
|
+
try {
|
|
68
|
+
const decoded = new TextDecoder().decode(base64ToUint8Array(payload));
|
|
69
|
+
return JSON.parse(decoded);
|
|
70
|
+
} catch (_unused2) {
|
|
71
|
+
throw new Error(`Failed to decode base64 JSON: ${payload}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function concatUint8Arrays(arrays) {
|
|
75
|
+
const totalLength = arrays.reduce((sum, arr) => sum + arr.length, 0);
|
|
76
|
+
const result = new Uint8Array(totalLength);
|
|
77
|
+
let offset = 0;
|
|
78
|
+
for (const arr of arrays) {
|
|
79
|
+
result.set(arr, offset);
|
|
80
|
+
offset += arr.length;
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
export { fromBase64 as a, hexToBuff as c, toBase64 as d, toUtf8 as f, uint8ArrayToString as h, concatUint8Arrays as i, hexToUint8Array as l, uint8ArrayToHex as m, base64ToUtf8 as n, fromUtf8 as o, uint8ArrayToBase64 as p, binaryToBase64 as r, hexToBase64 as s, base64ToUint8Array as t, stringToUint8Array as u };
|
package/dist/esm/exports.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index-
|
|
1
|
+
import "./tx_pb-DhFh6sWY.js";
|
|
2
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index-CFTXl2dv.js";
|
|
3
3
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
package/dist/esm/exports.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
1
|
+
import "./encoding-light-DHtTGSg1.js";
|
|
2
|
+
import "./constants-CCVyqUU9.js";
|
|
3
|
+
import "./defineProperty-C0TI9N8m.js";
|
|
4
|
+
import "./accounts-3rypojw1.js";
|
|
5
|
+
import "./utils-B3t50ZnB.js";
|
|
6
|
+
import "./grpc-aI_RLGoG.js";
|
|
7
|
+
import "./coins-D4vONigS.js";
|
|
8
|
+
import "./address-light-C9skTx0P.js";
|
|
9
|
+
import "./MsgBase-CishJWMN.js";
|
|
10
|
+
import "./ChainRestTendermintApi-C5sizTTA.js";
|
|
11
|
+
import "./light-ClZwkrDK.js";
|
|
12
|
+
import "./stream-BqkNM_6g.js";
|
|
13
|
+
import "./BaseGrpcConsumer-D-uEnIgH.js";
|
|
14
|
+
import "./BaseIndexerGrpcConsumer-BUcOBQHD.js";
|
|
15
|
+
import "./BaseRestConsumer-L3j9-i4T.js";
|
|
16
|
+
import "./IndexerGrpcWeb3GwApi-D9GO0m1v.js";
|
|
17
|
+
import "./tx-Bh9bfmCB.js";
|
|
18
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-Daky9CEn.js";
|
|
14
19
|
|
|
15
20
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
1
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-B9J3abKI.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@injectivelabs+olp-proto-ts-v2@1.17.6/node_modules/@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.d.ts
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SignDoc } from "./tx_pb-
|
|
1
|
+
import { i as SignDoc } from "./tx_pb-DhFh6sWY.js";
|
|
2
2
|
import { Account, AminoTypes, DeliverTxResponse, GasPrice, StargateClient, StargateClientOptions } from "@cosmjs/stargate";
|
|
3
3
|
import { CometClient, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
|
4
4
|
import { AccountData, Algo, AminoSignResponse, OfflineAminoSigner, StdFee, StdSignDoc } from "@cosmjs/amino";
|