32 lines
966 B
C#
32 lines
966 B
C#
using KubernetesWorkflow;
|
|
using Logging;
|
|
using NethereumWorkflow;
|
|
|
|
namespace DistTestCore.Marketplace
|
|
{
|
|
public class GethCompanionNodeInfo
|
|
{
|
|
public GethCompanionNodeInfo(RunningContainer runningContainer, string account, string privateKey)
|
|
{
|
|
RunningContainer = runningContainer;
|
|
Account = account;
|
|
PrivateKey = privateKey;
|
|
}
|
|
|
|
public RunningContainer RunningContainer { get; }
|
|
public string Account { get; }
|
|
public string PrivateKey { get; }
|
|
|
|
public NethereumInteraction StartInteraction(TestLog log)
|
|
{
|
|
var ip = RunningContainer.Pod.Cluster.IP;
|
|
var port = RunningContainer.ServicePorts[0].Number;
|
|
var account = Account;
|
|
var privateKey = PrivateKey;
|
|
|
|
var creator = new NethereumInteractionCreator(log, ip, port, account, privateKey);
|
|
return creator.CreateWorkflow();
|
|
}
|
|
}
|
|
}
|