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

Collectives tests: Teleports and Whitelist Call #251

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fc8bcb0
balance conversion implementation for native asset
muharem Mar 11, 2024
f64b6da
fellowship treasury spend test
muharem Mar 9, 2024
fa5136f
kusama tests
muharem Mar 11, 2024
1cb4f6d
changelog
muharem Mar 13, 2024
81a0a86
Apply suggestions from code review
muharem Mar 13, 2024
646db40
Merge branch 'main' into muharem-native-on-parachain-for-asset-rate
muharem Mar 14, 2024
f1e63db
Merge branch 'main' into muharem-native-on-parachain-for-asset-rate
muharem Mar 18, 2024
8094c44
review fixes
muharem Mar 18, 2024
e0cb671
Merge remote-tracking branch 'origin/main' into muharem-native-on-par…
muharem Mar 18, 2024
562a18d
Update system-parachains/collectives/collectives-polkadot/src/impls.rs
muharem Mar 18, 2024
239880a
minor docs and naming fixes
muharem Mar 19, 2024
a041dc8
Apply suggestions from code review
muharem Mar 19, 2024
470a444
Apply suggestions from code review
muharem Mar 19, 2024
a5c5bd7
Merge remote-tracking branch 'origin/main' into muharem-native-on-par…
muharem Mar 20, 2024
4e922b8
TODOs
muharem Mar 20, 2024
f87c0e9
remove unused imports
muharem Mar 20, 2024
a97e959
empty commit
muharem Mar 20, 2024
5a515a4
Merge branch 'main' into muharem-native-on-parachain-for-asset-rate
muharem Mar 21, 2024
744591a
fix docs
muharem Mar 21, 2024
4637819
collectives teleport tests
muharem Mar 21, 2024
3dd5669
collectives whitelist test
muharem Mar 21, 2024
fd00040
Merge remote-tracking branch 'origin/main' into muharem-collectives-t…
muharem Mar 25, 2024
b19bae2
Merge branch 'main' into muharem-collectives-tests
joepetrowski Apr 25, 2024
88af079
Merge remote-tracking branch 'origin/main' into muharem-collectives-t…
muharem May 15, 2024
95b0c86
Apply suggestions from code review
muharem May 15, 2024
c4af37b
Merge branch 'main' into muharem-collectives-tests
joepetrowski May 17, 2024
3d3b6ba
fix import
muharem May 17, 2024
6ab72a9
Merge branch 'main' into muharem-collectives-tests
joepetrowski May 17, 2024
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
Prev Previous commit
Next Next commit
remove unused imports
  • Loading branch information
muharem committed Mar 20, 2024
commit f87c0e9f480093cffc374d2c623f5b14db779c75
Original file line number Diff line number Diff line change
Expand Up @@ -13,67 +13,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub use codec::Encode;

// Substrate
pub use frame_support::{
assert_err, assert_ok,
instances::Instance1,
pallet_prelude::Weight,
sp_runtime::{AccountId32, DispatchError, DispatchResult, ModuleError},
traits::fungibles::Inspect,
BoundedVec,
};

// Polkadot
pub use xcm::{
prelude::{AccountId32 as AccountId32Junction, *},
v3::{self, Error, NetworkId::Polkadot as PolkadotId},
};
pub use xcm::{prelude::*, v3};

// Cumulus
pub use asset_test_utils::xcm_helpers;
pub use emulated_integration_tests_common::{
xcm_emulator::{
assert_expected_events, bx, helpers::weight_within_threshold, Chain, Parachain as Para,
RelayChain as Relay, Test, TestArgs, TestContext, TestExt,
},
xcm_helpers::{xcm_transact_paid_execution, xcm_transact_unpaid_execution},
PROOF_SIZE_THRESHOLD, REF_TIME_THRESHOLD, XCM_V3,
pub use emulated_integration_tests_common::xcm_emulator::{
assert_expected_events, bx, Chain, RelayChain as Relay, TestExt,
};
pub use integration_tests_helpers::test_parachain_is_trusted_teleporter;
pub use parachains_common::{AccountId, Balance};
pub use polkadot_system_emulated_network::{
asset_hub_polkadot_emulated_chain::{
genesis::ED as ASSET_HUB_POLKADOT_ED, AssetHubPolkadotParaPallet as AssetHubPolkadotPallet,
},
collectives_polkadot_emulated_chain::{
genesis::ED as COLLECTIVES_POLKADOT_ED,
CollectivesPolkadotParaPallet as CollectivesPolkadotPallet,
},
penpal_emulated_chain::PenpalBParaPallet as PenpalBPallet,
polkadot_emulated_chain::{genesis::ED as POLKADOT_ED, PolkadotRelayPallet as PolkadotPallet},
AssetHubPolkadotPara as AssetHubPolkadot,
AssetHubPolkadotParaReceiver as AssetHubPolkadotReceiver,
AssetHubPolkadotParaSender as AssetHubPolkadotSender,
BridgeHubPolkadotPara as BridgeHubPolkadot,
BridgeHubPolkadotParaReceiver as BridgeHubPolkadotReceiver,
CollectivesPolkadotPara as CollectivesPolkadot, PenpalAPara as PenpalA,
PenpalAParaReceiver as PenpalAReceiver, PenpalAParaSender as PenpalASender,
PenpalBPara as PenpalB, PenpalBParaReceiver as PenpalBReceiver,
PenpalBParaSender as PenpalBSender, PolkadotRelay as Polkadot,
PolkadotRelayReceiver as PolkadotReceiver, PolkadotRelaySender as PolkadotSender,
asset_hub_polkadot_emulated_chain::AssetHubPolkadotParaPallet as AssetHubPolkadotPallet,
collectives_polkadot_emulated_chain::CollectivesPolkadotParaPallet as CollectivesPolkadotPallet,
polkadot_emulated_chain::PolkadotRelayPallet as PolkadotPallet,
AssetHubPolkadotPara as AssetHubPolkadot, CollectivesPolkadotPara as CollectivesPolkadot,
PolkadotRelay as Polkadot,
};

// `Assets` pallet index
pub const ASSETS_PALLET_ID: u8 = 50;

pub type RelayToSystemParaTest = Test<Polkadot, AssetHubPolkadot>;
pub type RelayToParaTest = Test<Polkadot, PenpalB>;
pub type SystemParaToRelayTest = Test<AssetHubPolkadot, Polkadot>;
pub type SystemParaToParaTest = Test<AssetHubPolkadot, PenpalB>;
pub type ParaToSystemParaTest = Test<PenpalB, AssetHubPolkadot>;
pub type ParaToParaTest = Test<PenpalB, PenpalA, Polkadot>;

#[cfg(test)]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use crate::*;
use asset_hub_polkadot_runtime::xcm_config::LocationToAccountId as AssetHubLocationToAccountId;
use emulated_integration_tests_common::accounts::ALICE;
use frame_support::{
dispatch::RawOrigin, sp_runtime::traits::Dispatchable, traits::fungible::Inspect,
assert_ok, dispatch::RawOrigin, instances::Instance1, sp_runtime::traits::Dispatchable,
traits::fungible::Inspect,
};
use polkadot_runtime::OriginCaller;
use polkadot_runtime_common::impls::VersionedLocatableAsset;
Expand Down
Loading