@injectivelabs/sdk-ts 1.20.2 → 1.20.3
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/{StreamManagerV2-DyEoVqtV.cjs → StreamManagerV2-B_R-9Q0I.cjs} +14 -8
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/{StreamManagerV2-s7amluvl.js → StreamManagerV2-LFeQPMJH.js} +14 -8
- package/dist/esm/client/indexer.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +5 -5
|
@@ -2309,14 +2309,19 @@ var IndexerGrpcArchiverTransformer = class IndexerGrpcArchiverTransformer {
|
|
|
2309
2309
|
//#endregion
|
|
2310
2310
|
//#region src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts
|
|
2311
2311
|
const ZERO_IN_BASE$1 = (0, __injectivelabs_utils.toBigNumber)(0);
|
|
2312
|
+
const isContractTxV2Message = (message) => !!message && typeof message === "object" && "type" in message;
|
|
2313
|
+
const isTransactionV2Message = (message) => !!message && typeof message === "object" && typeof message.type === "string" && Object.prototype.hasOwnProperty.call(message, "value");
|
|
2312
2314
|
const getContractTransactionV2Amount = (ApiTransaction) => {
|
|
2313
|
-
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2315
|
+
var _message$type, _message$value;
|
|
2316
|
+
const messages = parseStringToObjectLikeNoThrow(ApiTransaction.messages);
|
|
2317
|
+
const [message] = Array.isArray(messages) ? messages : [];
|
|
2318
|
+
if (!isContractTxV2Message(message) || !((_message$type = message.type) === null || _message$type === void 0 ? void 0 : _message$type.includes("MsgExecuteContract"))) return ZERO_IN_BASE$1;
|
|
2319
|
+
const msg = (_message$value = message.value) === null || _message$value === void 0 ? void 0 : _message$value.msg;
|
|
2316
2320
|
if (typeof msg === "string" && !require_utils.isJsonString(msg)) return ZERO_IN_BASE$1;
|
|
2317
|
-
const msgObj = typeof msg === "string" ?
|
|
2318
|
-
if (!msgObj
|
|
2319
|
-
|
|
2321
|
+
const msgObj = typeof msg === "string" ? parseStringToObjectLikeNoThrow(msg, void 0) : msg;
|
|
2322
|
+
if (!msgObj || typeof msgObj !== "object" || !("transfer" in msgObj)) return ZERO_IN_BASE$1;
|
|
2323
|
+
const transfer = msgObj.transfer;
|
|
2324
|
+
return (transfer === null || transfer === void 0 ? void 0 : transfer.amount) ? (0, __injectivelabs_utils.toHumanReadable)(transfer.amount) : ZERO_IN_BASE$1;
|
|
2320
2325
|
};
|
|
2321
2326
|
const parseStringToObjectLikeNoThrow = (object, defaultValue = []) => {
|
|
2322
2327
|
if (!object) return defaultValue;
|
|
@@ -2332,7 +2337,8 @@ const parseStringToObjectLikeNoThrow = (object, defaultValue = []) => {
|
|
|
2332
2337
|
}
|
|
2333
2338
|
};
|
|
2334
2339
|
const transactionV2MessagesToMessagesNoThrow = (messages) => {
|
|
2335
|
-
|
|
2340
|
+
const messagesArray = parseStringToObjectLikeNoThrow(messages);
|
|
2341
|
+
return (Array.isArray(messagesArray) ? messagesArray.filter(isTransactionV2Message) : []).map((msg) => ({
|
|
2336
2342
|
type: msg.type,
|
|
2337
2343
|
message: msg.value
|
|
2338
2344
|
}));
|
|
@@ -2749,7 +2755,7 @@ var IndexerGrpcExplorerTransformer = class IndexerGrpcExplorerTransformer {
|
|
|
2749
2755
|
tx_number: require_utils.bigIntToNumber(tx.txNumber),
|
|
2750
2756
|
time: require_utils.bigIntToNumber(tx.blockUnixTimestamp),
|
|
2751
2757
|
amount: getContractTransactionV2Amount(tx),
|
|
2752
|
-
logs:
|
|
2758
|
+
logs: parseStringToObjectLikeNoThrow(tx.logs),
|
|
2753
2759
|
data: "/" + require_utils.uint8ArrayToString(tx.data).split("/").pop(),
|
|
2754
2760
|
fee: (0, __injectivelabs_utils.toHumanReadable)(((_tx$gasFee5 = tx.gasFee) === null || _tx$gasFee5 === void 0 || (_tx$gasFee5 = _tx$gasFee5.amount[0]) === null || _tx$gasFee5 === void 0 ? void 0 : _tx$gasFee5.amount) || "0"),
|
|
2755
2761
|
signatures: tx.signatures.map((signature) => ({
|
|
@@ -6,7 +6,7 @@ require('../BaseGrpcConsumer-Dz4HNpJI.cjs');
|
|
|
6
6
|
require('../BaseIndexerGrpcConsumer-Xe9hG11G.cjs');
|
|
7
7
|
require('../BaseRestConsumer-uSzCOit7.cjs');
|
|
8
8
|
const require_IndexerGrpcWeb3GwApi = require('../IndexerGrpcWeb3GwApi-4kYonJ54.cjs');
|
|
9
|
-
const require_StreamManagerV2 = require('../StreamManagerV2-
|
|
9
|
+
const require_StreamManagerV2 = require('../StreamManagerV2-B_R-9Q0I.cjs');
|
|
10
10
|
require('../types-Cn54Lzf-.cjs');
|
|
11
11
|
|
|
12
12
|
exports.AccessType = require_IndexerGrpcWeb3GwApi.AccessType;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ require('./BaseRestConsumer-uSzCOit7.cjs');
|
|
|
17
17
|
const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-ChJ7QUin.cjs');
|
|
18
18
|
const require_AbacusGrpcApi = require('./AbacusGrpcApi-DlbYSnBj.cjs');
|
|
19
19
|
const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-4kYonJ54.cjs');
|
|
20
|
-
const require_StreamManagerV2 = require('./StreamManagerV2-
|
|
20
|
+
const require_StreamManagerV2 = require('./StreamManagerV2-B_R-9Q0I.cjs');
|
|
21
21
|
const require_types = require('./types-Cn54Lzf-.cjs');
|
|
22
22
|
const require_TcAbacusGrpcApi = require('./TcAbacusGrpcApi-DIX90jRr.cjs');
|
|
23
23
|
const require_tx = require('./tx-BrB6tTAl.cjs');
|
|
@@ -2289,14 +2289,19 @@ var IndexerGrpcArchiverTransformer = class IndexerGrpcArchiverTransformer {
|
|
|
2289
2289
|
//#endregion
|
|
2290
2290
|
//#region src/client/indexer/transformers/IndexerGrpcExplorerTransformer.ts
|
|
2291
2291
|
const ZERO_IN_BASE$1 = toBigNumber(0);
|
|
2292
|
+
const isContractTxV2Message = (message) => !!message && typeof message === "object" && "type" in message;
|
|
2293
|
+
const isTransactionV2Message = (message) => !!message && typeof message === "object" && typeof message.type === "string" && Object.prototype.hasOwnProperty.call(message, "value");
|
|
2292
2294
|
const getContractTransactionV2Amount = (ApiTransaction) => {
|
|
2293
|
-
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2295
|
+
var _message$type, _message$value;
|
|
2296
|
+
const messages = parseStringToObjectLikeNoThrow(ApiTransaction.messages);
|
|
2297
|
+
const [message] = Array.isArray(messages) ? messages : [];
|
|
2298
|
+
if (!isContractTxV2Message(message) || !((_message$type = message.type) === null || _message$type === void 0 ? void 0 : _message$type.includes("MsgExecuteContract"))) return ZERO_IN_BASE$1;
|
|
2299
|
+
const msg = (_message$value = message.value) === null || _message$value === void 0 ? void 0 : _message$value.msg;
|
|
2296
2300
|
if (typeof msg === "string" && !isJsonString(msg)) return ZERO_IN_BASE$1;
|
|
2297
|
-
const msgObj = typeof msg === "string" ?
|
|
2298
|
-
if (!msgObj
|
|
2299
|
-
|
|
2301
|
+
const msgObj = typeof msg === "string" ? parseStringToObjectLikeNoThrow(msg, void 0) : msg;
|
|
2302
|
+
if (!msgObj || typeof msgObj !== "object" || !("transfer" in msgObj)) return ZERO_IN_BASE$1;
|
|
2303
|
+
const transfer = msgObj.transfer;
|
|
2304
|
+
return (transfer === null || transfer === void 0 ? void 0 : transfer.amount) ? toHumanReadable(transfer.amount) : ZERO_IN_BASE$1;
|
|
2300
2305
|
};
|
|
2301
2306
|
const parseStringToObjectLikeNoThrow = (object, defaultValue = []) => {
|
|
2302
2307
|
if (!object) return defaultValue;
|
|
@@ -2312,7 +2317,8 @@ const parseStringToObjectLikeNoThrow = (object, defaultValue = []) => {
|
|
|
2312
2317
|
}
|
|
2313
2318
|
};
|
|
2314
2319
|
const transactionV2MessagesToMessagesNoThrow = (messages) => {
|
|
2315
|
-
|
|
2320
|
+
const messagesArray = parseStringToObjectLikeNoThrow(messages);
|
|
2321
|
+
return (Array.isArray(messagesArray) ? messagesArray.filter(isTransactionV2Message) : []).map((msg) => ({
|
|
2316
2322
|
type: msg.type,
|
|
2317
2323
|
message: msg.value
|
|
2318
2324
|
}));
|
|
@@ -2729,7 +2735,7 @@ var IndexerGrpcExplorerTransformer = class IndexerGrpcExplorerTransformer {
|
|
|
2729
2735
|
tx_number: bigIntToNumber(tx.txNumber),
|
|
2730
2736
|
time: bigIntToNumber(tx.blockUnixTimestamp),
|
|
2731
2737
|
amount: getContractTransactionV2Amount(tx),
|
|
2732
|
-
logs:
|
|
2738
|
+
logs: parseStringToObjectLikeNoThrow(tx.logs),
|
|
2733
2739
|
data: "/" + uint8ArrayToString(tx.data).split("/").pop(),
|
|
2734
2740
|
fee: toHumanReadable(((_tx$gasFee5 = tx.gasFee) === null || _tx$gasFee5 === void 0 || (_tx$gasFee5 = _tx$gasFee5.amount[0]) === null || _tx$gasFee5 === void 0 ? void 0 : _tx$gasFee5.amount) || "0"),
|
|
2735
2741
|
signatures: tx.signatures.map((signature) => ({
|
|
@@ -6,7 +6,7 @@ import "../BaseGrpcConsumer-WvNC6PWw.js";
|
|
|
6
6
|
import "../BaseIndexerGrpcConsumer-DiM_bBMQ.js";
|
|
7
7
|
import "../BaseRestConsumer-Ca8S09Yp.js";
|
|
8
8
|
import { a as AccessType, c as GridStrategyType, d as MitoGaugeStatus, f as GrpcDecodeError, i as RedemptionStatus, l as MarketType, m as WsState, n as IndexerGrpcTransactionApi, o as AccessTypeCode, p as WsDisconnectReason, r as IndexerModule, s as ValidatorUptimeStatus, t as IndexerGrpcWeb3GwApi, u as TransferType } from "../IndexerGrpcWeb3GwApi-Bc5TEiq5.js";
|
|
9
|
-
import { $ as IndexerAccountPortfolioStreamTransformer, A as IndexerRestDerivativesChronosApi, At as GrpcWebSocketTransport, B as IndexerGrpcReferralApi, C as IndexerGrpcAuctionStream, Ct as IndexerGrpcRfqGwTransformer, D as IndexerGrpcSpotStream, Dt as IndexerWsMakerStream, E as IndexerGrpcMitoStream, Et as IndexerGrpcMitoTransformer, F as IndexerGrpcTcDerivativesApi, G as IndexerGrpcAuctionApi, H as IndexerGrpcCampaignApi, I as IndexerGrpcWsPriceOracleApi, J as IndexerGrpcRfqGwApi, K as IndexerGrpcAccountApi, L as IndexerGrpcAccountPortfolioApi, M as IndexerRestSpotChronosApi, N as IndexerRestExplorerApi, O as createStreamSubscription, Ot as IndexerWsTakerStream, P as IndexerGrpcInsuranceFundApi, Q as IndexerGrpcRFQApi, R as IndexerGrpcDerivativesApi, S as IndexerGrpcTradingStream, St as IndexerRfqStreamTransformer, T as IndexerGrpcOracleStream, Tt as IndexerGrpcSpotTransformer, U as IndexerGrpcExplorerApi, V as IndexerGrpcArchiverApi, W as IndexerGrpcTradingApi, X as IndexerGrpcMetaApi, Y as IndexerGrpcSpotApi, Z as IndexerGrpcMitoApi, _ as IndexerGrpcAccountPortfolioStream, _t as IndexerGrpcArchiverTransformer, a as IndexerGrpcWsPriceOracleStreamV2, at as IndexerGrpcAccountPortfolioTransformer, b as IndexerGrpcExplorerStream, bt as IndexerSpotStreamTransformer, c as IndexerGrpcTradingStreamV2, ct as ExplorerStreamTransformer, d as IndexerGrpcOracleStreamV2, dt as IndexerAuctionStreamTransformer, et as IndexerTcDerivativesStreamTransformer, f as IndexerGrpcMitoStreamV2, ft as IndexerAccountStreamTransformer, g as StreamManager, gt as IndexerGrpcExplorerTransformer, h as createStreamSubscriptionV2, ht as IndexerGrpcReferralTransformer, i as IndexerGrpcDerivativesStreamV2, it as IndexerDerivativeStreamTransformer, j as IndexerRestMarketChronosApi, jt as GrpcWebSocketCodec, k as IndexerRestLeaderboardChronosApi, kt as IndexerGrpcRfqTransformer, l as IndexerGrpcAuctionStreamV2, lt as IndexerArchiverStreamTransformer, m as IndexerGrpcRfqStreamV2, mt as IndexerOracleStreamTransformer, n as IndexerGrpcAccountPortfolioStreamV2, nt as IndexerGrpcTcDerivativesTransformer, o as IndexerGrpcExplorerStreamV2, ot as IndexerGrpcMitoStreamTransformer, p as IndexerGrpcSpotStreamV2, pt as IndexerRestExplorerTransformer, q as IndexerGrpcOracleApi, r as IndexerGrpcTcDerivativesStreamV2, rt as IndexerGrpcInsuranceFundTransformer, s as IndexerGrpcArchiverStreamV2, st as IndexerGrpcDerivativeTransformer, t as StreamManagerV2, tt as IndexerWsPriceOracleStreamTransformer, u as IndexerGrpcAccountStreamV2, ut as IndexerGrpcMegaVaultTransformer, v as IndexerGrpcDerivativesStream, vt as IndexerGrpcAuctionTransformer, w as IndexerGrpcAccountStream, wt as IndexerCampaignTransformer, x as IndexerGrpcArchiverStream, xt as IndexerGrpcOracleTransformer, y as IndexerGrpcWsPriceOracleStream, yt as IndexerGrpcAccountTransformer, z as IndexerGrpcMegaVaultApi } from "../StreamManagerV2-
|
|
9
|
+
import { $ as IndexerAccountPortfolioStreamTransformer, A as IndexerRestDerivativesChronosApi, At as GrpcWebSocketTransport, B as IndexerGrpcReferralApi, C as IndexerGrpcAuctionStream, Ct as IndexerGrpcRfqGwTransformer, D as IndexerGrpcSpotStream, Dt as IndexerWsMakerStream, E as IndexerGrpcMitoStream, Et as IndexerGrpcMitoTransformer, F as IndexerGrpcTcDerivativesApi, G as IndexerGrpcAuctionApi, H as IndexerGrpcCampaignApi, I as IndexerGrpcWsPriceOracleApi, J as IndexerGrpcRfqGwApi, K as IndexerGrpcAccountApi, L as IndexerGrpcAccountPortfolioApi, M as IndexerRestSpotChronosApi, N as IndexerRestExplorerApi, O as createStreamSubscription, Ot as IndexerWsTakerStream, P as IndexerGrpcInsuranceFundApi, Q as IndexerGrpcRFQApi, R as IndexerGrpcDerivativesApi, S as IndexerGrpcTradingStream, St as IndexerRfqStreamTransformer, T as IndexerGrpcOracleStream, Tt as IndexerGrpcSpotTransformer, U as IndexerGrpcExplorerApi, V as IndexerGrpcArchiverApi, W as IndexerGrpcTradingApi, X as IndexerGrpcMetaApi, Y as IndexerGrpcSpotApi, Z as IndexerGrpcMitoApi, _ as IndexerGrpcAccountPortfolioStream, _t as IndexerGrpcArchiverTransformer, a as IndexerGrpcWsPriceOracleStreamV2, at as IndexerGrpcAccountPortfolioTransformer, b as IndexerGrpcExplorerStream, bt as IndexerSpotStreamTransformer, c as IndexerGrpcTradingStreamV2, ct as ExplorerStreamTransformer, d as IndexerGrpcOracleStreamV2, dt as IndexerAuctionStreamTransformer, et as IndexerTcDerivativesStreamTransformer, f as IndexerGrpcMitoStreamV2, ft as IndexerAccountStreamTransformer, g as StreamManager, gt as IndexerGrpcExplorerTransformer, h as createStreamSubscriptionV2, ht as IndexerGrpcReferralTransformer, i as IndexerGrpcDerivativesStreamV2, it as IndexerDerivativeStreamTransformer, j as IndexerRestMarketChronosApi, jt as GrpcWebSocketCodec, k as IndexerRestLeaderboardChronosApi, kt as IndexerGrpcRfqTransformer, l as IndexerGrpcAuctionStreamV2, lt as IndexerArchiverStreamTransformer, m as IndexerGrpcRfqStreamV2, mt as IndexerOracleStreamTransformer, n as IndexerGrpcAccountPortfolioStreamV2, nt as IndexerGrpcTcDerivativesTransformer, o as IndexerGrpcExplorerStreamV2, ot as IndexerGrpcMitoStreamTransformer, p as IndexerGrpcSpotStreamV2, pt as IndexerRestExplorerTransformer, q as IndexerGrpcOracleApi, r as IndexerGrpcTcDerivativesStreamV2, rt as IndexerGrpcInsuranceFundTransformer, s as IndexerGrpcArchiverStreamV2, st as IndexerGrpcDerivativeTransformer, t as StreamManagerV2, tt as IndexerWsPriceOracleStreamTransformer, u as IndexerGrpcAccountStreamV2, ut as IndexerGrpcMegaVaultTransformer, v as IndexerGrpcDerivativesStream, vt as IndexerGrpcAuctionTransformer, w as IndexerGrpcAccountStream, wt as IndexerCampaignTransformer, x as IndexerGrpcArchiverStream, xt as IndexerGrpcOracleTransformer, y as IndexerGrpcWsPriceOracleStream, yt as IndexerGrpcAccountTransformer, z as IndexerGrpcMegaVaultApi } from "../StreamManagerV2-LFeQPMJH.js";
|
|
10
10
|
import "../types-tAnfZSw9.js";
|
|
11
11
|
|
|
12
12
|
export { AccessType, AccessTypeCode, ExplorerStreamTransformer, GridStrategyType, GrpcDecodeError, GrpcWebSocketCodec, GrpcWebSocketTransport, IndexerAccountPortfolioStreamTransformer, IndexerAccountStreamTransformer, IndexerArchiverStreamTransformer, IndexerAuctionStreamTransformer, IndexerCampaignTransformer, IndexerDerivativeStreamTransformer, IndexerGrpcAccountApi, IndexerGrpcAccountPortfolioApi, IndexerGrpcAccountPortfolioStream, IndexerGrpcAccountPortfolioStreamV2, IndexerGrpcAccountPortfolioTransformer, IndexerGrpcAccountStream, IndexerGrpcAccountStreamV2, IndexerGrpcAccountTransformer, IndexerGrpcArchiverApi, IndexerGrpcArchiverStream, IndexerGrpcArchiverStreamV2, IndexerGrpcArchiverTransformer, IndexerGrpcAuctionApi, IndexerGrpcAuctionStream, IndexerGrpcAuctionStreamV2, IndexerGrpcAuctionTransformer, IndexerGrpcCampaignApi, IndexerGrpcDerivativeTransformer, IndexerGrpcDerivativesApi, IndexerGrpcDerivativesStream, IndexerGrpcDerivativesStreamV2, IndexerGrpcExplorerApi, IndexerGrpcExplorerStream, IndexerGrpcExplorerStreamV2, IndexerGrpcExplorerTransformer, IndexerGrpcInsuranceFundApi, IndexerGrpcInsuranceFundTransformer, IndexerGrpcMegaVaultApi, IndexerGrpcMegaVaultTransformer, IndexerGrpcMetaApi, IndexerGrpcMitoApi, IndexerGrpcMitoStream, IndexerGrpcMitoStreamTransformer, IndexerGrpcMitoStreamV2, IndexerGrpcMitoTransformer, IndexerGrpcOracleApi, IndexerGrpcOracleStream, IndexerGrpcOracleStreamV2, IndexerGrpcOracleTransformer, IndexerGrpcRFQApi, IndexerGrpcReferralApi, IndexerGrpcReferralTransformer, IndexerGrpcRfqGwApi, IndexerGrpcRfqGwTransformer, IndexerGrpcRfqStreamV2, IndexerGrpcRfqTransformer, IndexerGrpcSpotApi, IndexerGrpcSpotStream, IndexerGrpcSpotStreamV2, IndexerGrpcSpotTransformer, IndexerGrpcTcDerivativesApi, IndexerGrpcTcDerivativesStreamV2, IndexerGrpcTcDerivativesTransformer, IndexerGrpcTradingApi, IndexerGrpcTradingStream, IndexerGrpcTradingStreamV2, IndexerGrpcTransactionApi, IndexerGrpcWeb3GwApi, IndexerGrpcWsPriceOracleApi, IndexerGrpcWsPriceOracleStream, IndexerGrpcWsPriceOracleStreamV2, IndexerModule, IndexerOracleStreamTransformer, IndexerRestDerivativesChronosApi, IndexerRestExplorerApi, IndexerRestExplorerTransformer, IndexerRestLeaderboardChronosApi, IndexerRestMarketChronosApi, IndexerRestSpotChronosApi, IndexerRfqStreamTransformer, IndexerSpotStreamTransformer, IndexerTcDerivativesStreamTransformer, IndexerWsMakerStream, IndexerWsPriceOracleStreamTransformer, IndexerWsTakerStream, MarketType, MitoGaugeStatus, RedemptionStatus, StreamManager, StreamManagerV2, TransferType, ValidatorUptimeStatus, WsDisconnectReason, WsState, createStreamSubscription, createStreamSubscriptionV2 };
|
package/dist/esm/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import "./BaseRestConsumer-Ca8S09Yp.js";
|
|
|
16
16
|
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-3OxxZ4Jk.js";
|
|
17
17
|
import { t as AbacusGrpcApi } from "./AbacusGrpcApi-BsDZcRId.js";
|
|
18
18
|
import { a as AccessType, c as GridStrategyType, d as MitoGaugeStatus, f as GrpcDecodeError, i as RedemptionStatus, l as MarketType, m as WsState, n as IndexerGrpcTransactionApi, o as AccessTypeCode, p as WsDisconnectReason, r as IndexerModule, s as ValidatorUptimeStatus, t as IndexerGrpcWeb3GwApi, u as TransferType } from "./IndexerGrpcWeb3GwApi-Bc5TEiq5.js";
|
|
19
|
-
import { $ as IndexerAccountPortfolioStreamTransformer, A as IndexerRestDerivativesChronosApi, At as GrpcWebSocketTransport, B as IndexerGrpcReferralApi, C as IndexerGrpcAuctionStream, Ct as IndexerGrpcRfqGwTransformer, D as IndexerGrpcSpotStream, Dt as IndexerWsMakerStream, E as IndexerGrpcMitoStream, Et as IndexerGrpcMitoTransformer, F as IndexerGrpcTcDerivativesApi, G as IndexerGrpcAuctionApi, H as IndexerGrpcCampaignApi, I as IndexerGrpcWsPriceOracleApi, J as IndexerGrpcRfqGwApi, K as IndexerGrpcAccountApi, L as IndexerGrpcAccountPortfolioApi, M as IndexerRestSpotChronosApi, N as IndexerRestExplorerApi, O as createStreamSubscription, Ot as IndexerWsTakerStream, P as IndexerGrpcInsuranceFundApi, Q as IndexerGrpcRFQApi, R as IndexerGrpcDerivativesApi, S as IndexerGrpcTradingStream, St as IndexerRfqStreamTransformer, T as IndexerGrpcOracleStream, Tt as IndexerGrpcSpotTransformer, U as IndexerGrpcExplorerApi, V as IndexerGrpcArchiverApi, W as IndexerGrpcTradingApi, X as IndexerGrpcMetaApi, Y as IndexerGrpcSpotApi, Z as IndexerGrpcMitoApi, _ as IndexerGrpcAccountPortfolioStream, _t as IndexerGrpcArchiverTransformer, a as IndexerGrpcWsPriceOracleStreamV2, at as IndexerGrpcAccountPortfolioTransformer, b as IndexerGrpcExplorerStream, bt as IndexerSpotStreamTransformer, c as IndexerGrpcTradingStreamV2, ct as ExplorerStreamTransformer, d as IndexerGrpcOracleStreamV2, dt as IndexerAuctionStreamTransformer, et as IndexerTcDerivativesStreamTransformer, f as IndexerGrpcMitoStreamV2, ft as IndexerAccountStreamTransformer, g as StreamManager, gt as IndexerGrpcExplorerTransformer, h as createStreamSubscriptionV2, ht as IndexerGrpcReferralTransformer, i as IndexerGrpcDerivativesStreamV2, it as IndexerDerivativeStreamTransformer, j as IndexerRestMarketChronosApi, jt as GrpcWebSocketCodec, k as IndexerRestLeaderboardChronosApi, kt as IndexerGrpcRfqTransformer, l as IndexerGrpcAuctionStreamV2, lt as IndexerArchiverStreamTransformer, m as IndexerGrpcRfqStreamV2, mt as IndexerOracleStreamTransformer, n as IndexerGrpcAccountPortfolioStreamV2, nt as IndexerGrpcTcDerivativesTransformer, o as IndexerGrpcExplorerStreamV2, ot as IndexerGrpcMitoStreamTransformer, p as IndexerGrpcSpotStreamV2, pt as IndexerRestExplorerTransformer, q as IndexerGrpcOracleApi, r as IndexerGrpcTcDerivativesStreamV2, rt as IndexerGrpcInsuranceFundTransformer, s as IndexerGrpcArchiverStreamV2, st as IndexerGrpcDerivativeTransformer, t as StreamManagerV2, tt as IndexerWsPriceOracleStreamTransformer, u as IndexerGrpcAccountStreamV2, ut as IndexerGrpcMegaVaultTransformer, v as IndexerGrpcDerivativesStream, vt as IndexerGrpcAuctionTransformer, w as IndexerGrpcAccountStream, wt as IndexerCampaignTransformer, x as IndexerGrpcArchiverStream, xt as IndexerGrpcOracleTransformer, y as IndexerGrpcWsPriceOracleStream, yt as IndexerGrpcAccountTransformer, z as IndexerGrpcMegaVaultApi } from "./StreamManagerV2-
|
|
19
|
+
import { $ as IndexerAccountPortfolioStreamTransformer, A as IndexerRestDerivativesChronosApi, At as GrpcWebSocketTransport, B as IndexerGrpcReferralApi, C as IndexerGrpcAuctionStream, Ct as IndexerGrpcRfqGwTransformer, D as IndexerGrpcSpotStream, Dt as IndexerWsMakerStream, E as IndexerGrpcMitoStream, Et as IndexerGrpcMitoTransformer, F as IndexerGrpcTcDerivativesApi, G as IndexerGrpcAuctionApi, H as IndexerGrpcCampaignApi, I as IndexerGrpcWsPriceOracleApi, J as IndexerGrpcRfqGwApi, K as IndexerGrpcAccountApi, L as IndexerGrpcAccountPortfolioApi, M as IndexerRestSpotChronosApi, N as IndexerRestExplorerApi, O as createStreamSubscription, Ot as IndexerWsTakerStream, P as IndexerGrpcInsuranceFundApi, Q as IndexerGrpcRFQApi, R as IndexerGrpcDerivativesApi, S as IndexerGrpcTradingStream, St as IndexerRfqStreamTransformer, T as IndexerGrpcOracleStream, Tt as IndexerGrpcSpotTransformer, U as IndexerGrpcExplorerApi, V as IndexerGrpcArchiverApi, W as IndexerGrpcTradingApi, X as IndexerGrpcMetaApi, Y as IndexerGrpcSpotApi, Z as IndexerGrpcMitoApi, _ as IndexerGrpcAccountPortfolioStream, _t as IndexerGrpcArchiverTransformer, a as IndexerGrpcWsPriceOracleStreamV2, at as IndexerGrpcAccountPortfolioTransformer, b as IndexerGrpcExplorerStream, bt as IndexerSpotStreamTransformer, c as IndexerGrpcTradingStreamV2, ct as ExplorerStreamTransformer, d as IndexerGrpcOracleStreamV2, dt as IndexerAuctionStreamTransformer, et as IndexerTcDerivativesStreamTransformer, f as IndexerGrpcMitoStreamV2, ft as IndexerAccountStreamTransformer, g as StreamManager, gt as IndexerGrpcExplorerTransformer, h as createStreamSubscriptionV2, ht as IndexerGrpcReferralTransformer, i as IndexerGrpcDerivativesStreamV2, it as IndexerDerivativeStreamTransformer, j as IndexerRestMarketChronosApi, jt as GrpcWebSocketCodec, k as IndexerRestLeaderboardChronosApi, kt as IndexerGrpcRfqTransformer, l as IndexerGrpcAuctionStreamV2, lt as IndexerArchiverStreamTransformer, m as IndexerGrpcRfqStreamV2, mt as IndexerOracleStreamTransformer, n as IndexerGrpcAccountPortfolioStreamV2, nt as IndexerGrpcTcDerivativesTransformer, o as IndexerGrpcExplorerStreamV2, ot as IndexerGrpcMitoStreamTransformer, p as IndexerGrpcSpotStreamV2, pt as IndexerRestExplorerTransformer, q as IndexerGrpcOracleApi, r as IndexerGrpcTcDerivativesStreamV2, rt as IndexerGrpcInsuranceFundTransformer, s as IndexerGrpcArchiverStreamV2, st as IndexerGrpcDerivativeTransformer, t as StreamManagerV2, tt as IndexerWsPriceOracleStreamTransformer, u as IndexerGrpcAccountStreamV2, ut as IndexerGrpcMegaVaultTransformer, v as IndexerGrpcDerivativesStream, vt as IndexerGrpcAuctionTransformer, w as IndexerGrpcAccountStream, wt as IndexerCampaignTransformer, x as IndexerGrpcArchiverStream, xt as IndexerGrpcOracleTransformer, y as IndexerGrpcWsPriceOracleStream, yt as IndexerGrpcAccountTransformer, z as IndexerGrpcMegaVaultApi } from "./StreamManagerV2-LFeQPMJH.js";
|
|
20
20
|
import { a as TradeDirection, c as TokenSource, i as OrderState, l as TokenType, n as OrderMaskMap, o as TradeExecutionSide, r as OrderSide, s as TradeExecutionType, t as StreamOperation, u as TokenVerification } from "./types-tAnfZSw9.js";
|
|
21
21
|
import { t as TcAbacusGrpcApi } from "./TcAbacusGrpcApi-DD86J_-p.js";
|
|
22
22
|
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-4keRJVkg.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.3",
|
|
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": {
|
|
@@ -351,10 +351,10 @@
|
|
|
351
351
|
"rxjs": "7.8.2",
|
|
352
352
|
"snakecase-keys": "^5.4.1",
|
|
353
353
|
"viem": "^2.41.2",
|
|
354
|
-
"@injectivelabs/exceptions": "1.20.
|
|
355
|
-
"@injectivelabs/networks": "1.20.
|
|
356
|
-
"@injectivelabs/utils": "1.20.
|
|
357
|
-
"@injectivelabs/ts-types": "1.20.
|
|
354
|
+
"@injectivelabs/exceptions": "1.20.3",
|
|
355
|
+
"@injectivelabs/networks": "1.20.3",
|
|
356
|
+
"@injectivelabs/utils": "1.20.3",
|
|
357
|
+
"@injectivelabs/ts-types": "1.20.3"
|
|
358
358
|
},
|
|
359
359
|
"publishConfig": {
|
|
360
360
|
"access": "public"
|