pub enum GenesisError {
Show 19 variants
StateUninitialized,
InvalidMintKey,
MissingMintContract,
UnexpectedStoredValue,
MintError(Error),
CLValue(String),
OrphanedDelegator {
validator_public_key: PublicKey,
delegator_public_key: PublicKey,
},
DuplicatedDelegatorEntry {
validator_public_key: PublicKey,
delegator_public_key: PublicKey,
},
InvalidDelegationRate {
public_key: PublicKey,
delegation_rate: DelegationRate,
},
InvalidBondAmount {
public_key: PublicKey,
},
InvalidDelegatedAmount {
public_key: PublicKey,
},
FailedToCreateSystemRegistry,
MissingSystemContractHash(String),
InvalidValidatorSlots {
validators: usize,
validator_slots: u32,
},
MissingChainspecRegistryEntry,
DuplicatedAdministratorEntry,
Bytesrepr(Error),
MissingGenesisAccounts,
TrackingCopy(TrackingCopyError),
}Expand description
Error returned as a result of a failed genesis process.
Variants§
StateUninitialized
Error creating a runtime.
InvalidMintKey
Error obtaining the mint’s contract key.
MissingMintContract
Missing mint contract.
UnexpectedStoredValue
Unexpected stored value variant.
MintError(Error)
Error executing the mint system contract.
CLValue(String)
Error converting a CLValue to a concrete type.
OrphanedDelegator
Specified validator does not exist among the genesis accounts.
Fields
DuplicatedDelegatorEntry
Duplicated delegator entry found for a given validator.
Fields
InvalidDelegationRate
Delegation rate outside the allowed range.
Fields
delegation_rate: DelegationRateInvalid delegation rate specified in the genesis account entry.
InvalidBondAmount
Invalid bond amount in a genesis account.
InvalidDelegatedAmount
Invalid delegated amount in a genesis account.
FailedToCreateSystemRegistry
Failed to create system registry.
MissingSystemContractHash(String)
Missing system contract hash.
InvalidValidatorSlots
Invalid number of validator slots configured.
Fields
MissingChainspecRegistryEntry
The chainspec registry is missing a required entry.
DuplicatedAdministratorEntry
Duplicated administrator entry.
This error can occur only on some private chains.
Bytesrepr(Error)
A bytesrepr Error.
MissingGenesisAccounts
Genesis process requires initial accounts.
TrackingCopy(TrackingCopyError)
A tracking copy error.
Trait Implementations§
Source§impl Clone for GenesisError
impl Clone for GenesisError
Source§fn clone(&self) -> GenesisError
fn clone(&self) -> GenesisError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenesisError
impl Debug for GenesisError
Auto Trait Implementations§
impl Freeze for GenesisError
impl RefUnwindSafe for GenesisError
impl Send for GenesisError
impl Sync for GenesisError
impl Unpin for GenesisError
impl UnwindSafe for GenesisError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more