@dynamic-labs/wallet-book 2.0.0-alpha.26 → 2.0.0-alpha.28
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 +16 -0
- package/package.json +4 -4
- package/src/build/sources/walletConnect/index.d.ts +10 -10
- package/src/helpers/getWalletBookWallet.cjs +4 -4
- package/src/helpers/getWalletBookWallet.d.ts +1 -1
- package/src/helpers/getWalletBookWallet.js +4 -4
- package/wallet-book-fallbacks.cjs +8 -11
- package/wallet-book-fallbacks.js +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.0.0-alpha.28](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-04-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* improve bridge connect experience on mobile ([#5283](https://github.com/dynamic-labs/DynamicAuth/issues/5283)) ([155e4a9](https://github.com/dynamic-labs/DynamicAuth/commit/155e4a99e2cf5f78a1a5e91e774acbf170d6b083))
|
|
8
|
+
|
|
9
|
+
## [2.0.0-alpha.27](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.26...v2.0.0-alpha.27) (2024-04-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* coinbase improvements ([#5268](https://github.com/dynamic-labs/DynamicAuth/issues/5268)) ([c10a6de](https://github.com/dynamic-labs/DynamicAuth/commit/c10a6debcacff6cd97f2436fbde387f85faa5682))
|
|
15
|
+
* show qr code for metamask on desktop when not installed ([#5262](https://github.com/dynamic-labs/DynamicAuth/issues/5262)) ([1dcb4d9](https://github.com/dynamic-labs/DynamicAuth/commit/1dcb4d98de8a95f6b11d7bad90b9059110087385))
|
|
16
|
+
* update title of hardware wallet select screen ([#5270](https://github.com/dynamic-labs/DynamicAuth/issues/5270)) ([6e8fe17](https://github.com/dynamic-labs/DynamicAuth/commit/6e8fe17306677786ccf528b97ab673b9ae6b57b9))
|
|
17
|
+
|
|
2
18
|
## [2.0.0-alpha.26](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.25...v2.0.0-alpha.26) (2024-04-08)
|
|
3
19
|
|
|
4
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.28",
|
|
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.
|
|
30
|
-
"@dynamic-labs/logger": "2.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/utils": "2.0.0-alpha.
|
|
29
|
+
"@dynamic-labs/iconic": "2.0.0-alpha.28",
|
|
30
|
+
"@dynamic-labs/logger": "2.0.0-alpha.28",
|
|
31
|
+
"@dynamic-labs/utils": "2.0.0-alpha.28",
|
|
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, {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const getWalletBookWallet = (walletBook, walletKey) => {
|
|
6
|
-
var _a, _b;
|
|
5
|
+
const getWalletBookWallet = (walletBook, walletKey, walletFallback) => {
|
|
6
|
+
var _a, _b, _c;
|
|
7
7
|
if (!walletKey)
|
|
8
8
|
throw new Error('Wallet key is required. Please pass in a wallet key to getWalletBookWallet');
|
|
9
|
-
const walletData = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
|
|
9
|
+
const walletData = (_b = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey]) !== null && _b !== void 0 ? _b : walletFallback;
|
|
10
10
|
if (!walletData) {
|
|
11
|
-
throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((
|
|
11
|
+
throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((_c = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _c !== void 0 ? _c : {}).length} wallets found)`);
|
|
12
12
|
}
|
|
13
13
|
return walletData;
|
|
14
14
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WalletBookSchema, WalletSchema } from '../schemas';
|
|
2
|
-
export declare const getWalletBookWallet: (walletBook: WalletBookSchema, walletKey: string | undefined) => WalletSchema;
|
|
2
|
+
export declare const getWalletBookWallet: (walletBook: WalletBookSchema, walletKey: string | undefined, walletFallback?: WalletSchema) => WalletSchema;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const getWalletBookWallet = (walletBook, walletKey) => {
|
|
2
|
-
var _a, _b;
|
|
1
|
+
const getWalletBookWallet = (walletBook, walletKey, walletFallback) => {
|
|
2
|
+
var _a, _b, _c;
|
|
3
3
|
if (!walletKey)
|
|
4
4
|
throw new Error('Wallet key is required. Please pass in a wallet key to getWalletBookWallet');
|
|
5
|
-
const walletData = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
|
|
5
|
+
const walletData = (_b = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey]) !== null && _b !== void 0 ? _b : walletFallback;
|
|
6
6
|
if (!walletData) {
|
|
7
|
-
throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((
|
|
7
|
+
throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((_c = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _c !== void 0 ? _c : {}).length} wallets found)`);
|
|
8
8
|
}
|
|
9
9
|
return walletData;
|
|
10
10
|
};
|
|
@@ -408,12 +408,16 @@ var wallets = {
|
|
|
408
408
|
},
|
|
409
409
|
name: "Argent X"
|
|
410
410
|
},
|
|
411
|
-
|
|
411
|
+
perawallet: {
|
|
412
412
|
brand: {
|
|
413
|
-
alt: "
|
|
414
|
-
spriteId: "
|
|
413
|
+
alt: "Pera Wallet",
|
|
414
|
+
spriteId: "pera"
|
|
415
415
|
},
|
|
416
|
-
|
|
416
|
+
mobile: {
|
|
417
|
+
androidId: "com.algorand.android",
|
|
418
|
+
iosId: "id1459898525"
|
|
419
|
+
},
|
|
420
|
+
name: "Pera Wallet"
|
|
417
421
|
},
|
|
418
422
|
blocto: {
|
|
419
423
|
brand: {
|
|
@@ -949,13 +953,6 @@ var wallets = {
|
|
|
949
953
|
}
|
|
950
954
|
],
|
|
951
955
|
name: "UniSat"
|
|
952
|
-
},
|
|
953
|
-
zerodev: {
|
|
954
|
-
brand: {
|
|
955
|
-
alt: "Smart Wallet",
|
|
956
|
-
spriteId: "smartwallet"
|
|
957
|
-
},
|
|
958
|
-
name: "ZeroDev"
|
|
959
956
|
}
|
|
960
957
|
};
|
|
961
958
|
var walletBookFallbacks = {
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -404,12 +404,16 @@ var wallets = {
|
|
|
404
404
|
},
|
|
405
405
|
name: "Argent X"
|
|
406
406
|
},
|
|
407
|
-
|
|
407
|
+
perawallet: {
|
|
408
408
|
brand: {
|
|
409
|
-
alt: "
|
|
410
|
-
spriteId: "
|
|
409
|
+
alt: "Pera Wallet",
|
|
410
|
+
spriteId: "pera"
|
|
411
411
|
},
|
|
412
|
-
|
|
412
|
+
mobile: {
|
|
413
|
+
androidId: "com.algorand.android",
|
|
414
|
+
iosId: "id1459898525"
|
|
415
|
+
},
|
|
416
|
+
name: "Pera Wallet"
|
|
413
417
|
},
|
|
414
418
|
blocto: {
|
|
415
419
|
brand: {
|
|
@@ -945,13 +949,6 @@ var wallets = {
|
|
|
945
949
|
}
|
|
946
950
|
],
|
|
947
951
|
name: "UniSat"
|
|
948
|
-
},
|
|
949
|
-
zerodev: {
|
|
950
|
-
brand: {
|
|
951
|
-
alt: "Smart Wallet",
|
|
952
|
-
spriteId: "smartwallet"
|
|
953
|
-
},
|
|
954
|
-
name: "ZeroDev"
|
|
955
952
|
}
|
|
956
953
|
};
|
|
957
954
|
var walletBookFallbacks = {
|