2024-06-14 11:05:29 +02:00
|
|
|
|
using CodexContractsPlugin.ChainMonitor;
|
|
|
|
|
using DiscordRewards;
|
|
|
|
|
|
|
|
|
|
namespace TestNetRewarder
|
|
|
|
|
{
|
2024-06-17 15:34:08 +02:00
|
|
|
|
public class RewardChecker
|
2024-06-14 11:05:29 +02:00
|
|
|
|
{
|
2024-06-17 15:34:08 +02:00
|
|
|
|
public RewardChecker(IRewardGiver giver)
|
2024-06-14 11:05:29 +02:00
|
|
|
|
{
|
2024-06-17 15:34:08 +02:00
|
|
|
|
var repo = new RewardRepo();
|
|
|
|
|
var checks = repo.Rewards.Select(r => new RewardCheck(r, giver)).ToArray();
|
2024-08-21 13:59:54 +02:00
|
|
|
|
Handler = new ChainStateChangeHandlerMux(checks);
|
2024-06-14 11:05:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
2024-06-17 15:34:08 +02:00
|
|
|
|
public IChainStateChangeHandler Handler { get; }
|
2024-06-14 11:05:29 +02:00
|
|
|
|
}
|
|
|
|
|
}
|