@dynamic-labs/waas-evm 4.9.2-preview.0 → 4.9.3
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 +28 -1
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +4 -1
- package/src/DynamicWaasEVMConnector.d.ts +4 -1
- package/src/DynamicWaasEVMConnector.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
|
|
2
|
-
### [4.9.
|
|
2
|
+
### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* allow adding extra text to ToS and PP footer using custom css ([#8290](https://github.com/dynamic-labs/dynamic-auth/issues/8290)) ([0f6eb26](https://github.com/dynamic-labs/dynamic-auth/commit/0f6eb2666ea93a32360710ba5ac14eac53e07e2d))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* log out if there is a mismatch in user and wallet state ([#8300](https://github.com/dynamic-labs/dynamic-auth/issues/8300)) ([82ec2ad](https://github.com/dynamic-labs/dynamic-auth/commit/82ec2add1682a576d00dfe13aa1b9cccecf96688))
|
|
13
|
+
* sol sponsored tx for v3 ([#8288](https://github.com/dynamic-labs/dynamic-auth/issues/8288)) ([c466fba](https://github.com/dynamic-labs/dynamic-auth/commit/c466fba417d39641631e29104ec9c156dfdf7647))
|
|
14
|
+
* v3 existing wallet could not log in again ([#8282](https://github.com/dynamic-labs/dynamic-auth/issues/8282)) ([c2d68ad](https://github.com/dynamic-labs/dynamic-auth/commit/c2d68adf575fcce371e438076184ef590f346c9f))
|
|
15
|
+
|
|
16
|
+
### [4.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2) (2025-03-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **QNTM-2951:** update sdk styles ([#8214](https://github.com/dynamic-labs/dynamic-auth/issues/8214)) ([45cefa8](https://github.com/dynamic-labs/dynamic-auth/commit/45cefa82bdaad769c63ffeab4fb48f88ac855461))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* embedded widget race condition that would show both embedded and non-embedded widgets at the same time ([#8208](https://github.com/dynamic-labs/dynamic-auth/issues/8208)) ([031fb77](https://github.com/dynamic-labs/dynamic-auth/commit/031fb775c10daa383bf56ab7ba5fa4cf6ae9451c))
|
|
27
|
+
* **iframe-setup:** require the initial parent url when using an iframe ([#8268](https://github.com/dynamic-labs/dynamic-auth/issues/8268)) ([258e8a1](https://github.com/dynamic-labs/dynamic-auth/commit/258e8a128c31b8695518f9943bc74de9fce63196))
|
|
28
|
+
* improve WalletConnect experience ([#8201](https://github.com/dynamic-labs/dynamic-auth/issues/8201)) ([a09b16d](https://github.com/dynamic-labs/dynamic-auth/commit/a09b16de2ccd3cbba89f70a8ded4b7656f09f807)), closes [#8202](https://github.com/dynamic-labs/dynamic-auth/issues/8202) [#8207](https://github.com/dynamic-labs/dynamic-auth/issues/8207)
|
|
29
|
+
* prevent closing modal when mfa view is required ([#8156](https://github.com/dynamic-labs/dynamic-auth/issues/8156)) ([c34b245](https://github.com/dynamic-labs/dynamic-auth/commit/c34b24509e3f96046e72150b055d9c820f98706f))
|
|
3
30
|
|
|
4
31
|
### [4.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.0...v4.9.1) (2025-03-11)
|
|
5
32
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-evm",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3",
|
|
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,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-wallet/evm": "0.0.
|
|
21
|
+
"@dynamic-labs-wallet/evm": "0.0.43",
|
|
22
22
|
"viem": "2.21.55",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.9.
|
|
25
|
-
"@dynamic-labs/logger": "4.9.
|
|
26
|
-
"@dynamic-labs/types": "4.9.
|
|
27
|
-
"@dynamic-labs/utils": "4.9.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.9.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.9.3",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.9.3",
|
|
25
|
+
"@dynamic-labs/logger": "4.9.3",
|
|
26
|
+
"@dynamic-labs/types": "4.9.3",
|
|
27
|
+
"@dynamic-labs/utils": "4.9.3",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.9.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
|
@@ -29,6 +29,9 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
|
|
|
29
29
|
setBaseApiUrl(baseApiUrl) {
|
|
30
30
|
this.baseApiUrl = baseApiUrl;
|
|
31
31
|
}
|
|
32
|
+
setRelayUrl(relayUrl) {
|
|
33
|
+
this.relayUrl = relayUrl;
|
|
34
|
+
}
|
|
32
35
|
setlastUsedChainId(chainId) {
|
|
33
36
|
if (chainId === undefined) {
|
|
34
37
|
localStorage.removeItem(DynamicWaasEVMConnector.lastUsedChainIdStorageKey);
|
|
@@ -116,7 +119,7 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
|
|
|
116
119
|
return new evm.DynamicEvmWalletClient({
|
|
117
120
|
authToken,
|
|
118
121
|
baseApiUrl: this.baseApiUrl,
|
|
119
|
-
baseMPCRelayApiUrl: 'relay.dynamic-preprod.xyz',
|
|
122
|
+
baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
|
|
120
123
|
environmentId: this.environmentId,
|
|
121
124
|
});
|
|
122
125
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Account, Hex, Transport, WalletClient, Chain as ViemChain } from 'viem';
|
|
2
2
|
import { LocalAccount } from 'viem/accounts';
|
|
3
3
|
import { DynamicEvmWalletClient } from '@dynamic-labs-wallet/evm';
|
|
4
|
+
import { IDynamicWaasConnector } from '@dynamic-labs/wallet-connector-core';
|
|
4
5
|
import { EthereumWalletConnector, SwitchNetworkOps, EthereumWalletConnectorOpts } from '@dynamic-labs/ethereum-core';
|
|
5
6
|
import { IUITransaction } from '@dynamic-labs/types';
|
|
6
|
-
export declare class DynamicWaasEVMConnector extends EthereumWalletConnector {
|
|
7
|
+
export declare class DynamicWaasEVMConnector extends EthereumWalletConnector implements IDynamicWaasConnector {
|
|
7
8
|
static lastUsedChainIdStorageKey: string;
|
|
8
9
|
name: string;
|
|
9
10
|
overrideKey: string;
|
|
@@ -13,10 +14,12 @@ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector {
|
|
|
13
14
|
private dynamicWaasClient;
|
|
14
15
|
private activeAccountAddress;
|
|
15
16
|
private baseApiUrl?;
|
|
17
|
+
private relayUrl?;
|
|
16
18
|
constructor(props: EthereumWalletConnectorOpts);
|
|
17
19
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
18
20
|
setEnvironmentId(environmentId: string): void;
|
|
19
21
|
setBaseApiUrl(baseApiUrl: string): void;
|
|
22
|
+
setRelayUrl(relayUrl: string): void;
|
|
20
23
|
setlastUsedChainId(chainId: number | undefined): void;
|
|
21
24
|
private getlastUsedChainId;
|
|
22
25
|
private currentChainId;
|
|
@@ -25,6 +25,9 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
|
|
|
25
25
|
setBaseApiUrl(baseApiUrl) {
|
|
26
26
|
this.baseApiUrl = baseApiUrl;
|
|
27
27
|
}
|
|
28
|
+
setRelayUrl(relayUrl) {
|
|
29
|
+
this.relayUrl = relayUrl;
|
|
30
|
+
}
|
|
28
31
|
setlastUsedChainId(chainId) {
|
|
29
32
|
if (chainId === undefined) {
|
|
30
33
|
localStorage.removeItem(DynamicWaasEVMConnector.lastUsedChainIdStorageKey);
|
|
@@ -112,7 +115,7 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
|
|
|
112
115
|
return new DynamicEvmWalletClient({
|
|
113
116
|
authToken,
|
|
114
117
|
baseApiUrl: this.baseApiUrl,
|
|
115
|
-
baseMPCRelayApiUrl: 'relay.dynamic-preprod.xyz',
|
|
118
|
+
baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
|
|
116
119
|
environmentId: this.environmentId,
|
|
117
120
|
});
|
|
118
121
|
}
|