@dynamic-labs/ethereum-aa 4.0.0-alpha.20 → 4.0.0-alpha.21

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,6 @@
1
1
 
2
+ ## [4.0.0-alpha.21](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.20...v4.0.0-alpha.21) (2024-10-30)
3
+
2
4
  ## [4.0.0-alpha.20](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.19...v4.0.0-alpha.20) (2024-10-30)
3
5
 
4
6
  ## [4.0.0-alpha.19](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2024-10-29)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.20";
6
+ var version = "4.0.0-alpha.21";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.20";
2
+ var version = "4.0.0-alpha.21";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa",
3
- "version": "4.0.0-alpha.20",
3
+ "version": "4.0.0-alpha.21",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -23,13 +23,13 @@
23
23
  "@zerodev/multi-chain-validator": "5.3.3",
24
24
  "@zerodev/sdk": "5.3.4",
25
25
  "permissionless": "^0.1.20",
26
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.20",
27
- "@dynamic-labs/ethereum-core": "4.0.0-alpha.20",
28
- "@dynamic-labs/logger": "4.0.0-alpha.20",
29
- "@dynamic-labs/types": "4.0.0-alpha.20",
30
- "@dynamic-labs/utils": "4.0.0-alpha.20",
31
- "@dynamic-labs/wallet-book": "4.0.0-alpha.20",
32
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.20"
26
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.21",
27
+ "@dynamic-labs/ethereum-core": "4.0.0-alpha.21",
28
+ "@dynamic-labs/logger": "4.0.0-alpha.21",
29
+ "@dynamic-labs/types": "4.0.0-alpha.21",
30
+ "@dynamic-labs/utils": "4.0.0-alpha.21",
31
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.21",
32
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.21"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "viem": "^2.7.6"
@@ -169,17 +169,21 @@ class ZeroDevConnector extends walletConnectorCore.WalletConnectorBase {
169
169
  this.providerMap = {};
170
170
  for (const provider of this.providersFromApi) {
171
171
  if (!this.providerMap[provider.chain]) {
172
- this.providerMap[provider.chain] = {
173
- kernelClient: yield this.getKernelClientWithoutSponsorshipValidation({
172
+ const [kernelClient, kernelClientWithSponsorship] = yield Promise.all([
173
+ this.getKernelClientWithoutSponsorshipValidation({
174
174
  chainId: provider.chain,
175
175
  projectId: provider.clientId,
176
176
  signer,
177
177
  }),
178
- kernelClientWithSponsorship: yield this.getKernelClientWithSponsorshipValidation({
178
+ this.getKernelClientWithSponsorshipValidation({
179
179
  chainId: provider.chain,
180
180
  projectId: provider.clientId,
181
181
  signer,
182
182
  }),
183
+ ]);
184
+ this.providerMap[provider.chain] = {
185
+ kernelClient,
186
+ kernelClientWithSponsorship,
183
187
  };
184
188
  }
185
189
  yield this.warnIfProjectChainNotEnabled(utils.parseChainId(provider.chain));
@@ -165,17 +165,21 @@ class ZeroDevConnector extends WalletConnectorBase {
165
165
  this.providerMap = {};
166
166
  for (const provider of this.providersFromApi) {
167
167
  if (!this.providerMap[provider.chain]) {
168
- this.providerMap[provider.chain] = {
169
- kernelClient: yield this.getKernelClientWithoutSponsorshipValidation({
168
+ const [kernelClient, kernelClientWithSponsorship] = yield Promise.all([
169
+ this.getKernelClientWithoutSponsorshipValidation({
170
170
  chainId: provider.chain,
171
171
  projectId: provider.clientId,
172
172
  signer,
173
173
  }),
174
- kernelClientWithSponsorship: yield this.getKernelClientWithSponsorshipValidation({
174
+ this.getKernelClientWithSponsorshipValidation({
175
175
  chainId: provider.chain,
176
176
  projectId: provider.clientId,
177
177
  signer,
178
178
  }),
179
+ ]);
180
+ this.providerMap[provider.chain] = {
181
+ kernelClient,
182
+ kernelClientWithSponsorship,
179
183
  };
180
184
  }
181
185
  yield this.warnIfProjectChainNotEnabled(parseChainId(provider.chain));