Change xDai to GnosisChain

This commit is contained in:
Ayanami 2022-02-05 12:50:51 +09:00
parent 00ca8a07f7
commit 394d487cb8
No known key found for this signature in database
GPG Key ID: 0CABDF03077D92E4
2 changed files with 6 additions and 6 deletions

@ -230,15 +230,15 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
"netId100":{
"rpcUrls":{
"publicRpc":{
"name":"xDAI Chain RPC",
"url":"https://rpc.xdaichain.com"
"name":"Gnosis Chain RPC",
"url":"https://rpc.gnosischain.com"
},
"publicRpc2":{
"name":"xDAI Chain RPC2",
"name":"Gnosis Chain RPC2",
"url":"https://xdai.poanetwork.dev"
},
"publicRpc3":{
"name":"xDAI Chain RPC3",
"name":"Gnosis Chain RPC3",
"url":"https://dai.poa.network/"
}
},

4
cli.js

@ -581,7 +581,7 @@ function getCurrentNetworkName() {
case 56:
return 'BinanceSmartChain'
case 100:
return 'xDai'
return 'GnosisChain'
case 137:
return 'Polygon'
case 42161:
@ -822,7 +822,7 @@ async function fetchEvents({ type, currency, amount}) {
const updatedEvents = await initJson(fileName);
const updatedBlock = updatedEvents[updatedEvents.length - 1].blockNumber
console.log("Cache updated for Tornado",type,amount,currency,"instance to block",updatedBlock,"successfully")
console.log('Total events:', updatedEvents.length)
console.log(`Total ${type}s:`, updatedEvents.length)
return updatedEvents;
}
const events = await loadUpdatedEvents();