@dynamic-labs/embedded-wallet-evm 4.9.12 → 4.9.13-preview.1
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
|
+
### [4.9.13-preview.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.1) (2025-03-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add zk sync aa connector ([7ef9031](https://github.com/dynamic-labs/dynamic-auth/commit/7ef9031ce709b1ebc2d908da7d120e83733be7cf))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Adjust parallel tasks to default 16 ([#8413](https://github.com/dynamic-labs/dynamic-auth/issues/8413)) ([b62d34c](https://github.com/dynamic-labs/dynamic-auth/commit/b62d34cb780859d3d8414421539116520d0ebcbd))
|
|
13
|
+
* do not prompt passkey with 7702 on v2 wallets ([#8391](https://github.com/dynamic-labs/dynamic-auth/issues/8391)) ([bb91396](https://github.com/dynamic-labs/dynamic-auth/commit/bb913965121e97801922f5ca828d11e4a551a3b6))
|
|
14
|
+
* ensure the global wallet app url is used ([#8404](https://github.com/dynamic-labs/dynamic-auth/issues/8404)) ([23a7d91](https://github.com/dynamic-labs/dynamic-auth/commit/23a7d91b50cc85e67de52306f91163c675e0f007))
|
|
15
|
+
* **global-wallet-client:** use global wallet env id when storing data to ls ([#8405](https://github.com/dynamic-labs/dynamic-auth/issues/8405)) ([2b3d9ce](https://github.com/dynamic-labs/dynamic-auth/commit/2b3d9ce8dd82dda487759e0621c73bfad2842aef))
|
|
16
|
+
|
|
17
|
+
### [4.9.13-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.0) (2025-03-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add zk sync aa connector ([0859f98](https://github.com/dynamic-labs/dynamic-auth/commit/0859f9810442c9229a1465f59f2400272c83ba09))
|
|
23
|
+
|
|
2
24
|
### [4.9.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.11...v4.9.12) (2025-03-28)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/embedded-wallet-evm",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.13-preview.1",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.645",
|
|
22
22
|
"@turnkey/api-key-stamper": "0.4.3",
|
|
23
23
|
"@turnkey/iframe-stamper": "2.0.0",
|
|
24
24
|
"@turnkey/viem": "0.6.2",
|
|
25
25
|
"@turnkey/webauthn-stamper": "0.5.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
27
|
-
"@dynamic-labs/embedded-wallet": "4.9.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.9.
|
|
29
|
-
"@dynamic-labs/types": "4.9.
|
|
30
|
-
"@dynamic-labs/utils": "4.9.
|
|
31
|
-
"@dynamic-labs/wallet-book": "4.9.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.9.
|
|
33
|
-
"@dynamic-labs/webauthn": "4.9.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.9.13-preview.1",
|
|
27
|
+
"@dynamic-labs/embedded-wallet": "4.9.13-preview.1",
|
|
28
|
+
"@dynamic-labs/ethereum-core": "4.9.13-preview.1",
|
|
29
|
+
"@dynamic-labs/types": "4.9.13-preview.1",
|
|
30
|
+
"@dynamic-labs/utils": "4.9.13-preview.1",
|
|
31
|
+
"@dynamic-labs/wallet-book": "4.9.13-preview.1",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.9.13-preview.1",
|
|
33
|
+
"@dynamic-labs/webauthn": "4.9.13-preview.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"viem": "^2.21.55"
|
|
@@ -39,7 +39,11 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
39
39
|
this.providersConfig = (_a = props.providersConfig) !== null && _a !== void 0 ? _a : {};
|
|
40
40
|
this.chainRpcProviders = props.chainRpcProviders;
|
|
41
41
|
(_b = this.chainRpcProviders) === null || _b === void 0 ? void 0 : _b.registerEvmProviders((_c = this.providersConfig) !== null && _c !== void 0 ? _c : {});
|
|
42
|
-
this.
|
|
42
|
+
this.getTurnkeyClient()
|
|
43
|
+
.then((client) => {
|
|
44
|
+
this.__turnkeyClient = client;
|
|
45
|
+
})
|
|
46
|
+
.catch((error) => embeddedWallet.logger.error('Error getting turnkey client', error));
|
|
43
47
|
}
|
|
44
48
|
getLastUsedChainId() {
|
|
45
49
|
var _a;
|
|
@@ -279,7 +283,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
279
283
|
internalSign(_a) {
|
|
280
284
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ hash, address, turnkeySubOrganizationId, }) {
|
|
281
285
|
var _b;
|
|
282
|
-
const client = this.getTurnkeyClient();
|
|
286
|
+
const client = yield this.getTurnkeyClient();
|
|
283
287
|
const { activity } = yield client.signRawPayload({
|
|
284
288
|
organizationId: turnkeySubOrganizationId,
|
|
285
289
|
parameters: {
|
|
@@ -365,7 +369,7 @@ class TurnkeyEVMWalletConnector extends embeddedWallet.TurnkeyWalletConnectorBas
|
|
|
365
369
|
createTurnkeyAccount(_a) {
|
|
366
370
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ address, turnkeySubOrganizationId, }) {
|
|
367
371
|
return viem$1.createAccount({
|
|
368
|
-
client: this.getTurnkeyClient(),
|
|
372
|
+
client: (yield this.getTurnkeyClient()),
|
|
369
373
|
ethereumAddress: address,
|
|
370
374
|
organizationId: turnkeySubOrganizationId,
|
|
371
375
|
signWith: address,
|
|
@@ -10,7 +10,7 @@ import { hashAuthorization } from 'viem/experimental';
|
|
|
10
10
|
import { parseEvmNetworks, DynamicError } from '@dynamic-labs/utils';
|
|
11
11
|
import { EthereumWallet, createWalletClientWithUiConfirmation, getOrMapViemChain, createViemUiTransaction } from '@dynamic-labs/ethereum-core';
|
|
12
12
|
import { getRpcUrlForChain, isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
13
|
-
import { TurnkeyWalletConnectorBase,
|
|
13
|
+
import { TurnkeyWalletConnectorBase, logger, findTurnkeyVerifiedCredentialsWithSmartWalletRef, TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS } from '@dynamic-labs/embedded-wallet';
|
|
14
14
|
|
|
15
15
|
class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
16
16
|
constructor(nameAndKey, props) {
|
|
@@ -35,7 +35,11 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
|
35
35
|
this.providersConfig = (_a = props.providersConfig) !== null && _a !== void 0 ? _a : {};
|
|
36
36
|
this.chainRpcProviders = props.chainRpcProviders;
|
|
37
37
|
(_b = this.chainRpcProviders) === null || _b === void 0 ? void 0 : _b.registerEvmProviders((_c = this.providersConfig) !== null && _c !== void 0 ? _c : {});
|
|
38
|
-
this.
|
|
38
|
+
this.getTurnkeyClient()
|
|
39
|
+
.then((client) => {
|
|
40
|
+
this.__turnkeyClient = client;
|
|
41
|
+
})
|
|
42
|
+
.catch((error) => logger.error('Error getting turnkey client', error));
|
|
39
43
|
}
|
|
40
44
|
getLastUsedChainId() {
|
|
41
45
|
var _a;
|
|
@@ -275,7 +279,7 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
|
275
279
|
internalSign(_a) {
|
|
276
280
|
return __awaiter(this, arguments, void 0, function* ({ hash, address, turnkeySubOrganizationId, }) {
|
|
277
281
|
var _b;
|
|
278
|
-
const client = this.getTurnkeyClient();
|
|
282
|
+
const client = yield this.getTurnkeyClient();
|
|
279
283
|
const { activity } = yield client.signRawPayload({
|
|
280
284
|
organizationId: turnkeySubOrganizationId,
|
|
281
285
|
parameters: {
|
|
@@ -361,7 +365,7 @@ class TurnkeyEVMWalletConnector extends TurnkeyWalletConnectorBase {
|
|
|
361
365
|
createTurnkeyAccount(_a) {
|
|
362
366
|
return __awaiter(this, arguments, void 0, function* ({ address, turnkeySubOrganizationId, }) {
|
|
363
367
|
return createAccount({
|
|
364
|
-
client: this.getTurnkeyClient(),
|
|
368
|
+
client: (yield this.getTurnkeyClient()),
|
|
365
369
|
ethereumAddress: address,
|
|
366
370
|
organizationId: turnkeySubOrganizationId,
|
|
367
371
|
signWith: address,
|