@injectivelabs/wallet-core 1.20.12 → 1.20.14

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.
@@ -729,7 +729,7 @@ var MsgBroadcaster = class {
729
729
  * Cosmos native wallets using the Web3Gateway.
730
730
  *
731
731
  * @param tx The transaction that needs to be broadcasted
732
- * @returns transaction hash
732
+ * @returns transaction hashR
733
733
  */
734
734
  async broadcastDirectSignWithFeeDelegation(tx) {
735
735
  var _tx$gas7;
@@ -743,8 +743,7 @@ var MsgBroadcaster = class {
743
743
  if (walletStrategy.getWallet() === __injectivelabs_wallet_base.Wallet.Keplr) {
744
744
  if (await walletStrategy.getWalletDeviceType() === __injectivelabs_wallet_base.WalletDeviceType.Hardware) throw new __injectivelabs_exceptions.GeneralException(/* @__PURE__ */ new Error("Keplr + Ledger is not available with fee delegation. Connect with Ledger directly."));
745
745
  }
746
- const cosmosWallet = walletStrategy.getCosmosWallet(chainId);
747
- const canDisableCosmosGasCheck = [__injectivelabs_wallet_base.Wallet.Keplr, __injectivelabs_wallet_base.Wallet.OWallet].includes(walletStrategy.wallet);
746
+ const cosmosWallet = await walletStrategy.getCosmosWallet(chainId);
748
747
  const feePayerPubKey = await this.fetchFeePayerPubKey(options.feePayerPubKey);
749
748
  const feePayerPublicKey = __injectivelabs_sdk_ts_core_accounts.PublicKey.fromBase64(feePayerPubKey);
750
749
  const feePayer = feePayerPublicKey.toAddress().address;
@@ -805,7 +804,7 @@ var MsgBroadcaster = class {
805
804
  payer: feePayer
806
805
  })
807
806
  });
808
- if (canDisableCosmosGasCheck && cosmosWallet.disableGasCheck) cosmosWallet.disableGasCheck(chainId);
807
+ if (cosmosWallet === null || cosmosWallet === void 0 ? void 0 : cosmosWallet.disableGasCheck) cosmosWallet.disableGasCheck(chainId);
809
808
  walletStrategy.emit(__injectivelabs_wallet_base.WalletStrategyEmitterEventType.TransactionPreparationStart);
810
809
  const directSignResponse = await walletStrategy.signCosmosTransaction({
811
810
  txRaw,
@@ -839,7 +838,7 @@ var MsgBroadcaster = class {
839
838
  throw e;
840
839
  }
841
840
  walletStrategy.emit(__injectivelabs_wallet_base.WalletStrategyEmitterEventType.TransactionBroadcastSynced);
842
- if (canDisableCosmosGasCheck && cosmosWallet.enableGasCheck) cosmosWallet.enableGasCheck(chainId);
841
+ if (cosmosWallet === null || cosmosWallet === void 0 ? void 0 : cosmosWallet.enableGasCheck) cosmosWallet.enableGasCheck(chainId);
843
842
  const confirmedTx = await this.waitForPreparedTxInclusion({
844
843
  tx,
845
844
  inclusionWaiter,
@@ -1,4 +1,4 @@
1
- const require_broadcaster = require('./broadcaster-gz27ziFy.cjs');
1
+ const require_broadcaster = require('./broadcaster-CuStNJ2g.cjs');
2
2
  require('./defineProperty-CImP5zIM.cjs');
3
3
 
4
4
  exports.MsgBroadcaster = require_broadcaster.MsgBroadcaster;
@@ -1,3 +1,3 @@
1
1
  import "./BaseWalletStrategy-Bvs5nQRI.cjs";
2
- import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-NsR1NUse.cjs";
2
+ import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-aQCoSOFW.cjs";
3
3
  export { MsgBroadcaster, MsgBroadcasterOptions, MsgBroadcasterTxOptions, MsgBroadcasterTxOptionsWithAddresses, Web3Broadcaster };
@@ -175,7 +175,7 @@ declare class MsgBroadcaster {
175
175
  * Cosmos native wallets using the Web3Gateway.
176
176
  *
177
177
  * @param tx The transaction that needs to be broadcasted
178
- * @returns transaction hash
178
+ * @returns transaction hashR
179
179
  */
180
180
  private broadcastDirectSignWithFeeDelegation;
181
181
  /**
@@ -1,4 +1,4 @@
1
- const require_broadcaster = require('./broadcaster-gz27ziFy.cjs');
1
+ const require_broadcaster = require('./broadcaster-CuStNJ2g.cjs');
2
2
  require('./defineProperty-CImP5zIM.cjs');
3
3
  const require_strategy = require('./strategy-D8mmr647.cjs');
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { t as BaseWalletStrategy } from "./BaseWalletStrategy-Bvs5nQRI.cjs";
2
- import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-NsR1NUse.cjs";
2
+ import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-aQCoSOFW.cjs";
3
3
  import "./index-DLoAMD9J.cjs";
4
4
 
5
5
  //#region src/utils/tx.d.ts
@@ -729,7 +729,7 @@ var MsgBroadcaster = class {
729
729
  * Cosmos native wallets using the Web3Gateway.
730
730
  *
731
731
  * @param tx The transaction that needs to be broadcasted
732
- * @returns transaction hash
732
+ * @returns transaction hashR
733
733
  */
734
734
  async broadcastDirectSignWithFeeDelegation(tx) {
735
735
  var _tx$gas7;
@@ -743,8 +743,7 @@ var MsgBroadcaster = class {
743
743
  if (walletStrategy.getWallet() === Wallet.Keplr) {
744
744
  if (await walletStrategy.getWalletDeviceType() === WalletDeviceType.Hardware) throw new GeneralException(/* @__PURE__ */ new Error("Keplr + Ledger is not available with fee delegation. Connect with Ledger directly."));
745
745
  }
746
- const cosmosWallet = walletStrategy.getCosmosWallet(chainId);
747
- const canDisableCosmosGasCheck = [Wallet.Keplr, Wallet.OWallet].includes(walletStrategy.wallet);
746
+ const cosmosWallet = await walletStrategy.getCosmosWallet(chainId);
748
747
  const feePayerPubKey = await this.fetchFeePayerPubKey(options.feePayerPubKey);
749
748
  const feePayerPublicKey = PublicKey.fromBase64(feePayerPubKey);
750
749
  const feePayer = feePayerPublicKey.toAddress().address;
@@ -805,7 +804,7 @@ var MsgBroadcaster = class {
805
804
  payer: feePayer
806
805
  })
807
806
  });
808
- if (canDisableCosmosGasCheck && cosmosWallet.disableGasCheck) cosmosWallet.disableGasCheck(chainId);
807
+ if (cosmosWallet === null || cosmosWallet === void 0 ? void 0 : cosmosWallet.disableGasCheck) cosmosWallet.disableGasCheck(chainId);
809
808
  walletStrategy.emit(WalletStrategyEmitterEventType.TransactionPreparationStart);
810
809
  const directSignResponse = await walletStrategy.signCosmosTransaction({
811
810
  txRaw,
@@ -839,7 +838,7 @@ var MsgBroadcaster = class {
839
838
  throw e;
840
839
  }
841
840
  walletStrategy.emit(WalletStrategyEmitterEventType.TransactionBroadcastSynced);
842
- if (canDisableCosmosGasCheck && cosmosWallet.enableGasCheck) cosmosWallet.enableGasCheck(chainId);
841
+ if (cosmosWallet === null || cosmosWallet === void 0 ? void 0 : cosmosWallet.enableGasCheck) cosmosWallet.enableGasCheck(chainId);
843
842
  const confirmedTx = await this.waitForPreparedTxInclusion({
844
843
  tx,
845
844
  inclusionWaiter,
@@ -1,3 +1,3 @@
1
1
  import "./BaseWalletStrategy-D2xNJmzo.js";
2
- import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-B98CLRUl.js";
2
+ import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-D2pR5txS.js";
3
3
  export { MsgBroadcaster, MsgBroadcasterOptions, MsgBroadcasterTxOptions, MsgBroadcasterTxOptionsWithAddresses, Web3Broadcaster };
@@ -1,4 +1,4 @@
1
- import { n as MsgBroadcaster, t as Web3Broadcaster } from "./broadcaster-BUSIYzvZ.js";
1
+ import { n as MsgBroadcaster, t as Web3Broadcaster } from "./broadcaster-ZH8xuuQH.js";
2
2
  import "./defineProperty-D4YE9KXX.js";
3
3
 
4
4
  export { MsgBroadcaster, Web3Broadcaster };
@@ -175,7 +175,7 @@ declare class MsgBroadcaster {
175
175
  * Cosmos native wallets using the Web3Gateway.
176
176
  *
177
177
  * @param tx The transaction that needs to be broadcasted
178
- * @returns transaction hash
178
+ * @returns transaction hashR
179
179
  */
180
180
  private broadcastDirectSignWithFeeDelegation;
181
181
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as BaseWalletStrategy } from "./BaseWalletStrategy-D2xNJmzo.js";
2
- import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-B98CLRUl.js";
2
+ import { a as MsgBroadcasterTxOptionsWithAddresses, i as MsgBroadcasterTxOptions, n as MsgBroadcaster, r as MsgBroadcasterOptions, t as Web3Broadcaster } from "./index-D2pR5txS.js";
3
3
  import "./index-DRYular4.js";
4
4
 
5
5
  //#region src/utils/tx.d.ts
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as MsgBroadcaster, r as checkIfTxRunOutOfGas, t as Web3Broadcaster } from "./broadcaster-BUSIYzvZ.js";
1
+ import { n as MsgBroadcaster, r as checkIfTxRunOutOfGas, t as Web3Broadcaster } from "./broadcaster-ZH8xuuQH.js";
2
2
  import "./defineProperty-D4YE9KXX.js";
3
3
  import { t as BaseWalletStrategy } from "./strategy-DU-V-GfI.js";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-core",
3
- "version": "1.20.12",
3
+ "version": "1.20.14",
4
4
  "description": "Core wallet strategy",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -84,12 +84,12 @@
84
84
  "dependencies": {
85
85
  "@keplr-wallet/types": "^0.12.296",
86
86
  "eventemitter3": "^5.0.1",
87
- "@injectivelabs/exceptions": "1.20.12",
88
- "@injectivelabs/networks": "1.20.12",
89
- "@injectivelabs/ts-types": "1.20.12",
90
- "@injectivelabs/utils": "1.20.12",
91
- "@injectivelabs/wallet-base": "1.20.12",
92
- "@injectivelabs/sdk-ts": "1.20.12"
87
+ "@injectivelabs/exceptions": "1.20.14",
88
+ "@injectivelabs/networks": "1.20.14",
89
+ "@injectivelabs/sdk-ts": "1.20.14",
90
+ "@injectivelabs/wallet-base": "1.20.14",
91
+ "@injectivelabs/ts-types": "1.20.14",
92
+ "@injectivelabs/utils": "1.20.14"
93
93
  },
94
94
  "publishConfig": {
95
95
  "access": "public"