Skip to content

Commit

Permalink
- adding avalanche and zkevm checkpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyferion committed Apr 19, 2024
1 parent 99bbba6 commit 1eb0c3f
Show file tree
Hide file tree
Showing 23 changed files with 161 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tasks/Arbitrum Child Chain Gauges Checkpointer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "0b7807ed-ce8d-476b-8598-040c296adfba",
"codeDigest": "HBr8AywfQaZmpI1KjA0srvgAQ93bVyaCt29i6NWjj9Y=",
"codeDigest": "X/wvzPZWkPxv74ftlk9ocaUR8OScHbEMWeLPA3Nfb+w=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Arbitrum Gauge Reward Checkpointer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "0b7807ed-ce8d-476b-8598-040c296adfba",
"codeDigest": "Q0FIjnCroBsprvyDJGoBRTxfZt1X9jwDY073R/1UMNo=",
"codeDigest": "UVt+2j2634hut4LHLPN/ubtzGmITwIXSBNe+bSFxwbM=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Arbitrum Upkeeper/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "0b7807ed-ce8d-476b-8598-040c296adfba",
"codeDigest": "RJf014VugWdsyhr3C4+WPxP52VoZeKYLV50z4A95MWA=",
"codeDigest": "1icmtFi9IiY5H3X7SsVlg0B+iQ39Kam/2R/+hDBYmwI=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
14 changes: 14 additions & 0 deletions tasks/Avalanche Child Chain Gauges Checkpointer/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"autotaskId": "ec90547d-2d98-41fe-a0cc-ebc06b72478a",
"actionId": "ec90547d-2d98-41fe-a0cc-ebc06b72478a",
"name": "Avalanche Child Chain Gauges Checkpointer",
"paused": false,
"trigger": {
"type": "schedule",
"cron": "*/5 * * * 4"
},
"relayerId": "73e57662-7a23-462e-96ce-40810292a07f",
"codeDigest": "LnJczJN4/xF7m2/um/8P4sGcIbhxFEfu0kaSH+vC9Y0=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
55 changes: 55 additions & 0 deletions tasks/Avalanche Child Chain Gauges Checkpointer/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tasks/Avalanche Upkeeper/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "73e57662-7a23-462e-96ce-40810292a07f",
"codeDigest": "3eaPZZbpazHfZPTyrZsHN0fG9eM056gSjnJlqFMgrH0=",
"codeDigest": "2VzwO2981dxJT5ArG2RElJldN1I+fMouK7RbUSdGrUw=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Base Child Chain Gauges Checkpointer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "384e11fa-9222-4556-9f93-add1fef65f83",
"codeDigest": "HMolaQATFLih/D7XwGLpJdfBubGljaiE+wNEll4maW4=",
"codeDigest": "5X6foBT9M+emnqbsxTbcDy8YTNnJXvC1I0fhiORg3j0=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Base Upkeeper/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "384e11fa-9222-4556-9f93-add1fef65f83",
"codeDigest": "ZHRuf+Hx4Vm+zroibZziMogi3Y1noY1JhK8YDC1bpNU=",
"codeDigest": "6quhHiIZ85HhDbyLJNHNaJPptpaQ/R1LgQVeuw9k7wY=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Gnosis Child Chain Gauges Checkpointer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "df853bf7-3ccc-4461-9b20-cd4a1caf475a",
"codeDigest": "ydYVMpjDen5gfzBCJ1eulQVTn2KqhJHv0e8BTiIBw00=",
"codeDigest": "LsD94kU7NWzTIxpAjdzyIs8PieBf3kk4LDECAJSZs1I=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Gnosis Upkeeper/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "df853bf7-3ccc-4461-9b20-cd4a1caf475a",
"codeDigest": "LabFyDAmqKzOkNMLAA6wPFrYxaDSukOFX2Y1UZhfT8o=",
"codeDigest": "k+sKL9P/ZYbmLZleEzMUr7w18aBGURQ1JRd73Po29eU=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
4 changes: 2 additions & 2 deletions tasks/LZ Rate Updater/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"name": "LZ Rate Updater",
"paused": false,
"trigger": {
"cron": "31 1 18 4 *",
"cron": "22 3 20 4 *",
"type": "schedule"
},
"relayerId": "003ec47a-7c81-4572-af06-2943fead4af2",
"codeDigest": "oMgKL9LgfGusbtZ1IRRpLIWQT/npb0Fq0PjGPariuWI=",
"codeDigest": "W3cXAx5bOJnNJqQYha4lGznsjqUnZviYErvv5WULmMY=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
7 changes: 4 additions & 3 deletions tasks/LZ Rate Updater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ exports.handler = async function (credentials, context) {

if (context) {
await sendNotification(context, 'Rate updated for: ' + rateProvider, 'Transaction hash: ' + tx.hash)
console.log('Autotask will run again next Tomorrow at 10:25 UTC');
} else {
console.log('No context, not sending notification');
console.log('Rate updated: ' + tx.hash);
Expand All @@ -110,10 +109,12 @@ exports.handler = async function (credentials, context) {

if (shouldScheduleTomorrow) {
const nowInSeconds = Math.floor(Date.now() / 1000);
const tomorrowSchedule = nowInSeconds + 87000;
autotaskMetadata.trigger = getCronScheduleForTimestamp(tomorrowSchedule);
const tomorrowSchedule = getCronScheduleForTimestamp(nowInSeconds + 87000);
console.log('Autotask will run again next: ' + tomorrowSchedule.cron);
autotaskMetadata.trigger = tomorrowSchedule;
} else {
autotaskMetadata.trigger = autotaskRetrySchedule;
console.log('Autotask will run again in 30 minutes');
}
await autotaskClient.update(autotaskMetadata);
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/Mainnet Checkpoint Root Gauges/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "003ec47a-7c81-4572-af06-2943fead4af2",
"codeDigest": "l4zxR0W/oMNDPbhUnxAy74IVCs1on3lC+0RaTu+NjEU=",
"codeDigest": "5gMcZtyBNcXOzS/j65tkjBeq3s4/M/DUj43mNBSyBSw=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
2 changes: 1 addition & 1 deletion tasks/Mainnet Checkpoint Specific Root Gauges/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "schedule"
},
"relayerId": "003ec47a-7c81-4572-af06-2943fead4af2",
"codeDigest": "Va6Oe+LECBaq7yO3VXGKrsU1REyCwVCj1y914GK5eCw=",
"codeDigest": "bqcEiiglSac2obL1leOZ4nRT4lshiAhtK44M9H+c3II=",
"runtime": "nodejs16.x",
"dependenciesVersion": "v2024-01-18"
}
Loading

0 comments on commit 1eb0c3f

Please sign in to comment.