Enum unc_primitives::errors::InvalidTxError
source · pub enum InvalidTxError {
Show 14 variants
InvalidAccessKeyError(InvalidAccessKeyError),
InvalidSignerId {
signer_id: String,
},
SignerDoesNotExist {
signer_id: AccountId,
},
InvalidNonce {
tx_nonce: Nonce,
ak_nonce: Nonce,
},
NonceTooLarge {
tx_nonce: Nonce,
upper_bound: Nonce,
},
InvalidReceiverId {
receiver_id: String,
},
InvalidSignature,
NotEnoughBalance {
signer_id: AccountId,
balance: Balance,
cost: Balance,
},
LackBalanceForState {
signer_id: AccountId,
amount: Balance,
},
CostOverflow,
InvalidChain,
Expired,
ActionsValidation(ActionsValidationError),
TransactionSizeExceeded {
size: u64,
limit: u64,
},
}Expand description
An error happened during TX execution
Variants§
InvalidAccessKeyError(InvalidAccessKeyError)
Happens if a wrong AccessKey used or AccessKey has not enough permissions
InvalidSignerId
TX signer_id is not a valid AccountId
SignerDoesNotExist
TX signer_id is not found in a storage
InvalidNonce
Transaction nonce must be account[access_key].nonce + 1.
NonceTooLarge
Transaction nonce is larger than the upper bound given by the block height
InvalidReceiverId
TX receiver_id is not a valid AccountId
InvalidSignature
TX signature is not valid
NotEnoughBalance
Account does not have enough balance to cover TX cost
LackBalanceForState
Fields
Signer account doesn’t have enough balance after transaction.
CostOverflow
An integer overflow occurred during transaction cost estimation.
InvalidChain
Transaction parent block hash doesn’t belong to the current chain
Expired
Transaction has expired
ActionsValidation(ActionsValidationError)
An error occurred while validating actions of a Transaction.
TransactionSizeExceeded
The size of serialized transaction exceeded the limit.
Trait Implementations§
source§impl BorshDeserialize for InvalidTxError
impl BorshDeserialize for InvalidTxError
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for InvalidTxError
impl BorshSerialize for InvalidTxError
source§impl Clone for InvalidTxError
impl Clone for InvalidTxError
source§fn clone(&self) -> InvalidTxError
fn clone(&self) -> InvalidTxError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InvalidTxError
impl Debug for InvalidTxError
source§impl<'de> Deserialize<'de> for InvalidTxError
impl<'de> Deserialize<'de> for InvalidTxError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for InvalidTxError
impl Display for InvalidTxError
source§impl EnumExt for InvalidTxError
impl EnumExt for InvalidTxError
source§impl Error for InvalidTxError
impl Error for InvalidTxError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<IntegerOverflowError> for InvalidTxError
impl From<IntegerOverflowError> for InvalidTxError
source§fn from(_: IntegerOverflowError) -> Self
fn from(_: IntegerOverflowError) -> Self
source§impl From<InvalidAccessKeyError> for InvalidTxError
impl From<InvalidAccessKeyError> for InvalidTxError
source§fn from(error: InvalidAccessKeyError) -> Self
fn from(error: InvalidAccessKeyError) -> Self
source§impl From<InvalidTxError> for RuntimeError
impl From<InvalidTxError> for RuntimeError
source§fn from(e: InvalidTxError) -> Self
fn from(e: InvalidTxError) -> Self
source§impl From<InvalidTxError> for TxExecutionError
impl From<InvalidTxError> for TxExecutionError
source§fn from(error: InvalidTxError) -> Self
fn from(error: InvalidTxError) -> Self
source§impl PartialEq for InvalidTxError
impl PartialEq for InvalidTxError
source§fn eq(&self, other: &InvalidTxError) -> bool
fn eq(&self, other: &InvalidTxError) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for InvalidTxError
impl Serialize for InvalidTxError
impl Eq for InvalidTxError
impl StructuralPartialEq for InvalidTxError
Auto Trait Implementations§
impl Freeze for InvalidTxError
impl RefUnwindSafe for InvalidTxError
impl Send for InvalidTxError
impl Sync for InvalidTxError
impl Unpin for InvalidTxError
impl UnwindSafe for InvalidTxError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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<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§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<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.