@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 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
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.15.0";
6
+ var version = "4.16.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.15.0";
2
+ var version = "4.16.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa-core",
3
- "version": "4.15.0",
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.15.0",
23
- "@dynamic-labs/ethereum-core": "4.15.0",
24
- "@dynamic-labs/types": "4.15.0",
25
- "@dynamic-labs/utils": "4.15.0",
26
- "@dynamic-labs/wallet-book": "4.15.0",
27
- "@dynamic-labs/wallet-connector-core": "4.15.0"
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;