Skip to main content

Module contract

Module contract 

Source
Expand description

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

Functionsยง

call
Implements the CALL, CALLCODE, DELEGATECALL, and STATICCALL instructions.
create
Implements the CREATE/CREATE2 instruction.
get_memory_input_and_out_ranges
Gets memory input and output ranges for call instructions.
load_acc_and_calc_gas
Calculates gas cost and limit for call instructions.
load_account_delegated
Loads accounts and its delegate account.
load_account_delegated_handle_error
Loads accounts and its delegate account.
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.