Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dockerfile for deploying contracts #755

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contracts/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache/
out/
broadcast/
bindings/
2 changes: 1 addition & 1 deletion contracts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docs/
data/

script/output/*
script/eigenda_deploy_config.json
script/input/eigenda_deploy_config.json
13 changes: 13 additions & 0 deletions contracts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use the latest foundry image
FROM --platform=linux/amd64 ghcr.io/foundry-rs/foundry:latest

# Copy our source code into the container
WORKDIR /app

# Build and test the source code
COPY . .
RUN forge build
RUN forge test

# Set the entrypoint to the forge command
ENTRYPOINT ["/bin/sh", "-c"]
2 changes: 1 addition & 1 deletion contracts/script/GenerateUnitTestHashes.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "forge-std/console.sol";

contract GenerateHashes is Script {

string deployConfigPath = "script/eigenda_deploy_config.json";
string deployConfigPath = "script/input/eigenda_deploy_config.json";

// deploy all the EigenDA contracts. Relies on many EL contracts having already been deployed.
function run() external {
Expand Down
2 changes: 1 addition & 1 deletion contracts/script/SetUpEigenDA.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import "forge-std/StdJson.sol";
// forge script script/Deployer.s.sol:SetupEigenDA --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast -vvvv
contract SetupEigenDA is EigenDADeployer, EigenLayerUtils {

string deployConfigPath = "script/eigenda_deploy_config.json";
string deployConfigPath = "script/input/eigenda_deploy_config.json";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to change this path to make the kurtosis devnet work (otherwise uploading the config would overwrite the rest of the directory.

I think I changed everywhere else that depended on this but please double check. Also I feel like we might want to have this path as an arg to the run function instead of hardcoded?


// deploy all the EigenDA contracts. Relies on many EL contracts having already been deployed.
function run() external {
Expand Down
2 changes: 1 addition & 1 deletion inabox/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (env *Config) deployEigenDAContracts() {
if err != nil {
log.Panicf("Error: %s", err.Error())
}
writeFile("script/eigenda_deploy_config.json", data)
writeFile("script/input/eigenda_deploy_config.json", data)

execForgeScript("script/SetUpEigenDA.s.sol:SetupEigenDA", env.Pks.EcdsaMap[deployer.Name].PrivateKey, deployer, nil)

Expand Down
Loading