2023-04-14 07:54:07 +00:00
|
|
|
|
using KubernetesWorkflow;
|
2023-04-14 10:37:05 +00:00
|
|
|
|
using Logging;
|
|
|
|
|
using NethereumWorkflow;
|
2023-04-14 07:54:07 +00:00
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Marketplace
|
|
|
|
|
{
|
|
|
|
|
public class GethBootstrapNodeInfo
|
|
|
|
|
{
|
|
|
|
|
public GethBootstrapNodeInfo(RunningContainers runningContainers, string account, string genesisJsonBase64)
|
|
|
|
|
{
|
|
|
|
|
RunningContainers = runningContainers;
|
|
|
|
|
Account = account;
|
|
|
|
|
GenesisJsonBase64 = genesisJsonBase64;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RunningContainers RunningContainers { get; }
|
|
|
|
|
public string Account { get; }
|
|
|
|
|
public string GenesisJsonBase64 { get; }
|
2023-04-14 10:37:05 +00:00
|
|
|
|
|
|
|
|
|
public NethereumInteraction StartInteraction(TestLog log)
|
|
|
|
|
{
|
|
|
|
|
var ip = RunningContainers.RunningPod.Cluster.IP;
|
|
|
|
|
var port = RunningContainers.Containers[0].ServicePorts[0].Number;
|
|
|
|
|
|
|
|
|
|
var creator = new NethereumInteractionCreator(log, ip, port, Account);
|
|
|
|
|
return creator.CreateWorkflow();
|
|
|
|
|
}
|
2023-04-14 07:54:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|