@dynamic-labs/wallet-book 3.0.0-alpha.13 → 3.0.0-alpha.15
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,50 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.14...v3.0.0-alpha.15) (2024-07-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* catch third party wallet construction errors ([#6268](https://github.com/dynamic-labs/DynamicAuth/issues/6268)) ([badef39](https://github.com/dynamic-labs/DynamicAuth/commit/badef39d753c7d29925c6c8680053027bd99b69b))
|
|
8
|
+
* decode all solana transactions ([#6294](https://github.com/dynamic-labs/DynamicAuth/issues/6294)) ([5220ab2](https://github.com/dynamic-labs/DynamicAuth/commit/5220ab29381f3a7f1afc7043332b5a018b47eb0a))
|
|
9
|
+
* passkey cta ([#6255](https://github.com/dynamic-labs/DynamicAuth/issues/6255)) ([1b1b152](https://github.com/dynamic-labs/DynamicAuth/commit/1b1b152a24b409c5d941a9c92a003daf0bbe48a1))
|
|
10
|
+
|
|
11
|
+
## [3.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.13...v3.0.0-alpha.14) (2024-07-09)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* remove setPrimaryWallet in favor of useSwitchWallet (#6212)
|
|
17
|
+
* move getBalance method to wallet so it can be fetched for any wallet not just the active one (#6200)
|
|
18
|
+
* make Wallet a class instead of just a type (#6094)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add @dynamic-labs/solana-extension ([#6140](https://github.com/dynamic-labs/DynamicAuth/issues/6140)) ([c0e2a06](https://github.com/dynamic-labs/DynamicAuth/commit/c0e2a067dd83163094b58a15696df8654da47c65))
|
|
23
|
+
* add solana support for multi-asset ([#6222](https://github.com/dynamic-labs/DynamicAuth/issues/6222)) ([9660d79](https://github.com/dynamic-labs/DynamicAuth/commit/9660d7962f1fb01011d68397bb367fdfc5335ca9))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* allow closing re-connect wallet modal ([#6250](https://github.com/dynamic-labs/DynamicAuth/issues/6250)) ([55ba25b](https://github.com/dynamic-labs/DynamicAuth/commit/55ba25bd3e907629aaa26e788885bfa38f8fe350))
|
|
29
|
+
* move getBalance method to wallet so it can be fetched for any wallet not just the active one ([#6200](https://github.com/dynamic-labs/DynamicAuth/issues/6200)) ([ee94773](https://github.com/dynamic-labs/DynamicAuth/commit/ee94773df9b31462a325666760fcf1fc70dec68a))
|
|
30
|
+
* move getNameService method to wallet so name service data can be fetched for any wallet ([#6205](https://github.com/dynamic-labs/DynamicAuth/issues/6205)) ([6671ae9](https://github.com/dynamic-labs/DynamicAuth/commit/6671ae92532ffc1889e24519e75f47d336ac0da6))
|
|
31
|
+
* relax phone number length validation ([#6226](https://github.com/dynamic-labs/DynamicAuth/issues/6226)) ([f0969b4](https://github.com/dynamic-labs/DynamicAuth/commit/f0969b4fbdafde07125cddecb16b4bfd011ea65e))
|
|
32
|
+
* sdkHasLoaded flipping back to false with otp ([#6242](https://github.com/dynamic-labs/DynamicAuth/issues/6242)) ([32ad9dd](https://github.com/dynamic-labs/DynamicAuth/commit/32ad9dd2dae7775f494506773fb343fe1a249c65))
|
|
33
|
+
* send transaction demo undefined address/value ([#6248](https://github.com/dynamic-labs/DynamicAuth/issues/6248)) ([036a511](https://github.com/dynamic-labs/DynamicAuth/commit/036a511fb848ef461edd9b7a5d79d478b0f1cf23))
|
|
34
|
+
* set last active account on accountChange request ([#6218](https://github.com/dynamic-labs/DynamicAuth/issues/6218)) ([05797d2](https://github.com/dynamic-labs/DynamicAuth/commit/05797d292aab8b4de02555594d4d1bbd4c9543eb))
|
|
35
|
+
* show ledger toggle when linking wallet ([#6202](https://github.com/dynamic-labs/DynamicAuth/issues/6202)) ([a449c0b](https://github.com/dynamic-labs/DynamicAuth/commit/a449c0bfc4e3a75ccd7084b930c48fbd6c14f691))
|
|
36
|
+
* show user wallet in profile view on single wallet mode even if it's not primary ([#6187](https://github.com/dynamic-labs/DynamicAuth/issues/6187)) ([ffaaeb2](https://github.com/dynamic-labs/DynamicAuth/commit/ffaaeb2c6cbb2868a381d85451ae5574024156bb))
|
|
37
|
+
* stop auto-switching to connected secondary wallet if primary wallet is not connected ([#6196](https://github.com/dynamic-labs/DynamicAuth/issues/6196)) ([4e8bcd2](https://github.com/dynamic-labs/DynamicAuth/commit/4e8bcd2d02d3fca54a0ed29c45b386ae99266b84))
|
|
38
|
+
* stop coinbase and solflare popups when secondary ([#6225](https://github.com/dynamic-labs/DynamicAuth/issues/6225)) ([7e9c104](https://github.com/dynamic-labs/DynamicAuth/commit/7e9c1049a09c9fd513c9a2a746d6baac916f1bf4))
|
|
39
|
+
* stop sending double sign request on network switch ([e325709](https://github.com/dynamic-labs/DynamicAuth/commit/e325709bb5d2d1331fe16cc705398fc7b1cc292a))
|
|
40
|
+
* tunrkey solana signer accept uint8array message ([#6137](https://github.com/dynamic-labs/DynamicAuth/issues/6137)) ([70f89ce](https://github.com/dynamic-labs/DynamicAuth/commit/70f89ce0dafa4c99b318c9c5adce59083cd6d284))
|
|
41
|
+
* update formatting of phantom bitcoin publickey ([#6210](https://github.com/dynamic-labs/DynamicAuth/issues/6210)) ([f58cea9](https://github.com/dynamic-labs/DynamicAuth/commit/f58cea99333fd7c6af8f56f637ee32f1f7ce8d76))
|
|
42
|
+
* use white color in farcaster qr code when in dark mode ([#6245](https://github.com/dynamic-labs/DynamicAuth/issues/6245)) ([a91958d](https://github.com/dynamic-labs/DynamicAuth/commit/a91958d8773be138da8f54791c4c67866257bbad))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
* make Wallet a class instead of just a type ([#6094](https://github.com/dynamic-labs/DynamicAuth/issues/6094)) ([6dc4672](https://github.com/dynamic-labs/DynamicAuth/commit/6dc4672951cfadc22a6c569e74eae3485bd472f3))
|
|
46
|
+
* remove setPrimaryWallet in favor of useSwitchWallet ([#6212](https://github.com/dynamic-labs/DynamicAuth/issues/6212)) ([de125e1](https://github.com/dynamic-labs/DynamicAuth/commit/de125e1ebbc20507e4ec07f337f5f5fd13aabcbe))
|
|
47
|
+
|
|
2
48
|
## [3.0.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.12...v3.0.0-alpha.13) (2024-06-27)
|
|
3
49
|
|
|
4
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "3.22.4",
|
|
29
|
-
"@dynamic-labs/iconic": "3.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
29
|
+
"@dynamic-labs/iconic": "3.0.0-alpha.15",
|
|
30
|
+
"@dynamic-labs/logger": "3.0.0-alpha.15",
|
|
31
|
+
"@dynamic-labs/utils": "3.0.0-alpha.15",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -1,4 +1,12 @@
|
|
|
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
|
+
};
|
|
2
10
|
name: string;
|
|
3
11
|
chains: string[];
|
|
4
12
|
desktop: {
|
|
@@ -28,7 +36,6 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
28
36
|
category: string | null;
|
|
29
37
|
description: string | null;
|
|
30
38
|
homepage: string;
|
|
31
|
-
id: string;
|
|
32
39
|
image_id: string;
|
|
33
40
|
image_url: {
|
|
34
41
|
lg: string;
|
|
@@ -39,22 +46,15 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
39
46
|
injected_id: string;
|
|
40
47
|
namespace: string;
|
|
41
48
|
}[] | 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
|
-
standard_id: number;
|
|
55
|
-
standard_prefix: string;
|
|
56
54
|
title: string;
|
|
57
55
|
url: string;
|
|
56
|
+
standard_id: number;
|
|
57
|
+
standard_prefix: string;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
@@ -208,6 +208,10 @@ var wallets = {
|
|
|
208
208
|
{
|
|
209
209
|
flag: "isOneKey",
|
|
210
210
|
value: false
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
flag: "isPhantom",
|
|
214
|
+
value: false
|
|
211
215
|
}
|
|
212
216
|
]
|
|
213
217
|
}
|
|
@@ -285,7 +289,14 @@ var wallets = {
|
|
|
285
289
|
}
|
|
286
290
|
],
|
|
287
291
|
name: "Coinbase",
|
|
288
|
-
shortName: "Coinbase Wallet (Solana)"
|
|
292
|
+
shortName: "Coinbase Wallet (Solana)",
|
|
293
|
+
walletLimitations: {
|
|
294
|
+
browserExtension: {
|
|
295
|
+
unsupportedMethods: [
|
|
296
|
+
"getConnectedAccounts"
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
}
|
|
289
300
|
},
|
|
290
301
|
phantom: {
|
|
291
302
|
brand: {
|
|
@@ -517,7 +528,14 @@ var wallets = {
|
|
|
517
528
|
androidId: "com.solflare.mobile",
|
|
518
529
|
iosId: "id1580902717"
|
|
519
530
|
},
|
|
520
|
-
name: "Solflare"
|
|
531
|
+
name: "Solflare",
|
|
532
|
+
walletLimitations: {
|
|
533
|
+
browserExtension: {
|
|
534
|
+
unsupportedMethods: [
|
|
535
|
+
"getConnectedAccounts"
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
}
|
|
521
539
|
},
|
|
522
540
|
braavos: {
|
|
523
541
|
brand: {
|
|
@@ -776,9 +794,6 @@ var wallets = {
|
|
|
776
794
|
shortName: "Magic Eden (Solana)",
|
|
777
795
|
walletLimitations: {
|
|
778
796
|
browserExtension: {
|
|
779
|
-
unsupportedEvents: [
|
|
780
|
-
"accountChanged"
|
|
781
|
-
],
|
|
782
797
|
unsupportedMethods: [
|
|
783
798
|
"getConnectedAccounts"
|
|
784
799
|
]
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -204,6 +204,10 @@ var wallets = {
|
|
|
204
204
|
{
|
|
205
205
|
flag: "isOneKey",
|
|
206
206
|
value: false
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
flag: "isPhantom",
|
|
210
|
+
value: false
|
|
207
211
|
}
|
|
208
212
|
]
|
|
209
213
|
}
|
|
@@ -281,7 +285,14 @@ var wallets = {
|
|
|
281
285
|
}
|
|
282
286
|
],
|
|
283
287
|
name: "Coinbase",
|
|
284
|
-
shortName: "Coinbase Wallet (Solana)"
|
|
288
|
+
shortName: "Coinbase Wallet (Solana)",
|
|
289
|
+
walletLimitations: {
|
|
290
|
+
browserExtension: {
|
|
291
|
+
unsupportedMethods: [
|
|
292
|
+
"getConnectedAccounts"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
285
296
|
},
|
|
286
297
|
phantom: {
|
|
287
298
|
brand: {
|
|
@@ -513,7 +524,14 @@ var wallets = {
|
|
|
513
524
|
androidId: "com.solflare.mobile",
|
|
514
525
|
iosId: "id1580902717"
|
|
515
526
|
},
|
|
516
|
-
name: "Solflare"
|
|
527
|
+
name: "Solflare",
|
|
528
|
+
walletLimitations: {
|
|
529
|
+
browserExtension: {
|
|
530
|
+
unsupportedMethods: [
|
|
531
|
+
"getConnectedAccounts"
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
}
|
|
517
535
|
},
|
|
518
536
|
braavos: {
|
|
519
537
|
brand: {
|
|
@@ -772,9 +790,6 @@ var wallets = {
|
|
|
772
790
|
shortName: "Magic Eden (Solana)",
|
|
773
791
|
walletLimitations: {
|
|
774
792
|
browserExtension: {
|
|
775
|
-
unsupportedEvents: [
|
|
776
|
-
"accountChanged"
|
|
777
|
-
],
|
|
778
793
|
unsupportedMethods: [
|
|
779
794
|
"getConnectedAccounts"
|
|
780
795
|
]
|