Skip to content

Commit

Permalink
Add "Spokesperson" proxy type to Kusama
Browse files Browse the repository at this point in the history
  • Loading branch information
olanod committed Aug 13, 2024
1 parent 9af02f7 commit 248214a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- All runtimes: XcmPaymentApi and DryRunApi ([polkadot-fellows/runtimes#380](https://github.com/polkadot-fellows/runtimes/pull/380))
- All runtimes: add `LocationToAccountApi` ([polkadot-fellows/runtimes#413](https://github.com/polkadot-fellows/runtimes/pull/413))
- Enable Agile Coretime on Polkadot ([polkadot-fellows/runtimes#401](https://github.com/polkadot-fellows/runtimes/pull/401))
- Kusama: Add a "Spokesperson" proxy type only allowed to send remarks ([polkadot-fellows/runtimes#430](https://github.com/polkadot-fellows/runtimes/pull/430))

#### From [#322](https://github.com/polkadot-fellows/runtimes/pull/322):

Expand Down
7 changes: 7 additions & 0 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,8 @@ pub enum ProxyType {
Society,
#[codec(index = 8)]
NominationPools,
#[codec(index = 9)]
Spokesperson,
}

impl Default for ProxyType {
Expand Down Expand Up @@ -1135,6 +1137,11 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Slots(..)
),
ProxyType::Society => matches!(c, RuntimeCall::Society(..)),
ProxyType::Spokesperson => matches!(
c,
RuntimeCall::System(frame_system::Call::remark { .. }) |
RuntimeCall::System(frame_system::Call::remark_with_event { .. })
),
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down

0 comments on commit 248214a

Please sign in to comment.