@dynamic-labs/waas-evm 4.91.3 → 4.91.4
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 +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +6 -6
- package/src/DynamicWaasEVMConnector.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.91.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.3...v4.91.4) (2026-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* conditionally use /op/ route for AA transactions based on block explorer support ([#11628](https://github.com/dynamic-labs/dynamic-auth/issues/11628)) ([95822dc](https://github.com/dynamic-labs/dynamic-auth/commit/95822dc0edbcd739afe870f0b3881555fdb17eb6))
|
|
8
|
+
* require error codes in all SDK error classes ([#11761](https://github.com/dynamic-labs/dynamic-auth/issues/11761)) ([5744811](https://github.com/dynamic-labs/dynamic-auth/commit/5744811efdd1e415aaf51eec5b3300b323ec1347))
|
|
9
|
+
|
|
2
10
|
### [4.91.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.2...v4.91.3) (2026-06-30)
|
|
3
11
|
|
|
4
12
|
|
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.91.
|
|
3
|
+
"version": "4.91.4",
|
|
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.1046",
|
|
22
22
|
"viem": "^2.45.3",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.91.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.91.
|
|
25
|
-
"@dynamic-labs/logger": "4.91.
|
|
26
|
-
"@dynamic-labs/types": "4.91.
|
|
27
|
-
"@dynamic-labs/utils": "4.91.
|
|
28
|
-
"@dynamic-labs/waas": "4.91.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.91.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.91.4",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.91.4",
|
|
25
|
+
"@dynamic-labs/logger": "4.91.4",
|
|
26
|
+
"@dynamic-labs/types": "4.91.4",
|
|
27
|
+
"@dynamic-labs/utils": "4.91.4",
|
|
28
|
+
"@dynamic-labs/waas": "4.91.4",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.91.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -205,7 +205,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
205
205
|
signedSessionId: '',
|
|
206
206
|
});
|
|
207
207
|
if (!targetWallet) {
|
|
208
|
-
throw new utils.DynamicError('Account not found');
|
|
208
|
+
throw new utils.DynamicError('Account not found', 'account_not_found');
|
|
209
209
|
}
|
|
210
210
|
const isWalletActive = walletConnectorCore.isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
|
|
211
211
|
if (!isWalletActive) {
|
|
@@ -225,7 +225,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
225
225
|
const client = yield this.getWaasWalletClient();
|
|
226
226
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
227
227
|
if (!signedSessionId) {
|
|
228
|
-
throw new utils.DynamicError('Signed session ID is required');
|
|
228
|
+
throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
229
229
|
}
|
|
230
230
|
return {
|
|
231
231
|
address: accountAddress,
|
|
@@ -431,7 +431,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
431
431
|
const walletClient = yield this.getWaasWalletClient();
|
|
432
432
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
433
433
|
if (!signedSessionId) {
|
|
434
|
-
throw new utils.DynamicError('Signed session ID is required');
|
|
434
|
+
throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
435
435
|
}
|
|
436
436
|
const accountAddress = (_c = this.getActiveAccount()) === null || _c === void 0 ? void 0 : _c.address;
|
|
437
437
|
const mfaToken = yield ((_d = this.getMfaToken) === null || _d === void 0 ? void 0 : _d.call(this, {
|
|
@@ -564,7 +564,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
564
564
|
address: from,
|
|
565
565
|
}));
|
|
566
566
|
if (!publicClient || !walletClient) {
|
|
567
|
-
throw new utils.DynamicError('No public client available');
|
|
567
|
+
throw new utils.DynamicError('No public client available', 'no_public_client_available');
|
|
568
568
|
}
|
|
569
569
|
return new ethereumCore.ViemUiTransaction({
|
|
570
570
|
account: from,
|
|
@@ -621,7 +621,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
621
621
|
this.setActiveAccount(address);
|
|
622
622
|
return address;
|
|
623
623
|
}
|
|
624
|
-
throw new utils.DynamicError('No active wallet address found');
|
|
624
|
+
throw new utils.DynamicError('No active wallet address found', 'no_active_wallet_address_found');
|
|
625
625
|
}
|
|
626
626
|
return activeAccount.address;
|
|
627
627
|
});
|
|
@@ -644,7 +644,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
644
644
|
const walletClient = yield this.getWaasWalletClient();
|
|
645
645
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
646
646
|
if (!signedSessionId) {
|
|
647
|
-
throw new utils.DynamicError('Signed session ID is required');
|
|
647
|
+
throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
648
648
|
}
|
|
649
649
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
650
650
|
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
@@ -201,7 +201,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
201
201
|
signedSessionId: '',
|
|
202
202
|
});
|
|
203
203
|
if (!targetWallet) {
|
|
204
|
-
throw new DynamicError('Account not found');
|
|
204
|
+
throw new DynamicError('Account not found', 'account_not_found');
|
|
205
205
|
}
|
|
206
206
|
const isWalletActive = isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
|
|
207
207
|
if (!isWalletActive) {
|
|
@@ -221,7 +221,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
221
221
|
const client = yield this.getWaasWalletClient();
|
|
222
222
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
223
223
|
if (!signedSessionId) {
|
|
224
|
-
throw new DynamicError('Signed session ID is required');
|
|
224
|
+
throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
225
225
|
}
|
|
226
226
|
return {
|
|
227
227
|
address: accountAddress,
|
|
@@ -427,7 +427,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
427
427
|
const walletClient = yield this.getWaasWalletClient();
|
|
428
428
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
429
429
|
if (!signedSessionId) {
|
|
430
|
-
throw new DynamicError('Signed session ID is required');
|
|
430
|
+
throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
431
431
|
}
|
|
432
432
|
const accountAddress = (_c = this.getActiveAccount()) === null || _c === void 0 ? void 0 : _c.address;
|
|
433
433
|
const mfaToken = yield ((_d = this.getMfaToken) === null || _d === void 0 ? void 0 : _d.call(this, {
|
|
@@ -560,7 +560,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
560
560
|
address: from,
|
|
561
561
|
}));
|
|
562
562
|
if (!publicClient || !walletClient) {
|
|
563
|
-
throw new DynamicError('No public client available');
|
|
563
|
+
throw new DynamicError('No public client available', 'no_public_client_available');
|
|
564
564
|
}
|
|
565
565
|
return new ViemUiTransaction({
|
|
566
566
|
account: from,
|
|
@@ -617,7 +617,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
617
617
|
this.setActiveAccount(address);
|
|
618
618
|
return address;
|
|
619
619
|
}
|
|
620
|
-
throw new DynamicError('No active wallet address found');
|
|
620
|
+
throw new DynamicError('No active wallet address found', 'no_active_wallet_address_found');
|
|
621
621
|
}
|
|
622
622
|
return activeAccount.address;
|
|
623
623
|
});
|
|
@@ -640,7 +640,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
640
640
|
const walletClient = yield this.getWaasWalletClient();
|
|
641
641
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
642
642
|
if (!signedSessionId) {
|
|
643
|
-
throw new DynamicError('Signed session ID is required');
|
|
643
|
+
throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
644
644
|
}
|
|
645
645
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
646
646
|
mfaAction: MFAAction.WalletWaasSign,
|