@dynamic-labs/ethereum 1.0.1 → 1.0.3

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,29 @@
1
1
 
2
+ ### [1.0.3](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.2...v1.0.3) (2023-12-28)
3
+
4
+
5
+ ### Features
6
+
7
+ * add default footer to wallet list when tos and pp not enabled ([#4229](https://github.com/dynamic-labs/DynamicAuth/issues/4229)) ([a6d90a7](https://github.com/dynamic-labs/DynamicAuth/commit/a6d90a7276cafeaffcb21c5362837d020fc10215)), closes [#4224](https://github.com/dynamic-labs/DynamicAuth/issues/4224)
8
+ * add starknet support for sopelia ([#4268](https://github.com/dynamic-labs/DynamicAuth/issues/4268)) ([53d4ce4](https://github.com/dynamic-labs/DynamicAuth/commit/53d4ce400070adfb32021b01b9c748b9a7d90577))
9
+ * delay setting user to after pregenerated wallet flow ([#4244](https://github.com/dynamic-labs/DynamicAuth/issues/4244)) ([503d34d](https://github.com/dynamic-labs/DynamicAuth/commit/503d34d9d6f5edd55b009f1f63c049ac6dfb1fb7))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * coinbase solana signMessage ([#4261](https://github.com/dynamic-labs/DynamicAuth/issues/4261)) ([7e0e69c](https://github.com/dynamic-labs/DynamicAuth/commit/7e0e69c0ad9f9c9778ff9255909dd2314e16fa06))
15
+ * solflare connect ([#4215](https://github.com/dynamic-labs/DynamicAuth/issues/4215)) ([#4219](https://github.com/dynamic-labs/DynamicAuth/issues/4219)) ([df39306](https://github.com/dynamic-labs/DynamicAuth/commit/df393069b9a9859052b2d55db8dfc3399d85f2a9))
16
+
17
+ ### [1.0.2](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.1...v1.0.2) (2023-12-18)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * prevent duplicated brave wallet connector ([#4209](https://github.com/dynamic-labs/DynamicAuth/issues/4209)) ([31589b9](https://github.com/dynamic-labs/DynamicAuth/commit/31589b92ea067a5e7ca5a5bd9adb881d086d7868))
23
+ * ensure wagmi connects to primary wallet ([#4206](https://github.com/dynamic-labs/DynamicAuth/issues/4206)) ([#4210](https://github.com/dynamic-labs/DynamicAuth/issues/4210)) ([072bb05](https://github.com/dynamic-labs/DynamicAuth/commit/072bb05a5a9fd5b82f5498c20ff74ca966f3ea9f))
24
+ * ensure wallets group view shows multiple options ([#4184](https://github.com/dynamic-labs/DynamicAuth/issues/4184)) ([#4187](https://github.com/dynamic-labs/DynamicAuth/issues/4187)) ([b751f49](https://github.com/dynamic-labs/DynamicAuth/commit/b751f4952ea5a46b536edc999f37ea134348f8ef)), closes [#4186](https://github.com/dynamic-labs/DynamicAuth/issues/4186)
25
+ * enable brave to read the connected network ([#4198](https://github.com/dynamic-labs/DynamicAuth/issues/4198)) ([979e866](https://github.com/dynamic-labs/DynamicAuth/commit/979e86660f13982992cd43b1d9a8218150437e8b))
26
+
2
27
  ### [1.0.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0...v1.0.1) (2023-12-14)
3
28
 
4
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -32,15 +32,15 @@
32
32
  "@walletconnect/universal-provider": "2.10.6",
33
33
  "eventemitter3": "5.0.1",
34
34
  "buffer": "6.0.3",
35
- "@dynamic-labs/rpc-providers": "1.0.1",
36
- "@dynamic-labs/turnkey": "1.0.1",
37
- "@dynamic-labs/types": "1.0.1",
38
- "@dynamic-labs/utils": "1.0.1",
39
- "@dynamic-labs/wallet-book": "1.0.1",
40
- "@dynamic-labs/wallet-connector-core": "1.0.1",
35
+ "@dynamic-labs/rpc-providers": "1.0.3",
36
+ "@dynamic-labs/turnkey": "1.0.3",
37
+ "@dynamic-labs/types": "1.0.3",
38
+ "@dynamic-labs/utils": "1.0.3",
39
+ "@dynamic-labs/wallet-book": "1.0.3",
40
+ "@dynamic-labs/wallet-connector-core": "1.0.3",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
44
- "viem": "^1.1.0"
44
+ "viem": "^1.19.13"
45
45
  }
46
46
  }
@@ -66,6 +66,13 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
66
66
  }
67
67
  return utils.retryableFn(provider.getChainId, {
68
68
  fallbackValue: utils.FALLBACK_UNDEFINED,
69
+ /**
70
+ * The timeout is set to 1 second because the getChainId method
71
+ * takes around 500ms to resolve on Brave. If the timeout is not set
72
+ * it will use 100ms by default and the method will fail.
73
+ * QNTM-815
74
+ */
75
+ timeoutMs: 1000,
69
76
  });
70
77
  });
71
78
  }
@@ -62,6 +62,13 @@ class EthWalletConnector extends WalletConnectorBase {
62
62
  }
63
63
  return retryableFn(provider.getChainId, {
64
64
  fallbackValue: FALLBACK_UNDEFINED,
65
+ /**
66
+ * The timeout is set to 1 second because the getChainId method
67
+ * takes around 500ms to resolve on Brave. If the timeout is not set
68
+ * it will use 100ms by default and the method will fail.
69
+ * QNTM-815
70
+ */
71
+ timeoutMs: 1000,
65
72
  });
66
73
  });
67
74
  }
@@ -16,10 +16,7 @@ class EthProviderHelper {
16
16
  getInstalledProvider() {
17
17
  const eip6963Config = this.getEip6963Config();
18
18
  if (eip6963Config) {
19
- const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
20
- if (eip6963Provider) {
21
- return eip6963Provider;
22
- }
19
+ return this.eip6963ProviderLookup(eip6963Config.rdns);
23
20
  }
24
21
  const config = this.getInjectedConfig();
25
22
  if (!config ||
@@ -12,10 +12,7 @@ class EthProviderHelper {
12
12
  getInstalledProvider() {
13
13
  const eip6963Config = this.getEip6963Config();
14
14
  if (eip6963Config) {
15
- const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
16
- if (eip6963Provider) {
17
- return eip6963Provider;
18
- }
15
+ return this.eip6963ProviderLookup(eip6963Config.rdns);
19
16
  }
20
17
  const config = this.getInjectedConfig();
21
18
  if (!config ||
@@ -42,6 +42,7 @@ const filteredLegacyInjectedWalletKeys = [
42
42
  'zerion',
43
43
  'superb',
44
44
  'rabby',
45
+ 'braveevm',
45
46
  ];
46
47
 
47
48
  exports.filteredLegacyInjectedWalletKeys = filteredLegacyInjectedWalletKeys;
@@ -38,6 +38,7 @@ const filteredLegacyInjectedWalletKeys = [
38
38
  'zerion',
39
39
  'superb',
40
40
  'rabby',
41
+ 'braveevm',
41
42
  ];
42
43
 
43
44
  export { filteredLegacyInjectedWalletKeys, legacyInjectedWallets };