@injectivelabs/wallet-turnkey 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.
- package/dist/cjs/index.cjs +6 -2
- package/dist/esm/index.js +6 -2
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -774,9 +774,13 @@ var TurnkeyWalletStrategy = class extends __injectivelabs_wallet_base.BaseConcre
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
async sendTransaction(transaction, options) {
|
|
777
|
-
const { endpoints, txTimeout } = options;
|
|
777
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
778
778
|
if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Turnkey wallet"));
|
|
779
|
-
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
779
|
+
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
780
|
+
txTimeout,
|
|
781
|
+
...txInclusion,
|
|
782
|
+
onBroadcast
|
|
783
|
+
});
|
|
780
784
|
if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
|
|
781
785
|
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
782
786
|
contextCode: response.code,
|
package/dist/esm/index.js
CHANGED
|
@@ -774,9 +774,13 @@ var TurnkeyWalletStrategy = class extends BaseConcreteStrategy {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
async sendTransaction(transaction, options) {
|
|
777
|
-
const { endpoints, txTimeout } = options;
|
|
777
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
778
778
|
if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Turnkey wallet"));
|
|
779
|
-
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
779
|
+
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
780
|
+
txTimeout,
|
|
781
|
+
...txInclusion,
|
|
782
|
+
onBroadcast
|
|
783
|
+
});
|
|
780
784
|
if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
|
|
781
785
|
code: UnspecifiedErrorCode,
|
|
782
786
|
contextCode: response.code,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-turnkey",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.8",
|
|
4
4
|
"description": "Turnkey wallet strategy for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@turnkey/sdk-browser": "5.16.1",
|
|
46
46
|
"@turnkey/viem": "0.13.1",
|
|
47
47
|
"viem": "^2.41.2",
|
|
48
|
-
"@injectivelabs/exceptions": "1.20.
|
|
49
|
-
"@injectivelabs/
|
|
50
|
-
"@injectivelabs/
|
|
51
|
-
"@injectivelabs/
|
|
52
|
-
"@injectivelabs/
|
|
48
|
+
"@injectivelabs/exceptions": "1.20.8",
|
|
49
|
+
"@injectivelabs/utils": "1.20.8",
|
|
50
|
+
"@injectivelabs/wallet-base": "1.20.8",
|
|
51
|
+
"@injectivelabs/ts-types": "1.20.8",
|
|
52
|
+
"@injectivelabs/sdk-ts": "1.20.8"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|