pub struct ChainSpec {
pub trust: TrustIdentity,
pub limited_agent: LimitedAgentIdentity,
pub members: Vec<MemberIdentity>,
pub validators: Vec<ValidatorIdentity>,
pub validator_emission_rate: EmissionRate,
}Fields§
§trust: TrustIdentity§limited_agent: LimitedAgentIdentity§members: Vec<MemberIdentity>§validators: Vec<ValidatorIdentity>§validator_emission_rate: EmissionRateImplementations§
Source§impl ChainSpec
impl ChainSpec
Sourcepub fn generate_into<P: AsRef<Path> + Debug>(
&self,
chain_spec_template_zip: P,
target_dir: P,
) -> Result<PathBuf>
pub fn generate_into<P: AsRef<Path> + Debug>( &self, chain_spec_template_zip: P, target_dir: P, ) -> Result<PathBuf>
Generates a chain spec from the template zip published by thermite and the
context available to self, which currently comes from a YAML file.
The target directory must already exist.
Returns path to generated chain spec.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainSpec
impl RefUnwindSafe for ChainSpec
impl Send for ChainSpec
impl Sync for ChainSpec
impl Unpin for ChainSpec
impl UnwindSafe for ChainSpec
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