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:
Özgün Özerk
2024-07-26 16:33:59 +03:00
committed by Gustavo Gonzalez
parent 1b67c98311
commit 9b9845920c
41 changed files with 1032 additions and 492 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[package]
name = "parachain-template-runtime"
name = "generic-runtime-template"
authors = { workspace = true }
description = "A generic parachain runtime template"
edition = { workspace = true }
+1 -1
View File
@@ -1,6 +1,6 @@
// ExtBuilder impl for all runtime integration tests
use frame_support::weights::Weight;
use parachain_template_runtime::{BuildStorage, Runtime, System};
use generic_runtime_template::{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 generic_runtime_template::constants::currency::*;
#[test]
fn test_constants() {
@@ -20,7 +20,7 @@ mod constant_tests {
mod runtime_tests {
use frame_support::{pallet_prelude::Weight, traits::TypedGet, PalletId};
use parachain_template_runtime::{
use generic_runtime_template::{
configs::*,
constants::{currency::*, *},
*,
@@ -39,7 +39,7 @@ mod runtime_tests {
authoring_version: 1,
spec_version: 1,
impl_version: 0,
apis: parachain_template_runtime::apis::RUNTIME_API_VERSIONS,
apis: generic_runtime_template::apis::RUNTIME_API_VERSIONS,
transaction_version: 1,
state_version: 1,
}
@@ -222,7 +222,7 @@ mod runtime_tests {
mod xcm_tests {
use frame_support::weights::Weight;
use parachain_template_runtime::configs::xcm_config::*;
use generic_runtime_template::configs::xcm_config::*;
#[test]
fn xcm_executor_constants() {
@@ -234,6 +234,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!(
<generic_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
100
);
}
}
+1 -1
View File
@@ -2,8 +2,8 @@
mod common;
use common::*;
use frame_support::pallet_prelude::*;
use generic_runtime_template::{Runtime, RuntimeBlockWeights};
use pallet_transaction_payment::Multiplier;
use parachain_template_runtime::{Runtime, RuntimeBlockWeights};
use polkadot_runtime_common::MinimumMultiplier;
use sp_runtime::{traits::Convert, Perquintill};
+1 -1
View File
@@ -1,6 +1,6 @@
// Storage indices integration checks
use frame_support::traits::PalletInfo;
use parachain_template_runtime::{
use generic_runtime_template::{
Aura, AuraExt, Authorship, Balances, CollatorSelection, CumulusXcm, MessageQueue, Multisig,
ParachainInfo, ParachainSystem, PolkadotXcm, Proxy, Runtime, Session, Sudo, System, Timestamp,
TransactionPayment, XcmpQueue,