Skip to main content

encode_execute_call

Function encode_execute_call 

Source
pub fn encode_execute_call(
    executor_address: Address,
    commands: &[u8],
    config: U256,
) -> Result<EncodedCall, AbiDecodeError>
Expand description

Wrap a command-stream commands payload in the execute(bytes, uint256) ABI call to the cmd_executor contract.

config is the packed execute() config uint256 (see [config::pack_config]); 0 = skip profit check, no bribe.

§Errors

Returns degenbot_abi::abi_types::AbiValue encoding errors (should not happen with valid inputs).