Enum casper_types::system::auction::Error[][src]

#[repr(u8)]pub enum Error {
    MissingKey,
    InvalidKeyVariant,
    MissingValue,
    Serialization,
    TransferToBidPurse,
    InvalidAmount,
    BidNotFound,
    ValidatorNotFound,
    DelegatorNotFound,
    Storage,
    Bonding,
    Unbonding,
    ReleaseFounderStake,
    GetBalance,
    InvalidContext,
    ValidatorFundsLocked,
    InvalidCaller,
    InvalidPublicKey,
    BondNotFound,
    CreatePurseFailed,
    UnbondTooLarge,
    BondTooSmall,
    MissingDelegations,
    MismatchedEraValidators,
    MintReward,
    InvalidValidatorSlotsValue,
    MintReduceTotalSupply,
    TransferToDelegatorPurse,
    ValidatorRewardTransfer,
    DelegatorRewardTransfer,
    WithdrawDelegatorReward,
    WithdrawValidatorReward,
    TransferToUnbondingPurse,
    RecordEraInfo,
    CLValue,
    MissingSeigniorageRecipients,
    Transfer,
    DelegationRateTooLarge,
    DelegatorFundsLocked,
    // some variants omitted
}

Errors which can occur while executing the Auction contract.

Variants

MissingKey

Unable to find named key in the contract’s named keys.

InvalidKeyVariant

Given named key contains invalid variant.

MissingValue

Value under an uref does not exist. This means the installer contract didn’t work properly.

Serialization

ABI serialization issue while reading or writing.

TransferToBidPurse

Triggered when contract was unable to transfer desired amount of tokens into a bid purse.

InvalidAmount

User passed invalid amount of tokens which might result in wrong values after calculation.

BidNotFound

Unable to find a bid by account hash in active_bids map.

ValidatorNotFound

Validator’s account hash was not found in the map.

DelegatorNotFound

Delegator’s account hash was not found in the map.

Storage

Storage problem.

Bonding

Raised when system is unable to bond.

Unbonding

Raised when system is unable to unbond.

ReleaseFounderStake

Raised when Mint contract is unable to release founder stake.

GetBalance

Raised when the system is unable to determine purse balance.

InvalidContext

Raised when an entry point is called from invalid account context.

ValidatorFundsLocked

Raised whenever a validator’s funds are still locked in but an attempt to withdraw was made.

InvalidCaller

Raised when caller is not the system account.

InvalidPublicKey

Raised when function is supplied a public key that does match the caller’s.

BondNotFound

Validator is not not bonded.

CreatePurseFailed

Unable to create purse.

UnbondTooLarge

Attempted to unbond an amount which was too large.

BondTooSmall

Attempted to bond with a stake which was too small.

MissingDelegations

Raised when rewards are to be distributed to delegators, but the validator has no delegations.

MismatchedEraValidators

The validators returned by the consensus component should match current era validators when distributing rewards.

MintReward

Failed to mint reward tokens.

InvalidValidatorSlotsValue

Invalid number of validator slots.

MintReduceTotalSupply

Failed to reduce total supply.

TransferToDelegatorPurse

Triggered when contract was unable to transfer desired amount of tokens into a delegators purse.

ValidatorRewardTransfer

Triggered when contract was unable to perform a transfer to distribute validators reward.

DelegatorRewardTransfer

Triggered when contract was unable to perform a transfer to distribute delegators rewards.

WithdrawDelegatorReward

Failed to transfer desired amount while withdrawing delegators reward.

WithdrawValidatorReward

Failed to transfer desired amount while withdrawing validators reward.

TransferToUnbondingPurse

Failed to transfer desired amount into unbonding purse.

RecordEraInfo

Failed to record era info.

CLValue

Failed to create a crate::CLValue.

MissingSeigniorageRecipients

Missing seigniorage recipients for given era.

Transfer

Failed to transfer funds.

DelegationRateTooLarge

Delegation rate exceeds rate.

DelegatorFundsLocked

Raised whenever a delegator’s funds are still locked in but an attempt to undelegate was made.

Trait Implementations

impl CLTyped for Error[src]

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Eq for Error[src]

impl From<Error> for ApiError[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl FromBytes for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

impl ToBytes for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,