mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 07:57:55 +00:00
Runtime lib restructure (#202)
* impl apis exported * runtime version test moved to constants * constants exported * constant related errors fixed * pallet configs exported * xmc_config moved to configs * types extracted
This commit is contained in:
@@ -20,9 +20,32 @@ mod constant_tests {
|
||||
|
||||
mod runtime_tests {
|
||||
use frame_support::{pallet_prelude::Weight, traits::TypedGet, PalletId};
|
||||
use parachain_template_runtime::{constants::currency::*, *};
|
||||
use parachain_template_runtime::{
|
||||
configs::*,
|
||||
constants::{currency::*, *},
|
||||
*,
|
||||
};
|
||||
use sp_runtime::create_runtime_str;
|
||||
use sp_version::RuntimeVersion;
|
||||
use xcm::latest::prelude::BodyId;
|
||||
|
||||
#[test]
|
||||
fn check_runtime_api_version() {
|
||||
assert_eq!(
|
||||
VERSION,
|
||||
RuntimeVersion {
|
||||
spec_name: create_runtime_str!("template-parachain"),
|
||||
impl_name: create_runtime_str!("template-parachain"),
|
||||
authoring_version: 1,
|
||||
spec_version: 1,
|
||||
impl_version: 0,
|
||||
apis: parachain_template_runtime::apis::RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
state_version: 1,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn weight_to_fee_constants() {
|
||||
assert_eq!(P_FACTOR, 10);
|
||||
@@ -199,7 +222,7 @@ mod runtime_tests {
|
||||
|
||||
mod xcm_tests {
|
||||
use frame_support::weights::Weight;
|
||||
use parachain_template_runtime::xcm_config::*;
|
||||
use parachain_template_runtime::configs::xcm_config::*;
|
||||
|
||||
#[test]
|
||||
fn xcm_executor_constants() {
|
||||
|
||||
Reference in New Issue
Block a user