DoCallFn

Type Alias DoCallFn 

Source
pub type DoCallFn = fn(*mut (), *const (), u8, Address, Address, Address, &[u8], u64, U256, (u16, u16)) -> SubCallResult;
Expand description

Type-erased function pointer for executing sub-calls from Stylus.

call_type: 0=CALL, 1=DELEGATECALL, 2=STATICCALL. pages carries the parent’s (open, ever) counters into the new frame.

The first pointer is the type-erased revm Context; the second points at the ArbPrecompileCtx shared by the precompile closures and dispatch path. Both must remain live for the duration of the trampoline call.