referrerpolicy=no-referrer-when-downgrade
pallet_broker

Type Alias ConfigRecordOf

Source
pub type ConfigRecordOf<T> = ConfigRecord<RelayBlockNumberOf<T>>;

Aliased Type§

struct ConfigRecordOf<T> {
    pub advance_notice: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub interlude_length: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub leadin_length: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber,
    pub region_length: u32,
    pub ideal_bulk_proportion: Perbill,
    pub limit_cores_offered: Option<u16>,
    pub renewal_bump: Perbill,
    pub contribution_timeout: u32,
}

Fields§

§advance_notice: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber

The number of Relay-chain blocks in advance which scheduling should be fixed and the Coretime::assign API used to inform the Relay-chain.

§interlude_length: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber

The length in blocks of the Interlude Period for forthcoming sales.

§leadin_length: <<<T as Config>::Coretime as CoretimeInterface>::RelayChainBlockNumberProvider as BlockNumberProvider>::BlockNumber

The length in blocks of the Leadin Period for forthcoming sales.

§region_length: u32

The length in timeslices of Regions which are up for sale in forthcoming sales.

§ideal_bulk_proportion: Perbill

The proportion of cores available for sale which should be sold.

If more cores are sold than this, then further sales will no longer be considered in determining the sellout price. In other words the sellout price will be the last price paid, without going over this limit.

§limit_cores_offered: Option<u16>

An artificial limit to the number of cores which are allowed to be sold. If Some then no more cores will be sold than this.

§renewal_bump: Perbill

The amount by which the renewal price increases each sale period.

§contribution_timeout: u32

The duration by which rewards for contributions to the InstaPool must be collected.

Trait Implementations

Source§

impl<RelayBlockNumber: Clone> Clone for ConfigRecord<RelayBlockNumber>

Source§

fn clone(&self) -> ConfigRecord<RelayBlockNumber>

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<RelayBlockNumber> Debug for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: Debug,

Source§

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

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

impl<RelayBlockNumber> Decode for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: 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<RelayBlockNumber> Encode for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: 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>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where 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<RelayBlockNumber> MaxEncodedLen for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: MaxEncodedLen,

Source§

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
Source§

impl<RelayBlockNumber: PartialEq> PartialEq for ConfigRecord<RelayBlockNumber>

Source§

fn eq(&self, other: &ConfigRecord<RelayBlockNumber>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<RelayBlockNumber> TypeInfo for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: TypeInfo + 'static,

Source§

type Identity = ConfigRecord<RelayBlockNumber>

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<RelayBlockNumber> DecodeWithMemTracking for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: DecodeWithMemTracking,

Source§

impl<RelayBlockNumber> EncodeLike for ConfigRecord<RelayBlockNumber>
where RelayBlockNumber: Encode,

Source§

impl<RelayBlockNumber: Eq> Eq for ConfigRecord<RelayBlockNumber>

Source§

impl<RelayBlockNumber> StructuralPartialEq for ConfigRecord<RelayBlockNumber>