[][src]Enum chain_spec_builder::ChainSpecBuilder

enum ChainSpecBuilder {
    New {
        authority_seeds: Vec<String>,
        endowed_accounts: Vec<String>,
        sudo_account: String,
        chain_spec_path: PathBuf,
    },
    Generate {
        authorities: usize,
        endowed: usize,
        chain_spec_path: PathBuf,
        keystore_path: Option<PathBuf>,
    },
}

A utility to easily create a testnet chain spec definition with a given set of authorities and endowed accounts and/or generate random accounts.

Variants

New

Create a new chain spec with the given authorities, endowed and sudo accounts.

Fields of New

authority_seeds: Vec<String>

Authority key seed.

endowed_accounts: Vec<String>

Endowed account address (SS58 format).

sudo_account: String

Sudo account address (SS58 format).

chain_spec_path: PathBuf

The path where the chain spec should be saved.

Generate

Create a new chain spec with the given number of authorities and endowed accounts. Random keys will be generated as required.

Fields of Generate

authorities: usize

The number of authorities.

endowed: usize

The number of endowed accounts.

chain_spec_path: PathBuf

The path where the chain spec should be saved.

keystore_path: Option<PathBuf>

Path to use when saving generated keystores for each authority.

At this path, a new folder will be created for each authority's keystore named auth-$i where i is the authority index, i.e. auth-0, auth-1, etc.

Methods

impl ChainSpecBuilder[src]

fn chain_spec_path(&self) -> &Path[src]

Returns the path where the chain spec should be saved.

Trait Implementations

impl StructOpt for ChainSpecBuilder[src]

impl StructOptInternal for ChainSpecBuilder[src]

Auto Trait Implementations

impl RefUnwindSafe for ChainSpecBuilder

impl Send for ChainSpecBuilder

impl Sync for ChainSpecBuilder

impl Unpin for ChainSpecBuilder

impl UnwindSafe for ChainSpecBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]