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

#[repr(u8)]
pub enum Error {
Show 40 variants 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, ArithmeticOverflow, // some variants omitted
}
Expand description

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 or does not have an associated account.

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.

ArithmeticOverflow

An arithmetic overflow has occurred.

Trait Implementations

The CLType of Self.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Deserializes the slice into Self.

Deserializes the Vec<u8> into Self.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serializes &self to a Vec<u8>.

Returns the length of the Vec<u8> which would be returned from a successful call to to_bytes() or into_bytes(). The data is not actually serialized, so this call is relatively cheap. Read more

Consumes self and serializes to a Vec<u8>.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.