mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 21:43:08 +00:00
29 lines
793 B
C#
29 lines
793 B
C#
using Core;
|
|
|
|
namespace GethPlugin
|
|
{
|
|
public static class CoreInterfaceExtensions
|
|
{
|
|
public static GethDeployment DeployGeth(this CoreInterface ci, Action<IGethSetup> setup)
|
|
{
|
|
return Plugin(ci).DeployGeth(setup);
|
|
}
|
|
|
|
public static IGethNode WrapGethDeployment(this CoreInterface ci, GethDeployment deployment)
|
|
{
|
|
return Plugin(ci).WrapGethDeployment(deployment);
|
|
}
|
|
|
|
public static IGethNode StartGethNode(this CoreInterface ci, Action<IGethSetup> setup)
|
|
{
|
|
var deploy = DeployGeth(ci, setup);
|
|
return WrapGethDeployment(ci, deploy);
|
|
}
|
|
|
|
private static GethPlugin Plugin(CoreInterface ci)
|
|
{
|
|
return ci.GetPlugin<GethPlugin>();
|
|
}
|
|
}
|
|
}
|