pub type SignedSubmissionOf<T> = SignedSubmission<<T as Config>::AccountId, BalanceOf<T>, <<T as Config>::MinerConfig as MinerConfig>::Solution>;

Aliased Type§

struct SignedSubmissionOf<T> {
    pub who: <T as Config>::AccountId,
    pub deposit: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
    pub raw_solution: RawSolution<<<T as Config>::MinerConfig as MinerConfig>::Solution>,
    pub call_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
}

Fields§

§who: <T as Config>::AccountId

Who submitted this solution.

§deposit: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance

The deposit reserved for storing this solution.

§raw_solution: RawSolution<<<T as Config>::MinerConfig as MinerConfig>::Solution>

The raw solution itself.

§call_fee: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance

Trait Implementations§

source§

impl<AccountId: Clone, Balance: Clone + HasCompact, Solution: Clone> Clone for SignedSubmission<AccountId, Balance, Solution>

source§

fn clone(&self) -> SignedSubmission<AccountId, Balance, Solution>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<AccountId, Balance, Solution> Debug for SignedSubmission<AccountId, Balance, Solution>where AccountId: Debug, Balance: Debug + HasCompact, Solution: Debug,

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<AccountId, Balance, Solution> Decode for SignedSubmission<AccountId, Balance, Solution>where AccountId: Decode, Balance: Decode + HasCompact, RawSolution<Solution>: Decode,

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl<AccountId, Balance, Solution> Encode for SignedSubmission<AccountId, Balance, Solution>where AccountId: Encode, Balance: Encode + HasCompact, RawSolution<Solution>: Encode,

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl<AccountId, Balance, Solution> Ord for SignedSubmission<AccountId, Balance, Solution>where AccountId: Ord, Balance: Ord + HasCompact, Solution: Ord, RawSolution<Solution>: Ord,

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<AccountId: PartialEq, Balance: PartialEq + HasCompact, Solution: PartialEq> PartialEq<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>

source§

fn eq(&self, other: &SignedSubmission<AccountId, Balance, Solution>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<AccountId, Balance, Solution> PartialOrd<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>where AccountId: Ord, Balance: Ord + HasCompact, Solution: Ord, RawSolution<Solution>: Ord,

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<AccountId, Balance, Solution> TypeInfo for SignedSubmission<AccountId, Balance, Solution>where AccountId: TypeInfo + 'static, Balance: TypeInfo + 'static + HasCompact, RawSolution<Solution>: TypeInfo + 'static, Solution: TypeInfo + 'static,

§

type Identity = SignedSubmission<AccountId, Balance, Solution>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<AccountId, Balance, Solution> EncodeLike<SignedSubmission<AccountId, Balance, Solution>> for SignedSubmission<AccountId, Balance, Solution>where AccountId: Encode, Balance: Encode + HasCompact, RawSolution<Solution>: Encode,

source§

impl<AccountId: Eq, Balance: Eq + HasCompact, Solution: Eq> Eq for SignedSubmission<AccountId, Balance, Solution>

source§

impl<AccountId, Balance: HasCompact, Solution> StructuralEq for SignedSubmission<AccountId, Balance, Solution>

source§

impl<AccountId, Balance: HasCompact, Solution> StructuralPartialEq for SignedSubmission<AccountId, Balance, Solution>