#[non_exhaustive]pub enum InvalidTransactionV1 {
Show 45 variants
InvalidChainName {
expected: String,
got: String,
},
ExcessiveSize(ExcessiveSizeErrorV1),
ExcessiveTimeToLive {
max_ttl: TimeDiff,
got: TimeDiff,
},
TimestampInFuture {
validation_timestamp: Timestamp,
timestamp_leeway: TimeDiff,
got: Timestamp,
},
InvalidBodyHash,
InvalidTransactionHash,
EmptyApprovals,
InvalidApproval {
index: usize,
error: Error,
},
ExcessiveArgsLength {
max_length: usize,
got: usize,
},
ExcessiveApprovals {
max_associated_keys: u32,
got: u32,
},
ExceedsBlockGasLimit {
block_gas_limit: u64,
got: Box<U512>,
},
MissingArg {
arg_name: String,
},
UnexpectedArgType {
arg_name: String,
expected: Vec<String>,
got: String,
},
InvalidArg {
arg_name: String,
error: Error,
},
InsufficientTransferAmount {
minimum: u64,
attempted: U512,
},
InsufficientBurnAmount {
minimum: u64,
attempted: U512,
},
EntryPointCannotBeCall,
EntryPointCannotBeCustom {
entry_point: TransactionEntryPoint,
},
EntryPointMustBeCustom {
entry_point: TransactionEntryPoint,
},
EntryPointMustBeCall {
entry_point: TransactionEntryPoint,
},
EmptyModuleBytes,
GasPriceConversion {
amount: u64,
gas_price: u8,
},
UnableToCalculateGasLimit,
UnableToCalculateGasCost,
InvalidPricingMode {
price_mode: PricingMode,
},
InvalidTransactionLane(u8),
NoLaneMatch,
GasPriceToleranceTooLow {
min_gas_price_tolerance: u8,
provided_gas_price_tolerance: u8,
},
CouldNotDeserializeField {
error: FieldDeserializationError,
},
CannotCalculateFieldsHash,
UnexpectedTransactionFieldEntries,
ExpectedNamedArguments,
ExpectedBytesArguments,
InvalidTransactionRuntime {
expected: ContractRuntimeTag,
},
MissingSeed,
PricingModeNotSupported,
InvalidPaymentAmount,
UnexpectedEntryPoint {
entry_point: TransactionEntryPoint,
lane_id: u8,
},
CouldNotSerializeTransaction,
InsufficientAmount {
attempted: U512,
},
InvalidMinimumDelegationAmount {
floor: u64,
attempted: u64,
},
InvalidMaximumDelegationAmount {
ceiling: u64,
attempted: u64,
},
InvalidReservedSlots {
ceiling: u32,
attempted: u64,
},
InvalidDelegationAmount {
ceiling: u64,
attempted: U512,
},
UnsupportedInvocationTarget {
id: Option<TransactionInvocationTarget>,
},
}Expand description
Returned when a TransactionV1 fails validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidChainName
Invalid chain name.
ExcessiveSize(ExcessiveSizeErrorV1)
Transaction is too large.
ExcessiveTimeToLive
Excessive time-to-live.
TimestampInFuture
Transaction’s timestamp is in the future.
Fields
InvalidBodyHash
The provided body hash does not match the actual hash of the body.
InvalidTransactionHash
The provided transaction hash does not match the actual hash of the transaction.
EmptyApprovals
The transaction has no approvals.
InvalidApproval
Invalid approval.
Fields
ExcessiveArgsLength
Excessive length of transaction’s runtime args.
Fields
ExcessiveApprovals
The amount of approvals on the transaction exceeds the configured limit.
Fields
ExceedsBlockGasLimit
The payment amount associated with the transaction exceeds the block gas limit.
Fields
MissingArg
Missing a required runtime arg.
UnexpectedArgType
Given runtime arg is not one of the expected types.
Fields
InvalidArg
Failed to deserialize the given runtime arg.
InsufficientTransferAmount
Insufficient transfer amount.
InsufficientBurnAmount
Insufficient burn amount.
EntryPointCannotBeCall
The entry point for this transaction target cannot be call.
EntryPointCannotBeCustom
The entry point for this transaction target cannot be TransactionEntryPoint::Custom.
Fields
entry_point: TransactionEntryPointThe invalid entry point.
EntryPointMustBeCustom
The entry point for this transaction target must be TransactionEntryPoint::Custom.
Fields
entry_point: TransactionEntryPointThe invalid entry point.
EntryPointMustBeCall
The entry point for this transaction target must be TransactionEntryPoint::Call.
Fields
entry_point: TransactionEntryPointThe invalid entry point.
EmptyModuleBytes
The transaction has empty module bytes.
GasPriceConversion
Attempt to factor the amount over the gas_price failed.
UnableToCalculateGasLimit
Unable to calculate gas limit.
UnableToCalculateGasCost
Unable to calculate gas cost.
InvalidPricingMode
Invalid combination of pricing handling and pricing mode.
Fields
price_mode: PricingModeThe pricing mode as specified by the transaction.
InvalidTransactionLane(u8)
The transaction provided is not supported.
NoLaneMatch
Could not match v1 with transaction lane
GasPriceToleranceTooLow
Gas price tolerance too low.
Fields
CouldNotDeserializeField
Error when trying to deserialize one of the transactionV1 payload fields.
Fields
error: FieldDeserializationErrorUnderlying reason why the deserialization failed
CannotCalculateFieldsHash
Unable to calculate hash for payloads transaction.
UnexpectedTransactionFieldEntries
The transactions field map had entries that were unexpected
ExpectedNamedArguments
The transaction requires named arguments.
ExpectedBytesArguments
The transaction required bytes arguments.
InvalidTransactionRuntime
The transaction runtime is invalid.
Fields
expected: ContractRuntimeTagThe expected runtime as specified by the chainspec.
MissingSeed
The transaction is missing a seed field.
PricingModeNotSupported
InvalidPaymentAmount
UnexpectedEntryPoint
Unexpected entry point detected.
CouldNotSerializeTransaction
Could not serialize transaction
InsufficientAmount
Insufficient value for amount argument.
InvalidMinimumDelegationAmount
Invalid minimum delegation amount.
InvalidMaximumDelegationAmount
Invalid maximum delegation amount.
InvalidReservedSlots
Invalid reserved slots.
InvalidDelegationAmount
Invalid delegation amount.
UnsupportedInvocationTarget
The transaction invocation target is unsupported under V2 runtime.
This error is returned when the transaction invocation target is not supported by the current runtime version.
Fields
Implementations§
Trait Implementations§
Source§impl Clone for InvalidTransaction
impl Clone for InvalidTransaction
Source§fn clone(&self) -> InvalidTransaction
fn clone(&self) -> InvalidTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl DataSize for InvalidTransaction
impl DataSize for InvalidTransaction
Source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Source§impl Debug for InvalidTransaction
impl Debug for InvalidTransaction
Source§impl Display for InvalidTransaction
impl Display for InvalidTransaction
Source§impl Error for InvalidTransaction
Available on crate feature std only.
impl Error for InvalidTransaction
std only.Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ExcessiveSizeErrorV1> for InvalidTransaction
impl From<ExcessiveSizeErrorV1> for InvalidTransaction
Source§fn from(error: ExcessiveSizeErrorV1) -> Self
fn from(error: ExcessiveSizeErrorV1) -> Self
Source§impl From<InvalidTransaction> for InvalidTransaction
impl From<InvalidTransaction> for InvalidTransaction
Source§fn from(value: InvalidTransactionV1) -> Self
fn from(value: InvalidTransactionV1) -> Self
Source§impl From<PricingModeError> for InvalidTransactionV1
impl From<PricingModeError> for InvalidTransactionV1
Source§fn from(err: PricingModeError) -> Self
fn from(err: PricingModeError) -> Self
Source§impl PartialEq for InvalidTransaction
impl PartialEq for InvalidTransaction
Source§impl Serialize for InvalidTransaction
impl Serialize for InvalidTransaction
impl Eq for InvalidTransaction
impl StructuralPartialEq for InvalidTransaction
Auto Trait Implementations§
impl Freeze for InvalidTransaction
impl RefUnwindSafe for InvalidTransaction
impl Send for InvalidTransaction
impl Sync for InvalidTransaction
impl Unpin for InvalidTransaction
impl UnwindSafe for InvalidTransaction
Blanket Implementations§
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<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<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