Skip to content

Commit

Permalink
Add more UD domains
Browse files Browse the repository at this point in the history
  • Loading branch information
yrliou committed Nov 22, 2024
1 parent 1254f1c commit b8ac382
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ TEST_F(DecentralizedDnsNetworkDelegateHelperTest,
{"https://brave.austin", true},
{"https://brave.bitget", true},
{"https://brave.wrkx", true},
{"https://brave.bald", true},
{"https://brave.benji", true},
{"https://brave.chomp", true},
{"https://brave.dream", true},
{"https://brave.ethermail", true},
{"https://brave.lfg", true},
{"https://brave.propykeys", true},
{"https://brave.smobler", true},
{"https://brave", false},
{"https://brave.com", false},
{"", false},
Expand Down
3 changes: 2 additions & 1 deletion components/brave_wallet/browser/json_rpc_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ constexpr char kUDPattern[] =
"(?:[a-z0-9-]+)\\.(?:crypto|x|nft|dao|wallet|blockchain|bitcoin|zil|"
"altimist|anime|klever|manga|polygon|unstoppable|pudgy|tball|stepn|secret|"
"raiin|pog|clay|metropolis|witg|ubu|kryptic|farms|dfz|kresus|binanceus|"
"austin|bitget|wrkx)";
"austin|bitget|wrkx|bald|benji|chomp|dream|ethermail|lfg|propykeys|"
"smobler)";

net::NetworkTrafficAnnotationTag GetNetworkTrafficAnnotationTag() {
return net::DefineNetworkTrafficAnnotation("json_rpc_service", R"(
Expand Down
8 changes: 8 additions & 0 deletions components/brave_wallet/browser/json_rpc_service_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3981,6 +3981,14 @@ TEST_F(JsonRpcServiceUnitTest, IsValidUnstoppableDomain) {
"brave.austin",
"brave.bitget",
"brave.wrkx",
"brave.bald",
"brave.benji",
"brave.chomp",
"brave.dream",
"brave.ethermail",
"brave.lfg",
"brave.propykeys",
"brave.smobler",
"a.crypto",
"1.crypto",
"-.crypto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export const supportedUDExtensions = [
'.austin',
'.bitget',
'.wrkx',
".bald",
".benji",
".chomp",
".dream",
".ethermail",
".lfg",
".propykeys",
".smobler",
]
export const allSupportedExtensions = [
...supportedENSExtensions,
Expand Down
2 changes: 2 additions & 0 deletions ios/brave-ios/Sources/BraveWallet/WalletConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public struct WalletConstants {
".tball", ".stepn", ".secret", ".raiin", ".pog", ".clay",
".metropolis", ".witg", ".ubu", ".kryptic", ".farms", ".dfz",
".kresus", ".binanceus", ".austin", ".bitget", ".wrkx",
".bald", ".benji", ".chomp", ".dream", ".ethermail", ".lfg",
".propykeys", ".smobler",
]

/// The supported IPFS schemes
Expand Down
3 changes: 2 additions & 1 deletion net/decentralized_dns/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ inline constexpr const char* kUnstoppableDomains[] = {
".tball", ".stepn", ".secret", ".raiin", ".pog",
".clay", ".metropolis", ".witg", ".ubu", ".kryptic",
".farms", ".dfz", ".kresus", ".binanceus", ".austin",
".bitget", ".wrkx"};
".bitget", ".wrkx", ".bald", ".benji", ".chomp",
".dream", ".ethermail", ".lfg", ".propykeys", ".smobler"};

inline constexpr char kEthDomain[] = ".eth";
inline constexpr char kDNSForEthDomain[] = ".eth.link";
Expand Down

0 comments on commit b8ac382

Please sign in to comment.