Skip to content

Commit

Permalink
✨ Add cancun opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philogy committed Oct 8, 2024
1 parent f3a09a1 commit 4a313f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformer/std_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ pub fn get_standard_opcodes_and_deps() -> (Vec<&'static str>, Vec<Op>) {
Op::pure("chainid", 0, true),
Op::new("selfbalance", 0, true, vec!["BALANCES"], vec![]),
Op::pure("basefee", 0, true),
Op::pure("blobhash", 0, true),
Op::pure("blobbasefee", 0, true),
Op::pure("gas", 0, true),
////////////////////////////////////////////////////////////////,
// CODE GETTERS //,
Expand All @@ -170,6 +172,7 @@ pub fn get_standard_opcodes_and_deps() -> (Vec<&'static str>, Vec<Op>) {
Op::new("mload", 1, true, vec!["MEMORY"], vec!["MEMSIZE"]),
Op::new("mstore", 2, false, vec![], vec!["MEMORY", "MEMSIZE"]),
Op::new("mstore8", 2, false, vec![], vec!["MEMORY", "MEMSIZE"]),
Op::new("mcopy", 3, false, vec![], vec!["MEMORY", "MEMSIZE"]),
////////////////////////////////////////////////////////////////,
// PERSISTENT STORAGE //,
////////////////////////////////////////////////////////////////,
Expand Down

0 comments on commit 4a313f4

Please sign in to comment.