flashbots / flashbots/contender

scenario file dependencies

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
141
Forks
57
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

we could compose scenarios separately to make them more readable and reduce duplication.

**Describe the solution you'd like**

add a `requires` field to the top-level scenario spec.

```toml
requires=["weth.toml", "uniV2.toml"]

[spam]
# ...
```

Then when parsing a `TestConfig` add the `[create]` and `[setup]` steps from the `requires` files to the given scenario config, in order and before any steps in the given config.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.