Struct era_test_node::system_contracts::SystemContracts
source · pub struct SystemContracts {
pub baseline_contracts: BaseSystemContracts,
pub playground_contracts: BaseSystemContracts,
pub fee_estimate_contracts: BaseSystemContracts,
}
Expand description
Holds the system contracts (and bootloader) that are used by the in-memory node.
Fields§
§baseline_contracts: BaseSystemContracts
§playground_contracts: BaseSystemContracts
§fee_estimate_contracts: BaseSystemContracts
Implementations§
source§impl SystemContracts
impl SystemContracts
sourcepub fn from_options(options: &Options) -> Self
pub fn from_options(options: &Options) -> Self
Creates the SystemContracts that use the complied contracts from ZKSYNC_HOME path. These are loaded at binary runtime.
pub fn contracts_for_l2_call(&self) -> &BaseSystemContracts
pub fn contracts_for_fee_estimate(&self) -> &BaseSystemContracts
pub fn contracts(&self, execution_mode: TxExecutionMode) -> &BaseSystemContracts
Trait Implementations§
source§impl Clone for SystemContracts
impl Clone for SystemContracts
source§fn clone(&self) -> SystemContracts
fn clone(&self) -> SystemContracts
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 SystemContracts
impl Debug for SystemContracts
Auto Trait Implementations§
impl RefUnwindSafe for SystemContracts
impl Send for SystemContracts
impl Sync for SystemContracts
impl Unpin for SystemContracts
impl UnwindSafe for SystemContracts
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