@dynamic-labs/embedded-wallet-evm 4.9.13-preview.0 → 4.10.0
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,10 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
## [4.10.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.10.0) (2025-03-30)
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
|
+
* Sui Support for branded wallets
|
|
7
|
+
* better handling of non-multiasset balance fetching ([#8419](https://github.com/dynamic-labs/dynamic-auth/issues/8419)) ([574d4ea](https://github.com/dynamic-labs/dynamic-auth/commit/574d4eabf85e6f85325dc374b6cd84aa9fdd7ed4))
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* 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))
|
|
13
|
+
* 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))
|
|
14
|
+
* **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))
|
|
8
15
|
|
|
9
16
|
### [4.9.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.11...v4.9.12) (2025-03-28)
|
|
10
17
|
|
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.
|
|
3
|
+
"version": "4.10.0",
|
|
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.650",
|
|
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.
|
|
27
|
-
"@dynamic-labs/embedded-wallet": "4.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
29
|
-
"@dynamic-labs/types": "4.
|
|
30
|
-
"@dynamic-labs/utils": "4.
|
|
31
|
-
"@dynamic-labs/wallet-book": "4.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
33
|
-
"@dynamic-labs/webauthn": "4.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.10.0",
|
|
27
|
+
"@dynamic-labs/embedded-wallet": "4.10.0",
|
|
28
|
+
"@dynamic-labs/ethereum-core": "4.10.0",
|
|
29
|
+
"@dynamic-labs/types": "4.10.0",
|
|
30
|
+
"@dynamic-labs/utils": "4.10.0",
|
|
31
|
+
"@dynamic-labs/wallet-book": "4.10.0",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.10.0",
|
|
33
|
+
"@dynamic-labs/webauthn": "4.10.0"
|
|
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,
|