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
+15 -15
View File
@@ -17,10 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- removed `polkadot launch` (#169)
- removed `pezkuwi launch` (#169)
- explanation for runtime constants (#167)
- proxy filters (#146)
- weights for non-XCM related pallets (#149)
- weights for non-XCM related pezpallets (#149)
## [Unreleased]
@@ -34,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added test for detecting changes in runtime constants (#31)
- Tested and added guidelines about connecting to relay chain (#84)
- Integrated fuzzer (#14)
- Added documentation for pallet assets (#106)
- Added documentation for pezpallet assets (#106)
### Fixed
@@ -46,35 +46,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Upgraded `polkadot-sdk` dependencies from `polkadotv1.3.0` -> `polkadotv1.6.0` (#96)
- Upgraded `pezkuwi-sdk` dependencies from `pezkuwiv1.3.0` -> `pezkuwiv1.6.0` (#96)
## [0.1.0] - 2023-12-21
### Added
- Fork cumulus parachain template (#11)
- Configured pallet-multisig (#13)
- Configured pallet-proxy (#20)
- Configured pallet-utility (#36)
- Fork pezcumulus teyrchain template (#11)
- Configured pezpallet-multisig (#13)
- Configured pezpallet-proxy (#20)
- Configured pezpallet-utility (#36)
- Integration tests (#24)
- Set up Docs (#51)
- Docs for pallet-proxy (#57)
- Docs for pezpallet-proxy (#57)
- Docs for aura-ext (#59)
- Docs for parachain-system (#63)
- Docs for teyrchain-system (#63)
- Docs for collator-selection (#63)
- Docs for pallet-multisig (#64)
- Docs for pallet-transaction-payment (#53)
- Docs for pallet-message-queue (#58)
- Docs for pezpallet-multisig (#64)
- Docs for pezpallet-transaction-payment (#53)
- Docs for pezpallet-message-queue (#58)
- Docs for weights & fees (#66)
- Docs for xcmp-queue (#73)
- Docs for balances (#72)
- Docs for xcm-executor (#77)
- Docs for pallet-xcm (#76)
- Docs for pezpallet-xcm (#76)
### Fixed
- Fix runtime build (#40)
- Add pallet index to multisig (#45)
- Add pezpallet index to multisig (#45)
- Update LICENSE (#50)
- Fix CI to verify runtime builds (#46)
- Don't run Rust CI on Doc Changes (#54)
+5341 -2399
View File
File diff suppressed because it is too large Load Diff
+107 -107
View File
@@ -27,116 +27,116 @@ serde_json = { version = "1.0.121", default-features = false }
smallvec = "1.11.0"
# TODO: update to release
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-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-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-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-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" }
# Moonbeam
pezpallet-asset-manager = { package = "pallet-asset-manager", git = "https://github.com/OpenZeppelin/moonbeam.git", branch = "polkadot-stable2503", default-features = false }
+38 -38
View File
@@ -25,31 +25,31 @@ generic-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-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-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-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-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 }
@@ -58,17 +58,17 @@ 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-service = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-teyrchain-inherent = { workspace = true }
cumulus-relay-chain-interface = { 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-service = { workspace = true }
pezcumulus-primitives-core = { workspace = true }
pezcumulus-primitives-teyrchain-inherent = { workspace = true }
pezcumulus-relay-chain-interface = { workspace = true }
# Tanssi
nimbus-consensus = { workspace = true }
@@ -85,14 +85,14 @@ runtime-benchmarks = [
"generic-runtime-template/runtime-benchmarks",
"pezkuwi-cli/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
tanssi = []
try-runtime = [
"generic-runtime-template/try-runtime",
"pezkuwi-cli/try-runtime",
"sp-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
[lints]
+10 -10
View File
@@ -1,15 +1,15 @@
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
#[cfg(not(feature = "tanssi"))]
use generic_runtime_template::{constants::currency::EXISTENTIAL_DEPOSIT, AuraId};
use generic_runtime_template::{AccountId, Signature};
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::{sr25519, Pair, Public};
use sp_runtime::traits::{IdentifyAccount, Verify};
use pezsp_core::{sr25519, Pair, Public};
use pezsp_runtime::traits::{IdentifyAccount, Verify};
/// 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;
@@ -33,8 +33,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())
}
}
@@ -69,7 +69,7 @@ pub fn template_session_keys(keys: AuraId) -> generic_runtime_template::SessionK
pub fn development_config() -> 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());
@@ -123,7 +123,7 @@ pub fn development_config() -> ChainSpec {
pub fn local_testnet_config() -> 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());
+12 -12
View File
@@ -4,34 +4,34 @@ use std::path::PathBuf;
#[derive(Debug, clap::Subcommand)]
pub enum Subcommand {
/// Build a chain specification.
BuildSpec(sc_cli::BuildSpecCmd),
BuildSpec(pezsc_cli::BuildSpecCmd),
/// 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.
@@ -39,7 +39,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,
@@ -69,7 +69,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.
///
@@ -102,7 +102,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);
+20 -20
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 pezframe_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
use generic_runtime_template::Block;
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,
@@ -48,14 +48,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)
}
}
@@ -83,14 +83,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)
}
}
@@ -181,9 +181,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`."
@@ -195,7 +195,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(),
@@ -215,7 +215,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();
@@ -224,7 +224,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();
@@ -302,7 +302,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)
}
@@ -316,7 +316,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");
}
@@ -327,11 +327,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)
}
@@ -339,7 +339,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()
}
@@ -374,7 +374,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)
}
+1 -1
View File
@@ -9,6 +9,6 @@ mod cli;
mod command;
mod rpc;
fn main() -> sc_cli::Result<()> {
fn main() -> pezsc_cli::Result<()> {
command::run()
}
+6 -6
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,11 +8,11 @@
use std::sync::Arc;
use generic_runtime_template::{opaque::Block, AccountId, Balance, Nonce};
use sc_client_api::AuxStore;
use sc_transaction_pool_api::TransactionPool;
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
use pezsc_client_api::AuxStore;
use pezsc_transaction_pool_api::TransactionPool;
use pezsp_api::ProvideRuntimeApi;
use pezsp_block_builder::BlockBuilder;
use pezsp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
/// A type representing all RPC extensions.
pub type RpcExtension = jsonrpsee::RpcModule<()>;
+52 -52
View File
@@ -3,26 +3,26 @@
// std
use std::{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, TeyrChainHostFunctions,
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;
// Bizinikiwi Imports
use pezframe_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE;
// Local Runtime Types
@@ -30,17 +30,17 @@ use generic_runtime_template::{
apis::RuntimeApi,
opaque::{Block, Hash},
};
use sc_client_api::Backend;
use sc_consensus::ImportQueue;
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
use sc_network::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::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_keystore::KeystorePtr;
use pezsp_keystore::KeystorePtr;
#[cfg(not(feature = "tanssi"))]
use bizinikiwi_prometheus_endpoint::Registry;
@@ -57,8 +57,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>, Option<TelemetryWorkerHandle>),
>;
@@ -66,12 +66,12 @@ pub type Service = PartialComponents<
///
/// Use this macro if you don't actually need the full service, but just the builder in order to
/// be able to perform chain operations.
pub fn new_partial(config: &Configuration) -> Result<Service, sc_service::Error> {
pub fn new_partial(config: &Configuration) -> 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))
@@ -92,7 +92,7 @@ pub fn new_partial(config: &Configuration) -> Result<Service, sc_service::Error>
.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,
@@ -108,7 +108,7 @@ pub fn new_partial(config: &Configuration) -> Result<Service, sc_service::Error>
});
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(),
@@ -151,14 +151,14 @@ pub fn new_partial(config: &Configuration) -> Result<Service, sc_service::Error>
/// Start a node with the given teyrchain `Configuration` and relay chain `Configuration`.
///
/// 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,
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)?;
@@ -166,10 +166,10 @@ async fn start_node_impl(
let (block_import, mut telemetry, telemetry_worker_handle) = params.other;
#[cfg(feature = "tanssi")]
let (_, mut telemetry, telemetry_worker_handle) = params.other;
let net_config = sc_network::config::FullNetworkConfiguration::<
let net_config = pezsc_network::config::FullNetworkConfiguration::<
_,
_,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>::new(
&teyrchain_config.network,
teyrchain_config.prometheus_config.as_ref().map(|cfg| cfg.registry.clone()),
@@ -188,7 +188,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;
@@ -218,7 +218,7 @@ async fn start_node_impl(
if teyrchain_config.offchain_worker.enabled {
use futures::FutureExt;
let offchain_workers =
sc_offchain::OffchainWorkers::new(sc_offchain::OffchainWorkerOptions {
pezsc_offchain::OffchainWorkers::new(pezsc_offchain::OffchainWorkerOptions {
runtime_api_provider: client.clone(),
is_validator: teyrchain_config.role.is_authority(),
keystore: Some(params.keystore_container.keystore()),
@@ -250,7 +250,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(),
@@ -269,7 +269,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 dictated by its relay-chain.
@@ -289,7 +289,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),
);
}
}
@@ -303,7 +303,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(),
@@ -352,7 +352,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
@@ -362,7 +362,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,))
},
@@ -383,9 +383,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,
_,
_,
_,
@@ -394,7 +394,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(),
@@ -412,20 +412,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,
@@ -477,11 +477,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);
@@ -495,7 +495,7 @@ pub async fn start_teyrchain_node(
pezkuwi_config: Configuration,
collator_options: CollatorOptions,
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, collator_options, para_id, hwbench).await
}
+66 -66
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 }
@@ -49,22 +49,22 @@ 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 }
cumulus-pezpallet-aura-ext = { workspace = true }
pezcumulus-pezpallet-aura-ext = { workspace = true }
pezpallet-aura = { workspace = true }
pezpallet-authorship = { workspace = true }
pezpallet-collator-selection = { workspace = true }
@@ -78,17 +78,17 @@ staging-xcm = { workspace = true }
staging-xcm-builder = { workspace = true }
staging-xcm-executor = { workspace = true }
# Cumulus
# Pezpezcumulus
assets-common = { 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-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 }
teyrchain-info = { workspace = true }
teyrchains-common = { workspace = true }
@@ -112,8 +112,8 @@ pezpallet-cc-authorities-noting = { workspace = true }
[dev-dependencies]
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]
@@ -122,16 +122,16 @@ bizinikiwi-wasm-builder = { workspace = true }
[features]
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-timestamp/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-timestamp/std",
"pezcumulus-primitives-utility/std",
"dp-consensus/std",
"pezframe-benchmarking?/std",
"pezframe-executive/std",
@@ -143,7 +143,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",
@@ -182,20 +182,20 @@ 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",
@@ -204,10 +204,10 @@ std = [
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",
@@ -241,16 +241,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",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
@@ -285,15 +285,15 @@ try-runtime = [
"pezpallet-xcm/try-runtime",
"teyrchain-info/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"sp-runtime/try-runtime",
"pezsp-runtime/try-runtime",
]
# 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" ]
async-backing = [ "openzeppelin-pezpallet-abstractions-proc/async-backing" ]
async-backing = [ "openzeppelin-pallet-abstractions-proc/async-backing" ]
default = [ "std" ]
+7 -7
View File
@@ -17,7 +17,7 @@ use crate::{
};
#[cfg(feature = "runtime-benchmarks")]
type ExistentialDeposit = sp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
type ExistentialDeposit = pezsp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
#[cfg(not(feature = "tanssi"))]
#[openzeppelin_runtime_apis]
@@ -46,7 +46,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type TeyrChainSystem = TeyrChainSystem;
type ParachainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -55,13 +55,13 @@ mod apis {
}
mod benchmarks {
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type TeyrChainSystem = TeyrChainSystem;
type ParachainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
@@ -96,7 +96,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type TeyrChainSystem = TeyrChainSystem;
type ParachainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -105,13 +105,13 @@ mod apis {
}
mod benchmarks {
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type TeyrChainSystem = TeyrChainSystem;
type ParachainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
+4 -4
View File
@@ -7,8 +7,8 @@ pezframe_benchmarking::define_benchmarks!(
[pezpallet_message_queue, MessageQueue]
[pezpallet_sudo, Sudo]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pezpallet_xcmp_queue, XcmpQueue]
[cumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezcumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezpallet_proxy, Proxy]
[pezpallet_utility, Utility]
[pezpallet_multisig, Multisig]
@@ -24,12 +24,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::H256;
use sp_runtime::traits::Hash as THash;
use sp_std::{
use pezsp_core::H256;
use pezsp_runtime::traits::Hash as THash;
use pezsp_std::{
convert::{From, Into},
prelude::*,
};
@@ -73,7 +73,7 @@ impl From<AssetType> for AssetId {
match asset {
AssetType::Xcm(id) => {
let mut result: [u8; 4] = [0u8; 4];
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..4]);
u32::from_le_bytes(result)
}
@@ -155,7 +155,7 @@ impl pezpallet_asset_manager::AssetRegistrar<Runtime> for AssetRegistrar {
Assets::force_create(
RuntimeOrigin::root(),
asset.into(),
sp_runtime::MultiAddress::Id(AssetManager::account_id()),
pezsp_runtime::MultiAddress::Id(AssetManager::account_id()),
is_sufficient,
min_balance,
)?;
@@ -194,7 +194,7 @@ impl pezpallet_asset_manager::AssetRegistrar<Runtime> for AssetRegistrar {
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},
@@ -217,7 +217,7 @@ mod tests {
let _ = Assets::force_create(
RuntimeOrigin::root(),
asset_id.into(),
sp_runtime::MultiAddress::Id(AssetManager::account_id()),
pezsp_runtime::MultiAddress::Id(AssetManager::account_id()),
true,
1,
);
@@ -247,7 +247,7 @@ mod tests {
}
mod account_asset_id_conversion {
use sp_runtime::AccountId32;
use pezsp_runtime::AccountId32;
use crate::{
configs::{
@@ -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");
}
}
+8 -8
View File
@@ -6,12 +6,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::{
@@ -44,8 +44,8 @@ use openzeppelin_pezpallet_abstractions::{impl_openzeppelin_tanssi, TanssiConfig
use teyrchains_common::message_queue::{NarrowOriginToSibling, ParaIdToSibling};
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
#[cfg(not(feature = "tanssi"))]
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_runtime::{
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_runtime::{
traits::{AccountIdLookup, BlakeTwo256, IdentityLookup},
Perbill,
};
@@ -126,7 +126,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;
@@ -153,7 +153,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>;
@@ -14,7 +14,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>;
@@ -53,7 +53,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>;
}
#[cfg(feature = "tanssi")]
@@ -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_runtime::{traits::Convert, Vec};
use xcm::latest::{prelude::*, Junction::PalletInstance};
use pezsp_runtime::{traits::Convert, Vec};
use xcm::latest::{prelude::*, Junction::PezpalletInstance};
use xcm_builder::{
AccountId32Aliases, Case, FixedWeightBounds, FungibleAdapter, FungiblesAdapter,
IsChildSystemTeyrChain, IsConcrete, NoChecking, ParentIsPreset, RelayChainAsNative,
@@ -31,7 +31,7 @@ use crate::{
parameter_types! {
pub PlaceholderAccount: AccountId = PezkuwiXcm::check_account();
pub const RelayNetwork: Option<NetworkId> = None;
pub RelayChainOrigin: RuntimeOrigin = cumulus_pezpallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
pub AssetsPezpalletLocation: Location =
PezpalletInstance(<Assets as PezpalletInfoAccess>::index() as u8).into();
pub UniversalLocation: InteriorLocation = TeyrChain(TeyrChainInfo::teyrchain_id().into()).into();
@@ -114,7 +114,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>,
// Native signed account converter; this just converts an `AccountId32` origin into a normal
// `RuntimeOrigin::Signed` origin of the same 32-byte value.
SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>,
@@ -176,7 +176,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<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,
)>;
@@ -234,11 +234,11 @@ parameter_types! {
}
// 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 {
@@ -411,8 +411,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,
),
}
@@ -433,7 +433,7 @@ parameter_types! {
#[cfg(feature = "runtime-benchmarks")]
mod testing {
use sp_runtime::traits::MaybeEquivalence;
use pezsp_runtime::traits::MaybeEquivalence;
use xcm_builder::WithLatestLocationConverter;
use xcm_executor::traits::ConvertLocation;
@@ -469,7 +469,7 @@ mod testing {
#[cfg(test)]
mod tests {
mod location_conversion {
use sp_runtime::traits::Convert;
use pezsp_runtime::traits::Convert;
use xcm::latest::{Junction::AccountId32, Location};
use crate::configs::{AccountIdToLocation, CurrencyId, CurrencyIdToLocation, SelfReserve};
@@ -526,9 +526,9 @@ mod tests {
}
mod asset_fee_filter {
use cumulus_primitives_core::Junctions::{X1, X4};
use pezcumulus_primitives_core::Junctions::{X1, X4};
use pezframe_support::traits::Contains;
use sp_std::sync::Arc;
use pezsp_std::sync::Arc;
use xcm::{latest::Location, prelude::*};
use crate::configs::{AssetFeesFilter, PezkuwiXcmLocation};
@@ -557,7 +557,7 @@ mod tests {
1,
X4(Arc::new([
Junction::TeyrChain(1000),
Junction::PalletInstance(5),
Junction::PezpalletInstance(5),
Junction::GeneralIndex(42),
Junction::AccountId32 { network: None, id: [1u8; 32] },
])),
@@ -590,7 +590,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(1u16, Vec::<u8>::new());
+4 -4
View File
@@ -1,8 +1,8 @@
extern crate alloc;
use pezframe_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight};
use sp_runtime::Perbill;
use sp_version::RuntimeVersion;
use pezsp_runtime::Perbill;
use pezsp_version::RuntimeVersion;
use crate::{apis, types::BlockNumber};
@@ -26,7 +26,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: alloc::borrow::Cow::Borrowed("template-teyrchain"),
impl_name: alloc::borrow::Cow::Borrowed("template-teyrchain"),
@@ -72,7 +72,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
@@ -1,11 +1,11 @@
use alloc::{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_genesis_builder::PresetId;
use sp_keyring::Sr25519Keyring;
use pezsp_genesis_builder::PresetId;
use pezsp_keyring::Sr25519Keyring;
use crate::{
constants::currency::EXISTENTIAL_DEPOSIT, AccountId, BalancesConfig, CollatorSelectionConfig,
@@ -91,8 +91,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::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(
@@ -105,8 +105,8 @@ pub fn get_preset(id: &PresetId) -> Option<vec::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),
]
}
@@ -203,14 +203,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();
@@ -221,11 +221,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"
);
}
+11 -8
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)]
#![recursion_limit = "256"]
@@ -19,14 +22,14 @@ use pezframe_support::weights::{
};
pub use genesis_config_presets::TEYRCHAIN_ID;
use smallvec::smallvec;
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_runtime::impl_opaque_keys;
pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_runtime::impl_opaque_keys;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
pub use sp_runtime::{MultiAddress, Perbill, Permill};
use sp_std::prelude::*;
pub use pezsp_runtime::BuildStorage;
pub use pezsp_runtime::{MultiAddress, Perbill, Permill};
use pezsp_std::prelude::*;
#[cfg(feature = "std")]
use sp_version::NativeVersion;
use pezsp_version::NativeVersion;
use crate::{
configs::pezpallet_custom_origins,
@@ -79,8 +82,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},
};
+9 -9
View File
@@ -10,15 +10,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},
MultiAddress, MultiSignature, 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;
@@ -58,7 +58,7 @@ pub type AssetId = u32;
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;
@@ -73,7 +73,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>,
@@ -111,7 +111,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,
@@ -205,7 +205,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};
@@ -241,7 +241,7 @@ mod test {
);
assert!(!proxy_type.filter(&invalid_call));
let valid_call = RuntimeCall::Proxy(pezpallet_proxy::Call::reject_announcement {
delegate: sp_runtime::MultiAddress::Id(AssetManager::account_id()),
delegate: pezsp_runtime::MultiAddress::Id(AssetManager::account_id()),
call_hash: H256::zero(),
});
assert!(proxy_type.filter(&valid_call));
+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(210), added: 2685, 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(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_allow_death() -> Weight {
@@ -31,7 +31,7 @@ use pezframe_support::{traits::Get, weights::Weight};
/// 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(936), added: 3411, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
@@ -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(91), added: 2566, 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(1241), added: 3716, 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 pezframe_support::{traits::Get, weights::Weight};
/// 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(32), added: 527, 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_transaction_payment`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_transaction_payment::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_transaction_payment::WeightInfo for WeightInfo<T> {
fn charge_transaction_payment() -> Weight {
// Proof Size summary in bytes:
// Measured: `94`
@@ -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 pezframe_support::weights::Weight;
use generic_runtime_template::{BuildStorage, Runtime, System};
pub fn run_with_system_weight<F: FnMut()>(w: Weight, mut assertions: F) {
let mut t: sp_io::TestExternalities =
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);
@@ -25,8 +25,8 @@ mod runtime_tests {
constants::{currency::*, *},
BlockNumber, Runtime,
};
use sp_runtime::Perbill;
use sp_version::RuntimeVersion;
use pezsp_runtime::Perbill;
use pezsp_version::RuntimeVersion;
use xcm::latest::prelude::BodyId;
#[test]
@@ -62,7 +62,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
)
);
@@ -71,7 +71,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
)
);
@@ -102,9 +102,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]
@@ -168,14 +168,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)
);
}
@@ -187,9 +187,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
@@ -1,11 +1,11 @@
// Integration transaction weight-fee tests
mod common;
use common::*;
use pezframe_support::pezpallet_prelude::*;
use pezframe_support::pallet_prelude::*;
use generic_runtime_template::{Runtime, RuntimeBlockWeights};
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
@@ -1,14 +1,14 @@
// Storage indices integration checks
use pezframe_support::traits::PalletInfo;
use pezframe_support::traits::PezpalletInfo;
#[cfg(not(feature = "tanssi"))]
use generic_runtime_template::{Aura, AuraExt, Authorship, CollatorSelection, Session};
use generic_runtime_template::{
Balances, CumulusXcm, MessageQueue, Multisig, TeyrChainInfo, TeyrChainSystem, PezkuwiXcm,
Balances, PezcumulusXcm, MessageQueue, Multisig, TeyrChainInfo, TeyrChainSystem, PezkuwiXcm,
Proxy, Runtime, Sudo, System, Timestamp, TransactionPayment, XcmpQueue,
};
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,13 +1,13 @@
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 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! {
@@ -60,22 +60,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();
@@ -87,16 +87,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();
@@ -112,12 +112,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>;
@@ -12,8 +12,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::*;
@@ -27,7 +27,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;
@@ -7,8 +7,8 @@ use pezframe_support::{
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
};
use pezframe_system::EnsureRoot;
use sp_core::ConstU32;
use sp_runtime::{
use pezsp_core::ConstU32;
use pezsp_runtime::{
traits::{Get, IdentityLookup},
AccountId32,
};
@@ -26,7 +26,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;
@@ -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
+26 -26
View File
@@ -1,7 +1,7 @@
#!/bin/bash
ZOMBIENET_V=v1.3.106
POLKADOT_V=stable-2407-01
POLKAHEZ_V=stable-2407-01
# Detect the operating system
case "$(uname -s)" in
@@ -36,33 +36,33 @@ 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 release-polkadot-$POLKADOT_V
echo "building polkadot executable..."
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
pushd pezkuwi-sdk
git checkout release-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
}
fetch_polkadot() {
echo "fetching from polkadot repository..."
fetch_pezkuwi() {
echo "fetching from pezkuwi repository..."
echo $BIN_DIR
mkdir -p "$BIN_DIR"
pushd "$BIN_DIR"
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot-execute-worker
wget https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-$POLKADOT_V/polkadot-prepare-worker
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi-execute-worker
wget https://github.com/pezkuwichain/pezkuwi-sdk/releases/download/pezkuwi-$POLKAHEZ_V/pezkuwi-prepare-worker
chmod +x *
popd
}
@@ -70,29 +70,29 @@ fetch_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
if [ ! -f $BIN_DIR/polkadot ]; then
fetch_polkadot
if [ ! -f $BIN_DIR/pezkuwi ]; then
fetch_pezkuwi
fi
}
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
}
@@ -101,9 +101,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",
]
fuzzing = []
tanssi = []
@@ -73,7 +73,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
@@ -19,23 +19,23 @@ use generic_runtime_template::{
use pezpallet_balances::{Holds, TotalIssuance};
use teyrchains_common::AccountId;
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 generic_runtime_template::{BalancesConfig, RuntimeGenesisConfig};
#[cfg(not(feature = "tanssi"))]
use generic_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();
@@ -171,9 +171,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 {
@@ -196,7 +196,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
@@ -1,6 +1,6 @@
[relaychain]
chain = "paseo-local"
default_command = "./bin-v1.6.0/polkadot"
default_command = "./bin-v1.6.0/pezkuwi"
[[relaychain.nodes]]
name = "alice"
@@ -10,20 +10,20 @@ validator = true
name = "bob"
validator = true
[[parachains]]
[[teyrchains]]
id = 1000
addToGenesis = true
cumulus_based = true
pezcumulus_based = true
chain = "dev"
[[parachains.collators]]
[[teyrchains.collators]]
name = "collator01"
command = "./target/release/generic-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