2
0
mirror of synced 2025-01-19 04:51:44 +00:00
cs-codex-dist-tests/DistTestCore/Marketplace/GethBootstrapNodeInfo.cs

36 lines
1.2 KiB
C#
Raw Normal View History

2023-04-14 09:54:07 +02:00
using KubernetesWorkflow;
using Logging;
using NethereumWorkflow;
2023-04-14 09:54:07 +02:00
namespace DistTestCore.Marketplace
{
public class GethBootstrapNodeInfo
{
2023-04-19 07:59:28 +02:00
public GethBootstrapNodeInfo(RunningContainers runningContainers, string account, string pubKey, string privateKey, Port discoveryPort)
2023-04-14 09:54:07 +02:00
{
RunningContainers = runningContainers;
Account = account;
PubKey = pubKey;
2023-04-18 13:22:41 +02:00
PrivateKey = privateKey;
DiscoveryPort = discoveryPort;
2023-04-14 09:54:07 +02:00
}
public RunningContainers RunningContainers { get; }
public string Account { get; }
public string PubKey { get; }
2023-04-18 13:22:41 +02:00
public string PrivateKey { get; }
public Port DiscoveryPort { get; }
public NethereumInteraction StartInteraction(TestLog log)
{
var ip = RunningContainers.RunningPod.Cluster.IP;
var port = RunningContainers.Containers[0].ServicePorts[0].Number;
var account = Account;
var privateKey = PrivateKey;
var creator = new NethereumInteractionCreator(log, ip, port, account, privateKey);
return creator.CreateWorkflow();
}
2023-04-14 09:54:07 +02:00
}
}