2023-04-17 14:28:07 +00:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Marketplace
|
|
|
|
|
{
|
2023-09-04 07:08:34 +00:00
|
|
|
|
public class CodexContractsContainerRecipe : DefaultContainerRecipe
|
2023-04-17 14:28:07 +00:00
|
|
|
|
{
|
2023-07-31 07:16:52 +00:00
|
|
|
|
public const string MarketplaceAddressFilename = "/hardhat/deployments/codexdisttestnetwork/Marketplace.json";
|
|
|
|
|
public const string MarketplaceArtifactFilename = "/hardhat/artifacts/contracts/Marketplace.sol/Marketplace.json";
|
2023-04-17 14:28:07 +00:00
|
|
|
|
|
2023-08-07 13:51:44 +00:00
|
|
|
|
public override string AppName => "codex-contracts";
|
2023-08-17 09:06:45 +00:00
|
|
|
|
public override string Image => "codexstorage/codex-contracts-eth:latest-dist-tests";
|
2023-04-17 14:28:07 +00:00
|
|
|
|
|
2023-09-04 07:08:34 +00:00
|
|
|
|
protected override void InitializeRecipe(StartupConfig startupConfig)
|
2023-04-17 14:28:07 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|