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

18 lines
458 B
C#
Raw Permalink 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();
2024-08-21 11:59:54 +00:00
Handler = new ChainStateChangeHandlerMux(checks);
2024-06-14 09:05:29 +00:00
}
public IChainStateChangeHandler Handler { get; }
2024-06-14 09:05:29 +00:00
}
}