fix: Resolve cargo clippy errors and add CI workflow plan
## Changes
### Clippy Fixes
- Fixed deprecated `cargo_bin` usage in 27 test files (added #![allow(deprecated)])
- Fixed uninlined_format_args in zombienet-sdk-tests
- Fixed subxt API changes in revive/rpc/tests.rs (fetch signature, StorageValue)
- Fixed dead_code warnings in validator-pool and identity-kyc mocks
- Fixed field name `i` -> `_i` in tasks example
### CI Infrastructure
- Added .claude/WORKFLOW_PLAN.md for tracking CI fix progress
- Updated lychee.toml and taplo.toml configs
### Files Modified
- 27 test files with deprecated cargo_bin fix
- bizinikiwi/pezframe/revive/rpc/src/tests.rs (subxt API)
- pezkuwi/pezpallets/validator-pool/src/{mock,tests}.rs
- pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs
- bizinikiwi/pezframe/examples/tasks/src/tests.rs
## Status
- cargo clippy: PASSING
- Next: cargo fmt, zepter, workspace checks
This commit is contained in:
@@ -29,13 +29,13 @@ pezsp-runtime = { workspace = true }
|
||||
|
||||
pez-minimal-template-runtime = { workspace = true }
|
||||
pezkuwi-sdk = { workspace = true, features = [
|
||||
"experimental",
|
||||
"node",
|
||||
"pezsp-api",
|
||||
"pezsp-block-builder",
|
||||
"pezsp-genesis-builder",
|
||||
"pezsp-io",
|
||||
"pezsp-timestamp",
|
||||
"experimental",
|
||||
"node",
|
||||
"pezsp-api",
|
||||
"pezsp-block-builder",
|
||||
"pezsp-genesis-builder",
|
||||
"pezsp-io",
|
||||
"pezsp-timestamp",
|
||||
] }
|
||||
|
||||
[build-dependencies]
|
||||
@@ -45,6 +45,6 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
|
||||
default = ["std"]
|
||||
std = ["pez-minimal-template-runtime/std", "pezkuwi-sdk/std"]
|
||||
runtime-benchmarks = [
|
||||
"pez-minimal-template-runtime/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pez-minimal-template-runtime/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -19,8 +19,8 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
pezkuwi-sdk = { workspace = true, default-features = false, features = [
|
||||
"experimental",
|
||||
"runtime",
|
||||
"experimental",
|
||||
"runtime",
|
||||
] }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
|
||||
@@ -16,18 +16,18 @@ workspace = true
|
||||
[dependencies]
|
||||
codec = { workspace = true }
|
||||
pezkuwi-sdk = { workspace = true, features = [
|
||||
"pezsp-api",
|
||||
"pezsp-keyring",
|
||||
"pezpallet-balances",
|
||||
"pezpallet-sudo",
|
||||
"pezpallet-timestamp",
|
||||
"pezpallet-transaction-payment",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api",
|
||||
"runtime",
|
||||
"pezpallet-balances",
|
||||
"pezpallet-sudo",
|
||||
"pezpallet-timestamp",
|
||||
"pezpallet-transaction-payment",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api",
|
||||
"pezsp-api",
|
||||
"pezsp-keyring",
|
||||
"runtime",
|
||||
] }
|
||||
scale-info = { workspace = true }
|
||||
serde_json = { workspace = true, default-features = false, features = [
|
||||
"alloc",
|
||||
"alloc",
|
||||
] }
|
||||
|
||||
# local pezpallet templates
|
||||
@@ -35,19 +35,19 @@ pezpallet-minimal-template = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
pezkuwi-sdk = { optional = true, workspace = true, features = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bizinikiwi-wasm-builder",
|
||||
] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezpallet-minimal-template/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"codec/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"pezpallet-minimal-template/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezpallet-minimal-template/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pezpallet-minimal-template/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
[toolchain]
|
||||
channel = "stable"
|
||||
components = [
|
||||
"cargo",
|
||||
"clippy",
|
||||
"rust-analyzer",
|
||||
"rust-src",
|
||||
"rust-std",
|
||||
"rustc",
|
||||
"rustc-dev",
|
||||
"rustfmt",
|
||||
"cargo",
|
||||
"clippy",
|
||||
"rust-analyzer",
|
||||
"rust-src",
|
||||
"rust-std",
|
||||
"rustc",
|
||||
"rustc-dev",
|
||||
"rustfmt",
|
||||
]
|
||||
targets = ["wasm32-unknown-unknown"]
|
||||
profile = "minimal"
|
||||
|
||||
@@ -52,11 +52,11 @@ pezsp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-timestamp = { workspace = true, default-features = true }
|
||||
|
||||
# frame and pallets
|
||||
bizinikiwi-frame-rpc-system = { workspace = true, default-features = true }
|
||||
pezframe-metadata-hash-extension = { workspace = true, default-features = true }
|
||||
pezframe-system = { workspace = true, default-features = true }
|
||||
pezpallet-transaction-payment = { workspace = true, default-features = true }
|
||||
pezpallet-transaction-payment-rpc = { workspace = true, default-features = true }
|
||||
bizinikiwi-frame-rpc-system = { workspace = true, default-features = true }
|
||||
|
||||
# These dependencies are used for runtime benchmarking
|
||||
pezframe-benchmarking-cli = { workspace = true, default-features = true }
|
||||
@@ -72,41 +72,41 @@ default = ["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",
|
||||
"pezframe-metadata-hash-extension/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment-rpc/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezsc-basic-authorship/runtime-benchmarks",
|
||||
"pezsc-cli/runtime-benchmarks",
|
||||
"pezsc-client-api/runtime-benchmarks",
|
||||
"pezsc-consensus-aura/runtime-benchmarks",
|
||||
"pezsc-consensus-grandpa/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsc-network/runtime-benchmarks",
|
||||
"pezsc-offchain/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsc-transaction-pool-api/runtime-benchmarks",
|
||||
"pezsc-transaction-pool/runtime-benchmarks",
|
||||
"pez-solochain-template-runtime/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-genesis-builder/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
"bizinikiwi-frame-rpc-system/runtime-benchmarks",
|
||||
"bizinikiwi-frame-rpc-system/runtime-benchmarks",
|
||||
"pez-solochain-template-runtime/runtime-benchmarks",
|
||||
"pezframe-benchmarking-cli/runtime-benchmarks",
|
||||
"pezframe-metadata-hash-extension/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment-rpc/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezsc-basic-authorship/runtime-benchmarks",
|
||||
"pezsc-cli/runtime-benchmarks",
|
||||
"pezsc-client-api/runtime-benchmarks",
|
||||
"pezsc-consensus-aura/runtime-benchmarks",
|
||||
"pezsc-consensus-grandpa/runtime-benchmarks",
|
||||
"pezsc-consensus/runtime-benchmarks",
|
||||
"pezsc-executor/runtime-benchmarks",
|
||||
"pezsc-network/runtime-benchmarks",
|
||||
"pezsc-offchain/runtime-benchmarks",
|
||||
"pezsc-service/runtime-benchmarks",
|
||||
"pezsc-transaction-pool-api/runtime-benchmarks",
|
||||
"pezsc-transaction-pool/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-blockchain/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-genesis-builder/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-timestamp/runtime-benchmarks",
|
||||
]
|
||||
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
|
||||
# in the near future.
|
||||
try-runtime = [
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-transaction-payment/try-runtime",
|
||||
"pez-solochain-template-runtime/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"pez-solochain-template-runtime/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-transaction-payment/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -33,24 +33,24 @@ pezsp-runtime = { workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"scale-info/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -20,7 +20,7 @@ workspace = true
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive", "serde"], workspace = true }
|
||||
serde_json = { workspace = true, default-features = false, features = [
|
||||
"alloc",
|
||||
"alloc",
|
||||
] }
|
||||
|
||||
# frame
|
||||
@@ -71,85 +71,85 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-executive/std",
|
||||
"pezframe-metadata-hash-extension/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system-benchmarking?/std",
|
||||
"pezframe-system-rpc-runtime-api/std",
|
||||
"pezframe-system/std",
|
||||
"pezframe-try-runtime?/std",
|
||||
"pezpallet-aura/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-grandpa/std",
|
||||
"pezpallet-sudo/std",
|
||||
"pezpallet-template/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api/std",
|
||||
"pezpallet-transaction-payment/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-block-builder/std",
|
||||
"pezsp-consensus-aura/std",
|
||||
"pezsp-consensus-grandpa/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-genesis-builder/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-keyring/std",
|
||||
"pezsp-offchain/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-session/std",
|
||||
"pezsp-storage/std",
|
||||
"pezsp-transaction-pool/std",
|
||||
"pezsp-version/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-executive/std",
|
||||
"pezframe-metadata-hash-extension/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system-benchmarking?/std",
|
||||
"pezframe-system-rpc-runtime-api/std",
|
||||
"pezframe-system/std",
|
||||
"pezframe-try-runtime?/std",
|
||||
"pezpallet-aura/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-grandpa/std",
|
||||
"pezpallet-sudo/std",
|
||||
"pezpallet-template/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api/std",
|
||||
"pezpallet-transaction-payment/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-block-builder/std",
|
||||
"pezsp-consensus-aura/std",
|
||||
"pezsp-consensus-grandpa/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-genesis-builder/std",
|
||||
"pezsp-inherents/std",
|
||||
"pezsp-keyring/std",
|
||||
"pezsp-offchain/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-session/std",
|
||||
"pezsp-storage/std",
|
||||
"pezsp-transaction-pool/std",
|
||||
"pezsp-version/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-executive/runtime-benchmarks",
|
||||
"pezframe-metadata-hash-extension/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system-benchmarking/runtime-benchmarks",
|
||||
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezframe-try-runtime?/runtime-benchmarks",
|
||||
"pezpallet-aura/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-grandpa/runtime-benchmarks",
|
||||
"pezpallet-sudo/runtime-benchmarks",
|
||||
"pezpallet-template/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-consensus-grandpa/runtime-benchmarks",
|
||||
"pezsp-genesis-builder/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-offchain/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-session/runtime-benchmarks",
|
||||
"pezsp-transaction-pool/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-executive/runtime-benchmarks",
|
||||
"pezframe-metadata-hash-extension/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system-benchmarking/runtime-benchmarks",
|
||||
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezframe-try-runtime?/runtime-benchmarks",
|
||||
"pezpallet-aura/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-grandpa/runtime-benchmarks",
|
||||
"pezpallet-sudo/runtime-benchmarks",
|
||||
"pezpallet-template/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
|
||||
"pezpallet-transaction-payment/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
"pezsp-consensus-grandpa/runtime-benchmarks",
|
||||
"pezsp-genesis-builder/runtime-benchmarks",
|
||||
"pezsp-inherents/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-offchain/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-session/runtime-benchmarks",
|
||||
"pezsp-transaction-pool/runtime-benchmarks",
|
||||
"pezsp-version/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"pezframe-executive/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezframe-try-runtime/try-runtime",
|
||||
"pezpallet-aura/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-grandpa/try-runtime",
|
||||
"pezpallet-sudo/try-runtime",
|
||||
"pezpallet-template/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-transaction-payment/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"pezframe-executive/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezframe-try-runtime/try-runtime",
|
||||
"pezpallet-aura/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-grandpa/try-runtime",
|
||||
"pezpallet-sudo/try-runtime",
|
||||
"pezpallet-template/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-transaction-payment/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
# Enable the metadata hash generation.
|
||||
|
||||
@@ -39,7 +39,7 @@ fn testnet_genesis(
|
||||
.collect::<Vec<_>>(),
|
||||
},
|
||||
aura: pezpallet_aura::GenesisConfig {
|
||||
authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect::<Vec<_>>(),
|
||||
authorities: initial_authorities.iter().map(|x| x.0.clone()).collect::<Vec<_>>(),
|
||||
},
|
||||
grandpa: pezpallet_grandpa::GenesisConfig {
|
||||
authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect::<Vec<_>>(),
|
||||
|
||||
@@ -39,12 +39,17 @@ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["log/std", "pezkuwi-sdk/std", "pezsp-runtime/std", "teyrchain-template-runtime/std"]
|
||||
std = [
|
||||
"log/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"pezsp-runtime/std",
|
||||
"teyrchain-template-runtime/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"teyrchain-template-runtime/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"teyrchain-template-runtime/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"pezkuwi-sdk/try-runtime",
|
||||
"teyrchain-template-runtime/try-runtime",
|
||||
"pezkuwi-sdk/try-runtime",
|
||||
"teyrchain-template-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use pezkuwi_sdk::*;
|
||||
|
||||
use log::info;
|
||||
use pezsp_runtime;
|
||||
use pezcumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
|
||||
use pezframe_benchmarking_cli::{BenchmarkCmd, BIZINIKIWI_REFERENCE_HARDWARE};
|
||||
use pezsc_cli::{
|
||||
@@ -9,6 +8,7 @@ use pezsc_cli::{
|
||||
KeystoreParams, NetworkParams, Result, RpcEndpoint, SharedParams,
|
||||
};
|
||||
use pezsc_service::config::{BasePath, PrometheusConfig};
|
||||
use pezsp_runtime;
|
||||
use teyrchain_template_runtime::Block;
|
||||
|
||||
use crate::{
|
||||
|
||||
@@ -33,7 +33,9 @@ use pezcumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
|
||||
|
||||
// Bizinikiwi Imports
|
||||
use pezframe_benchmarking_cli::BIZINIKIWI_REFERENCE_HARDWARE;
|
||||
use pezkuwi_sdk::pezsc_network::PeerId;
|
||||
use pezkuwi_sdk::{
|
||||
pezsc_network::PeerId, pezsp_api::ProvideRuntimeApi, pezsp_keystore::KeystorePtr,
|
||||
};
|
||||
use pezsc_client_api::Backend;
|
||||
use pezsc_consensus::ImportQueue;
|
||||
use pezsc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
|
||||
@@ -41,8 +43,6 @@ use pezsc_network::{NetworkBackend, NetworkBlock};
|
||||
use pezsc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
|
||||
use pezsc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
|
||||
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
|
||||
use pezkuwi_sdk::pezsp_api::ProvideRuntimeApi;
|
||||
use pezkuwi_sdk::pezsp_keystore::KeystorePtr;
|
||||
use prometheus_endpoint::Registry;
|
||||
|
||||
#[docify::export(wasm_executor)]
|
||||
|
||||
@@ -21,8 +21,8 @@ codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
frame = { workspace = true, default-features = false, features = [
|
||||
"experimental",
|
||||
"runtime",
|
||||
"experimental",
|
||||
"runtime",
|
||||
] }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -23,7 +23,7 @@ hex-literal = { optional = true, workspace = true, default-features = true }
|
||||
log = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
serde_json = { workspace = true, default-features = false, features = [
|
||||
"alloc",
|
||||
"alloc",
|
||||
] }
|
||||
smallvec = { workspace = true, default-features = true }
|
||||
|
||||
@@ -34,86 +34,92 @@ pezpallet-teyrchain-template = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
|
||||
pezkuwi-sdk = { workspace = true, default-features = false, features = [
|
||||
# Primitives needed for runtime
|
||||
"pezsp-core",
|
||||
"pezsp-consensus-aura",
|
||||
"pezsp-version",
|
||||
"pezsp-genesis-builder",
|
||||
"pezsp-keyring",
|
||||
"pezsp-api",
|
||||
"pezsp-block-builder",
|
||||
"pezsp-inherents",
|
||||
"pezsp-transaction-pool",
|
||||
"pezsp-offchain",
|
||||
"pezsp-session",
|
||||
"pezframe-support",
|
||||
"pezframe-system",
|
||||
"pezframe-executive",
|
||||
# Primitives needed for runtime
|
||||
"pezframe-executive",
|
||||
"pezframe-support",
|
||||
"pezframe-system",
|
||||
"pezsp-api",
|
||||
"pezsp-block-builder",
|
||||
"pezsp-consensus-aura",
|
||||
"pezsp-core",
|
||||
"pezsp-genesis-builder",
|
||||
"pezsp-inherents",
|
||||
"pezsp-keyring",
|
||||
"pezsp-offchain",
|
||||
"pezsp-session",
|
||||
"pezsp-transaction-pool",
|
||||
"pezsp-version",
|
||||
|
||||
"pezpallet-aura",
|
||||
"pezpallet-authorship",
|
||||
"pezpallet-balances",
|
||||
"pezpallet-message-queue",
|
||||
"pezpallet-session",
|
||||
"pezpallet-sudo",
|
||||
"pezpallet-timestamp",
|
||||
"pezpallet-transaction-payment",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api",
|
||||
"pezpallet-aura",
|
||||
"pezpallet-authorship",
|
||||
"pezpallet-balances",
|
||||
"pezpallet-message-queue",
|
||||
"pezpallet-session",
|
||||
"pezpallet-sudo",
|
||||
"pezpallet-timestamp",
|
||||
"pezpallet-transaction-payment",
|
||||
"pezpallet-transaction-payment-rpc-runtime-api",
|
||||
|
||||
"pezpallet-xcm",
|
||||
"pezkuwi-runtime-common",
|
||||
"pezkuwi-teyrchain-primitives",
|
||||
"pezstaging-xcm",
|
||||
"pezstaging-xcm-builder",
|
||||
"pezstaging-xcm-executor",
|
||||
"pezkuwi-runtime-common",
|
||||
"pezkuwi-teyrchain-primitives",
|
||||
"pezpallet-xcm",
|
||||
"pezstaging-xcm",
|
||||
"pezstaging-xcm-builder",
|
||||
"pezstaging-xcm-executor",
|
||||
|
||||
"pezcumulus-pezpallet-aura-ext",
|
||||
"pezcumulus-pezpallet-session-benchmarking",
|
||||
"pezcumulus-pezpallet-weight-reclaim",
|
||||
"pezcumulus-pezpallet-xcm",
|
||||
"pezcumulus-pezpallet-xcmp-queue",
|
||||
"pezcumulus-primitives-aura",
|
||||
"pezcumulus-primitives-core",
|
||||
"pezcumulus-primitives-utility",
|
||||
"pezpallet-collator-selection",
|
||||
"pezstaging-teyrchain-info",
|
||||
"teyrchains-common",
|
||||
"pezcumulus-pezpallet-aura-ext",
|
||||
"pezcumulus-pezpallet-session-benchmarking",
|
||||
"pezcumulus-pezpallet-weight-reclaim",
|
||||
"pezcumulus-pezpallet-xcm",
|
||||
"pezcumulus-pezpallet-xcmp-queue",
|
||||
"pezcumulus-primitives-aura",
|
||||
"pezcumulus-primitives-core",
|
||||
"pezcumulus-primitives-utility",
|
||||
"pezpallet-collator-selection",
|
||||
"pezstaging-teyrchain-info",
|
||||
"teyrchains-common",
|
||||
|
||||
"runtime",
|
||||
"runtime",
|
||||
] }
|
||||
|
||||
# Pezcumulus
|
||||
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
|
||||
|
||||
# Try runtime
|
||||
pezframe-try-runtime = { optional = true, workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
docify = { workspace = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
docify = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"log/std",
|
||||
"pezpallet-teyrchain-template/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezframe-try-runtime?/std",
|
||||
"pezkuwi-sdk/std",
|
||||
"pezpallet-teyrchain-template/std",
|
||||
"pezsp-runtime/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"hex-literal",
|
||||
"pezpallet-teyrchain-template/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"hex-literal",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezkuwi-sdk/runtime-benchmarks",
|
||||
"pezpallet-teyrchain-template/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
"pezpallet-teyrchain-template/try-runtime",
|
||||
"pezkuwi-sdk/try-runtime",
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
"pezframe-try-runtime",
|
||||
"pezframe-try-runtime/try-runtime",
|
||||
"pezkuwi-sdk/try-runtime",
|
||||
"pezpallet-teyrchain-template/try-runtime",
|
||||
]
|
||||
|
||||
# Enable the metadata hash generation.
|
||||
|
||||
@@ -70,7 +70,9 @@ fn local_testnet_genesis() -> Value {
|
||||
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
|
||||
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
|
||||
],
|
||||
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
|
||||
Sr25519Keyring::well_known()
|
||||
.map(|k: Sr25519Keyring| k.to_account_id())
|
||||
.collect(),
|
||||
Sr25519Keyring::Alice.to_account_id(),
|
||||
TEYRCHAIN_ID.into(),
|
||||
)
|
||||
@@ -83,7 +85,9 @@ fn development_config_genesis() -> Value {
|
||||
(Sr25519Keyring::Alice.to_account_id(), Sr25519Keyring::Alice.public().into()),
|
||||
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
|
||||
],
|
||||
Sr25519Keyring::well_known().map(|k: Sr25519Keyring| k.to_account_id()).collect(),
|
||||
Sr25519Keyring::well_known()
|
||||
.map(|k: Sr25519Keyring| k.to_account_id())
|
||||
.collect(),
|
||||
Sr25519Keyring::Alice.to_account_id(),
|
||||
TEYRCHAIN_ID.into(),
|
||||
)
|
||||
|
||||
@@ -65,8 +65,8 @@ mod smoke {
|
||||
r = r.with_default_args(args.into_iter().map(|arg| arg.into()).collect());
|
||||
}
|
||||
|
||||
r.with_node(|node| node.with_name("alice"))
|
||||
.with_node(|node| node.with_name("bob"))
|
||||
r.with_validator(|node| node.with_name("alice"))
|
||||
.with_validator(|node| node.with_name("bob"))
|
||||
});
|
||||
|
||||
let config = if let Some(para_cmd) = network_spec.para_cmd {
|
||||
|
||||
Reference in New Issue
Block a user