pub struct OptimismBaseFeeParams {
pub eip1559_elasticity: u128,
pub eip1559_denominator: u128,
pub eip1559_denominator_canyon: u128,
}
Expand description
Optimism Base Fee Configuration
Fields§
§eip1559_elasticity: u128
EIP 1559 Elasticity Parameter
eip1559_denominator: u128
EIP 1559 Denominator
eip1559_denominator_canyon: u128
EIP 1559 Denominator for the Canyon hardfork
Implementations§
source§impl OptimismBaseFeeParams
impl OptimismBaseFeeParams
sourcepub const fn as_base_fee_params(&self) -> BaseFeeParams
pub const fn as_base_fee_params(&self) -> BaseFeeParams
Returns the inner [BaseFeeParams].
sourcepub const fn as_canyon_base_fee_params(&self) -> BaseFeeParams
pub const fn as_canyon_base_fee_params(&self) -> BaseFeeParams
Returns the [BaseFeeParams] for the canyon hardfork.
Trait Implementations§
source§impl Clone for OptimismBaseFeeParams
impl Clone for OptimismBaseFeeParams
source§fn clone(&self) -> OptimismBaseFeeParams
fn clone(&self) -> OptimismBaseFeeParams
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 OptimismBaseFeeParams
impl Debug for OptimismBaseFeeParams
source§impl<'de> Deserialize<'de> for OptimismBaseFeeParams
impl<'de> Deserialize<'de> for OptimismBaseFeeParams
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 OptimismBaseFeeParams
impl PartialEq for OptimismBaseFeeParams
source§impl Serialize for OptimismBaseFeeParams
impl Serialize for OptimismBaseFeeParams
impl Copy for OptimismBaseFeeParams
impl Eq for OptimismBaseFeeParams
impl StructuralPartialEq for OptimismBaseFeeParams
Auto Trait Implementations§
impl Freeze for OptimismBaseFeeParams
impl RefUnwindSafe for OptimismBaseFeeParams
impl Send for OptimismBaseFeeParams
impl Sync for OptimismBaseFeeParams
impl Unpin for OptimismBaseFeeParams
impl UnwindSafe for OptimismBaseFeeParams
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes