Add unstoppable domains Better error message

Add unstoppable domains Better error message

OmarHatem committed Feb 28, 2025 at 19:55 UTC fd4254d65b4feca76bfe12a4dee1adf028ea6cb0
2 files changed +59 -1
lib/buy/robinhood/robinhood_buy_provider.dart
+1 -1
@@ -59,7 +59,7 @@ class RobinhoodBuyProvider extends BuyProvider {
59 case WalletType.bitcoinCash:
60 return await wallet.signMessage(message, address: wallet.walletAddresses.address);
61 default:
62 - throw Exception("WalletType is not available for Robinhood ${wallet.type}");
62 + throw Exception("Wallet Type ${wallet.type.name} is not available for Robinhood");
63 }
64 }
65
lib/entities/parse_address_from_domain.dart
+58
@@ -32,33 +32,56 @@ class AddressResolver {
32
33 static const unstoppableDomains = [
34 "888",
35 + "academy",
36 + "agency",
37 "altimist",
38 "anime",
39 "austin",
40 "bald",
41 + "bay",
42 "benji",
43 "bet",
44 "binanceus",
45 "bitcoin",
46 "bitget",
47 + "bitscrunch",
48 "blockchain",
49 + "boomer",
50 + "boston",
51 "ca",
52 + "caw",
53 + "cc",
54 + "chat",
55 "chomp",
56 "clay",
57 + "club",
58 "co",
59 "com",
60 + "company",
61 "crypto",
62 "dao",
63 + "design",
64 "dfz",
65 "digital",
66 + "doga",
67 + "donut",
68 "dream",
69 + "email",
70 + "emir",
71 "eth",
72 "ethermail",
73 + "family",
74 "farms",
75 + "finance",
76 "fun",
77 + "fyi",
78 + "games",
79 + "global",
80 "go",
81 "group",
82 + "guru",
83 "hi",
84 + "hockey",
85 "host",
86 "info",
87 "io",
@@ -68,43 +91,78 @@ class AddressResolver {
91 "lfg",
92 "life",
93 "live",
94 + "llc",
95 + "ltc",
96 "ltd",
97 "manga",
98 + "me",
99 + "media",
100 "metropolis",
101 + "miami",
102 + "miku",
103 + "money",
104 "moon",
105 "mumu",
106 "net",
107 + "network",
108 + "news",
109 "nft",
110 + "npc",
111 + "onchain",
112 "online",
113 "org",
114 + "podcast",
115 "pog",
116 "polygon",
117 "press",
118 + "privacy",
119 "pro",
120 "propykeys",
121 "pudgy",
122 "pw",
123 + "quantum",
124 + "rad",
125 "raiin",
126 + "retardio",
127 + "rip",
128 + "rocks",
129 "secret",
130 + "services",
131 "site",
132 "smobler",
133 + "social",
134 + "solutions",
135 "space",
136 "stepn",
137 "store",
138 + "studio",
139 + "systems",
140 "tball",
141 + "tea",
142 + "team",
143 "tech",
144 + "technology",
145 + "today",
146 + "tribe",
147 + "u",
148 "ubu",
149 "uno",
150 "unstoppable",
151 + "vip",
152 "wallet",
153 "website",
154 + "wif",
155 "wifi",
156 "witg",
157 + "work",
158 + "world",
159 "wrkx",
160 + "wtf",
161 "x",
162 "xmr",
163 "xyz",
164 "zil",
165 + "zone"
166 ];
167
168 static String? extractAddressByType({required String raw, required CryptoCurrency type}) {