pub struct SimBundleOverrides {
pub parent_block: Option<BlockId>,
pub block_number: Option<u64>,
pub coinbase: Option<Address>,
pub timestamp: Option<u64>,
pub gas_limit: Option<u64>,
pub base_fee: Option<u64>,
pub timeout: Option<u64>,
}
Expand description
Optional fields to override simulation state.
Fields§
§parent_block: Option<BlockId>
Block used for simulation state. Defaults to latest block. Block header data will be derived from parent block by default. Specify other params to override the default values.
block_number: Option<u64>
Block number used for simulation, defaults to parentBlock.number + 1
coinbase: Option<Address>
Coinbase used for simulation, defaults to parentBlock.coinbase
timestamp: Option<u64>
Timestamp used for simulation, defaults to parentBlock.timestamp + 12
gas_limit: Option<u64>
Gas limit used for simulation, defaults to parentBlock.gasLimit
base_fee: Option<u64>
Base fee used for simulation, defaults to parentBlock.baseFeePerGas
timeout: Option<u64>
Timeout in seconds, defaults to 5
Trait Implementations§
Source§impl Clone for SimBundleOverrides
impl Clone for SimBundleOverrides
Source§fn clone(&self) -> SimBundleOverrides
fn clone(&self) -> SimBundleOverrides
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimBundleOverrides
impl Debug for SimBundleOverrides
Source§impl Default for SimBundleOverrides
impl Default for SimBundleOverrides
Source§fn default() -> SimBundleOverrides
fn default() -> SimBundleOverrides
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimBundleOverrides
impl<'de> Deserialize<'de> for SimBundleOverrides
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimBundleOverrides
impl PartialEq for SimBundleOverrides
Source§impl Serialize for SimBundleOverrides
impl Serialize for SimBundleOverrides
impl Eq for SimBundleOverrides
impl StructuralPartialEq for SimBundleOverrides
Auto Trait Implementations§
impl Freeze for SimBundleOverrides
impl RefUnwindSafe for SimBundleOverrides
impl Send for SimBundleOverrides
impl Sync for SimBundleOverrides
impl Unpin for SimBundleOverrides
impl UnwindSafe for SimBundleOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)