pub type BaseFeeConfig = GenesisConfig<Runtime>;

Aliased Type§

struct BaseFeeConfig {
    pub base_fee_per_gas: U256,
    pub elasticity: Permill,
    pub _marker: PhantomData<Runtime>,
}

Fields§

§base_fee_per_gas: U256§elasticity: Permill§_marker: PhantomData<Runtime>

Implementations

source§

impl<T> GenesisConfig<T>
where T: Config,

source

pub fn new(base_fee_per_gas: U256, elasticity: Permill) -> GenesisConfig<T>

Trait Implementations

source§

impl<T> Default for GenesisConfig<T>
where T: Config,

source§

fn default() -> GenesisConfig<T>

Returns the “default value” for a type. Read more
source§

impl<T> Serialize for GenesisConfig<T>
where T: Config,

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'de, T> Deserialize<'de> for GenesisConfig<T>
where T: Config,

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<GenesisConfig<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> BuildGenesisConfig for GenesisConfig<T>
where T: Config,

source§

fn build(&self)

The build function puts initial GenesisConfig keys/values pairs into the storage.
source§

impl<T> BuildStorage for GenesisConfig<T>
where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.
§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.