@injectivelabs/wallet-turnkey 1.17.2-alpha.15 → 1.17.2-alpha.16
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 -0
- package/dist/esm/index.js +2 -0
- package/package.json +8 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -598,6 +598,7 @@ var TurnkeyWalletStrategy = class extends __injectivelabs_wallet_base.BaseConcre
|
|
|
598
598
|
return response;
|
|
599
599
|
}
|
|
600
600
|
async signEip712TypedData(eip712json, address) {
|
|
601
|
+
var _parsedData$domain;
|
|
601
602
|
const turnkeyWallet = await this.getTurnkeyWallet();
|
|
602
603
|
const checksumAddress = (0, viem.getAddress)(address);
|
|
603
604
|
const account = await turnkeyWallet.getOrCreateAndGetAccount(checksumAddress);
|
|
@@ -612,6 +613,7 @@ var TurnkeyWalletStrategy = class extends __injectivelabs_wallet_base.BaseConcre
|
|
|
612
613
|
contextModule: __injectivelabs_wallet_base.WalletAction.SignTransaction
|
|
613
614
|
});
|
|
614
615
|
}
|
|
616
|
+
if (((_parsedData$domain = parsedData.domain) === null || _parsedData$domain === void 0 ? void 0 : _parsedData$domain.chainId) && typeof parsedData.domain.chainId === "string") parsedData.domain.chainId = Number(parsedData.domain.chainId);
|
|
615
617
|
return await account.signTypedData(parsedData);
|
|
616
618
|
}
|
|
617
619
|
async signCosmosTransaction(_transaction) {
|
package/dist/esm/index.js
CHANGED
|
@@ -598,6 +598,7 @@ var TurnkeyWalletStrategy = class extends BaseConcreteStrategy {
|
|
|
598
598
|
return response;
|
|
599
599
|
}
|
|
600
600
|
async signEip712TypedData(eip712json, address) {
|
|
601
|
+
var _parsedData$domain;
|
|
601
602
|
const turnkeyWallet = await this.getTurnkeyWallet();
|
|
602
603
|
const checksumAddress = getAddress(address);
|
|
603
604
|
const account = await turnkeyWallet.getOrCreateAndGetAccount(checksumAddress);
|
|
@@ -612,6 +613,7 @@ var TurnkeyWalletStrategy = class extends BaseConcreteStrategy {
|
|
|
612
613
|
contextModule: WalletAction.SignTransaction
|
|
613
614
|
});
|
|
614
615
|
}
|
|
616
|
+
if (((_parsedData$domain = parsedData.domain) === null || _parsedData$domain === void 0 ? void 0 : _parsedData$domain.chainId) && typeof parsedData.domain.chainId === "string") parsedData.domain.chainId = Number(parsedData.domain.chainId);
|
|
615
617
|
return await account.signTypedData(parsedData);
|
|
616
618
|
}
|
|
617
619
|
async signCosmosTransaction(_transaction) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-turnkey",
|
|
3
|
-
"version": "1.17.2-alpha.
|
|
3
|
+
"version": "1.17.2-alpha.16",
|
|
4
4
|
"description": "Turnkey wallet strategy for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@turnkey/sdk-browser": "
|
|
46
|
-
"@turnkey/viem": "
|
|
45
|
+
"@turnkey/sdk-browser": "5.2.3",
|
|
46
|
+
"@turnkey/viem": "0.9.10",
|
|
47
47
|
"viem": "^2.41.2",
|
|
48
|
-
"@injectivelabs/exceptions": "1.17.2-alpha.
|
|
49
|
-
"@injectivelabs/sdk-ts": "1.17.2-alpha.
|
|
50
|
-
"@injectivelabs/
|
|
51
|
-
"@injectivelabs/
|
|
52
|
-
"@injectivelabs/wallet-base": "1.17.2-alpha.
|
|
48
|
+
"@injectivelabs/exceptions": "1.17.2-alpha.16",
|
|
49
|
+
"@injectivelabs/sdk-ts": "1.17.2-alpha.16",
|
|
50
|
+
"@injectivelabs/utils": "1.17.2-alpha.16",
|
|
51
|
+
"@injectivelabs/ts-types": "1.17.2-alpha.16",
|
|
52
|
+
"@injectivelabs/wallet-base": "1.17.2-alpha.16"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|