host contracts in contender repo
@zeroXbrock ci sta già lavorando.
Dal 19/12/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Is your feature request related to a problem? Please describe.
Firstly, contender scenario files use raw bytecode, which is hard to reason about. Additionally, if bytecode is specified without a comment linking to the source, then it's practically impossible to know the exact source code, making debugging difficult.
Most of the scenarios I've written so far have used high-volume-contract at their core (it contains the SpamMe contract). The fill-block spam subcommand relies on it as well. We also frequently use include TestToken and Unicheat.
It would be nice to have that contract be tightly coupled with contender as we add more subcommands and iterate on the contract.
Describe the solution you'd like
We still need our scenarios to use specific bytecode, but we could also use relative file paths, which are easy to read.
We should start by adding support for .hex files, but we should also support json files, so the user doesn't have to manually parse the bytecode from their json file into hex.
for .hex files:
- we only need the path.
- the contents should be utf8-encoded hex (like these)
- support contents with or without the 0x prefix
for .json files:
-
we need the path and a filter string to tell us where in the JSON our bytecode is
-
filter strings should be interpreted jq-style
- example: the filter string (jq-style) for bytecode from forge builds is
.bytecode.object - hardhat's is just
.bytecode
- example: the filter string (jq-style) for bytecode from forge builds is
-
make
bytecodeoptional in scenario files, addfile(andfilterfor json)
add contracts to the contender repo
- add high-volume-contracts, testToken, unicheater to this repo as submodules
- add a shell script under
scripts/that checks for the submodules, downloads them if needed, runsforge buildand writes bytecode from forge artifacts tocrates/cli/src/default_scenarios/contracts/*.hex
- Lingua principale
- Rust
- Stelle
- 144
- Fork
- 58
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flashbots/contender
-
engine_newPayload filesApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
server: generate reportsApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
server: export DB from sessionForse di nuovo libera @zeroXbrock l’ha presa 203 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement help wanted question
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
Tutte le issue di flashbots/contender
Issue simili
-
priority middle
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
KATO-Hiro/AtCoderClans#13029 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RustCrypto/formats#2544 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
userFRM/egui-charts#3363 ·
I maintainer di solito rispondono entro 1 giorno
-
ada documentation mobile report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kindraywind/rustnarok-client#1382 ·
I maintainer di solito rispondono entro 1 giorno