pub struct FlowBuilder { /* private fields */ }
Implementations§
Source§impl FlowBuilder
impl FlowBuilder
Sourcepub fn set_extcodecopy_op(
&mut self,
source: Address,
data_offset: u16,
code_offset: u16,
size: u16,
) -> &mut Self
pub fn set_extcodecopy_op( &mut self, source: Address, data_offset: u16, code_offset: u16, size: u16, ) -> &mut Self
Adds an EXTCODECOPY
operation to the action list.
Sourcepub fn set_addr_op(&mut self, addr: Address) -> &mut Self
pub fn set_addr_op(&mut self, addr: Address) -> &mut Self
Adds a SETADDR
operation to the action list.
Sourcepub fn set_value_op(&mut self, value: U256) -> &mut Self
pub fn set_value_op(&mut self, value: U256) -> &mut Self
Adds a SETVALUE
operation to the action list.
Sourcepub fn set_data_op(&mut self, offset: u16, data: &[u8]) -> &mut Self
pub fn set_data_op(&mut self, offset: u16, data: &[u8]) -> &mut Self
Adds a SETDATA
operation to the action list.
Sourcepub fn set_cleardata_op(&mut self, size: u16) -> &mut Self
pub fn set_cleardata_op(&mut self, size: u16) -> &mut Self
Adds a CLEARDATA
operation to the action list.
Sourcepub fn create_op(&mut self, created_address: Address) -> &mut Self
pub fn create_op(&mut self, created_address: Address) -> &mut Self
Adds a CREATE
operation to the action list.
Sourcepub fn delegatecall_op(&mut self) -> &mut Self
pub fn delegatecall_op(&mut self) -> &mut Self
Adds a DELEGATECALL
operation to the action list.
Sourcepub fn call(&mut self, target: Address, data: &[u8], value: U256) -> &mut Self
pub fn call(&mut self, target: Address, data: &[u8], value: U256) -> &mut Self
Prepares a CALL
operation with the specified target, data, and value.
Sourcepub fn delegatecall(&mut self, target: Address, data: &[u8]) -> &mut Self
pub fn delegatecall(&mut self, target: Address, data: &[u8]) -> &mut Self
Prepares a DELEGATECALL
operation with the specified target and data.
Sourcepub fn create(
&mut self,
created_address: Address,
data: &[u8],
value: U256,
) -> &mut Self
pub fn create( &mut self, created_address: Address, data: &[u8], value: U256, ) -> &mut Self
Prepares a CREATE
operation with the specified address, data, and value.
Sourcepub fn set_callback(&mut self, callback_address: Address) -> &mut Self
pub fn set_callback(&mut self, callback_address: Address) -> &mut Self
prepare set callback
Sourcepub fn clear_fail(&mut self) -> &mut Self
pub fn clear_fail(&mut self) -> &mut Self
Prepares a CLEARFAIL
operation.
Trait Implementations§
Source§impl Default for FlowBuilder
impl Default for FlowBuilder
Source§fn default() -> FlowBuilder
fn default() -> FlowBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowBuilder
impl RefUnwindSafe for FlowBuilder
impl Send for FlowBuilder
impl Sync for FlowBuilder
impl Unpin for FlowBuilder
impl UnwindSafe for FlowBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more