mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-11-21 17:27:07 +01:00
Fix Optimism network support
Correct chainId for Optimism network
This commit is contained in:
parent
04623a23e6
commit
00ca8a07f7
70
README.md
70
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":{
|
"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
2
cli.js
@ -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'
|
||||||
|
@ -330,7 +330,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
proxy: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
|
proxy: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
|
||||||
},
|
},
|
||||||
netId42161: {
|
netId10: {
|
||||||
'eth': {
|
'eth': {
|
||||||
'instanceAddress': {
|
'instanceAddress': {
|
||||||
'0.1': '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
|
'0.1': '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
|
||||||
|
Loading…
Reference in New Issue
Block a user