pub struct Create2Config {
pub deployer: Address,
pub init_code_hash: B256,
pub max_iterations: u64,
pub max_results: u64,
pub seed: Option<u128>,
}Expand description
Configuration for the Create2 mining process
Fields§
§deployer: AddressThe address of the CreateX factory contract.
init_code_hash: B256The init code hash to use for the CREATE2 address.
max_iterations: u64The maximum number of attempts before giving up.
max_results: u64The maximum number of results to find.
seed: Option<u128>Seed for the random number generator.
Trait Implementations§
Source§impl Clone for Create2Config
impl Clone for Create2Config
Source§fn clone(&self) -> Create2Config
fn clone(&self) -> Create2Config
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Create2Config
Source§impl Debug for Create2Config
impl Debug for Create2Config
Source§impl<'de> Deserialize<'de> for Create2Config
impl<'de> Deserialize<'de> for Create2Config
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
Auto Trait Implementations§
impl Freeze for Create2Config
impl RefUnwindSafe for Create2Config
impl Send for Create2Config
impl Sync for Create2Config
impl Unpin for Create2Config
impl UnsafeUnpin for Create2Config
impl UnwindSafe for Create2Config
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