Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
27 changes: 27 additions & 0 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", b

# Local
pallet-api = { path = "pallets/api", default-features = false }
pallet-asset-manager = { path = "pallets/asset-manager", default-features = false }
pallet-nfts = { path = "pallets/nfts", default-features = false }
pop-chain-extension = { path = "./extension", default-features = false }
pop-primitives = { path = "./primitives", default-features = false }
pop-runtime-common = { path = "runtime/common", default-features = false }
pop-runtime-devnet = { path = "runtime/devnet", default-features = true } # default-features=true required for `-p pop-node` builds
pop-runtime-mainnet = { path = "runtime/mainnet", default-features = true } # default-features=true required for `-p pop-node` builds
pop-runtime-testnet = { path = "runtime/testnet", default-features = true } # default-features=true required for `-p pop-node` builds
pop-runtime-devnet = { path = "runtime/devnet", default-features = true } # default-features=true required for `-p pop-node` builds
pop-runtime-mainnet = { path = "runtime/mainnet", default-features = true } # default-features=true required for `-p pop-node` builds
pop-runtime-testnet = { path = "runtime/testnet", default-features = true } # default-features=true required for `-p pop-node` builds

# Substrate
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2412", default-features = false }
Expand Down
8 changes: 8 additions & 0 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repository.workspace = true

[dependencies]
codec.workspace = true
log.workspace = true
tracing-subscriber = { workspace = true, features = [
"env-filter",
"fmt",
Expand All @@ -19,13 +20,16 @@ tracing-subscriber = { workspace = true, features = [
frame-support.workspace = true
pallet-assets.workspace = true
pallet-balances.workspace = true
pallet-contracts.workspace = true
pallet-message-queue.workspace = true
sp-authority-discovery.workspace = true
sp-consensus-aura.workspace = true
sp-consensus-babe.workspace = true
sp-consensus-beefy.workspace = true
sp-consensus-grandpa.workspace = true
sp-core.workspace = true
sp-io.workspace = true
sp-keyring.workspace = true
sp-runtime.workspace = true

# Polkadot
Expand Down Expand Up @@ -70,6 +74,7 @@ runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-contracts/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"paseo-runtime?/runtime-benchmarks",
Expand All @@ -92,6 +97,7 @@ std = [
"frame-support/std",
"pallet-assets/std",
"pallet-balances/std",
"pallet-contracts/std",
"pallet-message-queue/std",
"pallet-xcm/std",
"paseo-runtime-constants?/std",
Expand All @@ -107,6 +113,7 @@ std = [
"sp-consensus-beefy/std",
"sp-consensus-grandpa/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"tracing-subscriber/std",
"westend-runtime-constants?/std",
Expand All @@ -121,6 +128,7 @@ try-runtime = [
"frame-support/try-runtime",
"pallet-assets/try-runtime",
"pallet-balances/std",
"pallet-contracts/try-runtime",
"pallet-message-queue/try-runtime",
"paseo-runtime?/try-runtime",
"pop-runtime-devnet/try-runtime",
Expand Down
24 changes: 22 additions & 2 deletions integration-tests/src/chains/asset_hub/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,42 @@ use cumulus_primitives_core::relay_chain::Balance;
use emulated_integration_tests_common::{
accounts, build_genesis_storage, collators::invulnerables, SAFE_XCM_VERSION,
};
use frame_support::parameter_types;
use polkadot_primitives::AccountId;
use sp_core::storage::Storage;

use super::*;
use crate::chains::asset_hub::{
constants::currency::EXISTENTIAL_DEPOSIT,
runtime::{
BalancesConfig, CollatorSelectionConfig, ParachainInfoConfig, PolkadotXcmConfig,
RuntimeGenesisConfig, SessionConfig, SessionKeys, SystemConfig, WASM_BINARY,
AssetsConfig, BalancesConfig, CollatorSelectionConfig, ParachainInfoConfig,
PolkadotXcmConfig, RuntimeGenesisConfig, SessionConfig, SessionKeys, SystemConfig,
WASM_BINARY,
},
};

pub(crate) const ED: Balance = EXISTENTIAL_DEPOSIT;
pub(crate) const PARA_ID: u32 = 1000;
pub(crate) const USDC: u32 = 1337;
pub(crate) const USDT: u32 = 1984;
pub(crate) const USD_MIN_BALANCE: Balance = 70_000;

parameter_types! {
pub AssetOwner: AccountId = Keyring::Alice.to_account_id();
}

pub(crate) fn genesis() -> Storage {
let genesis_config = RuntimeGenesisConfig {
system: SystemConfig::default(),
assets: AssetsConfig {
assets: vec![
// Stablecoins
(USDC, AssetOwner::get(), true, USD_MIN_BALANCE),
(USDT, AssetOwner::get(), true, USD_MIN_BALANCE),
],
next_asset_id: Some(USDC),
..Default::default()
},
balances: BalancesConfig {
balances: accounts::init_balances()
.iter()
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/src/chains/asset_hub/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ pub(crate) use {asset_hub_paseo_runtime as runtime, paseo_runtime_constants as c
#[cfg(feature = "westend")]
pub(crate) use {asset_hub_westend_runtime as runtime, westend_runtime_constants as constants};

use super::*;

pub(crate) mod genesis;
pub(crate) use genesis::*;

// AssetHub Parachain declaration.
decl_test_parachains! {
Expand Down
2 changes: 2 additions & 0 deletions integration-tests/src/chains/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use sp_keyring::Sr25519Keyring as Keyring;

pub(crate) mod asset_hub;
pub(crate) mod pop_network;
pub(crate) mod relay;
1 change: 1 addition & 0 deletions integration-tests/src/chains/pop_network/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
pub(crate) fn genesis() -> Storage {
let genesis_config = runtime::RuntimeGenesisConfig {
system: runtime::SystemConfig::default(),
assets: runtime::AssetsConfig { next_asset_id: Some(1), ..Default::default() },
balances: runtime::BalancesConfig { ..Default::default() },
parachain_info: runtime::ParachainInfoConfig {
parachain_id: PARA_ID.into(),
Expand Down
9 changes: 6 additions & 3 deletions integration-tests/src/chains/pop_network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use emulated_integration_tests_common::{
};
use frame_support::traits::OnInitialize;
#[cfg(feature = "devnet")]
use pop_runtime_devnet as runtime;
pub(crate) use pop_runtime_devnet as runtime;
#[cfg(feature = "mainnet")]
use pop_runtime_mainnet as runtime;
pub(crate) use pop_runtime_mainnet as runtime;
#[cfg(feature = "testnet")]
use pop_runtime_testnet as runtime;
pub(crate) use pop_runtime_testnet as runtime;

// PopNetwork Parachain declaration
decl_test_parachains! {
Expand All @@ -29,6 +29,9 @@ decl_test_parachains! {
pallets = {
PolkadotXcm: runtime::PolkadotXcm,
Balances: runtime::Balances,
Assets: runtime::Assets,
AssetManager: runtime::AssetManager,
Contracts: runtime::Contracts,
}
},
}
Expand Down
Loading