@injectivelabs/wallet-trezor 1.20.7 → 1.20.9

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.
@@ -533,9 +533,13 @@ var TrezorBase = class extends __injectivelabs_wallet_base.BaseConcreteStrategy
533
533
  }
534
534
  }
535
535
  async sendTransaction(transaction, options) {
536
- const { endpoints, txTimeout } = options;
536
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
537
537
  if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Ethereum native wallets"));
538
- const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
538
+ const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
539
+ txTimeout,
540
+ ...txInclusion,
541
+ onBroadcast
542
+ });
539
543
  if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
540
544
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
541
545
  contextCode: response.code,
package/dist/esm/index.js CHANGED
@@ -533,9 +533,13 @@ var TrezorBase = class extends BaseConcreteStrategy {
533
533
  }
534
534
  }
535
535
  async sendTransaction(transaction, options) {
536
- const { endpoints, txTimeout } = options;
536
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
537
537
  if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Ethereum native wallets"));
538
- const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
538
+ const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
539
+ txTimeout,
540
+ ...txInclusion,
541
+ onBroadcast
542
+ });
539
543
  if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
540
544
  code: UnspecifiedErrorCode,
541
545
  contextCode: response.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-trezor",
3
- "version": "1.20.7",
3
+ "version": "1.20.9",
4
4
  "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -45,10 +45,10 @@
45
45
  "@trezor/connect": "^9.7.3",
46
46
  "@trezor/connect-web": "^9.7.3",
47
47
  "viem": "^2.41.2",
48
- "@injectivelabs/exceptions": "1.20.7",
49
- "@injectivelabs/sdk-ts": "1.20.7",
50
- "@injectivelabs/wallet-base": "1.20.7",
51
- "@injectivelabs/ts-types": "1.20.7"
48
+ "@injectivelabs/exceptions": "1.20.9",
49
+ "@injectivelabs/sdk-ts": "1.20.9",
50
+ "@injectivelabs/ts-types": "1.20.9",
51
+ "@injectivelabs/wallet-base": "1.20.9"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"