@injectivelabs/wallet-ledger 1.20.7 → 1.20.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.
@@ -12981,9 +12981,13 @@ var LedgerBase = class extends __injectivelabs_wallet_base.BaseConcreteStrategy
12981
12981
  }
12982
12982
  }
12983
12983
  async sendTransaction(transaction, options) {
12984
- const { endpoints, txTimeout } = options;
12984
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
12985
12985
  if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Ethereum native wallets"));
12986
- const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
12986
+ const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
12987
+ txTimeout,
12988
+ ...txInclusion,
12989
+ onBroadcast
12990
+ });
12987
12991
  if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
12988
12992
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
12989
12993
  contextCode: response.code,
@@ -13313,9 +13317,13 @@ var LedgerCosmos = class extends __injectivelabs_wallet_base.BaseConcreteStrateg
13313
13317
  });
13314
13318
  }
13315
13319
  async sendTransaction(transaction, options) {
13316
- const { endpoints, txTimeout } = options;
13320
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
13317
13321
  if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using LedgerCosmos wallet"));
13318
- const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
13322
+ const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
13323
+ txTimeout,
13324
+ ...txInclusion,
13325
+ onBroadcast
13326
+ });
13319
13327
  if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
13320
13328
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
13321
13329
  contextCode: response.code,
package/dist/esm/index.js CHANGED
@@ -12980,9 +12980,13 @@ var LedgerBase = class extends BaseConcreteStrategy {
12980
12980
  }
12981
12981
  }
12982
12982
  async sendTransaction(transaction, options) {
12983
- const { endpoints, txTimeout } = options;
12983
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
12984
12984
  if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Ethereum native wallets"));
12985
- const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
12985
+ const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
12986
+ txTimeout,
12987
+ ...txInclusion,
12988
+ onBroadcast
12989
+ });
12986
12990
  if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
12987
12991
  code: UnspecifiedErrorCode,
12988
12992
  contextCode: response.code,
@@ -13312,9 +13316,13 @@ var LedgerCosmos = class extends BaseConcreteStrategy {
13312
13316
  });
13313
13317
  }
13314
13318
  async sendTransaction(transaction, options) {
13315
- const { endpoints, txTimeout } = options;
13319
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
13316
13320
  if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using LedgerCosmos wallet"));
13317
- const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
13321
+ const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
13322
+ txTimeout,
13323
+ ...txInclusion,
13324
+ onBroadcast
13325
+ });
13318
13326
  if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
13319
13327
  code: UnspecifiedErrorCode,
13320
13328
  contextCode: response.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-ledger",
3
- "version": "1.20.7",
3
+ "version": "1.20.8",
4
4
  "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -50,10 +50,10 @@
50
50
  "@ledgerhq/hw-transport-webusb": "^6.34.4",
51
51
  "buffer": "^6.0.3",
52
52
  "viem": "^2.41.2",
53
- "@injectivelabs/exceptions": "1.20.7",
54
- "@injectivelabs/wallet-base": "1.20.7",
55
- "@injectivelabs/sdk-ts": "1.20.7",
56
- "@injectivelabs/ts-types": "1.20.7"
53
+ "@injectivelabs/exceptions": "1.20.8",
54
+ "@injectivelabs/sdk-ts": "1.20.8",
55
+ "@injectivelabs/ts-types": "1.20.8",
56
+ "@injectivelabs/wallet-base": "1.20.8"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@ethersproject/abi": "^5.7.0",