refactor: update ETH/Optimism Kovan to Goerli in Sign v2 examples (#66)

This commit is contained in:
Ben Kremer 2022-10-06 13:42:04 +02:00 committed by GitHub
parent 9b7950fc4a
commit 77adb22535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 16 deletions

View File

@ -26,8 +26,8 @@ export const EIP155Metadata: NamespaceMetadata = {
rgb: EIP155Colors.ethereum,
},
"5": {
logo: BLOCKCHAIN_LOGO_BASE_URL + "eip155:5.png",
rgb: EIP155Colors.goerli,
logo: BLOCKCHAIN_LOGO_BASE_URL + "eip155:1.png",
rgb: EIP155Colors.ethereum,
},
"10": {
name: "Optimism",
@ -38,8 +38,8 @@ export const EIP155Metadata: NamespaceMetadata = {
logo: BLOCKCHAIN_LOGO_BASE_URL + "eip155:42.png",
rgb: EIP155Colors.ethereum,
},
"69": {
logo: BLOCKCHAIN_LOGO_BASE_URL + "eip155:69.png",
"420": {
logo: BLOCKCHAIN_LOGO_BASE_URL + "eip155:420.png",
rgb: EIP155Colors.optimism,
},
"100": {

View File

@ -13,8 +13,8 @@ export const DEFAULT_MAIN_CHAINS = [
export const DEFAULT_TEST_CHAINS = [
// testnets
"eip155:42",
"eip155:69",
"eip155:5",
"eip155:420",
"eip155:80001",
"eip155:421611",
"eip155:44787",

View File

@ -10,9 +10,9 @@ const rpcProvidersByChainId: Record<number, any> = {
symbol: "ETH",
},
},
42: {
name: "Ethereum Kovan",
baseURL: "https://kovan.infura.io/v3/5dc0df7abe4645dfb06a9a8c39ede422",
5: {
name: "Ethereum Goerli",
baseURL: "https://goerli.infura.io/v3/5dc0df7abe4645dfb06a9a8c39ede422",
token: {
name: "Ether",
symbol: "ETH",
@ -42,9 +42,9 @@ const rpcProvidersByChainId: Record<number, any> = {
symbol: "ETH",
},
},
69: {
name: "Optimism Kovan",
baseURL: "https://kovan.optimism.io",
420: {
name: "Optimism Goerli",
baseURL: "https://goerli.optimism.io",
token: {
name: "Ether",
symbol: "ETH",

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -32,16 +32,23 @@ export const EIP155_MAINNET_CHAINS = {
logo: '/chain-logos/eip155-137.png',
rgb: '130, 71, 229',
rpc: 'https://polygon-rpc.com/'
},
'eip155:10': {
chainId: 10,
name: 'Optimism',
logo: '/chain-logos/eip155-10.png',
rgb: '235, 0, 25',
rpc: 'https://mainnet.optimism.io'
}
}
export const EIP155_TEST_CHAINS = {
'eip155:42': {
chainId: 42,
name: 'Ethereum Kovan',
'eip155:5': {
chainId: 5,
name: 'Ethereum Goerli',
logo: '/chain-logos/eip155-1.png',
rgb: '99, 125, 234',
rpc: 'https://kovan.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161'
rpc: 'https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161'
},
'eip155:43113': {
chainId: 43113,
@ -56,6 +63,13 @@ export const EIP155_TEST_CHAINS = {
logo: '/chain-logos/eip155-137.png',
rgb: '130, 71, 229',
rpc: 'https://matic-mumbai.chainstacklabs.com'
},
'eip155:420': {
chainId: 420,
name: 'Optimism Goerli',
logo: '/chain-logos/eip155-10.png',
rgb: '235, 0, 25',
rpc: 'https://goerli.optimism.io'
}
}