pub enum ActionsValidationError {
Show 14 variants
DeleteActionMustBeFinal,
TotalPrepaidGasExceeded {
total_prepaid_gas: Gas,
limit: Gas,
},
TotalNumberOfActionsExceeded {
total_number_of_actions: u64,
limit: u64,
},
AddKeyMethodNamesNumberOfBytesExceeded {
total_number_of_bytes: u64,
limit: u64,
},
AddKeyMethodNameLengthExceeded {
length: u64,
limit: u64,
},
IntegerOverflow,
InvalidAccountId {
account_id: String,
},
ContractSizeExceeded {
size: u64,
limit: u64,
},
FunctionCallMethodNameLengthExceeded {
length: u64,
limit: u64,
},
FunctionCallArgumentsLengthExceeded {
length: u64,
limit: u64,
},
UnsuitableStakingKey {
public_key: PublicKey,
},
FunctionCallZeroAttachedGas,
DelegateActionMustBeOnlyOne,
UnsupportedProtocolFeature {
protocol_feature: String,
version: ProtocolVersion,
},
}
Expand description
Describes the error for validating a list of actions.
Variants§
DeleteActionMustBeFinal
The delete action must be a final aciton in transaction
TotalPrepaidGasExceeded
The total prepaid gas (for all given actions) exceeded the limit.
TotalNumberOfActionsExceeded
The number of actions exceeded the given limit.
AddKeyMethodNamesNumberOfBytesExceeded
The total number of bytes of the method names exceeded the limit in a Add Key action.
AddKeyMethodNameLengthExceeded
The length of some method name exceeded the limit in a Add Key action.
IntegerOverflow
Integer overflow during a compute.
InvalidAccountId
Invalid account ID.
ContractSizeExceeded
The size of the contract code exceeded the limit in a DeployContract action.
FunctionCallMethodNameLengthExceeded
The length of the method name exceeded the limit in a Function Call action.
FunctionCallArgumentsLengthExceeded
The length of the arguments exceeded the limit in a Function Call action.
UnsuitableStakingKey
An attempt to stake with a public key that is not convertible to ristretto.
FunctionCallZeroAttachedGas
The attached amount of gas in a FunctionCall action has to be a positive number.
DelegateActionMustBeOnlyOne
There should be the only one DelegateAction
UnsupportedProtocolFeature
The transaction includes a feature that the current protocol version does not support.
Note: we stringify the protocol feature name instead of using
ProtocolFeature
here because we don’t want to leak the internals of
that type into observable borsh serialization.
Trait Implementations§
source§impl BorshDeserialize for ActionsValidationError
impl BorshDeserialize for ActionsValidationError
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 Clone for ActionsValidationError
impl Clone for ActionsValidationError
source§fn clone(&self) -> ActionsValidationError
fn clone(&self) -> ActionsValidationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionsValidationError
impl Debug for ActionsValidationError
source§impl<'de> Deserialize<'de> for ActionsValidationError
impl<'de> Deserialize<'de> for ActionsValidationError
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 ActionsValidationError
impl Display for ActionsValidationError
source§impl EnumExt for ActionsValidationError
impl EnumExt for ActionsValidationError
source§impl Error for ActionsValidationError
impl Error for ActionsValidationError
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 PartialEq for ActionsValidationError
impl PartialEq for ActionsValidationError
source§fn eq(&self, other: &ActionsValidationError) -> bool
fn eq(&self, other: &ActionsValidationError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActionsValidationError
impl Serialize for ActionsValidationError
impl Eq for ActionsValidationError
impl StructuralPartialEq for ActionsValidationError
Auto Trait Implementations§
impl Freeze for ActionsValidationError
impl RefUnwindSafe for ActionsValidationError
impl Send for ActionsValidationError
impl Sync for ActionsValidationError
impl Unpin for ActionsValidationError
impl UnwindSafe for ActionsValidationError
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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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