@injectivelabs/wallet-turnkey 1.20.64 → 1.20.65
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 +2 -15
- package/dist/esm/index.js +3 -16
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
let viem = require("viem");
|
|
2
2
|
let __injectivelabs_utils = require("@injectivelabs/utils");
|
|
3
|
-
let __injectivelabs_sdk_ts_core_tx = require("@injectivelabs/sdk-ts/core/tx");
|
|
4
3
|
let __injectivelabs_sdk_ts_utils = require("@injectivelabs/sdk-ts/utils");
|
|
5
|
-
let __injectivelabs_wallet_base = require("@injectivelabs/wallet-base");
|
|
6
4
|
let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
|
|
5
|
+
let __injectivelabs_wallet_base = require("@injectivelabs/wallet-base");
|
|
7
6
|
let __turnkey_viem = require("@turnkey/viem");
|
|
8
7
|
let __turnkey_sdk_browser = require("@turnkey/sdk-browser");
|
|
9
8
|
|
|
@@ -797,19 +796,7 @@ var TurnkeyWalletStrategy = class extends __injectivelabs_wallet_base.BaseConcre
|
|
|
797
796
|
}
|
|
798
797
|
}
|
|
799
798
|
async sendTransaction(transaction, options) {
|
|
800
|
-
|
|
801
|
-
if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Turnkey wallet"));
|
|
802
|
-
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
803
|
-
txTimeout,
|
|
804
|
-
...txInclusion,
|
|
805
|
-
onBroadcast
|
|
806
|
-
});
|
|
807
|
-
if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
|
|
808
|
-
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
809
|
-
contextCode: response.code,
|
|
810
|
-
contextModule: response.codespace
|
|
811
|
-
});
|
|
812
|
-
return response;
|
|
799
|
+
return (0, __injectivelabs_wallet_base.broadcastTxRaw)(transaction, options);
|
|
813
800
|
}
|
|
814
801
|
async signEip712TypedData(eip712json, address) {
|
|
815
802
|
var _parsedData$domain;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getAddress, hashTypedData } from "viem";
|
|
2
2
|
import { HttpRestClient } from "@injectivelabs/utils";
|
|
3
|
-
import { TxGrpcApi } from "@injectivelabs/sdk-ts/core/tx";
|
|
4
3
|
import { getEthereumAddress, getInjectiveAddress, sha256, toUtf8 } from "@injectivelabs/sdk-ts/utils";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CosmosWalletException, ErrorType, GeneralException, TurnkeyWalletSessionException, UnspecifiedErrorCode, WalletException } from "@injectivelabs/exceptions";
|
|
5
|
+
import { BaseConcreteStrategy, TurnkeyProvider, WalletAction, WalletDeviceType, broadcastTxRaw, getEvmChainConfig, getViemPublicClient, getViemWalletClient } from "@injectivelabs/wallet-base";
|
|
7
6
|
import { createAccount } from "@turnkey/viem";
|
|
8
7
|
import { SessionType, Turnkey } from "@turnkey/sdk-browser";
|
|
9
8
|
|
|
@@ -797,19 +796,7 @@ var TurnkeyWalletStrategy = class extends BaseConcreteStrategy {
|
|
|
797
796
|
}
|
|
798
797
|
}
|
|
799
798
|
async sendTransaction(transaction, options) {
|
|
800
|
-
|
|
801
|
-
if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Turnkey wallet"));
|
|
802
|
-
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
803
|
-
txTimeout,
|
|
804
|
-
...txInclusion,
|
|
805
|
-
onBroadcast
|
|
806
|
-
});
|
|
807
|
-
if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
|
|
808
|
-
code: UnspecifiedErrorCode,
|
|
809
|
-
contextCode: response.code,
|
|
810
|
-
contextModule: response.codespace
|
|
811
|
-
});
|
|
812
|
-
return response;
|
|
799
|
+
return broadcastTxRaw(transaction, options);
|
|
813
800
|
}
|
|
814
801
|
async signEip712TypedData(eip712json, address) {
|
|
815
802
|
var _parsedData$domain;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-turnkey",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.65",
|
|
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.54.6",
|
|
48
|
-
"@injectivelabs/exceptions": "1.20.
|
|
49
|
-
"@injectivelabs/ts
|
|
50
|
-
"@injectivelabs/
|
|
51
|
-
"@injectivelabs/
|
|
52
|
-
"@injectivelabs/
|
|
48
|
+
"@injectivelabs/exceptions": "1.20.65",
|
|
49
|
+
"@injectivelabs/sdk-ts": "1.20.65",
|
|
50
|
+
"@injectivelabs/ts-types": "1.20.65",
|
|
51
|
+
"@injectivelabs/utils": "1.20.65",
|
|
52
|
+
"@injectivelabs/wallet-base": "1.20.65"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|