From ed422786c0d4fcdcd908d0a470b433e0a1150a7b Mon Sep 17 00:00:00 2001 From: Theo Date: Tue, 9 May 2023 23:41:03 +0300 Subject: [PATCH] Improve logging when updating events --- scripts/updateEvents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/updateEvents.js b/scripts/updateEvents.js index 13cb3be..f547191 100644 --- a/scripts/updateEvents.js +++ b/scripts/updateEvents.js @@ -9,7 +9,7 @@ import { loadCachedEvents, getPastEvents } from './helpers' const EVENTS_PATH = './static/events/' const EVENTS = ['Deposit', 'Withdrawal'] -const enabledChains = ['1', '56', '100', '137' ] +const enabledChains = ['1', '56', '100', '137'] async function main(type, netId) { const { tokens, nativeCurrency, deployedBlock } = networkConfig[`netId${netId}`] @@ -22,6 +22,7 @@ async function main(type, netId) { deployedBlock }) + console.log('Update events for', instance, nativeCurrency.toUpperCase(), `${type.toLowerCase()}s`) console.log('cachedEvents count - ', cachedEvents.events.length) console.log('lastBlock - ', cachedEvents.lastBlock)