30 lines
922 B
C#
30 lines
922 B
C#
using Core;
|
|
using GethPlugin;
|
|
|
|
namespace CodexContractsPlugin
|
|
{
|
|
public static class CoreInterfaceExtensions
|
|
{
|
|
public static CodexContractsDeployment DeployCodexContracts(this CoreInterface ci, IGethNode gethNode)
|
|
{
|
|
return Plugin(ci).DeployContracts(ci, gethNode);
|
|
}
|
|
|
|
public static ICodexContracts WrapCodexContractsDeployment(this CoreInterface ci, CodexContractsDeployment deployment)
|
|
{
|
|
return Plugin(ci).WrapDeploy(deployment);
|
|
}
|
|
|
|
public static ICodexContracts StartCodexContracts(this CoreInterface ci, IGethNode gethNode)
|
|
{
|
|
var deployment = DeployCodexContracts(ci, gethNode);
|
|
return WrapCodexContractsDeployment(ci, deployment);
|
|
}
|
|
|
|
private static CodexContractsPlugin Plugin(CoreInterface ci)
|
|
{
|
|
return ci.GetPlugin<CodexContractsPlugin>();
|
|
}
|
|
}
|
|
}
|