-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
54 lines (40 loc) · 2.16 KB
/
makefile
File metadata and controls
54 lines (40 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: build test lint fmt check clean sim-builder sim-ptc cli docs
# ─── Build ────────────────────────────────────────────────────────────────────
build:
cargo build --release
# ─── Test ─────────────────────────────────────────────────────────────────────
test:
cargo test --all
test-unit:
cargo test --test unit
test-integration:
cargo test --test integration
fuzz:
cargo +nightly fuzz run fuzz_bid
cargo +nightly fuzz run fuzz_envelope
# ─── Quality ──────────────────────────────────────────────────────────────────
lint:
cargo clippy --all-targets --all-features -- -D warnings
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
check: fmt-check lint test
# ─── Examples ─────────────────────────────────────────────────────────────────
# Simulates a full ePBS round: proposer selects a builder bid,
# builder reveals payload, PTC attests
sim-builder:
cargo run --example builder_sim
# Simulates a 512-member Payload Timeliness Committee voting on
# payload availability
sim-ptc:
cargo run --example ptc_sim
# Interactive CLI — inspect bids, envelopes, PTC attestations
cli:
cargo run --bin epbs-cli -- --help
# ─── Docs ─────────────────────────────────────────────────────────────────────
docs:
cargo doc --no-deps --open
# ─── Clean ────────────────────────────────────────────────────────────────────
clean:
cargo clean