Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 21, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

maximevtush and others added 4 commits January 21, 2026 10:58
)

* Update item_or_result.rs

* Update evm.rs

* Update item_or_result.rs
Add the SLOTNUM opcode (0x4B) that returns the slot number for the
current block as specified in EIP-7843. The slot number is passed
from the consensus layer via the execution payload.

Changes:
- Add SLOTNUM opcode constant at 0x4B in bytecode
- Add slot_num field to BlockEnv struct
- Add slot_num method to Block trait with default returning 0
- Add slot_num method to Host trait
- Implement slot_num instruction gated behind AMSTERDAM hardfork
- Gas cost: 2 (aligned with similar base-level opcodes)
* feat: add BAL (Block Access List) example

Demonstrates EIP-7928 Block Access List usage:
- Phase 1: Build BAL by executing transactions with with_bal_builder()
- Phase 2: Use built BAL for re-execution with with_bal()

The example uses a simple counter contract to show how storage
writes are captured and indexed by transaction in the BAL.

Amp-Thread-ID: https://ampcode.com/threads/T-019be006-e325-74af-8ccb-51f1a1e3e93d
Co-authored-by: Amp <amp@ampcode.com>

* fmt

---------

Co-authored-by: Amp <amp@ampcode.com>
@pull pull bot locked and limited conversation to collaborators Jan 21, 2026
@pull pull bot added the ⤵️ pull label Jan 21, 2026
@pull pull bot merged commit 69083f1 into ApeWorX:main Jan 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants