Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
52e2f72
refactor(evm): report the reservoir where the result settles, without…
RealiCZ Oct 23, 2026
0c0231e
refactor(limit): price the body's history and the first frame's recor…
RealiCZ Oct 23, 2026
14ca3e3
refactor(evm): read the protocol's own work off the layer's one exemp…
RealiCZ Oct 23, 2026
73c6d6a
refactor(limit): read the EIP-7708 switch off the journal's own confi…
RealiCZ Oct 23, 2026
6d8a340
refactor(system): carry the access switch-off on the interceptor's an…
RealiCZ Oct 23, 2026
ed99323
refactor(system): price the keyless signer's give-backs again instead…
RealiCZ Oct 23, 2026
3b5f614
refactor(evm): reduce the destruction table's pricing switch to the n…
RealiCZ Oct 23, 2026
a7b4673
refactor(evm): read the context by shared reference in the pre-execut…
RealiCZ Oct 23, 2026
1ca589b
docs(skills): name where an interceptor's access switch-off is applie…
RealiCZ Oct 23, 2026
9e514db
refactor(evm): share the records' history price, name the system answ…
RealiCZ Oct 23, 2026
0903f86
test(system): give the signer's account back at a crowded bucket's pr…
RealiCZ Oct 23, 2026
b08c3b8
fix(evm): report a system call's own reservoir when it runs through t…
RealiCZ Oct 23, 2026
608a746
fix(evm): decide whether a transaction pays history when it is prepared
RealiCZ Oct 23, 2026
bf6e0b3
fix(evm): report a body's intrinsic history only once validation admi…
RealiCZ Oct 23, 2026
36f2313
test(evm): pin that a journal whose transfer-log switch is turned off…
RealiCZ Oct 23, 2026
d64d264
test(limit): set the bare journal's spec where a record test relies o…
RealiCZ Oct 23, 2026
9a1cdc0
docs: name the class the layer begins an execution as where AGENTS.md…
RealiCZ Oct 23, 2026
25b25a6
refactor(evm): read the protocol's detention caps off the class it is…
RealiCZ Oct 23, 2026
b07f4d4
test: assert the exact refusal, set every record test journal's spec,…
RealiCZ Oct 23, 2026
bd86f70
docs: name the class the layer begins an execution as in the AGENTS.m…
RealiCZ Oct 23, 2026
0b1f069
test: build the classification cases from transaction values
RealiCZ Oct 23, 2026
2e482f2
fix(evm): keep a context switched back from the neutral configuration…
RealiCZ Oct 23, 2026
edf3fa1
test(limit): pin when an authorization list needs the simulation
RealiCZ Oct 23, 2026
7eabf0b
bench(block): add a block of ERC-20 transfers
RealiCZ Oct 23, 2026
7e2e83f
feat(state-test): print what each transaction and block read below th…
RealiCZ Oct 23, 2026
e7fa266
perf(evm): price the first frame's write record once
RealiCZ Oct 23, 2026
cd89c48
perf(evm): skip the start reads of a call that moves no value
RealiCZ Oct 23, 2026
dbbbaa3
perf(limit): look each account up once per read of a write's records
RealiCZ Oct 23, 2026
f1a3589
perf(limit): visit only the pools a completed write's count touches
RealiCZ Oct 23, 2026
156a5ac
docs(evm): state what the pre-execution record charge answers, and as…
RealiCZ Oct 23, 2026
062a330
refactor(limit): apply review notes on the start and write-path changes
RealiCZ Oct 23, 2026
971e05b
test(state-test): require the pre-block account read to be present as…
RealiCZ Oct 23, 2026
db9fce0
bench(block): check the ERC-20 workload's log, return value and balan…
RealiCZ Oct 23, 2026
2abb441
docs(spec): name Satin's EIP-8037 profile and its freeze point
RealiCZ Oct 23, 2026
d8bd2a3
test(limit): pin the frame-budget boundary of a completed write's count
RealiCZ Oct 26, 2026
3eb5401
refactor(limit): drop the rise guard that the budget comparison alrea…
RealiCZ Oct 26, 2026
68a529b
chore(deps): pin the revm and op-revm forks at the heads of their pul…
RealiCZ Oct 26, 2026
2b89229
perf(limit): compare an account with its original info by reference
RealiCZ Oct 23, 2026
7646bae
chore: bump Rust nightly to fix closure-call miscompilation
RealiCZ Oct 26, 2026
98a1848
chore(deps): pin the revm and op-revm forks at the heads of their pul…
RealiCZ Oct 26, 2026
2c4822a
feat(evm): forward the start lifecycle hooks to the inner context in …
RealiCZ Oct 26, 2026
60238bf
feat(limit): a start ledger checked against the fork's figures in deb…
RealiCZ Oct 26, 2026
3f3d525
fix(limit): the start ledger compares the settling frame's own pools too
RealiCZ Oct 26, 2026
8a375a4
test(satin): the start ledger over the depth guard, a fatal error and…
RealiCZ Oct 26, 2026
c973c2c
docs: the start ledger a debug build checks against the fork's figure…
RealiCZ Oct 26, 2026
eb29894
refactor(limit): one park for the start ledger, a lint allow on the t…
RealiCZ Oct 26, 2026
4f43117
fix(evm): the start ledger reads a precompile's overdraw back as one
RealiCZ Oct 26, 2026
99a3602
fix(limit): a precompile's draw past a share reaches the start ledger…
RealiCZ Oct 27, 2026
33cc88f
test(satin): a creation that takes no address settles as one, cleared…
RealiCZ Oct 27, 2026
3bb1f7d
docs: the start ledger compares the allowance of a frame revm built t…
RealiCZ Oct 27, 2026
34a778c
feat(evm): a frame start's budgets, start charge, allowance and reser…
RealiCZ Oct 27, 2026
cc48b30
docs(evm): the neutral configuration forwards a frame the whole reser…
RealiCZ Oct 27, 2026
9c97357
test(satin): what the start ledger settles for rewrites, answers and …
RealiCZ Oct 27, 2026
535b32d
test(satin): a halting child gives its start's records back as a reve…
RealiCZ Oct 27, 2026
297da90
docs: the engine decides a frame start's budgets, start charge, allow…
RealiCZ Oct 27, 2026
ef989d2
fix(limit): a draw on a start an inspector made itself takes nothing …
RealiCZ Oct 27, 2026
4b1cb40
test(satin): the start ledger's lifecycle tests run in release too, a…
RealiCZ Oct 27, 2026
803b2c7
docs: a frame's budgets and start charge are the start ledger's where…
RealiCZ Oct 27, 2026
d8064bd
docs: the budgets and an allowance are on a frame's start, in the rev…
RealiCZ Oct 27, 2026
70a371e
fix(evm): a halted transaction's start-charge refund burns the regula…
RealiCZ Oct 27, 2026
e1ba907
test(satin): a value call's frame whose interpreter an inspector repl…
RealiCZ Oct 27, 2026
1961a6d
docs: a replaced interpreter keeps the frame's allowance, deployed co…
RealiCZ Oct 27, 2026
d8de200
test(satin): a halted transaction with no start charge keeps what its…
RealiCZ Oct 27, 2026
30c8778
docs: a halted transaction's start settlement burns its regular gas, …
RealiCZ Oct 27, 2026
ff10952
test(satin): name the extra-reservoir shapes by where the inspector p…
RealiCZ Oct 27, 2026
44b5add
fix(satin): the fatal cleanup drops a recorded error and the failed c…
RealiCZ Oct 27, 2026
ed4181e
fix(satin): every entry point that finalizes on a success finalizes o…
RealiCZ Oct 27, 2026
17644f7
docs: an error leaves nothing of the failed call for the next one on …
RealiCZ Oct 27, 2026
ff18af6
test(satin): classify the entry-point table exhaustively, and state w…
RealiCZ Oct 27, 2026
cfa9f60
test(satin): fail the entry-point table before the first frame, and r…
RealiCZ Oct 27, 2026
ed2d8d9
docs: narrow the failed-call cleanup statements to what changes a lat…
RealiCZ Oct 27, 2026
c726f5c
test(satin): a caller's reservoir after its child is what it kept wit…
RealiCZ Oct 27, 2026
5f360e4
refactor(evm): a precompile's answer is no longer read back for pool …
RealiCZ Oct 27, 2026
4791951
feat(evm): run on revm and op-revm forks that carry none of a frame s…
RealiCZ Oct 27, 2026
610e5a3
docs: the forks carry none of a start's four figures, and the engine …
RealiCZ Oct 27, 2026
c8aab45
chore(deps): pin the revm fork at 4c8f0d43 and op-revm at 8c0db939
RealiCZ Oct 27, 2026
e459b8e
test(satin): the reservoir settlement test names the funding it reads…
RealiCZ Oct 27, 2026
79c5ef1
refactor(test-utils): the pool types come from the crate root alone
RealiCZ Oct 27, 2026
06cd5a3
test(evm): drop the schedule test that only restated two constants th…
RealiCZ Oct 27, 2026
adf4582
docs: no provider adopts pool draws today, the schedule has no entry …
RealiCZ Oct 27, 2026
dd007b9
test(limit): the start ledger's caller-net rule and an answer's rebui…
RealiCZ Oct 28, 2026
75eb153
docs: the review guide names the fork heads the patch blocks pin, and…
RealiCZ Oct 28, 2026
5e3f30a
refactor(limit): check that every pool amount is zero by pattern, not…
RealiCZ Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 50 additions & 20 deletions .claude/skills/satin-review/SKILL.md

Large diffs are not rendered by default.

105 changes: 67 additions & 38 deletions AGENTS.md

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,20 @@ codegen-units = 1
[patch.crates-io]
# megaeth fork of revm (revm 40.0.3 + the revm 43 gas core + the megaeth hooks).
# All twelve crates move together, otherwise the build resolves a second copy of revm.
revm = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-primitives = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-interpreter = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-context = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-context-interface = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-handler = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-database = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-database-interface = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-state = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-bytecode = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-precompile = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm-inspector = { git = "https://github.com/megaeth-labs/revm", rev = "fd230a3427d1b96c88e0b581bab8a7763c8ec298" }
revm = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-primitives = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-interpreter = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-context = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-context-interface = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-handler = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-database = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-database-interface = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-state = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-bytecode = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-precompile = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }
revm-inspector = { git = "https://github.com/megaeth-labs/revm", rev = "4c8f0d43b70f2175f9ce0132cc343283f9a29548" }

[patch."https://github.com/ethereum-optimism/optimism"]
# megaeth fork of op-revm (the OP monorepo copy ported to the revm fork's gas core), built
# against the revm pin above.
op-revm = { git = "https://github.com/megaeth-labs/op-revm", rev = "2ecb7dceed1c458a2b59ca4d8993a073968cb111" }
op-revm = { git = "https://github.com/megaeth-labs/op-revm", rev = "8c0db939291e1c4cbf2375782d1483bc371d6b94" }
2 changes: 1 addition & 1 deletion REVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Defer to the baseline for everything not listed here; the rules below take prece
Flag a stop that surfaces as a halt, a limit that is checked after the state change it guards, a stopped frame whose writes, logs or counted bytes survive into its caller, and an answer the engine turns into the stop whose journal is not taken back.
The outcome's `limit_exceeded`, not the output bytes, tells a stop from a contract that reverts with the same bytes.
- **Pools and ledgers stay aligned with frames.**
A frame's byte pool is on its gas tracker and settles with it; `frame_init` opens one entry per start revm decided (`AdditionalLimit::open_start`), which the result returning at that depth closes (`close_start`), and a start revm did not decide opens none; a synthetic frame result carries the caller's pools (`synthetic_frame_result`), never `Gas::new(limit)`.
A frame's budgets are on its start's entry of the engine's start ledger, which revm's start lifecycle opens and settles (`limit/ledger.rs`); `frame_init` opens one entry per start revm decided (`AdditionalLimit::open_start`), which the result returning at that depth closes (`close_start`), and a start revm did not decide opens none; a synthetic frame result carries the inherited reservoir (`synthetic_frame_result`), never `Gas::new(limit)`, and settles on its start's budgets and start charge by status.
A mechanism that adds a state charge goes through `Host::state_gas_price` at the site the state lands on and does not price the charge itself; a charge is given back at the price it was made at, unless an inspector rewrote the call's target, which revm reads the refund's account off.
The three ledgers (regular, state, history) add up to the raw spend, and the block counts `max(regular, floor)` with history taken out first.
- **Gas detention caps a frame inside the frame's own tracker.**
Expand Down
Loading
Loading