pub enum FraudProofVerificationInfoResponse {
Show 15 variants
BlockRandomness(Randomness),
DomainTimestampExtrinsic(Vec<u8>),
ConsensusChainByteFeeExtrinsic(Vec<u8>),
DomainBundleBody(Vec<OpaqueExtrinsic>),
DomainRuntimeCode(Vec<u8>),
DomainSetCodeExtrinsic(SetCodeExtrinsic),
DomainChainAllowlistUpdateExtrinsic(DomainChainAllowlistUpdateExtrinsic),
TxRangeCheck(bool),
InherentExtrinsicCheck(bool),
XDMValidationCheck(Option<bool>),
ExtrinsicDecodableCheck(bool),
DomainElectionParams {
domain_total_stake: Balance,
bundle_slot_probability: (u64, u64),
},
OperatorStake(Balance),
CheckExtrinsicsInSingleContext(Option<u32>),
StorageKey(Option<Vec<u8>>),
}
Expand description
Response holds required verification information for fraud proof from Host function.
Variants§
BlockRandomness(Randomness)
Block randomness fetched from consensus state at a specific block hash.
DomainTimestampExtrinsic(Vec<u8>)
Encoded domain timestamp extrinsic using the timestamp from consensus state at a specific block hash.
ConsensusChainByteFeeExtrinsic(Vec<u8>)
Encoded domain set_consensus_chain_byte_fee
extrinsic using the consensus_chain_byte_fee
at a
given consensus block hash.
DomainBundleBody(Vec<OpaqueExtrinsic>)
Domain block body fetch from a specific consensus block body
DomainRuntimeCode(Vec<u8>)
The domain runtime code
DomainSetCodeExtrinsic(SetCodeExtrinsic)
Encoded domain set_code extrinsic if there is a runtime upgrade at given consensus block hash.
DomainChainAllowlistUpdateExtrinsic(DomainChainAllowlistUpdateExtrinsic)
Encoded domain update_chain_allowlist extrinsic if there are any updates on consensus chain for this domain at a specific consensus hash.
TxRangeCheck(bool)
If particular extrinsic is in range for (domain, bundle) pair at given domain block
InherentExtrinsicCheck(bool)
If the particular extrinsic provided is either inherent or not.
XDMValidationCheck(Option<bool>)
If the particular xdm extrinsic is valid or not. Returns None if extrinsic is not an XDM
ExtrinsicDecodableCheck(bool)
If the domain extrinsic is decodable or not.
DomainElectionParams
Domain’s total stake at a given Consensus hash.
OperatorStake(Balance)
Operators Stake at a given Consensus hash.
CheckExtrinsicsInSingleContext(Option<u32>)
Result of check extrinsics in single context
StorageKey(Option<Vec<u8>>)
Result of the storage key request
Implementations§
source§impl FraudProofVerificationInfoResponse
impl FraudProofVerificationInfoResponse
pub fn into_block_randomness(self) -> Option<Randomness>
pub fn into_domain_timestamp_extrinsic(self) -> Option<Vec<u8>>
pub fn into_consensus_chain_byte_fee_extrinsic(self) -> Option<Vec<u8>>
pub fn into_domain_runtime_code(self) -> Option<Vec<u8>>
pub fn into_domain_set_code_extrinsic(self) -> SetCodeExtrinsic
pub fn into_domain_chain_allowlist_update_extrinsic( self, ) -> DomainChainAllowlistUpdateExtrinsic
pub fn into_tx_range_check(self) -> Option<bool>
pub fn into_bundle_body(self) -> Option<Vec<OpaqueExtrinsic>>
pub fn into_inherent_extrinsic_check(self) -> Option<bool>
pub fn into_xdm_validation_check(self) -> Option<bool>
pub fn into_extrinsic_decodable_check(self) -> Option<bool>
pub fn into_domain_election_params(self) -> Option<(Balance, (u64, u64))>
pub fn into_operator_stake(self) -> Option<Balance>
pub fn into_single_context_extrinsic_check(self) -> Option<Option<u32>>
pub fn into_storage_key(self) -> Option<Vec<u8>>
Trait Implementations§
source§impl Clone for FraudProofVerificationInfoResponse
impl Clone for FraudProofVerificationInfoResponse
source§fn clone(&self) -> FraudProofVerificationInfoResponse
fn clone(&self) -> FraudProofVerificationInfoResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Decode for FraudProofVerificationInfoResponse
impl Decode for FraudProofVerificationInfoResponse
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
source§impl Encode for FraudProofVerificationInfoResponse
impl Encode for FraudProofVerificationInfoResponse
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl PartialEq for FraudProofVerificationInfoResponse
impl PartialEq for FraudProofVerificationInfoResponse
source§fn eq(&self, other: &FraudProofVerificationInfoResponse) -> bool
fn eq(&self, other: &FraudProofVerificationInfoResponse) -> bool
self
and other
values to be equal, and is used by ==
.source§impl TypeInfo for FraudProofVerificationInfoResponse
impl TypeInfo for FraudProofVerificationInfoResponse
impl EncodeLike for FraudProofVerificationInfoResponse
impl Eq for FraudProofVerificationInfoResponse
impl StructuralPartialEq for FraudProofVerificationInfoResponse
Auto Trait Implementations§
impl Freeze for FraudProofVerificationInfoResponse
impl RefUnwindSafe for FraudProofVerificationInfoResponse
impl Send for FraudProofVerificationInfoResponse
impl Sync for FraudProofVerificationInfoResponse
impl Unpin for FraudProofVerificationInfoResponse
impl UnwindSafe for FraudProofVerificationInfoResponse
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FullLeaf for T
impl<T> FullLeaf for T
§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere
T: Codec,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.