#[non_exhaustive]pub enum InvalidDeploy {
Show 27 variants
InvalidChainName {
expected: String,
got: String,
},
DependenciesNoLongerSupported,
ExcessiveSize(ExcessiveSizeError),
ExcessiveTimeToLive {
max_ttl: TimeDiff,
got: TimeDiff,
},
TimestampInFuture {
validation_timestamp: Timestamp,
timestamp_leeway: TimeDiff,
got: Timestamp,
},
InvalidBodyHash,
InvalidDeployHash,
EmptyApprovals,
InvalidApproval {
index: usize,
error: Error,
},
ExcessiveSessionArgsLength {
max_length: usize,
got: usize,
},
ExcessivePaymentArgsLength {
max_length: usize,
got: usize,
},
MissingPaymentAmount,
FailedToParsePaymentAmount,
ExceededBlockGasLimit {
block_gas_limit: u64,
got: Box<U512>,
},
MissingTransferAmount,
FailedToParseTransferAmount,
InsufficientTransferAmount {
minimum: Box<U512>,
attempted: Box<U512>,
},
ExcessiveApprovals {
got: u32,
max_associated_keys: u32,
},
UnableToCalculateGasLimit,
UnableToCalculateGasCost,
GasLimitNotSupported,
GasPriceToleranceTooLow {
min_gas_price_tolerance: u8,
provided_gas_price_tolerance: u8,
},
InvalidRuntime,
NoLaneMatch,
ExceededLaneGasLimit {
lane_gas_limit: u64,
got: Box<U512>,
},
InvalidPaymentAmount,
PricingModeNotSupported,
}
Expand description
A representation of the way in which a deploy failed validation checks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidChainName
Invalid chain name.
DependenciesNoLongerSupported
Deploy dependencies are no longer supported.
ExcessiveSize(ExcessiveSizeError)
Deploy is too large.
ExcessiveTimeToLive
Excessive time-to-live.
TimestampInFuture
Deploy’s timestamp is in the future.
Fields
InvalidBodyHash
The provided body hash does not match the actual hash of the body.
InvalidDeployHash
The provided deploy hash does not match the actual hash of the deploy.
EmptyApprovals
The deploy has no approvals.
InvalidApproval
Invalid approval.
Fields
ExcessiveSessionArgsLength
Excessive length of deploy’s session args.
Fields
ExcessivePaymentArgsLength
Excessive length of deploy’s payment args.
Fields
MissingPaymentAmount
Missing payment “amount” runtime argument.
FailedToParsePaymentAmount
Failed to parse payment “amount” runtime argument.
ExceededBlockGasLimit
The payment amount associated with the deploy exceeds the block gas limit.
MissingTransferAmount
Missing payment “amount” runtime argument
FailedToParseTransferAmount
Failed to parse transfer “amount” runtime argument.
InsufficientTransferAmount
Insufficient transfer amount.
Fields
ExcessiveApprovals
The amount of approvals on the deploy exceeds the max_associated_keys limit.
Fields
UnableToCalculateGasLimit
Unable to calculate gas limit.
UnableToCalculateGasCost
Unable to calculate gas cost.
GasLimitNotSupported
Gas limit is not supported in legacy deploys.
GasPriceToleranceTooLow
Gas price tolerance too low.
Fields
InvalidRuntime
Invalid runtime.
NoLaneMatch
Could not match deploy with transaction lane
ExceededLaneGasLimit
The payment amount associated with the deploy exceeds the lane gas limit.
InvalidPaymentAmount
Invalid payment amount.
PricingModeNotSupported
Pricing mode not supported
Trait Implementations§
Source§impl Clone for InvalidDeploy
impl Clone for InvalidDeploy
Source§fn clone(&self) -> InvalidDeploy
fn clone(&self) -> InvalidDeploy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DataSize for InvalidDeploywhere
ExcessiveSizeError: DataSize,
impl DataSize for InvalidDeploywhere
ExcessiveSizeError: DataSize,
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 InvalidDeploy
impl Debug for InvalidDeploy
Source§impl Display for InvalidDeploy
impl Display for InvalidDeploy
Source§impl Error for InvalidDeploy
Available on crate feature std
only.
impl Error for InvalidDeploy
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<ExcessiveSizeError> for InvalidDeploy
impl From<ExcessiveSizeError> for InvalidDeploy
Source§fn from(error: ExcessiveSizeError) -> Self
fn from(error: ExcessiveSizeError) -> Self
Source§impl From<InvalidDeploy> for InvalidTransaction
impl From<InvalidDeploy> for InvalidTransaction
Source§fn from(value: InvalidDeploy) -> Self
fn from(value: InvalidDeploy) -> Self
Source§impl IntoEnumIterator for InvalidDeploy
impl IntoEnumIterator for InvalidDeploy
Source§impl PartialEq for InvalidDeploy
impl PartialEq for InvalidDeploy
Source§impl Serialize for InvalidDeploy
impl Serialize for InvalidDeploy
impl Eq for InvalidDeploy
impl StructuralPartialEq for InvalidDeploy
Auto Trait Implementations§
impl Freeze for InvalidDeploy
impl RefUnwindSafe for InvalidDeploy
impl Send for InvalidDeploy
impl Sync for InvalidDeploy
impl Unpin for InvalidDeploy
impl UnwindSafe for InvalidDeploy
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