flashbots / flashbots/contender

server: support manual re-run of setup

Open
#531 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.**

When you add a session via the contender RPC server, create/setup steps happen automatically (in `Contender::initialize`). Some scenarios might want to re-run their setup steps, or deploy new contracts.

**Describe the solution you'd like**

Add two new endpoints to the RPC server:

- `deployContracts(session_id)`
- `runSetup(session_id)`

Each of these has a corresponding function in `TestScenario` (via `orchestrator::Contender::scenario`); call the respective functions.

Add buttons to the session pane in the webpage to trigger these RPC calls.

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.