@dynamic-labs/ethereum-aa 3.0.0-alpha.47 → 3.0.0-alpha.49

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,30 @@
1
1
 
2
+ ## [3.0.0-alpha.49](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.48...v3.0.0-alpha.49) (2024-08-22)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename viem-utils package to ethereum-core (#6677)
8
+ * remove ethers-v5 package (#6661)
9
+
10
+ ### Bug Fixes
11
+
12
+ * force ui on global transactions and fix zerodev global ([#6673](https://github.com/dynamic-labs/DynamicAuth/issues/6673)) ([7317e44](https://github.com/dynamic-labs/DynamicAuth/commit/7317e449044fe4f87d67714afd36bec596d0cece))
13
+ * remove sync call in getWalletClient getSigner methods ([#6678](https://github.com/dynamic-labs/DynamicAuth/issues/6678)) ([a231337](https://github.com/dynamic-labs/DynamicAuth/commit/a231337f81be54d92715044b7dc8bb35c57087bb))
14
+
15
+
16
+ * remove ethers-v5 package ([#6661](https://github.com/dynamic-labs/DynamicAuth/issues/6661)) ([61cc31b](https://github.com/dynamic-labs/DynamicAuth/commit/61cc31ba4b8346b86a154aabf8842fd38396d632))
17
+ * rename viem-utils package to ethereum-core ([#6677](https://github.com/dynamic-labs/DynamicAuth/issues/6677)) ([ba7fd43](https://github.com/dynamic-labs/DynamicAuth/commit/ba7fd432e332b9f20a4f7aa9403f94722331cde6))
18
+
19
+ ## [3.0.0-alpha.48](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.47...v3.0.0-alpha.48) (2024-08-21)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * collect user data to work when no wallet is selected ([#6670](https://github.com/dynamic-labs/DynamicAuth/issues/6670)) ([b86aae8](https://github.com/dynamic-labs/DynamicAuth/commit/b86aae8e7ceb35793f792941a34cabd19b9e65d4))
25
+ * disable cookie when running on native mobile ([#6668](https://github.com/dynamic-labs/DynamicAuth/issues/6668)) ([e52a3d9](https://github.com/dynamic-labs/DynamicAuth/commit/e52a3d94a9028e36525be2e80a9f0916efad4320))
26
+ * prevent external auth blocking pending user requirements views ([#6669](https://github.com/dynamic-labs/DynamicAuth/issues/6669)) ([848356c](https://github.com/dynamic-labs/DynamicAuth/commit/848356c57e730a8516c642da84274a236e026f40))
27
+
2
28
  ## [3.0.0-alpha.47](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.46...v3.0.0-alpha.47) (2024-08-21)
3
29
 
4
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa",
3
- "version": "3.0.0-alpha.47",
3
+ "version": "3.0.0-alpha.49",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -31,13 +31,13 @@
31
31
  "@zerodev/multi-chain-validator": "5.3.3",
32
32
  "@zerodev/sdk": "5.3.4",
33
33
  "permissionless": "^0.1.20",
34
- "@dynamic-labs/ethereum": "3.0.0-alpha.47",
35
- "@dynamic-labs/logger": "3.0.0-alpha.47",
36
- "@dynamic-labs/types": "3.0.0-alpha.47",
37
- "@dynamic-labs/utils": "3.0.0-alpha.47",
38
- "@dynamic-labs/viem-utils": "3.0.0-alpha.47",
39
- "@dynamic-labs/wallet-book": "3.0.0-alpha.47",
40
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.47"
34
+ "@dynamic-labs/ethereum": "3.0.0-alpha.49",
35
+ "@dynamic-labs/ethereum-core": "3.0.0-alpha.49",
36
+ "@dynamic-labs/logger": "3.0.0-alpha.49",
37
+ "@dynamic-labs/types": "3.0.0-alpha.49",
38
+ "@dynamic-labs/utils": "3.0.0-alpha.49",
39
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.49",
40
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.49"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "viem": "^2.7.6"
@@ -11,7 +11,7 @@ var constants = require('@zerodev/sdk/constants');
11
11
  var ecdsaValidator = require('@zerodev/ecdsa-validator');
12
12
  var sdkApiCore = require('@dynamic-labs/sdk-api-core');
13
13
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
14
- var viemUtils = require('@dynamic-labs/viem-utils');
14
+ var ethereumCore = require('@dynamic-labs/ethereum-core');
15
15
  var utils = require('@dynamic-labs/utils');
16
16
  var ethereum = require('@dynamic-labs/ethereum');
17
17
  var fetchChain = require('./utils/fetchChain.cjs');
@@ -207,7 +207,7 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
207
207
  });
208
208
  }
209
209
  getTransport(provider) {
210
- const transport = viemUtils.confirmationTransport({
210
+ const transport = ethereumCore.confirmationTransport({
211
211
  getAccounts: () => _tslib.__awaiter(this, void 0, void 0, function* () { return [provider.account.address]; }),
212
212
  onPersonalSign: (_a) => _tslib.__awaiter(this, [_a], void 0, function* ({ message }) {
213
213
  this._walletUiUtils.disabledConfirmationOnce();
@@ -222,7 +222,7 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
222
222
  const effectiveProvider = this.isGasSponsorshipDisabled
223
223
  ? provider
224
224
  : yield this.getKernelClientWithSponsorshipValidation();
225
- const response = yield effectiveProvider.sendTransaction(viemUtils.unFormatTransaction(transaction));
225
+ const response = yield effectiveProvider.sendTransaction(ethereumCore.unFormatTransaction(transaction));
226
226
  return response;
227
227
  }
228
228
  catch (err) {
@@ -263,7 +263,7 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
263
263
  const address = (_a = provider.account) === null || _a === void 0 ? void 0 : _a.address;
264
264
  const walletClient = viem.createWalletClient({
265
265
  account: address,
266
- chain: chainId ? viemUtils.chainsMap[chainId] : provider.chain,
266
+ chain: chainId ? ethereumCore.chainsMap[chainId] : provider.chain,
267
267
  transport,
268
268
  });
269
269
  return walletClient;
@@ -344,7 +344,7 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
344
344
  if (!publicClient || !walletClient) {
345
345
  throw new utils.DynamicError('No public client available');
346
346
  }
347
- return viemUtils.createViemUiTransaction({ from, publicClient, walletClient });
347
+ return ethereumCore.createViemUiTransaction({ from, publicClient, walletClient });
348
348
  });
349
349
  }
350
350
  }
@@ -7,7 +7,7 @@ import { KERNEL_V3_1, KERNEL_V3_0, KERNEL_V2_4 } from '@zerodev/sdk/constants';
7
7
  import { signerToEcdsaValidator } from '@zerodev/ecdsa-validator';
8
8
  import { ProviderEntryPointVersionEnum, ProviderKernelVersionEnum } from '@dynamic-labs/sdk-api-core';
9
9
  import { WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
10
- import { confirmationTransport, chainsMap, unFormatTransaction, createViemUiTransaction } from '@dynamic-labs/viem-utils';
10
+ import { confirmationTransport, chainsMap, unFormatTransaction, createViemUiTransaction } from '@dynamic-labs/ethereum-core';
11
11
  import { parseEvmNetworks, DynamicError, DeferredPromise, wrapMethodWithCallback, TransactionGasCannotBeSponsoredError, InsufficientFundsError } from '@dynamic-labs/utils';
12
12
  import { isEthWalletConnector } from '@dynamic-labs/ethereum';
13
13
  import { cachedChainIdKey, fetchChain } from './utils/fetchChain.js';
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
- var viemUtils = require('@dynamic-labs/viem-utils');
7
+ var ethereumCore = require('@dynamic-labs/ethereum-core');
8
8
  var logger = require('./logger.cjs');
9
9
 
10
10
  const cachedChainIdKey = 'dynamic_zd_chain_id';
@@ -12,11 +12,11 @@ const fetchChain = (projectId) => _tslib.__awaiter(void 0, void 0, void 0, funct
12
12
  try {
13
13
  const cachedChainId = localStorage.getItem(cachedChainIdKey);
14
14
  if (cachedChainId) {
15
- return viemUtils.chainsMap[cachedChainId];
15
+ return ethereumCore.chainsMap[cachedChainId];
16
16
  }
17
17
  const response = yield (yield fetch(`https://prod-api.zerodev.app/projects/${projectId}`)).json();
18
18
  localStorage.setItem(cachedChainIdKey, response.chainId);
19
- return viemUtils.chainsMap[response.chainId];
19
+ return ethereumCore.chainsMap[response.chainId];
20
20
  }
21
21
  catch (err) {
22
22
  logger.logger.error('Failed to fetch ZeroDev project settings from ZeroDev API ' +
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
- import { chainsMap } from '@dynamic-labs/viem-utils';
3
+ import { chainsMap } from '@dynamic-labs/ethereum-core';
4
4
  import { logger } from './logger.js';
5
5
 
6
6
  const cachedChainIdKey = 'dynamic_zd_chain_id';