Struct fuel_chain_config::config::StateConfig
source · pub struct StateConfig {
pub coins: Option<Vec<CoinConfig>>,
pub contracts: Option<Vec<ContractConfig>>,
pub messages: Option<Vec<MessageConfig>>,
pub height: Option<BlockHeight>,
}
Fields§
§coins: Option<Vec<CoinConfig>>
Spendable coins
contracts: Option<Vec<ContractConfig>>
Contract state
messages: Option<Vec<MessageConfig>>
Messages from Layer 1
height: Option<BlockHeight>
Starting block height (useful for flattened fork networks)
Implementations§
source§impl StateConfig
impl StateConfig
pub fn generate_state_config<T>(db: T) -> Result<Self>where
T: ChainConfigDb,
Trait Implementations§
source§impl Clone for StateConfig
impl Clone for StateConfig
source§fn clone(&self) -> StateConfig
fn clone(&self) -> StateConfig
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 StateConfig
impl Debug for StateConfig
source§impl Default for StateConfig
impl Default for StateConfig
source§fn default() -> StateConfig
fn default() -> StateConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StateConfig
impl<'de> Deserialize<'de> for StateConfig
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<StateConfig> for StateConfig
impl PartialEq<StateConfig> for StateConfig
source§fn eq(&self, other: &StateConfig) -> bool
fn eq(&self, other: &StateConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.