pub enum TransitionError {
Show 25 variants
WrongNonce,
NotEnoughBalanceForGasLimit,
NotEnoughBalanceForTransfer,
PreExecutionGasExhausted,
DisallowedOpcode,
CannotCompile,
NoExportedContractMethod,
OtherDeployError,
ContractAlreadyExists,
NoContractcode,
InvalidCBI,
ExecutionProperGasExhausted,
RuntimeError,
InternalExecutionProperGasExhaustion,
InternalRuntimeError,
PoolAlreadyExists,
PoolNotExists,
PoolHasNoStakes,
InvalidPoolPolicy,
DepositsAlreadyExists,
DepositsNotExists,
InvalidDepositPolicy,
InvalidStakeAmount,
InvalidCommands,
InvalidNextEpochCommand,
}
Expand description
Descriptive error definitions of a Transition
Variants§
WrongNonce
Nonce is not current nonce.
NotEnoughBalanceForGasLimit
Not enough balance to pay for gas limit.
NotEnoughBalanceForTransfer
Not enough balance to pay for transfer.
PreExecutionGasExhausted
Gas limit was insufficient to cover pre-execution costs.
DisallowedOpcode
The contract bytecode contains disallowed opcodes.
CannotCompile
Contract cannot be compiled into machine code (it is probably invalid WASM).
NoExportedContractMethod
Contract does not export the METHOD_CONTRACT method.
OtherDeployError
Deployment failed for some other reason.
ContractAlreadyExists
Deployment failed because the Contract already exists (CBI version was set for the account)
NoContractcode
Contract cannot be found in state
InvalidCBI
Fail to load Contract from the CBI
ExecutionProperGasExhausted
Gas limit was insufficient to cover execution proper costs.
RuntimeError
Runtime error during execution proper of the entree smart contract.
InternalExecutionProperGasExhaustion
Gas limit was insufficient to cover execution proper costs of an internal transaction.
InternalRuntimeError
Runtime error during execution proper of an internal transaction.
PoolAlreadyExists
Staking Command - Create Pool fails because the pool already exists
PoolNotExists
Staking Command fails for non-existing pool
PoolHasNoStakes
Staking Command - Unstake Deposit fails because the Pool has no stakes.
InvalidPoolPolicy
Staking Command fails because pool policy is invalid. Scenarios such as
- commission fee is greater than 100
- commission fee is as same as the origin onw
DepositsAlreadyExists
Staking Command - Create Deposits fails because the deposits already exists
DepositsNotExists
Staking Command fails because the deposits does not exist.
InvalidDepositPolicy
Staking Command - Set Deposit Settings fails because the deposit amount
InvalidStakeAmount
Staking Command fails because the specified amount does not match with the requirement of the operation. Scenarios such as
- Stake power has already reached upper limit (deposit amount) for Command - Stake Deposit
- Stake power is not enough to stay in the delegated stakes for Command - Stake Deposit
- Stake power has already reached lower limit for Command - Withdrawal Deposit
InvalidCommands
Transaction commands are empty
InvalidNextEpochCommand
There is more than 1 NextEpoch Command in a transaction.
Trait Implementations§
Source§impl Clone for TransitionError
impl Clone for TransitionError
Source§fn clone(&self) -> TransitionError
fn clone(&self) -> TransitionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransitionError
impl Debug for TransitionError
Source§impl<'a> From<&'a TransitionError> for ExitStatus
impl<'a> From<&'a TransitionError> for ExitStatus
Source§fn from(value: &'a TransitionError) -> Self
fn from(value: &'a TransitionError) -> Self
Source§impl From<MethodCallError> for TransitionError
impl From<MethodCallError> for TransitionError
Source§fn from(call_error: MethodCallError) -> Self
fn from(call_error: MethodCallError) -> Self
Source§impl PartialEq for TransitionError
impl PartialEq for TransitionError
impl Eq for TransitionError
impl StructuralPartialEq for TransitionError
Auto Trait Implementations§
impl Freeze for TransitionError
impl RefUnwindSafe for TransitionError
impl Send for TransitionError
impl Sync for TransitionError
impl Unpin for TransitionError
impl UnwindSafe for TransitionError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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