mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-15 12:21:01 +00:00
Update docs (#261)
* typos and broken links * evm runtime docs * name change in code * generic runtime description updated, and typos * smart contract with zombienet * quick start exported into another document and further formatting
This commit is contained in:
committed by
Gustavo Gonzalez
parent
1b67c98311
commit
9b9845920c
@@ -1,6 +1,6 @@
|
||||
// ExtBuilder impl for all runtime integration tests
|
||||
use evm_runtime_template::{BuildStorage, Runtime, System};
|
||||
use frame_support::weights::Weight;
|
||||
use parachain_template_runtime::{BuildStorage, Runtime, System};
|
||||
|
||||
pub fn run_with_system_weight<F: FnMut()>(w: Weight, mut assertions: F) {
|
||||
let mut t: sp_io::TestExternalities =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
mod constant_tests {
|
||||
use parachain_template_runtime::constants::currency::*;
|
||||
use evm_runtime_template::constants::currency::*;
|
||||
|
||||
#[test]
|
||||
fn test_constants() {
|
||||
@@ -19,12 +19,12 @@ mod constant_tests {
|
||||
}
|
||||
|
||||
mod runtime_tests {
|
||||
use frame_support::{pallet_prelude::Weight, traits::TypedGet, PalletId};
|
||||
use parachain_template_runtime::{
|
||||
use evm_runtime_template::{
|
||||
configs::{asset_config::*, *},
|
||||
constants::{currency::*, *},
|
||||
*,
|
||||
};
|
||||
use frame_support::{pallet_prelude::Weight, traits::TypedGet, PalletId};
|
||||
use sp_runtime::create_runtime_str;
|
||||
use sp_version::RuntimeVersion;
|
||||
use xcm::latest::prelude::BodyId;
|
||||
@@ -40,7 +40,7 @@ mod runtime_tests {
|
||||
authoring_version: 1,
|
||||
spec_version: 1,
|
||||
impl_version: 0,
|
||||
apis: parachain_template_runtime::apis::RUNTIME_API_VERSIONS,
|
||||
apis: evm_runtime_template::apis::RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
state_version: 1,
|
||||
}
|
||||
@@ -222,8 +222,8 @@ mod runtime_tests {
|
||||
}
|
||||
|
||||
mod xcm_tests {
|
||||
use evm_runtime_template::configs::xcm_config::*;
|
||||
use frame_support::weights::Weight;
|
||||
use parachain_template_runtime::configs::xcm_config::*;
|
||||
|
||||
#[test]
|
||||
fn xcm_executor_constants() {
|
||||
@@ -235,6 +235,9 @@ mod xcm_tests {
|
||||
#[test]
|
||||
fn pallet_xcm_constants() {
|
||||
assert_eq!(MaxLockers::get(), 0);
|
||||
assert_eq!(<parachain_template_runtime::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE, 100);
|
||||
assert_eq!(
|
||||
<evm_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
|
||||
100
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Integration transaction weight-fee tests
|
||||
mod common;
|
||||
use common::*;
|
||||
use evm_runtime_template::{Runtime, RuntimeBlockWeights};
|
||||
use frame_support::pallet_prelude::*;
|
||||
use pallet_transaction_payment::Multiplier;
|
||||
use parachain_template_runtime::{Runtime, RuntimeBlockWeights};
|
||||
use polkadot_runtime_common::MinimumMultiplier;
|
||||
use sp_runtime::{traits::Convert, Perquintill};
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Storage indices integration checks
|
||||
use frame_support::traits::PalletInfo;
|
||||
use parachain_template_runtime::{
|
||||
use evm_runtime_template::{
|
||||
Aura, AuraExt, Authorship, Balances, CollatorSelection, CumulusXcm, MessageQueue, Multisig,
|
||||
ParachainInfo, ParachainSystem, PolkadotXcm, Proxy, Runtime, Session, Sudo, System, Timestamp,
|
||||
TransactionPayment, XcmpQueue,
|
||||
};
|
||||
use frame_support::traits::PalletInfo;
|
||||
|
||||
fn assert_pallet_prefix<P: 'static>(name: &str) {
|
||||
assert_eq!(<Runtime as frame_system::Config>::PalletInfo::name::<P>(), Some(name));
|
||||
|
||||
Reference in New Issue
Block a user