Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/weeklyhackathon-core/src/cron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
*/

5 changes: 3 additions & 2 deletions apps/weeklyhackathon-core/src/main.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/src/lib/tools/claimClankerRewardsTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CLAIM_REWARDS_PROMPT = 'Call the "claimRewards" function to claim the trad
const ClaimRewardsInput = z.object({});
type ClaimRewardsSchema = z.infer<typeof ClaimRewardsInput>;

const clankerRewardsAddress = process.env.NETWORK_ID === 'base-mainnet' ? '0x901776E42A8286525849c67825c758ddbB1d94F7' : '0x732560fa1d1A76350b1A500155BA978031B53833';
const clankerRewardsAddress = process.env.NETWORK_ID === 'base-mainnet' ? '0x732560fa1d1A76350b1A500155BA978031B53833' : '0x901776E42A8286525849c67825c758ddbB1d94F7';
const claimRewardsAbi: Abi = [
{
'inputs': [{
Expand Down