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

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,31 @@
1
1
 
2
+ ## [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)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename FetchPublicAddressOpts to GetAddressOpts (#4910)
8
+ * remove use effect in useWalletEventListeners (#4843)
9
+ * rename fetchPublicAddress to getAddress (#4851)
10
+
11
+ ### Features
12
+
13
+ * Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
14
+ * 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))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
20
+ * keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
21
+ * pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
22
+ * 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))
23
+
24
+
25
+ * remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
26
+ * rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
27
+ * rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
28
+
2
29
  ## [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
30
 
4
31
 
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.11",
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.11",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.11",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.11",
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, {
@@ -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
  }