Fix Optimism network support

Correct chainId for Optimism network
This commit is contained in:
Ayanami 2022-02-05 11:11:59 +09:00
parent 04623a23e6
commit 00ca8a07f7
No known key found for this signature in database
GPG Key ID: 0CABDF03077D92E4
3 changed files with 37 additions and 37 deletions

View File

@ -457,6 +457,41 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
} }
} }
}, },
"netId10":{
"rpcUrls":{
"Optimism":{
"name":"Optimism Public RPC",
"url":"https://mainnet.optimism.io"
}
},
"relayers":{
"optimism.t-relay.eth":{
"url":"optimism.t-relay.eth",
"name":"optimism.t-relay.eth",
"cachedUrl":"https://optimism.t-relay.online/"
},
"optimism.therelayer.eth":{
"url":"optimism.therelayer.eth",
"name":"optimism.therelayer.eth",
"cachedUrl":"https://optimism.therelayer.xyz/"
},
"optimism.relayer-service.eth":{
"url":"optimism.relayer-service.eth",
"name":"optimism.relayer-service.eth",
"cachedUrl":"https://optimism-relayer.hertz.zone/"
},
"optimism.torn.eth":{
"url":"optimism.torn.eth",
"name":"optimism.torn.eth",
"cachedUrl":"https://optimism.torn.cash/"
},
"optimism.relaymy.eth":{
"url":"optimism.relaymy.eth",
"name":"optimism.relaymy.eth",
"cachedUrl":"https://optimism.relaymy.xyz/"
}
}
},
"netId5":{ "netId5":{
"rpcUrls":{ "rpcUrls":{
"Infura":{ "Infura":{
@ -547,41 +582,6 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
"cachedUrl":"https://goerli-v2.defidevotee.xyz" "cachedUrl":"https://goerli-v2.defidevotee.xyz"
} }
} }
},
"netId10":{
"rpcUrls":{
"Optimism":{
"name":"Optimism Public RPC",
"url":"https://mainnet.optimism.io"
}
},
"relayers":{
"optimism.t-relay.eth":{
"url":"optimism.t-relay.eth",
"name":"optimism.t-relay.eth",
"cachedUrl":"https://optimism.t-relay.online/"
},
"optimism.therelayer.eth":{
"url":"optimism.therelayer.eth",
"name":"optimism.therelayer.eth",
"cachedUrl":"https://optimism.therelayer.xyz/"
},
"optimism.relayer-service.eth":{
"url":"optimism.relayer-service.eth",
"name":"optimism.relayer-service.eth",
"cachedUrl":"https://optimism-relayer.hertz.zone/"
},
"optimism.torn.eth":{
"url":"optimism.torn.eth",
"name":"optimism.torn.eth",
"cachedUrl":"https://optimism.torn.cash/"
},
"optimism.relaymy.eth":{
"url":"optimism.relaymy.eth",
"name":"optimism.relaymy.eth",
"cachedUrl":"https://optimism.relaymy.xyz/"
}
}
} }
} }
``` ```

2
cli.js
View File

@ -592,7 +592,7 @@ function getCurrentNetworkName() {
return 'Goerli' return 'Goerli'
case 42: case 42:
return 'Kovan' return 'Kovan'
case 137: case 10:
return 'Optimism' return 'Optimism'
default: default:
return 'testRPC' return 'testRPC'

View File

@ -330,7 +330,7 @@ module.exports = {
}, },
proxy: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17', proxy: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
}, },
netId42161: { netId10: {
'eth': { 'eth': {
'instanceAddress': { 'instanceAddress': {
'0.1': '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F', '0.1': '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',