@dynamic-labs/embedded-wallet-evm 3.0.0-alpha.28 → 3.0.0-alpha.30
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.30](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.29...v3.0.0-alpha.30) (2024-07-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* don't filter out bitcoin.com when searching for bitcoin ([#6408](https://github.com/dynamic-labs/DynamicAuth/issues/6408)) ([6af5456](https://github.com/dynamic-labs/DynamicAuth/commit/6af54567faa430660b2443638adc103e829eb49d))
|
|
8
|
+
* improve metamask starknet snap network polling interval management ([#6424](https://github.com/dynamic-labs/DynamicAuth/issues/6424)) ([22c4376](https://github.com/dynamic-labs/DynamicAuth/commit/22c4376596d5e07d1da30190baf159c43a8956c6))
|
|
9
|
+
* isCookieEnabled should check externalAuth.cookieName ([#6433](https://github.com/dynamic-labs/DynamicAuth/issues/6433)) ([91d95e5](https://github.com/dynamic-labs/DynamicAuth/commit/91d95e5664f70c2eb306082419d6fece9753f220))
|
|
10
|
+
* phantom ledger works on safari ([#6428](https://github.com/dynamic-labs/DynamicAuth/issues/6428)) ([a8a81f6](https://github.com/dynamic-labs/DynamicAuth/commit/a8a81f6fd4d8ae5ba04525ef6ff6a84a1732a03a))
|
|
11
|
+
|
|
12
|
+
## [3.0.0-alpha.29](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.28...v3.0.0-alpha.29) (2024-07-25)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add link to starknet snap companion app in network switch modal ([#6417](https://github.com/dynamic-labs/DynamicAuth/issues/6417)) ([132a3f8](https://github.com/dynamic-labs/DynamicAuth/commit/132a3f84af62930583f042f35e9616bc837ee49d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* improve network switch ux for starknet snap on login ([#6376](https://github.com/dynamic-labs/DynamicAuth/issues/6376)) ([db4af65](https://github.com/dynamic-labs/DynamicAuth/commit/db4af6576dc164876750ad6e13f4624d8a11a1a3))
|
|
23
|
+
|
|
2
24
|
## [3.0.0-alpha.28](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.27...v3.0.0-alpha.28) (2024-07-25)
|
|
3
25
|
|
|
4
26
|
## [3.0.0-alpha.27](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.26...v3.0.0-alpha.27) (2024-07-24)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/embedded-wallet-evm",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.30",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@turnkey/iframe-stamper": "2.0.0",
|
|
33
33
|
"@turnkey/viem": "0.4.10",
|
|
34
34
|
"@turnkey/webauthn-stamper": "0.5.0",
|
|
35
|
-
"@dynamic-labs/embedded-wallet": "3.0.0-alpha.
|
|
36
|
-
"@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.
|
|
37
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
38
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
39
|
-
"@dynamic-labs/viem-utils": "3.0.0-alpha.
|
|
40
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
41
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
35
|
+
"@dynamic-labs/embedded-wallet": "3.0.0-alpha.30",
|
|
36
|
+
"@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.30",
|
|
37
|
+
"@dynamic-labs/types": "3.0.0-alpha.30",
|
|
38
|
+
"@dynamic-labs/utils": "3.0.0-alpha.30",
|
|
39
|
+
"@dynamic-labs/viem-utils": "3.0.0-alpha.30",
|
|
40
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.30",
|
|
41
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.30"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"viem": "^2.7.6"
|
|
@@ -211,7 +211,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
211
211
|
return chainId;
|
|
212
212
|
}
|
|
213
213
|
catch (err) {
|
|
214
|
-
|
|
214
|
+
embeddedWallet.logger.error(err);
|
|
215
215
|
return undefined;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -277,8 +277,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
277
277
|
return yield action(newTurnkeyAccountRaw);
|
|
278
278
|
}
|
|
279
279
|
catch (err) {
|
|
280
|
-
if (err.message.includes(
|
|
281
|
-
err.message.includes(embeddedWallet.TURNKEY_API_KEY_NOT_FOUND_MESSAGE)) {
|
|
280
|
+
if (embeddedWallet.TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS.some((errorMsg) => err.message.includes(errorMsg))) {
|
|
282
281
|
yield this.removeSessionKeys();
|
|
283
282
|
yield this.createOrRestoreSession({
|
|
284
283
|
ignoreRestore: true,
|
|
@@ -289,7 +288,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
289
288
|
});
|
|
290
289
|
return action(newTurnkeyAccountRaw);
|
|
291
290
|
}
|
|
292
|
-
|
|
291
|
+
embeddedWallet.logger.error('[TK] failed to perform activity', err);
|
|
293
292
|
throw err;
|
|
294
293
|
}
|
|
295
294
|
});
|
|
@@ -9,8 +9,8 @@ import { http, createPublicClient, formatEther } from 'viem';
|
|
|
9
9
|
import { toAccount } from 'viem/accounts';
|
|
10
10
|
import { parseEvmNetworks, getTLD, PlatformService, DynamicError } from '@dynamic-labs/utils';
|
|
11
11
|
import { createWalletClientWithUiConfirmation, getOrMapViemChain, createViemUiTransaction } from '@dynamic-labs/viem-utils';
|
|
12
|
-
import { getRpcUrlForChain
|
|
13
|
-
import { TurnkeyWalletConnectorBase, findTurnkeyVerifiedCredential, PasskeyService, TURNKEY_API_BASE_URL,
|
|
12
|
+
import { getRpcUrlForChain } from '@dynamic-labs/wallet-connector-core';
|
|
13
|
+
import { TurnkeyWalletConnectorBase, findTurnkeyVerifiedCredential, PasskeyService, TURNKEY_API_BASE_URL, logger, TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS } from '@dynamic-labs/embedded-wallet';
|
|
14
14
|
|
|
15
15
|
class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
16
16
|
constructor(nameAndKey, props) {
|
|
@@ -273,8 +273,7 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
|
273
273
|
return yield action(newTurnkeyAccountRaw);
|
|
274
274
|
}
|
|
275
275
|
catch (err) {
|
|
276
|
-
if (err.message.includes(
|
|
277
|
-
err.message.includes(TURNKEY_API_KEY_NOT_FOUND_MESSAGE)) {
|
|
276
|
+
if (TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS.some((errorMsg) => err.message.includes(errorMsg))) {
|
|
278
277
|
yield this.removeSessionKeys();
|
|
279
278
|
yield this.createOrRestoreSession({
|
|
280
279
|
ignoreRestore: true,
|