Social credit validation and recalculation

This commit is contained in:
2025-11-02 02:11:34 +08:00
parent 70fdc247e7
commit 5e5f4528b9
9 changed files with 2826 additions and 14 deletions

View File

@@ -1,3 +1,4 @@
using DysonNetwork.Pass.Credit;
using DysonNetwork.Pass.Handlers;
using DysonNetwork.Pass.Wallet;
using Quartz;
@@ -73,6 +74,13 @@ public static class ScheduledJobsConfiguration
.ForJob(lotteryDrawJob)
.WithIdentity("LotteryDrawTrigger")
.WithCronSchedule("0 0 0 * * ?"));
var socialCreditValidationJob = new JobKey("SocialCreditValidation");
q.AddJob<SocialCreditValidationJob>(opts => opts.WithIdentity(socialCreditValidationJob));
q.AddTrigger(opts => opts
.ForJob(socialCreditValidationJob)
.WithIdentity("SocialCreditValidationTrigger")
.WithCronSchedule("0 0 0 * * ?"));
});
services.AddQuartzHostedService(q => q.WaitForJobsToComplete = true);