pub enum GenesisError {
Show 17 variants
UnableToCreateRuntime,
InvalidMintKey,
MissingMintContract,
UnexpectedStoredValue,
ExecutionError(Error),
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,
}
Expand description
Error returned as a result of a failed genesis process.
Variants§
UnableToCreateRuntime
Error creating a runtime.
InvalidMintKey
Error obtaining the mint’s contract key.
MissingMintContract
Missing mint contract.
UnexpectedStoredValue
Unexpected stored value variant.
ExecutionError(Error)
Error executing a system contract.
MintError(Error)
Error executing the mint system contract.
CLValue(String)
Error converting a CLValue
to a concrete type.
OrphanedDelegator
Fields
Specified validator does not exist among the genesis accounts.
DuplicatedDelegatorEntry
Fields
Duplicated delegator entry found for a given validator.
InvalidDelegationRate
Fields
delegation_rate: DelegationRate
Invalid delegation rate specified in the genesis account entry.
Delegation rate outside the allowed range.
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
Fields
Invalid number of validator slots configured.
MissingChainspecRegistryEntry
The chainspec registry is missing a required entry.
DuplicatedAdministratorEntry
Duplicated administrator entry.
This error can occur only on some private chains.
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 moreAuto Trait Implementations§
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.