@injectivelabs/wallet-trezor 1.20.6 → 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.
@@ -206,7 +206,7 @@ var BaseTrezorTransport = class BaseTrezorTransport {
206
206
  try {
207
207
  await TrezorConnect.init({
208
208
  manifest: TREZOR_CONNECT_MANIFEST,
209
- coreMode: "popup",
209
+ coreMode: "auto",
210
210
  interactionTimeout: 600
211
211
  });
212
212
  } catch (error) {
@@ -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
@@ -206,7 +206,7 @@ var BaseTrezorTransport = class BaseTrezorTransport {
206
206
  try {
207
207
  await TrezorConnect.init({
208
208
  manifest: TREZOR_CONNECT_MANIFEST,
209
- coreMode: "popup",
209
+ coreMode: "auto",
210
210
  interactionTimeout: 600
211
211
  });
212
212
  } catch (error) {
@@ -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.6",
3
+ "version": "1.20.8",
4
4
  "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,13 +42,13 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@trezor/connect": "^9.6.4",
46
- "@trezor/connect-web": "^9.6.4",
45
+ "@trezor/connect": "^9.7.3",
46
+ "@trezor/connect-web": "^9.7.3",
47
47
  "viem": "^2.41.2",
48
- "@injectivelabs/exceptions": "1.20.6",
49
- "@injectivelabs/ts-types": "1.20.6",
50
- "@injectivelabs/sdk-ts": "1.20.6",
51
- "@injectivelabs/wallet-base": "1.20.6"
48
+ "@injectivelabs/exceptions": "1.20.8",
49
+ "@injectivelabs/ts-types": "1.20.8",
50
+ "@injectivelabs/sdk-ts": "1.20.8",
51
+ "@injectivelabs/wallet-base": "1.20.8"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"