@injectivelabs/wallet-trezor 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.
- package/dist/cjs/index.cjs +6 -2
- package/dist/esm/index.js +6 -2
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -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, {
|
|
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, {
|
|
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.
|
|
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": {
|
|
@@ -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.
|
|
49
|
-
"@injectivelabs/
|
|
50
|
-
"@injectivelabs/
|
|
51
|
-
"@injectivelabs/
|
|
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"
|