@injectivelabs/sdk-ts 1.17.6 → 1.17.8
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-QbGB8ZMB.cjs → AbacusGrpcApi-Da2mxc3z.cjs} +2 -2
- package/dist/cjs/{BaseGrpcConsumer-Db3sCC6b.cjs → BaseGrpcConsumer-B1hpRQJ-.cjs} +1 -1
- package/dist/cjs/{BaseIndexerGrpcConsumer-BBXxg_BR.cjs → BaseIndexerGrpcConsumer-rRYRp48i.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-Xtflr7xp.cjs → ChainGrpcExchangeApi-5On5kown.cjs} +3 -3
- package/dist/cjs/{ChainRestTendermintApi-CyeoAmer.cjs → ChainRestTendermintApi-DILpgVDN.cjs} +2 -2
- package/dist/cjs/{DirectEthSecp256k1Wallet-BiAOoEd6.cjs → DirectEthSecp256k1Wallet-Bz_TABf8.cjs} +2 -2
- package/dist/cjs/{ExecArgNeptuneWithdraw-4esQ6Su-.cjs → ExecArgNeptuneWithdraw-TyUvdHsN.cjs} +2 -2
- package/dist/cjs/{IndexerGrpcWeb3GwApi-BxJoq1-k.cjs → IndexerGrpcWeb3GwApi-wpbu-sy0.cjs} +2 -2
- package/dist/cjs/{MsgBase-D_1CCpXQ.cjs → MsgBase-DknjeeDb.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-DzYvKtNj.cjs → MsgSetDenomMetadata-MOKVZiSF.cjs} +39 -8
- package/dist/cjs/{OLPGrpcApi-CoVqLaSC.cjs → OLPGrpcApi-DYU9vRNO.cjs} +2 -2
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-DPrIH5Jb.cjs → QueryTradingStrategyContractTotalStrategies-CDeAJmZj.cjs} +3 -3
- package/dist/cjs/{StreamManagerV2-Dvfpwi5Z.cjs → StreamManagerV2-ocvGmGvp.cjs} +1034 -4
- package/dist/cjs/{accounts-HFzAaFRB.cjs → accounts-BPCUUwFm.cjs} +2 -2
- package/dist/cjs/{chain-CPs0kwL0.cjs → chain-DmIDW_8V.cjs} +3 -3
- package/dist/cjs/client/abacus.cjs +3 -3
- package/dist/cjs/client/chain.cjs +5 -5
- package/dist/cjs/client/chain.d.cts +2 -2
- package/dist/cjs/client/indexer.cjs +17 -5
- package/dist/cjs/client/indexer.d.cts +3 -3
- package/dist/cjs/client/olp.cjs +4 -4
- package/dist/cjs/client/wasm.cjs +8 -8
- package/dist/cjs/client/wasm.d.cts +1 -1
- package/dist/cjs/core/accounts.cjs +3 -3
- package/dist/cjs/core/accounts.d.cts +2 -2
- package/dist/cjs/core/modules.cjs +11 -11
- package/dist/cjs/core/modules.d.cts +2 -2
- package/dist/cjs/core/tx.cjs +8 -8
- package/dist/cjs/core/tx.d.cts +2 -2
- package/dist/cjs/cosmjs.cjs +9 -9
- package/dist/cjs/{defineProperty-dyr5BsvG.cjs → defineProperty-DAtJs5JQ.cjs} +4 -4
- package/dist/cjs/exports.cjs +9 -9
- package/dist/cjs/{index-Dz6elmkG.d.cts → index-CNxu0jEc.d.cts} +1312 -113
- package/dist/cjs/{index-CSWj2FPd.d.cts → index-COusnMLC.d.cts} +8 -5
- package/dist/cjs/index.cjs +29 -17
- package/dist/cjs/index.d.cts +3 -3
- package/dist/cjs/{service-C0DSVBn_.cjs → service-DmzN9jAl.cjs} +1 -1
- package/dist/cjs/service.cjs +2 -2
- package/dist/cjs/{tx-MgHAjEie.cjs → tx-CYMyLXlj.cjs} +5 -5
- package/dist/cjs/utils.d.cts +2 -2
- package/dist/esm/{AbacusGrpcApi-H-P0UiPh.js → AbacusGrpcApi-DG807S_D.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-a7fB9A_e.js → BaseGrpcConsumer-lUDP-V1I.js} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-CrwqSxDq.js → BaseIndexerGrpcConsumer-ByGqwnv0.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-Ko7rM6Df.js → ChainGrpcExchangeApi-dM8pIv3Q.js} +3 -3
- package/dist/esm/{ChainRestTendermintApi-BUV-cxVj.js → ChainRestTendermintApi-iiW50Z2J.js} +2 -2
- package/dist/esm/{DirectEthSecp256k1Wallet-CMxBvSTE.js → DirectEthSecp256k1Wallet-BV8ttcYH.js} +2 -2
- package/dist/esm/{ExecArgNeptuneWithdraw-BRJZq8Vb.js → ExecArgNeptuneWithdraw-DqIWmqJy.js} +2 -2
- package/dist/esm/{IndexerGrpcWeb3GwApi-CX4ohUOk.js → IndexerGrpcWeb3GwApi-OwqVZsKE.js} +2 -2
- package/dist/esm/{MsgBase-D4pO6org.js → MsgBase-BYNH7Kr5.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-CeD0R82a.js → MsgSetDenomMetadata-CTyvXOGo.js} +39 -8
- package/dist/esm/{OLPGrpcApi-CX-m2wvC.js → OLPGrpcApi-CYVKwBCj.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-D9fMELJH.js → QueryTradingStrategyContractTotalStrategies-CCM0S67l.js} +3 -3
- package/dist/esm/{StreamManagerV2-B_6ctbMb.js → StreamManagerV2-CbZamzIn.js} +962 -5
- package/dist/esm/{accounts-CP_DVUou.js → accounts-DaSGlOcB.js} +2 -2
- package/dist/esm/{chain-CQczt2h3.js → chain-DqFxHeeE.js} +3 -3
- package/dist/esm/client/abacus.js +3 -3
- package/dist/esm/client/chain.d.ts +2 -2
- package/dist/esm/client/chain.js +5 -5
- package/dist/esm/client/indexer.d.ts +3 -3
- package/dist/esm/client/indexer.js +6 -6
- package/dist/esm/client/olp.js +4 -4
- package/dist/esm/client/wasm.d.ts +1 -1
- package/dist/esm/client/wasm.js +8 -8
- package/dist/esm/core/accounts.d.ts +2 -2
- package/dist/esm/core/accounts.js +3 -3
- package/dist/esm/core/modules.d.ts +2 -2
- package/dist/esm/core/modules.js +11 -11
- package/dist/esm/core/tx.d.ts +2 -2
- package/dist/esm/core/tx.js +8 -8
- package/dist/esm/cosmjs.js +9 -9
- package/dist/esm/{defineProperty-Bq6QU9Te.js → defineProperty-DuYPbdEg.js} +4 -4
- package/dist/esm/exports.js +9 -9
- package/dist/esm/{index-CvTpnDXx.d.ts → index-C32ydr8i.d.ts} +1313 -113
- package/dist/esm/{index-BbVYW9Fg.d.ts → index-M499Wbuy.d.ts} +8 -5
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +18 -18
- package/dist/esm/{service-CqKPnKgb.js → service-DcE3KfV9.js} +1 -1
- package/dist/esm/service.js +2 -2
- package/dist/esm/{tx-ZGcAWTaC.js → tx-CSkj2rce.js} +5 -5
- package/dist/esm/utils.d.ts +2 -2
- package/package.json +7 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Ht as concatUint8Arrays, Vt as binaryToBase64, Wt as fromUtf8, Zt as uint8ArrayToBase64, et as numberToCosmosSdkDecString, ht as messageHash, nn as bigIntToString, pn as safeBigIntStringify, pt as domainHash, qt as hexToUint8Array, zt as base64ToUint8Array } from "./utils-CewUFGKA.js";
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
3
|
-
import { A as createAny, F as Address } from "./accounts-
|
|
4
|
-
import { n as prepareSignBytes, t as MsgBase } from "./MsgBase-
|
|
5
|
-
import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-
|
|
6
|
-
import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
|
|
3
|
+
import { A as createAny, F as Address } from "./accounts-DaSGlOcB.js";
|
|
4
|
+
import { n as prepareSignBytes, t as MsgBase } from "./MsgBase-BYNH7Kr5.js";
|
|
5
|
+
import { t as ChainGrpcExchangeApi } from "./ChainGrpcExchangeApi-dM8pIv3Q.js";
|
|
6
|
+
import { a as dataToExecData$1, i as ExecArgBase } from "./ExecArgNeptuneWithdraw-DqIWmqJy.js";
|
|
7
7
|
import { keccak256 } from "viem";
|
|
8
8
|
import { BigNumber, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, toChainFormat, toPascalCase } from "@injectivelabs/utils";
|
|
9
9
|
import { GeneralException } from "@injectivelabs/exceptions";
|
|
@@ -7307,7 +7307,7 @@ var MsgBurn = class MsgBurn extends MsgBase {
|
|
|
7307
7307
|
value: {
|
|
7308
7308
|
sender: proto.sender,
|
|
7309
7309
|
amount: proto.amount,
|
|
7310
|
-
|
|
7310
|
+
burnFromAddress: proto.burnFromAddress || ""
|
|
7311
7311
|
}
|
|
7312
7312
|
};
|
|
7313
7313
|
}
|
|
@@ -7343,6 +7343,9 @@ var MsgBurn = class MsgBurn extends MsgBase {
|
|
|
7343
7343
|
]);
|
|
7344
7344
|
return map;
|
|
7345
7345
|
}
|
|
7346
|
+
toEip712() {
|
|
7347
|
+
throw new GeneralException(/* @__PURE__ */ new Error("EIP712_v1 is not supported for MsgBurn. Please use EIP712_v2"));
|
|
7348
|
+
}
|
|
7346
7349
|
toDirectSign() {
|
|
7347
7350
|
return {
|
|
7348
7351
|
type: "/injective.tokenfactory.v1beta1.MsgBurn",
|
|
@@ -7372,7 +7375,7 @@ var MsgMint = class MsgMint extends MsgBase {
|
|
|
7372
7375
|
return InjectiveTokenFactoryV1Beta1TxPb.MsgMint.create({
|
|
7373
7376
|
sender: params.sender,
|
|
7374
7377
|
amount: coin,
|
|
7375
|
-
|
|
7378
|
+
receiver: params.receiver || ""
|
|
7376
7379
|
});
|
|
7377
7380
|
}
|
|
7378
7381
|
toData() {
|
|
@@ -7389,7 +7392,7 @@ var MsgMint = class MsgMint extends MsgBase {
|
|
|
7389
7392
|
value: {
|
|
7390
7393
|
sender: proto.sender,
|
|
7391
7394
|
amount: proto.amount,
|
|
7392
|
-
...proto.receiver
|
|
7395
|
+
...proto.receiver !== void 0 ? { receiver: proto.receiver } : { receiver: "" }
|
|
7393
7396
|
}
|
|
7394
7397
|
};
|
|
7395
7398
|
}
|
|
@@ -7400,6 +7403,34 @@ var MsgMint = class MsgMint extends MsgBase {
|
|
|
7400
7403
|
...value
|
|
7401
7404
|
};
|
|
7402
7405
|
}
|
|
7406
|
+
toEip712Types() {
|
|
7407
|
+
const map = /* @__PURE__ */ new Map();
|
|
7408
|
+
map.set("TypeAmount", [{
|
|
7409
|
+
name: "denom",
|
|
7410
|
+
type: "string"
|
|
7411
|
+
}, {
|
|
7412
|
+
name: "amount",
|
|
7413
|
+
type: "string"
|
|
7414
|
+
}]);
|
|
7415
|
+
map.set("MsgValue", [
|
|
7416
|
+
{
|
|
7417
|
+
name: "sender",
|
|
7418
|
+
type: "string"
|
|
7419
|
+
},
|
|
7420
|
+
{
|
|
7421
|
+
name: "amount",
|
|
7422
|
+
type: "TypeAmount"
|
|
7423
|
+
},
|
|
7424
|
+
{
|
|
7425
|
+
name: "receiver",
|
|
7426
|
+
type: "string"
|
|
7427
|
+
}
|
|
7428
|
+
]);
|
|
7429
|
+
return map;
|
|
7430
|
+
}
|
|
7431
|
+
toEip712() {
|
|
7432
|
+
throw new GeneralException(/* @__PURE__ */ new Error("EIP712_v1 is not supported for MsgMint. Please use EIP712_v2"));
|
|
7433
|
+
}
|
|
7403
7434
|
toDirectSign() {
|
|
7404
7435
|
return {
|
|
7405
7436
|
type: "/injective.tokenfactory.v1beta1.MsgMint",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
-
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
|
|
2
|
+
import { t as BaseIndexerGrpcConsumer } from "./BaseIndexerGrpcConsumer-ByGqwnv0.js";
|
|
3
3
|
import { IndexerErrorModule } from "@injectivelabs/exceptions";
|
|
4
4
|
import * as DmmPb from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb";
|
|
5
5
|
import { InjectiveDmmV2Client } from "@injectivelabs/olp-proto-ts-v2/generated/goagen_olp_injective_dmm_v2_pb.client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ut as fromBase64, Vt as binaryToBase64, Xt as toUtf8, Yt as toBase64 } from "./utils-CewUFGKA.js";
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
3
|
-
import { h as ChainGrpcWasmApi } from "./chain-
|
|
4
|
-
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-DuYPbdEg.js";
|
|
3
|
+
import { h as ChainGrpcWasmApi } from "./chain-DqFxHeeE.js";
|
|
4
|
+
import { n as MsgExecuteContractCompat, r as ExecArgNeptuneDeposit, t as ExecArgNeptuneWithdraw } from "./ExecArgNeptuneWithdraw-DqIWmqJy.js";
|
|
5
5
|
import { GeneralException } from "@injectivelabs/exceptions";
|
|
6
6
|
import { Network, getNetworkEndpoints, isMainnet } from "@injectivelabs/networks";
|
|
7
7
|
|