|
1 | 1 | import { WalletData } from "@/lib/types"
|
2 | 2 |
|
| 3 | +import { newToCrypto } from "./new-to-crypto" |
| 4 | + |
3 | 5 | import OneInchWalletImage from "@/public/images/wallets/1inch.png"
|
4 | 6 | import AlphaWalletImage from "@/public/images/wallets/alpha.png"
|
5 | 7 | import AmbireImage from "@/public/images/wallets/ambire.png"
|
@@ -40,7 +42,7 @@ import TrustWalletImage from "@/public/images/wallets/trustwallet.png"
|
40 | 42 | import UnstoppableWalletImage from "@/public/images/wallets/unstoppable.png"
|
41 | 43 | import ZerionImage from "@/public/images/wallets/zerion.png"
|
42 | 44 |
|
43 |
| -export const walletsData: WalletData[] = [ |
| 45 | +const walletsData = [ |
44 | 46 | {
|
45 | 47 | last_updated: "2024-10-30",
|
46 | 48 | name: "Keystone",
|
@@ -235,7 +237,6 @@ export const walletsData: WalletData[] = [
|
235 | 237 | social_recovery: false,
|
236 | 238 | onboard_documentation: "https://www.coinbase.com/wallet/tutorials",
|
237 | 239 | documentation: "",
|
238 |
| - new_to_crypto: true, |
239 | 240 | // note: "Community contribution, let's follow up with Coinbase",
|
240 | 241 | },
|
241 | 242 | {
|
@@ -789,7 +790,6 @@ export const walletsData: WalletData[] = [
|
789 | 790 | social_recovery: false,
|
790 | 791 | onboard_documentation: "https://www.mewtopia.com/",
|
791 | 792 | documentation: "https://help.myetherwallet.com/en/",
|
792 |
| - new_to_crypto: true, |
793 | 793 | },
|
794 | 794 | {
|
795 | 795 | last_updated: "2022-06-24",
|
@@ -1092,7 +1092,6 @@ export const walletsData: WalletData[] = [
|
1092 | 1092 | social_recovery: false,
|
1093 | 1093 | onboard_documentation: "https://learn.rainbow.me/",
|
1094 | 1094 | documentation: "",
|
1095 |
| - new_to_crypto: true, |
1096 | 1095 | },
|
1097 | 1096 | {
|
1098 | 1097 | last_updated: "2024-09-01",
|
@@ -1335,7 +1334,6 @@ export const walletsData: WalletData[] = [
|
1335 | 1334 | social_recovery: false,
|
1336 | 1335 | onboard_documentation: "",
|
1337 | 1336 | documentation: "",
|
1338 |
| - new_to_crypto: false, |
1339 | 1337 | },
|
1340 | 1338 | {
|
1341 | 1339 | last_updated: "2024-09-26",
|
@@ -1396,7 +1394,6 @@ export const walletsData: WalletData[] = [
|
1396 | 1394 | onboard_documentation:
|
1397 | 1395 | "https://help.zerion.io/en/collections/5525626-zerion-wallet",
|
1398 | 1396 | documentation: "https://help.zerion.io/en/",
|
1399 |
| - new_to_crypto: true, |
1400 | 1397 | },
|
1401 | 1398 | {
|
1402 | 1399 | last_updated: "2022-08-31",
|
@@ -1642,7 +1639,6 @@ export const walletsData: WalletData[] = [
|
1642 | 1639 | social_recovery: false,
|
1643 | 1640 | onboard_documentation: "https://help.onekey.so/hc/en-us",
|
1644 | 1641 | documentation: "https://developer.onekey.so/guide/introduction",
|
1645 |
| - new_to_crypto: true, |
1646 | 1642 | },
|
1647 | 1643 | {
|
1648 | 1644 | last_updated: "2023-04-21",
|
@@ -2081,6 +2077,13 @@ export const walletsData: WalletData[] = [
|
2081 | 2077 | onboard_documentation: "https://clear-wallet.flashsoft.eu/",
|
2082 | 2078 | documentation: "https://clear-wallet.flashsoft.eu/docs/",
|
2083 | 2079 | },
|
2084 |
| -] |
| 2080 | +] as const satisfies Omit<WalletData, "new_to_crypto">[] |
| 2081 | + |
| 2082 | +export type WalletName = (typeof walletsData)[number]["name"] |
| 2083 | + |
| 2084 | +const allWalletData = walletsData.map((wallet) => ({ |
| 2085 | + ...wallet, |
| 2086 | + new_to_crypto: newToCrypto.includes(wallet.name), |
| 2087 | +})) as WalletData[] |
2085 | 2088 |
|
2086 |
| -export default walletsData |
| 2089 | +export default allWalletData |
0 commit comments