@dynamic-labs/wallet-book 2.0.0-alpha.10 → 2.0.0-alpha.12

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,43 @@
1
1
 
2
+ ## [2.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-03-13)
3
+
4
+
5
+ ### Features
6
+
7
+ * add sign-in with farcaster ([#4947](https://github.com/dynamic-labs/DynamicAuth/issues/4947)) ([3927d24](https://github.com/dynamic-labs/DynamicAuth/commit/3927d24392a8944997ca05431c6ab54757be62d9))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * wallet connect links with query params ([#4948](https://github.com/dynamic-labs/DynamicAuth/issues/4948)) ([0738130](https://github.com/dynamic-labs/DynamicAuth/commit/0738130f82473a197e035b8dd74d996bdbb24c11))
13
+
14
+ ## [2.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-03-12)
15
+
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ * rename FetchPublicAddressOpts to GetAddressOpts (#4910)
20
+ * remove use effect in useWalletEventListeners (#4843)
21
+ * rename fetchPublicAddress to getAddress (#4851)
22
+
23
+ ### Features
24
+
25
+ * Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
26
+ * use transaction confirmation ui on signAndSendTransaction for solana embedded wallets ([#4909](https://github.com/dynamic-labs/DynamicAuth/issues/4909)) ([d77e89e](https://github.com/dynamic-labs/DynamicAuth/commit/d77e89ecff9dfc67ed48537f541a9995b2662e1e))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
32
+ * keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
33
+ * pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
34
+ * update walletbook to fix zerion in-app browser detection issue ([#4917](https://github.com/dynamic-labs/DynamicAuth/issues/4917)) ([48b05d7](https://github.com/dynamic-labs/DynamicAuth/commit/48b05d78e4f7add09787b64505723d4eca34d3e0))
35
+
36
+
37
+ * remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
38
+ * rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
39
+ * rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
40
+
2
41
  ## [2.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-03-08)
3
42
 
4
43
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  - [Updating Wallet Book](#updating-wallet-book)
7
7
  - [Adding First Party Wallet](#adding-first-party-wallet)
8
8
  - [Adding injected (browser extension) wallets](#adding-injected-browser-extension-wallets)
9
- - [If you need to override any of the following functions: signMessage, fetchPublicAddress, getSigner, isInstalledOnBrowser, etc...](#if-you-need-to-override-any-of-the-following-functions-signmessage-fetchpublicaddress-getsigner-isinstalledonbrowser-etc)
9
+ - [If you need to override any of the following functions: signMessage, getAddress, getSigner, isInstalledOnBrowser, etc...](#if-you-need-to-override-any-of-the-following-functions-signmessage-fetchpublicaddress-getsigner-isinstalledonbrowser-etc)
10
10
  - [Things to remember when adding a new wallet](#things-to-remember-when-adding-a-new-wallet)
11
11
  - [**Checklist before submitting the PR**:](#checklist-before-submitting-the-pr)
12
12
  - [Updating Wallet Connect Data](#updating-wallet-connect-data)
@@ -69,7 +69,7 @@ injectedConfig: [
69
69
  name: 'OKX'
70
70
  ```
71
71
 
72
- #### If you need to override any of the following functions: signMessage, fetchPublicAddress, getSigner, isInstalledOnBrowser, etc...
72
+ #### If you need to override any of the following functions: signMessage, getAddress, getSigner, isInstalledOnBrowser, etc...
73
73
 
74
74
  1. Create a file in the respective `ethereum/src/injected/` or `solana/src/injected/`. The basic file should follow this form:
75
75
 
@@ -85,7 +85,7 @@ export class <NameOfConnector> extends InjectedWalletBase {
85
85
  }
86
86
 
87
87
  // override the methods you need below
88
- override async fetchPublicAddress() {
88
+ override async getAddress() {
89
89
  ...
90
90
  }
91
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/iconic": "2.0.0-alpha.10",
30
- "@dynamic-labs/logger": "2.0.0-alpha.10",
31
- "@dynamic-labs/utils": "2.0.0-alpha.10",
29
+ "@dynamic-labs/iconic": "2.0.0-alpha.12",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.12",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.12",
32
32
  "util": "0.12.5"
33
33
  },
34
34
  "peerDependencies": {
@@ -1,12 +1,4 @@
1
1
  export declare const walletConnectSourceData: Record<string, {
2
- id: string;
3
- metadata: {
4
- shortName: string | null;
5
- colors: {
6
- primary: string | null;
7
- secondary: string | null;
8
- };
9
- };
10
2
  name: string;
11
3
  chains: string[];
12
4
  desktop: {
@@ -36,6 +28,7 @@ export declare const walletConnectSourceData: Record<string, {
36
28
  category: string | null;
37
29
  description: string | null;
38
30
  homepage: string;
31
+ id: string;
39
32
  image_id: string;
40
33
  image_url: {
41
34
  lg: string;
@@ -46,15 +39,22 @@ export declare const walletConnectSourceData: Record<string, {
46
39
  injected_id: string;
47
40
  namespace: string;
48
41
  }[] | null;
42
+ metadata: {
43
+ shortName: string | null;
44
+ colors: {
45
+ primary: string | null;
46
+ secondary: string | null;
47
+ };
48
+ };
49
49
  slug: string;
50
50
  updatedAt: string;
51
51
  versions: string[];
52
52
  supported_standards?: {
53
53
  id: string;
54
- title: string;
55
- url: string;
56
54
  standard_id: number;
57
55
  standard_prefix: string;
56
+ title: string;
57
+ url: string;
58
58
  }[] | undefined;
59
59
  }>;
60
60
  export declare const walletConnectTransformedData: Promise<Record<string, {
@@ -39,6 +39,15 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
39
39
  };
40
40
  };
41
41
  ledger: {
42
+ mobile: {
43
+ action: string;
44
+ value: {
45
+ androidId: string;
46
+ iosId: string;
47
+ native: string;
48
+ universal: string;
49
+ };
50
+ };
42
51
  switchNetworkOnlyFromWallet: {
43
52
  action: string;
44
53
  value: boolean;
@@ -173,6 +182,15 @@ export declare const walletConnectOverrides: {
173
182
  };
174
183
  };
175
184
  ledger: {
185
+ mobile: {
186
+ action: string;
187
+ value: {
188
+ androidId: string;
189
+ iosId: string;
190
+ native: string;
191
+ universal: string;
192
+ };
193
+ };
176
194
  switchNetworkOnlyFromWallet: {
177
195
  action: string;
178
196
  value: boolean;
@@ -163,6 +163,10 @@ var wallets = {
163
163
  {
164
164
  flag: "isMagicEden",
165
165
  value: false
166
+ },
167
+ {
168
+ flag: "isZerion",
169
+ value: false
166
170
  }
167
171
  ]
168
172
  }
@@ -159,6 +159,10 @@ var wallets = {
159
159
  {
160
160
  flag: "isMagicEden",
161
161
  value: false
162
+ },
163
+ {
164
+ flag: "isZerion",
165
+ value: false
162
166
  }
163
167
  ]
164
168
  }