mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
new proxy for auctions, crowdloans, registrar, slots (#3683)
This commit is contained in:
@@ -979,6 +979,7 @@ pub enum ProxyType {
|
|||||||
Staking,
|
Staking,
|
||||||
IdentityJudgement,
|
IdentityJudgement,
|
||||||
CancelProxy,
|
CancelProxy,
|
||||||
|
Auction,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType {
|
impl Default for ProxyType {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
@@ -1056,6 +1057,10 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::CancelProxy => {
|
ProxyType::CancelProxy => {
|
||||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..)))
|
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 {
|
fn is_superset(&self, o: &Self) -> bool {
|
||||||
|
|||||||
@@ -1038,6 +1038,7 @@ parameter_types! {
|
|||||||
pub enum ProxyType {
|
pub enum ProxyType {
|
||||||
Any,
|
Any,
|
||||||
CancelProxy,
|
CancelProxy,
|
||||||
|
Auction,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType {
|
impl Default for ProxyType {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
@@ -1050,6 +1051,10 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::Any => true,
|
ProxyType::Any => true,
|
||||||
ProxyType::CancelProxy =>
|
ProxyType::CancelProxy =>
|
||||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..))),
|
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 {
|
fn is_superset(&self, o: &Self) -> bool {
|
||||||
|
|||||||
@@ -662,6 +662,7 @@ pub enum ProxyType {
|
|||||||
SudoBalances,
|
SudoBalances,
|
||||||
IdentityJudgement,
|
IdentityJudgement,
|
||||||
CancelProxy,
|
CancelProxy,
|
||||||
|
Auction,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType {
|
impl Default for ProxyType {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
@@ -728,6 +729,10 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::CancelProxy => {
|
ProxyType::CancelProxy => {
|
||||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..)))
|
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 {
|
fn is_superset(&self, o: &Self) -> bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user