@dynamic-labs/ethereum-aa 2.1.0-alpha.0 → 2.1.0-alpha.10

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,104 @@
1
1
 
2
+ ## [2.1.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.9...v2.1.0-alpha.10) (2024-04-30)
3
+
4
+
5
+ ### Features
6
+
7
+ * bump @coinbase/wallet-sdk to latest beta ([#5388](https://github.com/dynamic-labs/DynamicAuth/issues/5388)) ([9225546](https://github.com/dynamic-labs/DynamicAuth/commit/922554630ccf2ef98bc297521309918f922bc671))
8
+
9
+ ## [2.1.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.8...v2.1.0-alpha.9) (2024-04-30)
10
+
11
+
12
+ ### Features
13
+
14
+ * headless create embedded wallet with optional passkey data parameter ([#5487](https://github.com/dynamic-labs/DynamicAuth/issues/5487)) ([891c3d7](https://github.com/dynamic-labs/DynamicAuth/commit/891c3d77a02a019140bcb8dd03b62b1afd69710e))
15
+
16
+ ## [2.1.0-alpha.8](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.7...v2.1.0-alpha.8) (2024-04-26)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * display wallet tabs when linking a wallet ([#5491](https://github.com/dynamic-labs/DynamicAuth/issues/5491)) ([10fd6b4](https://github.com/dynamic-labs/DynamicAuth/commit/10fd6b4d9aec7596338c50e17f79f6be534cf2c1))
22
+ * ensure zerodev viem client handles eth_accounts call ([#5477](https://github.com/dynamic-labs/DynamicAuth/issues/5477)) ([1132e1e](https://github.com/dynamic-labs/DynamicAuth/commit/1132e1e8655b58e81cb56789453ba56a059f52ec))
23
+ * network with keplr ([#5485](https://github.com/dynamic-labs/DynamicAuth/issues/5485)) ([b86f2fc](https://github.com/dynamic-labs/DynamicAuth/commit/b86f2fce491f9752e80a86643916da9ac7fb9276))
24
+ * refetch nameservice data and display properly ([#5476](https://github.com/dynamic-labs/DynamicAuth/issues/5476)) ([2aee798](https://github.com/dynamic-labs/DynamicAuth/commit/2aee798846f69496201bec7aa52e7ec1f370b7c3))
25
+ * use embeddedWallet create response authToken in embeddedWalletCreated ([#5478](https://github.com/dynamic-labs/DynamicAuth/issues/5478)) ([51772da](https://github.com/dynamic-labs/DynamicAuth/commit/51772daf557a72984c757efd8301e2b510dc37f1))
26
+
27
+ ## [2.1.0-alpha.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.6...v2.1.0-alpha.7) (2024-04-25)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * restore embedded wallet session iframe element conflict ([#5474](https://github.com/dynamic-labs/DynamicAuth/issues/5474)) ([c157477](https://github.com/dynamic-labs/DynamicAuth/commit/c157477ea126b3130b13b711796bdd06215e7af1))
33
+
34
+ ## [2.1.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.5...v2.1.0-alpha.6) (2024-04-24)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * embedded wallets headless session control fixes ([#5469](https://github.com/dynamic-labs/DynamicAuth/issues/5469)) ([92e6c35](https://github.com/dynamic-labs/DynamicAuth/commit/92e6c359d2710fd4f5f5a6fedc4acf6c4bab78ba))
40
+
41
+ ## [2.1.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.4...v2.1.0-alpha.5) (2024-04-23)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * get embedded wallet checking the wrong chain enum ([#5458](https://github.com/dynamic-labs/DynamicAuth/issues/5458)) ([ed1c523](https://github.com/dynamic-labs/DynamicAuth/commit/ed1c523ca14cd4d21c00181ab40802f876c02b80))
47
+
48
+ ## [2.1.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.3...v2.1.0-alpha.4) (2024-04-23)
49
+
50
+
51
+ ### Features
52
+
53
+ * add email and sms to client auth module ([#5436](https://github.com/dynamic-labs/DynamicAuth/issues/5436)) ([5420476](https://github.com/dynamic-labs/DynamicAuth/commit/5420476d1ba38fd4f987f28e9aefbfb3e61ea2bf))
54
+ * headless create passkeys for embedded wallets ([#5395](https://github.com/dynamic-labs/DynamicAuth/issues/5395)) ([0b64099](https://github.com/dynamic-labs/DynamicAuth/commit/0b6409968457f65886248f0a0879e39ec3803fd0))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * prevent wagmi from reconnect when DynamicContextProvider rerender ([#5446](https://github.com/dynamic-labs/DynamicAuth/issues/5446)) ([33337af](https://github.com/dynamic-labs/DynamicAuth/commit/33337af76786963cb3db7fa7c58c1292c529d0ac))
60
+
61
+ ## [2.1.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.2...v2.1.0-alpha.3) (2024-04-23)
62
+
63
+
64
+ ### Features
65
+
66
+ * add merge user accounts flow ([#5429](https://github.com/dynamic-labs/DynamicAuth/issues/5429)) ([41d4239](https://github.com/dynamic-labs/DynamicAuth/commit/41d423906625e28004ba8f20baf57847ed8bf5d0))
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * disconnect wallet on lock in connect-only ([#5422](https://github.com/dynamic-labs/DynamicAuth/issues/5422)) ([a26f9fe](https://github.com/dynamic-labs/DynamicAuth/commit/a26f9fe93cf8568f1482e10b831de98c77fb2a2d))
72
+ * useReactiveProxy to stop proxing when it finds a reactive value ([#5428](https://github.com/dynamic-labs/DynamicAuth/issues/5428)) ([838dce9](https://github.com/dynamic-labs/DynamicAuth/commit/838dce9ee953361e41772239a91adb1dd8d40234))
73
+
74
+ ## [2.1.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.1...v2.1.0-alpha.2) (2024-04-19)
75
+
76
+
77
+ ### Bug Fixes
78
+
79
+ * buffer polyfill for utils package ([#5404](https://github.com/dynamic-labs/DynamicAuth/issues/5404)) ([bd40441](https://github.com/dynamic-labs/DynamicAuth/commit/bd404414a2e51d79fad86d7603dae89628c225b9))
80
+
81
+ ## [2.1.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.0...v2.1.0-alpha.1) (2024-04-18)
82
+
83
+
84
+ ### Features
85
+
86
+ * add frame metadata to demo index page ([#5327](https://github.com/dynamic-labs/DynamicAuth/issues/5327)) ([34a071a](https://github.com/dynamic-labs/DynamicAuth/commit/34a071af8faa8a867ad747ec2a607056a883568d))
87
+ * add MfaChooseDeviceView and MfaSecureDeviceView ([#5343](https://github.com/dynamic-labs/DynamicAuth/issues/5343)) ([4c39b1c](https://github.com/dynamic-labs/DynamicAuth/commit/4c39b1c34b5091190b095770e95a733c8f458ca2)), closes [#5356](https://github.com/dynamic-labs/DynamicAuth/issues/5356)
88
+ * add redirectUri to farcaster connect ([#5373](https://github.com/dynamic-labs/DynamicAuth/issues/5373)) ([ed13fc2](https://github.com/dynamic-labs/DynamicAuth/commit/ed13fc2948e06df0017ac122db54aca44f264a6d))
89
+ * add useMfa hook ([#5337](https://github.com/dynamic-labs/DynamicAuth/issues/5337)) ([a7682ba](https://github.com/dynamic-labs/DynamicAuth/commit/a7682ba10fd0f0809af802e0172154726f1bd857))
90
+ * headless create session and is session active ([#5346](https://github.com/dynamic-labs/DynamicAuth/issues/5346)) ([a787bbc](https://github.com/dynamic-labs/DynamicAuth/commit/a787bbcbb44104d2d0bd263579bd87a78453681d))
91
+ * secure enclave wallet generate one-time code headless ([#5329](https://github.com/dynamic-labs/DynamicAuth/issues/5329)) ([cab80a2](https://github.com/dynamic-labs/DynamicAuth/commit/cab80a2bfa77e48263d47cdcb813c54ef5b831d5))
92
+
93
+
94
+ ### Bug Fixes
95
+
96
+ * always stringify the message before signing a message using walletUiUtils ([#5325](https://github.com/dynamic-labs/DynamicAuth/issues/5325)) ([7abf094](https://github.com/dynamic-labs/DynamicAuth/commit/7abf09456e30ad0657892e9ba58d7391f0f430e6))
97
+ * bitcoin network connector sendBitcoin methods updates ([#5369](https://github.com/dynamic-labs/DynamicAuth/issues/5369)) ([e9bf444](https://github.com/dynamic-labs/DynamicAuth/commit/e9bf444122ee86030d85b84ede96bdfb9772425e))
98
+ * buffer missing when using buffer util function ([#5360](https://github.com/dynamic-labs/DynamicAuth/issues/5360)) ([e998e46](https://github.com/dynamic-labs/DynamicAuth/commit/e998e464bd2671a82aa271b407a7d8fc49a16bd0))
99
+ * embedded solana send transaction shouldn't sign a signed transaction ([#5357](https://github.com/dynamic-labs/DynamicAuth/issues/5357)) ([c2ae2fa](https://github.com/dynamic-labs/DynamicAuth/commit/c2ae2faa509b62fc5ceb345fbc0f0b47217bf4b0))
100
+ * use network.name if vanity name is missing ([#5338](https://github.com/dynamic-labs/DynamicAuth/issues/5338)) ([34ec2ae](https://github.com/dynamic-labs/DynamicAuth/commit/34ec2ae5c4dad5376a3b9c5a07221f68a2f7756c))
101
+
2
102
  ## [2.1.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.32...v2.1.0-alpha.0) (2024-04-15)
3
103
 
4
104
  ## [2.0.0-alpha.32](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2024-04-15)
@@ -1,3 +1,4 @@
1
+ 'use client'
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,3 +1,4 @@
1
+ 'use client'
1
2
  /******************************************************************************
2
3
  Copyright (c) Microsoft Corporation.
3
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa",
3
- "version": "2.1.0-alpha.0",
3
+ "version": "2.1.0-alpha.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,19 +26,19 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.418",
30
- "@dynamic-labs/ethereum": "2.1.0-alpha.0",
31
- "@dynamic-labs/logger": "2.1.0-alpha.0",
32
- "@dynamic-labs/types": "2.1.0-alpha.0",
33
- "@dynamic-labs/utils": "2.1.0-alpha.0",
34
- "@dynamic-labs/viem-utils": "2.1.0-alpha.0",
35
- "@dynamic-labs/wallet-book": "2.1.0-alpha.0",
36
- "@dynamic-labs/wallet-connector-core": "2.1.0-alpha.0"
29
+ "@dynamic-labs/sdk-api-core": "0.0.432",
30
+ "@zerodev/ecdsa-validator": "5.2.3",
31
+ "@zerodev/sdk": "5.2.8",
32
+ "permissionless": "0.1.20",
33
+ "@dynamic-labs/ethereum": "2.1.0-alpha.10",
34
+ "@dynamic-labs/logger": "2.1.0-alpha.10",
35
+ "@dynamic-labs/types": "2.1.0-alpha.10",
36
+ "@dynamic-labs/utils": "2.1.0-alpha.10",
37
+ "@dynamic-labs/viem-utils": "2.1.0-alpha.10",
38
+ "@dynamic-labs/wallet-book": "2.1.0-alpha.10",
39
+ "@dynamic-labs/wallet-connector-core": "2.1.0-alpha.10"
37
40
  },
38
41
  "peerDependencies": {
39
- "@zerodev/presets": "^5.1.4",
40
- "@zerodev/sdk": "^5.2.0",
41
- "permissionless": "^0.0.34",
42
42
  "viem": "^2.7.6"
43
43
  }
44
44
  }
@@ -1,21 +1,23 @@
1
+ 'use client'
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
4
5
 
5
6
  var _tslib = require('../_virtual/_tslib.cjs');
6
- var presets = require('@zerodev/presets');
7
7
  var viem = require('viem');
8
- var permissionless = require('permissionless');
8
+ var utils$1 = require('permissionless/utils');
9
+ var sdkApiCore = require('@dynamic-labs/sdk-api-core');
9
10
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
10
11
  var viemUtils = require('@dynamic-labs/viem-utils');
11
12
  var utils = require('@dynamic-labs/utils');
12
13
  var ethereum = require('@dynamic-labs/ethereum');
13
14
  var fetchChain = require('./utils/fetchChain.cjs');
14
15
  var logger = require('./utils/logger.cjs');
16
+ var createEcsdaKernelAccountClient = require('./utils/createEcsdaKernelAccountClient.cjs');
15
17
 
16
18
  class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
17
19
  constructor(opts) {
18
- var _a;
20
+ var _a, _b;
19
21
  super(opts);
20
22
  this.connectedChain = 'EVM';
21
23
  this.supportedChains = ['ETH', 'EVM'];
@@ -37,6 +39,11 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
37
39
  this.projectId = zeroDevProjectId;
38
40
  this._walletUiUtils = opts.walletUiUtils;
39
41
  this.evmNetworks = utils.parseEvmNetworks(opts.evmNetworks);
42
+ this.entryPoint =
43
+ ((_b = opts.apiProviders.zerodev) === null || _b === void 0 ? void 0 : _b.entryPointVersion) ===
44
+ sdkApiCore.ProviderEntryPointVersionEnum.V6
45
+ ? utils$1.ENTRYPOINT_ADDRESS_V06
46
+ : utils$1.ENTRYPOINT_ADDRESS_V07;
40
47
  }
41
48
  getEOAConnector() {
42
49
  return this.eoaConnector;
@@ -66,12 +73,13 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
66
73
  logger.logger.error('No signer account found');
67
74
  return;
68
75
  }
69
- const kernelClient = yield presets.createEcdsaKernelAccountClient({
76
+ const kernelClient = yield createEcsdaKernelAccountClient.createEcdsaKernelAccountClient({
70
77
  chain: yield fetchChain.fetchChain(this.projectId),
78
+ entryPointAddress: this.entryPoint,
71
79
  paymaster: 'NONE',
72
80
  projectId: this.projectId,
73
81
  provider: ZeroDevConnector.bundlerProvider,
74
- signer: permissionless.walletClientToSmartAccountSigner(signer),
82
+ signer: utils$1.walletClientToSmartAccountSigner(signer),
75
83
  });
76
84
  utils.wrapMethodWithCallback(kernelClient, 'sendUserOperation', (original, ...args) => {
77
85
  this._walletUiUtils.disabledConfirmationOnce();
@@ -83,8 +91,8 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
83
91
  });
84
92
  }
85
93
  checkIsProjectChainEnabled() {
86
- var _a, _b;
87
94
  return _tslib.__awaiter(this, void 0, void 0, function* () {
95
+ var _a, _b;
88
96
  const client = yield this.getPublicClient();
89
97
  const chainName = (_a = client === null || client === void 0 ? void 0 : client.chain) === null || _a === void 0 ? void 0 : _a.name;
90
98
  const chainId = (_b = client === null || client === void 0 ? void 0 : client.chain) === null || _b === void 0 ? void 0 : _b.id;
@@ -103,12 +111,13 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
103
111
  if (!eoaConnector)
104
112
  throw new utils.DynamicError('No EOA connector');
105
113
  const signer = yield eoaConnector.getSigner();
106
- this.kernelClientWithSponsorship = yield presets.createEcdsaKernelAccountClient({
114
+ this.kernelClientWithSponsorship = yield createEcsdaKernelAccountClient.createEcdsaKernelAccountClient({
107
115
  chain: yield fetchChain.fetchChain(this.projectId),
116
+ entryPointAddress: this.entryPoint,
108
117
  paymaster: 'SPONSOR',
109
118
  projectId: this.projectId,
110
119
  provider: ZeroDevConnector.bundlerProvider,
111
- signer: permissionless.walletClientToSmartAccountSigner(signer),
120
+ signer: utils$1.walletClientToSmartAccountSigner(signer),
112
121
  });
113
122
  utils.wrapMethodWithCallback(this.kernelClientWithSponsorship, 'sendUserOperation', (original, ...args) => {
114
123
  this._walletUiUtils.disabledConfirmationOnce();
@@ -118,15 +127,15 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
118
127
  });
119
128
  }
120
129
  getAddress() {
121
- var _a, _b, _c;
122
130
  return _tslib.__awaiter(this, void 0, void 0, function* () {
131
+ var _a, _b, _c;
123
132
  yield ((_a = this.kernelClientDeferredPromise) === null || _a === void 0 ? void 0 : _a.promise);
124
133
  return (_c = (_b = this.kernelClient) === null || _b === void 0 ? void 0 : _b.account) === null || _c === void 0 ? void 0 : _c.address;
125
134
  });
126
135
  }
127
136
  getConnectedAccounts() {
128
- var _a, _b, _c;
129
137
  return _tslib.__awaiter(this, void 0, void 0, function* () {
138
+ var _a, _b, _c;
130
139
  yield ((_a = this.kernelClientDeferredPromise) === null || _a === void 0 ? void 0 : _a.promise);
131
140
  return ((_c = (_b = this.kernelClient) === null || _b === void 0 ? void 0 : _b.account) === null || _c === void 0 ? void 0 : _c.address)
132
141
  ? [yield this.kernelClient.account.address]
@@ -134,22 +143,23 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
134
143
  });
135
144
  }
136
145
  getNetwork() {
137
- var _a, _b, _c;
138
146
  return _tslib.__awaiter(this, void 0, void 0, function* () {
147
+ var _a, _b, _c;
139
148
  yield ((_a = this.kernelClientDeferredPromise) === null || _a === void 0 ? void 0 : _a.promise);
140
149
  return (_c = (_b = this.kernelClient) === null || _b === void 0 ? void 0 : _b.chain) === null || _c === void 0 ? void 0 : _c.id;
141
150
  });
142
151
  }
143
152
  getTransport(provider) {
144
153
  const transport = viemUtils.confirmationTransport({
145
- onPersonalSign: ({ message }) => _tslib.__awaiter(this, void 0, void 0, function* () {
154
+ getAccounts: () => _tslib.__awaiter(this, void 0, void 0, function* () { return [provider.account.address]; }),
155
+ onPersonalSign: (_a) => _tslib.__awaiter(this, [_a], void 0, function* ({ message }) {
146
156
  this._walletUiUtils.disabledConfirmationOnce();
147
157
  return provider.signMessage({
148
158
  account: provider.account,
149
159
  message,
150
160
  });
151
161
  }),
152
- onSendTransaction: ({ transaction }) => _tslib.__awaiter(this, void 0, void 0, function* () {
162
+ onSendTransaction: (_b) => _tslib.__awaiter(this, [_b], void 0, function* ({ transaction }) {
153
163
  try {
154
164
  this._walletUiUtils.disabledConfirmationOnce();
155
165
  const effectiveProvider = this.isGasSponsorshipDisabled
@@ -169,7 +179,7 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
169
179
  throw err;
170
180
  }
171
181
  }),
172
- onSignTypedData: ({ message }) => _tslib.__awaiter(this, void 0, void 0, function* () {
182
+ onSignTypedData: (_c) => _tslib.__awaiter(this, [_c], void 0, function* ({ message }) {
173
183
  this._walletUiUtils.disabledConfirmationOnce();
174
184
  const signTypedData = JSON.parse(message);
175
185
  return provider.signTypedData({
@@ -203,7 +213,8 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
203
213
  }
204
214
  getPublicClient() {
205
215
  return _tslib.__awaiter(this, void 0, void 0, function* () {
206
- const provider = this.kernelClient.extend(viem.publicActions);
216
+ var _a;
217
+ const provider = (_a = this.kernelClient) === null || _a === void 0 ? void 0 : _a.extend(viem.publicActions);
207
218
  if (!provider)
208
219
  throw new utils.DynamicError('No provider');
209
220
  return provider;
@@ -217,9 +228,9 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
217
228
  canSponsorTransactionGas(transaction) {
218
229
  return _tslib.__awaiter(this, void 0, void 0, function* () {
219
230
  try {
220
- yield this.getKernelClientWithSponsorshipValidation();
231
+ const kernelClientWithSponsorship = yield this.getKernelClientWithSponsorshipValidation();
221
232
  const userOperation = {
222
- callData: yield this.kernelClientWithSponsorship.account.encodeCallData({
233
+ callData: yield kernelClientWithSponsorship.account.encodeCallData({
223
234
  data: transaction.data ? transaction.data : '0x',
224
235
  to: transaction.to,
225
236
  /**
@@ -228,11 +239,11 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
228
239
  */
229
240
  value: transaction.value && viem.isHex(transaction.value)
230
241
  ? viem.fromHex(transaction.value, 'bigint')
231
- : '0x0',
242
+ : viem.fromHex('0x0', 'bigint'),
232
243
  }),
233
244
  };
234
- const result = yield this.kernelClientWithSponsorship.prepareUserOperationRequest({
235
- account: this.kernelClientWithSponsorship.account,
245
+ const result = yield kernelClientWithSponsorship.prepareUserOperationRequest({
246
+ account: kernelClientWithSponsorship.account,
236
247
  userOperation,
237
248
  });
238
249
  if (!result)
@@ -250,7 +261,8 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
250
261
  }
251
262
  getBalance() {
252
263
  return _tslib.__awaiter(this, void 0, void 0, function* () {
253
- const rpcClient = this.kernelClient.extend(viem.publicActions);
264
+ var _a;
265
+ const rpcClient = (_a = this.kernelClient) === null || _a === void 0 ? void 0 : _a.extend(viem.publicActions);
254
266
  if (!rpcClient)
255
267
  throw new utils.DynamicError('No RPC client');
256
268
  const address = yield this.getAddress();