diff --git a/apps/weeklyhackathon-core/src/cron/index.ts b/apps/weeklyhackathon-core/src/cron/index.ts index d6d5f5e..c21839b 100644 --- a/apps/weeklyhackathon-core/src/cron/index.ts +++ b/apps/weeklyhackathon-core/src/cron/index.ts @@ -8,15 +8,15 @@ import { refreshMissingPRAnalyses } from './refreshMissingPRAnalyses'; export function startCronJobs() { log.info('Starting cron jobs'); // Evaluate submissions every day at 00:00 UTC - //cron.schedule('0 0 * * *', evaluateSubmissions); + cron.schedule('0 0 * * *', evaluateSubmissions); // Distribute Prizes every Friday at 00:00 UTC - //cron.schedule('0 0 * * 5', distributePrizes); + cron.schedule('0 0 * * 5', distributePrizes); // Analyse PRs every hour - //cron.schedule('0 * * * *', refreshMissingPRAnalyses); + cron.schedule('0 * * * *', refreshMissingPRAnalyses); } -/* + export async function startDemo() { await evaluateSubmissions(); - await distributePrizes(); + //await distributePrizes(); } -*/ + diff --git a/apps/weeklyhackathon-core/src/main.ts b/apps/weeklyhackathon-core/src/main.ts index aecc104..6e71e1e 100644 --- a/apps/weeklyhackathon-core/src/main.ts +++ b/apps/weeklyhackathon-core/src/main.ts @@ -1,7 +1,7 @@ import { setTelegramBotWebhook } from '@weeklyhackathon/telegram'; //import { createSchema, writeToNodes, readFromNodes } from '@weeklyhackathon/agents/nillionVault'; import { log, env } from '@weeklyhackathon/utils'; -import { startCronJobs/*, startDemo*/ } from './cron'; +import { startCronJobs, startDemo } from './cron'; import { app } from './server'; const host = process.env.HOST ?? 'localhost'; @@ -14,12 +14,13 @@ app.listen(port, host, () => { startCronJobs(); -//startDemo(); configureBot(); +startDemo(); + /// must run this once to set up the nillion vault /// create the schema and write the PK secret in the vault /// (it was already done, just ignore it) diff --git a/packages/agents/src/lib/tools/claimClankerRewardsTool.ts b/packages/agents/src/lib/tools/claimClankerRewardsTool.ts index 92fe4dc..83390b3 100644 --- a/packages/agents/src/lib/tools/claimClankerRewardsTool.ts +++ b/packages/agents/src/lib/tools/claimClankerRewardsTool.ts @@ -15,7 +15,7 @@ const CLAIM_REWARDS_PROMPT = 'Call the "claimRewards" function to claim the trad const ClaimRewardsInput = z.object({}); type ClaimRewardsSchema = z.infer; -const clankerRewardsAddress = process.env.NETWORK_ID === 'base-mainnet' ? '0x901776E42A8286525849c67825c758ddbB1d94F7' : '0x732560fa1d1A76350b1A500155BA978031B53833'; +const clankerRewardsAddress = process.env.NETWORK_ID === 'base-mainnet' ? '0x732560fa1d1A76350b1A500155BA978031B53833' : '0x901776E42A8286525849c67825c758ddbB1d94F7'; const claimRewardsAbi: Abi = [ { 'inputs': [{