Skip to content

Commit fa38f3b

Browse files
committed
Add docs for op-e2e
1 parent ad4a9c5 commit fa38f3b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

op-e2e/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# op-e2e
2+
3+
The end to end tests in this repo depend on genesis state that is
4+
created with the `bedrock-devnet` package, and asterisc is deployed
5+
and registered to dispute game. To create this state, run the
6+
following commands from the root of the repository:
7+
8+
```bash
9+
make devnet-allocs
10+
```
11+
12+
This will leave artifacts in the `.devnet` directory that will be
13+
read into `op-e2e` at runtime. The default deploy configuration
14+
used for starting all `op-e2e` based tests can be found in
15+
`packages/contracts-bedrock/deploy-config/devnetL1.json`. There
16+
are some values that are safe to change in memory in `op-e2e` at
17+
runtime, but others cannot be changed or else it will result in
18+
broken tests. Any changes to `devnetL1.json` should result in
19+
rebuilding the `.devnet` artifacts before the new values will
20+
be present in the `op-e2e` tests.
21+
22+
The design of running op-e2e at this repo is identical with
23+
[monorepo's op-e2e](https://github.com/ethereum-optimism/optimism/blob/develop/op-e2e/README.md).
24+
25+
You may rebuild artifacts by following commanads:
26+
27+
```bash
28+
make devnet-clean
29+
make devnet-allocs
30+
```
31+
32+
## Running tests
33+
34+
Run
35+
36+
```
37+
cd op-e2e
38+
go test -v ./faultproofs -timeout 99999s
39+
```

0 commit comments

Comments
 (0)