diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1be95a2..143785c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,9 +1,15 @@ ARG AVALANCHEGO_VERSION FROM avaplatform/avalanche-cli:latest as avalanche-cli +FROM ghcr.io/foundry-rs/foundry:latest as foundry FROM avaplatform/avalanchego:$AVALANCHEGO_VERSION as avalanchego FROM mcr.microsoft.com/devcontainers/base COPY --from=avalanchego /avalanchego/build /go/src/github.com/ava-labs/avalanchego/build COPY --from=avalanche-cli /avalanche /usr/local/bin/avalanche +COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge +COPY --from=foundry /usr/local/bin/cast /usr/local/bin/cast +COPY --from=foundry /usr/local/bin/anvil /usr/local/bin/anvil +COPY --from=foundry /usr/local/bin/chisel /usr/local/bin/chisel + RUN curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-network-runner/main/scripts/install.sh | sh -s diff --git a/README.md b/README.md index 207d372..178ed13 100644 --- a/README.md +++ b/README.md @@ -49,23 +49,18 @@ You can build your precompile and Subnet-EVM with `./scripts/build.sh`. This scr ### Run -You can run you Precompile-EVM by using Avalanche Network Runner +You can run you Precompile-EVM by using the Avalanche CLI. + +First, create the configuration for your subnet. ```bash -avalanche-network-runner server \ ---log-level debug \ ---port=":8080" \ ---grpc-gateway-port=":8081" +avalanche subnet create mysubnet --custom --vm $AVALANCHEGO_PLUGIN_PATH/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy --genesis ./.devcontainer/genesis-example.json ``` -Then launch a Subnet with your custom VM: +Next, launch the Subnet with your custom VM: ```bash - avalanche-network-runner control start \ - --log-level debug \ - --endpoint="0.0.0.0:8080" \ - --number-of-nodes=5 \ - --blockchain-specs '[{"vm_name": "subnetevm", "genesis": "./.devcontainer/genesis-example.json"}]' +avalanche subnet deploy mysubnet ``` ### Test