Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
42b6f82
Initial copy of Kusama OpenGov to AHK (commit: 7bccafeee512e90126843e…
bkontur Jun 20, 2025
e42b704
Add some weights files and deps
bkontur Jun 23, 2025
d52559c
Add pallet-preimage
bkontur Jun 23, 2025
0b355ad
Add scheduler + TODOs
bkontur Jun 23, 2025
67a6496
Add pallet-parameters + TODOs
bkontur Jun 23, 2025
df44ea4
Add Treasury/Boundties setup + TODOs
bkontur Jun 23, 2025
56fbaac
Governance integration tests on Kusama (for OpenGov on AH)
bkontur Jun 25, 2025
ede851d
OpenGov AH accepts RC Fellows voice for `WhitelistOrigin`
bkontur Jun 27, 2025
c7fe12f
Kusama RC accepts AssetHubLocation as a root
bkontur Jun 27, 2025
5ee69b3
All Kusama system paras accept AssetHubLocation as root
bkontur Jun 27, 2025
2fd62a7
// TODO: split GovernanceOnRcLocation and GovernanceOnAhLocation - be…
bkontur Jun 27, 2025
3d871e1
more TODOs
bkontur Jun 27, 2025
491443c
Fix/split `GovernanceLocation` for system paras (Kusama).
bkontur Jul 3, 2025
6903926
GeneralAdmin/StakingAdmin/Fellows origin for OpenGov on AH (Kusama)
bkontur Jul 3, 2025
d00faa3
Merge remote-tracking branch 'upstream/main' into kk-bko-ahm-kusama-g…
karolk91 Aug 19, 2025
4a918f7
Missing common.rs file
karolk91 Aug 19, 2025
5e1c074
Merge remote-tracking branch 'upstream/main' into kk-bko-ahm-kusama-g…
karolk91 Aug 19, 2025
2c50eea
Align TreasuryPaymaster with PAH from dev-asset-hub-migration branch
karolk91 Aug 20, 2025
ced66c2
Formatting fixes
karolk91 Aug 20, 2025
3b895f5
Fix Clippy and taplo errors
karolk91 Aug 20, 2025
c920f8f
Formatting fixes
karolk91 Aug 20, 2025
6eb407f
missing asset-hub-kusama/src/weights/pallet_asset_rate.rs added
karolk91 Aug 20, 2025
f8bc50e
Merge pull request #20 from karolk91/kk-bko-ahm-kusama-governance-twe…
bkontur Aug 20, 2025
8f34f7a
More clean up
bkontur Aug 20, 2025
93e3082
Fix encointer tests
karolk91 Aug 20, 2025
4304c96
Fix features propagation reported by zepter
karolk91 Aug 20, 2025
8fa4f38
set global GovernanceLocation to AssetHub
karolk91 Aug 20, 2025
9902f19
Cleanup
karolk91 Aug 20, 2025
a0e9998
Nit
bkontur Aug 20, 2025
20aa21f
More nits
bkontur Aug 20, 2025
3f5f879
Missing improvement for gov tests
karolk91 Aug 21, 2025
2a80108
Merge remote-tracking branch 'upstream/main' into bko-ahm-kusama-gove…
karolk91 Aug 21, 2025
a8c24f7
Merge remote-tracking branch 'muharem/muharem-ahm-kusama' into kk-muh…
karolk91 Aug 27, 2025
ffcbe5d
Update system-parachains/asset-hubs/asset-hub-kusama/src/governance/o…
karolk91 Aug 27, 2025
9a3df59
Update system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs
karolk91 Aug 27, 2025
4bb8139
Update system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs
karolk91 Aug 27, 2025
293482d
Remove fellows related stuff from AH
karolk91 Aug 27, 2025
58e856d
Formatting fixes
karolk91 Aug 27, 2025
020bc66
Remove unused module, replaced by polkadot-sdk's impl
karolk91 Aug 27, 2025
416eb6b
[AHM] Integrate migration for Kusama (#862)
muharem Sep 2, 2025
aae8b3c
Merge remote-tracking branch 'muharem/muharem-ahm-kusama' into kk-muh…
karolk91 Sep 3, 2025
7d1a81e
Merge remote-tracking branch 'upstream/oty-dev-asset-hub-migration-25…
karolk91 Sep 3, 2025
b95d025
Update system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs
karolk91 Sep 4, 2025
08843ee
Fmt + unused dep
karolk91 Sep 4, 2025
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
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions integration-tests/emulated/tests/governance/kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,13 @@ pallet-utility = { workspace = true, default-features = true }
# Cumulus
emulated-integration-tests-common = { workspace = true }

# Polkadot
pallet-xcm = { workspace = true, default-features = true }
xcm = { workspace = true, default-features = true }

# Local
asset-hub-kusama-runtime = { workspace = true }
integration-tests-helpers = { workspace = true }
people-kusama-runtime = { workspace = true }
kusama-runtime = { workspace = true }
kusama-system-emulated-network = { workspace = true }

[features]
runtime-benchmarks = [
"asset-hub-kusama-runtime/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"integration-tests-helpers/runtime-benchmarks",
"kusama-runtime/runtime-benchmarks",
"kusama-system-emulated-network/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-whitelist/runtime-benchmarks",
"people-kusama-runtime/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
57 changes: 57 additions & 0 deletions integration-tests/emulated/tests/governance/kusama/src/common.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Copyright (C) Parity Technologies and the various Polkadot contributors, see Contributions.md
// for a list of specific contributors.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::imports::*;

/// Kusama Collectives/Fellows **stays on the RC** and dispatches `pallet_xcm::send`
/// with `OriginKind:Xcm` to the dest with encoded whitelisted call hash.
#[cfg(test)]
pub fn collectives_send_whitelist(
dest: Location,
encoded_whitelist_call: impl FnOnce() -> Vec<u8>,
) {
Kusama::execute_with(|| {
type RuntimeEvent = <Kusama as Chain>::RuntimeEvent;
type RuntimeCall = <Kusama as Chain>::RuntimeCall;
type RuntimeOrigin = <Kusama as Chain>::RuntimeOrigin;
type Runtime = <Kusama as Chain>::Runtime;

Dmp::make_parachain_reachable(AssetHubKusama::para_id());

let whitelist_call = RuntimeCall::XcmPallet(pallet_xcm::Call::<Runtime>::send {
dest: bx!(VersionedLocation::from(dest)),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind: OriginKind::Xcm,
fallback_max_weight: None,
call: encoded_whitelist_call().into(),
}
]))),
});

// Fellows origin can trigger
use kusama_runtime::governance::pallet_custom_origins::Origin::Fellows as FellowsOrigin;
let fellows_origin: RuntimeOrigin = FellowsOrigin.into();
assert_ok!(whitelist_call.dispatch(fellows_origin));
assert_expected_events!(
Kusama,
vec![
RuntimeEvent::XcmPallet(pallet_xcm::Event::Sent { .. }) => {},
]
);
});
}
30 changes: 30 additions & 0 deletions integration-tests/emulated/tests/governance/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,35 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(test)]
mod imports {
pub(crate) use codec::Encode;
pub(crate) use emulated_integration_tests_common::{
assert_whitelisted,
impls::{assert_expected_events, bx, Parachain, RelayChain, TestExt},
xcm_emulator::Chain,
xcm_helpers::{
build_xcm_send_authorize_upgrade_call, call_hash_of,
dispatch_whitelisted_call_with_preimage,
},
};
pub(crate) use frame_support::{assert_err, assert_ok};
pub(crate) use kusama_runtime::{governance::pallet_custom_origins::Origin, Dmp};
pub(crate) use sp_runtime::{traits::Dispatchable, DispatchError};
pub(crate) use xcm::{latest::prelude::*, VersionedLocation, VersionedXcm};

pub(crate) use kusama_system_emulated_network::{
AssetHubKusamaPara as AssetHubKusama, BridgeHubKusamaPara as BridgeHubKusama,
CoretimeKusamaPara as CoretimeKusama, KusamaRelay as Kusama,
PeopleKusamaPara as PeopleKusama,
};
}

#[cfg(test)]
mod common;

#[cfg(test)]
mod open_gov_on_asset_hub;

#[cfg(test)]
mod open_gov_on_relay;
Loading
Loading