@dynamic-labs/waas-evm 4.61.1 → 4.61.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 +24 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +5 -8
- package/src/DynamicWaasEVMConnector.d.ts +2 -1
- package/src/DynamicWaasEVMConnector.js +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.61.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.2...v4.61.3) (2026-02-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add reset widget password flow for WaaS wallets ([#10437](https://github.com/dynamic-labs/dynamic-auth/issues/10437)) ([7490069](https://github.com/dynamic-labs/dynamic-auth/commit/7490069b70b04be5d70c472c17b132c6a5eddcd5))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* add broken ton wallet mobile connection ([#10435](https://github.com/dynamic-labs/dynamic-auth/issues/10435)) ([a71cd88](https://github.com/dynamic-labs/dynamic-auth/commit/a71cd88fd4e80af6a8956cdb5cc389a34e4e00f1))
|
|
13
|
+
* infinite loop when rapidly entering phone number ([#10434](https://github.com/dynamic-labs/dynamic-auth/issues/10434)) ([39a57cc](https://github.com/dynamic-labs/dynamic-auth/commit/39a57cc51b879abbb63bd129a489adcd8522b261))
|
|
14
|
+
* invalidate non matching ton connect proof ([#10438](https://github.com/dynamic-labs/dynamic-auth/issues/10438)) ([406ba34](https://github.com/dynamic-labs/dynamic-auth/commit/406ba34ba9053953a4b5a5d6ead6d7e8a1718423))
|
|
15
|
+
|
|
16
|
+
### [4.61.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.1...v4.61.2) (2026-02-12)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* export wallet password hook ([#10433](https://github.com/dynamic-labs/dynamic-auth/issues/10433)) ([dd6170e](https://github.com/dynamic-labs/dynamic-auth/commit/dd6170ec42a863b33baea92f9716083e3c4941d0))
|
|
22
|
+
* only prompt braavos wallet once to connect ([#10405](https://github.com/dynamic-labs/dynamic-auth/issues/10405)) ([2aff336](https://github.com/dynamic-labs/dynamic-auth/commit/2aff336a6222404b7907be65ef9af6806c357a07))
|
|
23
|
+
* remove signedSessionId from validateActiveWallet ([#10422](https://github.com/dynamic-labs/dynamic-auth/issues/10422)) ([700a953](https://github.com/dynamic-labs/dynamic-auth/commit/700a95383c8754f1cc0c87f53c50d04b57ef1b52))
|
|
24
|
+
* ton wallets not showing download links ([#10421](https://github.com/dynamic-labs/dynamic-auth/issues/10421)) ([cc8a8f8](https://github.com/dynamic-labs/dynamic-auth/commit/cc8a8f82485e4cc94aacd63d2e6a1bd8ca291f9c))
|
|
25
|
+
|
|
2
26
|
### [4.61.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.0...v4.61.1) (2026-02-11)
|
|
3
27
|
|
|
4
28
|
|
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.61.
|
|
3
|
+
"version": "4.61.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",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
22
22
|
"viem": "^2.28.4",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.61.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.61.
|
|
25
|
-
"@dynamic-labs/logger": "4.61.
|
|
26
|
-
"@dynamic-labs/types": "4.61.
|
|
27
|
-
"@dynamic-labs/utils": "4.61.
|
|
28
|
-
"@dynamic-labs/waas": "4.61.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.61.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.61.3",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.61.3",
|
|
25
|
+
"@dynamic-labs/logger": "4.61.3",
|
|
26
|
+
"@dynamic-labs/types": "4.61.3",
|
|
27
|
+
"@dynamic-labs/utils": "4.61.3",
|
|
28
|
+
"@dynamic-labs/waas": "4.61.3",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.61.3"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -146,21 +146,18 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
146
146
|
}
|
|
147
147
|
validateActiveWallet(expectedAddress) {
|
|
148
148
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
var _a, _b
|
|
149
|
+
var _a, _b;
|
|
150
150
|
const walletClient = yield this.getWaasWalletClient();
|
|
151
|
-
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
152
|
-
if (!signedSessionId) {
|
|
153
|
-
throw new utils.DynamicError('Signed session ID is required');
|
|
154
|
-
}
|
|
155
151
|
const targetWallet = yield walletClient.getWallet({
|
|
156
152
|
accountAddress: expectedAddress,
|
|
157
|
-
authToken: (
|
|
158
|
-
|
|
153
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
154
|
+
// TODO: This is a hack - validateActiveWallet is a no-op operation that shouldn't require nonce signing
|
|
155
|
+
signedSessionId: '',
|
|
159
156
|
});
|
|
160
157
|
if (!targetWallet) {
|
|
161
158
|
throw new utils.DynamicError('Account not found');
|
|
162
159
|
}
|
|
163
|
-
const isWalletActive = walletConnectorCore.isSameAddress(targetWallet.accountAddress, ((
|
|
160
|
+
const isWalletActive = walletConnectorCore.isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
|
|
164
161
|
if (!isWalletActive) {
|
|
165
162
|
this.setActiveAccount(targetWallet.accountAddress);
|
|
166
163
|
}
|
|
@@ -62,12 +62,13 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
62
62
|
publicKeyHex: string;
|
|
63
63
|
rawPublicKey: string | Uint8Array | undefined;
|
|
64
64
|
}>;
|
|
65
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
|
|
65
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
66
66
|
privateKey: string;
|
|
67
67
|
thresholdSignatureScheme?: string | undefined;
|
|
68
68
|
publicAddressCheck?: string | undefined;
|
|
69
69
|
addressType?: string | undefined;
|
|
70
70
|
legacyWalletId?: string | undefined;
|
|
71
|
+
password?: string | undefined;
|
|
71
72
|
}): Promise<void>;
|
|
72
73
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
73
74
|
accountAddress?: string | undefined;
|
|
@@ -142,21 +142,18 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
142
142
|
}
|
|
143
143
|
validateActiveWallet(expectedAddress) {
|
|
144
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
var _a, _b
|
|
145
|
+
var _a, _b;
|
|
146
146
|
const walletClient = yield this.getWaasWalletClient();
|
|
147
|
-
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
148
|
-
if (!signedSessionId) {
|
|
149
|
-
throw new DynamicError('Signed session ID is required');
|
|
150
|
-
}
|
|
151
147
|
const targetWallet = yield walletClient.getWallet({
|
|
152
148
|
accountAddress: expectedAddress,
|
|
153
|
-
authToken: (
|
|
154
|
-
|
|
149
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
150
|
+
// TODO: This is a hack - validateActiveWallet is a no-op operation that shouldn't require nonce signing
|
|
151
|
+
signedSessionId: '',
|
|
155
152
|
});
|
|
156
153
|
if (!targetWallet) {
|
|
157
154
|
throw new DynamicError('Account not found');
|
|
158
155
|
}
|
|
159
|
-
const isWalletActive = isSameAddress(targetWallet.accountAddress, ((
|
|
156
|
+
const isWalletActive = isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
|
|
160
157
|
if (!isWalletActive) {
|
|
161
158
|
this.setActiveAccount(targetWallet.accountAddress);
|
|
162
159
|
}
|