Add MEV post-deploy config patch helper
This commit is contained in:
@@ -126,6 +126,28 @@ The helper also records the deployed executor's on-chain:
|
||||
|
||||
so you have an auditable deployment record instead of stdout-only notes.
|
||||
|
||||
## Cutover-ready config patching
|
||||
|
||||
Once the contracts are actually broadcast, use the artifact to patch the MEV config deterministically instead of editing TOML by hand:
|
||||
|
||||
```bash
|
||||
bash scripts/deployment/apply-mev-execution-config-from-artifact.sh \
|
||||
--artifact reports/status/mev_execution_deploy_YYYYMMDD_HHMMSS.json \
|
||||
--config MEV_Bot/mev-platform/config.toml \
|
||||
--uniswap-v2-router 0x... \
|
||||
--sushiswap-router 0x...
|
||||
```
|
||||
|
||||
That runs in dry-run mode by default and prints a unified diff. Add `--apply` when the diff is correct.
|
||||
|
||||
This patch step updates:
|
||||
|
||||
- `chains.<id>.execution.executor_contract`
|
||||
- `chains.<id>.execution.flash_loan_provider`
|
||||
- `chains.<id>.factories[].router` for `uniswap_v2`
|
||||
- `chains.<id>.factories[].router` for `sushiswap`
|
||||
- optional `relay_url` if `--relay-url` is supplied
|
||||
|
||||
## Commit policy
|
||||
|
||||
Safe to commit:
|
||||
|
||||
Reference in New Issue
Block a user