Update documentation and templates for Pezkuwi branding

This commit is contained in:
2026-01-17 23:19:40 +03:00
parent d839cbd92b
commit 9bd688a742
172 changed files with 12903 additions and 6604 deletions
+5651 -2590
View File
File diff suppressed because it is too large Load Diff
+114 -114
View File
@@ -28,119 +28,119 @@ serde_derive = { version = "1.0.121", default-features = false }
serde_json = { version = "1.0.121", default-features = false }
smallvec = "1.11.0"
pezframe-benchmarking = { package = "frame-benchmarking", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-benchmarking-cli = { package = "frame-benchmarking-cli", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-executive = { package = "frame-executive", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-metadata-hash-extension = { package = "frame-metadata-hash-extension", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-support = { package = "frame-support", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system = { package = "frame-system", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system-benchmarking = { package = "frame-system-benchmarking", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system-rpc-runtime-api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-try-runtime = { package = "frame-try-runtime", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
openzeppelin-pezpallet-abstractions = { package = "openzeppelin-pallet-abstractions", git = "https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions", branch = "polkadot-stable2503", default-features = false }
openzeppelin-pezpallet-abstractions-proc = { package = "openzeppelin-pallet-abstractions-proc", git = "https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions", branch = "polkadot-stable2503", default-features = false }
pezpallet-asset-tx-payment = { package = "pallet-asset-tx-payment", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-assets = { package = "pallet-assets", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-aura = { package = "pallet-aura", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-authorship = { package = "pallet-authorship", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-balances = { package = "pallet-balances", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-conviction-voting = { package = "pallet-conviction-voting", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-membership = { package = "pallet-membership", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-message-queue = { package = "pallet-message-queue", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-multisig = { package = "pallet-multisig", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-preimage = { package = "pallet-preimage", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-proxy = { package = "pallet-proxy", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-referenda = { package = "pallet-referenda", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-scheduler = { package = "pallet-scheduler", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-session = { package = "pallet-session", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-sudo = { package = "pallet-sudo", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment = { package = "pallet-transaction-payment", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment-rpc = { package = "pallet-transaction-payment-rpc", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rpc-runtime-api", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-utility = { package = "pallet-utility", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-whitelist = { package = "pallet-whitelist", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-chain-spec = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-network = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-service = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-sysinfo = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-state-machine = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-std = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
sp-version = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-build-script-utils = { package = "substrate-build-script-utils", git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503" }
bizinikiwi-pezframe-rpc-system = { package = "substrate-frame-rpc-system", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-wasm-builder = { package = "substrate-wasm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-benchmarking = { package = "frame-benchmarking", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-benchmarking-cli = { package = "frame-benchmarking-cli", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-executive = { package = "frame-executive", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-metadata-hash-extension = { package = "frame-metadata-hash-extension", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-support = { package = "frame-support", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system = { package = "frame-system", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system-benchmarking = { package = "frame-system-benchmarking", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-system-rpc-runtime-api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezframe-try-runtime = { package = "frame-try-runtime", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
openzeppelin-pallet-abstractions = { git = "https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions", branch = "polkadot-stable2503", default-features = false }
openzeppelin-pallet-abstractions-proc = { git = "https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions", branch = "polkadot-stable2503", default-features = false }
pezpallet-asset-tx-payment = { package = "pallet-asset-tx-payment", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-assets = { package = "pallet-assets", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-aura = { package = "pallet-aura", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-authorship = { package = "pallet-authorship", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-balances = { package = "pallet-balances", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-conviction-voting = { package = "pallet-conviction-voting", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-membership = { package = "pallet-membership", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-message-queue = { package = "pallet-message-queue", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-multisig = { package = "pallet-multisig", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-preimage = { package = "pallet-preimage", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-proxy = { package = "pallet-proxy", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-referenda = { package = "pallet-referenda", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-scheduler = { package = "pallet-scheduler", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-session = { package = "pallet-session", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-sudo = { package = "pallet-sudo", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-timestamp = { package = "pallet-timestamp", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment = { package = "pallet-transaction-payment", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment-rpc = { package = "pallet-transaction-payment-rpc", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rpc-runtime-api", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-treasury = { package = "pallet-treasury", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-utility = { package = "pallet-utility", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-whitelist = { package = "pallet-whitelist", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-basic-authorship = { package = "sc-basic-authorship", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-chain-spec = { package = "sc-chain-spec", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-cli = { package = "sc-cli", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-client-api = { package = "sc-client-api", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-consensus = { package = "sc-consensus", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-consensus-aura = { package = "sc-consensus-aura", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-consensus-slots = { package = "sc-consensus-slots", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-executor = { package = "sc-executor", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-network = { package = "sc-network", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-network-sync = { package = "sc-network-sync", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-offchain = { package = "sc-offchain", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-rpc = { package = "sc-rpc", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-service = { package = "sc-service", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-sysinfo = { package = "sc-sysinfo", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-telemetry = { package = "sc-telemetry", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-tracing = { package = "sc-tracing", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-transaction-pool = { package = "sc-transaction-pool", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsc-transaction-pool-api = { package = "sc-transaction-pool-api", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-api = { package = "sp-api", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-arithmetic = { package = "sp-arithmetic", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-block-builder = { package = "sp-block-builder", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-blockchain = { package = "sp-blockchain", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-consensus-aura = { package = "sp-consensus-aura", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-core = { package = "sp-core", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-genesis-builder = { package = "sp-genesis-builder", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-inherents = { package = "sp-inherents", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-io = { package = "sp-io", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-keyring = { package = "sp-keyring", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-keystore = { package = "sp-keystore", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-offchain = { package = "sp-offchain", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-runtime = { package = "sp-runtime", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-session = { package = "sp-session", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-state-machine = { package = "sp-state-machine", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-std = { package = "sp-std", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-timestamp = { package = "sp-timestamp", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-tracing = { package = "sp-tracing", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-transaction-pool = { package = "sp-transaction-pool", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezsp-version = { package = "sp-version", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-build-script-utils = { package = "substrate-build-script-utils", git = "https://github.com/pezkuwichain/pezkuwi-sdk", tag = "polkadot-stable2503" }
bizinikiwi-pezframe-rpc-system = { package = "substrate-frame-rpc-system", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
bizinikiwi-wasm-builder = { package = "substrate-wasm-builder", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
# Pezkuwi
pezpallet-xcm = { package = "pallet-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-cli = { package = "polkadot-cli", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-teyrchain-primitives = { package = "polkadot-parachain-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-primitives = { package = "polkadot-primitives", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-runtime-common = { package = "polkadot-runtime-common", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-runtime-teyrchains = { package = "polkadot-runtime-parachains", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm = { package = "staging-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
xcm-pez-simulator = { package = "xcm-simulator", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-xcm = { package = "pallet-xcm", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-cli = { package = "polkadot-cli", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-teyrchain-primitives = { package = "polkadot-parachain-primitives", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-primitives = { package = "polkadot-primitives", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-runtime-common = { package = "polkadot-runtime-common", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezkuwi-runtime-teyrchains = { package = "polkadot-runtime-parachains", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm = { package = "staging-xcm", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
staging-xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
xcm-pez-simulator = { package = "xcm-simulator", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
# Cumulus
assets-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-teyrchain-inherent = { package = "cumulus-client-parachain-inherent", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-aura-ext = { package = "cumulus-pallet-aura-ext", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-teyrchain-system = { package = "cumulus-pallet-parachain-system", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-session-benchmarking = { package = "cumulus-pallet-session-benchmarking", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-weight-reclaim = { package = "cumulus-pallet-weight-reclaim", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-xcm = { package = "cumulus-pallet-xcm", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-pezpallet-xcmp-queue = { package = "cumulus-pallet-xcmp-queue", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-primitives-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-primitives-teyrchain-inherent = { package = "cumulus-primitives-parachain-inherent", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
cumulus-test-relay-sproof-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-collator-selection = { package = "pallet-collator-selection", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
teyrchain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
teyrchains-common = { package = "parachains-common", git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
# Pezpezcumulus
assets-common = { git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-cli = { package = "cumulus-client-cli", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-collator = { package = "cumulus-client-collator", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-consensus-aura = { package = "cumulus-client-consensus-aura", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-consensus-common = { package = "cumulus-client-consensus-common", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-consensus-proposer = { package = "cumulus-client-consensus-proposer", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-teyrchain-inherent = { package = "cumulus-client-parachain-inherent", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-client-service = { package = "cumulus-client-service", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-aura-ext = { package = "cumulus-pallet-aura-ext", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-teyrchain-system = { package = "cumulus-pallet-parachain-system", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-session-benchmarking = { package = "cumulus-pallet-session-benchmarking", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-weight-reclaim = { package = "cumulus-pallet-weight-reclaim", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-xcm = { package = "cumulus-pallet-xcm", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-pezpallet-xcmp-queue = { package = "cumulus-pallet-xcmp-queue", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-primitives-aura = { package = "cumulus-primitives-aura", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-primitives-core = { package = "cumulus-primitives-core", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-primitives-teyrchain-inherent = { package = "cumulus-primitives-parachain-inherent", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-primitives-timestamp = { package = "cumulus-primitives-timestamp", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-primitives-utility = { package = "cumulus-primitives-utility", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-relay-chain-interface = { package = "cumulus-relay-chain-interface", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezcumulus-test-relay-sproof-builder = { package = "cumulus-test-relay-sproof-builder", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
pezpallet-collator-selection = { package = "pallet-collator-selection", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
teyrchain-info = { package = "staging-parachain-info", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
teyrchains-common = { package = "parachains-common", git = "https://github.com/pezkuwichain/pezkuwi-sdk", default-features = false, tag = "polkadot-stable2503" }
# EVM
ethereum = { git = "https://github.com/rust-ethereum/ethereum", rev = "bbb544622208ef6e9890a2dbc224248f6dd13318" }
@@ -159,10 +159,10 @@ fp-evm = { git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-
fp-rpc = { git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false }
fp-self-contained = { git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false }
pezpallet-base-fee = { package = "pallet-base-fee", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false }
pezpallet-ethereum = { package = "pallet-ethereum", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false, features = [
pezpallet-ethereum = { package = "pallet-ethereum", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false, features = [
"forbid-evm-reentrancy",
] }
pezpallet-evm = { package = "pallet-evm", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false, features = [
pezpallet-evm = { package = "pallet-evm", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false, features = [
"forbid-evm-reentrancy",
] }
pezpallet-evm-chain-id = { package = "pallet-evm-chain-id", git = "https://github.com/OpenZeppelin/frontier", branch = "polkadot-stable2503", default-features = false }
@@ -185,7 +185,7 @@ pezpallet-xcm-weight-trader = { package = "pallet-xcm-weight-trader", git = "ht
xcm-primitives = { git = "https://github.com/OpenZeppelin/moonbeam.git", branch = "polkadot-stable2503", default-features = false }
# Fuzzer
bizinikiwi-runtimes-fuzzers = { package = "substrate-runtimes-fuzzers", git = "https://github.com/srlabs/bizinikiwi-runtime-fuzzer.git", default-features = false, tag = "polkadot-v1.12.0" }
bizinikiwi-runtimes-fuzzers = { package = "substrate-runtimes-fuzzers", git = "https://github.com/srlabs/bizinikiwi-runtime-fuzzer.git", default-features = false, tag = "pezkuwi-v1.12.0" }
ziggy = { version = "0.8", default-features = false }
# Moonkit
@@ -201,7 +201,7 @@ pezpallet-cc-authorities-noting = { package = "pallet-cc-authorities-noting", g
# Tanssi
tc-consensus = { git = "https://github.com/KitHat/tanssi", branch = "polkadot-stable2503", default-features = false }
# [patch."https://github.com/paritytech/pezkuwi-sdk"]
# [patch."https://github.com/pezkuwichain/pezkuwi-sdk"]
# Make pezpallet-migrations optional to avoid the error
# pezpallet-migrations = { version = "=9.0.0", optional = true }
+42 -42
View File
@@ -28,34 +28,34 @@ evm-runtime-template = { path = "../runtime" }
pezframe-benchmarking = { workspace = true }
pezframe-benchmarking-cli = { workspace = true }
pezpallet-transaction-payment-rpc = { workspace = true }
sc-basic-authorship = { workspace = true }
sc-chain-spec = { workspace = true }
sc-cli = { workspace = true }
sc-client-api = { workspace = true }
sc-consensus = { workspace = true }
sc-consensus-aura = { workspace = true }
sc-consensus-slots = { workspace = true }
sc-executor = { workspace = true }
sc-network = { workspace = true }
sc-network-sync = { workspace = true }
sc-offchain = { workspace = true }
sc-rpc = { workspace = true }
sc-service = { workspace = true }
sc-sysinfo = { workspace = true }
sc-telemetry = { workspace = true }
sc-tracing = { workspace = true }
sc-transaction-pool = { workspace = true }
sc-transaction-pool-api = { workspace = true }
sp-api = { workspace = true }
sp-block-builder = { workspace = true }
sp-blockchain = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-core = { workspace = true }
sp-inherents = { workspace = true }
sp-io = { workspace = true }
sp-keystore = { workspace = true }
sp-runtime = { workspace = true }
sp-timestamp = { workspace = true }
pezsc-basic-authorship = { workspace = true }
pezsc-chain-spec = { workspace = true }
pezsc-cli = { workspace = true }
pezsc-client-api = { workspace = true }
pezsc-consensus = { workspace = true }
pezsc-consensus-aura = { workspace = true }
pezsc-consensus-slots = { workspace = true }
pezsc-executor = { workspace = true }
pezsc-network = { workspace = true }
pezsc-network-sync = { workspace = true }
pezsc-offchain = { workspace = true }
pezsc-rpc = { workspace = true }
pezsc-service = { workspace = true }
pezsc-sysinfo = { workspace = true }
pezsc-telemetry = { workspace = true }
pezsc-tracing = { workspace = true }
pezsc-transaction-pool = { workspace = true }
pezsc-transaction-pool-api = { workspace = true }
pezsp-api = { workspace = true }
pezsp-block-builder = { workspace = true }
pezsp-blockchain = { workspace = true }
pezsp-consensus-aura = { workspace = true }
pezsp-core = { workspace = true }
pezsp-inherents = { workspace = true }
pezsp-io = { workspace = true }
pezsp-keystore = { workspace = true }
pezsp-runtime = { workspace = true }
pezsp-timestamp = { workspace = true }
bizinikiwi-pezframe-rpc-system = { workspace = true }
bizinikiwi-prometheus-endpoint = { workspace = true }
@@ -64,19 +64,19 @@ pezkuwi-cli = { workspace = true }
pezkuwi-primitives = { workspace = true }
staging-xcm = { workspace = true }
# Cumulus
# Pezpezcumulus
color-print = { workspace = true }
cumulus-client-cli = { workspace = true }
cumulus-client-collator = { workspace = true }
cumulus-client-consensus-aura = { workspace = true }
cumulus-client-consensus-common = { workspace = true }
cumulus-client-consensus-proposer = { workspace = true }
cumulus-client-teyrchain-inherent = { workspace = true }
cumulus-client-service = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-teyrchain-inherent = { workspace = true }
cumulus-relay-chain-interface = { workspace = true }
cumulus-test-relay-sproof-builder = { workspace = true }
pezcumulus-client-cli = { workspace = true }
pezcumulus-client-collator = { workspace = true }
pezcumulus-client-consensus-aura = { workspace = true }
pezcumulus-client-consensus-common = { workspace = true }
pezcumulus-client-consensus-proposer = { workspace = true }
pezcumulus-client-teyrchain-inherent = { workspace = true }
pezcumulus-client-service = { workspace = true }
pezcumulus-primitives-core = { workspace = true }
pezcumulus-primitives-teyrchain-inherent = { workspace = true }
pezcumulus-relay-chain-interface = { workspace = true }
pezcumulus-test-relay-sproof-builder = { workspace = true }
# Frontier
fc-api = { workspace = true }
@@ -101,12 +101,12 @@ bizinikiwi-build-script-utils = { workspace = true }
[features]
default = []
async-backing = []
runtime-benchmarks = [ "evm-runtime-template/runtime-benchmarks", "pezframe-benchmarking-cli/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezkuwi-cli/runtime-benchmarks", "pezkuwi-primitives/runtime-benchmarks", "sc-service/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "tc-consensus/runtime-benchmarks" ]
runtime-benchmarks = [ "evm-runtime-template/runtime-benchmarks", "pezframe-benchmarking-cli/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezkuwi-cli/runtime-benchmarks", "pezkuwi-primitives/runtime-benchmarks", "pezsc-service/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", "tc-consensus/runtime-benchmarks" ]
tanssi = []
try-runtime = [
"evm-runtime-template/try-runtime",
"pezkuwi-cli/try-runtime",
"sp-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
txpool = [ "fc-rpc/txpool" ]
+11 -11
View File
@@ -1,25 +1,25 @@
use std::collections::BTreeMap;
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use evm_runtime_template::{AccountId, OpenZeppelinPrecompiles as Precompiles, Runtime};
#[cfg(not(feature = "tanssi"))]
use evm_runtime_template::{AuraId, Signature};
use fp_evm::GenesisAccount;
use hex_literal::hex;
use log::error;
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::ChainType;
use pezsc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use pezsc_service::ChainType;
use serde::{Deserialize, Serialize};
use sp_core::H160;
use pezsp_core::H160;
#[cfg(not(feature = "tanssi"))]
use sp_core::{ecdsa, Pair, Public};
use pezsp_core::{ecdsa, Pair, Public};
#[cfg(not(feature = "tanssi"))]
use sp_runtime::traits::{IdentifyAccount, Verify};
use pezsp_runtime::traits::{IdentifyAccount, Verify};
use crate::contracts::{parse_contracts, ContractsPath};
/// Specialized `ChainSpec` for the normal teyrchain runtime.
pub type ChainSpec = sc_service::GenericChainSpec<Extensions>;
pub type ChainSpec = pezsc_service::GenericChainSpec<Extensions>;
/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
@@ -44,8 +44,8 @@ pub struct Extensions {
impl Extensions {
/// Try to get the extension from the given `ChainSpec`.
pub fn try_get(chain_spec: &dyn sc_service::ChainSpec) -> Option<&Self> {
sc_chain_spec::get_extension(chain_spec.extensions())
pub fn try_get(chain_spec: &dyn pezsc_service::ChainSpec) -> Option<&Self> {
pezsc_chain_spec::get_extension(chain_spec.extensions())
}
}
@@ -81,7 +81,7 @@ pub fn template_session_keys(keys: AuraId) -> evm_runtime_template::SessionKeys
pub fn development_config(contracts_path: ContractsPath) -> ChainSpec {
// Give your base currency a unit name and decimal places
let mut properties = sc_chain_spec::Properties::new();
let mut properties = pezsc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "UNIT".into());
properties.insert("tokenDecimals".into(), 12.into());
properties.insert("ss58Format".into(), 42.into());
@@ -129,7 +129,7 @@ pub fn development_config(contracts_path: ContractsPath) -> ChainSpec {
pub fn local_testnet_config(contracts_path: ContractsPath) -> ChainSpec {
// Give your base currency a unit name and decimal places
let mut properties = sc_chain_spec::Properties::new();
let mut properties = pezsc_chain_spec::Properties::new();
properties.insert("tokenSymbol".into(), "UNIT".into());
properties.insert("tokenDecimals".into(), 12.into());
properties.insert("ss58Format".into(), 42.into());
+14 -14
View File
@@ -1,7 +1,7 @@
use std::path::PathBuf;
use sc_cli::{ChainSpec, Result};
use sc_network::config::NetworkConfiguration;
use pezsc_cli::{ChainSpec, Result};
use pezsc_network::config::NetworkConfiguration;
use crate::{contracts::ContractsPath, eth::EthConfiguration};
@@ -12,31 +12,31 @@ pub enum Subcommand {
BuildSpec(ExtendedBuildSpecCmd),
/// Validate blocks.
CheckBlock(sc_cli::CheckBlockCmd),
CheckBlock(pezsc_cli::CheckBlockCmd),
/// Export blocks.
ExportBlocks(sc_cli::ExportBlocksCmd),
ExportBlocks(pezsc_cli::ExportBlocksCmd),
/// Export the state of a given block into a chain spec.
ExportState(sc_cli::ExportStateCmd),
ExportState(pezsc_cli::ExportStateCmd),
/// Import blocks.
ImportBlocks(sc_cli::ImportBlocksCmd),
ImportBlocks(pezsc_cli::ImportBlocksCmd),
/// Revert the chain to a previous state.
Revert(sc_cli::RevertCmd),
Revert(pezsc_cli::RevertCmd),
/// Remove the whole chain.
PurgeChain(cumulus_client_cli::PurgeChainCmd),
PurgeChain(pezcumulus_client_cli::PurgeChainCmd),
/// Export the genesis head data of the teyrchain.
///
/// Head data is the encoded block header.
#[command(alias = "export-genesis-state")]
ExportGenesisHead(cumulus_client_cli::ExportGenesisHeadCommand),
ExportGenesisHead(pezcumulus_client_cli::ExportGenesisHeadCommand),
/// Export the genesis wasm of the teyrchain.
ExportGenesisWasm(cumulus_client_cli::ExportGenesisWasmCommand),
ExportGenesisWasm(pezcumulus_client_cli::ExportGenesisWasmCommand),
/// Sub-commands concerned with benchmarking.
/// The pezpallet benchmarking moved to the `pezpallet` sub-command.
@@ -44,7 +44,7 @@ pub enum Subcommand {
Benchmark(pezframe_benchmarking_cli::BenchmarkCmd),
/// Try-runtime has migrated to a standalone
/// [CLI](<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
/// [CLI](<https://github.com/pezkuwichain/try-runtime-cli>). The subcommand exists as a stub and
/// deprecation notice. It will be removed entirely some time after January
/// 2024.
TryRuntime,
@@ -67,7 +67,7 @@ impl Subcommand {
#[derive(Debug, Clone, clap::Parser)]
pub struct ExtendedBuildSpecCmd {
#[clap(flatten)]
pub cmd: sc_cli::BuildSpecCmd,
pub cmd: pezsc_cli::BuildSpecCmd,
/// Path to a directory that contains precompiled contracts.
/// A directory should contain file `contracts.json`.
@@ -116,7 +116,7 @@ pub struct Cli {
pub subcommand: Option<Subcommand>,
#[command(flatten)]
pub run: cumulus_client_cli::RunCmd,
pub run: pezcumulus_client_cli::RunCmd,
/// Disable automatic hardware benchmarks.
///
@@ -152,7 +152,7 @@ impl RelayChainCli {
/// Parse the relay chain CLI parameters using the para chain
/// `Configuration`.
pub fn new<'a>(
para_config: &sc_service::Configuration,
para_config: &pezsc_service::Configuration,
relay_chain_args: impl Iterator<Item = &'a String>,
) -> Self {
let extension = crate::chain_spec::Extensions::try_get(&*para_config.chain_spec);
+21 -21
View File
@@ -1,14 +1,14 @@
use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use cumulus_primitives_core::ParaId;
use pezcumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use pezcumulus_primitives_core::ParaId;
use evm_runtime_template::Block;
use pezframe_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
use log::info;
use sc_cli::{
use pezsc_cli::{
ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams,
NetworkParams, Result, RpcEndpoint, SharedParams, BizinikiwiCli,
};
use sc_service::config::{BasePath, PrometheusConfig};
use sp_runtime::traits::AccountIdConversion;
use pezsc_service::config::{BasePath, PrometheusConfig};
use pezsp_runtime::traits::AccountIdConversion;
use crate::{
chain_spec,
@@ -52,14 +52,14 @@ impl BizinikiwiCli for Cli {
}
fn support_url() -> String {
"https://github.com/paritytech/pezkuwi-sdk/issues/new".into()
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/new".into()
}
fn copyright_start_year() -> i32 {
2020
}
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn pezsc_service::ChainSpec>, String> {
load_spec(
id,
self.subcommand.as_ref().map(Subcommand::contract_directory).unwrap_or_default(),
@@ -90,14 +90,14 @@ impl BizinikiwiCli for RelayChainCli {
}
fn support_url() -> String {
"https://github.com/paritytech/pezkuwi-sdk/issues/new".into()
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/new".into()
}
fn copyright_start_year() -> i32 {
2020
}
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn pezsc_service::ChainSpec>, String> {
pezkuwi_cli::Cli::from_iter([RelayChainCli::executable_name()].iter()).load_spec(id)
}
}
@@ -186,9 +186,9 @@ pub fn run() -> Result<()> {
let runner = cli.create_runner(cmd)?;
// Switch on the concrete benchmark sub-command-
match cmd {
BenchmarkCmd::Pallet(cmd) =>
BenchmarkCmd::Pezpallet(cmd) =>
if cfg!(feature = "runtime-benchmarks") {
runner.sync_run(|config| cmd.run_with_spec::<sp_runtime::traits::HashingFor<Block>, ReclaimHostFunctions>(Some(config.chain_spec)))
runner.sync_run(|config| cmd.run_with_spec::<pezsp_runtime::traits::HashingFor<Block>, ReclaimHostFunctions>(Some(config.chain_spec)))
} else {
Err("Benchmarking wasn't enabled when building the node. \
You can enable it with `--features runtime-benchmarks`."
@@ -200,7 +200,7 @@ pub fn run() -> Result<()> {
}),
#[cfg(not(feature = "runtime-benchmarks"))]
BenchmarkCmd::Storage(_) =>
Err(sc_cli::Error::Input(
Err(pezsc_cli::Error::Input(
"Compile with --features=runtime-benchmarks \
to enable storage benchmarks."
.into(),
@@ -220,7 +220,7 @@ pub fn run() -> Result<()> {
_ => Err("Benchmarking sub-command unsupported".into()),
}
},
Some(Subcommand::TryRuntime) => Err("The `try-runtime` subcommand has been migrated to a standalone CLI (https://github.com/paritytech/try-runtime-cli). It is no longer being maintained here and will be removed entirely some time after January 2024. Please remove this subcommand from your runtime and use the standalone CLI.".into()),
Some(Subcommand::TryRuntime) => Err("The `try-runtime` subcommand has been migrated to a standalone CLI (https://github.com/pezkuwichain/try-runtime-cli). It is no longer being maintained here and will be removed entirely some time after January 2024. Please remove this subcommand from your runtime and use the standalone CLI.".into()),
None => {
let runner = cli.create_runner(&cli.run.normalize())?;
let collator_options = cli.run.collator_options();
@@ -229,7 +229,7 @@ pub fn run() -> Result<()> {
let hwbench = (!cli.no_hardware_benchmarks)
.then_some(config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path), &SUBSTRATE_REFERENCE_HARDWARE)
pezsc_sysinfo::gather_hwbench(Some(database_path), &SUBSTRATE_REFERENCE_HARDWARE)
}))
.flatten();
@@ -308,7 +308,7 @@ impl CliConfiguration<Self> for RelayChainCli {
Ok(self.shared_params().base_path()?.or_else(|| self.base_path.clone().map(Into::into)))
}
fn rpc_addr(&self, default_listen_port: u16) -> sc_cli::Result<Option<Vec<RpcEndpoint>>> {
fn rpc_addr(&self, default_listen_port: u16) -> pezsc_cli::Result<Option<Vec<RpcEndpoint>>> {
self.base.base.rpc_addr(default_listen_port)
}
@@ -322,7 +322,7 @@ impl CliConfiguration<Self> for RelayChainCli {
fn init<F>(&self, _support_url: &String, _impl_version: &String, _logger_hook: F) -> Result<()>
where
F: FnOnce(&mut sc_cli::LoggerBuilder),
F: FnOnce(&mut pezsc_cli::LoggerBuilder),
{
unreachable!("PezkuwiCli is never initialized; qed");
}
@@ -333,11 +333,11 @@ impl CliConfiguration<Self> for RelayChainCli {
Ok(if chain_id.is_empty() { self.chain_id.clone().unwrap_or_default() } else { chain_id })
}
fn role(&self, is_dev: bool) -> Result<sc_service::Role> {
fn role(&self, is_dev: bool) -> Result<pezsc_service::Role> {
self.base.base.role(is_dev)
}
fn transaction_pool(&self, is_dev: bool) -> Result<sc_service::config::TransactionPoolOptions> {
fn transaction_pool(&self, is_dev: bool) -> Result<pezsc_service::config::TransactionPoolOptions> {
self.base.base.transaction_pool(is_dev)
}
@@ -345,7 +345,7 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.trie_cache_maximum_size()
}
fn rpc_methods(&self) -> Result<sc_service::config::RpcMethods> {
fn rpc_methods(&self) -> Result<pezsc_service::config::RpcMethods> {
self.base.base.rpc_methods()
}
@@ -380,7 +380,7 @@ impl CliConfiguration<Self> for RelayChainCli {
fn telemetry_endpoints(
&self,
chain_spec: &Box<dyn ChainSpec>,
) -> Result<Option<sc_telemetry::TelemetryEndpoints>> {
) -> Result<Option<pezsc_telemetry::TelemetryEndpoints>> {
self.base.base.telemetry_endpoints(chain_spec)
}
@@ -394,7 +394,7 @@ impl CliConfiguration for ExtendedBuildSpecCmd {
self.cmd.shared_params()
}
fn node_key_params(&self) -> Option<&sc_cli::NodeKeyParams> {
fn node_key_params(&self) -> Option<&pezsc_cli::NodeKeyParams> {
self.cmd.node_key_params()
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
use std::str::FromStr;
use hex_literal::hex;
use sp_core::H160;
use pezsp_core::H160;
use super::{hardhat::HardhatContract, Contract};
+1 -1
View File
@@ -6,7 +6,7 @@ use std::{
};
use serde::{de, Deserialize};
use sp_core::H160;
use pezsp_core::H160;
use self::{
defaults::{entrypoint_address, entrypoint_contract},
+9 -9
View File
@@ -12,17 +12,17 @@ pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
pub use fc_storage::{StorageOverride, StorageOverrideHandler};
use futures::{future, prelude::*};
// Bizinikiwi
use sc_client_api::BlockchainEvents;
use sc_executor::{HostFunctions, WasmExecutor};
use sc_network_sync::SyncingService;
use sc_service::{error::Error as ServiceError, Configuration, TaskManager};
use sp_api::ConstructRuntimeApi;
use pezsc_client_api::BlockchainEvents;
use pezsc_executor::{HostFunctions, WasmExecutor};
use pezsc_network_sync::SyncingService;
use pezsc_service::{error::Error as ServiceError, Configuration, TaskManager};
use pezsp_api::ConstructRuntimeApi;
/// Full backend.
pub type FullBackend = sc_service::TFullBackend<Block>;
pub type FullBackend = pezsc_service::TFullBackend<Block>;
/// Full client.
pub type FullClient<RuntimeApi, Executor> =
sc_service::TFullClient<Block, RuntimeApi, WasmExecutor<Executor>>;
pezsc_service::TFullClient<Block, RuntimeApi, WasmExecutor<Executor>>;
/// Frontier DB backend type.
pub type FrontierBackend<C> = fc_db::Backend<Block, C>;
@@ -112,14 +112,14 @@ pub fn new_frontier_partial(
/// A set of APIs that ethereum-compatible runtimes must implement.
pub trait EthCompatRuntimeApiCollection:
sp_api::ApiExt<Block>
pezsp_api::ApiExt<Block>
+ fp_rpc::ConvertTransactionRuntimeApi<Block>
+ fp_rpc::EthereumRuntimeRPCApi<Block>
{
}
impl<Api> EthCompatRuntimeApiCollection for Api where
Api: sp_api::ApiExt<Block>
Api: pezsp_api::ApiExt<Block>
+ fp_rpc::ConvertTransactionRuntimeApi<Block>
+ fp_rpc::EthereumRuntimeRPCApi<Block>
{
+1 -1
View File
@@ -13,6 +13,6 @@ mod eth;
#[cfg_attr(feature = "tanssi", path = "tanssi_rpc/mod.rs")]
mod rpc;
fn main() -> sc_cli::Result<()> {
fn main() -> pezsc_cli::Result<()> {
command::run()
}
+12 -12
View File
@@ -7,22 +7,22 @@ pub use fc_storage::StorageOverride;
use fp_rpc::{ConvertTransaction, ConvertTransactionRuntimeApi, EthereumRuntimeRPCApi};
use jsonrpsee::RpcModule;
// Bizinikiwi
use sc_client_api::{
use pezsc_client_api::{
backend::{Backend, StorageProvider},
client::BlockchainEvents,
AuxStore, UsageProvider,
};
use sc_network::service::traits::NetworkService;
use sc_network_sync::SyncingService;
use sc_rpc::SubscriptionTaskExecutor;
use sc_transaction_pool_api::TransactionPool;
use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder as BlockBuilderApi;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_consensus_aura::{sr25519::AuthorityId as AuraId, AuraApi};
use sp_core::H256;
use sp_inherents::CreateInherentDataProviders;
use sp_runtime::traits::Block as BlockT;
use pezsc_network::service::traits::NetworkService;
use pezsc_network_sync::SyncingService;
use pezsc_rpc::SubscriptionTaskExecutor;
use pezsc_transaction_pool_api::TransactionPool;
use pezsp_api::{CallApiAt, ProvideRuntimeApi};
use pezsp_block_builder::BlockBuilder as BlockBuilderApi;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use pezsp_consensus_aura::{sr25519::AuthorityId as AuraId, AuraApi};
use pezsp_core::H256;
use pezsp_inherents::CreateInherentDataProviders;
use pezsp_runtime::traits::Block as BlockT;
/// Extra dependencies for Ethereum compatibility.
pub struct EthDeps<B: BlockT, C, P, CT, CIDP> {
+12 -12
View File
@@ -1,5 +1,5 @@
//! A collection of node-specific RPC methods.
//! Bizinikiwi provides the `sc-rpc` crate, which defines the core RPC layer
//! Bizinikiwi provides the `pezsc-rpc` crate, which defines the core RPC layer
//! used by Bizinikiwi nodes. This file extends those RPC definitions with
//! capabilities that are specific to this project's runtime configuration.
@@ -8,15 +8,15 @@ mod eth;
use std::sync::Arc;
use evm_runtime_template::{opaque::Block, AccountId, Balance, Nonce};
use sc_client_api::{backend::Backend, AuxStore, BlockchainEvents, StorageProvider, UsageProvider};
use sc_rpc::SubscriptionTaskExecutor;
use sc_transaction_pool_api::TransactionPool;
use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_inherents::CreateInherentDataProviders;
use sp_runtime::traits::Block as BlockT;
use pezsc_client_api::{backend::Backend, AuxStore, BlockchainEvents, StorageProvider, UsageProvider};
use pezsc_rpc::SubscriptionTaskExecutor;
use pezsc_transaction_pool_api::TransactionPool;
use pezsp_api::{CallApiAt, ProvideRuntimeApi};
use pezsp_block_builder::BlockBuilder;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_inherents::CreateInherentDataProviders;
use pezsp_runtime::traits::Block as BlockT;
pub use self::eth::EthDeps;
use crate::rpc::eth::create_eth;
@@ -70,11 +70,11 @@ where
+ 'static,
C::Api: pezpallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
C::Api: bizinikiwi_pezframe_rpc_system::AccountNonceApi<Block, AccountId, Nonce>,
C::Api: sp_consensus_aura::AuraApi<Block, AuraId>,
C::Api: pezsp_consensus_aura::AuraApi<Block, AuraId>,
C::Api: BlockBuilder<Block>,
C::Api: fp_rpc::ConvertTransactionRuntimeApi<Block>,
C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,
P: TransactionPool<Block = Block, Hash = sp_core::H256> + Sync + Send + 'static,
P: TransactionPool<Block = Block, Hash = pezsp_core::H256> + Sync + Send + 'static,
CIDP: CreateInherentDataProviders<Block, ()> + Send + 'static,
CT: fp_rpc::ConvertTransaction<<Block as BlockT>::Extrinsic> + Send + Sync + 'static,
BE: Backend<Block> + 'static,
+59 -59
View File
@@ -4,44 +4,44 @@
// std
use std::{path::Path, sync::Arc, time::Duration};
use cumulus_client_cli::CollatorOptions;
// Cumulus Imports
use pezcumulus_client_cli::CollatorOptions;
// Pezcumulus Imports
#[cfg(not(feature = "tanssi"))]
use cumulus_client_collator::service::CollatorService;
use cumulus_client_consensus_common::TeyrChainBlockImport as TTeyrChainBlockImport;
use pezcumulus_client_collator::service::CollatorService;
use pezcumulus_client_consensus_common::TeyrChainBlockImport as TTeyrChainBlockImport;
#[cfg(not(feature = "tanssi"))]
use cumulus_client_consensus_proposer::Proposer;
use cumulus_client_service::{
use pezcumulus_client_consensus_proposer::Proposer;
use pezcumulus_client_service::{
build_network, build_relay_chain_interface, prepare_node_config, start_relay_chain_tasks,
BuildNetworkParams, CollatorSybilResistance, DARecoveryProfile, StartRelayChainTasksParams,
};
#[cfg(not(feature = "tanssi"))]
use cumulus_primitives_core::relay_chain::CollatorPair;
use pezcumulus_primitives_core::relay_chain::CollatorPair;
#[cfg(feature = "async-backing")]
use cumulus_primitives_core::relay_chain::ValidationCode;
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::relay_chain::ValidationCode;
use pezcumulus_primitives_core::ParaId;
#[cfg(not(feature = "tanssi"))]
use cumulus_relay_chain_interface::OverseerHandle;
use cumulus_relay_chain_interface::RelayChainInterface;
use pezcumulus_relay_chain_interface::OverseerHandle;
use pezcumulus_relay_chain_interface::RelayChainInterface;
#[cfg(not(feature = "tanssi"))]
use evm_runtime_template::opaque::Hash;
// Local Runtime Types
use evm_runtime_template::{configs::TransactionConverter, opaque::Block, RuntimeApi};
// Bizinikiwi Imports
use pezframe_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE;
use sc_client_api::Backend;
use sc_consensus::ImportQueue;
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
use sc_network::{config::FullNetworkConfiguration, NetworkBlock};
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
use pezsc_client_api::Backend;
use pezsc_consensus::ImportQueue;
use pezsc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
use pezsc_network::{config::FullNetworkConfiguration, NetworkBlock};
use pezsc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
#[cfg(not(feature = "tanssi"))]
use sc_telemetry::TelemetryHandle;
use sc_telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle};
use sc_transaction_pool_api::OffchainTransactionPoolFactory;
use pezsc_telemetry::TelemetryHandle;
use pezsc_telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle};
use pezsc_transaction_pool_api::OffchainTransactionPoolFactory;
#[cfg(not(feature = "tanssi"))]
use sp_core::U256;
use pezsp_core::U256;
#[cfg(not(feature = "tanssi"))]
use sp_keystore::KeystorePtr;
use pezsp_keystore::KeystorePtr;
#[cfg(not(feature = "tanssi"))]
use bizinikiwi_prometheus_endpoint::Registry;
@@ -52,12 +52,12 @@ use crate::eth::{
#[cfg(not(feature = "runtime-benchmarks"))]
pub type HostFunctions =
(sp_io::BizinikiwiHostFunctions, cumulus_client_service::storage_proof_size::HostFunctions);
(pezsp_io::BizinikiwiHostFunctions, pezcumulus_client_service::storage_proof_size::HostFunctions);
#[cfg(feature = "runtime-benchmarks")]
pub type HostFunctions = (
sp_io::BizinikiwiHostFunctions,
cumulus_client_service::storage_proof_size::HostFunctions,
pezsp_io::BizinikiwiHostFunctions,
pezcumulus_client_service::storage_proof_size::HostFunctions,
pezframe_benchmarking::benchmarking::HostFunctions,
);
@@ -74,8 +74,8 @@ pub type Service = PartialComponents<
TeyrChainClient,
TeyrChainBackend,
(),
sc_consensus::DefaultImportQueue<Block>,
sc_transaction_pool::TransactionPoolHandle<Block, TeyrChainClient>,
pezsc_consensus::DefaultImportQueue<Block>,
pezsc_transaction_pool::TransactionPoolHandle<Block, TeyrChainClient>,
(
TeyrChainBlockImport,
Option<Telemetry>,
@@ -92,12 +92,12 @@ pub type Service = PartialComponents<
pub fn new_partial(
config: &Configuration,
eth_config: &EthConfiguration,
) -> Result<Service, sc_service::Error> {
) -> Result<Service, pezsc_service::Error> {
let telemetry = config
.telemetry_endpoints
.clone()
.filter(|x| !x.is_empty())
.map(|endpoints| -> Result<_, sc_telemetry::Error> {
.map(|endpoints| -> Result<_, pezsc_telemetry::Error> {
let worker = TelemetryWorker::new(16)?;
let telemetry = worker.handle().new_telemetry(endpoints);
Ok((worker, telemetry))
@@ -118,7 +118,7 @@ pub fn new_partial(
.build();
let (client, backend, keystore_container, task_manager) =
sc_service::new_full_parts_record_import::<Block, RuntimeApi, _>(
pezsc_service::new_full_parts_record_import::<Block, RuntimeApi, _>(
config,
telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()),
executor,
@@ -134,7 +134,7 @@ pub fn new_partial(
});
let transaction_pool = Arc::from(
sc_transaction_pool::Builder::new(
pezsc_transaction_pool::Builder::new(
task_manager.spawn_essential_handle(),
client.clone(),
config.role.is_authority().into(),
@@ -214,7 +214,7 @@ pub fn import_queue(
client: Arc<TeyrChainClient>,
backend: Arc<TeyrChainBackend>,
task_manager: &TaskManager,
) -> (TeyrChainBlockImport, sc_consensus::BasicQueue<Block>) {
) -> (TeyrChainBlockImport, pezsc_consensus::BasicQueue<Block>) {
// The nimbus import queue ONLY checks the signature correctness
// Any other checks corresponding to the author-correctness should be done
// in the runtime
@@ -224,7 +224,7 @@ pub fn import_queue(
client,
block_import.clone(),
move |_, _| async move {
let time = sp_timestamp::InherentDataProvider::from_system_time();
let time = pezsp_timestamp::InherentDataProvider::from_system_time();
Ok((time,))
},
@@ -242,15 +242,15 @@ pub fn import_queue(
///
/// This is the actual implementation that is abstract over the executor and the
/// runtime api.
#[sc_tracing::logging::prefix_logs_with("TeyrChain")]
#[pezsc_tracing::logging::prefix_logs_with("TeyrChain")]
async fn start_node_impl(
teyrchain_config: Configuration,
pezkuwi_config: Configuration,
collator_options: CollatorOptions,
eth_config: &EthConfiguration,
para_id: ParaId,
hwbench: Option<sc_sysinfo::HwBench>,
) -> sc_service::error::Result<(TaskManager, Arc<TeyrChainClient>)> {
hwbench: Option<pezsc_sysinfo::HwBench>,
) -> pezsc_service::error::Result<(TaskManager, Arc<TeyrChainClient>)> {
let teyrchain_config = prepare_node_config(teyrchain_config);
let params = new_partial(&teyrchain_config, eth_config)?;
@@ -265,7 +265,7 @@ async fn start_node_impl(
let (_, mut telemetry, telemetry_worker_handle, frontier_backend, overrides) = params.other;
let frontier_backend = Arc::new(frontier_backend);
let net_config = FullNetworkConfiguration::<_, _, sc_network::NetworkWorker<Block, Hash>>::new(
let net_config = FullNetworkConfiguration::<_, _, pezsc_network::NetworkWorker<Block, Hash>>::new(
&teyrchain_config.network,
teyrchain_config.prometheus_config.as_ref().map(|cfg| cfg.registry.clone()),
);
@@ -283,7 +283,7 @@ async fn start_node_impl(
hwbench.clone(),
)
.await
.map_err(|e| sc_service::Error::Application(Box::new(e) as Box<_>))?;
.map_err(|e| pezsc_service::Error::Application(Box::new(e) as Box<_>))?;
#[cfg(not(feature = "tanssi"))]
let (relay_chain_interface, collator_key) = relay_chain_interface;
@@ -295,7 +295,7 @@ async fn start_node_impl(
let transaction_pool = params.transaction_pool.clone();
let import_queue_service = params.import_queue.service();
#[cfg(not(feature = "tanssi"))]
let slot_duration = sc_consensus_aura::slot_duration(&*client)?;
let slot_duration = pezsc_consensus_aura::slot_duration(&*client)?;
let (network, system_rpc_tx, tx_handler_controller, sync_service) =
build_network(BuildNetworkParams {
@@ -317,7 +317,7 @@ async fn start_node_impl(
task_manager.spawn_handle().spawn(
"offchain-workers-runner",
"offchain-work",
sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions {
pezsc_offchain::OffchainWorkers::new(pezsc_offchain::OffchainWorkerOptions {
runtime_api_provider: client.clone(),
keystore: Some(params.keystore_container.keystore()),
offchain_db: backend.offchain_storage(),
@@ -347,10 +347,10 @@ async fn start_node_impl(
let enable_dev_signer = eth_config.enable_dev_signer;
#[cfg(not(feature = "tanssi"))]
let pending_create_inherent_data_providers = move |_, ()| async move {
let current = sp_timestamp::InherentDataProvider::from_system_time();
let current = pezsp_timestamp::InherentDataProvider::from_system_time();
let next_slot = current.timestamp().as_millis() + slot_duration.as_millis();
let timestamp = sp_timestamp::InherentDataProvider::new(next_slot.into());
let slot = sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
let timestamp = pezsp_timestamp::InherentDataProvider::new(next_slot.into());
let slot = pezsp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
*timestamp,
slot_duration,
);
@@ -409,7 +409,7 @@ async fn start_node_impl(
})
};
sc_service::spawn_tasks(sc_service::SpawnTasksParams {
pezsc_service::spawn_tasks(pezsc_service::SpawnTasksParams {
rpc_builder,
client: client.clone(),
transaction_pool: transaction_pool.clone(),
@@ -425,7 +425,7 @@ async fn start_node_impl(
})?;
if let Some(hwbench) = hwbench {
sc_sysinfo::print_hwbench(&hwbench);
pezsc_sysinfo::print_hwbench(&hwbench);
// Here you can check whether the hardware meets your chains' requirements.
// Putting a link in there and swapping out the requirements for your
// own are probably a good idea. The requirements for a para-chain are
@@ -446,7 +446,7 @@ async fn start_node_impl(
task_manager.spawn_handle().spawn(
"telemetry_hwbench",
None,
sc_sysinfo::initialize_hwbench_telemetry(telemetry_handle, hwbench),
pezsc_sysinfo::initialize_hwbench_telemetry(telemetry_handle, hwbench),
);
}
}
@@ -460,7 +460,7 @@ async fn start_node_impl(
let overseer_handle = relay_chain_interface
.overseer_handle()
.map_err(|e| sc_service::Error::Application(Box::new(e)))?;
.map_err(|e| pezsc_service::Error::Application(Box::new(e)))?;
start_relay_chain_tasks(StartRelayChainTasksParams {
client: client.clone(),
@@ -525,9 +525,9 @@ fn build_import_queue(
config: &Configuration,
telemetry: Option<TelemetryHandle>,
task_manager: &TaskManager,
) -> Result<sc_consensus::DefaultImportQueue<Block>, sc_service::Error> {
Ok(cumulus_client_consensus_aura::equivocation_import_queue::fully_verifying_import_queue::<
sp_consensus_aura::sr25519::AuthorityPair,
) -> Result<pezsc_consensus::DefaultImportQueue<Block>, pezsc_service::Error> {
Ok(pezcumulus_client_consensus_aura::equivocation_import_queue::fully_verifying_import_queue::<
pezsp_consensus_aura::sr25519::AuthorityPair,
_,
_,
_,
@@ -536,7 +536,7 @@ fn build_import_queue(
client,
block_import,
move |_, _| async move {
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();
let timestamp = pezsp_timestamp::InherentDataProvider::from_system_time();
Ok(timestamp)
},
&task_manager.spawn_essential_handle(),
@@ -554,20 +554,20 @@ fn start_consensus(
telemetry: Option<TelemetryHandle>,
task_manager: &TaskManager,
relay_chain_interface: Arc<dyn RelayChainInterface>,
transaction_pool: Arc<sc_transaction_pool::TransactionPoolHandle<Block, TeyrChainClient>>,
transaction_pool: Arc<pezsc_transaction_pool::TransactionPoolHandle<Block, TeyrChainClient>>,
keystore: KeystorePtr,
relay_chain_slot_duration: Duration,
para_id: ParaId,
collator_key: CollatorPair,
overseer_handle: OverseerHandle,
announce_block: Arc<dyn Fn(Hash, Option<Vec<u8>>) + Send + Sync>,
) -> Result<(), sc_service::Error> {
) -> Result<(), pezsc_service::Error> {
#[cfg(not(feature = "async-backing"))]
use cumulus_client_consensus_aura::collators::basic::{self as basic_aura, Params};
use pezcumulus_client_consensus_aura::collators::basic::{self as basic_aura, Params};
#[cfg(feature = "async-backing")]
use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params};
use pezcumulus_client_consensus_aura::collators::lookahead::{self as aura, Params};
let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording(
let proposer_factory = pezsc_basic_authorship::ProposerFactory::with_proof_recording(
task_manager.spawn_handle(),
client.clone(),
transaction_pool,
@@ -619,11 +619,11 @@ fn start_consensus(
};
#[cfg(not(feature = "async-backing"))]
let fut = basic_aura::run::<Block, sp_consensus_aura::sr25519::AuthorityPair, _, _, _, _, _, _>(
let fut = basic_aura::run::<Block, pezsp_consensus_aura::sr25519::AuthorityPair, _, _, _, _, _, _>(
params,
);
#[cfg(feature = "async-backing")]
let fut = aura::run::<Block, sp_consensus_aura::sr25519::AuthorityPair, _, _, _, _, _, _, _, _>(
let fut = aura::run::<Block, pezsp_consensus_aura::sr25519::AuthorityPair, _, _, _, _, _, _, _, _>(
params,
);
task_manager.spawn_essential_handle().spawn("aura", None, fut);
@@ -638,8 +638,8 @@ pub async fn start_teyrchain_node(
collator_options: CollatorOptions,
eth_config: &EthConfiguration,
para_id: ParaId,
hwbench: Option<sc_sysinfo::HwBench>,
) -> sc_service::error::Result<(TaskManager, Arc<TeyrChainClient>)> {
hwbench: Option<pezsc_sysinfo::HwBench>,
) -> pezsc_service::error::Result<(TaskManager, Arc<TeyrChainClient>)> {
start_node_impl(
teyrchain_config,
pezkuwi_config,
+17 -17
View File
@@ -1,8 +1,8 @@
use std::{collections::BTreeMap, sync::Arc};
use cumulus_client_teyrchain_inherent::TeyrChainInherentData;
use cumulus_primitives_core::PersistedValidationData;
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
use pezcumulus_client_teyrchain_inherent::TeyrChainInherentData;
use pezcumulus_primitives_core::PersistedValidationData;
use pezcumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
// Frontier
pub use fc_rpc::{EthBlockDataCacheTask, EthConfig};
pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
@@ -10,21 +10,21 @@ pub use fc_storage::StorageOverride;
use fp_rpc::{ConvertTransaction, ConvertTransactionRuntimeApi, EthereumRuntimeRPCApi};
use jsonrpsee::RpcModule;
// Bizinikiwi
use sc_client_api::{
use pezsc_client_api::{
backend::{Backend, StorageProvider},
client::BlockchainEvents,
AuxStore, UsageProvider,
};
use sc_network::service::traits::NetworkService;
use sc_network_sync::SyncingService;
use sc_rpc::SubscriptionTaskExecutor;
use sc_transaction_pool::{ChainApi, Pool};
use sc_transaction_pool_api::TransactionPool;
use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder as BlockBuilderApi;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_core::H256;
use sp_runtime::traits::Block as BlockT;
use pezsc_network::service::traits::NetworkService;
use pezsc_network_sync::SyncingService;
use pezsc_rpc::SubscriptionTaskExecutor;
use pezsc_transaction_pool::{ChainApi, Pool};
use pezsc_transaction_pool_api::TransactionPool;
use pezsp_api::{CallApiAt, ProvideRuntimeApi};
use pezsp_block_builder::BlockBuilder as BlockBuilderApi;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use pezsp_core::H256;
use pezsp_runtime::traits::Block as BlockT;
/// Extra dependencies for Ethereum compatibility.
pub struct EthDeps<B: BlockT, C, P, A: ChainApi, CT> {
@@ -133,7 +133,7 @@ where
authorities: authorities_for_cidp,
};
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();
let timestamp = pezsp_timestamp::InherentDataProvider::from_system_time();
// Create a dummy teyrchain inherent data provider which is required to pass
// the checks by the para chain system. We use dummy values because in the 'pending context'
// neither do we have access to the real values nor do we need them.
@@ -143,7 +143,7 @@ where
}
.into_state_root_and_proof();
let vfp = PersistedValidationData {
// This is a hack to make `cumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases`
// This is a hack to make `pezcumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases`
// happy. Relay parent number can't be bigger than u32::MAX.
relay_parent_number: u32::MAX,
relay_parent_storage_root,
@@ -182,7 +182,7 @@ where
forced_parent_hashes,
pending_create_inherent_data_providers,
Some(Box::new(tc_consensus::ContainerManualSealAuraConsensusDataProvider::new(
sp_consensus_aura::SlotDuration::from_millis(
pezsp_consensus_aura::SlotDuration::from_millis(
evm_runtime_template::constants::SLOT_DURATION,
),
authorities_for_cdp.clone(),
+10 -10
View File
@@ -1,5 +1,5 @@
//! A collection of node-specific RPC methods.
//! Bizinikiwi provides the `sc-rpc` crate, which defines the core RPC layer
//! Bizinikiwi provides the `pezsc-rpc` crate, which defines the core RPC layer
//! used by Bizinikiwi nodes. This file extends those RPC definitions with
//! capabilities that are specific to this project's runtime configuration.
@@ -8,15 +8,15 @@ mod eth;
use std::sync::Arc;
use evm_runtime_template::{opaque::Block, AccountId, Balance, Nonce};
use sc_client_api::{backend::Backend, AuxStore, BlockchainEvents, StorageProvider, UsageProvider};
pub use sc_rpc::DenyUnsafe;
use sc_rpc::SubscriptionTaskExecutor;
use sc_transaction_pool::ChainApi;
use sc_transaction_pool_api::TransactionPool;
use sp_api::{CallApiAt, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use sp_runtime::traits::Block as BlockT;
use pezsc_client_api::{backend::Backend, AuxStore, BlockchainEvents, StorageProvider, UsageProvider};
pub use pezsc_rpc::DenyUnsafe;
use pezsc_rpc::SubscriptionTaskExecutor;
use pezsc_transaction_pool::ChainApi;
use pezsc_transaction_pool_api::TransactionPool;
use pezsp_api::{CallApiAt, ProvideRuntimeApi};
use pezsp_block_builder::BlockBuilder;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use pezsp_runtime::traits::Block as BlockT;
pub use self::eth::EthDeps;
use crate::rpc::eth::create_eth;
+3 -3
View File
@@ -1,6 +1,6 @@
{
"relaychain": {
"bin": "../../polkadot/target/release/polkadot",
"bin": "../../pezkuwi/target/release/pezkuwi",
"chain": "paseo-local",
"nodes": [
{
@@ -15,9 +15,9 @@
}
]
},
"parachains": [
"teyrchains": [
{
"bin": "../target/release/polkadot-parachain",
"bin": "../target/release/pezkuwi-teyrchain",
"id": "200",
"balance": "1000000000000000000000",
"nodes": [
+65 -65
View File
@@ -19,8 +19,8 @@ scale-info = { workspace = true, features = [ "derive" ] }
serde_json = { workspace = true, default-features = false, features = [ "alloc" ] }
smallvec = { workspace = true }
openzeppelin-pezpallet-abstractions = { workspace = true }
openzeppelin-pezpallet-abstractions-proc = { workspace = true }
openzeppelin-pallet-abstractions = { workspace = true }
openzeppelin-pallet-abstractions-proc = { workspace = true }
# Bizinikiwi
pezframe-benchmarking = { workspace = true, optional = true }
@@ -52,20 +52,20 @@ pezpallet-transaction-payment-rpc-runtime-api = { workspace = true }
pezpallet-treasury = { workspace = true }
pezpallet-utility = { workspace = true }
pezpallet-whitelist = { workspace = true }
sp-api = { workspace = true }
sp-arithmetic = { workspace = true }
sp-block-builder = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-core = { workspace = true }
sp-genesis-builder = { workspace = true }
sp-inherents = { workspace = true }
sp-keyring = { workspace = true }
sp-offchain = { workspace = true }
sp-runtime = { workspace = true }
sp-session = { workspace = true }
sp-std = { workspace = true }
sp-transaction-pool = { workspace = true }
sp-version = { workspace = true }
pezsp-api = { workspace = true }
pezsp-arithmetic = { workspace = true }
pezsp-block-builder = { workspace = true }
pezsp-consensus-aura = { workspace = true }
pezsp-core = { workspace = true }
pezsp-genesis-builder = { workspace = true }
pezsp-inherents = { workspace = true }
pezsp-keyring = { workspace = true }
pezsp-offchain = { workspace = true }
pezsp-runtime = { workspace = true }
pezsp-session = { workspace = true }
pezsp-std = { workspace = true }
pezsp-transaction-pool = { workspace = true }
pezsp-version = { workspace = true }
# Pezkuwi
pezpallet-xcm = { workspace = true }
@@ -75,18 +75,18 @@ staging-xcm = { workspace = true }
staging-xcm-builder = { workspace = true }
staging-xcm-executor = { workspace = true }
# Cumulus
# Pezpezcumulus
assets-common = { workspace = true }
cumulus-pezpallet-aura-ext = { workspace = true }
cumulus-pezpallet-teyrchain-system = { workspace = true }
cumulus-pezpallet-session-benchmarking = { workspace = true }
cumulus-pezpallet-weight-reclaim = { workspace = true }
cumulus-pezpallet-xcm = { workspace = true }
cumulus-pezpallet-xcmp-queue = { workspace = true }
cumulus-primitives-aura = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-timestamp = { workspace = true }
cumulus-primitives-utility = { workspace = true }
pezcumulus-pezpallet-aura-ext = { workspace = true }
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
pezcumulus-pezpallet-session-benchmarking = { workspace = true }
pezcumulus-pezpallet-weight-reclaim = { workspace = true }
pezcumulus-pezpallet-xcm = { workspace = true }
pezcumulus-pezpallet-xcmp-queue = { workspace = true }
pezcumulus-primitives-aura = { workspace = true }
pezcumulus-primitives-core = { workspace = true }
pezcumulus-primitives-timestamp = { workspace = true }
pezcumulus-primitives-utility = { workspace = true }
pezpallet-collator-selection = { workspace = true }
teyrchain-info = { workspace = true }
teyrchains-common = { workspace = true }
@@ -127,8 +127,8 @@ pezpallet-cc-authorities-noting = { workspace = true }
[dev-dependencies]
ethereum = { workspace = true }
pezkuwi-runtime-teyrchains = { workspace = true }
sp-io = { workspace = true }
sp-tracing = { workspace = true }
pezsp-io = { workspace = true }
pezsp-tracing = { workspace = true }
xcm-pez-simulator = { workspace = true }
[build-dependencies]
@@ -138,15 +138,15 @@ bizinikiwi-wasm-builder = { workspace = true }
default = [ "std" ]
std = [
"assets-common/std",
"cumulus-pezpallet-aura-ext/std",
"cumulus-pezpallet-teyrchain-system/std",
"cumulus-pezpallet-session-benchmarking/std",
"cumulus-pezpallet-weight-reclaim/std",
"cumulus-pezpallet-xcm/std",
"cumulus-pezpallet-xcmp-queue/std",
"cumulus-primitives-aura/std",
"cumulus-primitives-core/std",
"cumulus-primitives-utility/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-weight-reclaim/std",
"pezcumulus-pezpallet-xcm/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-aura/std",
"pezcumulus-primitives-core/std",
"pezcumulus-primitives-utility/std",
"dp-consensus/std",
"fp-account/std",
"fp-account/std",
@@ -163,7 +163,7 @@ std = [
"pezframe-try-runtime?/std",
"log/std",
"nimbus-primitives/std",
"openzeppelin-pezpallet-abstractions/std",
"openzeppelin-pallet-abstractions/std",
"orml-oracle-runtime-api/std",
"orml-oracle/std",
"orml-xtokens/std",
@@ -207,33 +207,33 @@ std = [
"pezkuwi-runtime-common/std",
"scale-info/std",
"serde_json/std",
"sp-api/std",
"sp-arithmetic/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-genesis-builder/std",
"sp-inherents/std",
"sp-keyring/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
"sp-std/std",
"sp-transaction-pool/std",
"sp-version/std",
"pezsp-api/std",
"pezsp-arithmetic/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-std/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"staging-xcm-builder/std",
"staging-xcm-executor/std",
"xcm-primitives/std",
"staging-xcm/std",
]
async-backing = [ "openzeppelin-pezpallet-abstractions-proc/async-backing" ]
async-backing = [ "openzeppelin-pallet-abstractions-proc/async-backing" ]
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
runtime-benchmarks = [
"assets-common/runtime-benchmarks",
"cumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"cumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"cumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"cumulus-primitives-utility/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezcumulus-primitives-utility/runtime-benchmarks",
"dp-consensus/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
@@ -269,16 +269,16 @@ runtime-benchmarks = [
"teyrchains-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"staging-xcm-executor/runtime-benchmarks",
]
try-runtime = [
"cumulus-pezpallet-aura-ext/try-runtime",
"cumulus-pezpallet-teyrchain-system/try-runtime",
"cumulus-pezpallet-xcm/try-runtime",
"cumulus-pezpallet-xcmp-queue/try-runtime",
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezcumulus-pezpallet-xcm/try-runtime",
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
"fp-self-contained/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
@@ -321,7 +321,7 @@ try-runtime = [
"pezpallet-xcm/try-runtime",
"teyrchain-info/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"sp-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
tanssi = []
@@ -329,4 +329,4 @@ tanssi = []
# A feature that should be enabled when the runtime should be built for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
# to make it smaller, like logging for example.
on-chain-release-build = [ "sp-api/disable-logging" ]
on-chain-release-build = [ "pezsp-api/disable-logging" ]
+4 -4
View File
@@ -7,11 +7,11 @@ pezframe_benchmarking::define_benchmarks!(
[pezpallet_message_queue, MessageQueue]
[pezpallet_sudo, Sudo]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezpallet_scheduler, Scheduler]
[pezpallet_preimage, Preimage]
[pezpallet_proxy, Proxy]
[cumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezcumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezpallet_multisig, Multisig]
[pezpallet_utility, Utility]
[pezpallet_treasury, Treasury]
@@ -25,12 +25,12 @@ pezframe_benchmarking::define_benchmarks!(
[pezpallet_xcm_weight_trader, XcmWeightTrader]
);
use cumulus_primitives_core::{ChannelStatus, GetChannelInfo};
use pezcumulus_primitives_core::{ChannelStatus, GetChannelInfo};
use pezframe_support::traits::{
tokens::{Pay, PaymentStatus},
Get,
};
use sp_std::marker::PhantomData;
use pezsp_std::marker::PhantomData;
use crate::TeyrChainSystem;
@@ -1,9 +1,9 @@
use pezframe_support::{dispatch::GetDispatchInfo, weights::Weight};
use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode};
use scale_info::TypeInfo;
use sp_core::{H160, H256};
use sp_runtime::traits::Hash as THash;
use sp_std::{
use pezsp_core::{H160, H256};
use pezsp_runtime::traits::Hash as THash;
use pezsp_std::{
convert::{From, Into},
prelude::*,
};
@@ -86,7 +86,7 @@ impl From<AssetType> for AssetId {
match asset {
AssetType::Xcm(id) => {
let mut result: [u8; 16] = [0u8; 16];
let hash: H256 = id.using_encoded(<Runtime as pezframe_system::Config>::Hashing::hash);
let hash: H256 = id.using_encoded(<Runtime as frame_system::Config>::Hashing::hash);
result.copy_from_slice(&hash.as_fixed_bytes()[0..16]);
u128::from_le_bytes(result)
}
@@ -207,7 +207,7 @@ impl AccountIdAssetIdConversion<AccountId, AssetId> for Runtime {
mod tests {
mod asset_registrar {
use pezpallet_asset_manager::AssetRegistrar;
use sp_io::TestExternalities;
use pezsp_io::TestExternalities;
use crate::{
configs::{AssetRegistrar as Registrar, AssetRegistrarMetadata},
@@ -2,17 +2,18 @@
pub use pezpallet_custom_origins::*;
#[pezframe_support::pezpallet]
use pezsp_std::marker::PhantomData;
#[pezframe_support::pallet]
pub mod pezpallet_custom_origins {
use pezframe_support::pezpallet_prelude::*;
use pezframe_support::pallet_prelude::*;
use crate::configs::governance::{Balance, CENTS, GRAND};
#[pezpallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::config]
pub trait Config: frame_system::Config {}
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[pallet::pezpallet]
pub struct Pezpallet<T>(PhantomData<T>);
#[derive(
PartialEq,
@@ -25,7 +26,7 @@ pub mod pezpallet_custom_origins {
TypeInfo,
RuntimeDebug,
)]
#[pezpallet::origin]
#[pallet::origin]
pub enum Origin {
/// Origin for spending (any amount of) funds.
Treasurer,
@@ -3,13 +3,13 @@
use alloc::borrow::Cow;
use pezpallet_referenda::Track;
use sp_runtime::str_array as s;
use pezsp_runtime::str_array as s;
use super::*;
use crate::constants::MINUTES;
const fn percent(x: i32) -> sp_arithmetic::FixedI64 {
sp_arithmetic::FixedI64::from_rational(x as u128, 100)
const fn percent(x: i32) -> pezsp_arithmetic::FixedI64 {
pezsp_arithmetic::FixedI64::from_rational(x as u128, 100)
}
use pezpallet_referenda::Curve;
const APP_ROOT: Curve = Curve::make_reciprocal(4, 28, percent(80), percent(50), percent(100));
@@ -42,7 +42,7 @@ const SUP_WHITELISTED_CALLER: Curve =
pub struct TracksInfo;
impl pezpallet_referenda::TracksInfo<Balance, BlockNumber> for TracksInfo {
type Id = u16;
type RuntimeOrigin = <RuntimeOrigin as pezframe_support::traits::OriginTrait>::PalletsOrigin;
type RuntimeOrigin = <RuntimeOrigin as pezframe_support::traits::OriginTrait>::PezpalletsOrigin;
fn tracks() -> impl Iterator<Item = Cow<'static, Track<Self::Id, Balance, BlockNumber>>> {
static DATA: [Track<u16, Balance, BlockNumber>; 10] = [
@@ -346,7 +346,7 @@ mod tests {
<crate::configs::governance::tracks::TracksInfo as pezpallet_referenda::TracksInfo<
Balance,
BlockNumber,
>>::track_for(&OriginCaller::CumulusXcm(cumulus_pezpallet_xcm::Origin::Relay))
>>::track_for(&OriginCaller::PezcumulusXcm(pezcumulus_pezpallet_xcm::Origin::Relay))
.expect_err("incorrect config");
}
}
+18 -18
View File
@@ -5,12 +5,12 @@ pub mod xcm_config;
use asset_config::*;
#[cfg(feature = "tanssi")]
use cumulus_pezpallet_teyrchain_system::ExpectParentIncluded;
use pezcumulus_pezpallet_teyrchain_system::ExpectParentIncluded;
#[cfg(feature = "async-backing")]
use cumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
#[cfg(not(feature = "async-backing"))]
use cumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases;
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezcumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases;
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
#[cfg(not(feature = "tanssi"))]
use pezframe_support::PalletId;
use pezframe_support::{
@@ -55,13 +55,13 @@ use teyrchains_common::{
use parity_scale_codec::{Decode, Encode};
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
#[cfg(not(feature = "tanssi"))]
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{H160, U256};
use sp_runtime::{
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_core::{H160, U256};
use pezsp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
ConsensusEngineId, Perbill, Permill,
};
use sp_std::marker::PhantomData;
use pezsp_std::marker::PhantomData;
use xcm::latest::{prelude::*, InteriorLocation};
#[cfg(not(feature = "runtime-benchmarks"))]
use xcm_builder::ProcessXcmMessage;
@@ -141,7 +141,7 @@ impl GovernanceConfig for OpenZeppelinRuntime {
type ReferendaSubmitOrigin = EnsureSigned<AccountId>;
type ReferendaUndecidingTimeout = ConstU32<{ 14 * DAYS }>;
type TreasuryInteriorLocation = TreasuryInteriorLocation;
type TreasuryPezpalletId = TreasuryPezpalletId;
type TreasuryPalletId = TreasuryPezpalletId;
type TreasuryPayoutSpendPeriod = ConstU32<{ 30 * DAYS }>;
type TreasuryRejectOrigin = EitherOfDiverse<EnsureRoot<AccountId>, Treasurer>;
type TreasurySpendOrigin = TreasurySpender;
@@ -168,7 +168,7 @@ impl XcmConfig for OpenZeppelinRuntime {
type MessageQueueHeapSize = ConstU32<{ 64 * 1024 }>;
type MessageQueueMaxStale = ConstU32<8>;
type MessageQueueServiceWeight = MessageQueueServiceWeight;
type TeyrChainMinFee = TeyrChainMinFee;
type TeyrchainMinFee = TeyrChainMinFee;
type PauseSupportedAssetOrigin = EnsureRoot<AccountId>;
type RelayLocation = RelayLocation;
type RemoveSupportedAssetOrigin = EnsureRoot<AccountId>;
@@ -211,16 +211,16 @@ parameter_types! {
}
pub struct AssetsToBlockAuthor<R, I>(PhantomData<(R, I)>);
impl<R, I> HandleCredit<AccountIdOf<R>, pezpallet_assets::Pallet<R, I>> for AssetsToBlockAuthor<R, I>
impl<R, I> HandleCredit<AccountIdOf<R>, pezpallet_assets::Pezpallet<R, I>> for AssetsToBlockAuthor<R, I>
where
I: 'static,
R: pezpallet_authorship::Config + pezpallet_assets::Config<I>,
{
fn handle_credit(credit: Credit<AccountIdOf<R>, pezpallet_assets::Pallet<R, I>>) {
fn handle_credit(credit: Credit<AccountIdOf<R>, pezpallet_assets::Pezpallet<R, I>>) {
use pezframe_support::traits::fungibles::Balanced;
if let Some(author) = pezpallet_authorship::Pallet::<R>::author() {
if let Some(author) = pezpallet_authorship::Pezpallet::<R>::author() {
// In case of error: Will drop the result triggering the `OnDrop` of the imbalance.
let _ = pezpallet_assets::Pallet::<R, I>::resolve(&author, credit);
let _ = pezpallet_assets::Pezpallet::<R, I>::resolve(&author, credit);
}
}
}
@@ -317,7 +317,7 @@ mod tests {
use pezframe_support::traits::fungibles::Balanced;
use pezpallet_asset_tx_payment::HandleCredit;
use parity_scale_codec::Encode;
use sp_runtime::{
use pezsp_runtime::{
testing::{Digest, DigestItem},
ConsensusEngineId,
};
@@ -379,8 +379,8 @@ mod tests {
});
}
fn new_test_ext() -> sp_io::TestExternalities {
use sp_runtime::BuildStorage;
fn new_test_ext() -> pezsp_io::TestExternalities {
use pezsp_runtime::BuildStorage;
pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap().into()
}
}
@@ -389,7 +389,7 @@ mod tests {
use ethereum::{LegacyTransaction, TransactionAction, TransactionSignature};
use fp_rpc::ConvertTransaction;
use sp_core::{H160, H256, U256};
use pezsp_core::{H160, H256, U256};
use crate::{configs::TransactionConverter, RuntimeCall, UncheckedExtrinsic};
+2 -2
View File
@@ -16,7 +16,7 @@ impl SystemWeight for OpenZeppelinRuntime {
type Balances = weights::pezpallet_balances::WeightInfo<Runtime>;
type DbWeight = RocksDbWeight;
type Multisig = weights::pezpallet_multisig::WeightInfo<Runtime>;
type TeyrChainSystem = weights::cumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type ParachainSystem = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type Preimage = weights::pezpallet_preimage::WeightInfo<Runtime>;
type Proxy = weights::pezpallet_proxy::WeightInfo<Runtime>;
type Scheduler = weights::pezpallet_scheduler::WeightInfo<Runtime>;
@@ -51,7 +51,7 @@ impl XcmWeight for OpenZeppelinRuntime {
type Xcm = weights::pezpallet_xcm::WeightInfo<Runtime>;
type XcmTransactor = weights::pezpallet_xcm_transactor::WeightInfo<Runtime>;
type XcmWeightTrader = weights::pezpallet_xcm_weight_trader::WeightInfo<Runtime>;
type XcmpQueue = weights::cumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
type XcmpQueue = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
}
impl EvmWeight for OpenZeppelinRuntime {
+19 -19
View File
@@ -11,8 +11,8 @@ use pezpallet_xcm::XcmPassthrough;
use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode};
use pezkuwi_teyrchain_primitives::primitives::{self, Sibling};
use scale_info::TypeInfo;
use sp_core::H160;
use sp_runtime::Vec;
use pezsp_core::H160;
use pezsp_runtime::Vec;
use xcm::latest::prelude::{Assets as XcmAssets, *};
use xcm_builder::{
AccountKey20Aliases, AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, Case,
@@ -39,7 +39,7 @@ parameter_types! {
pub AssetsPezpalletLocation: Location =
PezpalletInstance(<Assets as PezpalletInfoAccess>::index() as u8).into();
pub BalancesPezpalletLocation: Location = PezpalletInstance(<Balances as PezpalletInfoAccess>::index() as u8).into();
pub RelayChainOrigin: RuntimeOrigin = cumulus_pezpallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorLocation = TeyrChain(TeyrChainInfo::teyrchain_id().into()).into();
// Self Reserve location, defines the multilocation identifiying the self-reserve currency
// This is used to match it also against our Balances pezpallet when we receive such
@@ -117,7 +117,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling TeyrChains; will convert to a `SiblingPara` origin when
// recognized.
SiblingTeyrChainAsNative<cumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrChainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
// Xcm Origins defined by a Multilocation of type AccountKey20 can be converted to a 20 byte-
// account local origin
SignedAccountKey20AsNative<RelayNetwork, RuntimeOrigin>,
@@ -249,17 +249,17 @@ pub type FeeManager = XcmFeeManagerFromComponents<
pub type XcmWeigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
use pezframe_support::{pezpallet_prelude::Get, traits::OriginTrait};
use sp_runtime::traits::TryConvert;
use pezsp_runtime::traits::TryConvert;
// Convert a local Origin (i.e., a signed 20 byte account Origin) to a Multilocation
pub struct SignedToAccountId20<Origin, AccountId, Network>(
sp_std::marker::PhantomData<(Origin, AccountId, Network)>,
pezsp_std::marker::PhantomData<(Origin, AccountId, Network)>,
);
impl<Origin: OriginTrait + Clone, AccountId: Into<[u8; 20]>, Network: Get<Option<NetworkId>>>
TryConvert<Origin, Location> for SignedToAccountId20<Origin, AccountId, Network>
where
Origin::PalletsOrigin: From<pezframe_system::RawOrigin<AccountId>>
+ TryInto<pezframe_system::RawOrigin<AccountId>, Error = Origin::PalletsOrigin>,
Origin::PezpalletsOrigin: From<pezframe_system::RawOrigin<AccountId>>
+ TryInto<pezframe_system::RawOrigin<AccountId>, Error = Origin::PezpalletsOrigin>,
{
fn try_convert(o: Origin) -> Result<Location, Origin> {
o.try_with_caller(|caller| match caller.try_into() {
@@ -278,7 +278,7 @@ pub type LocalOriginToLocation = SignedToAccountId20<RuntimeOrigin, AccountId, R
/// the right message queues.
pub type XcmRouter = WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<TeyrChainSystem, (), ()>,
pezcumulus_primitives_utility::ParentAsUmp<TeyrChainSystem, (), ()>,
// ..and XCMP to communicate with the sibling chains.
XcmpQueue,
)>;
@@ -325,11 +325,11 @@ pub enum CurrencyId {
}
// How to convert from CurrencyId to Location
pub struct CurrencyIdToLocation<AssetXConverter>(sp_std::marker::PhantomData<AssetXConverter>);
impl<AssetXConverter> sp_runtime::traits::Convert<CurrencyId, Option<Location>>
pub struct CurrencyIdToLocation<AssetXConverter>(pezsp_std::marker::PhantomData<AssetXConverter>);
impl<AssetXConverter> pezsp_runtime::traits::Convert<CurrencyId, Option<Location>>
for CurrencyIdToLocation<AssetXConverter>
where
AssetXConverter: sp_runtime::traits::MaybeEquivalence<Location, AssetId>,
AssetXConverter: pezsp_runtime::traits::MaybeEquivalence<Location, AssetId>,
{
fn convert(currency: CurrencyId) -> Option<Location> {
match currency {
@@ -514,8 +514,8 @@ impl TryFrom<u8> for Transactors {
impl UtilityEncodeCall for Transactors {
fn encode_call(self, call: UtilityAvailableCalls) -> Vec<u8> {
match self {
Transactors::Relay => pezpallet_xcm_transactor::Pallet::<Runtime>::encode_call(
pezpallet_xcm_transactor::Pallet(sp_std::marker::PhantomData::<Runtime>),
Transactors::Relay => pezpallet_xcm_transactor::Pezpallet::<Runtime>::encode_call(
pezpallet_xcm_transactor::Pezpallet(pezsp_std::marker::PhantomData::<Runtime>),
call,
),
}
@@ -536,7 +536,7 @@ parameter_types! {
#[cfg(feature = "runtime-benchmarks")]
mod testing {
use sp_runtime::traits::MaybeEquivalence;
use pezsp_runtime::traits::MaybeEquivalence;
use xcm_builder::WithLatestLocationConverter;
use super::*;
@@ -601,8 +601,8 @@ mod tests {
}
mod location_conversion {
use sp_core::H160;
use sp_runtime::traits::{Convert, TryConvert};
use pezsp_core::H160;
use pezsp_runtime::traits::{Convert, TryConvert};
use xcm::latest::{Junction::AccountKey20, Location};
use crate::{
@@ -691,7 +691,7 @@ mod tests {
#[test]
fn test_transactors_encode_call() {
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let transactor = Transactors::Relay;
let call = UtilityAvailableCalls::AsDerivative(0, vec![]);
let encoded = transactor.encode_call(call);
@@ -846,7 +846,7 @@ mod tests {
#[test]
fn test_absolute_and_relative_reserve_with_self_location() {
// We need to use TestExternalities for this test
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
// Test with the actual SelfLocationAbsolute
let self_location = SelfLocationAbsolute::get();
let asset =
+4 -4
View File
@@ -1,6 +1,6 @@
use pezframe_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight};
use sp_runtime::Perbill;
use sp_version::{Cow, RuntimeVersion};
use pezsp_runtime::Perbill;
use pezsp_version::{Cow, RuntimeVersion};
use crate::types::BlockNumber;
@@ -33,7 +33,7 @@ pub const P_FACTOR: u128 = 10;
pub const Q_FACTOR: u128 = 100;
pub const POLY_DEGREE: u8 = 1;
#[sp_version::runtime_version]
#[pezsp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("template-teyrchain"),
impl_name: Cow::Borrowed("template-teyrchain"),
@@ -81,7 +81,7 @@ pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
#[cfg(not(feature = "async-backing"))]
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
pezcumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet
@@ -2,13 +2,13 @@
use alloc::{format, vec, vec::Vec};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::build_struct_json_patch;
use teyrchains_common::AuraId;
use serde_json::Value;
use sp_core::{ecdsa, Pair, Public};
use sp_genesis_builder::PresetId;
use sp_runtime::traits::{IdentifyAccount, Verify};
use pezsp_core::{ecdsa, Pair, Public};
use pezsp_genesis_builder::PresetId;
use pezsp_runtime::traits::{IdentifyAccount, Verify};
use crate::{
constants::currency::EXISTENTIAL_DEPOSIT, AccountId, BalancesConfig, CollatorSelectionConfig,
@@ -124,8 +124,8 @@ fn development_config_genesis() -> Value {
/// Provides the JSON representation of predefined genesis config for given `id`.
pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
let patch = match id.as_ref() {
sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET => local_testnet_genesis(),
sp_genesis_builder::DEV_RUNTIME_PRESET => development_config_genesis(),
pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET => local_testnet_genesis(),
pezsp_genesis_builder::DEV_RUNTIME_PRESET => development_config_genesis(),
_ => return None,
};
Some(
@@ -138,8 +138,8 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
/// List of supported presets.
pub fn preset_names() -> Vec<PresetId> {
vec![
PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET),
PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET),
PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET),
PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET),
]
}
@@ -274,14 +274,14 @@ mod tests {
fn get_preset_roundtrips_known_ids() {
// LOCAL_TESTNET
let p =
super::get_preset(&PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET))
super::get_preset(&PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET))
.expect("local preset should exist");
let from_api = parse_bytes(p);
let from_fn = super::local_testnet_genesis();
assert_eq!(from_api, from_fn, "local_testnet preset must match function output");
// DEV
let p = super::get_preset(&PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET))
let p = super::get_preset(&PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET))
.expect("dev preset should exist");
let from_api = parse_bytes(p);
let from_fn = super::development_config_genesis();
@@ -292,11 +292,11 @@ mod tests {
fn preset_names_lists_supported() {
let names = super::preset_names();
assert!(
names.contains(&PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET)),
names.contains(&PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET)),
"DEV preset should be listed"
);
assert!(
names.contains(&PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET)),
names.contains(&PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET)),
"LOCAL_TESTNET preset should be listed"
);
}
+32 -29
View File
@@ -1,3 +1,6 @@
pub use pezframe_system as frame_system;
pub use pezframe_support as frame_support;
pub use pezcumulus_pezpallet_teyrchain_system as cumulus_pallet_parachain_system;
#![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
#![recursion_limit = "256"]
@@ -22,19 +25,19 @@ use pezframe_support::{
};
pub use genesis_config_presets::TEYRCHAIN_ID;
use smallvec::smallvec;
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::H160;
pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_core::H160;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
use sp_runtime::{
pub use pezsp_runtime::BuildStorage;
use pezsp_runtime::{
impl_opaque_keys,
traits::{DispatchInfoOf, Dispatchable, Get, PostDispatchInfoOf, UniqueSaturatedInto},
transaction_validity::{TransactionValidity, TransactionValidityError},
};
pub use sp_runtime::{MultiAddress, Perbill, Permill};
use sp_std::prelude::{Vec, *};
pub use pezsp_runtime::{MultiAddress, Perbill, Permill};
use pezsp_std::prelude::{Vec, *};
#[cfg(feature = "std")]
use sp_version::NativeVersion;
use pezsp_version::NativeVersion;
use crate::{
configs::pezpallet_custom_origins,
@@ -61,7 +64,7 @@ use crate::{
use crate::{constants::SLOT_DURATION, types::ConsensusHook};
#[cfg(feature = "runtime-benchmarks")]
type ExistentialDeposit = sp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
type ExistentialDeposit = pezsp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
impl fp_self_contained::SelfContainedCall for RuntimeCall {
type SignedInfo = H160;
@@ -108,7 +111,7 @@ impl fp_self_contained::SelfContainedCall for RuntimeCall {
fn apply_self_contained(
self,
info: Self::SignedInfo,
) -> Option<sp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {
) -> Option<pezsp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {
match self {
call @ RuntimeCall::Ethereum(pezpallet_ethereum::Call::transact { .. }) =>
Some(call.dispatch(RuntimeOrigin::from(
@@ -156,8 +159,8 @@ impl WeightToFeePolynomial for WeightToFee {
/// continue syncing the network through upgrades to even the core data
/// structures.
pub mod opaque {
pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use sp_runtime::{
pub use pezsp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use pezsp_runtime::{
generic,
traits::{BlakeTwo256, Hash as HashT},
};
@@ -262,7 +265,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -271,13 +274,13 @@ mod apis {
}
mod benchmarks {
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
@@ -318,7 +321,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -327,13 +330,13 @@ mod apis {
}
mod benchmarks {
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
@@ -382,7 +385,7 @@ mod test {
use fp_self_contained::SelfContainedCall;
use pezframe_support::dispatch::GetDispatchInfo;
use pezpallet_ethereum::TransactionAction;
use sp_core::{H160, H256, U256};
use pezsp_core::{H160, H256, U256};
use crate::{Runtime, RuntimeCall, RuntimeOrigin};
@@ -457,10 +460,10 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
AccountId20(addr.0),
90000000000000000,
@@ -482,7 +485,7 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.validate_self_contained(
&H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
&info,
@@ -500,18 +503,18 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let who = AccountId20(addr.0);
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
who,
90000000000000000,
);
// I do not know any other way to increase nonce
for _ in 0..842 {
pezframe_system::Pallet::<Runtime>::inc_account_nonce(who);
pezframe_system::Pezpallet::<Runtime>::inc_account_nonce(who);
}
let () = call
.pre_dispatch_self_contained(&addr, &info, 0)
@@ -528,7 +531,7 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.pre_dispatch_self_contained(
&H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
&info,
@@ -545,18 +548,18 @@ mod test {
transaction: get_transaction(),
});
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let who = AccountId20(addr.0);
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
who,
90000000000000000,
);
// I do not know any other way to increase nonce
for _ in 0..842 {
pezframe_system::Pallet::<Runtime>::inc_account_nonce(who);
pezframe_system::Pezpallet::<Runtime>::inc_account_nonce(who);
}
let _ = call
.apply_self_contained(addr)
@@ -572,7 +575,7 @@ mod test {
keep_alive: true,
});
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.apply_self_contained(
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
);
+1 -1
View File
@@ -6,7 +6,7 @@ use pezpallet_evm::{
use pezpallet_evm_precompile_modexp::Modexp;
use pezpallet_evm_precompile_sha3fips::Sha3FIPS256;
use pezpallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256};
use sp_core::H160;
use pezsp_core::H160;
#[derive(Default)]
pub struct OpenZeppelinPrecompiles<R>(PhantomData<R>);
+8 -8
View File
@@ -11,15 +11,15 @@ use pezkuwi_runtime_common::impls::{
LocatableAssetConverter, VersionedLocatableAsset, VersionedLocationConverter,
};
use scale_info::TypeInfo;
use sp_core::ConstU32;
use sp_runtime::{
use pezsp_core::ConstU32;
use pezsp_runtime::{
generic,
traits::{BlakeTwo256, IdentifyAccount, Verify},
Perbill, RuntimeDebug,
};
use sp_version::RuntimeVersion;
use pezsp_version::RuntimeVersion;
use xcm::{
latest::{InteriorLocation, Junction::PalletInstance},
latest::{InteriorLocation, Junction::PezpalletInstance},
VersionedLocation,
};
use xcm_builder::PayOverXcm;
@@ -60,7 +60,7 @@ pub type AssetId = u128;
pub type Nonce = u32;
/// A hash of some data used by the chain.
pub type Hash = sp_core::H256;
pub type Hash = pezsp_core::H256;
/// An index to a block.
pub type BlockNumber = u32;
@@ -75,7 +75,7 @@ pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
pub type Block = generic::Block<Header, UncheckedExtrinsic>;
/// The TransactionExtension to the basic transaction logic.
pub type TxExtension = cumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::CheckNonZeroSender<Runtime>,
@@ -109,7 +109,7 @@ pub type PriceForSiblingTeyrChainDelivery = pezkuwi_runtime_common::xcm_sender::
/// Configures the number of blocks that can be created without submission of validity proof to the relay chain
#[cfg(not(feature = "tanssi"))]
pub type ConsensusHook = cumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
pub type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PTYRESSING_VELOCITY,
@@ -204,7 +204,7 @@ parameter_types! {
mod test {
mod filter {
use pezframe_support::traits::InstanceFilter;
use sp_core::H256;
use pezsp_core::H256;
use crate::{types::ProxyType, AssetManager, RuntimeCall};
+2 -2
View File
@@ -18,8 +18,8 @@
//! Expose the auto generated weight files.
pub mod block_weights;
pub mod cumulus_pezpallet_teyrchain_system;
pub mod cumulus_pezpallet_xcmp_queue;
pub mod pezcumulus_pezpallet_teyrchain_system;
pub mod pezcumulus_pezpallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod pezpallet_asset_manager;
pub mod pezpallet_assets;
@@ -1,5 +1,5 @@
//! Autogenerated weights for `cumulus_pezpallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -16,10 +16,10 @@
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=benchmarking/results/results-cumulus_pezpallet_teyrchain_system.json
// --pezpallet=cumulus_pezpallet_teyrchain_system
// --json-file=benchmarking/results/results-pezcumulus_pezpallet_teyrchain_system.json
// --pezpallet=pezcumulus_pezpallet_teyrchain_system
// --chain=dev
// --output=benchmarking/new-benchmarks/cumulus_pezpallet_teyrchain_system.rs
// --output=benchmarking/new-benchmarks/pezcumulus_pezpallet_teyrchain_system.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -29,9 +29,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pezpallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
/// Storage: `TeyrChainSystem::LastDmqMqcHead` (r:1 w:1)
/// Proof: `TeyrChainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
@@ -1,5 +1,5 @@
//! Autogenerated weights for `cumulus_pezpallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -16,10 +16,10 @@
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=benchmarking/results/results-cumulus_pezpallet_xcmp_queue.json
// --pezpallet=cumulus_pezpallet_xcmp_queue
// --json-file=benchmarking/results/results-pezcumulus_pezpallet_xcmp_queue.json
// --pezpallet=pezcumulus_pezpallet_xcmp_queue
// --chain=dev
// --output=benchmarking/new-benchmarks/cumulus_pezpallet_xcmp_queue.rs
// --output=benchmarking/new-benchmarks/pezcumulus_pezpallet_xcmp_queue.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -29,9 +29,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pezpallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezcumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
fn set_config_with_u32() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_asset_manager`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_asset_manager::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_asset_manager::WeightInfo for WeightInfo<T> {
/// Storage: `AssetManager::AssetIdType` (r:1 w:1)
/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Assets::Asset` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_assets`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_assets::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_assets::WeightInfo for WeightInfo<T> {
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
/// Storage: `Assets::NextAssetId` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_balances`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_balances::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_balances::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
fn transfer_allow_death() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_collator_selection`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_collator_selection::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_collator_selection::WeightInfo for WeightInfo<T> {
/// Storage: `Session::NextKeys` (r:20 w:0)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `CollatorSelection::Invulnerables` (r:0 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_conviction_voting`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_conviction_voting::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_conviction_voting::WeightInfo for WeightInfo<T> {
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_evm`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_evm::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_evm::WeightInfo for WeightInfo<T> {
fn withdraw() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_message_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_message_queue::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_message_queue::WeightInfo for WeightInfo<T> {
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_multisig`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_multisig::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Proof Size summary in bytes:
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_preimage`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_preimage::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_preimage::WeightInfo for WeightInfo<T> {
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_proxy`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_proxy::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_proxy::WeightInfo for WeightInfo<T> {
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_referenda`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_referenda::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_referenda::WeightInfo for WeightInfo<T> {
/// Storage: `Referenda::ReferendumCount` (r:1 w:1)
/// Proof: `Referenda::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_scheduler`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_scheduler::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_scheduler::WeightInfo for WeightInfo<T> {
/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn service_agendas_base() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_session`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_session::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_session::WeightInfo for WeightInfo<T> {
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_sudo`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_sudo::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_sudo::WeightInfo for WeightInfo<T> {
/// Storage: `Sudo::Key` (r:1 w:1)
/// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
fn set_key() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_timestamp`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_timestamp::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_timestamp::WeightInfo for WeightInfo<T> {
/// Storage: `Timestamp::Now` (r:1 w:1)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Aura::CurrentSlot` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_treasury`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_treasury::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_treasury::WeightInfo for WeightInfo<T> {
/// Storage: `Treasury::ProposalCount` (r:1 w:1)
/// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Treasury::Approvals` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_utility`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_utility::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_utility::WeightInfo for WeightInfo<T> {
/// The range of component `c` is `[0, 1000]`.
fn batch(c: u32, ) -> Weight {
// Proof Size summary in bytes:
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_whitelist`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_whitelist::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_whitelist::WeightInfo for WeightInfo<T> {
/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
/// Storage: `Preimage::StatusFor` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm::WeightInfo for WeightInfo<T> {
/// Storage: `PezkuwiXcm::AuthorizedAliases` (r:1 w:1)
/// Proof: `PezkuwiXcm::AuthorizedAliases` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn add_authorized_alias() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm_transactor`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm_transactor::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm_transactor::WeightInfo for WeightInfo<T> {
/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm_weight_trader`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm_weight_trader::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm_weight_trader::WeightInfo for WeightInfo<T> {
/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
fn add_asset() -> Weight {
+1 -1
View File
@@ -3,7 +3,7 @@ use evm_runtime_template::{BuildStorage, Runtime, System};
use pezframe_support::weights::Weight;
pub fn run_with_system_weight<F: FnMut()>(w: Weight, mut assertions: F) {
let mut t: sp_io::TestExternalities =
let mut t: pezsp_io::TestExternalities =
pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap().into();
t.execute_with(|| {
System::set_block_consumed_resources(w, 0);
+11 -11
View File
@@ -29,8 +29,8 @@ mod runtime_tests {
BlockNumber, Runtime,
};
use pezframe_support::{pezpallet_prelude::Weight, traits::TypedGet, PezpalletId};
use sp_runtime::{Cow, Perbill};
use sp_version::RuntimeVersion;
use pezsp_runtime::{Cow, Perbill};
use pezsp_version::RuntimeVersion;
use xcm::latest::prelude::BodyId;
// RUNTIME_API_VERSIONS constant is generated by a macro and is private.
@@ -67,7 +67,7 @@ mod runtime_tests {
MAXIMUM_BLOCK_WEIGHT,
Weight::from_parts(
pezframe_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64
pezcumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64
)
);
@@ -76,7 +76,7 @@ mod runtime_tests {
MAXIMUM_BLOCK_WEIGHT,
Weight::from_parts(
pezframe_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64
pezcumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64
)
);
@@ -107,9 +107,9 @@ mod runtime_tests {
assert_eq!(MAX_BLOCK_LENGTH, 5 * 1024 * 1024);
assert_eq!(<Runtime as pezframe_system::Config>::SS58Prefix::get(), 42);
assert_eq!(<Runtime as frame_system::Config>::SS58Prefix::get(), 42);
assert_eq!(<Runtime as pezframe_system::Config>::MaxConsumers::get(), 16);
assert_eq!(<Runtime as frame_system::Config>::MaxConsumers::get(), 16);
}
#[test]
@@ -173,14 +173,14 @@ mod runtime_tests {
}
#[test]
fn cumulus_pezpallet_teyrchain_system_constants() {
fn pezcumulus_pezpallet_teyrchain_system_constants() {
assert_eq!(
<Runtime as cumulus_pezpallet_teyrchain_system::Config>::ReservedXcmpWeight::get(),
<Runtime as pezcumulus_pezpallet_teyrchain_system::Config>::ReservedXcmpWeight::get(),
MAXIMUM_BLOCK_WEIGHT.saturating_div(4)
);
assert_eq!(
<Runtime as cumulus_pezpallet_teyrchain_system::Config>::ReservedDmpWeight::get(),
<Runtime as pezcumulus_pezpallet_teyrchain_system::Config>::ReservedDmpWeight::get(),
MAXIMUM_BLOCK_WEIGHT.saturating_div(4)
);
}
@@ -192,9 +192,9 @@ mod runtime_tests {
}
#[test]
fn cumulus_pezpallet_xcmp_queue_constants() {
fn pezcumulus_pezpallet_xcmp_queue_constants() {
assert_eq!(
<Runtime as cumulus_pezpallet_xcmp_queue::Config>::MaxInboundSuspended::get(),
<Runtime as pezcumulus_pezpallet_xcmp_queue::Config>::MaxInboundSuspended::get(),
1000
);
}
+2 -2
View File
@@ -2,10 +2,10 @@
mod common;
use common::*;
use evm_runtime_template::{Runtime, RuntimeBlockWeights};
use pezframe_support::pezpallet_prelude::*;
use pezframe_support::pallet_prelude::*;
use pezpallet_transaction_payment::Multiplier;
use pezkuwi_runtime_common::MinimumMultiplier;
use sp_runtime::{traits::Convert, Perquintill};
use pezsp_runtime::{traits::Convert, Perquintill};
fn min_multiplier() -> Multiplier {
MinimumMultiplier::get()
+4 -4
View File
@@ -2,13 +2,13 @@
#[cfg(not(feature = "tanssi"))]
use evm_runtime_template::{Aura, AuraExt, Authorship, CollatorSelection, Session};
use evm_runtime_template::{
Balances, CumulusXcm, MessageQueue, Multisig, TeyrChainInfo, TeyrChainSystem, PezkuwiXcm,
Balances, PezcumulusXcm, MessageQueue, Multisig, TeyrChainInfo, TeyrChainSystem, PezkuwiXcm,
Proxy, Runtime, Sudo, System, Timestamp, TransactionPayment, XcmpQueue,
};
use pezframe_support::traits::PalletInfo;
use pezframe_support::traits::PezpalletInfo;
fn assert_pezpallet_prefix<P: 'static>(name: &str) {
assert_eq!(<Runtime as pezframe_system::Config>::PalletInfo::name::<P>(), Some(name));
assert_eq!(<Runtime as frame_system::Config>::PezpalletInfo::name::<P>(), Some(name));
}
#[test]
@@ -24,7 +24,7 @@ fn verify_pezpallet_prefixes() {
assert_pezpallet_prefix::<Multisig>("Multisig");
assert_pezpallet_prefix::<XcmpQueue>("XcmpQueue");
assert_pezpallet_prefix::<PezkuwiXcm>("PezkuwiXcm");
assert_pezpallet_prefix::<CumulusXcm>("CumulusXcm");
assert_pezpallet_prefix::<PezcumulusXcm>("PezcumulusXcm");
assert_pezpallet_prefix::<MessageQueue>("MessageQueue");
#[cfg(not(feature = "tanssi"))]
+13 -13
View File
@@ -1,14 +1,14 @@
pub mod teyrchain;
pub mod relay_chain;
use sp_runtime::BuildStorage;
use sp_tracing;
use pezsp_runtime::BuildStorage;
use pezsp_tracing;
use xcm::prelude::*;
use xcm_executor::traits::ConvertLocation;
use xcm_simulator::{decl_test_network, decl_test_teyrchain, decl_test_relay_chain, TestExt};
pub const PARA_ALICE: [u8; 20] = [1u8; 20];
pub const ALICE: sp_runtime::AccountId32 = sp_runtime::AccountId32::new([1u8; 32]);
pub const ALICE: pezsp_runtime::AccountId32 = pezsp_runtime::AccountId32::new([1u8; 32]);
pub const INITIAL_BALANCE: u128 = 1_000_000_000;
decl_test_teyrchain! {
@@ -61,22 +61,22 @@ pub fn child_account_id(para: u32) -> relay_chain::AccountId {
relay_chain::location_converter::LocationConverter::convert_location(&location.into()).unwrap()
}
pub fn child_account_account_id(para: u32, who: sp_runtime::AccountId32) -> relay_chain::AccountId {
pub fn child_account_account_id(para: u32, who: pezsp_runtime::AccountId32) -> relay_chain::AccountId {
let location = (TeyrChain(para), AccountId32 { network: None, id: who.into() });
relay_chain::location_converter::LocationConverter::convert_location(&location.into()).unwrap()
}
pub fn sibling_account_account_id(para: u32, who: sp_runtime::AccountId32) -> teyrchain::AccountId {
pub fn sibling_account_account_id(para: u32, who: pezsp_runtime::AccountId32) -> teyrchain::AccountId {
let location = (Parent, TeyrChain(para), AccountId32 { network: None, id: who.into() });
teyrchain::location_converter::LocationConverter::convert_location(&location.into()).unwrap()
}
pub fn parent_account_account_id(who: sp_runtime::AccountId32) -> teyrchain::AccountId {
pub fn parent_account_account_id(who: pezsp_runtime::AccountId32) -> teyrchain::AccountId {
let location = (Parent, AccountId32 { network: None, id: who.into() });
teyrchain::location_converter::LocationConverter::convert_location(&location.into()).unwrap()
}
pub fn para_ext(para_id: u32) -> sp_io::TestExternalities {
pub fn para_ext(para_id: u32) -> pezsp_io::TestExternalities {
use teyrchain::{MsgQueue, Runtime, System};
let mut t = pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap();
@@ -91,16 +91,16 @@ pub fn para_ext(para_id: u32) -> sp_io::TestExternalities {
.assimilate_storage(&mut t)
.unwrap();
let mut ext = sp_io::TestExternalities::new(t);
let mut ext = pezsp_io::TestExternalities::new(t);
ext.execute_with(|| {
sp_tracing::try_init_simple();
pezsp_tracing::try_init_simple();
System::set_block_number(1);
MsgQueue::set_para_id(para_id.into());
});
ext
}
pub fn relay_ext() -> sp_io::TestExternalities {
pub fn relay_ext() -> pezsp_io::TestExternalities {
use relay_chain::{Runtime, System};
let mut t = pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap();
@@ -116,12 +116,12 @@ pub fn relay_ext() -> sp_io::TestExternalities {
.assimilate_storage(&mut t)
.unwrap();
let mut ext = sp_io::TestExternalities::new(t);
let mut ext = pezsp_io::TestExternalities::new(t);
ext.execute_with(|| {
System::set_block_number(1);
});
ext
}
pub type RelayChainPezpalletXcm = pezpallet_xcm::Pallet<relay_chain::Runtime>;
pub type TeyrChainPezpalletXcm = pezpallet_xcm::Pallet<teyrchain::Runtime>;
pub type RelayChainPezpalletXcm = pezpallet_xcm::Pezpallet<relay_chain::Runtime>;
pub type TeyrChainPezpalletXcm = pezpallet_xcm::Pezpallet<teyrchain::Runtime>;
@@ -10,8 +10,8 @@ use pezkuwi_runtime_teyrchains::{
inclusion::{AggregateMessageOrigin, UmpQueueId},
origin, shared,
};
use sp_core::ConstU32;
use sp_runtime::{traits::IdentityLookup, AccountId32};
use pezsp_core::ConstU32;
use pezsp_runtime::{traits::IdentityLookup, AccountId32};
use xcm::latest::prelude::*;
use xcm_builder::{IsConcrete, SignedToAccountId32};
pub use xcm_config::*;
@@ -25,7 +25,7 @@ parameter_types! {
}
#[derive_impl(pezframe_system::config_preludes::TestDefaultConfig)]
impl pezframe_system::Config for Runtime {
impl frame_system::Config for Runtime {
type AccountData = pezpallet_balances::AccountData<Balance>;
type AccountId = AccountId;
type Block = Block;
@@ -8,8 +8,8 @@ use pezframe_support::{
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
};
use pezframe_system::EnsureRoot;
use sp_core::ConstU32;
use sp_runtime::traits::{Get, IdentityLookup};
use pezsp_core::ConstU32;
use pezsp_runtime::traits::{Get, IdentityLookup};
use xcm::latest::prelude::*;
use xcm_builder::EnsureXcmOrigin;
pub use xcm_config::*;
@@ -24,7 +24,7 @@ parameter_types! {
}
#[derive_impl(pezframe_system::config_preludes::TestDefaultConfig)]
impl pezframe_system::Config for Runtime {
impl frame_system::Config for Runtime {
type AccountData = pezpallet_balances::AccountData<Balance>;
type AccountId = AccountId;
type Block = Block;
+1 -1
View File
@@ -13,5 +13,5 @@ mkdir benchmarking/new-benchmarks
while IFS= read -r line; do
echo "Creating benchmark for: $line"
target/release/parachain-template-node benchmark pallet --steps=50 --repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 --json-file=benchmarking/results/results-$line.json --pallet=$line --chain=dev --output=benchmarking/new-benchmarks/$line.rs
target/release/teyrchain-template-node benchmark pezpallet --steps=50 --repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 --json-file=benchmarking/results/results-$line.json --pezpallet=$line --chain=dev --output=benchmarking/new-benchmarks/$line.rs
done < $filename
+19 -19
View File
@@ -1,7 +1,7 @@
#!/bin/bash
ZOMBIENET_V=v1.3.106
POLKADOT_V=stable2407-1
POLKAHEZ_V=stable2407-1
# Detect the operating system
case "$(uname -s)" in
@@ -36,21 +36,21 @@ fi
echo "Using binary: $ZOMBIENET_BIN"
BIN_DIR=bin-$POLKADOT_V
BIN_DIR=bin-$POLKAHEZ_V
build_polkadot() {
echo "cloning polkadot repository..."
build_pezkuwi() {
echo "cloning pezkuwi repository..."
CWD=$(pwd)
mkdir -p "$BIN_DIR"
pushd /tmp
git clone https://github.com/paritytech/polkadot-sdk.git
pushd polkadot-sdk
git checkout polkadot-$POLKADOT_V
echo "building polkadot executable..."
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
pushd pezkuwi-sdk
git checkout pezkuwi-$POLKAHEZ_V
echo "building pezkuwi executable..."
cargo build --release --features fast-runtime
cp target/release/polkadot "$CWD/$BIN_DIR"
cp target/release/polkadot-execute-worker "$CWD/$BIN_DIR"
cp target/release/polkadot-prepare-worker "$CWD/$BIN_DIR"
cp target/release/pezkuwi "$CWD/$BIN_DIR"
cp target/release/pezkuwi-execute-worker "$CWD/$BIN_DIR"
cp target/release/pezkuwi-prepare-worker "$CWD/$BIN_DIR"
popd
popd
}
@@ -58,7 +58,7 @@ build_polkadot() {
zombienet_init() {
if [ ! -f $ZOMBIENET_BIN ]; then
echo "fetching zombienet executable..."
curl -LO https://github.com/paritytech/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
curl -LO https://github.com/pezkuwichain/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
chmod +x $ZOMBIENET_BIN
fi
}
@@ -66,18 +66,18 @@ zombienet_init() {
zombienet_build() {
if [ ! -f $ZOMBIENET_BIN ]; then
echo "fetching zombienet executable..."
curl -LO https://github.com/paritytech/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
curl -LO https://github.com/pezkuwichain/zombienet/releases/download/$ZOMBIENET_V/$ZOMBIENET_BIN
chmod +x $ZOMBIENET_BIN
fi
if [ ! -f $BIN_DIR/polkadot ]; then
build_polkadot
if [ ! -f $BIN_DIR/pezkuwi ]; then
build_pezkuwi
fi
}
zombienet_devnet() {
zombienet_init
cargo build --release
echo "spawning paseo-local relay chain plus devnet as a parachain..."
echo "spawning paseo-local relay chain plus devnet as a teyrchain..."
local dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
./$ZOMBIENET_BIN spawn "$dir/../zombienet-config/devnet.toml" -p native
}
@@ -86,9 +86,9 @@ zombienet_devnet() {
print_help() {
echo "This is a shell script to automate the execution of zombienet."
echo ""
echo "$ ./zombienet.sh init # fetches zombienet and polkadot executables"
echo "$ ./zombienet.sh build # builds polkadot executables from source"
echo "$ ./zombienet.sh devnet # spawns a paseo-local relay chain plus parachain devnet-local as a parachain"
echo "$ ./zombienet.sh init # fetches zombienet and pezkuwi executables"
echo "$ ./zombienet.sh build # builds pezkuwi executables from source"
echo "$ ./zombienet.sh devnet # spawns a paseo-local relay chain plus teyrchain devnet-local as a teyrchain"
}
SUBCOMMAND=$1
+10 -10
View File
@@ -26,9 +26,9 @@ parity-scale-codec = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-runtime = { workspace = true }
sp-state-machine = { workspace = true }
pezsp-consensus-aura = { workspace = true }
pezsp-runtime = { workspace = true }
pezsp-state-machine = { workspace = true }
pezpallet-balances = { workspace = true }
pezpallet-collator-selection = { workspace = true }
@@ -39,10 +39,10 @@ pezpallet-timestamp = { workspace = true }
pezpallet-utility = { workspace = true }
pezpallet-whitelist = { workspace = true }
cumulus-pezpallet-teyrchain-system = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-teyrchain-inherent = { workspace = true }
cumulus-test-relay-sproof-builder = { workspace = true }
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
pezcumulus-primitives-core = { workspace = true }
pezcumulus-primitives-teyrchain-inherent = { workspace = true }
pezcumulus-test-relay-sproof-builder = { workspace = true }
[features]
default = [ "std", "try-runtime" ]
@@ -57,8 +57,8 @@ std = [
"pezpallet-utility/std",
"pezpallet-whitelist/std",
"parity-scale-codec/std",
"sp-consensus-aura/std",
"sp-runtime/std",
"pezsp-consensus-aura/std",
"pezsp-runtime/std",
]
tanssi = []
try-runtime = [
@@ -72,7 +72,7 @@ try-runtime = [
"pezpallet-timestamp/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-whitelist/try-runtime",
"sp-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
[lints]
+10 -10
View File
@@ -18,23 +18,23 @@ use pezframe_support::{
use pezframe_system::Account;
use pezpallet_balances::{Holds, TotalIssuance};
use parity_scale_codec::{DecodeLimit, Encode};
use sp_consensus_aura::{Slot, AURA_ENGINE_ID};
use sp_runtime::{
use pezsp_consensus_aura::{Slot, AURA_ENGINE_ID};
use pezsp_runtime::{
testing::H256,
traits::{Dispatchable, Header},
Digest, DigestItem, Storage,
};
use sp_state_machine::BasicExternalities;
use pezsp_state_machine::BasicExternalities;
fn generate_genesis(accounts: &[AccountId]) -> Storage {
use evm_runtime_template::{BalancesConfig, RuntimeGenesisConfig};
#[cfg(not(feature = "tanssi"))]
use evm_runtime_template::{CollatorSelectionConfig, SessionConfig, SessionKeys};
#[cfg(not(feature = "tanssi"))]
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
#[cfg(not(feature = "tanssi"))]
use sp_runtime::app_crypto::ByteArray;
use sp_runtime::BuildStorage;
use pezsp_runtime::app_crypto::ByteArray;
use pezsp_runtime::BuildStorage;
// Configure endowed accounts with initial balance of 1 << 60.
let balances = accounts.iter().cloned().map(|k| (k, 1 << 60)).collect();
@@ -177,9 +177,9 @@ fn initialize_block(block: u32) {
.unwrap();
let teyrchain_validation_data = {
use cumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
use cumulus_primitives_teyrchain_inherent::TeyrChainInherentData;
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
use pezcumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
use pezcumulus_primitives_teyrchain_inherent::TeyrChainInherentData;
use pezcumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
let parent_head = HeadData(prev_header.clone().unwrap_or(parent_header.clone()).encode());
let sproof_builder = RelayStateSproofBuilder {
@@ -202,7 +202,7 @@ fn initialize_block(block: u32) {
downward_messages: Default::default(),
horizontal_messages: Default::default(),
};
cumulus_pezpallet_teyrchain_system::Call::set_validation_data { data }
pezcumulus_pezpallet_teyrchain_system::Call::set_validation_data { data }
};
Executive::apply_extrinsic(UncheckedExtrinsic::new_bare(RuntimeCall::TeyrChainSystem(
+3 -3
View File
@@ -1,10 +1,10 @@
# Zombienet configuration
Zombienet aims to be a testing framework for Substrate based blockchains, providing a simple cli tool that allows users to spawn and test ephemeral networks.
Zombienet aims to be a testing pezframework for Bizinikiwi based blockchains, providing a simple cli tool that allows users to spawn and test ephemeral networks.
## Start a development chain
Firstly build Polkadot binaries with:
Firstly build Pezkuwi binaries with:
```sh
$ scripts/zombienet.sh build
@@ -16,7 +16,7 @@ This process can take some time, so please be patient. If on Linux, you can alte
$ scripts/zombinet.sh init
```
Once Polkadot binaries are in place you can spawn a local testnet by running the following command:
Once Pezkuwi binaries are in place you can spawn a local testnet by running the following command:
```shell
$ scripts/zombienet.sh devnet
+6 -6
View File
@@ -1,6 +1,6 @@
[relaychain]
chain = "rococo-local"
default_command = "./bin-stable2407-1/polkadot"
chain = "pezkuwichain-local"
default_command = "./bin-stable2407-1/pezkuwi"
[[relaychain.nodes]]
name = "alice"
@@ -10,21 +10,21 @@ validator = true
name = "bob"
validator = true
[[parachains]]
[[teyrchains]]
id = 1000
addToGenesis = true
cumulus_based = true
pezcumulus_based = true
chain = "dev"
force_decorator = "generic-evm"
[[parachains.collators]]
[[teyrchains.collators]]
name = "collator01"
command = "./target/release/evm-template-node"
ws_port = 9933
rpc_port = 8833
args = ["--rpc-max-connections 10000"]
[[parachains.collators]]
[[teyrchains.collators]]
name = "collator02"
ws_port = 9822
rpc_port = 8822