Struct fuel_core_chain_config::config::ChainConfig
source · pub struct ChainConfig {
pub chain_name: String,
pub block_gas_limit: u64,
pub initial_state: Option<StateConfig>,
pub transaction_parameters: ConsensusParameters,
pub gas_costs: GasCosts,
pub consensus: ConsensusConfig,
}
Fields§
§chain_name: String
§block_gas_limit: u64
§initial_state: Option<StateConfig>
§transaction_parameters: ConsensusParameters
§gas_costs: GasCosts
§consensus: ConsensusConfig
Implementations§
source§impl ChainConfig
impl ChainConfig
pub const BASE_ASSET: AssetId = _
pub fn local_testnet() -> Self
pub fn initial_coin( secret: SecretKey, amount: u64, utxo_id: Option<UtxoId> ) -> CoinConfig
Trait Implementations§
source§impl Clone for ChainConfig
impl Clone for ChainConfig
source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
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 ChainConfig
impl Debug for ChainConfig
source§impl Default for ChainConfig
impl Default for ChainConfig
source§impl<'de> Deserialize<'de> for ChainConfig
impl<'de> Deserialize<'de> for ChainConfig
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 FromStr for ChainConfig
impl FromStr for ChainConfig
source§impl GenesisCommitment for ChainConfig
impl GenesisCommitment for ChainConfig
source§impl PartialEq<ChainConfig> for ChainConfig
impl PartialEq<ChainConfig> for ChainConfig
source§fn eq(&self, other: &ChainConfig) -> bool
fn eq(&self, other: &ChainConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChainConfig
impl Serialize for ChainConfig
impl Eq for ChainConfig
impl StructuralEq for ChainConfig
impl StructuralPartialEq for ChainConfig
Auto Trait Implementations§
impl RefUnwindSafe for ChainConfig
impl Send for ChainConfig
impl Sync for ChainConfig
impl Unpin for ChainConfig
impl UnwindSafe for ChainConfig
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more