From 7c796717f746a286c938de9801e12b92f8466258 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Fri, 2 Sep 2022 10:24:28 -0500 Subject: [PATCH] feat(psm-tool): updateClock to trigger wallet update --- packages/psm-tool/app/psm-sheets-lib.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/psm-tool/app/psm-sheets-lib.js b/packages/psm-tool/app/psm-sheets-lib.js index 463d0c9e707a..504cba04adb4 100644 --- a/packages/psm-tool/app/psm-sheets-lib.js +++ b/packages/psm-tool/app/psm-sheets-lib.js @@ -100,3 +100,9 @@ function votingPower() { console.log('is this thing on?', data); return data.result.validator_info.voting_power; } + +function updateClock(ref = 'A13') { + const sheet = SpreadsheetApp.getActiveSheet(); + const t = new Date(); + sheet.getRange(ref).setValue(t); +}