Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(core): add dencun opcodes #2791

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
14 changes: 11 additions & 3 deletions ethers-core/src/types/opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ pub enum Opcode {
SELFBALANCE,
/// Opcode 0x48 - Get the base fee
BASEFEE,
/// Opcode 0x49 - Get versioned hashes
BLOBHASH,
/// Opcode 0x4A - Returns the value of the blob base-fee of the current block
BLOBBASEFEE,

// 0x49 - 0x4F are invalid
// 0x4B - 0x4F are invalid

// 0x50 range - 'storage' and execution.
/// Opcode 0x50 - Remove item from stack
Expand Down Expand Up @@ -180,8 +184,12 @@ pub enum Opcode {
GAS,
/// Opcode 0x5B - Mark a valid destination for jumps
JUMPDEST,

// 0x5C - 0x5E are invalid
/// Opcode 0x5C - Load word from transient storage
TLOAD,
/// Opcode 0x5D - Save word to transient storage
TSTORE,
/// Opcode 0x5E - Copy memory areas
MCOPY,

// 0x5F range - pushes.
/// Opcode 0x5F - Place the constant value 0 on stack
Expand Down