biuauthui
Version:
Ui modal for biuAuth
53 lines (48 loc) • 1.09 kB
text/typescript
export enum ChainId {
ETHEREUM = 1,
RINKEBY = 4,
GOERLI = 5,
BSC = 56,
BSC_TESTNET = 97,
ZKSYNC = 324,
POLYGON = 137,
MUMBAI = 80001,
}
export const CHAIN_ID_TO_NAME = {
1: "ethereum",
10: "optimism",
137: "polygon",
42161: "arbitrum",
5: "ethereum-goerli",
56: "bsc",
97: "bsc-testnet",
324: "zksync",
80001: "mumbai",
};
export const CHAIN_NAME_TO_ID: { [p: string]: number } = {
ethereum: 1,
optimism: 10,
polygon: 137,
arbitrum: 42161,
"ethereum-goerli": 5,
bsc: 56,
"bsc-testnet": 97,
zksync: 324,
"polygon-mumbai": 80001,
};
export const SCAN_URL: { [p: number]: string } = {
1: "https://etherscan.io/",
5: "https://goerli.etherscan.io/",
10: "https://optimistic.etherscan.io/",
56: "https://bscscan.com/",
97: "https://testnet.bscscan.com/",
137: "https://polygonscan.com/",
324: "https://explorer.zksync.io/",
42161: "https://arbiscan.io/",
80001: "https://mumbai.polygonscan.com/",
};
export const NODE_REAL_CHAIN: { [p: number]: string } = {
1: "eth-mainnet",
56: "bsc-mainnet",
137: "matic-mainnet",
};