|
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"
|
@@ -39,7 +41,7 @@ import UnstoppableWalletImage from "@/public/images/wallets/unstoppable.png"
|
39 | 41 | import XDEFIImage from "@/public/images/wallets/xdefi.png"
|
40 | 42 | import ZerionImage from "@/public/images/wallets/zerion.png"
|
41 | 43 |
|
42 |
| -export const walletsData: WalletData[] = [ |
| 44 | +const walletsData = [ |
43 | 45 | {
|
44 | 46 | last_updated: "2022-06-22",
|
45 | 47 | name: "Keystone",
|
@@ -229,7 +231,6 @@ export const walletsData: WalletData[] = [
|
229 | 231 | social_recovery: false,
|
230 | 232 | onboard_documentation: "https://www.coinbase.com/wallet/tutorials",
|
231 | 233 | documentation: "",
|
232 |
| - new_to_crypto: true, |
233 | 234 | // note: "Community contribution, let's follow up with Coinbase",
|
234 | 235 | },
|
235 | 236 | {
|
@@ -764,7 +765,6 @@ export const walletsData: WalletData[] = [
|
764 | 765 | social_recovery: false,
|
765 | 766 | onboard_documentation: "https://www.mewtopia.com/",
|
766 | 767 | documentation: "https://help.myetherwallet.com/en/",
|
767 |
| - new_to_crypto: true, |
768 | 768 | },
|
769 | 769 | {
|
770 | 770 | last_updated: "2022-06-24",
|
@@ -1061,7 +1061,6 @@ export const walletsData: WalletData[] = [
|
1061 | 1061 | social_recovery: false,
|
1062 | 1062 | onboard_documentation: "https://learn.rainbow.me/",
|
1063 | 1063 | documentation: "",
|
1064 |
| - new_to_crypto: true, |
1065 | 1064 | },
|
1066 | 1065 | {
|
1067 | 1066 | last_updated: "2024-09-01",
|
@@ -1311,7 +1310,6 @@ export const walletsData: WalletData[] = [
|
1311 | 1310 | social_recovery: false,
|
1312 | 1311 | onboard_documentation: "",
|
1313 | 1312 | documentation: "",
|
1314 |
| - new_to_crypto: false, |
1315 | 1313 | },
|
1316 | 1314 | {
|
1317 | 1315 | last_updated: "2024-09-26",
|
@@ -1371,7 +1369,6 @@ export const walletsData: WalletData[] = [
|
1371 | 1369 | onboard_documentation:
|
1372 | 1370 | "https://help.zerion.io/en/collections/5525626-zerion-wallet",
|
1373 | 1371 | documentation: "https://help.zerion.io/en/",
|
1374 |
| - new_to_crypto: true, |
1375 | 1372 | },
|
1376 | 1373 | {
|
1377 | 1374 | last_updated: "2022-08-31",
|
@@ -1613,7 +1610,6 @@ export const walletsData: WalletData[] = [
|
1613 | 1610 | social_recovery: false,
|
1614 | 1611 | onboard_documentation: "https://help.onekey.so/hc/en-us",
|
1615 | 1612 | documentation: "https://developer.onekey.so/guide/introduction",
|
1616 |
| - new_to_crypto: true, |
1617 | 1613 | },
|
1618 | 1614 | {
|
1619 | 1615 | last_updated: "2023-04-21",
|
@@ -2008,6 +2004,13 @@ export const walletsData: WalletData[] = [
|
2008 | 2004 | onboard_documentation: "https://docs.gemwallet.com/",
|
2009 | 2005 | documentation: "https://docs.gemwallet.com/",
|
2010 | 2006 | },
|
2011 |
| -] |
| 2007 | +] as const satisfies Omit<WalletData, "new_to_crypto">[] |
| 2008 | + |
| 2009 | +export type WalletName = (typeof walletsData)[number]["name"] |
| 2010 | + |
| 2011 | +const allWalletData = walletsData.map((wallet) => ({ |
| 2012 | + ...wallet, |
| 2013 | + new_to_crypto: newToCrypto.includes(wallet.name), |
| 2014 | +})) as WalletData[] |
2012 | 2015 |
|
2013 |
| -export default walletsData |
| 2016 | +export default allWalletData |
0 commit comments