mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Add Aurora to the popular custom network list (#16039)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
parent
5cc411967c
commit
02d7eb34c9
BIN
app/images/aurora.png
Normal file
BIN
app/images/aurora.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
@ -210,6 +210,7 @@ export const CHAIN_IDS = {
|
|||||||
HARMONY: '0x63564c40',
|
HARMONY: '0x63564c40',
|
||||||
PALM: '0x2a15c308d',
|
PALM: '0x2a15c308d',
|
||||||
SEPOLIA: '0xaa36a7',
|
SEPOLIA: '0xaa36a7',
|
||||||
|
AURORA: '0x4e454152',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -232,6 +233,7 @@ export const OPTIMISM_DISPLAY_NAME = 'Optimism';
|
|||||||
export const FANTOM_DISPLAY_NAME = 'Fantom Opera';
|
export const FANTOM_DISPLAY_NAME = 'Fantom Opera';
|
||||||
export const HARMONY_DISPLAY_NAME = 'Harmony Mainnet Shard 0';
|
export const HARMONY_DISPLAY_NAME = 'Harmony Mainnet Shard 0';
|
||||||
export const PALM_DISPLAY_NAME = 'Palm';
|
export const PALM_DISPLAY_NAME = 'Palm';
|
||||||
|
export const AURORA_DISPLAY_NAME = 'Aurora Mainnet';
|
||||||
|
|
||||||
export const infuraProjectId = process.env.INFURA_PROJECT_ID;
|
export const infuraProjectId = process.env.INFURA_PROJECT_ID;
|
||||||
export const getRpcUrl = ({
|
export const getRpcUrl = ({
|
||||||
@ -257,6 +259,7 @@ export const LOCALHOST_RPC_URL = 'http://localhost:8545';
|
|||||||
*/
|
*/
|
||||||
export const CURRENCY_SYMBOLS = {
|
export const CURRENCY_SYMBOLS = {
|
||||||
ARBITRUM: 'ETH',
|
ARBITRUM: 'ETH',
|
||||||
|
AURORA: 'Aurora ETH',
|
||||||
AVALANCHE: 'AVAX',
|
AVALANCHE: 'AVAX',
|
||||||
BNB: 'BNB',
|
BNB: 'BNB',
|
||||||
BUSD: 'BUSD',
|
BUSD: 'BUSD',
|
||||||
@ -410,6 +413,7 @@ export const FTM_TOKEN_IMAGE_URL = './images/fantom-opera.svg';
|
|||||||
export const HARMONY_ONE_TOKEN_IMAGE_URL = './images/harmony-one.svg';
|
export const HARMONY_ONE_TOKEN_IMAGE_URL = './images/harmony-one.svg';
|
||||||
export const OPTIMISM_TOKEN_IMAGE_URL = './images/optimism.svg';
|
export const OPTIMISM_TOKEN_IMAGE_URL = './images/optimism.svg';
|
||||||
export const PALM_TOKEN_IMAGE_URL = './images/palm.svg';
|
export const PALM_TOKEN_IMAGE_URL = './images/palm.svg';
|
||||||
|
export const AURORA_TOKEN_IMAGE_URL = './images/aurora.png';
|
||||||
|
|
||||||
export const INFURA_PROVIDER_TYPES = [
|
export const INFURA_PROVIDER_TYPES = [
|
||||||
NETWORK_TYPES.MAINNET,
|
NETWORK_TYPES.MAINNET,
|
||||||
@ -505,6 +509,7 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
|
|||||||
[CHAIN_IDS.HARMONY]: HARMONY_ONE_TOKEN_IMAGE_URL,
|
[CHAIN_IDS.HARMONY]: HARMONY_ONE_TOKEN_IMAGE_URL,
|
||||||
[CHAIN_IDS.OPTIMISM]: OPTIMISM_TOKEN_IMAGE_URL,
|
[CHAIN_IDS.OPTIMISM]: OPTIMISM_TOKEN_IMAGE_URL,
|
||||||
[CHAIN_IDS.PALM]: PALM_TOKEN_IMAGE_URL,
|
[CHAIN_IDS.PALM]: PALM_TOKEN_IMAGE_URL,
|
||||||
|
[CHAIN_IDS.AURORA]: AURORA_TOKEN_IMAGE_URL,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP = {
|
export const NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP = {
|
||||||
@ -861,6 +866,11 @@ export const BUYABLE_CHAINS_MAP: {
|
|||||||
SUPPORTED_CURRENCY_SYMBOLS.USDS,
|
SUPPORTED_CURRENCY_SYMBOLS.USDS,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
[CHAIN_IDS.AURORA]: {
|
||||||
|
nativeCurrency: CURRENCY_SYMBOLS.AURORA,
|
||||||
|
network: 'aurora',
|
||||||
|
transakCurrencies: [SUPPORTED_CURRENCY_SYMBOLS.AURORA],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const FEATURED_RPCS: RPCDefinition[] = [
|
export const FEATURED_RPCS: RPCDefinition[] = [
|
||||||
@ -874,6 +884,16 @@ export const FEATURED_RPCS: RPCDefinition[] = [
|
|||||||
imageUrl: AETH_TOKEN_IMAGE_URL,
|
imageUrl: AETH_TOKEN_IMAGE_URL,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
chainId: CHAIN_IDS.AURORA,
|
||||||
|
nickname: AURORA_DISPLAY_NAME,
|
||||||
|
rpcUrl: `https://aurora-mainnet.infura.io/v3/${infuraProjectId}`,
|
||||||
|
ticker: CURRENCY_SYMBOLS.AURORA,
|
||||||
|
rpcPrefs: {
|
||||||
|
blockExplorerUrl: 'https://aurorascan.dev/',
|
||||||
|
imageUrl: AURORA_TOKEN_IMAGE_URL,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
chainId: CHAIN_IDS.AVALANCHE,
|
chainId: CHAIN_IDS.AVALANCHE,
|
||||||
nickname: AVALANCHE_DISPLAY_NAME,
|
nickname: AVALANCHE_DISPLAY_NAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user