Skip to content

Commit

Permalink
Merge pull request #9 from clabby/clabby/modernize-devnet
Browse files Browse the repository at this point in the history
feat: Upgrade devnet
  • Loading branch information
clabby authored Sep 1, 2023
2 parents 3a0d0cf + ba5240c commit 64deeca
Show file tree
Hide file tree
Showing 19 changed files with 49 additions and 577 deletions.
2 changes: 1 addition & 1 deletion .env.devnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export OP_CHALLENGER_PUB_KEY="0xAF00b1C8A848BE9aFb28860BA0dC27b02fE3BD4d"
export OP_CHALLENGER_L1_WS="ws://127.0.0.1:8546"
export OP_CHALLENGER_TRUSTED_OP_NODE_RPC="http://localhost:7545"
export OP_CHALLENGER_L2OO="0x6900000000000000000000000000000000000000"
export OP_CHALLENGER_DGF="0x020000000fc854958a2400c973d2523146343d31"
export OP_CHALLENGER_DGF="0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e"
14 changes: 0 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@ name: ci
on: [push]

jobs:
foundry-tests:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: cd testdata/mock-dgf && forge test
id: build
cargo-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down
12 changes: 5 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Thanks for wanting to contribute! :yellow_heart:
To work in this repo, you'll need to install:
1. [Rust Toolchain](https://rustup.rs/)
1. [Docker](https://docs.docker.com/get-docker/)
1. [ripgrep](https://github.com/BurntSushi/ripgrep)
1. [mprocs](https://github.com/pvolok/mprocs)

And clone the [Optimism Monorepo](https://github.com/ethereum-optimism/optimism)

Expand All @@ -19,17 +21,13 @@ git clone [email protected]:clabby/op-challenger.git
2. Configure your dev environment
```sh
# Set the MONOREPO_DIR variable
nvim .env.devnet
# Set up your env vars
source .env.devnet
nvim start_devnet.sh
# On the L1 service, port forward the websocket endpoint port (8546)
nvim $MONOREPO_DIR/ops-bedrock/docker-compose.yml
# Install forge deps
(cd ./testdata/mock-dgf && forge install)
# Start the devnet and deploy the mock dispute game factory
# Start the devnet
./start_devnet.sh
```
3. Start the `op-challenger` with information, warning, and error traces enabled.
3. Start the `op-challenger` with information, warning, and error traces enabled. There are 4 levels of log verbosity, with `-vvvv` showing all log levels.
```sh
cargo run --bin op-challenger -- -vv
```
Expand Down
194 changes: 17 additions & 177 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64deeca

Please sign in to comment.