2023-04-17 16:28:07 +02:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Marketplace
|
|
|
|
|
{
|
|
|
|
|
public class CodexContractsContainerRecipe : ContainerRecipeFactory
|
|
|
|
|
{
|
2023-04-18 10:22:11 +02:00
|
|
|
|
public const string MarketplaceAddressFilename = "/usr/app/deployments/codexdisttestnetwork/Marketplace.json";
|
2023-04-24 14:09:23 +02:00
|
|
|
|
public const string MarketplaceArtifactFilename = "/usr/app/artifacts/contracts/Marketplace.sol/Marketplace.json";
|
2023-04-17 16:28:07 +02:00
|
|
|
|
|
2023-07-17 11:12:14 +02:00
|
|
|
|
public override string Image { get; }
|
|
|
|
|
|
|
|
|
|
public CodexContractsContainerRecipe()
|
|
|
|
|
{
|
|
|
|
|
#if Arm64
|
|
|
|
|
Image = "emizzle/codex-contracts-deployment:latest";
|
|
|
|
|
#else
|
|
|
|
|
Image = "thatbenbierens/codex-contracts-deployment:nomint2";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
2023-04-17 16:28:07 +02:00
|
|
|
|
|
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
|
|
|
{
|
|
|
|
|
var config = startupConfig.Get<CodexContractsContainerConfig>();
|
|
|
|
|
|
|
|
|
|
var ip = config.BootstrapNodeIp;
|
|
|
|
|
var port = config.JsonRpcPort.Number;
|
|
|
|
|
|
|
|
|
|
AddEnvVar("DISTTEST_NETWORK_URL", $"http://{ip}:{port}");
|
|
|
|
|
AddEnvVar("HARDHAT_NETWORK", "codexdisttestnetwork");
|
|
|
|
|
AddEnvVar("KEEP_ALIVE", "1");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|