@dynamic-labs/ethereum-aa-core 4.16.0 → 4.18.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 +27 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/connector/AccountAbstractionBaseConnector.cjs +0 -26
- package/src/connector/AccountAbstractionBaseConnector.d.ts +240 -340
- package/src/connector/AccountAbstractionBaseConnector.d.ts.map +1 -1
- package/src/connector/AccountAbstractionBaseConnector.js +2 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.18.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.17.0...v4.18.0) (2025-05-07)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 7702 authorization now happens on the first transaction and could use sponsored user operation if paymaster provided (IMPORTANT: viem need to be upgraded to at least 2.28.4)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* inline email submit button color when active ([#8663](https://github.com/dynamic-labs/dynamic-auth/issues/8663)) ([ea556e9](https://github.com/dynamic-labs/dynamic-auth/commit/ea556e9116e876fb2180870e74b6c8c6a13faecb))
|
|
13
|
+
|
|
14
|
+
## [4.17.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.16.0...v4.17.0) (2025-05-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add chain id option to create kernel client in react-native ([#8650](https://github.com/dynamic-labs/dynamic-auth/issues/8650)) ([1450bea](https://github.com/dynamic-labs/dynamic-auth/commit/1450bea6f979a82ed4880700aff14fa1ead9dc60))
|
|
20
|
+
* add sendCalls method to EthereumWallet ([#8634](https://github.com/dynamic-labs/dynamic-auth/issues/8634)) ([7c9aef9](https://github.com/dynamic-labs/dynamic-auth/commit/7c9aef95382b4823a40279bebfb084de32c25610))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* 7702 do not override existing old aa ([#8630](https://github.com/dynamic-labs/dynamic-auth/issues/8630)) ([a731d9e](https://github.com/dynamic-labs/dynamic-auth/commit/a731d9e77ecd9e1dec3a7704a63989b5f2741a57))
|
|
26
|
+
* improve error message when email login fails ([#8649](https://github.com/dynamic-labs/dynamic-auth/issues/8649)) ([e1c03ac](https://github.com/dynamic-labs/dynamic-auth/commit/e1c03ac6dc83386c63d63db59d31355bc4fe2959))
|
|
27
|
+
* improve react-native stability on android ([#8652](https://github.com/dynamic-labs/dynamic-auth/issues/8652)) ([1617546](https://github.com/dynamic-labs/dynamic-auth/commit/1617546e6053c2ab32f7d385336c47df185d077f))
|
|
28
|
+
|
|
2
29
|
## [4.16.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.15.0...v4.16.0) (2025-05-03)
|
|
3
30
|
|
|
4
31
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum-aa-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "Core package for Ethereum Account Abstraction utilities and types",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.660",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
23
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
24
|
-
"@dynamic-labs/types": "4.
|
|
25
|
-
"@dynamic-labs/utils": "4.
|
|
26
|
-
"@dynamic-labs/wallet-book": "4.
|
|
27
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.18.0",
|
|
23
|
+
"@dynamic-labs/ethereum-core": "4.18.0",
|
|
24
|
+
"@dynamic-labs/types": "4.18.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.18.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.18.0",
|
|
27
|
+
"@dynamic-labs/wallet-connector-core": "4.18.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"viem": "^2.21.60"
|
|
@@ -87,32 +87,6 @@ class AccountAbstractionBaseConnector extends walletConnectorCore.WalletConnecto
|
|
|
87
87
|
async getBlockExplorerUrlsForCurrentNetwork() {
|
|
88
88
|
return this.eoaConnector?.getBlockExplorerUrlsForCurrentNetwork() ?? [];
|
|
89
89
|
}
|
|
90
|
-
async isAtomicSupported(chainId) {
|
|
91
|
-
const walletClient = await this.getWalletClient();
|
|
92
|
-
if (!walletClient) {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
const capabilities = await ethereumCore.getWalletCapabilities(walletClient);
|
|
96
|
-
const chainIdToCheck = chainId ?? (await walletClient.getChainId());
|
|
97
|
-
walletConnectorCore.logger.debug('[AccountAbstractionBaseConnector] isAtomicSupported', {
|
|
98
|
-
capabilities,
|
|
99
|
-
chainId: chainIdToCheck,
|
|
100
|
-
});
|
|
101
|
-
return ethereumCore.hasAtomicStatusCapability(capabilities, chainIdToCheck);
|
|
102
|
-
}
|
|
103
|
-
async isPaymasterServiceSupported(chainId) {
|
|
104
|
-
const walletClient = await this.getWalletClient();
|
|
105
|
-
if (!walletClient) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
const capabilities = await ethereumCore.getWalletCapabilities(walletClient);
|
|
109
|
-
const chainIdToCheck = chainId ?? (await walletClient.getChainId());
|
|
110
|
-
walletConnectorCore.logger.debug('[AccountAbstractionBaseConnector] isPaymasterServiceSupported', {
|
|
111
|
-
capabilities,
|
|
112
|
-
chainId: chainIdToCheck,
|
|
113
|
-
});
|
|
114
|
-
return ethereumCore.hasPaymasterServiceCapability(capabilities, chainIdToCheck);
|
|
115
|
-
}
|
|
116
90
|
}
|
|
117
91
|
|
|
118
92
|
exports.AccountAbstractionBaseConnector = AccountAbstractionBaseConnector;
|