cs-codex-dist-tests/Tools/TestNetRewarder/RewardChecker.cs

18 lines
446 B
C#
Raw Normal View History

2024-06-14 09:05:29 +00:00
using CodexContractsPlugin.ChainMonitor;
using DiscordRewards;
namespace TestNetRewarder
{
public class RewardChecker
2024-06-14 09:05:29 +00:00
{
public RewardChecker(IRewardGiver giver)
2024-06-14 09:05:29 +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
}
public IChainStateChangeHandler Handler { get; }
2024-06-14 09:05:29 +00:00
}
}