host contracts in contender repo
@zeroXbrock đang làm issue này rồi.
Từ ngày 19/12/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 144
- Fork
- 58
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flashbots/contender
-
engine_newPayload filesĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
server: generate reportsĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
server: export DB from sessionCó thể làm lại được @zeroXbrock đã nhận 203 ngày trước và không có pull request nào đang mở. Đang mởenhancement help wanted question
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của flashbots/contender
Issue tương tự
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
KATO-Hiro/AtCoderClans#13029 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
RustCrypto/formats#2544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
userFRM/egui-charts#3363 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ada documentation mobile report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kindraywind/rustnarok-client#1382 ·
Maintainer thường phản hồi trong vòng 1 ngày