Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
|
||||
- [Starting a Minimal Template Chain](#starting-a-minimal-template-chain)
|
||||
|
||||
- [Minimal Template Node](#minimal-template-node)
|
||||
- [Zombienet with Minimal Template Node](#zombienet-with-minimal-template-node)
|
||||
- [Minimal Template Node](#pez-minimal-template-node)
|
||||
- [Zombienet with Minimal Template Node](#zombienet-with-pez-minimal-template-node)
|
||||
- [Connect with the PezkuwiChain-JS Apps Front-End](#connect-with-the-pezkuwi-js-apps-front-end)
|
||||
- [Takeaways](#takeaways)
|
||||
|
||||
@@ -85,19 +85,19 @@ and has as entry point the node binary:
|
||||
docker build . -t pezkuwi-sdk-minimal-template
|
||||
```
|
||||
|
||||
#### Start the `minimal-template-node`
|
||||
#### Start the `pez-minimal-template-node`
|
||||
|
||||
The `minimal-template-node` has dependency on the `minimal-template-runtime`. It will use
|
||||
the `minimal_template_runtime::WASM_BINARY` constant (which holds the WASM blob as a byte
|
||||
The `pez-minimal-template-node` has dependency on the `pez-minimal-template-runtime`. It will use
|
||||
the `pez_minimal_template_runtime::WASM_BINARY` constant (which holds the WASM blob as a byte
|
||||
array) for chain spec building, while starting.
|
||||
|
||||
```sh
|
||||
<target/release/path/to/minimal-template-node> --tmp --consensus manual-seal-3000
|
||||
<target/release/path/to/pez-minimal-template-node> --tmp --consensus manual-seal-3000
|
||||
# or via docker
|
||||
docker run --rm pezkuwi-sdk-minimal-template
|
||||
```
|
||||
|
||||
#### Zombienet with `minimal-template-node`
|
||||
#### Zombienet with `pez-minimal-template-node`
|
||||
|
||||
For this one we just need to have `zombienet` installed and run:
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "minimal-template-node"
|
||||
name = "pez-minimal-template-node"
|
||||
description = "A minimal Bizinikiwi-based Bizinikiwi node, ready for hacking."
|
||||
version = "0.0.0"
|
||||
license = "Unlicense"
|
||||
@@ -9,7 +9,7 @@ repository.workspace = true
|
||||
edition.workspace = true
|
||||
publish = false
|
||||
build = "build.rs"
|
||||
documentation = "https://docs.rs/minimal-template-node"
|
||||
documentation = "https://docs.rs/pez-minimal-template-node"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -24,7 +24,7 @@ futures = { features = ["thread-pool"], workspace = true }
|
||||
futures-timer = { workspace = true }
|
||||
jsonrpsee = { features = ["server"], workspace = true }
|
||||
|
||||
minimal-template-runtime = { workspace = true }
|
||||
pez-minimal-template-runtime = { workspace = true }
|
||||
pezkuwi-sdk = { workspace = true, features = ["experimental", "node"] }
|
||||
|
||||
[build-dependencies]
|
||||
@@ -32,8 +32,8 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["minimal-template-runtime/std", "pezkuwi-sdk/std"]
|
||||
std = ["pez-minimal-template-runtime/std", "pezkuwi-sdk/std"]
|
||||
runtime-benchmarks = [
|
||||
"minimal-template-runtime/runtime-benchmarks",
|
||||
"pez-minimal-template-runtime/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use minimal_template_runtime::WASM_BINARY;
|
||||
use pez_minimal_template_runtime::WASM_BINARY;
|
||||
use pezkuwi_sdk::{
|
||||
pezsc_service::{ChainType, Properties},
|
||||
*,
|
||||
|
||||
@@ -116,7 +116,7 @@ pub fn run() -> pezsc_cli::Result<()> {
|
||||
Some(Subcommand::ChainInfo(cmd)) => {
|
||||
let runner = cli.create_runner(cmd)?;
|
||||
runner.sync_run(|config| {
|
||||
cmd.run::<minimal_template_runtime::interface::OpaqueBlock>(&config)
|
||||
cmd.run::<pez_minimal_template_runtime::interface::OpaqueBlock>(&config)
|
||||
})
|
||||
},
|
||||
None => {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use jsonrpsee::RpcModule;
|
||||
use minimal_template_runtime::interface::{AccountId, Nonce, OpaqueBlock};
|
||||
use pez_minimal_template_runtime::interface::{AccountId, Nonce, OpaqueBlock};
|
||||
use pezkuwi_sdk::{
|
||||
pezsc_transaction_pool_api::TransactionPool,
|
||||
pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata},
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
use crate::cli::Consensus;
|
||||
use futures::FutureExt;
|
||||
use minimal_template_runtime::{interface::OpaqueBlock as Block, RuntimeApi};
|
||||
use pez_minimal_template_runtime::{interface::OpaqueBlock as Block, RuntimeApi};
|
||||
use pezkuwi_sdk::{
|
||||
pezsc_client_api::backend::Backend,
|
||||
pezsc_executor::WasmExecutor,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "minimal-template-runtime"
|
||||
name = "pez-minimal-template-runtime"
|
||||
description = "A solochain runtime template built with Bizinikiwi, part of Pezkuwi Sdk."
|
||||
version = "0.0.0"
|
||||
license = "Unlicense"
|
||||
@@ -8,7 +8,7 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
edition.workspace = true
|
||||
publish = false
|
||||
documentation = "https://docs.rs/minimal-template-runtime"
|
||||
documentation = "https://docs.rs/pez-minimal-template-runtime"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -83,8 +83,8 @@ pub mod genesis_config_presets {
|
||||
/// The runtime version.
|
||||
#[runtime_version]
|
||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: alloc::borrow::Cow::Borrowed("minimal-template-runtime"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("minimal-template-runtime"),
|
||||
spec_name: alloc::borrow::Cow::Borrowed("pez-minimal-template-runtime"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("pez-minimal-template-runtime"),
|
||||
authoring_version: 1,
|
||||
spec_version: 0,
|
||||
impl_version: 1,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[relaychain]
|
||||
chain = "dev"
|
||||
default_command = "minimal-template-node"
|
||||
default_command = "pez-minimal-template-node"
|
||||
|
||||
[[relaychain.nodes]]
|
||||
name = "alice"
|
||||
|
||||
@@ -45,7 +45,7 @@ After you build the project, you can use the following command to explore its
|
||||
parameters and subcommands:
|
||||
|
||||
```sh
|
||||
./target/release/solochain-template-node -h
|
||||
./target/release/pez-solochain-template-node -h
|
||||
```
|
||||
|
||||
You can generate and view the [Rust
|
||||
@@ -62,19 +62,19 @@ The following command starts a single-node development chain that doesn't
|
||||
persist state:
|
||||
|
||||
```sh
|
||||
./target/release/solochain-template-node --dev
|
||||
./target/release/pez-solochain-template-node --dev
|
||||
```
|
||||
|
||||
To purge the development chain's state, run the following command:
|
||||
|
||||
```sh
|
||||
./target/release/solochain-template-node purge-chain --dev
|
||||
./target/release/pez-solochain-template-node purge-chain --dev
|
||||
```
|
||||
|
||||
To start the development chain with detailed logging, run the following command:
|
||||
|
||||
```sh
|
||||
RUST_BACKTRACE=1 ./target/release/solochain-template-node -ldebug --dev
|
||||
RUST_BACKTRACE=1 ./target/release/pez-solochain-template-node -ldebug --dev
|
||||
```
|
||||
|
||||
Development chains:
|
||||
@@ -94,7 +94,7 @@ similar to the following:
|
||||
$ mkdir my-chain-state
|
||||
|
||||
// Use of that folder to store the chain state
|
||||
$ ./target/release/solochain-template-node --dev --base-path ./my-chain-state/
|
||||
$ ./target/release/pez-solochain-template-node --dev --base-path ./my-chain-state/
|
||||
|
||||
// Check the folder structure created inside the base path after running the chain
|
||||
$ ls ./my-chain-state
|
||||
@@ -153,7 +153,7 @@ following:
|
||||
`development_config` and `testnet_genesis` functions. These functions are
|
||||
used to define the genesis state for the local development chain
|
||||
configuration. These functions identify some [well-known
|
||||
accounts](https://docs.pezkuwichain.io/reference/command-line-tools/subkey/) and
|
||||
accounts](https://docs.pezkuwichain.io/reference/command-line-tools/pez_subkey/) and
|
||||
use them to configure the blockchain's initial state.
|
||||
- [`service.rs`](./node/src/service.rs): This file defines the node
|
||||
implementation. Take note of the libraries that this file imports and the
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "solochain-template-node"
|
||||
name = "pez-solochain-template-node"
|
||||
description = "A solochain node template built with Bizinikiwi, part of Pezkuwi Sdk."
|
||||
version = "0.0.0"
|
||||
license = "Unlicense"
|
||||
@@ -10,7 +10,7 @@ edition.workspace = true
|
||||
publish = false
|
||||
|
||||
build = "build.rs"
|
||||
documentation = "https://docs.rs/solochain-template-node"
|
||||
documentation = "https://docs.rs/pez-solochain-template-node"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
@@ -62,14 +62,14 @@ bizinikiwi-frame-rpc-system = { workspace = true, default-features = true }
|
||||
pezframe-benchmarking-cli = { workspace = true, default-features = true }
|
||||
|
||||
# Local Dependencies
|
||||
solochain-template-runtime = { workspace = true }
|
||||
pez-solochain-template-runtime = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
bizinikiwi-build-script-utils = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["solochain-template-runtime/std"]
|
||||
std = ["pez-solochain-template-runtime/std"]
|
||||
# Dependencies that are only required if runtime benchmarking should be build.
|
||||
runtime-benchmarks = [
|
||||
"pezframe-benchmarking-cli/runtime-benchmarks",
|
||||
@@ -89,7 +89,7 @@ runtime-benchmarks = [
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsc-transaction-pool-api/runtime-benchmarks",
|
||||
"pezsc-transaction-pool/runtime-benchmarks",
|
||||
"solochain-template-runtime/runtime-benchmarks",
|
||||
"pez-solochain-template-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
@@ -107,6 +107,6 @@ runtime-benchmarks = [
|
||||
try-runtime = [
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-transaction-payment/try-runtime",
|
||||
"solochain-template-runtime/try-runtime",
|
||||
"pez-solochain-template-runtime/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::service::FullClient;
|
||||
use runtime::{AccountId, Balance, BalancesCall, SystemCall};
|
||||
use pezsc_cli::Result;
|
||||
use pezsc_client_api::BlockBackend;
|
||||
use solochain_template_runtime as runtime;
|
||||
use pez_solochain_template_runtime as runtime;
|
||||
use pezsp_core::{Encode, Pair};
|
||||
use pezsp_inherents::{InherentData, InherentDataProvider};
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use pezsc_service::ChainType;
|
||||
use solochain_template_runtime::WASM_BINARY;
|
||||
use pez_solochain_template_runtime::WASM_BINARY;
|
||||
|
||||
/// Specialized `ChainSpec`. This is a specialization of the general Bizinikiwi ChainSpec type.
|
||||
pub type ChainSpec = pezsc_service::GenericChainSpec;
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::{
|
||||
use pezframe_benchmarking_cli::{BenchmarkCmd, ExtrinsicFactory, BIZINIKIWI_REFERENCE_HARDWARE};
|
||||
use pezsc_cli::BizinikiwiCli;
|
||||
use pezsc_service::PartialComponents;
|
||||
use solochain_template_runtime::{Block, EXISTENTIAL_DEPOSIT};
|
||||
use pez_solochain_template_runtime::{Block, EXISTENTIAL_DEPOSIT};
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
|
||||
impl BizinikiwiCli for Cli {
|
||||
@@ -187,8 +187,8 @@ pub fn run() -> pezsc_cli::Result<()> {
|
||||
match config.network.network_backend {
|
||||
pezsc_network::config::NetworkBackendType::Libp2p => service::new_full::<
|
||||
pezsc_network::NetworkWorker<
|
||||
solochain_template_runtime::opaque::Block,
|
||||
<solochain_template_runtime::opaque::Block as pezsp_runtime::traits::Block>::Hash,
|
||||
pez_solochain_template_runtime::opaque::Block,
|
||||
<pez_solochain_template_runtime::opaque::Block as pezsp_runtime::traits::Block>::Hash,
|
||||
>,
|
||||
>(config)
|
||||
.map_err(pezsc_cli::Error::Service),
|
||||
|
||||
@@ -9,7 +9,7 @@ use std::sync::Arc;
|
||||
|
||||
use jsonrpsee::RpcModule;
|
||||
use pezsc_transaction_pool_api::TransactionPool;
|
||||
use solochain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
|
||||
use pez_solochain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
|
||||
use pezsp_api::ProvideRuntimeApi;
|
||||
use pezsp_block_builder::BlockBuilder;
|
||||
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
|
||||
|
||||
@@ -7,7 +7,7 @@ use pezsc_consensus_grandpa::SharedVoterState;
|
||||
use pezsc_service::{error::Error as ServiceError, Configuration, TaskManager, WarpSyncConfig};
|
||||
use pezsc_telemetry::{Telemetry, TelemetryWorker};
|
||||
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
|
||||
use solochain_template_runtime::{self, apis::RuntimeApi, opaque::Block};
|
||||
use pez_solochain_template_runtime::{self, apis::RuntimeApi, opaque::Block};
|
||||
use pezsp_consensus_aura::sr25519::AuthorityPair as AuraPair;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "solochain-template-runtime"
|
||||
name = "pez-solochain-template-runtime"
|
||||
description = "A solochain runtime template built with Bizinikiwi, part of Pezkuwi Sdk."
|
||||
version = "0.0.0"
|
||||
license = "Unlicense"
|
||||
@@ -8,7 +8,7 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
edition.workspace = true
|
||||
publish = false
|
||||
documentation = "https://docs.rs/solochain-template-runtime"
|
||||
documentation = "https://docs.rs/pez-solochain-template-runtime"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
@@ -61,8 +61,8 @@ impl_opaque_keys! {
|
||||
// https://docs.pezkuwichain.io/main-docs/build/upgrade#runtime-versioning
|
||||
#[pezsp_version::runtime_version]
|
||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: alloc::borrow::Cow::Borrowed("solochain-template-runtime"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("solochain-template-runtime"),
|
||||
spec_name: alloc::borrow::Cow::Borrowed("pez-solochain-template-runtime"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("pez-solochain-template-runtime"),
|
||||
authoring_version: 1,
|
||||
// The version of the runtime specification. A full node will not attempt to use its native
|
||||
// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,
|
||||
|
||||
@@ -262,7 +262,7 @@ impl_runtime_apis! {
|
||||
use pezframe_benchmarking::BenchmarkList;
|
||||
use pezkuwi_sdk::pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use super::*;
|
||||
|
||||
let mut list = Vec::<BenchmarkList>::new();
|
||||
@@ -287,12 +287,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
|
||||
use pezkuwi_sdk::pezframe_support::traits::WhitelistedStorageKeys;
|
||||
let whitelist = AllPalletsWithSystem::whitelisted_storage_keys();
|
||||
|
||||
@@ -31,7 +31,7 @@ pezkuwi_sdk::pezframe_benchmarking::define_benchmarks!(
|
||||
[pezpallet_message_queue, MessageQueue]
|
||||
[pezpallet_sudo, Sudo]
|
||||
[pezpallet_collator_selection, CollatorSelection]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
|
||||
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
);
|
||||
|
||||
@@ -30,7 +30,7 @@ use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, pezstaging_xcm as
|
||||
use pezkuwi_sdk::{pezstaging_xcm_builder as xcm_builder, pezstaging_xcm_executor as xcm_executor};
|
||||
|
||||
// Bizinikiwi and Pezkuwi dependencies
|
||||
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
|
||||
use pezframe_support::{
|
||||
derive_impl,
|
||||
@@ -131,13 +131,13 @@ impl pezframe_system::Config for Runtime {
|
||||
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
|
||||
type SS58Prefix = SS58Prefix;
|
||||
/// The action to take on a Runtime Upgrade
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
type SingleBlockMigrations = SingleBlockMigrations;
|
||||
}
|
||||
|
||||
/// Configure the palelt weight reclaim tx.
|
||||
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ parameter_types! {
|
||||
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = ();
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
@@ -248,7 +248,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
type IdleMaxServiceWeight = ();
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
|
||||
|
||||
parameter_types! {
|
||||
/// The asset ID for the asset that we use to pay for message delivery fees.
|
||||
@@ -266,7 +266,7 @@ pub type PriceForSiblingTeyrchainDelivery =
|
||||
pub type PriceForParentDelivery =
|
||||
ExponentialPrice<FeeAssetId, ToParentBaseDeliveryFee, TransactionByteFee, TeyrchainSystem>;
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ChannelInfo = TeyrchainSystem;
|
||||
type VersionWrapper = ();
|
||||
|
||||
@@ -35,7 +35,7 @@ use xcm_executor::XcmExecutor;
|
||||
parameter_types! {
|
||||
pub const RelayLocation: Location = Location::parent();
|
||||
pub const RelayNetwork: Option<NetworkId> = None;
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
|
||||
// For the real deployment, it is recommended to set `RelayNetwork` according to the relay chain
|
||||
// and prepend `UniversalLocation` with `GlobalConsensus(RelayNetwork::get())`.
|
||||
pub UniversalLocation: InteriorLocation = Teyrchain(TeyrchainInfo::teyrchain_id().into()).into();
|
||||
@@ -80,7 +80,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
||||
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
|
||||
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
|
||||
// recognized.
|
||||
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
|
||||
SiblingTeyrchainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
|
||||
// Native signed account converter; this just converts an `AccountId32` origin into a normal
|
||||
// `RuntimeOrigin::Signed` origin of the same 32-byte value.
|
||||
SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>,
|
||||
@@ -201,7 +201,7 @@ impl pezpallet_xcm::Config for Runtime {
|
||||
type AuthorizedAliasConsideration = Disabled;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcm::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcm::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ pub type BlockId = generic::BlockId<Block>;
|
||||
|
||||
/// The extension to the basic transaction logic.
|
||||
#[docify::export(template_signed_extra)]
|
||||
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
|
||||
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
|
||||
Runtime,
|
||||
(
|
||||
pezframe_system::AuthorizeCall<Runtime>,
|
||||
@@ -231,7 +231,7 @@ pub(crate) use async_backing_params::*;
|
||||
|
||||
#[docify::export]
|
||||
/// Aura consensus hook
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
BLOCK_PROCESSING_VELOCITY,
|
||||
@@ -265,13 +265,13 @@ mod runtime {
|
||||
#[runtime::pezpallet_index(0)]
|
||||
pub type System = pezframe_system;
|
||||
#[runtime::pezpallet_index(1)]
|
||||
pub type TeyrchainSystem = pezcumulus_pallet_teyrchain_system;
|
||||
pub type TeyrchainSystem = pezcumulus_pezpallet_teyrchain_system;
|
||||
#[runtime::pezpallet_index(2)]
|
||||
pub type Timestamp = pezpallet_timestamp;
|
||||
#[runtime::pezpallet_index(3)]
|
||||
pub type TeyrchainInfo = teyrchain_info;
|
||||
#[runtime::pezpallet_index(4)]
|
||||
pub type WeightReclaim = pezcumulus_pallet_weight_reclaim;
|
||||
pub type WeightReclaim = pezcumulus_pezpallet_weight_reclaim;
|
||||
|
||||
// Monetary stuff.
|
||||
#[runtime::pezpallet_index(10)]
|
||||
@@ -293,15 +293,15 @@ mod runtime {
|
||||
#[runtime::pezpallet_index(23)]
|
||||
pub type Aura = pezpallet_aura;
|
||||
#[runtime::pezpallet_index(24)]
|
||||
pub type AuraExt = pezcumulus_pallet_aura_ext;
|
||||
pub type AuraExt = pezcumulus_pezpallet_aura_ext;
|
||||
|
||||
// XCM helpers.
|
||||
#[runtime::pezpallet_index(30)]
|
||||
pub type XcmpQueue = pezcumulus_pallet_xcmp_queue;
|
||||
pub type XcmpQueue = pezcumulus_pezpallet_xcmp_queue;
|
||||
#[runtime::pezpallet_index(31)]
|
||||
pub type PezkuwiXcm = pezpallet_xcm;
|
||||
#[runtime::pezpallet_index(32)]
|
||||
pub type CumulusXcm = pezcumulus_pallet_xcm;
|
||||
pub type CumulusXcm = pezcumulus_pezpallet_xcm;
|
||||
#[runtime::pezpallet_index(33)]
|
||||
pub type MessageQueue = pezpallet_message_queue;
|
||||
|
||||
@@ -311,7 +311,7 @@ mod runtime {
|
||||
}
|
||||
|
||||
#[docify::export(register_validate_block)]
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "template-zombienet-tests"
|
||||
name = "pez-template-zombienet-tests"
|
||||
description = "Zombienet test for templates."
|
||||
version = "0.0.0"
|
||||
license = "Unlicense"
|
||||
@@ -8,7 +8,7 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
edition.workspace = true
|
||||
publish = false
|
||||
documentation = "https://docs.rs/template-zombienet-tests"
|
||||
documentation = "https://docs.rs/pez-template-zombienet-tests"
|
||||
|
||||
[dependencies]
|
||||
anyhow = { workspace = true }
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//! templates.
|
||||
//!
|
||||
//! To start all tests here we should run:
|
||||
//! `cargo test -p template-zombienet-tests --features zombienet`
|
||||
//! `cargo test -p pez-template-zombienet-tests --features zombienet`
|
||||
|
||||
#[cfg(feature = "zombienet")]
|
||||
mod smoke {
|
||||
@@ -121,7 +121,7 @@ mod smoke {
|
||||
);
|
||||
|
||||
let config = get_config(NetworkSpec {
|
||||
relaychain_cmd: "solochain-template-node",
|
||||
relaychain_cmd: "pez-solochain-template-node",
|
||||
..Default::default()
|
||||
})?;
|
||||
|
||||
@@ -144,7 +144,7 @@ mod smoke {
|
||||
);
|
||||
|
||||
let config = get_config(NetworkSpec {
|
||||
relaychain_cmd: "minimal-template-node",
|
||||
relaychain_cmd: "pez-minimal-template-node",
|
||||
..Default::default()
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user