@injectivelabs/sdk-ts 1.17.2-alpha.9 → 1.17.2
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-vcp-9fNL.cjs → AbacusGrpcApi-DXSuhb6R.cjs} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-DUwCngI6.cjs → BaseGrpcConsumer-EtEQfhmo.cjs} +47 -6
- package/dist/{esm/BaseGrpcConsumer-BbvNzhrS.d.ts → cjs/BaseGrpcConsumer-Vvj4lzyS.d.cts} +14 -2
- package/dist/cjs/{BaseIndexerGrpcConsumer-BGLVnJtw.cjs → BaseIndexerGrpcConsumer-CW1kTn-_.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-DLpkgEyg.cjs → ChainGrpcExchangeApi-CF9ATYqN.cjs} +3 -3
- package/dist/cjs/{ChainRestTendermintApi-BiZOeKcG.cjs → ChainRestTendermintApi-vL0g-BF-.cjs} +2 -2
- package/dist/cjs/{DirectEthSecp256k1Wallet-CU18lti3.cjs → DirectEthSecp256k1Wallet-CIdxvYjL.cjs} +2 -2
- package/dist/cjs/{ExecArgNeptuneWithdraw-DOHeo3AJ.cjs → ExecArgNeptuneWithdraw-C-NQ72VM.cjs} +1 -1
- package/dist/cjs/{IndexerGrpcWeb3GwApi-BgWT2tWK.cjs → IndexerGrpcWeb3GwApi-C7kkr4Il.cjs} +2 -2
- package/dist/cjs/{MsgSetDenomMetadata-CUoGqV8P.cjs → MsgSetDenomMetadata-CKvxIq_t.cjs} +21 -10
- package/dist/cjs/{OLPGrpcApi-B9O9HcGv.cjs → OLPGrpcApi-BCCb6fBZ.cjs} +1 -1
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-Bh8AXm4k.cjs → QueryTradingStrategyContractTotalStrategies-Ayot_18R.cjs} +3 -3
- package/dist/cjs/{IndexerGrpcAccountPortfolioStream-DO5_FF4l.cjs → StreamManagerV2-igv0mn2I.cjs} +1375 -378
- package/dist/cjs/{accounts-CXaUasU5.cjs → accounts-CHKUxDIf.cjs} +1 -1
- package/dist/{esm/any_pb-B1YYUSUf.d.ts → cjs/any_pb-CutLnOUR.d.cts} +2 -2
- package/dist/cjs/{chain-Cs9sNuT1.cjs → chain-CGHrf7gg.cjs} +4 -4
- package/dist/cjs/client/abacus.cjs +2 -2
- package/dist/cjs/client/abacus.d.cts +2 -2
- package/dist/cjs/client/chain.cjs +5 -5
- package/dist/cjs/client/chain.d.cts +9 -9
- package/dist/cjs/client/indexer.cjs +74 -60
- package/dist/cjs/client/indexer.d.cts +10 -10
- package/dist/cjs/client/olp.cjs +3 -3
- package/dist/cjs/client/olp.d.cts +2 -2
- package/dist/cjs/client/wasm.cjs +7 -7
- package/dist/cjs/client/wasm.d.cts +2 -2
- package/dist/cjs/core/accounts.cjs +2 -2
- package/dist/cjs/core/accounts.d.cts +9 -9
- package/dist/cjs/core/modules.cjs +10 -10
- package/dist/cjs/core/modules.d.cts +9 -9
- package/dist/cjs/core/tx.cjs +7 -7
- package/dist/cjs/core/tx.d.cts +9 -9
- package/dist/cjs/cosmjs.cjs +8 -8
- package/dist/cjs/cosmjs.d.cts +3 -3
- package/dist/cjs/exports.cjs +8 -8
- package/dist/cjs/exports.d.cts +3 -3
- package/dist/cjs/{index-Cc5Q73-y.d.cts → index-CGvISJoE.d.cts} +1 -1
- package/dist/cjs/{index-CKBod1ba.d.cts → index-CO3Y9drx.d.cts} +4 -3
- package/dist/cjs/{index-Cc4mqAsR.d.cts → index-D6ubyMlR.d.cts} +1 -1
- package/dist/{esm/index-DdGVE3_u.d.ts → cjs/index-DWbxb1AB.d.cts} +7 -13
- package/dist/cjs/{index-1Wy-0PTh.d.cts → index-DemZnO3c.d.cts} +969 -291
- package/dist/cjs/{index-Cqfc1ppG.d.cts → index-DjRtDAy5.d.cts} +241 -19
- package/dist/cjs/{index-B19YRG03.d.cts → index-lRWP4rKg.d.cts} +1 -1
- package/dist/cjs/index.cjs +92 -70
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/{service-DcwwCSxu.cjs → service-BCLvTVy_.cjs} +2 -2
- package/dist/cjs/service.cjs +3 -3
- package/dist/cjs/service.d.cts +4 -4
- package/dist/cjs/{tx-Cn0j2SRh.cjs → tx-VwbP3UdI.cjs} +6 -6
- package/dist/{esm/tx_pb-TiSRD5ay.d.ts → cjs/tx_pb-D-cNmrlO.d.cts} +4 -3
- package/dist/cjs/{types-NFV4P_J_.cjs → types-BTuy007B.cjs} +135 -7
- package/dist/cjs/types.cjs +7 -1
- package/dist/cjs/types.d.cts +4 -4
- package/dist/cjs/{utils-V1uXtT51.cjs → utils-CDl812vv.cjs} +44 -8
- package/dist/cjs/utils.cjs +3 -1
- package/dist/cjs/utils.d.cts +10 -10
- package/dist/esm/{AbacusGrpcApi-CXaVHTrN.js → AbacusGrpcApi-Ce1hRKuD.js} +1 -1
- package/dist/{cjs/BaseGrpcConsumer-PDufF0fz.d.cts → esm/BaseGrpcConsumer-6x4RlZ16.d.ts} +14 -2
- package/dist/esm/{BaseGrpcConsumer-DptVGP0n.js → BaseGrpcConsumer-BTWyD665.js} +48 -7
- package/dist/esm/{BaseIndexerGrpcConsumer-CjpUoGXy.js → BaseIndexerGrpcConsumer-BTZzA_Eg.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-C-2XsVVs.js → ChainGrpcExchangeApi-DqdCst2Z.js} +3 -3
- package/dist/esm/{ChainRestTendermintApi-CMrAg0Zm.js → ChainRestTendermintApi-BT_yOkAV.js} +2 -2
- package/dist/esm/{DirectEthSecp256k1Wallet-a9KiF9fA.js → DirectEthSecp256k1Wallet-BqxC1b40.js} +2 -2
- package/dist/esm/{ExecArgNeptuneWithdraw-DEljIeLd.js → ExecArgNeptuneWithdraw-uLf3HttI.js} +1 -1
- package/dist/esm/{IndexerGrpcWeb3GwApi-CtUYowus.js → IndexerGrpcWeb3GwApi-B2mgt9tE.js} +2 -2
- package/dist/esm/{MsgSetDenomMetadata-BhJMebO9.js → MsgSetDenomMetadata-CXgkQ3LF.js} +21 -10
- package/dist/esm/{OLPGrpcApi-CMwW7LXZ.js → OLPGrpcApi-DUCfcca_.js} +1 -1
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-7IjWZLsc.js → QueryTradingStrategyContractTotalStrategies-CZWdw3BE.js} +3 -3
- package/dist/esm/{IndexerGrpcAccountPortfolioStream-3AGGiB1c.js → StreamManagerV2-B9xiJYLj.js} +1116 -203
- package/dist/esm/{accounts-DFC9RYDH.js → accounts-C5HEaz0B.js} +1 -1
- package/dist/{cjs/any_pb-CP-3DVyl.d.cts → esm/any_pb-DBt7qvTr.d.ts} +2 -2
- package/dist/esm/{chain-phKWVf8c.js → chain-CHX5uSpc.js} +4 -4
- package/dist/esm/client/abacus.d.ts +2 -2
- package/dist/esm/client/abacus.js +2 -2
- package/dist/esm/client/chain.d.ts +9 -9
- package/dist/esm/client/chain.js +5 -5
- package/dist/esm/client/indexer.d.ts +10 -10
- package/dist/esm/client/indexer.js +7 -7
- package/dist/esm/client/olp.d.ts +2 -2
- package/dist/esm/client/olp.js +3 -3
- package/dist/esm/client/wasm.d.ts +2 -2
- package/dist/esm/client/wasm.js +7 -7
- package/dist/esm/core/accounts.d.ts +9 -9
- package/dist/esm/core/accounts.js +2 -2
- package/dist/esm/core/modules.d.ts +9 -9
- package/dist/esm/core/modules.js +10 -10
- package/dist/esm/core/tx.d.ts +9 -9
- package/dist/esm/core/tx.js +7 -7
- package/dist/esm/cosmjs.d.ts +3 -3
- package/dist/esm/cosmjs.js +8 -8
- package/dist/esm/exports.d.ts +3 -3
- package/dist/esm/exports.js +8 -8
- package/dist/esm/{index-BOKuUpVZ.d.ts → index--sg5xbEP.d.ts} +1 -1
- package/dist/esm/{index-B1R417vW.d.ts → index-B-SD0p02.d.ts} +241 -19
- package/dist/esm/{index-qFCOVI7n.d.ts → index-BJQt8IpY.d.ts} +1 -1
- package/dist/esm/{index-DS6aJrL5.d.ts → index-C_3bL-y4.d.ts} +1 -1
- package/dist/esm/{index-IV55OZfT.d.ts → index-Ch477yfL.d.ts} +984 -306
- package/dist/esm/{index-aNMYd-s0.d.ts → index-DOyiZiUK.d.ts} +4 -3
- package/dist/{cjs/index-D4uWOVE5.d.cts → esm/index-Dn4OxoMy.d.ts} +7 -13
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +18 -18
- package/dist/esm/{service-CoINtWpF.js → service-CnqMmybI.js} +2 -2
- package/dist/esm/service.d.ts +4 -4
- package/dist/esm/service.js +3 -3
- package/dist/esm/{tx-CcaVBSym.js → tx-DsGG15fH.js} +6 -6
- package/dist/{cjs/tx_pb-tECSPcSB.d.cts → esm/tx_pb-zz4o4hHG.d.ts} +4 -3
- package/dist/esm/types-68OuBiEQ.js +162 -0
- package/dist/esm/types.d.ts +4 -4
- package/dist/esm/types.js +2 -2
- package/dist/esm/{utils-DwGoPRTL.js → utils-BFBu_LnJ.js} +33 -9
- package/dist/esm/utils.d.ts +10 -10
- package/dist/esm/utils.js +2 -2
- package/package.json +11 -13
- package/dist/esm/types-Cq0sRR6y.js +0 -70
package/dist/esm/core/tx.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../utils-
|
|
1
|
+
import "../utils-BFBu_LnJ.js";
|
|
2
2
|
import "../defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import { A as createAny, C as createSignerInfo, D as getAminoStdSignDoc, E as createWeb3Extension, M as getEthereumSignerAddress, N as getInjectiveSignerAddress, O as getPublicKey, S as createSignDocFromTransaction, T as createTxRawEIP712, _ as createAuthInfo, b as createNonCriticalExtensionFromObject, c as getDefaultEip712Types, d as getEip712DomainV2, f as getEip712Fee, g as getTypesIncludingFeePayer, h as getEipTxDetails, j as createAnyMessage, k as getTransactionPartsFromTxRaw, l as getDefaultEip712TypesV2, m as getEipTxContext, o as getEip712TypedData, p as getEip712FeeV2, r as MsgDecoder, s as getEip712TypedDataV2, u as getEip712Domain, v as createBody, w as createSigners, x as createSignDoc, y as createFee } from "../accounts-
|
|
3
|
+
import { A as createAny, C as createSignerInfo, D as getAminoStdSignDoc, E as createWeb3Extension, M as getEthereumSignerAddress, N as getInjectiveSignerAddress, O as getPublicKey, S as createSignDocFromTransaction, T as createTxRawEIP712, _ as createAuthInfo, b as createNonCriticalExtensionFromObject, c as getDefaultEip712Types, d as getEip712DomainV2, f as getEip712Fee, g as getTypesIncludingFeePayer, h as getEipTxDetails, j as createAnyMessage, k as getTransactionPartsFromTxRaw, l as getDefaultEip712TypesV2, m as getEipTxContext, o as getEip712TypedData, p as getEip712FeeV2, r as MsgDecoder, s as getEip712TypedDataV2, u as getEip712Domain, v as createBody, w as createSigners, x as createSignDoc, y as createFee } from "../accounts-C5HEaz0B.js";
|
|
4
4
|
import "../time-DYEqYFao.js";
|
|
5
5
|
import "../grpc-lYZqzL0k.js";
|
|
6
6
|
import { a as objectKeysToEip712Types, i as numberTypeToReflectionNumberType, o as protoTypeToAminoType, r as getObjectEip712PropertyType, s as stringTypeToReflectionStringType } from "../MsgBase-BkRgVbdY.js";
|
|
7
|
-
import "../ChainRestTendermintApi-
|
|
8
|
-
import "../BaseGrpcConsumer-
|
|
9
|
-
import "../BaseIndexerGrpcConsumer-
|
|
7
|
+
import "../ChainRestTendermintApi-BT_yOkAV.js";
|
|
8
|
+
import "../BaseGrpcConsumer-BTWyD665.js";
|
|
9
|
+
import "../BaseIndexerGrpcConsumer-BTZzA_Eg.js";
|
|
10
10
|
import "../BaseRestConsumer-rK4eS4W8.js";
|
|
11
|
-
import "../IndexerGrpcWeb3GwApi-
|
|
12
|
-
import { C as errorToErrorMessage, S as SIGN_EIP712_V2, _ as CosmosTxV1Beta1TxPb, a as TxRestApi, b as SIGN_DIRECT, c as TxGrpcApi, d as createTransactionAndCosmosSignDocForAddressAndMsg, f as createTransactionForAddressAndMsg, g as getTxRawFromTxRawOrDirectSignResponse, h as createTxRawFromSigResponse, i as waitTxBroadcasted, l as createTransaction, m as createTransactionWithSigners, n as TxClientMode, o as BroadcastMode, p as createTransactionFromMsg, r as generateArbitrarySignDoc, s as BroadcastModeKeplr, t as MsgBroadcasterWithPk, u as createTransactionAndCosmosSignDoc, v as TxClient, w as isTxNotFoundError, x as SIGN_EIP712, y as SIGN_AMINO } from "../tx-
|
|
11
|
+
import "../IndexerGrpcWeb3GwApi-B2mgt9tE.js";
|
|
12
|
+
import { C as errorToErrorMessage, S as SIGN_EIP712_V2, _ as CosmosTxV1Beta1TxPb, a as TxRestApi, b as SIGN_DIRECT, c as TxGrpcApi, d as createTransactionAndCosmosSignDocForAddressAndMsg, f as createTransactionForAddressAndMsg, g as getTxRawFromTxRawOrDirectSignResponse, h as createTxRawFromSigResponse, i as waitTxBroadcasted, l as createTransaction, m as createTransactionWithSigners, n as TxClientMode, o as BroadcastMode, p as createTransactionFromMsg, r as generateArbitrarySignDoc, s as BroadcastModeKeplr, t as MsgBroadcasterWithPk, u as createTransactionAndCosmosSignDoc, v as TxClient, w as isTxNotFoundError, x as SIGN_EIP712, y as SIGN_AMINO } from "../tx-DsGG15fH.js";
|
|
13
13
|
|
|
14
14
|
export { BroadcastMode, BroadcastModeKeplr, CosmosTxV1Beta1TxPb, MsgBroadcasterWithPk, MsgDecoder, SIGN_AMINO, SIGN_DIRECT, SIGN_EIP712, SIGN_EIP712_V2, TxClient, TxClientMode, TxGrpcApi, 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, getTypesIncludingFeePayer, isTxNotFoundError, numberTypeToReflectionNumberType, objectKeysToEip712Types, protoTypeToAminoType, stringTypeToReflectionStringType, waitTxBroadcasted };
|
package/dist/esm/cosmjs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./any_pb-
|
|
3
|
-
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-zz4o4hHG.js";
|
|
2
|
+
import "./any_pb-DBt7qvTr.js";
|
|
3
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index--sg5xbEP.js";
|
|
4
4
|
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,15 @@
|
|
|
1
|
-
import "./utils-
|
|
1
|
+
import "./utils-BFBu_LnJ.js";
|
|
2
2
|
import "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import "./accounts-
|
|
3
|
+
import "./accounts-C5HEaz0B.js";
|
|
4
4
|
import "./time-DYEqYFao.js";
|
|
5
5
|
import "./grpc-lYZqzL0k.js";
|
|
6
6
|
import "./MsgBase-BkRgVbdY.js";
|
|
7
|
-
import "./ChainRestTendermintApi-
|
|
8
|
-
import "./BaseGrpcConsumer-
|
|
9
|
-
import "./BaseIndexerGrpcConsumer-
|
|
7
|
+
import "./ChainRestTendermintApi-BT_yOkAV.js";
|
|
8
|
+
import "./BaseGrpcConsumer-BTWyD665.js";
|
|
9
|
+
import "./BaseIndexerGrpcConsumer-BTZzA_Eg.js";
|
|
10
10
|
import "./BaseRestConsumer-rK4eS4W8.js";
|
|
11
|
-
import "./IndexerGrpcWeb3GwApi-
|
|
12
|
-
import "./tx-
|
|
13
|
-
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-
|
|
11
|
+
import "./IndexerGrpcWeb3GwApi-B2mgt9tE.js";
|
|
12
|
+
import "./tx-DsGG15fH.js";
|
|
13
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-BqxC1b40.js";
|
|
14
14
|
|
|
15
15
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
package/dist/esm/exports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./any_pb-
|
|
3
|
-
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-zz4o4hHG.js";
|
|
2
|
+
import "./any_pb-DBt7qvTr.js";
|
|
3
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./index--sg5xbEP.js";
|
|
4
4
|
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,15 @@
|
|
|
1
|
-
import "./utils-
|
|
1
|
+
import "./utils-BFBu_LnJ.js";
|
|
2
2
|
import "./defineProperty-Bq6QU9Te.js";
|
|
3
|
-
import "./accounts-
|
|
3
|
+
import "./accounts-C5HEaz0B.js";
|
|
4
4
|
import "./time-DYEqYFao.js";
|
|
5
5
|
import "./grpc-lYZqzL0k.js";
|
|
6
6
|
import "./MsgBase-BkRgVbdY.js";
|
|
7
|
-
import "./ChainRestTendermintApi-
|
|
8
|
-
import "./BaseGrpcConsumer-
|
|
9
|
-
import "./BaseIndexerGrpcConsumer-
|
|
7
|
+
import "./ChainRestTendermintApi-BT_yOkAV.js";
|
|
8
|
+
import "./BaseGrpcConsumer-BTWyD665.js";
|
|
9
|
+
import "./BaseIndexerGrpcConsumer-BTZzA_Eg.js";
|
|
10
10
|
import "./BaseRestConsumer-rK4eS4W8.js";
|
|
11
|
-
import "./IndexerGrpcWeb3GwApi-
|
|
12
|
-
import "./tx-
|
|
13
|
-
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-
|
|
11
|
+
import "./IndexerGrpcWeb3GwApi-B2mgt9tE.js";
|
|
12
|
+
import "./tx-DsGG15fH.js";
|
|
13
|
+
import { a as accountParser, i as StargateClient, n as EthSecp256k1Wallet, o as MsgTransferCosmjs, r as SigningStargateClient, t as DirectEthSecp256k1Wallet } from "./DirectEthSecp256k1Wallet-BqxC1b40.js";
|
|
14
14
|
|
|
15
15
|
export { DirectEthSecp256k1Wallet as InjectiveDirectEthSecp256k1Wallet, EthSecp256k1Wallet as InjectiveEthSecp256k1Wallet, SigningStargateClient as InjectiveSigningStargateClient, StargateClient as InjectiveStargateClient, MsgTransferCosmjs, accountParser as injectiveAccountParser };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SignDoc } from "./tx_pb-
|
|
1
|
+
import { i as SignDoc } from "./tx_pb-zz4o4hHG.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as SignDoc$1, s as TxRaw$1 } from "./tx_pb-
|
|
2
|
-
import { n as Coin$1 } from "./any_pb-
|
|
1
|
+
import { i as SignDoc$1, s as TxRaw$1 } from "./tx_pb-zz4o4hHG.js";
|
|
2
|
+
import { n as Coin$1 } from "./any_pb-DBt7qvTr.js";
|
|
3
3
|
import { AminoSignResponse as AminoSignResponse$1 } from "@cosmjs/amino";
|
|
4
4
|
import { DirectSignResponse as DirectSignResponse$1 } from "@cosmjs/proto-signing";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.
|
|
6
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/injective/oracle/v1beta1/oracle_pb.d.ts
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @generated from protobuf message injective.oracle.v1beta1.Params
|
|
@@ -190,7 +190,7 @@ declare const BandOracleRequest = new BandOracleRequest$Type();
|
|
|
190
190
|
*/
|
|
191
191
|
declare const BandIBCParams = new BandIBCParams$Type();
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.
|
|
193
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.17.3/node_modules/@injectivelabs/core-proto-ts-v2/esm/generated/injective/exchange/v1beta1/exchange_pb.d.ts
|
|
194
194
|
/**
|
|
195
195
|
* @generated from protobuf message injective.exchange.v1beta1.OpenNotionalCap
|
|
196
196
|
*/
|
|
@@ -1893,6 +1893,8 @@ interface ExchangePagination {
|
|
|
1893
1893
|
to: number;
|
|
1894
1894
|
from: number;
|
|
1895
1895
|
total: number;
|
|
1896
|
+
countBySubaccount?: number;
|
|
1897
|
+
next?: string[];
|
|
1896
1898
|
}
|
|
1897
1899
|
//#endregion
|
|
1898
1900
|
//#region src/types/token.d.ts
|
|
@@ -1962,24 +1964,196 @@ interface TokenMeta {
|
|
|
1962
1964
|
coinGeckoId: string;
|
|
1963
1965
|
}
|
|
1964
1966
|
//#endregion
|
|
1965
|
-
//#region src/types/
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1967
|
+
//#region src/types/stream.d.ts
|
|
1968
|
+
/**
|
|
1969
|
+
* Subscription interface for stream management with event-based lifecycle
|
|
1970
|
+
*/
|
|
1971
|
+
/**
|
|
1972
|
+
* gRPC Status Codes
|
|
1973
|
+
* @see https://grpc.io/docs/guides/status-codes/
|
|
1974
|
+
*/
|
|
1975
|
+
declare const GrpcStatusCode: {
|
|
1976
|
+
readonly OK: 0;
|
|
1977
|
+
readonly CANCELLED: 1;
|
|
1978
|
+
readonly UNKNOWN: 2;
|
|
1979
|
+
readonly INVALID_ARGUMENT: 3;
|
|
1980
|
+
readonly DEADLINE_EXCEEDED: 4;
|
|
1981
|
+
readonly NOT_FOUND: 5;
|
|
1982
|
+
readonly ALREADY_EXISTS: 6;
|
|
1983
|
+
readonly PERMISSION_DENIED: 7;
|
|
1984
|
+
readonly RESOURCE_EXHAUSTED: 8;
|
|
1985
|
+
readonly FAILED_PRECONDITION: 9;
|
|
1986
|
+
readonly ABORTED: 10;
|
|
1987
|
+
readonly OUT_OF_RANGE: 11;
|
|
1988
|
+
readonly UNIMPLEMENTED: 12;
|
|
1989
|
+
readonly INTERNAL: 13;
|
|
1990
|
+
readonly UNAVAILABLE: 14;
|
|
1991
|
+
readonly DATA_LOSS: 15;
|
|
1992
|
+
readonly UNAUTHENTICATED: 16;
|
|
1993
|
+
};
|
|
1994
|
+
type GrpcStatusCode = (typeof GrpcStatusCode)[keyof typeof GrpcStatusCode];
|
|
1995
|
+
/**
|
|
1996
|
+
* Enhanced disconnect reasons with gRPC error code mapping
|
|
1997
|
+
*/
|
|
1998
|
+
declare const StreamDisconnectReason: {
|
|
1999
|
+
/** User explicitly called stop() */
|
|
2000
|
+
readonly UserStopped: "user-stopped";
|
|
2001
|
+
/** Stream encountered an error */
|
|
2002
|
+
readonly StreamError: "stream-error";
|
|
2003
|
+
/** Network unavailable (gRPC code 14) */
|
|
2004
|
+
readonly NetworkError: "network-error";
|
|
2005
|
+
/** Request timeout (gRPC code 4) */
|
|
2006
|
+
readonly Timeout: "timeout";
|
|
2007
|
+
/** Authentication/authorization failed (gRPC code 7 or 16) */
|
|
2008
|
+
readonly AuthenticationError: "authentication-error";
|
|
2009
|
+
/** Invalid request - non-retryable (gRPC code 3, 5, 6, 11, 12) */
|
|
2010
|
+
readonly InvalidRequest: "invalid-request";
|
|
2011
|
+
/** Rate limited (gRPC code 8) */
|
|
2012
|
+
readonly RateLimited: "rate-limited";
|
|
2013
|
+
/** Max retry attempts reached */
|
|
2014
|
+
readonly MaxRetries: "max-retries";
|
|
2015
|
+
/** Stream ended normally */
|
|
2016
|
+
readonly StreamEnded: "stream-ended";
|
|
2017
|
+
};
|
|
2018
|
+
type StreamDisconnectReason = (typeof StreamDisconnectReason)[keyof typeof StreamDisconnectReason];
|
|
2019
|
+
declare const StreamEvent: {
|
|
2020
|
+
readonly Data: "data";
|
|
2021
|
+
readonly Connect: "connect";
|
|
2022
|
+
readonly Disconnect: "disconnect";
|
|
2023
|
+
readonly Retry: "retry";
|
|
2024
|
+
readonly StateChange: "state:change";
|
|
2025
|
+
readonly Error: "error";
|
|
2026
|
+
readonly Warn: "warn";
|
|
2027
|
+
};
|
|
2028
|
+
type StreamEvent = (typeof StreamEvent)[keyof typeof StreamEvent];
|
|
2029
|
+
interface StreamSubscription {
|
|
2030
|
+
/** Unsubscribe from the stream and cancel it */
|
|
2031
|
+
unsubscribe(): void;
|
|
2032
|
+
/** Listen for stream errors */
|
|
2033
|
+
on(event: 'error', handler: (error: StreamError) => void): void;
|
|
2034
|
+
/** Listen for stream completion (ended normally) */
|
|
2035
|
+
on(event: 'complete', handler: () => void): void;
|
|
2036
|
+
/** Remove event listener */
|
|
2037
|
+
off(event: 'error' | 'complete', handler: (...args: any[]) => void): void;
|
|
1969
2038
|
}
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2039
|
+
/**
|
|
2040
|
+
* Error information from stream with gRPC error codes
|
|
2041
|
+
*
|
|
2042
|
+
* Common gRPC Status Codes:
|
|
2043
|
+
* - 0: OK
|
|
2044
|
+
* - 1: CANCELLED
|
|
2045
|
+
* - 2: UNKNOWN
|
|
2046
|
+
* - 3: INVALID_ARGUMENT
|
|
2047
|
+
* - 4: DEADLINE_EXCEEDED
|
|
2048
|
+
* - 5: NOT_FOUND
|
|
2049
|
+
* - 7: PERMISSION_DENIED
|
|
2050
|
+
* - 8: RESOURCE_EXHAUSTED
|
|
2051
|
+
* - 13: INTERNAL
|
|
2052
|
+
* - 14: UNAVAILABLE
|
|
2053
|
+
* - 16: UNAUTHENTICATED
|
|
2054
|
+
*/
|
|
2055
|
+
interface StreamError {
|
|
2056
|
+
/** gRPC status code */
|
|
2057
|
+
code: number;
|
|
2058
|
+
/** Human-readable error message */
|
|
2059
|
+
details: string;
|
|
2060
|
+
/** Additional error metadata */
|
|
2061
|
+
metadata?: any;
|
|
2062
|
+
}
|
|
2063
|
+
/**
|
|
2064
|
+
* StreamManager
|
|
2065
|
+
*/
|
|
2066
|
+
declare const StreamState: {
|
|
2067
|
+
readonly Idle: "idle";
|
|
2068
|
+
readonly Connecting: "connecting";
|
|
2069
|
+
readonly Connected: "connected";
|
|
2070
|
+
readonly Reconnecting: "reconnecting";
|
|
2071
|
+
readonly Stopped: "stopped";
|
|
1976
2072
|
};
|
|
1977
|
-
type
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
2073
|
+
type StreamState = (typeof StreamState)[keyof typeof StreamState];
|
|
2074
|
+
/**
|
|
2075
|
+
* Stream manager retry configuration
|
|
2076
|
+
*/
|
|
2077
|
+
interface StreamManagerRetryConfig {
|
|
2078
|
+
/** Enable retry on failure (default: true) */
|
|
2079
|
+
enabled: boolean;
|
|
2080
|
+
/** Max retry attempts before giving up (default: 5, 0 = infinite) */
|
|
2081
|
+
maxAttempts: number;
|
|
2082
|
+
/** Initial backoff delay in ms (default: 1000) */
|
|
2083
|
+
initialDelayMs: number;
|
|
2084
|
+
/** Max backoff delay in ms (default: 30000) */
|
|
2085
|
+
maxDelayMs: number;
|
|
2086
|
+
/** Backoff multiplier (default: 2 for exponential) */
|
|
2087
|
+
backoffMultiplier: number;
|
|
2088
|
+
/**
|
|
2089
|
+
* Persistent retry mode - continues retrying at maxDelayMs intervals
|
|
2090
|
+
* after exhausting exponential backoff (default: true)
|
|
2091
|
+
*/
|
|
2092
|
+
persistent: boolean;
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Stream manager configuration
|
|
2096
|
+
*/
|
|
2097
|
+
interface StreamManagerConfig<TResponse> {
|
|
2098
|
+
/** Unique identifier for this stream (for logging) */
|
|
2099
|
+
id: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Factory function to create the stream subscription
|
|
2102
|
+
* Called on initial connect and every retry
|
|
2103
|
+
* The subscription will emit 'error' and 'complete' events for stream lifecycle
|
|
2104
|
+
*/
|
|
2105
|
+
streamFactory: () => StreamSubscription;
|
|
2106
|
+
/** Callback to handle stream data */
|
|
2107
|
+
onData: (response: TResponse) => void;
|
|
2108
|
+
/** Retry configuration */
|
|
2109
|
+
retryConfig?: Partial<StreamManagerRetryConfig>;
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Internal resolved configuration with all required types
|
|
2113
|
+
*/
|
|
2114
|
+
interface ResolvedStreamManagerConfig<TResponse> {
|
|
2115
|
+
id: string;
|
|
2116
|
+
streamFactory: () => StreamSubscription;
|
|
2117
|
+
onData: (response: TResponse) => void;
|
|
2118
|
+
retryConfig: StreamManagerRetryConfig;
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* Event payload types for StreamManager
|
|
2122
|
+
*/
|
|
2123
|
+
interface StreamManagerEvents<TResponse> {
|
|
2124
|
+
data: TResponse;
|
|
2125
|
+
connect: {
|
|
2126
|
+
isReconnect: boolean;
|
|
2127
|
+
attempt: number;
|
|
2128
|
+
};
|
|
2129
|
+
disconnect: {
|
|
2130
|
+
reason: StreamDisconnectReason;
|
|
2131
|
+
willRetry: boolean;
|
|
2132
|
+
attempt?: number;
|
|
2133
|
+
};
|
|
2134
|
+
retry: {
|
|
2135
|
+
attempt: number;
|
|
2136
|
+
delayMs: number;
|
|
2137
|
+
nextBackoff: number | null;
|
|
2138
|
+
};
|
|
2139
|
+
'state:change': {
|
|
2140
|
+
from: StreamState;
|
|
2141
|
+
to: StreamState;
|
|
2142
|
+
};
|
|
2143
|
+
error: {
|
|
2144
|
+
message: string;
|
|
2145
|
+
code?: number;
|
|
2146
|
+
details?: any;
|
|
2147
|
+
};
|
|
2148
|
+
warn: {
|
|
2149
|
+
message: string;
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
1981
2152
|
//#endregion
|
|
1982
2153
|
//#region src/types/exchange.d.ts
|
|
2154
|
+
/**
|
|
2155
|
+
* Trade and Order types
|
|
2156
|
+
*/
|
|
1983
2157
|
declare const TradeExecutionType: {
|
|
1984
2158
|
readonly Market: "market";
|
|
1985
2159
|
readonly LimitFill: "limitFill";
|
|
@@ -1999,7 +2173,55 @@ declare const TradeDirection: {
|
|
|
1999
2173
|
readonly Short: "short";
|
|
2000
2174
|
};
|
|
2001
2175
|
type TradeDirection = (typeof TradeDirection)[keyof typeof TradeDirection];
|
|
2176
|
+
declare const OrderState: {
|
|
2177
|
+
readonly Unfilled: "unfilled";
|
|
2178
|
+
readonly Booked: "booked";
|
|
2179
|
+
readonly PartialFilled: "partial_filled";
|
|
2180
|
+
readonly PartiallyFilled: "partially_filled";
|
|
2181
|
+
readonly Filled: "filled";
|
|
2182
|
+
readonly Canceled: "canceled";
|
|
2183
|
+
readonly Triggered: "triggered";
|
|
2184
|
+
};
|
|
2185
|
+
type OrderState = (typeof OrderState)[keyof typeof OrderState];
|
|
2186
|
+
declare const OrderSide: {
|
|
2187
|
+
readonly Unspecified: "unspecified";
|
|
2188
|
+
readonly Buy: "buy";
|
|
2189
|
+
readonly Sell: "sell";
|
|
2190
|
+
readonly StopBuy: "stop_buy";
|
|
2191
|
+
readonly StopSell: "stop_sell";
|
|
2192
|
+
readonly TakeBuy: "take_buy";
|
|
2193
|
+
readonly TakeSell: "take_sell";
|
|
2194
|
+
readonly BuyPO: "buy_po";
|
|
2195
|
+
readonly SellPO: "sell_po";
|
|
2196
|
+
readonly BuyAtomic: "buy_atomic";
|
|
2197
|
+
readonly SellAtomic: "sell_atomic";
|
|
2198
|
+
readonly Unrecognized: "unrecognized";
|
|
2199
|
+
};
|
|
2200
|
+
type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
2002
2201
|
type OrderMask = OrderMask$1;
|
|
2003
2202
|
declare const OrderMaskMap: typeof OrderMask$1;
|
|
2004
2203
|
//#endregion
|
|
2005
|
-
|
|
2204
|
+
//#region src/types/cosmos.d.ts
|
|
2205
|
+
interface Coin {
|
|
2206
|
+
denom: string;
|
|
2207
|
+
amount: string;
|
|
2208
|
+
}
|
|
2209
|
+
type TxRaw = TxRaw$1;
|
|
2210
|
+
type SignDoc = SignDoc$1;
|
|
2211
|
+
type GrpcCoin = Coin$1;
|
|
2212
|
+
//#endregion
|
|
2213
|
+
//#region src/types/stream-legacy.d.ts
|
|
2214
|
+
/**
|
|
2215
|
+
* Legacy stream operation types
|
|
2216
|
+
* Used by indexer stream transformers
|
|
2217
|
+
*/
|
|
2218
|
+
declare const StreamOperation: {
|
|
2219
|
+
readonly Insert: "insert";
|
|
2220
|
+
readonly Delete: "delete";
|
|
2221
|
+
readonly Replace: "replace";
|
|
2222
|
+
readonly Update: "update";
|
|
2223
|
+
readonly Invalidate: "invalidate";
|
|
2224
|
+
};
|
|
2225
|
+
type StreamOperation = (typeof StreamOperation)[keyof typeof StreamOperation];
|
|
2226
|
+
//#endregion
|
|
2227
|
+
export { MarketStatus as $, ExchangePagination as A, Deposit as B, StreamState as C, TokenStatic as D, TokenSource as E, AggregateSubaccountVolumeRecord as F, DerivativeOrder as G, DerivativeMarket as H, BinaryOptionsMarket as I, FeeDiscountSchedule as J, EffectiveGrant as K, CampaignRewardPool as L, Pagination as M, PaginationOption as N, TokenType as O, ActiveGrant as P, MarketFeeMultiplier as Q, DenomDecimals as R, StreamManagerRetryConfig as S, TokenMeta as T, DerivativeMarketOrder as U, DerivativeLimitOrder as V, DerivativeMarketSettlementInfo as W, FeeDiscountTierTTL as X, FeeDiscountTierInfo as Y, GrantAuthorization as Z, StreamDisconnectReason as _, TradingRewardCampaignInfo as _t, GrpcCoin as a, Params as at, StreamManagerConfig as b, OracleType as bt, OrderMask as c, PointsMultiplier as ct, OrderState as d, SpotMarket as dt, MarketVolume as et, TradeDirection as f, SpotMarketOrder as ft, ResolvedStreamManagerConfig as g, TradingRewardCampaignBoostInfo as gt, GrpcStatusCode as h, TradeRecords as ht, DirectSignResponse$1 as i, OrderType as it, PagePagination as j, TokenVerification as k, OrderMaskMap as l, Position as lt, TradeExecutionType as m, SubaccountTradeNonce as mt, AminoSignResponse$1 as n, OrderInfo as nt, SignDoc as o, PerpetualMarketFunding as ot, TradeExecutionSide as p, SpotOrder as pt, ExpiryFuturesMarketInfo as q, Coin as r, OrderMask$1 as rt, TxRaw as s, PerpetualMarketInfo as st, StreamOperation as t, MidPriceAndTOB as tt, OrderSide as u, SpotLimitOrder as ut, StreamError as v, BandIBCParams as vt, StreamSubscription as w, StreamManagerEvents as x, Params$1 as xt, StreamEvent as y, BandOracleRequest as yt, DenomMinNotional as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as TokenStatic, E as TokenSource, O as TokenType, k as TokenVerification } from "./index-B-SD0p02.js";
|
|
2
2
|
import { Network } from "@injectivelabs/networks";
|
|
3
3
|
|
|
4
4
|
//#region src/service/TokenPrice.d.ts
|