@dynamic-labs/wallet-book 0.17.16 → 0.17.100-viem.1
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 +2 -0
- package/package.json +2 -2
- package/src/build/generateGroups.d.ts +2 -2
- package/src/build/index.d.ts +1 -1
- package/src/build/sources/firstParty/index.d.ts +2 -2
- package/src/build/sources/groups/index.d.ts +2 -2
- package/src/build/sources/index.d.ts +3 -3
- package/src/build/sources/walletConnect/index.d.ts +91 -91
- package/src/build/sources/walletConnect/preprocessors.d.ts +13 -13
- package/src/build/sources/walletConnectOverrides/index.d.ts +185 -185
- package/src/components/WalletIcon.cjs +12 -12
- package/src/components/WalletIcon.d.ts +6 -6
- package/src/components/WalletIcon.js +12 -12
- package/src/components/index.d.ts +1 -1
- package/src/helpers/findWalletBookWallet.cjs +9 -9
- package/src/helpers/findWalletBookWallet.d.ts +34 -34
- package/src/helpers/findWalletBookWallet.js +9 -9
- package/src/helpers/findWalletGroup.d.ts +43 -43
- package/src/helpers/getIconUrl.cjs +14 -14
- package/src/helpers/getIconUrl.d.ts +1 -1
- package/src/helpers/getIconUrl.js +14 -14
- package/src/helpers/getWalletBookCdnUrl.d.ts +1 -1
- package/src/helpers/getWalletBookWallet.cjs +7 -7
- package/src/helpers/getWalletBookWallet.d.ts +2 -2
- package/src/helpers/getWalletBookWallet.js +7 -7
- package/src/helpers/getWalletGroup.cjs +6 -6
- package/src/helpers/getWalletGroup.d.ts +2 -2
- package/src/helpers/getWalletGroup.js +6 -6
- package/src/helpers/getWalletLinks.cjs +25 -25
- package/src/helpers/getWalletLinks.d.ts +9 -9
- package/src/helpers/getWalletLinks.js +25 -25
- package/src/helpers/getWalletPrimaryColor.cjs +3 -3
- package/src/helpers/getWalletPrimaryColor.d.ts +1 -1
- package/src/helpers/getWalletPrimaryColor.js +3 -3
- package/src/helpers/index.d.ts +11 -11
- package/src/helpers/logger.d.ts +2 -2
- package/src/helpers/normalizeWalletName.d.ts +1 -1
- package/src/helpers/renderTemplate.cjs +13 -13
- package/src/helpers/renderTemplate.d.ts +12 -12
- package/src/helpers/renderTemplate.js +13 -13
- package/src/hooks/index.d.ts +2 -2
- package/src/hooks/useWalletBook.d.ts +2 -2
- package/src/hooks/useWalletBookCdn.d.ts +79 -79
- package/src/index.d.ts +18 -18
- package/src/schemas/index.d.ts +3 -3
- package/src/schemas/utils/filterEmptyObject.d.ts +6 -6
- package/src/schemas/utils/nonEmptyString.d.ts +5 -5
- package/src/schemas/utils/nonEmptyStringArray.d.ts +5 -5
- package/src/schemas/utils/sortKeys.d.ts +5 -5
- package/src/schemas/utils/transformAndroidId.d.ts +1 -1
- package/src/schemas/utils/transformChromeExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformEdgeExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformFirefoxExtensionId.d.ts +1 -1
- package/src/schemas/utils/transformIosId.d.ts +1 -1
- package/src/schemas/walletBookSchema.d.ts +1317 -1317
- package/src/schemas/walletConnectSourceSchema.d.ts +504 -504
- package/src/schemas/walletGroup.d.ts +336 -336
- package/src/schemas/walletSchema.d.ts +256 -256
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.100-viem.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"react-dom": "^17.0.2 || ^18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dynamic-labs/logger": "0.17.
|
|
32
|
+
"@dynamic-labs/logger": "0.17.100-viem.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletBookGroupSchema, WalletRecordsSchema } from '../schemas';
|
|
2
|
-
export declare const generateGroups: (wallets: WalletRecordsSchema) => WalletBookGroupSchema;
|
|
1
|
+
import { WalletBookGroupSchema, WalletRecordsSchema } from '../schemas';
|
|
2
|
+
export declare const generateGroups: (wallets: WalletRecordsSchema) => WalletBookGroupSchema;
|
package/src/build/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletRecordsSchema } from '../../../schemas';
|
|
2
|
-
export declare const firstPartyWalletsData: WalletRecordsSchema;
|
|
1
|
+
import { WalletRecordsSchema } from '../../../schemas';
|
|
2
|
+
export declare const firstPartyWalletsData: WalletRecordsSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletGroupRecordSchema } from '../../../schemas';
|
|
2
|
-
export declare const groups: WalletGroupRecordSchema;
|
|
1
|
+
import { WalletGroupRecordSchema } from '../../../schemas';
|
|
2
|
+
export declare const groups: WalletGroupRecordSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './firstParty';
|
|
2
|
-
export * from './walletConnect';
|
|
3
|
-
export * from './walletConnectOverrides';
|
|
1
|
+
export * from './firstParty';
|
|
2
|
+
export * from './walletConnect';
|
|
3
|
+
export * from './walletConnectOverrides';
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
export declare const walletConnectSourceData: Record<string, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
slug: string;
|
|
48
|
-
supported_standards: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}[];
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
versions: string[];
|
|
57
|
-
}>;
|
|
58
|
-
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
59
|
-
name: string;
|
|
60
|
-
brand?: {
|
|
61
|
-
alt?: string | undefined;
|
|
62
|
-
imageId?: string | undefined;
|
|
63
|
-
primaryColor?: string | undefined;
|
|
64
|
-
spriteId?: string | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
chains?: string[] | undefined;
|
|
67
|
-
desktop?: {
|
|
68
|
-
chromeId?: string | undefined;
|
|
69
|
-
edgeId?: string | undefined;
|
|
70
|
-
firefoxId?: string | undefined;
|
|
71
|
-
native?: string | undefined;
|
|
72
|
-
operaId?: string | undefined;
|
|
73
|
-
safariId?: string | undefined;
|
|
74
|
-
universal?: string | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
group?: string | undefined;
|
|
77
|
-
mobile?: {
|
|
78
|
-
android?: string | null | undefined;
|
|
79
|
-
androidId?: string | undefined;
|
|
80
|
-
ios?: string | null | undefined;
|
|
81
|
-
iosId?: string | undefined;
|
|
82
|
-
native?: string | undefined;
|
|
83
|
-
universal?: string | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
shortName?: string | undefined;
|
|
86
|
-
showOnlyIfInstalled?: boolean | undefined;
|
|
87
|
-
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
88
|
-
walletConnect?: {
|
|
89
|
-
sdks?: string[] | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}>>;
|
|
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
|
+
chains: string[];
|
|
11
|
+
desktop: {
|
|
12
|
+
native: string | null;
|
|
13
|
+
universal: string | null;
|
|
14
|
+
};
|
|
15
|
+
mobile: {
|
|
16
|
+
native: string | null;
|
|
17
|
+
universal: string | null;
|
|
18
|
+
};
|
|
19
|
+
name: string;
|
|
20
|
+
sdks: string[];
|
|
21
|
+
app: {
|
|
22
|
+
android: string | null;
|
|
23
|
+
ios: string | null;
|
|
24
|
+
opera: string | null;
|
|
25
|
+
browser: string | null;
|
|
26
|
+
chrome: string | null;
|
|
27
|
+
edge: string | null;
|
|
28
|
+
firefox: string | null;
|
|
29
|
+
linux: string | null;
|
|
30
|
+
mac: string | null;
|
|
31
|
+
safari: string | null;
|
|
32
|
+
windows: string | null;
|
|
33
|
+
};
|
|
34
|
+
app_type: string;
|
|
35
|
+
description: string | null;
|
|
36
|
+
homepage: string;
|
|
37
|
+
image_id: string;
|
|
38
|
+
image_url: {
|
|
39
|
+
lg: string;
|
|
40
|
+
md: string;
|
|
41
|
+
sm: string;
|
|
42
|
+
};
|
|
43
|
+
injected: {
|
|
44
|
+
injected_id: string;
|
|
45
|
+
namespace: string;
|
|
46
|
+
}[] | null;
|
|
47
|
+
slug: string;
|
|
48
|
+
supported_standards: {
|
|
49
|
+
url: string;
|
|
50
|
+
id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
standard_id: number;
|
|
53
|
+
standard_prefix: string;
|
|
54
|
+
}[];
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
versions: string[];
|
|
57
|
+
}>;
|
|
58
|
+
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
59
|
+
name: string;
|
|
60
|
+
brand?: {
|
|
61
|
+
alt?: string | undefined;
|
|
62
|
+
imageId?: string | undefined;
|
|
63
|
+
primaryColor?: string | undefined;
|
|
64
|
+
spriteId?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
chains?: string[] | undefined;
|
|
67
|
+
desktop?: {
|
|
68
|
+
chromeId?: string | undefined;
|
|
69
|
+
edgeId?: string | undefined;
|
|
70
|
+
firefoxId?: string | undefined;
|
|
71
|
+
native?: string | undefined;
|
|
72
|
+
operaId?: string | undefined;
|
|
73
|
+
safariId?: string | undefined;
|
|
74
|
+
universal?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
group?: string | undefined;
|
|
77
|
+
mobile?: {
|
|
78
|
+
android?: string | null | undefined;
|
|
79
|
+
androidId?: string | undefined;
|
|
80
|
+
ios?: string | null | undefined;
|
|
81
|
+
iosId?: string | undefined;
|
|
82
|
+
native?: string | undefined;
|
|
83
|
+
universal?: string | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
shortName?: string | undefined;
|
|
86
|
+
showOnlyIfInstalled?: boolean | undefined;
|
|
87
|
+
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
88
|
+
walletConnect?: {
|
|
89
|
+
sdks?: string[] | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const preprocessFilterWCWallets: (sourceData: any) => void;
|
|
2
|
-
export declare const preprocessBrand: (sourceData: any) => void;
|
|
3
|
-
export declare const preprocessDesktop: (sourceData: any) => void;
|
|
4
|
-
export declare const preprocessMobile: (sourceData: any) => void;
|
|
5
|
-
export declare const preprocessSdks: (sourceData: any) => void;
|
|
6
|
-
export declare const preprocessUniversal: (data: any) => Promise<void>;
|
|
7
|
-
export declare const preprocessNative: (data: any) => void;
|
|
8
|
-
/**
|
|
9
|
-
* 1. Convert the name to lowercase
|
|
10
|
-
* 2. Replace all spaces with empty string
|
|
11
|
-
* 3. Use the new name as the key
|
|
12
|
-
*/
|
|
13
|
-
export declare const preprocessRenameKey: (sourceData: any) => void;
|
|
1
|
+
export declare const preprocessFilterWCWallets: (sourceData: any) => void;
|
|
2
|
+
export declare const preprocessBrand: (sourceData: any) => void;
|
|
3
|
+
export declare const preprocessDesktop: (sourceData: any) => void;
|
|
4
|
+
export declare const preprocessMobile: (sourceData: any) => void;
|
|
5
|
+
export declare const preprocessSdks: (sourceData: any) => void;
|
|
6
|
+
export declare const preprocessUniversal: (data: any) => Promise<void>;
|
|
7
|
+
export declare const preprocessNative: (data: any) => void;
|
|
8
|
+
/**
|
|
9
|
+
* 1. Convert the name to lowercase
|
|
10
|
+
* 2. Replace all spaces with empty string
|
|
11
|
+
* 3. Use the new name as the key
|
|
12
|
+
*/
|
|
13
|
+
export declare const preprocessRenameKey: (sourceData: any) => void;
|
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
export declare const WALLET_CONNECT_ENTRIES_TO_REMOVE: string[];
|
|
2
|
-
export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
3
|
-
cryptocom: {
|
|
4
|
-
mobile: {
|
|
5
|
-
action: string;
|
|
6
|
-
value: null;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
dawn: {
|
|
10
|
-
brand: {
|
|
11
|
-
imageId: {
|
|
12
|
-
action: string;
|
|
13
|
-
value: null;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
ledger: {
|
|
18
|
-
switchNetworkOnlyFromWallet: {
|
|
19
|
-
action: string;
|
|
20
|
-
value: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
lilico: {
|
|
24
|
-
brand: {
|
|
25
|
-
imageId: {
|
|
26
|
-
action: string;
|
|
27
|
-
value: null;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
metamask: {
|
|
32
|
-
brand: {
|
|
33
|
-
imageId: {
|
|
34
|
-
action: string;
|
|
35
|
-
value: null;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
walletConnect: {
|
|
39
|
-
sdks: {
|
|
40
|
-
action: string;
|
|
41
|
-
value: string[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
rainbow: {
|
|
46
|
-
brand: {
|
|
47
|
-
imageId: {
|
|
48
|
-
action: string;
|
|
49
|
-
value: null;
|
|
50
|
-
};
|
|
51
|
-
spriteId: {
|
|
52
|
-
action: string;
|
|
53
|
-
value: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
safepal: {
|
|
58
|
-
switchNetworkOnlyFromWallet: {
|
|
59
|
-
action: string;
|
|
60
|
-
value: boolean;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
trust: {
|
|
64
|
-
chains: {
|
|
65
|
-
action: string;
|
|
66
|
-
value: string[];
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
zengo: {
|
|
70
|
-
brand: {
|
|
71
|
-
imageId: {
|
|
72
|
-
action: string;
|
|
73
|
-
value: null;
|
|
74
|
-
};
|
|
75
|
-
primaryColor: {
|
|
76
|
-
action: string;
|
|
77
|
-
value: string;
|
|
78
|
-
};
|
|
79
|
-
spriteId: {
|
|
80
|
-
action: string;
|
|
81
|
-
value: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
zerion: {
|
|
86
|
-
brand: {
|
|
87
|
-
primaryColor: {
|
|
88
|
-
action: string;
|
|
89
|
-
value: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
}) => void;
|
|
94
|
-
export declare const walletConnectOverrides: {
|
|
95
|
-
cryptocom: {
|
|
96
|
-
mobile: {
|
|
97
|
-
action: string;
|
|
98
|
-
value: null;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
dawn: {
|
|
102
|
-
brand: {
|
|
103
|
-
imageId: {
|
|
104
|
-
action: string;
|
|
105
|
-
value: null;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
ledger: {
|
|
110
|
-
switchNetworkOnlyFromWallet: {
|
|
111
|
-
action: string;
|
|
112
|
-
value: boolean;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
lilico: {
|
|
116
|
-
brand: {
|
|
117
|
-
imageId: {
|
|
118
|
-
action: string;
|
|
119
|
-
value: null;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
metamask: {
|
|
124
|
-
brand: {
|
|
125
|
-
imageId: {
|
|
126
|
-
action: string;
|
|
127
|
-
value: null;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
walletConnect: {
|
|
131
|
-
sdks: {
|
|
132
|
-
action: string;
|
|
133
|
-
value: string[];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
rainbow: {
|
|
138
|
-
brand: {
|
|
139
|
-
imageId: {
|
|
140
|
-
action: string;
|
|
141
|
-
value: null;
|
|
142
|
-
};
|
|
143
|
-
spriteId: {
|
|
144
|
-
action: string;
|
|
145
|
-
value: string;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
safepal: {
|
|
150
|
-
switchNetworkOnlyFromWallet: {
|
|
151
|
-
action: string;
|
|
152
|
-
value: boolean;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
trust: {
|
|
156
|
-
chains: {
|
|
157
|
-
action: string;
|
|
158
|
-
value: string[];
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
zengo: {
|
|
162
|
-
brand: {
|
|
163
|
-
imageId: {
|
|
164
|
-
action: string;
|
|
165
|
-
value: null;
|
|
166
|
-
};
|
|
167
|
-
primaryColor: {
|
|
168
|
-
action: string;
|
|
169
|
-
value: string;
|
|
170
|
-
};
|
|
171
|
-
spriteId: {
|
|
172
|
-
action: string;
|
|
173
|
-
value: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
zerion: {
|
|
178
|
-
brand: {
|
|
179
|
-
primaryColor: {
|
|
180
|
-
action: string;
|
|
181
|
-
value: string;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
};
|
|
1
|
+
export declare const WALLET_CONNECT_ENTRIES_TO_REMOVE: string[];
|
|
2
|
+
export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
3
|
+
cryptocom: {
|
|
4
|
+
mobile: {
|
|
5
|
+
action: string;
|
|
6
|
+
value: null;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
dawn: {
|
|
10
|
+
brand: {
|
|
11
|
+
imageId: {
|
|
12
|
+
action: string;
|
|
13
|
+
value: null;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
ledger: {
|
|
18
|
+
switchNetworkOnlyFromWallet: {
|
|
19
|
+
action: string;
|
|
20
|
+
value: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
lilico: {
|
|
24
|
+
brand: {
|
|
25
|
+
imageId: {
|
|
26
|
+
action: string;
|
|
27
|
+
value: null;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
metamask: {
|
|
32
|
+
brand: {
|
|
33
|
+
imageId: {
|
|
34
|
+
action: string;
|
|
35
|
+
value: null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
walletConnect: {
|
|
39
|
+
sdks: {
|
|
40
|
+
action: string;
|
|
41
|
+
value: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
rainbow: {
|
|
46
|
+
brand: {
|
|
47
|
+
imageId: {
|
|
48
|
+
action: string;
|
|
49
|
+
value: null;
|
|
50
|
+
};
|
|
51
|
+
spriteId: {
|
|
52
|
+
action: string;
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
safepal: {
|
|
58
|
+
switchNetworkOnlyFromWallet: {
|
|
59
|
+
action: string;
|
|
60
|
+
value: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
trust: {
|
|
64
|
+
chains: {
|
|
65
|
+
action: string;
|
|
66
|
+
value: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
zengo: {
|
|
70
|
+
brand: {
|
|
71
|
+
imageId: {
|
|
72
|
+
action: string;
|
|
73
|
+
value: null;
|
|
74
|
+
};
|
|
75
|
+
primaryColor: {
|
|
76
|
+
action: string;
|
|
77
|
+
value: string;
|
|
78
|
+
};
|
|
79
|
+
spriteId: {
|
|
80
|
+
action: string;
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
zerion: {
|
|
86
|
+
brand: {
|
|
87
|
+
primaryColor: {
|
|
88
|
+
action: string;
|
|
89
|
+
value: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}) => void;
|
|
94
|
+
export declare const walletConnectOverrides: {
|
|
95
|
+
cryptocom: {
|
|
96
|
+
mobile: {
|
|
97
|
+
action: string;
|
|
98
|
+
value: null;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
dawn: {
|
|
102
|
+
brand: {
|
|
103
|
+
imageId: {
|
|
104
|
+
action: string;
|
|
105
|
+
value: null;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
ledger: {
|
|
110
|
+
switchNetworkOnlyFromWallet: {
|
|
111
|
+
action: string;
|
|
112
|
+
value: boolean;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
lilico: {
|
|
116
|
+
brand: {
|
|
117
|
+
imageId: {
|
|
118
|
+
action: string;
|
|
119
|
+
value: null;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
metamask: {
|
|
124
|
+
brand: {
|
|
125
|
+
imageId: {
|
|
126
|
+
action: string;
|
|
127
|
+
value: null;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
walletConnect: {
|
|
131
|
+
sdks: {
|
|
132
|
+
action: string;
|
|
133
|
+
value: string[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
rainbow: {
|
|
138
|
+
brand: {
|
|
139
|
+
imageId: {
|
|
140
|
+
action: string;
|
|
141
|
+
value: null;
|
|
142
|
+
};
|
|
143
|
+
spriteId: {
|
|
144
|
+
action: string;
|
|
145
|
+
value: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
safepal: {
|
|
150
|
+
switchNetworkOnlyFromWallet: {
|
|
151
|
+
action: string;
|
|
152
|
+
value: boolean;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
trust: {
|
|
156
|
+
chains: {
|
|
157
|
+
action: string;
|
|
158
|
+
value: string[];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
zengo: {
|
|
162
|
+
brand: {
|
|
163
|
+
imageId: {
|
|
164
|
+
action: string;
|
|
165
|
+
value: null;
|
|
166
|
+
};
|
|
167
|
+
primaryColor: {
|
|
168
|
+
action: string;
|
|
169
|
+
value: string;
|
|
170
|
+
};
|
|
171
|
+
spriteId: {
|
|
172
|
+
action: string;
|
|
173
|
+
value: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
zerion: {
|
|
178
|
+
brand: {
|
|
179
|
+
primaryColor: {
|
|
180
|
+
action: string;
|
|
181
|
+
value: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
@@ -7,18 +7,18 @@ var getIconUrl = require('../helpers/getIconUrl.cjs');
|
|
|
7
7
|
var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
|
|
8
8
|
require('../helpers/logger.cjs');
|
|
9
9
|
|
|
10
|
-
const WalletIcon = ({ walletName, children, ...props }) => {
|
|
11
|
-
const walletData = findWalletBookWallet.findWalletBookWallet(walletName);
|
|
12
|
-
const walletIconUrl = getIconUrl.getWalletIconUrl(walletName);
|
|
13
|
-
if (!walletData || !walletData.brand || !walletIconUrl) {
|
|
14
|
-
return react.createElement(react.Fragment, {}, children);
|
|
15
|
-
}
|
|
16
|
-
return react.createElement('img', {
|
|
17
|
-
'data-testid': `wallet-icon-${walletName}`,
|
|
18
|
-
...props,
|
|
19
|
-
alt: walletData.brand.alt,
|
|
20
|
-
src: walletIconUrl,
|
|
21
|
-
}, children);
|
|
10
|
+
const WalletIcon = ({ walletName, children, ...props }) => {
|
|
11
|
+
const walletData = findWalletBookWallet.findWalletBookWallet(walletName);
|
|
12
|
+
const walletIconUrl = getIconUrl.getWalletIconUrl(walletName);
|
|
13
|
+
if (!walletData || !walletData.brand || !walletIconUrl) {
|
|
14
|
+
return react.createElement(react.Fragment, {}, children);
|
|
15
|
+
}
|
|
16
|
+
return react.createElement('img', {
|
|
17
|
+
'data-testid': `wallet-icon-${walletName}`,
|
|
18
|
+
...props,
|
|
19
|
+
alt: walletData.brand.alt,
|
|
20
|
+
src: walletIconUrl,
|
|
21
|
+
}, children);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
exports.WalletIcon = WalletIcon;
|