Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PraneshASP/smol-evm-rs
/ functions
Functions
36 in github.com/PraneshASP/smol-evm-rs
⨍
Functions
36
◇
Types & classes
11
↓ 76 callers
Method
push
(&mut self, item: usize)
src/stack.rs:23
↓ 33 callers
Method
read_code
Returns the next num_bytes from the code buffer as an integer and advances pc by num_bytes.
src/execution_context.rs:40
↓ 25 callers
Method
pop
(&mut self)
src/stack.rs:36
↓ 18 callers
Method
swap
(&mut self, index: usize)
src/stack.rs:50
↓ 16 callers
Method
peek
(&mut self, index: usize)
src/stack.rs:43
↓ 11 callers
Method
store
(&mut self, offset: usize, value: usize)
src/memory.rs:21
↓ 4 callers
Method
expand_if_needed
(&mut self, offset: usize)
src/memory.rs:80
↓ 3 callers
Method
active_words
(&self)
src/memory.rs:73
↓ 2 callers
Method
load
(&mut self, offset: usize)
src/memory.rs:31
↓ 2 callers
Method
read_word
TODO: Change to handle U256
src/calldata.rs:20
↓ 2 callers
Method
set_pc
(&mut self, pc: usize)
src/execution_context.rs:57
↓ 1 callers
Method
execute
(&self, context: &mut ExecutionContext)
src/opcodes.rs:227
↓ 1 callers
Method
load_range
(&mut self, offset: usize, length: usize)
src/memory.rs:39
↓ 1 callers
Method
read_byte
(&self, offset: usize)
src/calldata.rs:12
↓ 1 callers
Method
set_returndata
(&mut self, offset: usize, length: usize)
src/execution_context.rs:52
↓ 1 callers
Method
stop
(&mut self)
src/execution_context.rs:35
Method
decode_opcode
( context: &mut ExecutionContext, )
src/instruction.rs:46
Function
load_from_memory
()
src/memory.rs:146
Function
main
()
src/main.rs:8
Method
new
(code: Bytes)
src/execution_context.rs:22
Method
new
(max_depth: usize)
src/stack.rs:16
Method
new
()
src/memory.rs:17
Method
new
(data: Bytes)
src/calldata.rs:8
Function
new_memory_is_empty
()
src/memory.rs:98
Function
new_stack_is_empty
()
src/stack.rs:71
Function
push_and_pop_on_stack
()
src/stack.rs:77
Method
register_instruction
(opcode: usize, name: String, executor: Box<dyn OpcodeExecutor>)
src/instruction.rs:30
Method
register_instructions
()
src/opcodes.rs:105
Function
store_in_memory
()
src/memory.rs:104
Method
store_word
(&mut self, offset: usize, value: usize)
src/memory.rs:65
Function
test_active_words
()
src/memory.rs:123
Function
test_peek
()
src/stack.rs:86
Function
test_read_byte
()
src/calldata.rs:35
Function
test_read_word
()
src/calldata.rs:52
Function
test_swap
()
src/stack.rs:100
Method
valid_jump_destinations
(code: Bytes)
src/execution_context.rs:61