mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
Removed unused trait SenderOrigin (#1611)
This commit is contained in:
committed by
Bastian Köcher
parent
597ea49664
commit
829b23c7cf
@@ -27,23 +27,6 @@ use sp_std::{
|
||||
ops::RangeInclusive,
|
||||
};
|
||||
|
||||
/// The sender of the message on the source chain.
|
||||
pub trait SenderOrigin<AccountId> {
|
||||
/// Return id of the account that is sending this message.
|
||||
///
|
||||
/// In regular messages configuration, when regular message is sent you'll always get `Some(_)`
|
||||
/// from this call. This is the account that is paying send costs. However, there are some
|
||||
/// examples when `None` may be returned from the call:
|
||||
///
|
||||
/// - if the send-message call origin is either `frame_system::RawOrigin::Root` or
|
||||
/// `frame_system::RawOrigin::None` and your configuration forbids such messages;
|
||||
/// - if your configuration allows 'unpaid' messages sent by pallets. Then the pallet may just
|
||||
/// use its own defined origin (not linked to any account) and the message will be accepted.
|
||||
/// This may be useful for pallets that are sending important system-wide information (like
|
||||
/// update of runtime version).
|
||||
fn linked_account(&self) -> Option<AccountId>;
|
||||
}
|
||||
|
||||
/// Relayers rewards, grouped by relayer account id.
|
||||
pub type RelayersRewards<AccountId, Balance> = BTreeMap<AccountId, RelayerRewards<Balance>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user