mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Add Celo to the popular custom network list (#16745)
This commit is contained in:
parent
ead5076b86
commit
34b1595f29
1
app/images/celo.svg
Normal file
1
app/images/celo.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg id="Celo_Rings" data-name="Celo Rings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 950 950"><defs><style>.cls-1{fill:#fbcc5c;}.cls-2{fill:#35d07f;}.cls-3{fill:#5ea33b;}</style></defs><title>Artboard 1</title><path id="Bottom_Ring" data-name="Bottom Ring" class="cls-1" d="M375,850c151.88,0,275-123.12,275-275S526.88,300,375,300,100,423.12,100,575,223.12,850,375,850Zm0,100C167.9,950,0,782.1,0,575S167.9,200,375,200,750,367.9,750,575,582.1,950,375,950Z"/><path id="Top_Ring" data-name="Top Ring" class="cls-2" d="M575,650c151.88,0,275-123.12,275-275S726.88,100,575,100,300,223.12,300,375,423.12,650,575,650Zm0,100c-207.1,0-375-167.9-375-375S367.9,0,575,0,950,167.9,950,375,782.1,750,575,750Z"/><path id="Rings_Overlap" data-name="Rings Overlap" class="cls-3" d="M587.39,750a274.38,274.38,0,0,0,54.55-108.06A274.36,274.36,0,0,0,750,587.4a373.63,373.63,0,0,1-29.16,133.45A373.62,373.62,0,0,1,587.39,750ZM308.06,308.06A274.36,274.36,0,0,0,200,362.6a373.63,373.63,0,0,1,29.16-133.45A373.62,373.62,0,0,1,362.61,200,274.38,274.38,0,0,0,308.06,308.06Z"/></svg>
|
After Width: | Height: | Size: 1.0 KiB |
@ -234,6 +234,7 @@ export const FANTOM_DISPLAY_NAME = 'Fantom Opera';
|
||||
export const HARMONY_DISPLAY_NAME = 'Harmony Mainnet Shard 0';
|
||||
export const PALM_DISPLAY_NAME = 'Palm';
|
||||
export const AURORA_DISPLAY_NAME = 'Aurora Mainnet';
|
||||
export const CELO_DISPLAY_NAME = 'Celo Mainnet';
|
||||
|
||||
export const infuraProjectId = process.env.INFURA_PROJECT_ID;
|
||||
export const getRpcUrl = ({
|
||||
@ -415,6 +416,7 @@ export const HARMONY_ONE_TOKEN_IMAGE_URL = './images/harmony-one.svg';
|
||||
export const OPTIMISM_TOKEN_IMAGE_URL = './images/optimism.svg';
|
||||
export const PALM_TOKEN_IMAGE_URL = './images/palm.svg';
|
||||
export const AURORA_TOKEN_IMAGE_URL = './images/aurora.png';
|
||||
export const CELO_TOKEN_IMAGE_URL = './images/celo.svg';
|
||||
|
||||
export const INFURA_PROVIDER_TYPES = [
|
||||
NETWORK_TYPES.MAINNET,
|
||||
@ -511,6 +513,7 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
|
||||
[CHAIN_IDS.OPTIMISM]: OPTIMISM_TOKEN_IMAGE_URL,
|
||||
[CHAIN_IDS.PALM]: PALM_TOKEN_IMAGE_URL,
|
||||
[CHAIN_IDS.AURORA]: AURORA_TOKEN_IMAGE_URL,
|
||||
[CHAIN_IDS.CELO]: CELO_TOKEN_IMAGE_URL,
|
||||
} as const;
|
||||
|
||||
export const NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP = {
|
||||
@ -533,6 +536,7 @@ export const NATIVE_CURRENCY_TOKEN_IMAGE_MAP = {
|
||||
[CURRENCY_SYMBOLS.MATIC]: MATIC_TOKEN_IMAGE_URL,
|
||||
[CURRENCY_SYMBOLS.AVALANCHE]: AVAX_TOKEN_IMAGE_URL,
|
||||
[CURRENCY_SYMBOLS.OPTIMISM]: OPTIMISM_TOKEN_IMAGE_URL,
|
||||
[CURRENCY_SYMBOLS.CELO]: CELO_TOKEN_IMAGE_URL,
|
||||
} as const;
|
||||
|
||||
export const INFURA_BLOCKED_KEY = 'countryBlocked';
|
||||
@ -966,4 +970,14 @@ export const FEATURED_RPCS: RPCDefinition[] = [
|
||||
imageUrl: MATIC_TOKEN_IMAGE_URL,
|
||||
},
|
||||
},
|
||||
{
|
||||
chainId: CHAIN_IDS.CELO,
|
||||
nickname: CELO_DISPLAY_NAME,
|
||||
rpcUrl: `https://celo-mainnet.infura.io/v3/${infuraProjectId}`,
|
||||
ticker: CURRENCY_SYMBOLS.CELO,
|
||||
rpcPrefs: {
|
||||
blockExplorerUrl: 'https://celoscan.io',
|
||||
imageUrl: CELO_TOKEN_IMAGE_URL,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user