Module contract

Source
Expand description

Contract operations (CALL, CREATE, DELEGATECALL, etc.).

Functionsยง

calc_call_gas
Calculates gas cost and limit for call instructions.
call
Implements the CALL instruction.
call_code
Implements the CALLCODE instruction.
create
Implements the CREATE/CREATE2 instruction.
delegate_call
Implements the DELEGATECALL instruction.
get_memory_input_and_out_ranges
Gets memory input and output ranges for call instructions.
resize_memory
Resize memory and return range of memory. If len is 0 dont touch memory and return usize::MAX as offset and 0 as length.
static_call
Implements the STATICCALL instruction.