@dynamic-labs/ethereum-aa-core 4.15.0 → 4.17.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 +24 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/connector/AccountAbstractionBaseConnector.cjs +27 -0
- package/src/connector/AccountAbstractionBaseConnector.d.ts +7664 -1
- package/src/connector/AccountAbstractionBaseConnector.d.ts.map +1 -1
- package/src/connector/AccountAbstractionBaseConnector.js +29 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.17.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.16.0...v4.17.0) (2025-05-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 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))
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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))
|
|
14
|
+
* 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))
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
17
|
+
## [4.16.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.15.0...v4.16.0) (2025-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* (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))
|
|
23
|
+
* 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))
|
|
24
|
+
* 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))
|
|
25
|
+
|
|
2
26
|
## [4.15.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.14.0...v4.15.0) (2025-04-30)
|
|
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/ethereum-aa-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.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.17.0",
|
|
23
|
+
"@dynamic-labs/ethereum-core": "4.17.0",
|
|
24
|
+
"@dynamic-labs/types": "4.17.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.17.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.17.0",
|
|
27
|
+
"@dynamic-labs/wallet-connector-core": "4.17.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"viem": "^2.21.60"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var viem = require('viem');
|
|
7
|
+
var experimental = require('viem/experimental');
|
|
7
8
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
8
9
|
var utils = require('@dynamic-labs/utils');
|
|
9
10
|
var ethereumCore = require('@dynamic-labs/ethereum-core');
|
|
@@ -87,6 +88,32 @@ class AccountAbstractionBaseConnector extends walletConnectorCore.WalletConnecto
|
|
|
87
88
|
async getBlockExplorerUrlsForCurrentNetwork() {
|
|
88
89
|
return this.eoaConnector?.getBlockExplorerUrlsForCurrentNetwork() ?? [];
|
|
89
90
|
}
|
|
91
|
+
async isAtomicSupported(chainId) {
|
|
92
|
+
const walletClient = await this.getWalletClient();
|
|
93
|
+
if (!walletClient) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
const capabilities = await experimental.getCapabilities(walletClient);
|
|
97
|
+
const chainIdToCheck = chainId ?? (await walletClient.getChainId());
|
|
98
|
+
walletConnectorCore.logger.debug('[AccountAbstractionBaseConnector] isAtomicSupported', {
|
|
99
|
+
capabilities,
|
|
100
|
+
chainId: chainIdToCheck,
|
|
101
|
+
});
|
|
102
|
+
return ethereumCore.hasAtomicStatusCapability(capabilities, chainIdToCheck);
|
|
103
|
+
}
|
|
104
|
+
async isPaymasterServiceSupported(chainId) {
|
|
105
|
+
const walletClient = await this.getWalletClient();
|
|
106
|
+
if (!walletClient) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
const capabilities = await experimental.getCapabilities(walletClient);
|
|
110
|
+
const chainIdToCheck = chainId ?? (await walletClient.getChainId());
|
|
111
|
+
walletConnectorCore.logger.debug('[AccountAbstractionBaseConnector] isPaymasterServiceSupported', {
|
|
112
|
+
capabilities,
|
|
113
|
+
chainId: chainIdToCheck,
|
|
114
|
+
});
|
|
115
|
+
return ethereumCore.hasPaymasterServiceCapability(capabilities, chainIdToCheck);
|
|
116
|
+
}
|
|
90
117
|
}
|
|
91
118
|
|
|
92
119
|
exports.AccountAbstractionBaseConnector = AccountAbstractionBaseConnector;
|