2023-04-17 14:28:07 +00:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Marketplace
|
|
|
|
|
{
|
|
|
|
|
public class CodexContractsContainerRecipe : ContainerRecipeFactory
|
|
|
|
|
{
|
2023-05-02 05:16:10 +00:00
|
|
|
|
#if Arm64
|
|
|
|
|
public const string DockerImage = "emizzle/codex-contracts-deployment:latest";
|
|
|
|
|
#else
|
2023-05-03 08:21:15 +00:00
|
|
|
|
public const string DockerImage = "thatbenbierens/codex-contracts-deployment:nomint";
|
2023-05-02 05:16:10 +00:00
|
|
|
|
#endif
|
2023-04-18 08:22:11 +00:00
|
|
|
|
public const string MarketplaceAddressFilename = "/usr/app/deployments/codexdisttestnetwork/Marketplace.json";
|
2023-04-24 12:09:23 +00:00
|
|
|
|
public const string MarketplaceArtifactFilename = "/usr/app/artifacts/contracts/Marketplace.sol/Marketplace.json";
|
2023-04-17 14:28:07 +00:00
|
|
|
|
|
|
|
|
|
protected override string Image => DockerImage;
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|