mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 21:05:40 +00:00
new proxy for auctions, crowdloans, registrar, slots (#3683)
This commit is contained in:
@@ -1038,6 +1038,7 @@ parameter_types! {
|
||||
pub enum ProxyType {
|
||||
Any,
|
||||
CancelProxy,
|
||||
Auction,
|
||||
}
|
||||
impl Default for ProxyType {
|
||||
fn default() -> Self {
|
||||
@@ -1050,6 +1051,10 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
ProxyType::Any => true,
|
||||
ProxyType::CancelProxy =>
|
||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..))),
|
||||
ProxyType::Auction => matches!(
|
||||
c,
|
||||
Call::Auctions(..) | Call::Crowdloan(..) | Call::Registrar(..) | Call::Slots(..)
|
||||
),
|
||||
}
|
||||
}
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user