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