@dynamic-labs/ethereum 1.1.0-alpha.9 → 1.1.0-phantom.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 CHANGED
@@ -1,4 +1,61 @@
1
1
 
2
+ ## [1.1.0-phantom.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.12...v1.1.0-phantom.0) (2024-01-22)
3
+
4
+
5
+ ### Features
6
+
7
+ * add createWalletClientFromWallet helper function ([#4416](https://github.com/dynamic-labs/DynamicAuth/issues/4416)) ([b384898](https://github.com/dynamic-labs/DynamicAuth/commit/b384898061bb3f9b38b2ed670b6650cfc1d4b429))
8
+ * add hardware wallets to wallet book ([#4445](https://github.com/dynamic-labs/DynamicAuth/issues/4445)) ([66c0f5b](https://github.com/dynamic-labs/DynamicAuth/commit/66c0f5b29a6a700099bb95a6f7622f6178e0bccf))
9
+ * add redirect based phantom deeplinking ([c40dfd2](https://github.com/dynamic-labs/DynamicAuth/commit/c40dfd21d0692b9d33593d564ae6879ab15547e2))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * breaking changes script ([#4440](https://github.com/dynamic-labs/DynamicAuth/issues/4440)) ([446173d](https://github.com/dynamic-labs/DynamicAuth/commit/446173d074d652d81856c6412e304b46b1565320))
15
+ * broken help icon in create passkey view ([#4428](https://github.com/dynamic-labs/DynamicAuth/issues/4428)) ([e0ffc02](https://github.com/dynamic-labs/DynamicAuth/commit/e0ffc02ffea34b7ac3198ff6e1baf7f9907acddd))
16
+
17
+ ## [1.1.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.11...v1.1.0-alpha.12) (2024-01-18)
18
+
19
+
20
+ ### Features
21
+
22
+ * expose setAuthMode method ([#4419](https://github.com/dynamic-labs/DynamicAuth/issues/4419)) ([7d156b3](https://github.com/dynamic-labs/DynamicAuth/commit/7d156b3e0eab9b9a80f70ff1c5201d90693ae755))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * call onUnlinkSuccess in headless mode too ([#4412](https://github.com/dynamic-labs/DynamicAuth/issues/4412)) ([4c76af9](https://github.com/dynamic-labs/DynamicAuth/commit/4c76af9ac7c7b43883742d1289558dfcb5d612ca))
28
+ * correctly map keplr chain ids from project settings ([#4418](https://github.com/dynamic-labs/DynamicAuth/issues/4418)) ([7046364](https://github.com/dynamic-labs/DynamicAuth/commit/7046364a316f7551f0b995eaae7afea13502eb9b))
29
+ * logging in with an email linked to a third party wallet gets stuck on otp view ([#4407](https://github.com/dynamic-labs/DynamicAuth/issues/4407)) ([35bf142](https://github.com/dynamic-labs/DynamicAuth/commit/35bf142e74efeef866dbd7b8157a049cd36eeccb))
30
+
31
+ ## [1.1.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.10...v1.1.0-alpha.11) (2024-01-17)
32
+
33
+
34
+ ### Features
35
+
36
+ * add Leather wallet and BtcKit connector ([#4335](https://github.com/dynamic-labs/DynamicAuth/issues/4335)) ([fe3316b](https://github.com/dynamic-labs/DynamicAuth/commit/fe3316b5be9ef17eea885e99cf925ccd0f271da7))
37
+ * add solana injected wallet configuration to walletbook ([#4375](https://github.com/dynamic-labs/DynamicAuth/issues/4375)) ([3677ce5](https://github.com/dynamic-labs/DynamicAuth/commit/3677ce5ff40d0c00bfaf0daa0d5d67bc40706ee0))
38
+ * add support for unisat wallet ([#4355](https://github.com/dynamic-labs/DynamicAuth/issues/4355)) ([5b7d6b0](https://github.com/dynamic-labs/DynamicAuth/commit/5b7d6b0a9ea84811a8252b3cdf30a3a8e410180c))
39
+ * add walletbook configurations for solana injected wallets ([#4360](https://github.com/dynamic-labs/DynamicAuth/issues/4360)) ([cdc8e5f](https://github.com/dynamic-labs/DynamicAuth/commit/cdc8e5f4878cb84e26e5b33299aa8547b84b6667))
40
+ * passkey renaming frontend ([#4331](https://github.com/dynamic-labs/DynamicAuth/issues/4331)) ([4551013](https://github.com/dynamic-labs/DynamicAuth/commit/4551013d577c914cb3aedfe458ab9eaa018aceb4))
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * correctly update wallets connected flag after wallet switch ([#4397](https://github.com/dynamic-labs/DynamicAuth/issues/4397)) ([543a830](https://github.com/dynamic-labs/DynamicAuth/commit/543a830574f0d5a78fedbb9b18233e8dfbaddd86))
46
+ * export modal header ([#4401](https://github.com/dynamic-labs/DynamicAuth/issues/4401)) ([77cf016](https://github.com/dynamic-labs/DynamicAuth/commit/77cf016fc742458988864647870149a56e991ee4))
47
+ * trigger onAuthSuccess before embedded wallet creation ([4aa341a](https://github.com/dynamic-labs/DynamicAuth/commit/4aa341a1d08332a121daddb7c2dcb09a804a4de7))
48
+ * ui issues on react 17 ([#4373](https://github.com/dynamic-labs/DynamicAuth/issues/4373)) ([93096d6](https://github.com/dynamic-labs/DynamicAuth/commit/93096d6017816a4f0ed299bf618b130d90c81514))
49
+
50
+ ## [1.1.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.9...v1.1.0-alpha.10) (2024-01-06)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * pass flow network to magic client ([#4322](https://github.com/dynamic-labs/DynamicAuth/issues/4322)) ([f3adccf](https://github.com/dynamic-labs/DynamicAuth/commit/f3adccf9f8d835f6b04e4767acd0fbd2ac238379))
56
+ * prevent error message when mobile wallet app is open ([#4301](https://github.com/dynamic-labs/DynamicAuth/issues/4301)) ([2a66dcf](https://github.com/dynamic-labs/DynamicAuth/commit/2a66dcfaf8100b3d910c559d35d8b731b1cb380e))
57
+ * turnkeyWalletConnector is not an email otp connector and uses dynamic otp ([#4313](https://github.com/dynamic-labs/DynamicAuth/issues/4313)) ([e4ea56f](https://github.com/dynamic-labs/DynamicAuth/commit/e4ea56f40fdf97b3f5440b016ebd95501089cebe))
58
+
2
59
  ## [1.1.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.8...v1.1.0-alpha.9) (2024-01-04)
3
60
 
4
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "1.1.0-alpha.9",
3
+ "version": "1.1.0-phantom.0",
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.1.0-alpha.9",
36
- "@dynamic-labs/turnkey": "1.1.0-alpha.9",
37
- "@dynamic-labs/types": "1.1.0-alpha.9",
38
- "@dynamic-labs/utils": "1.1.0-alpha.9",
39
- "@dynamic-labs/wallet-book": "1.1.0-alpha.9",
40
- "@dynamic-labs/wallet-connector-core": "1.1.0-alpha.9",
35
+ "@dynamic-labs/rpc-providers": "1.1.0-phantom.0",
36
+ "@dynamic-labs/turnkey": "1.1.0-phantom.0",
37
+ "@dynamic-labs/types": "1.1.0-phantom.0",
38
+ "@dynamic-labs/utils": "1.1.0-phantom.0",
39
+ "@dynamic-labs/wallet-book": "1.1.0-phantom.0",
40
+ "@dynamic-labs/wallet-connector-core": "1.1.0-phantom.0",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
44
- "viem": "^1.19.13"
44
+ "viem": "^1.19.13 || ^2.2.0"
45
45
  }
46
46
  }
@@ -95,11 +95,11 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
95
95
  [x: `bytes4[${string}]`]: undefined;
96
96
  [x: `bytes3[${string}]`]: undefined;
97
97
  [x: `int[${string}]`]: undefined;
98
+ [x: `int40[${string}]`]: undefined;
98
99
  [x: `int32[${string}]`]: undefined;
99
100
  [x: `int24[${string}]`]: undefined;
100
101
  [x: `int16[${string}]`]: undefined;
101
102
  [x: `int8[${string}]`]: undefined;
102
- [x: `int40[${string}]`]: undefined;
103
103
  [x: `int48[${string}]`]: undefined;
104
104
  [x: `int56[${string}]`]: undefined;
105
105
  [x: `int64[${string}]`]: undefined;
@@ -128,11 +128,11 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
128
128
  [x: `int248[${string}]`]: undefined;
129
129
  [x: `int256[${string}]`]: undefined;
130
130
  [x: `uint[${string}]`]: undefined;
131
+ [x: `uint40[${string}]`]: undefined;
131
132
  [x: `uint32[${string}]`]: undefined;
132
133
  [x: `uint24[${string}]`]: undefined;
133
134
  [x: `uint16[${string}]`]: undefined;
134
135
  [x: `uint8[${string}]`]: undefined;
135
- [x: `uint40[${string}]`]: undefined;
136
136
  [x: `uint48[${string}]`]: undefined;
137
137
  [x: `uint56[${string}]`]: undefined;
138
138
  [x: `uint64[${string}]`]: undefined;
@@ -196,11 +196,11 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
196
196
  bytes5?: undefined;
197
197
  bytes4?: undefined;
198
198
  bytes3?: undefined;
199
+ int40?: undefined;
199
200
  int32?: undefined;
200
201
  int24?: undefined;
201
202
  int16?: undefined;
202
203
  int8?: undefined;
203
- int40?: undefined;
204
204
  int48?: undefined;
205
205
  int56?: undefined;
206
206
  int64?: undefined;
@@ -228,11 +228,11 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
228
228
  int240?: undefined;
229
229
  int248?: undefined;
230
230
  int256?: undefined;
231
+ uint40?: undefined;
231
232
  uint32?: undefined;
232
233
  uint24?: undefined;
233
234
  uint16?: undefined;
234
235
  uint8?: undefined;
235
- uint40?: undefined;
236
236
  uint48?: undefined;
237
237
  uint56?: undefined;
238
238
  uint64?: undefined;
@@ -16,7 +16,10 @@ class EthProviderHelper {
16
16
  getInstalledProvider() {
17
17
  const eip6963Config = this.getEip6963Config();
18
18
  if (eip6963Config) {
19
- return this.eip6963ProviderLookup(eip6963Config.rdns);
19
+ const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
20
+ if (eip6963Provider) {
21
+ return eip6963Provider;
22
+ }
20
23
  }
21
24
  const config = this.getInjectedConfig();
22
25
  if (!config ||
@@ -15,6 +15,7 @@ export declare class EthProviderHelper {
15
15
  value: boolean;
16
16
  flag: string;
17
17
  }[];
18
+ providerInterface?: string | undefined;
18
19
  walletStandard?: {
19
20
  features: string[];
20
21
  name: string;
@@ -12,7 +12,10 @@ class EthProviderHelper {
12
12
  getInstalledProvider() {
13
13
  const eip6963Config = this.getEip6963Config();
14
14
  if (eip6963Config) {
15
- return this.eip6963ProviderLookup(eip6963Config.rdns);
15
+ const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
16
+ if (eip6963Provider) {
17
+ return eip6963Provider;
18
+ }
16
19
  }
17
20
  const config = this.getInjectedConfig();
18
21
  if (!config ||