Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AH] Disable Vested Transfers as preparation for AHM #579

Merged
merged 7 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Update the XCM `Weigher` from `FixedWeightBounds` to `WeightInfoBounds` with benchmarked weights for Polkadot Collectives ([polkadot-fellows/runtimes#547](https://github.com/polkadot-fellows/runtimes/pull/547))
- Increase max PoV size to 10Mib on Kusama ([polkadot-fellows/runtimes#553](https://github.com/polkadot-fellows/runtimes/pull/553))
- Update to Polkadot SDK `stable2409-4` ([polkadot-fellows/runtimes#558](https://github.com/polkadot-fellows/runtimes/pull/558))
- Asset Hubs: disable vested transfers as preparation for the Asset Hub Migration ([polkadot-fellows/runtime#579](https://github.com/polkadot-fellows/runtimes/pull/579))

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

Expand Down
9 changes: 8 additions & 1 deletion system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,16 @@ parameter_types! {
pub const SS58Prefix: u8 = 2;
}

pub struct VestedTransferCalls;
impl Contains<RuntimeCall> for VestedTransferCalls {
fn contains(call: &RuntimeCall) -> bool {
matches!(call, RuntimeCall::vesting(VestingCall::vested_transfer { .. }))
}
}

// Configure FRAME pallets to include in runtime.
impl frame_system::Config for Runtime {
type BaseCallFilter = frame_support::traits::Everything;
type BaseCallFilter = frame_support::traits::EverythingExcluding<VestedTransferCalls>;
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
type BlockWeights = RuntimeBlockWeights;
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
Expand Down
9 changes: 8 additions & 1 deletion system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,16 @@ parameter_types! {
pub const SS58Prefix: u8 = 0;
}

pub struct VestedTransferCalls;
impl Contains<RuntimeCall> for VestedTransferCalls {
fn contains(call: &RuntimeCall) -> bool {
matches!(call, RuntimeCall::vesting(VestingCall::vested_transfer { .. }))
}
}

// Configure FRAME pallets to include in runtime.
impl frame_system::Config for Runtime {
type BaseCallFilter = frame_support::traits::Everything;
type BaseCallFilter = frame_support::traits::EverythingExcluding<VestedTransferCalls>;
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
type BlockWeights = RuntimeBlockWeights;
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
Expand Down
Loading