explorer: Added Fantom and Aurora chains to message search selection (#1156)

This commit is contained in:
kev1n-peters 2022-05-11 09:58:28 -05:00 committed by GitHub
parent c731363d1f
commit 08ea624f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

View File

@ -32,6 +32,8 @@ const emitterChains = [
{ label: ChainID[5], value: chainIDs["polygon"] },
{ label: ChainID[6], value: chainIDs["avalanche"] },
{ label: ChainID[7], value: chainIDs["oasis"] },
{ label: ChainID[9], value: chainIDs["aurora"] },
{ label: ChainID[10], value: chainIDs["fantom"] },
];
interface ExplorerMessageSearchProps {

View File

@ -35,7 +35,7 @@ export const chainIDs: ChainIDs = {
oasis: 7,
// chains without mainnet contract addresses commented out
// algorand: 8,
// aurora: 9,
aurora: 9,
fantom: 10,
// kurura: 11,
// acala: 12,
@ -76,9 +76,10 @@ export type ChainIDNumber = ChainIDs[ChainName];
export const METADATA_REPLACE = new RegExp("\u0000", "g");
// Gatsby only includes environment variables that are explictly referenced, it does the substitution at build time.
// Gatsby only includes environment variables that are explicitly referenced, it does the substitution at build time.
// Created this map as a work around to access them dynamically (ie. process.env[someKeyName]).
const envVarMap: { [name: string]: string | undefined } = {
// devnet
GATSBY_DEVNET_SOLANA_CORE_BRIDGE:
process.env.GATSBY_DEVNET_SOLANA_CORE_BRIDGE,
GATSBY_DEVNET_SOLANA_TOKEN_BRIDGE:
@ -118,7 +119,13 @@ const envVarMap: { [name: string]: string | undefined } = {
GATSBY_DEVNET_FANTOM_TOKEN_BRIDGE:
process.env.GATSBY_DEVNET_FANTOM_TOKEN_BRIDGE,
GATSBY_DEVNET_FANTOM_NFT_BRIDGE: process.env.GATSBY_DEVNET_FANTOM_NFT_BRIDGE,
GATSBY_DEVNET_AURORA_CORE_BRIDGE:
process.env.GATSBY_DEVNET_AURORA_CORE_BRIDGE,
GATSBY_DEVNET_AURORA_TOKEN_BRIDGE:
process.env.GATSBY_DEVNET_AURORA_TOKEN_BRIDGE,
GATSBY_DEVNET_AURORA_NFT_BRIDGE: process.env.GATSBY_DEVNET_AURORA_NFT_BRIDGE,
// testnet
GATSBY_TESTNET_SOLANA_CORE_BRIDGE:
process.env.GATSBY_TESTNET_SOLANA_CORE_BRIDGE,
GATSBY_TESTNET_SOLANA_TOKEN_BRIDGE:
@ -162,7 +169,14 @@ const envVarMap: { [name: string]: string | undefined } = {
process.env.GATSBY_TESTNET_FANTOM_TOKEN_BRIDGE,
GATSBY_TESTNET_FANTOM_NFT_BRIDGE:
process.env.GATSBY_TESTNET_FANTOM_NFT_BRIDGE,
GATSBY_TESTNET_AURORA_CORE_BRIDGE:
process.env.GATSBY_TESTNET_AURORA_CORE_BRIDGE,
GATSBY_TESTNET_AURORA_TOKEN_BRIDGE:
process.env.GATSBY_TESTNET_AURORA_TOKEN_BRIDGE,
GATSBY_TESTNET_AURORA_NFT_BRIDGE:
process.env.GATSBY_TESTNET_AURORA_NFT_BRIDGE,
// mainnet
GATSBY_MAINNET_SOLANA_CORE_BRIDGE:
process.env.GATSBY_MAINNET_SOLANA_CORE_BRIDGE,
GATSBY_MAINNET_SOLANA_TOKEN_BRIDGE:
@ -206,6 +220,12 @@ const envVarMap: { [name: string]: string | undefined } = {
process.env.GATSBY_MAINNET_FANTOM_TOKEN_BRIDGE,
GATSBY_MAINNET_FANTOM_NFT_BRIDGE:
process.env.GATSBY_MAINNET_FANTOM_NFT_BRIDGE,
GATSBY_MAINNET_AURORA_CORE_BRIDGE:
process.env.GATSBY_MAINNET_AURORA_CORE_BRIDGE,
GATSBY_MAINNET_AURORA_TOKEN_BRIDGE:
process.env.GATSBY_MAINNET_AURORA_TOKEN_BRIDGE,
GATSBY_MAINNET_AURORA_NFT_BRIDGE:
process.env.GATSBY_MAINNET_AURORA_NFT_BRIDGE,
};
export interface KnownContracts {