2023-10-25 08:38:21 +00:00
|
|
|
|
namespace CodexDiscordBotPlugin
|
2023-10-24 08:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
public class DiscordBotStartupConfig
|
|
|
|
|
{
|
2024-02-19 08:11:36 +00:00
|
|
|
|
public DiscordBotStartupConfig(string name, string token, string serverName, string adminRoleName, string adminChannelName, string kubeNamespace, DiscordBotGethInfo gethInfo, string rewardChannelName)
|
2023-10-24 08:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
Token = token;
|
|
|
|
|
ServerName = serverName;
|
|
|
|
|
AdminRoleName = adminRoleName;
|
2023-10-25 08:38:21 +00:00
|
|
|
|
AdminChannelName = adminChannelName;
|
2023-11-08 10:49:21 +00:00
|
|
|
|
KubeNamespace = kubeNamespace;
|
2023-12-11 10:09:29 +00:00
|
|
|
|
GethInfo = gethInfo;
|
2024-02-19 08:11:36 +00:00
|
|
|
|
RewardChannelName = rewardChannelName;
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; }
|
|
|
|
|
public string Token { get; }
|
|
|
|
|
public string ServerName { get; }
|
|
|
|
|
public string AdminRoleName { get; }
|
2023-10-25 08:38:21 +00:00
|
|
|
|
public string AdminChannelName { get; }
|
2024-02-19 08:11:36 +00:00
|
|
|
|
public string RewardChannelName { get; }
|
2023-11-08 10:49:21 +00:00
|
|
|
|
public string KubeNamespace { get; }
|
2023-12-11 10:09:29 +00:00
|
|
|
|
public DiscordBotGethInfo GethInfo { get; }
|
2023-10-25 09:53:33 +00:00
|
|
|
|
public string? DataPath { get; set; }
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|
2023-12-11 10:09:29 +00:00
|
|
|
|
|
2024-01-31 16:52:02 +00:00
|
|
|
|
public class RewarderBotStartupConfig
|
|
|
|
|
{
|
2024-04-01 13:55:47 +00:00
|
|
|
|
public RewarderBotStartupConfig(string discordBotHost, int discordBotPort, string intervalMinutes, DateTime historyStartUtc, DiscordBotGethInfo gethInfo, string? dataPath)
|
2024-01-31 16:52:02 +00:00
|
|
|
|
{
|
|
|
|
|
DiscordBotHost = discordBotHost;
|
|
|
|
|
DiscordBotPort = discordBotPort;
|
2024-04-01 13:55:47 +00:00
|
|
|
|
IntervalMinutes = intervalMinutes;
|
2024-01-31 16:52:02 +00:00
|
|
|
|
HistoryStartUtc = historyStartUtc;
|
|
|
|
|
GethInfo = gethInfo;
|
|
|
|
|
DataPath = dataPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string DiscordBotHost { get; }
|
|
|
|
|
public int DiscordBotPort { get; }
|
2024-04-01 13:55:47 +00:00
|
|
|
|
public string IntervalMinutes { get; }
|
2024-01-31 16:52:02 +00:00
|
|
|
|
public DateTime HistoryStartUtc { get; }
|
|
|
|
|
public DiscordBotGethInfo GethInfo { get; }
|
|
|
|
|
public string? DataPath { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-11 10:09:29 +00:00
|
|
|
|
public class DiscordBotGethInfo
|
|
|
|
|
{
|
|
|
|
|
public DiscordBotGethInfo(string host, int port, string privKey, string marketplaceAddress, string tokenAddress, string abi)
|
|
|
|
|
{
|
|
|
|
|
Host = host;
|
|
|
|
|
Port = port;
|
|
|
|
|
PrivKey = privKey;
|
|
|
|
|
MarketplaceAddress = marketplaceAddress;
|
|
|
|
|
TokenAddress = tokenAddress;
|
|
|
|
|
Abi = abi;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Host { get; }
|
|
|
|
|
public int Port { get; }
|
|
|
|
|
public string PrivKey { get; }
|
|
|
|
|
public string MarketplaceAddress { get; }
|
|
|
|
|
public string TokenAddress { get; }
|
|
|
|
|
public string Abi { get; }
|
|
|
|
|
}
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|