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

View File

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

4
cli.js
View File

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