@dynamic-labs/ethereum-aa-core 4.15.0 → 4.16.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 +9 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/connector/AccountAbstractionBaseConnector.cjs +26 -0
- package/src/connector/AccountAbstractionBaseConnector.d.ts +7846 -1
- package/src/connector/AccountAbstractionBaseConnector.d.ts.map +1 -1
- package/src/connector/AccountAbstractionBaseConnector.js +28 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.16.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.15.0...v4.16.0) (2025-05-03)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* (GVTY-3020) add send balance to waas sui connector ([#8638](https://github.com/dynamic-labs/dynamic-auth/issues/8638)) ([97f0af0](https://github.com/dynamic-labs/dynamic-auth/commit/97f0af0504a0079ebf0958fde1f8edc34c035927))
|
|
8
|
+
* add isAtomicSupported and isPaymasterServiceSupported methods to EthereumWallet ([#8627](https://github.com/dynamic-labs/dynamic-auth/issues/8627)) ([df82b9e](https://github.com/dynamic-labs/dynamic-auth/commit/df82b9e86eafea9dd6c505227722450bc56d7c57))
|
|
9
|
+
* add solana mpc to global wallets ([#8605](https://github.com/dynamic-labs/dynamic-auth/issues/8605)) ([6261bf9](https://github.com/dynamic-labs/dynamic-auth/commit/6261bf9bec45b1d1afa13869cf5d10cda215783e))
|
|
10
|
+
|
|
2
11
|
## [4.15.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.14.0...v4.15.0) (2025-04-30)
|
|
3
12
|
|
|
4
13
|
|
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.16.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.16.0",
|
|
23
|
+
"@dynamic-labs/ethereum-core": "4.16.0",
|
|
24
|
+
"@dynamic-labs/types": "4.16.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.16.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.16.0",
|
|
27
|
+
"@dynamic-labs/wallet-connector-core": "4.16.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"viem": "^2.21.60"
|
|
@@ -87,6 +87,32 @@ 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
|
+
}
|
|
90
116
|
}
|
|
91
117
|
|
|
92
118
|
exports.AccountAbstractionBaseConnector = AccountAbstractionBaseConnector;
|