Enum pallet_chainlink_feed::pallet::Call[][src]

pub enum Call<T: Config> {
Show 23 variants create_feed { payment: BalanceOf<T>, timeout: T::BlockNumber, submission_value_bounds: (T::Value, T::Value), min_submissions: u32, decimals: u8, description: Vec<u8>, restart_delay: u32, oracles: Vec<(T::AccountId, T::AccountId)>, pruning_window: Option<u32>, max_debt: Option<BalanceOf<T>>, }, transfer_ownership { feed_id: T::FeedId, new_owner: T::AccountId, }, cancel_ownership_transfer { feed_id: T::FeedId, }, accept_ownership { feed_id: T::FeedId, }, set_pruning_window { feed_id: T::FeedId, pruning_window: u32, }, submit { feed_id: T::FeedId, round_id: RoundId, submission: T::Value, }, change_oracles { feed_id: T::FeedId, to_disable: Vec<T::AccountId>, to_add: Vec<(T::AccountId, T::AccountId)>, }, update_future_rounds { feed_id: T::FeedId, payment: BalanceOf<T>, submission_count_bounds: (u32, u32), restart_delay: u32, timeout: T::BlockNumber, }, set_requester { feed_id: T::FeedId, requester: T::AccountId, delay: RoundId, }, remove_requester { feed_id: T::FeedId, requester: T::AccountId, }, request_new_round { feed_id: T::FeedId, }, withdraw_payment { oracle: T::AccountId, recipient: T::AccountId, amount: BalanceOf<T>, }, transfer_admin { oracle: T::AccountId, new_admin: T::AccountId, }, cancel_admin_transfer { oracle: T::AccountId, }, accept_admin { oracle: T::AccountId, }, withdraw_funds { recipient: T::AccountId, amount: BalanceOf<T>, }, reduce_debt { feed_id: T::FeedId, amount: BalanceOf<T>, }, force_set_pallet_admin { new_pallet_admin: T::AccountId, }, transfer_pallet_admin { new_pallet_admin: T::AccountId, }, cancel_pallet_admin_transfer {}, accept_pallet_admin {}, set_feed_creator { new_creator: T::AccountId, }, remove_feed_creator { creator: T::AccountId, }, // some variants omitted
}
Expand description

Contains one variant per dispatchable that can be called by an extrinsic.

Variants

create_feed

Create a new oracle feed with the given config values.

This will issue the next available feed ID (FeedCounter) and assign it to the new feed.

Limited to feed creator accounts that where granted permission by the pallet admin to create feeds via set_feed_creator.

Parameters:

Emits FeedCreated event when successful.

Fields of create_feed

payment: BalanceOf<T>timeout: T::BlockNumbersubmission_value_bounds: (T::Value, T::Value)min_submissions: u32decimals: u8description: Vec<u8>restart_delay: u32oracles: Vec<(T::AccountId, T::AccountId)>pruning_window: Option<u32>max_debt: Option<BalanceOf<T>>
transfer_ownership

Initiate the transfer of the feed to new_owner. Limited to the current owner of the feed.

This is a noop if the requested new_owner is the sender itself and the sender is already the owner.

Fields of transfer_ownership

feed_id: T::FeedIdnew_owner: T::AccountId
cancel_ownership_transfer

Cancels a previously with transfer_ownership initiated transfer of ownership if it’s still pending.

This will fail if the pending_owner already accepted the transfer with accept_ownership..

Fields of cancel_ownership_transfer

feed_id: T::FeedId
accept_ownership

Accept the transfer of feed ownership.

Fields of accept_ownership

feed_id: T::FeedId
set_pruning_window

Updates the pruning window of an existing feed

Fields of set_pruning_window

feed_id: T::FeedIdpruning_window: u32
submit

Submit a new value to the given feed and round.

Limited to the oracles of a feed.

Fields of submit

feed_id: T::FeedIdround_id: RoundIdsubmission: T::Value
change_oracles

Disable and add oracles for the given feed. Limited to the owner of a feed.

Fields of change_oracles

feed_id: T::FeedIdto_disable: Vec<T::AccountId>to_add: Vec<(T::AccountId, T::AccountId)>
update_future_rounds

Update the configuration for future oracle rounds. Limited to the owner of a feed.

Fields of update_future_rounds

feed_id: T::FeedIdpayment: BalanceOf<T>submission_count_bounds: (u32, u32)restart_delay: u32timeout: T::BlockNumber
set_requester

Set requester permissions for requester. Limited to the feed owner.

Fields of set_requester

feed_id: T::FeedIdrequester: T::AccountIddelay: RoundId
remove_requester

Remove requester permissions for requester. Limited to the feed owner.

Fields of remove_requester

feed_id: T::FeedIdrequester: T::AccountId
request_new_round

Request the start of a new oracle round. Limited to accounts with “requester” permission.

Fields of request_new_round

feed_id: T::FeedId
withdraw_payment

Withdraw amount payment of the given oracle to recipient. Limited to the oracle admin.

Fields of withdraw_payment

oracle: T::AccountIdrecipient: T::AccountIdamount: BalanceOf<T>
transfer_admin

Initiate an admin transfer for the given oracle. Limited to the oracle admin account.

This is a noop if the requested new_admin is the sender itself and the sender is already the oracle admin.

Fields of transfer_admin

oracle: T::AccountIdnew_admin: T::AccountId
cancel_admin_transfer

Cancels a previously with transfer_admin initiated transfer of admin ownership for the given oracle, if the transfer is still pending.

This will fail if the pending_admin already accepted the transfer with accept_admin..

Fields of cancel_admin_transfer

oracle: T::AccountId
accept_admin

Complete an admin transfer for the given oracle. Limited to the pending oracle admin account.

Fields of accept_admin

oracle: T::AccountId
withdraw_funds

Withdraw amount funds to recipient. Limited to the pallet admin.

Fields of withdraw_funds

recipient: T::AccountIdamount: BalanceOf<T>
reduce_debt

Reduce the amount of debt in the pallet by moving funds from the free balance to the reserved so oracles can be payed out. Limited to the pallet admin.

Fields of reduce_debt

feed_id: T::FeedIdamount: BalanceOf<T>
force_set_pallet_admin

Sets the pallet admin account.

The dispatch origin for this call must be Root.

Unlike transfer_pallet_admin, the new_pallet_admin is not required to accept the transfer, instead the PalletAdmin is forcibly set and the eventual pending transfer is aborted.

Fields of force_set_pallet_admin

new_pallet_admin: T::AccountId
transfer_pallet_admin

Initiate an admin transfer for the pallet. Limited to the pallet admin account.

This is a noop if the requested new_pallet_admin is the sender itself and the sender is already the pallet admin.

Fields of transfer_pallet_admin

new_pallet_admin: T::AccountId
cancel_pallet_admin_transfer

Cancels a previously with transfer_pallet_admin initiated transfer of the pallet admin ownership, if the transfer is still pending.

This will fail if the PendingPalletAdmin already accepted the transfer with accept_pallet_admin.

Fields of cancel_pallet_admin_transfer

accept_pallet_admin

Complete an admin transfer for the pallet. Limited to the pending pallet admin account.

Fields of accept_pallet_admin

set_feed_creator

Allow the given account to create oracle feeds. Limited to the pallet admin account.

Fields of set_feed_creator

new_creator: T::AccountId
remove_feed_creator

Disallow the given account to create oracle feeds. Limited to the pallet admin account.

Fields of remove_feed_creator

creator: T::AccountId

Implementations

Create a call with the variant create_feed.

Create a call with the variant transfer_ownership.

Create a call with the variant cancel_ownership_transfer.

Create a call with the variant accept_ownership.

Create a call with the variant set_pruning_window.

Create a call with the variant submit.

Create a call with the variant change_oracles.

Create a call with the variant update_future_rounds.

Create a call with the variant set_requester.

Create a call with the variant remove_requester.

Create a call with the variant request_new_round.

Create a call with the variant withdraw_payment.

Create a call with the variant transfer_admin.

Create a call with the variant cancel_admin_transfer.

Create a call with the variant accept_admin.

Create a call with the variant withdraw_funds.

Create a call with the variant reduce_debt.

Create a call with the variant force_set_pallet_admin.

Create a call with the variant transfer_pallet_admin.

Create a call with the variant cancel_pallet_admin_transfer.

Create a call with the variant accept_pallet_admin.

Create a call with the variant set_feed_creator.

Create a call with the variant remove_feed_creator.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Attempt to deserialise the value from input.

Attempt to skip the encoded value from input. Read more

Returns the fixed encoded size of the type. Read more

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

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

Convert self to an owned vector.

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

Calculates the encoded size. Read more

Return the function name of the Call.

Return all function names.

Return a DispatchInfo, containing relevant information of this dispatch. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the static type identifier for Self.

The origin type of the runtime, (i.e. frame_system::Config::Origin).

Dispatch this call but do not check the filter in origin.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Decode Self and consume all of the given input data. Read more

Decode Self and consume all of the given input data. Read more

Decode Self and advance input by the number of bytes consumed. Read more

Decode Self with the given maximum recursion depth. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Compare self to key and return true if they are equal.

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Cast reference.

Cast reference.

Cast mutable reference.

Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Return an encoding of Self prepended by given slice.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. Read more

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more