From 00ca8a07f7c81d4a1245860ee9f698d9126ecc4e Mon Sep 17 00:00:00 2001 From: Ayanami Date: Sat, 5 Feb 2022 11:11:59 +0900 Subject: [PATCH] Fix Optimism network support Correct chainId for Optimism network --- README.md | 70 +++++++++++++++++++++++++++---------------------------- cli.js | 2 +- config.js | 2 +- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 33078fb..9302a1d 100644 --- a/README.md +++ b/README.md @@ -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":{ "rpcUrls":{ "Infura":{ @@ -547,41 +582,6 @@ Infura API key fetched from https://rpc.info (Same one with Metamask) "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/" - } - } } } ``` diff --git a/cli.js b/cli.js index 39722b2..7a56113 100755 --- a/cli.js +++ b/cli.js @@ -592,7 +592,7 @@ function getCurrentNetworkName() { return 'Goerli' case 42: return 'Kovan' - case 137: + case 10: return 'Optimism' default: return 'testRPC' diff --git a/config.js b/config.js index e8b431a..16a4578 100644 --- a/config.js +++ b/config.js @@ -330,7 +330,7 @@ module.exports = { }, proxy: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17', }, - netId42161: { + netId10: { 'eth': { 'instanceAddress': { '0.1': '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',