Enum pallet_broker::pallet::Call  
source · pub enum Call<T: Config> {
Show 19 variants
    configure {
        config: ConfigRecordOf<T>,
    },
    reserve {
        workload: Schedule,
    },
    unreserve {
        item_index: u32,
    },
    set_lease {
        task: TaskId,
        until: Timeslice,
    },
    start_sales {
        initial_price: BalanceOf<T>,
        core_count: CoreIndex,
    },
    purchase {
        price_limit: BalanceOf<T>,
    },
    renew {
        core: CoreIndex,
    },
    transfer {
        region_id: RegionId,
        new_owner: T::AccountId,
    },
    partition {
        region_id: RegionId,
        pivot: Timeslice,
    },
    interlace {
        region_id: RegionId,
        pivot: CoreMask,
    },
    assign {
        region_id: RegionId,
        task: TaskId,
        finality: Finality,
    },
    pool {
        region_id: RegionId,
        payee: T::AccountId,
        finality: Finality,
    },
    claim_revenue {
        region_id: RegionId,
        max_timeslices: Timeslice,
    },
    purchase_credit {
        amount: BalanceOf<T>,
        beneficiary: RelayAccountIdOf<T>,
    },
    drop_region {
        region_id: RegionId,
    },
    drop_contribution {
        region_id: RegionId,
    },
    drop_history {
        when: Timeslice,
    },
    drop_renewal {
        core: CoreIndex,
        when: Timeslice,
    },
    request_core_count {
        core_count: CoreIndex,
    },
    // some variants omitted
}Expand description
Contains a variant per dispatchable extrinsic that this pallet has.
Variants§
configure
Fields
config: ConfigRecordOf<T>See Pallet::configure.
reserve
See Pallet::reserve.
unreserve
See Pallet::unreserve.
set_lease
See Pallet::set_lease.
start_sales
See Pallet::start_sales.
purchase
See Pallet::purchase.
renew
See Pallet::renew.
transfer
See Pallet::transfer.
partition
See Pallet::partition.
interlace
See Pallet::interlace.
assign
See Pallet::assign.
pool
See Pallet::pool.
claim_revenue
purchase_credit
drop_region
See Pallet::drop_region.
drop_contribution
drop_history
See Pallet::drop_history.
drop_renewal
See Pallet::drop_renewal.
request_core_count
Implementations§
source§impl<T: Config> Call<T>
 
impl<T: Config> Call<T>
sourcepub fn new_call_variant_configure(config: ConfigRecordOf<T>) -> Self
 
pub fn new_call_variant_configure(config: ConfigRecordOf<T>) -> Self
Create a call with the variant configure.
sourcepub fn new_call_variant_reserve(workload: Schedule) -> Self
 
pub fn new_call_variant_reserve(workload: Schedule) -> Self
Create a call with the variant reserve.
sourcepub fn new_call_variant_unreserve(item_index: u32) -> Self
 
pub fn new_call_variant_unreserve(item_index: u32) -> Self
Create a call with the variant unreserve.
sourcepub fn new_call_variant_set_lease(task: TaskId, until: Timeslice) -> Self
 
pub fn new_call_variant_set_lease(task: TaskId, until: Timeslice) -> Self
Create a call with the variant set_lease.
sourcepub fn new_call_variant_start_sales(
    initial_price: BalanceOf<T>,
    core_count: CoreIndex
) -> Self
 
pub fn new_call_variant_start_sales( initial_price: BalanceOf<T>, core_count: CoreIndex ) -> Self
Create a call with the variant start_sales.
sourcepub fn new_call_variant_purchase(price_limit: BalanceOf<T>) -> Self
 
pub fn new_call_variant_purchase(price_limit: BalanceOf<T>) -> Self
Create a call with the variant purchase.
sourcepub fn new_call_variant_renew(core: CoreIndex) -> Self
 
pub fn new_call_variant_renew(core: CoreIndex) -> Self
Create a call with the variant renew.
sourcepub fn new_call_variant_transfer(
    region_id: RegionId,
    new_owner: T::AccountId
) -> Self
 
pub fn new_call_variant_transfer( region_id: RegionId, new_owner: T::AccountId ) -> Self
Create a call with the variant transfer.
sourcepub fn new_call_variant_partition(region_id: RegionId, pivot: Timeslice) -> Self
 
pub fn new_call_variant_partition(region_id: RegionId, pivot: Timeslice) -> Self
Create a call with the variant partition.
sourcepub fn new_call_variant_interlace(region_id: RegionId, pivot: CoreMask) -> Self
 
pub fn new_call_variant_interlace(region_id: RegionId, pivot: CoreMask) -> Self
Create a call with the variant interlace.
sourcepub fn new_call_variant_assign(
    region_id: RegionId,
    task: TaskId,
    finality: Finality
) -> Self
 
pub fn new_call_variant_assign( region_id: RegionId, task: TaskId, finality: Finality ) -> Self
Create a call with the variant assign.
sourcepub fn new_call_variant_pool(
    region_id: RegionId,
    payee: T::AccountId,
    finality: Finality
) -> Self
 
pub fn new_call_variant_pool( region_id: RegionId, payee: T::AccountId, finality: Finality ) -> Self
Create a call with the variant pool.
sourcepub fn new_call_variant_claim_revenue(
    region_id: RegionId,
    max_timeslices: Timeslice
) -> Self
 
pub fn new_call_variant_claim_revenue( region_id: RegionId, max_timeslices: Timeslice ) -> Self
Create a call with the variant claim_revenue.
sourcepub fn new_call_variant_purchase_credit(
    amount: BalanceOf<T>,
    beneficiary: RelayAccountIdOf<T>
) -> Self
 
pub fn new_call_variant_purchase_credit( amount: BalanceOf<T>, beneficiary: RelayAccountIdOf<T> ) -> Self
Create a call with the variant purchase_credit.
sourcepub fn new_call_variant_drop_region(region_id: RegionId) -> Self
 
pub fn new_call_variant_drop_region(region_id: RegionId) -> Self
Create a call with the variant drop_region.
sourcepub fn new_call_variant_drop_contribution(region_id: RegionId) -> Self
 
pub fn new_call_variant_drop_contribution(region_id: RegionId) -> Self
Create a call with the variant drop_contribution.
sourcepub fn new_call_variant_drop_history(when: Timeslice) -> Self
 
pub fn new_call_variant_drop_history(when: Timeslice) -> Self
Create a call with the variant drop_history.
sourcepub fn new_call_variant_drop_renewal(core: CoreIndex, when: Timeslice) -> Self
 
pub fn new_call_variant_drop_renewal(core: CoreIndex, when: Timeslice) -> Self
Create a call with the variant drop_renewal.
sourcepub fn new_call_variant_request_core_count(core_count: CoreIndex) -> Self
 
pub fn new_call_variant_request_core_count(core_count: CoreIndex) -> Self
Create a call with the variant request_core_count.
Trait Implementations§
source§impl<T: Config> Decode for Call<T>
 
impl<T: Config> Decode for Call<T>
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<T: Config> Encode for Call<T>
 
impl<T: Config> Encode for Call<T>
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) -> Rwhere
    F: FnOnce(&[u8]) -> R,
 
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
 
fn encoded_size(&self) -> usize
source§impl<T: Config> GetCallIndex for Call<T>
 
impl<T: Config> GetCallIndex for Call<T>
source§fn get_call_index(&self) -> u8
 
fn get_call_index(&self) -> u8
source§fn get_call_indices() -> &'static [u8] ⓘ
 
fn get_call_indices() -> &'static [u8] ⓘ
GetCallName.source§impl<T: Config> GetCallName for Call<T>
 
impl<T: Config> GetCallName for Call<T>
source§fn get_call_name(&self) -> &'static str
 
fn get_call_name(&self) -> &'static str
source§fn get_call_names() -> &'static [&'static str]
 
fn get_call_names() -> &'static [&'static str]
GetCallIndex.source§impl<T: Config> GetDispatchInfo for Call<T>
 
impl<T: Config> GetDispatchInfo for Call<T>
source§fn get_dispatch_info(&self) -> DispatchInfo
 
fn get_dispatch_info(&self) -> DispatchInfo
DispatchInfo, containing relevant information of this dispatch. Read moresource§impl<T: Config> PartialEq<Call<T>> for Call<T>
 
impl<T: Config> PartialEq<Call<T>> for Call<T>
source§impl<T> TypeInfo for Call<T>where
    PhantomData<(T,)>: TypeInfo + 'static,
    ConfigRecordOf<T>: TypeInfo + 'static,
    BalanceOf<T>: TypeInfo + 'static,
    T::AccountId: TypeInfo + 'static,
    RelayAccountIdOf<T>: TypeInfo + 'static,
    T: Config + 'static,
 
impl<T> TypeInfo for Call<T>where PhantomData<(T,)>: TypeInfo + 'static, ConfigRecordOf<T>: TypeInfo + 'static, BalanceOf<T>: TypeInfo + 'static, T::AccountId: TypeInfo + 'static, RelayAccountIdOf<T>: TypeInfo + 'static, T: Config + 'static,
source§impl<T: Config> UnfilteredDispatchable for Call<T>
 
impl<T: Config> UnfilteredDispatchable for Call<T>
§type RuntimeOrigin = <T as Config>::RuntimeOrigin
 
type RuntimeOrigin = <T as Config>::RuntimeOrigin
frame_system::Config::RuntimeOrigin).source§fn dispatch_bypass_filter(
    self,
    origin: Self::RuntimeOrigin
) -> DispatchResultWithPostInfo
 
fn dispatch_bypass_filter( self, origin: Self::RuntimeOrigin ) -> DispatchResultWithPostInfo
impl<T: Config> EncodeLike<Call<T>> for Call<T>
impl<T: Config> Eq for Call<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Call<T>where T: RefUnwindSafe, <T as Config>::AccountId: RefUnwindSafe, <<T as Config>::Coretime as CoretimeInterface>::AccountId: RefUnwindSafe, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: RefUnwindSafe, <<T as Config>::Coretime as CoretimeInterface>::BlockNumber: RefUnwindSafe, <<<T as Config>::Block as Block>::Header as Header>::Number: RefUnwindSafe,
impl<T> Send for Call<T>where T: Send, <<T as Config>::Coretime as CoretimeInterface>::AccountId: Send, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: Send, <<T as Config>::Coretime as CoretimeInterface>::BlockNumber: Send,
impl<T> Sync for Call<T>where T: Sync, <<T as Config>::Coretime as CoretimeInterface>::AccountId: Sync, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: Sync, <<T as Config>::Coretime as CoretimeInterface>::BlockNumber: Sync,
impl<T> Unpin for Call<T>where T: Unpin, <T as Config>::AccountId: Unpin, <<T as Config>::Coretime as CoretimeInterface>::AccountId: Unpin, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: Unpin, <<T as Config>::Coretime as CoretimeInterface>::BlockNumber: Unpin, <<<T as Config>::Block as Block>::Header as Header>::Number: Unpin,
impl<T> UnwindSafe for Call<T>where T: UnwindSafe, <T as Config>::AccountId: UnwindSafe, <<T as Config>::Coretime as CoretimeInterface>::AccountId: UnwindSafe, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: UnwindSafe, <<T as Config>::Coretime as CoretimeInterface>::BlockNumber: UnwindSafe, <<<T as Config>::Block as Block>::Header as Header>::Number: UnwindSafe,
Blanket Implementations§
source§impl<T> CheckedConversion for T
 
impl<T> CheckedConversion for T
§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 Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
source§impl<T> Hashable for Twhere
    T: Codec,
 
impl<T> Hashable for Twhere T: Codec,
fn blake2_128(&self) -> [u8; 16]
fn blake2_256(&self) -> [u8; 32]
fn blake2_128_concat(&self) -> Vec<u8, Global> ⓘ
fn twox_128(&self) -> [u8; 16]
fn twox_256(&self) -> [u8; 32]
fn twox_64_concat(&self) -> Vec<u8, Global> ⓘ
fn identity(&self) -> Vec<u8, Global> ⓘ
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, Outer> IsWrappedBy<Outer> for Twhere
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>,
 
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> KeyedVec for Twhere
    T: Codec,
 
impl<T> KeyedVec for Twhere T: Codec,
§impl<T> Pointable for T
 
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
 
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
    Self: UniqueSaturatedFrom<T>,
 
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
    Self: UniqueSaturatedInto<T>,
 
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
    SS: SubsetOf<SP>,
 
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
 
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
 
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
 
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
 
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.source§impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,
 
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
 
fn unchecked_into(self) -> T
unchecked_from.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
    T: Bounded,
    S: TryInto<T>,
 
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
 
fn unique_saturated_into(self) -> T
T.