@dynamic-labs/ethereum-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 +8 -8
- package/src/connector/EthereumWalletConnector.cjs +3 -3
- package/src/connector/EthereumWalletConnector.d.ts +219 -135
- package/src/connector/EthereumWalletConnector.js +3 -3
- package/src/index.cjs +0 -2
- package/src/index.js +0 -1
- package/src/utils/viem/createAccountWithUiConfirmation/createAccountWithUiConfirmation.cjs +7 -0
- package/src/utils/viem/createAccountWithUiConfirmation/createAccountWithUiConfirmation.d.ts +74 -74
- package/src/utils/viem/createAccountWithUiConfirmation/createAccountWithUiConfirmation.js +7 -0
- package/src/utils/viem/hasAtomicStatusCapability/hasAtomicStatusCapability.cjs +12 -1
- package/src/utils/viem/hasAtomicStatusCapability/hasAtomicStatusCapability.js +12 -1
- package/src/utils/viem/index.d.ts +0 -1
- package/src/wallet/EthereumWallet.cjs +66 -6
- package/src/wallet/EthereumWallet.d.ts +6 -2
- package/src/wallet/EthereumWallet.js +66 -6
- package/src/utils/viem/getWalletCapabilities/getWalletCapabilities.cjs +0 -11
- package/src/utils/viem/getWalletCapabilities/getWalletCapabilities.d.ts +0 -4
- package/src/utils/viem/getWalletCapabilities/getWalletCapabilities.js +0 -7
- package/src/utils/viem/getWalletCapabilities/index.d.ts +0 -1
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-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
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/logger": "4.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.18.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.18.0",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.18.0",
|
|
25
|
+
"@dynamic-labs/types": "4.18.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.18.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.18.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.18.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.21.60"
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var viem = require('viem');
|
|
8
8
|
var accounts = require('viem/accounts');
|
|
9
|
+
var experimental = require('viem/experimental');
|
|
9
10
|
var utils = require('@dynamic-labs/utils');
|
|
10
11
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
11
12
|
require('../utils/logger.cjs');
|
|
@@ -13,7 +14,6 @@ require('../utils/viem/estimateL1Fee/opStack/estimateL1Fee.cjs');
|
|
|
13
14
|
var chainsMap = require('../utils/viem/chainsMap/chainsMap.cjs');
|
|
14
15
|
var createViemUiTransaction = require('../utils/viem/createViemUiTransaction/createViemUiTransaction.cjs');
|
|
15
16
|
var getOrMapViemChain = require('../utils/viem/getOrMapViemChain/getOrMapViemChain.cjs');
|
|
16
|
-
var getWalletCapabilities = require('../utils/viem/getWalletCapabilities/getWalletCapabilities.cjs');
|
|
17
17
|
var hasAtomicStatusCapability = require('../utils/viem/hasAtomicStatusCapability/hasAtomicStatusCapability.cjs');
|
|
18
18
|
var hasPaymasterServiceCapability = require('../utils/viem/hasPaymasterServiceCapability/hasPaymasterServiceCapability.cjs');
|
|
19
19
|
var findEvmNetwork = require('../utils/findEvmNetwork/findEvmNetwork.cjs');
|
|
@@ -316,7 +316,7 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
316
316
|
if (!walletClient) {
|
|
317
317
|
return false;
|
|
318
318
|
}
|
|
319
|
-
const capabilities = yield
|
|
319
|
+
const capabilities = yield experimental.getCapabilities(walletClient);
|
|
320
320
|
const chainIdToCheck = chainId !== null && chainId !== void 0 ? chainId : (yield walletClient.getChainId());
|
|
321
321
|
walletConnectorCore.logger.debug('[EthereumWalletConnector] isAtomicSupported', {
|
|
322
322
|
capabilities,
|
|
@@ -331,7 +331,7 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
331
331
|
if (!walletClient) {
|
|
332
332
|
return false;
|
|
333
333
|
}
|
|
334
|
-
const capabilities = yield
|
|
334
|
+
const capabilities = yield experimental.getCapabilities(walletClient);
|
|
335
335
|
const chainIdToCheck = chainId !== null && chainId !== void 0 ? chainId : (yield walletClient.getChainId());
|
|
336
336
|
walletConnectorCore.logger.debug('[EthereumWalletConnector] isPaymasterServiceSupported', {
|
|
337
337
|
capabilities,
|