-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Require admin to transfer/assign reserved usernames
We're getting a number of users claiming fnames for obvious/well-known names that they don't actually represent or belong to. Require these names to be transferred by an admin.
- Loading branch information
Showing
3 changed files
with
126 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
// Usernames that we want only admins to be able to assign to an FID, in order | ||
// to prevent abuse and obvious username squatting. | ||
const RESERVED_USERNAMES = new Set([ | ||
'adidas', | ||
'amazon', | ||
'apple', | ||
'arbitrum', | ||
'barackobama', | ||
'bbc', | ||
'billgates', | ||
'binance', | ||
'bitcoin', | ||
'blockchain', | ||
'bmw', | ||
'cia', | ||
'cloud', | ||
'cnn', | ||
'coinbase', | ||
'consensys', | ||
'context', | ||
'crypto', | ||
'data', | ||
'dell', | ||
'disney', | ||
'drake', | ||
'elonmusk', | ||
'ethereum', | ||
'f1', | ||
'facebook', | ||
'fashion', | ||
'fbi', | ||
'fifa', | ||
'finance', | ||
'fitness', | ||
'food', | ||
'fwb', | ||
'fwbdao', | ||
'gallery', | ||
'games', | ||
'ge', | ||
'gem', | ||
'gm', | ||
'gnosis', | ||
'gnosissafe', | ||
'google', | ||
'health', | ||
'hp', | ||
'hyperverse', | ||
'ibm', | ||
'intel', | ||
'invest', | ||
'jpmorgan', | ||
'kraken', | ||
'kucoin', | ||
'lebronjames', | ||
'lionelmessi', | ||
'luxury', | ||
'messi', | ||
'metamask', | ||
'microsoft', | ||
'midjourney', | ||
'mirror', | ||
'ml', | ||
'money', | ||
'nasa', | ||
'nba', | ||
'netflix', | ||
'news', | ||
'nfl', | ||
'nike', | ||
'nounsdao', | ||
'obsidian', | ||
'openai', | ||
'opensea', | ||
'optimism', | ||
'oracle', | ||
'ourzora', | ||
'pga', | ||
'poap', | ||
'polygon', | ||
'privacy', | ||
'rainbow', | ||
'rarible', | ||
'ronaldo', | ||
'samsung', | ||
'sony', | ||
'starknet', | ||
'stripe', | ||
'sudoswap', | ||
'superrare', | ||
'sushiswap', | ||
'syndicate', | ||
'tesla', | ||
'tezos', | ||
'travel', | ||
'twitter', | ||
'uber', | ||
'un', | ||
'uniswap', | ||
'urbit', | ||
'viamirror', | ||
'vitalik', | ||
'youtube', | ||
'zora', | ||
'zoraco', | ||
]); | ||
|
||
export function reservedUsername(username: string) { | ||
return RESERVED_USERNAMES.has(username); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters