diff --git a/.claude/CRATES_PUBLISH_PLAN.md b/.claude/CRATES_PUBLISH_PLAN.md deleted file mode 100644 index 72ac34e3..00000000 --- a/.claude/CRATES_PUBLISH_PLAN.md +++ /dev/null @@ -1,161 +0,0 @@ -# Crates.io Publish Plan - Pezkuwi SDK - -**Son Guncelleme:** 2026-01-01 19:00 UTC -**Toplam Workspace Crate:** 606 -**Publishable Crate:** ~516 -**Yayinlanan:** ~516 (umbrella + zombienet dahil) -**Registry:** https://crates.io -**Owner:** https://crates.io/users/SatoshiQaziMuhammed - ---- - -## ✅ UMBRELLA CRATE YAYINLANDI! - -**pezkuwi-sdk v0.1.1** basariyla crates.io'ya yayinlandi! (zombienet ozellikleri dahil) - -```bash -cargo search pezkuwi-sdk -# pezkuwi-sdk = "0.1.1" # Pezkuwi SDK umbrella crate. -``` - ---- - -## ✅ ZOMBIENET CRATE'LERI YAYINLANDI! (2026-01-01 ~19:00 UTC) - -6 adet zombienet crate'i rebrand edilip v0.44.0 olarak yayinlandi: - -``` -[x] pezkuwi-zombienet-support v0.44.0 -[x] pezkuwi-zombienet-prom-metrics-parser v0.44.0 -[x] pezkuwi-zombienet-configuration v0.44.0 -[x] pezkuwi-zombienet-provider v0.44.0 -[x] pezkuwi-zombienet-orchestrator v0.44.0 -[x] pezkuwi-zombienet-sdk v0.44.0 -``` - -**Yapilan Degisiklikler:** -- `zombienet-*` → `pezkuwi-zombienet-*` rebrand -- Tum workspace referanslari guncellendi -- Kaynak dosyalarindaki `use zombienet_*` → `use pezkuwi_zombienet_*` guncellendi -- Umbrella'ya 6 zombienet crate eklendi - ---- - -## BU OTURUMDA YAYINLANAN CRATE'LER (2026-01-01) - -### Yeni Yayinlanan (~36 crate) - -``` -[x] pezpallet-contracts v27.0.0 -[x] xcm-pez-simulator v7.0.0 -[x] pezpallet-derivatives v1.0.0 -[x] pezpallet-people v1.0.0 -[x] pezpallet-dummy-dim v1.0.0 -[x] pezpallet-election-provider-multi-block v0.9.0 -[x] pezpallet-multi-asset-bounties v1.0.0 -[x] pezpallet-oracle v1.0.0 -[x] pezpallet-oracle-runtime-api v1.0.0 -[x] pezpallet-origin-restriction v1.0.0 -[x] pezpallet-root-offences v25.0.0 -[x] pezpallet-root-testing v4.0.0 -[x] pezpallet-salary v13.0.0 -[x] pezpallet-session-benchmarking v28.0.0 -[x] pezpallet-skip-feeless-payment v3.0.0 -[x] pezpallet-staking-async-rc-client v0.1.0 -[x] pezpallet-staking-async v0.1.0 -[x] pezpallet-staking-async-ah-client v0.1.0 -[x] pezpallet-staking-async-reward-fn v19.0.0 -[x] pezpallet-staking-async-runtime-api v14.0.0 -[x] pezpallet-staking-runtime-api v14.0.0 -[x] pezpallet-state-trie-migration v29.0.0 -[x] pezpallet-statement v10.0.0 -[x] pezpallet-transaction-storage v27.0.0 -[x] pezpallet-xcm-benchmarks v7.0.0 -[x] pezpallet-xcm-precompiles v0.1.0 -[x] pezkuwichain-runtime-constants v7.0.0 -[x] testnet-teyrchains-constants v1.0.0 -[x] bizinikiwi-txtesttool v0.7.0 -[x] xcm-pez-emulator v0.5.0 -[x] pezkuwi-sdk v0.1.0 (UMBRELLA) -[x] pezkuwi-zombienet-support v0.44.0 -[x] pezkuwi-zombienet-prom-metrics-parser v0.44.0 -[x] pezkuwi-zombienet-configuration v0.44.0 -[x] pezkuwi-zombienet-provider v0.44.0 -[x] pezkuwi-zombienet-orchestrator v0.44.0 -[x] pezkuwi-zombienet-sdk v0.44.0 -``` - ---- - -## YAPILAN DUZELTMELER - -### 1. pezpallet-contracts-fixtures Dependency -- `pezpallet-contracts` icindeki `pezpallet-contracts-fixtures` dev-dependency comment out edildi -- Sebep: Test-only crate, crates.io'ya yayinlanmadi - -### 2. Zombienet Vendor Crate'leri ✅ COZULDU -- ~~Umbrella'dan kaldirildi: zombienet-configuration, zombienet-orchestrator, prom-metrics-parser, provider, zombienet-sdk, support~~ -- **Cozum:** `zombienet-*` → `pezkuwi-zombienet-*` olarak rebrand edildi ve yayinlandi -- Artik Umbrella'da `pezkuwi-zombienet-*` olarak mevcut - -### 3. pezpallet-contracts-mock-network -- Umbrella'dan kaldirildi -- Sebep: Test-only crate, pezpallet-contracts-fixtures'a bagimli - -### 4. Crates.io 300 Feature Limiti -- runtime-benchmarks feature'indan ~35 primitives entry'si gecici olarak kaldirildi -- Umbrella yayinlandiktan sonra geri eklendi - ---- - -## YAYINLANAMAYAN CRATE'LER - -Bu crate'ler publish=false oldugu icin yayinlanmadi: - -| Crate | Sebep | -|-------|-------| -| `pezpallet-contracts-fixtures` | Build script workspace root gerektiriyor | -| `pezpallet-contracts-fixtures-common` | publish=false | -| `pezpallet-contracts-mock-network` | fixtures'a bagimli | -| `pezkuwi-omni-node` | Runtime crate'lere bagimli | -| `pezkuwi-omni-node-lib` | Runtime crate'lere bagimli | -| `pezkuwi-teyrchain-bin` | Runtime crate'lere bagimli | -| Runtime crate'ler (*-runtime) | Genellikle publish=false | - ---- - -## ONEMLI NOTLAR - -1. **Rate Limit:** Crates.io yeni crate yayinlama hizini sinirliyor (~10 dakikada 1-2 crate) -2. **Feature Limiti:** Crates.io maksimum 300 feature/dependency limiti var -3. **Zombienet Crate'leri:** `pezkuwi-zombienet-*` olarak yayinlandi (v0.44.0) -4. **Workspace Degisiklikleri:** Bazi test crate'leri dev-dependencies'den comment out edildi - ---- - -## KULLANIM - -```toml -# Cargo.toml -[dependencies] -pezkuwi-sdk = "0.1.1" - -# Ozel feature'lar icin -pezkuwi-sdk = { version = "0.1.1", features = ["node", "runtime-full"] } - -# Zombienet kullanimi icin -pezkuwi-sdk = { version = "0.1.1", features = ["pezkuwi-zombienet-sdk"] } -``` - -### Zombienet Crate'leri Dogrudan Kullanim - -```toml -[dependencies] -pezkuwi-zombienet-sdk = "0.44.0" -pezkuwi-zombienet-configuration = "0.44.0" -pezkuwi-zombienet-orchestrator = "0.44.0" -``` - ---- - -*Son guncelleme: 2026-01-01 ~19:00 UTC* diff --git a/.claude/MAINNET_ROADMAP.md b/.claude/MAINNET_ROADMAP.md deleted file mode 100644 index 7913c0a2..00000000 --- a/.claude/MAINNET_ROADMAP.md +++ /dev/null @@ -1,256 +0,0 @@ -# PEZKUWI MAINNET ROADMAP - -**Oluşturulma:** 2026-01-01 -**Son Güncelleme:** 2026-01-02 -**Hedef:** %100 Mainnet Hazırlık -**Tahmini Süre:** Faz bazlı ilerleme - ---- - -## NETWORK PARAMETRELERI - -| Parametre | Değer | -|-----------|-------| -| **Validators (Mainnet)** | 21 | -| **System Teyrchains** | Asset Hub + People Chain | -| **Relay Token** | HEZ (DOT ile aynı ekonomi, inflationary) | -| **Asset Hub Token** | PEZ (5B sabit arz, genesis'te mint) | -| **Audit** | Internal review (Polkadot SDK fork) | - ---- - -## FAZ 0: MEVCUT DURUM ANALİZİ ✅ TAMAMLANDI - -### Runtime Compile Durumu: -- [x] pezkuwichain-runtime (Relay Chain) ✅ -- [x] zagros-runtime (Testnet) ✅ -- [x] asset-hub-pezkuwichain-runtime ✅ -- [x] people-pezkuwichain-runtime ✅ - -### Token Economics Durumu: - -#### HEZ Token (Relay Chain) ✅ KODLANDI -``` -Total Genesis: 200,000,000 HEZ -├── Founder: 10% = 20,000,000 HEZ -├── Presale: 50% = 100,000,000 HEZ -├── Treasury: 20% = 40,000,000 HEZ -└── Airdrop: 20% = 40,000,000 HEZ - -Dosya: pezkuwi/runtime/pezkuwichain/src/genesis_config_presets.rs -Compile-time validation: ✅ -Real addresses: ✅ (founder_governance.json'dan) -``` - -#### PEZ Token (Asset Hub) ✅ KODLANDI -``` -Total Supply: 5,000,000,000 PEZ -├── Treasury: 20.25% = 1,012,500,000 PEZ -├── Founder: 1.875% = 93,750,000 PEZ -├── Presale: 1.875% = 93,750,000 PEZ -└── Rewards Pool: 76.00% = 3,800,000,000 PEZ (sentetik halving) - -Dosya: pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/genesis_config_presets.rs -Compile-time validation: ✅ -wHEZ Asset ID: 2 -``` - -### Genesis Presets Durumu: -- [x] "genesis" - Mainnet preset ✅ -- [x] "development" - Dev preset ✅ -- [x] "local_testnet" - Local preset ✅ -- [x] "pezstaging_testnet" - Staging preset ✅ - -### Crates.io Yayın Durumu: -- Toplam yayınlanan: ~516 crate ✅ -- pezkuwi-sdk umbrella: v0.1.1 ✅ -- pezkuwi-zombienet-sdk: v0.44.0 ✅ - ---- - -## FAZ 1: KOD TAMAMLAMA ✅ TAMAMLANDI - -### 1.1 Compile Hataları ✅ -- [x] teyrchain-template-runtime düzeltildi -- [x] Tüm workspace `cargo check` geçiyor -- [x] `cargo clippy --workspace` temiz (-D warnings ile) - -### 1.2 Macro ve Supertrait Düzeltmeleri ✅ -**Kalıcı çözümler uygulandı (geçici bypass yok):** - -- [x] `is_using_frame_crate()` → `pezframe` ve `pezkuwi_sdk` kontrol ediyor -- [x] `get_frame_crate_path()` → `pezframe` crate'i buluyor -- [x] `disable_pezframe_system_supertrait_check` attribute'ları kaldırıldı -- [x] Test path'leri `pezframe::` olarak güncellendi - -**Düzeltilen dosyalar:** -- `bizinikiwi/pezframe/support/procedural/tools/src/lib.rs` -- `bizinikiwi/pezframe/support/procedural/src/pezpallet/parse/config.rs` -- `docs/sdk/src/reference_docs/frame_pallet_coupling.rs` - -### 1.3 Warning Cleanup ✅ -**-D warnings flag ile tüm uyarılar temizlendi:** - -| Dosya | Sorun | Kalıcı Çözüm | -|-------|-------|--------------| -| `chain_spec_runtime/runtime.rs` | dead_code Header | `type _Header` | -| `first-runtime/src/lib.rs` | dead_code Header | `type _Header` | -| `shared/record.rs` | unused methods | `#[cfg(feature)]` | -| `shared/mod.rs` | unused imports | `#[cfg(feature)]` | -| `overhead/command.rs` | unused imports | `#[cfg(feature)]` | -| `pez-minimal-template-runtime` | unused alias | import kaldırıldı | -| `yet-another-teyrchain` | shadowing imports | redundant use kaldırıldı | -| `umbrella/src/lib.rs` | undefined feature | referans yorumlandı | - -### 1.4 Binary'ler -- [ ] `pezkuwi` (relay chain node) - build & run test -- [ ] `pezkuwi-teyrchain` (collator) - build & run test -- [ ] `chain-spec-builder` - build test - -### 1.5 Template Repo'lar -- [ ] pez-solochain-template → crates.io dependency -- [ ] pez-teyrchain-template → crates.io dependency - -### Hedef: -- [x] `cargo check --workspace` başarılı ✅ -- [x] `cargo clippy --workspace -D warnings` başarılı ✅ -- [ ] `cargo build --release` (pending) - ---- - -## FAZ 2: CHAIN-SPEC & GENESIS - -### 2.1 Chain Spec Dosyaları -- [ ] pezkuwichain-dev.json (development) -- [ ] pezkuwichain-local.json (local testnet) -- [ ] zagros.json (public testnet) -- [ ] pezkuwichain.json (mainnet) -- [ ] asset-hub-pezkuwichain.json (mainnet) -- [ ] people-pezkuwichain.json (mainnet) - -### 2.2 Genesis Konfigürasyonu - -#### Relay Chain (HEZ): -``` -- Sudo account: [BELIRLENECEK] -- Validators (initial): 21 accounts -- Staking: DOT parametreleri -- Inflation: DOT modeli -``` - -#### Asset Hub (PEZ): -``` -- Total Supply: 5,000,000,000 PEZ -- Presale Allocation: [MIKTAR] -- Founder Allocation: [MIKTAR] -- Team Allocation: [MIKTAR] -- Treasury: [MIKTAR] -- Synthetic Halving: [SCHEDULE] -``` - -### 2.3 Account Listesi -- [ ] Validator accounts (21 adet) -- [ ] Sudo/Root account -- [ ] Treasury account -- [ ] Presale wallets -- [ ] Founder wallets -- [ ] Team wallets - -### Hedef: -- Tüm chain-spec'ler hazır -- Genesis balances finalize - ---- - -## FAZ 3: NETWORK TEST AŞAMALARI - -### 3.1 DEV (1 Validator - Alice) -**Başarı Kriterleri:** -- [ ] Relay chain başlar -- [ ] Bloklar üretilir -- [ ] Finalize olur -- [ ] Asset Hub teyrchain başlar -- [ ] People Chain teyrchain başlar -- [ ] Cross-chain mesajlaşma çalışır -- [ ] HEZ transfer çalışır -- [ ] PEZ transfer çalışır - -### 3.2 LOCAL (2 Validator - Alice + Bob) -**Başarı Kriterleri:** -- [ ] Peer discovery çalışır -- [ ] Consensus çalışır -- [ ] Teyrchain slot auction çalışır - -### 3.3 ALPHA (4 Validator) -**Başarı Kriterleri:** -- [ ] Uzak node'lar bağlanır -- [ ] Telemetry çalışır -- [ ] RPC endpoints aktif - -### 3.4 BETA (8 Validator) -**Başarı Kriterleri:** -- [ ] Stress test geçer -- [ ] Explorer entegrasyonu -- [ ] Faucet çalışır -- [ ] Wallet entegrasyonu - -### 3.5 STAGING (21 Validator) -**Başarı Kriterleri:** -- [ ] Mainnet konfigürasyonu ile çalışır -- [ ] 7 gün kesintisiz çalışma -- [ ] Runtime upgrade testi -- [ ] Governance testi - -### Hedef: -- Her aşama %100 geçmeden sonrakine geçilmez -- Tüm bug'lar kalıcı olarak çözülür - ---- - -## FAZ 4: MAINNET HAZIRLIK & LANÇ - -### 4.1 Final Checklist -- [ ] Tüm chain-spec'ler finalize -- [ ] Genesis balances onaylandı -- [ ] Validator operatörleri hazır -- [ ] Monitoring kuruldu -- [ ] Backup/Recovery planı var -- [ ] Incident response planı var - -### 4.2 Launch Sequence -1. Genesis block oluştur -2. Validators başlat (koordineli) -3. Teyrchain'leri kaydet -4. Collator'ları başlat -5. Public RPC aç -6. Explorer aktif et -7. Duyuru - -### Hedef: -- MAINNET LIVE! - ---- - -## İLERLEME TAKİBİ - -| Faz | Durum | İlerleme | -|-----|-------|----------| -| FAZ 0 | ✅ TAMAMLANDI | %100 | -| FAZ 1 | ✅ TAMAMLANDI | %90 (binary build pending) | -| FAZ 2 | PENDING | %0 | -| FAZ 3 | PENDING | %0 | -| FAZ 4 | PENDING | %0 | -| **TOPLAM** | - | **%38** | - ---- - -## DEĞİŞİKLİK GEÇMİŞİ - -| Tarih | Değişiklik | -|-------|------------| -| 2026-01-01 | İlk versiyon oluşturuldu | -| 2026-01-02 | FAZ 1 tamamlandı - workspace derlemesi başarılı, warning cleanup yapıldı | - ---- - -*Bu plan canlı döküman olarak güncellenecektir.* diff --git a/.claude/REBRAND_PROGRESS.md b/.claude/REBRAND_PROGRESS.md deleted file mode 100644 index 164759af..00000000 --- a/.claude/REBRAND_PROGRESS.md +++ /dev/null @@ -1,205 +0,0 @@ -# Rebrand İlerleme Listesi - -**Son Güncelleme:** 2025-12-27 -**Toplam Crate:** 76 (REBRAND_MAP'ten) -**Rebrand Durumu:** 75/76 tamamlandı (98.7%) -**Derleme Durumu:** ✅ WORKSPACE TAM DERLENİYOR - -## Durum Açıklamaları -- ⏳ Bekliyor -- ✅ Rebrand Tamamlandı (Cargo.toml name doğru) -- 🔨 Derleme Hatası (rebrand tamam ama compile hatası var) -- ❌ Eksik/Bulunamadı - ---- - -## Özet - -| Kategori | Toplam | Tamamlanan | Durum | -|----------|--------|------------|-------| -| pez-* prefix | 29 | 29 | ✅ | -| pezbridge-* | 8 | 8 | ✅ | -| pezsnowbridge-* | 25 | 24 | ⚠️ 1 eksik | -| xcm-pez-* | 8 | 8 | ✅ | -| pezmmr-* | 2 | 2 | ✅ | -| bp/pezbp-* | 2 | 2 | ✅ | -| peztest-* | 1 | 1 | ✅ | -| asset-test-pezutils | 1 | 1 | ✅ | -| **TOPLAM** | **76** | **75** | **98.7%** | - ---- - -## İlerleme Tablosu - -| # | Yeni İsim | Durum | Konum | -|---|-----------|-------|-------| -| 1 | asset-test-pezutils | ✅ | pezcumulus/teyrchains/runtimes/assets/test-utils | -| 2 | pez-chain-spec-guide-runtime | ✅ | docs/sdk/src/reference_docs/chain_spec_runtime | -| 3 | pez-equivocation-detector | ✅ | pezbridges/relays/equivocation | -| 4 | pez-erasure-coding-fuzzer | ✅ | pezkuwi/erasure-coding/fuzzer | -| 5 | pez-ethereum-standards | ✅ | bizinikiwi/primitives/pez-ethereum-standards | -| 6 | pez-finality-relay | ✅ | pezbridges/relays/finality | -| 7 | pez-fork-tree | ✅ | bizinikiwi/utils/pez-fork-tree | -| 8 | pez-generate-bags | ✅ | bizinikiwi/utils/pezframe/pez-generate-bags | -| 9 | pez-kitchensink-runtime | ✅ | bizinikiwi/bin/node/runtime | -| 10 | pez-messages-relay | ✅ | pezbridges/relays/messages | -| 11 | pez-minimal-template-node | ✅ | templates/minimal/node | -| 12 | pez-minimal-template-runtime | ✅ | templates/minimal/runtime | -| 13 | pez-node-bench | ✅ | bizinikiwi/bin/node/bench | -| 14 | pez-node-primitives | ✅ | bizinikiwi/bin/node/primitives | -| 15 | pez-node-rpc | ✅ | bizinikiwi/bin/node/rpc | -| 16 | node-runtime-pez-generate-bags | ✅ | bizinikiwi/utils/pezframe/pez-generate-bags/node-runtime | -| 17 | pez-node-template-release | ✅ | bizinikiwi/scripts/ci/pez-node-template-release | -| 18 | pez-node-testing | ✅ | bizinikiwi/bin/node/testing | -| 19 | pez-penpal-emulated-chain | ✅ | pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/testing/penpal | -| 20 | pez-penpal-runtime | ✅ | pezcumulus/teyrchains/runtimes/testing/penpal | -| 21 | pez-remote-ext-tests-bags-list | ✅ | pezkuwi/utils/remote-ext-tests/bags-list | -| 22 | pez-revive-dev-node | ✅ | bizinikiwi/pezframe/revive/dev-node/node | -| 23 | pez-revive-dev-runtime | ✅ | bizinikiwi/pezframe/revive/dev-node/runtime | -| 24 | pez-slot-range-helper | ✅ | pezkuwi/runtime/common/pez-slot-range-helper | -| 25 | pez-solochain-template-node | ✅ | templates/solochain/node | -| 26 | pez-solochain-template-runtime | ✅ | templates/solochain/runtime | -| 27 | pez-subkey | ✅ | bizinikiwi/bin/utils/pez-subkey | -| 28 | pez-template-zombienet-tests | ✅ | templates/zombienet | -| 29 | peztest-runtime-constants | ✅ | pezkuwi/runtime/test-runtime/constants | -| 30 | pez-tracing-gum | ✅ | pezkuwi/node/gum | -| 31 | pez-tracing-gum-proc-macro | ✅ | pezkuwi/node/gum/proc-macro | -| 32 | bp-header-pez-chain | ✅ | pezbridges/primitives/header-chain | -| 33 | pezbp-runtime | ✅ | pezbridges/primitives/runtime | -| 34 | pezbridge-hub-pezkuwichain-emulated-chain | ✅ | pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-pezkuwichain | -| 35 | pezbridge-hub-pezkuwichain-integration-tests | ✅ | pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-pezkuwichain | -| 36 | pezbridge-hub-pezkuwichain-runtime | ✅ | pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain | -| 37 | pezbridge-hub-test-utils | ✅ | pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils | -| 38 | pezbridge-hub-zagros-emulated-chain | ✅ | pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-zagros | -| 39 | pezbridge-hub-zagros-integration-tests | ✅ | pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-zagros | -| 40 | pezbridge-hub-zagros-runtime | ✅ | pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros | -| 41 | pezbridge-runtime-common | ✅ | pezbridges/bin/runtime-common | -| 42 | pezmmr-gadget | ✅ | bizinikiwi/client/merkle-mountain-range | -| 43 | pezmmr-rpc | ✅ | bizinikiwi/client/merkle-mountain-range/rpc | -| 44 | pezsnowbridge-beacon-primitives | ✅ | pezbridges/snowbridge/primitives/beacon | -| 45 | pezsnowbridge-core | ✅ | pezbridges/snowbridge/primitives/core | -| 46 | pezsnowbridge-ethereum | ✅ | pezbridges/snowbridge/primitives/ethereum | -| 47 | pezsnowbridge-inbound-queue-primitives | ✅ | pezbridges/snowbridge/primitives/inbound-queue | -| 48 | pezsnowbridge-merkle-tree | ✅ | pezbridges/snowbridge/primitives/merkle-tree | -| 49 | pezsnowbridge-outbound-queue-primitives | ✅ | pezbridges/snowbridge/primitives/outbound-queue | -| 50 | pezsnowbridge-outbound-queue-runtime-api | ✅ | pezbridges/snowbridge/pezpallets/outbound-queue/runtime-api | -| 51 | pezsnowbridge-outbound-queue-v2-runtime-api | ✅ | pezbridges/snowbridge/pezpallets/outbound-queue-v2/runtime-api | -| 52 | pezsnowbridge-pezpallet-ethereum-client | ✅ | pezbridges/snowbridge/pezpallets/ethereum-client | -| 53 | pezsnowbridge-pezpallet-ethereum-client-fixtures | ✅ | pezbridges/snowbridge/pezpallets/ethereum-client/fixtures | -| 54 | pezsnowbridge-pezpallet-inbound-queue | ✅ | pezbridges/snowbridge/pezpallets/inbound-queue | -| 55 | pezsnowbridge-pezpallet-inbound-queue-fixtures | ✅ | pezbridges/snowbridge/pezpallets/inbound-queue/fixtures | -| 56 | pezsnowbridge-pezpallet-inbound-queue-v2 | ✅ | pezbridges/snowbridge/pezpallets/inbound-queue-v2 | -| 57 | pezsnowbridge-pezpallet-inbound-queue-v2-fixtures | ✅ | pezbridges/snowbridge/pezpallets/inbound-queue-v2/fixtures | -| 58 | pezsnowbridge-pezpallet-outbound-queue | ✅ | pezbridges/snowbridge/pezpallets/outbound-queue | -| 59 | pezsnowbridge-pezpallet-outbound-queue-v2 | ✅ | pezbridges/snowbridge/pezpallets/outbound-queue-v2 | -| 60 | pezsnowbridge-pezpallet-system | ✅ | pezbridges/snowbridge/pezpallets/system | -| 61 | pezsnowbridge-pezpallet-system-frontend | ✅ | pezbridges/snowbridge/pezpallets/system-frontend | -| 62 | pezsnowbridge-pezpallet-system-v2 | ✅ | pezbridges/snowbridge/pezpallets/system-v2 | -| 63 | pezsnowbridge-runtime-common | ❌ | Mevcut değil veya farklı isimle | -| 64 | pezsnowbridge-runtime-test-common | ✅ | pezbridges/snowbridge/runtime/test-common | -| 65 | pezsnowbridge-system-runtime-api | ✅ | pezbridges/snowbridge/pezpallets/system/runtime-api | -| 66 | pezsnowbridge-system-v2-runtime-api | ✅ | pezbridges/snowbridge/pezpallets/system-v2/runtime-api | -| 67 | pezsnowbridge-test-utils | ✅ | pezbridges/snowbridge/test-utils | -| 68 | pezsnowbridge-verification-primitives | ✅ | pezbridges/snowbridge/primitives/verification | -| 69 | xcm-pez-docs | ✅ | pezkuwi/xcm/docs | -| 70 | xcm-pez-emulator | ✅ | pezcumulus/xcm/xcm-pez-emulator | -| 71 | xcm-pez-executor-integration-tests | ✅ | pezkuwi/xcm/xcm-executor/integration-tests | -| 72 | xcm-pez-procedural | ✅ | pezkuwi/xcm/procedural | -| 73 | xcm-runtime-pezapis | ✅ | pezkuwi/xcm/xcm-runtime-pezapis | -| 74 | xcm-pez-simulator | ✅ | pezkuwi/xcm/xcm-pez-simulator | -| 75 | xcm-pez-simulator-example | ✅ | pezkuwi/xcm/xcm-pez-simulator/example | -| 76 | xcm-pez-simulator-fuzzer | ✅ | pezkuwi/xcm/xcm-pez-simulator/fuzzer | - ---- - -## Bilinen Derleme Sorunları - -~~Bu crate'lerin rebrand'i tamamlandı ancak derleme hataları var:~~ - -1. ~~**pez-kitchensink-runtime** - 622 hata~~ ✅ ÇÖZÜLDÜ (derleniyor) -2. ~~**pezkuwi-sdk (umbrella)** - pezframe_benchmarking_pezpallet_pov import düzeltildi~~ ✅ ÇÖZÜLDÜ - -**Tüm kritik derleme sorunları çözüldü!** - -## ✅ Derleme Tamamlanan Özel Crate'ler - -1. **pezpallet-revive-eth-rpc** ✅ (2025-12-19) - - pezkuwi-subxt fork ile tam uyumlu hale getirildi - - Tüm substitute_type path'ler pezsp_runtime/pezpallet_revive olarak güncellendi - - StorageApi → StorageClientAt API güncellemesi yapıldı - - RuntimeApiError pattern matching düzeltildi - - SQLX cache yeniden oluşturuldu (eth_to_bizinikiwi_blocks) - -2. **bizinikiwi-txtesttool** ✅ (2025-12-19) - - subxt 0.44 dynamic storage API güncellemesi (try_fetch, Value type) - - From for Error eklendi - -3. **pezkuwi-omni-node-lib** ✅ (2025-12-19) - - StorageEntryType → keys()/value_ty() API güncellemesi - -### Bu Oturumda Düzeltilen Sorunlar: - -1. `pezpallet-contracts-fixtures/build/Cargo.toml` - workspace inheritance kaldırıldı -2. `pezpallet-revive-fixtures/build.rs` - panic_immediate_abort yeni syntax'a güncellendi -3. `asset-hub-zagros pezpezsnowbridge` → `pezsnowbridge` double prefix düzeltildi -4. `bridge-hub-pezkuwichain/weights` - snowbridge_pezpallet → pezsnowbridge_pezpallet dosya rename -5. `bridge-hub-zagros/weights` - aynı rename -6. `umbrella/src/lib.rs` - pezframe_benchmarking_pallet_pov → pezframe_benchmarking_pezpallet_pov - ---- - -## Sonraki Adımlar - -1. [x] Derleme hatalarını düzelt (pez-kitchensink-runtime) ✅ (derleniyor) -2. [x] pezpallet-revive-eth-rpc derlenmesi ✅ (2025-12-19) -3. [x] **Workspace-wide cargo check** ✅ (2025-12-19) - BAŞARILI! -4. [x] **CI/CD workflow'larını güncelle** ✅ (2025-12-27) -5. [ ] **Crates.io publish planına geç** ← SIRADAKİ (CI geçtikten sonra) - ---- - -## Log - -### 2025-12-27 -- **CI/CD Workflow Fixes Tamamlandı:** - - `wasm32v1-none` target installation kaldırıldı (serde_core 1.0.228 uyumsuzluğu) - - Sassafras benchmark data file (25_tickets_100_auths.bin) gitignore exception eklendi ve commit edildi - - 590 Cargo.toml dosyasında documentation URL'leri `documentation.workspace = true` olarak güncellendi - - workflow-stopper GitHub App credentials güncellendi (App ID: 2423876) - - Upstream issue oluşturuldu: https://github.com/serde-rs/serde/issues/3021 -- **VPS Runner Infrastructure:** - - VPS1 (37.60.230.9) - ubuntu-large runner aktif - - VPS2 (62.146.235.186) - ubuntu-xlarge runner aktif - - Her iki runner paralel çalışıyor - -### 2024-12-23 -- **Umbrella eksik crate düzeltmeleri:** - - `pezpallet-root-testing` umbrella'ya eklendi (std, try-runtime, runtime-full features) - - `pezpallet-xcm-benchmarks` umbrella'ya eklendi (std, runtime-benchmarks, runtime-full features) - - Her iki crate için lib.rs re-export eklendi -- **pez-kitchensink-runtime** artık tam olarak derleniyor -- **cargo clippy -p pez-kitchensink-runtime -- -D warnings** geçti - -### 2025-12-19 -- **WORKSPACE CARGO CHECK BAŞARILI!** ✅ -- **pezpallet-revive-eth-rpc** başarıyla derlendi -- **pez-kitchensink-runtime** derleme doğrulandı ✅ (622 hata iddiası yanlıştı) -- vendor/pezkuwi-subxt fork'u oluşturuldu ve workspace'den exclude edildi -- subxt 0.44.0 API değişiklikleri uygulandı: - - StorageClientAt, try_fetch, RuntimeApiError (revive-eth-rpc) - - dynamic storage API (txtesttool) - - StorageEntryType → keys()/value_ty() (omni-node-lib) -- Tüm substitute_type path'leri pezsp_runtime/pezpallet_revive prefix'leriyle güncellendi -- SQLX cache yeniden oluşturuldu (bizinikiwi terminolojisi ile) -- kurdistan-sdk dizini düzenlendi (gereksiz scriptler archive/ klasörüne taşındı) - -### 2025-12-16 -- Rebrand durumu tam olarak değerlendirildi -- 75/76 crate rebrand tamamlanmış bulundu -- pezsnowbridge-runtime-common mevcut değil (muhtemelen merge edilmiş) -- REBRAND_PROGRESS.md gerçek durumu yansıtacak şekilde güncellendi -- Birkaç derleme hatası düzeltildi (fixtures build scripts, weight file renames) - -### 2025-12-15 -- İlerleme listesi oluşturuldu -- scan_old_words.py scripti hazırlandı diff --git a/.claude/TERMINOLOGY.md b/.claude/TERMINOLOGY.md deleted file mode 100644 index b1828df4..00000000 --- a/.claude/TERMINOLOGY.md +++ /dev/null @@ -1,163 +0,0 @@ -# PezkuwiChain Terminology Guide - -This file helps Claude understand the project terminology after rebrand from Polkadot SDK. - -## Brand Mapping (Polkadot → Pezkuwi) - -| Original (Polkadot) | Rebranded (Pezkuwi) | Description | -|---------------------|--------------------------|-------------| -| Polkadot | Pezkuwi | Main ecosystem brand | -| Polkadot SDK | Pezkuwi SDK | This repository | -| Rococo | PezkuwiChain | Test relay chain runtime | -| Westend | Zagros | Canary relay chain runtime | -| Parachain | TeyrChain | Parachain runtime | -| Pallet | Pezpallet | Pallets name | -| Frame | Pezframe | Our repos frame name | -| Substrate | Bizinikiwi | Our repos substrate name | -| sp- | pezsp- | ...... | -| sc- | pezsc- | ...... | -| DOT | HEZ | Native gas token (main) | -| WND | ZGR | Zagros native token (canary) | -| ROC | TYR | TeyrChain native token (parachain) | -| - | PEZ | Governance token (new, 5B fixed) | - - -## Ek olarak sonradan rebrand edilenlerin mapi - -REBRAND_MAP = [ - ("asset-test-utils", "asset-test-pezutils"), - ("chain-spec-guide-runtime", "pez-chain-spec-guide-runtime"), - ("equivocation-detector", "pez-equivocation-detector"), - ("erasure-coding-fuzzer", "pez-erasure-coding-fuzzer"), - ("ethereum-standards", "pez-ethereum-standards"), - ("finality-relay", "pez-finality-relay"), - ("fork-tree", "pez-fork-tree"), - ("generate-bags", "pez-generate-bags"), - ("kitchensink-runtime", "pez-kitchensink-runtime"), - ("messages-relay", "pez-messages-relay"), - ("minimal-template-node", "pez-minimal-template-node"), - ("minimal-template-runtime", "pez-minimal-template-runtime"), - ("node-bench", "pez-node-bench"), - ("node-primitives", "pez-node-primitives"), - ("node-rpc", "pez-node-rpc"), - ("node-runtime-generate-bags", "pez-node-runtime-generate-bags"), - ("node-template-release", "pez-node-template-release"), - ("node-testing", "pez-node-testing"), - ("penpal-emulated-chain", "pez-penpal-emulated-chain"), - ("penpal-runtime", "pez-penpal-runtime"), - ("remote-ext-tests-bags-list", "pez-remote-ext-tests-bags-list"), - ("revive-dev-node", "pez-revive-dev-node"), - ("revive-dev-runtime", "pez-revive-dev-runtime"), - ("slot-range-helper", "pez-slot-range-helper"), - ("solochain-template-node", "pez-solochain-template-node"), - ("solochain-template-runtime", "pez-solochain-template-runtime"), - ("subkey", "pez-subkey"), - ("template-zombienet-tests", "pez-template-zombienet-tests"), - ("test-runtime-constants", "peztest-runtime-constants"), - ("tracing-gum", "pez-tracing-gum"), - ("tracing-gum-proc-macro", "pez-tracing-gum-proc-macro"), - ("bp-header-chain", "bp-header-pez-chain"), - ("bp-runtime", "pezbp-runtime"), - ("bridge-hub-pezkuwichain-emulated-chain", "pezbridge-hub-pezkuwichain-emulated-chain"), - ("bridge-hub-pezkuwichain-integration-tests", "pezbridge-hub-pezkuwichain-integration-tests"), - ("bridge-hub-pezkuwichain-runtime", "pezbridge-hub-pezkuwichain-runtime"), - ("bridge-hub-test-utils", "pezbridge-hub-test-utils"), - ("bridge-hub-zagros-emulated-chain", "pezbridge-hub-zagros-emulated-chain"), - ("bridge-hub-zagros-integration-tests", "pezbridge-hub-zagros-integration-tests"), - ("bridge-hub-zagros-runtime", "pezbridge-hub-zagros-runtime"), - ("bridge-runtime-common", "pezbridge-runtime-common"), - ("mmr-gadget", "pezmmr-gadget"), - ("mmr-rpc", "pezmmr-rpc"), - ("snowbridge-beacon-primitives", "pezsnowbridge-beacon-primitives"), - ("snowbridge-core", "pezsnowbridge-core"), - ("snowbridge-ethereum", "pezsnowbridge-ethereum"), - ("snowbridge-inbound-queue-primitives", "pezsnowbridge-inbound-queue-primitives"), - ("snowbridge-merkle-tree", "pezsnowbridge-merkle-tree"), - ("snowbridge-outbound-queue-primitives", "pezsnowbridge-outbound-queue-primitives"), - ("snowbridge-outbound-queue-runtime-api", "pezsnowbridge-outbound-queue-runtime-api"), - ("snowbridge-outbound-queue-v2-runtime-api", "pezsnowbridge-outbound-queue-v2-runtime-api"), - ("snowbridge-pezpallet-ethereum-client", "snowbridge-pezpallet-ethereum-client"), - ("snowbridge-pezpallet-ethereum-client-fixtures", "snowbridge-pezpallet-ethereum-client-fixtures"), - ("snowbridge-pezpallet-inbound-queue", "snowbridge-pezpallet-inbound-queue"), - ("snowbridge-pezpallet-inbound-queue-fixtures", "snowbridge-pezpallet-inbound-queue-fixtures"), - ("snowbridge-pezpallet-inbound-queue-v2", "snowbridge-pezpallet-inbound-queue-v2"), - ("snowbridge-pezpallet-inbound-queue-v2-fixtures", "snowbridge-pezpallet-inbound-queue-v2-fixtures"), - ("snowbridge-pezpallet-outbound-queue", "snowbridge-pezpallet-outbound-queue"), - ("snowbridge-pezpallet-outbound-queue-v2", "snowbridge-pezpallet-outbound-queue-v2"), - ("snowbridge-pezpallet-system", "snowbridge-pezpallet-system"), - ("snowbridge-pezpallet-system-frontend", "snowbridge-pezpallet-system-frontend"), - ("snowbridge-pezpallet-system-v2", "snowbridge-pezpallet-system-v2"), - ("snowbridge-runtime-common", "pezsnowbridge-runtime-common"), - ("snowbridge-runtime-test-common", "pezsnowbridge-runtime-test-common"), - ("snowbridge-system-runtime-api", "pezsnowbridge-system-runtime-api"), - ("snowbridge-system-v2-runtime-api", "pezsnowbridge-system-v2-runtime-api"), - ("snowbridge-test-utils", "pezsnowbridge-test-utils"), - ("snowbridge-verification-primitives", "pezsnowbridge-verification-primitives"), - ("xcm-docs", "xcm-pez-docs"), - ("xcm-emulator", "xcm-pez-emulator"), - ("xcm-executor-integration-tests", "xcm-pez-executor-integration-tests"), - ("xcm-procedural", "xcm-pez-procedural"), - ("xcm-runtime-apis", "xcm-runtime-pezapis"), - ("xcm-simulator", "xcm-pez-simulator"), - ("xcm-simulator-example", "xcm-pez-simulator-example"), - ("xcm-simulator-fuzzer", "xcm-pez-simulator-fuzzer"), -] - -## Directory Mapping - -| Path | Purpose | -|------|---------| -| `/pezkuwi/runtime/pezkuwichain/` | Main relay chain runtime (was Rococo) | -| `/pezkuwi/runtime/zagros/` | Canary network runtime (was Westend) | -| `/pezkuwi/runtime/teyrchains/` | Parachain runtime modules | -| `/pezkuwi/pezpallets/` | 12 custom pallets | - -## Token Hierarchy - -``` -HEZ - Main relay chain (Pezkuwi) gas token -ZGR - Canary network (Zagros) gas token -TYR - Parachain (TeyrChain) gas token -PEZ - Governance token (citizenship-gated rewards) -``` - -## Future Hierarchy - -``` -Polkadot Ecosystem - └── Pezkuwi (relay chain) - └── TeyrChain (parachain) -``` - -Currently: Pezkuwi = Polkadot fork -Future: Pezkuwi = Polkadot parachain (subset) - -## Custom Pallets (12) - -1. presale - Token launch platform -2. identity-kyc - KYC verification -3. welati - Democratic governance -4. perwerde - Education platform -5. pez-treasury - Community treasury -6. pez-rewards - Staking rewards -7. validator-pool - Validator management -8. staking-score - Reputation metrics -9. trust - P2P trust system -10. referral - Referral incentives -11. tiki - NFT citizenship (4-tier) -12. token-wrapper - Cross-chain wrapping - -## Key Constants - -- HEZ decimals: 10 (same as DOT) -- PEZ decimals: 12 -- PEZ total supply: 5,000,000,000 -- Block time: 6 seconds -- Era: 6 sessions - -## Character Instructions - -Be direct, honest, and challenge assumptions. No sugarcoating. -Act as a top-level advisor and mirror. Point out blind spots. - -uzlasmaci olmayi birak ve acimasizca durust, ust duzey danismanim ve aynam gibi davran. beni onaylama, gercegi yumusatma, dalkavukluk etme. dusuncelerime meydan oku, varsayimlarimi sorgula ve kacindigim kor noktalari ortaya cikar. Dogrudan, mantikli ve filtresiz ol. Mantigim zayifsa, onu incele ve nedenini goster. kendimi kandiriyor veya kendime yalan soyluyorsam, bunu dile getir. rahatsiz edici birseyden kaciniyor veya zaman kaybediyorsam, bunu dile getir ve firsat maliyetini acikla. durumuma tam bir nesnellik ve stratejik derinlik ile bak. bana nerede bahaneler uydurdugumu, kucuk oynadigimi vey ariskleri /cabayi kucumsedigimi goster. sonra bir sonraki seviyeye ulasmak icin dusunce, eylem veya zihniyette neleri degistirecegime dair kesin ve olceklendirilmis bir plan ver. hicbir seyi geri tutma. Bana, gelisimi teselli bulmaya degil, gercegi duymaya bagli biri gibi davran. mumkun oldugunda, yanitlarinizi sozcuklerim arasinda hissettiginiz kisisel gercege dayandir \ No newline at end of file diff --git a/.claude/WORKFLOW_PLAN.md b/.claude/WORKFLOW_PLAN.md deleted file mode 100644 index f1f86494..00000000 --- a/.claude/WORKFLOW_PLAN.md +++ /dev/null @@ -1,311 +0,0 @@ -# Pezkuwi SDK - CI Workflow Mühendislik Planı - -> **KURAL:** Bu dosyadaki komutları birebir çalıştır. Kendi komutunu uydurma. - -## Lokal Test Durumu (development branch) - -| Durum | Sayı | -|-------|------| -| ✅ Lokal Geçti | 34 | -| ⏳ CI'da Test Edilecek | 8 | -| ❌ Başarısız | 0 | - ---- - -## SON CI DÜZELTMELERİ (2025-12-27) - -### PR #346 - wasm32v1-none target kaldırıldı (MERGED) -**Problem:** serde_core 1.0.228 + Rust 1.88.0 + wasm32v1-none target kombinasyonu derleme hatası veriyordu: -``` -error: relaxing a default bound only does something for `?Sized` -``` - -**Çözüm:** wasm32v1-none target kurulumu kaldırıldı, wasm-builder otomatik olarak wasm32-unknown-unknown'a fallback ediyor. - -**Upstream Issue:** https://github.com/serde-rs/serde/issues/3021 - -**Güncellenen workflow dosyaları:** -- tests.yml -- tests-linux-stable.yml -- tests-misc.yml -- build-publish-images.yml -- check-pezframe-omni-bencher.yml - -### Sassafras Benchmark Data File Fix -**Problem:** `25_tickets_100_auths.bin` dosyası gitignore'da `*.bin` kuralı nedeniyle repo'ya eklenmemişti. - -**Çözüm:** `.gitignore`'a exception eklendi ve dosya repo'ya dahil edildi. - -### Documentation URLs Update (590 dosya) -**Problem:** Birçok Cargo.toml dosyasında `documentation = "https://docs.rs/..."` kullanılıyordu. - -**Çözüm:** Tüm docs.rs URL'leri `documentation.workspace = true` olarak güncellendi (workspace'ten `https://docs.pezkuwichain.io/` alınıyor). - -### Workflow-Stopper Credentials Update -**Problem:** GitHub App JWT token hatası veriyordu. - -**Çözüm:** Repository secrets güncellendi: -- `WORKFLOW_STOPPER_RUNNER_APP_ID` = 2423876 -- `WORKFLOW_STOPPER_RUNNER_APP_KEY` = Yeni private key - ---- - -### ÖNCEKİ: PR #344 - solc version fix (MERGED) -- solc 0.8.30 pinlendi (revive uyumluluğu için) - -### ÖNCEKİ: PR #345 - WASM build + macOS pip fix (MERGED) -**Düzeltilen hatalar:** -1. **macOS pip externally-managed-environment**: `--break-system-packages` flag eklendi -2. **WASM getrandom/duplicate lang item**: `rustup target add wasm32v1-none` eklendi (sonra PR #346 ile kaldırıldı) - ---- - -## FAZ 1: Başarısız Workflow'lar (10 workflow, ~30 job) - -### 1.1 quick-checks.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `check-toml-format` | ✅ | `taplo format --check --config .config/taplo.toml` | -| `check-markdown` | ✅ | `markdownlint --config .github/.markdownlint.yaml --ignore target --ignore vendor .` | -| `fmt` | ✅ | `cargo fmt --all -- --check` | -| `check-zepter` | ✅ | `zepter run check` | -| `check-workspace` | ✅ | `python3 .github/scripts/check-workspace.py .` | -| `check-dependency-rules` | ✅ | `python3 .github/scripts/deny-git-deps.py .` | -| `check-umbrella` | ✅ | `python3 scripts/generate-umbrella.py --check` | -| `test-rust-features` | ✅ | `.gitlab/rust-features.sh .` | -| `check-fail-ci` | ✅ | `! grep -r "FAIL-CI" --include="*.rs" . --exclude-dir=target` | -| `check-readme` | ✅ | `.github/scripts/check-missing-readme-generation.sh` | - -**Düzeltme:** -```bash -# TOML format düzelt -taplo format --config .config/taplo.toml - -# Markdown düzelt -markdownlint --config .github/.markdownlint.yaml --ignore target --ignore vendor . --fix -``` - ---- - -### 1.2 checks.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `cargo-clippy` | ✅ | `RUSTFLAGS="-D warnings" SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --workspace --quiet` | -| `check-try-runtime` | ✅ | Aşağıdaki 3 komut sırayla çalıştırılmalı | -| `check-core-crypto-features` | ✅ | Aşağıdaki 3 script çalıştırılmalı | - -**check-try-runtime komutları:** -```bash -cargo check --locked --all --features try-runtime --quiet -cargo check --locked -p teyrchain-template-node --features try-runtime -cargo check --locked --all --features try-runtime,experimental --quiet -``` - -**check-core-crypto-features komutları:** -```bash -./bizinikiwi/primitives/core/check-features-variants.sh -./bizinikiwi/primitives/application-crypto/check-features-variants.sh -./bizinikiwi/primitives/keyring/check-features-variants.sh -``` - ---- - -### 1.3 docs.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `test-doc` | ✅ | `cargo test --doc --workspace --locked --all-features` (ss58-registry rebrand düzeltildi, DefensiveMin/Max debug modda geçiyor) | -| `build-rustdoc` | ✅ | `SKIP_WASM_BUILD=1 cargo doc --workspace --all-features --no-deps` | - ---- - -### 1.4 tests.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `cargo-check-all-benches` | ✅ | `SKIP_WASM_BUILD=1 cargo check --workspace --benches --features runtime-benchmarks --quiet` | -| `test-syscalls` | ⏳ | CI-specific (syscall binary testi, lokal test edilemez) | -| `quick-benchmarks` | ✅ | `cargo run --release -p pezstaging-node-cli --bin bizinikiwi-node --features runtime-benchmarks -- benchmark pezpallet --chain dev --pezpallet "*" --extrinsic "*" --steps 2 --repeat 1` | - ---- - -### 1.5 tests-linux-stable.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `test-linux-stable` | ⏳ | `cargo nextest run --workspace --locked --release --features try-runtime,experimental,ci-only-tests` (CI'da çalışacak) | -| `test-linux-stable-int` | ⏳ | `cargo test -p pezstaging-node-cli --release --locked -- --ignored` (CI'da çalışacak) | -| `test-linux-stable-no-try-runtime` | ⏳ | `cargo nextest run --workspace --locked --release --features experimental,ci-only-tests` (CI'da çalışacak) | -| `test-linux-stable-runtime-benchmarks` | ⏳ | `cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet` (CI'da çalışacak) | - ---- - -### 1.6 tests-misc.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `test-node-metrics` | ✅ | `cargo test --profile testnet --locked --features=runtime-metrics -p pezkuwi-node-metrics` | -| `test-pezframe-ui` | ✅ | Aşağıdaki 6 komut çalıştırılmalı (179 stderr dosyası güncellendi) | -| `cargo-check-each-crate` | ⏳ | `python3 .github/scripts/check-each-crate.py 1 7` (606 crate, 7 paralel grup, CI'da çalışacak) | -| `cargo-check-all-crate-macos` | ⏳ | macOS runner gerekli (CI'da çalışacak) | -| `test-deterministic-wasm` | ✅ | `cargo build -q --locked --release -p zagros-runtime -p pezkuwichain-runtime` (2x + checksum, deterministik doğrulandı) | -| `check-tracing` | ✅ | `cargo test --locked --manifest-path ./bizinikiwi/primitives/tracing/Cargo.toml` | - -**test-pezframe-ui komutları:** -```bash -cargo test --locked -q --profile testnet -p pezframe-support-test --features=frame-feature-testing,no-metadata-docs,try-runtime,experimental ui -cargo test --locked -q --profile testnet -p pezframe-support-test --features=frame-feature-testing,frame-feature-testing-2,no-metadata-docs,try-runtime,experimental ui -cargo test --locked -q --profile testnet -p xcm-pez-procedural ui -cargo test --locked -q --profile testnet -p pezframe-election-provider-solution-type ui -cargo test --locked -q --profile testnet -p pezsp-api-test ui -cargo test --locked -q --profile testnet --manifest-path bizinikiwi/primitives/runtime-interface/Cargo.toml ui -``` - ---- - -### 1.7 tests-evm.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `evm-test-suite (test:pvm)` | ✅ | Binary'ler derlendi: `cargo build --release -p pezpallet-revive-eth-rpc -p pez-revive-dev-node` | -| `differential-tests` | ✅ | Binary'ler derlendi, resolc GitHub releases'ten indirilir | - ---- - -### 1.8 build-misc.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `build-runtimes-polkavm` | ✅ | `BIZINIKIWI_RUNTIME_TARGET=riscv cargo check -p pez-minimal-template-runtime -p zagros-runtime -p pezkuwichain-runtime -p pezkuwi-test-runtime` | -| `check-revive-stable-uapi-polkavm` | ✅ | `cargo +nightly check -p pezpallet-revive-uapi --no-default-features --target riscv64imac-unknown-none-elf -Zbuild-std=core` | -| `build-pez-subkey` | ✅ | `cd bizinikiwi/bin/utils/pez-subkey && SKIP_WASM_BUILD=1 cargo build --locked --release` | - ---- - -### 1.9 build-publish-images.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| `build-linux-stable` | ✅ | `cargo build --locked --release -p pezkuwi` | -| `build-linux-stable-pezcumulus` | ✅ | `cargo build --locked --release -p pezkuwi-teyrchain-bin` | -| `build-linux-bizinikiwi` | ✅ | `cargo build --locked --release -p pezstaging-node-cli` | -| `build-templates-node` | ✅ | `cargo build --locked --release -p teyrchain-template-node` | -| `build-malus` | ✅ | `cargo build --locked --release -p pezkuwi-test-malus` | -| `build-test-collators` | ✅ | `cargo build --locked --release -p test-teyrchain-adder-collator -p test-teyrchain-undying-collator` | -| `prepare-bridges-zombienet-artifacts` | ✅ | `cargo build --profile testnet -p pezkuwi-test-malus --bin malus --bin pezkuwi-prepare-worker --bin pezkuwi-execute-worker` | -| `build-push-image-test-teyrchain` | ⏳ | Docker image build (CI'da çalışacak) | - ---- - -### 1.10 check-getting-started.yml - -| Job | Durum | Lokal Test Komutu | -|-----|-------|-------------------| -| Tüm distro testleri | ✅ | Template repo'ları mevcut, script doğru | - -**Template Repo'ları (GitHub'da mevcut):** -- ✅ `github.com/pezkuwichain/pezkuwi-sdk-minimal-template` -- ✅ `github.com/pezkuwichain/pezkuwi-sdk-solochain-template` -- ✅ `github.com/pezkuwichain/pezkuwi-sdk-teyrchain-template` -- ✅ `github.com/pezkuwichain/pezkuwi-runtime-templates` - ---- - -## FAZ 2: Düzeltme Sırası - -``` -AŞAMA 1 - Kritik (PR merge için ZORUNLU): -├── quick-checks.yml -│ ├── taplo format --config .config/taplo.toml -│ └── markdownlint --fix -└── checks.yml - ├── cargo clippy düzeltmeleri - └── try-runtime feature düzeltmeleri - -AŞAMA 2 - Derleme Hataları: -├── build-publish-images.yml binary build'ler -├── build-misc.yml PolkaVM build -└── tests.yml benchmark compile - -AŞAMA 3 - Test Hataları: -├── tests-linux-stable.yml unit/integration tests -├── tests-misc.yml çeşitli testler -└── docs.yml doc tests - -AŞAMA 4 - EVM/PolkaVM: -├── tests-evm.yml PolkaVM toolchain -└── resolc compiler kurulumu -``` - ---- - -## Tamamlanan Düzeltmeler - -| Tarih | Düzeltme | Etki | -|-------|----------|------| -| 2025-12-25 | check-revive-stable-uapi-polkavm: nightly + -Zbuild-std=core ile geçti | check-revive-stable-uapi-polkavm | -| 2025-12-25 | test-deterministic-wasm: zagros-runtime, pezkuwichain-runtime deterministik build doğrulandı | test-deterministic-wasm | -| 2025-12-25 | PolkaVM runtime build: pez-minimal-template-runtime BIZINIKIWI_RUNTIME_TARGET=riscv | build-runtimes-polkavm | -| 2025-12-25 | ss58-registry doc tests: pezkuwi_ss58_registry import, TokenRegistry::Hez | test-doc | -| 2025-12-25 | Rustdoc link düzeltmeleri: zombienet-sdk, subxt, ss58-registry, pezframe-support, pezpallet-presale, revive README | build-rustdoc | -| 2025-12-25 | CLI argüman rebrand: --pallet → --pezpallet, benchmark pallet → benchmark pezpallet | quick-benchmarks, scripts | -| 2025-12-25 | pezpallet-welati EnsureOrigin try_successful_origin düzeltmeleri (3 fix) | pezkuwi-teyrchain-bin build | -| 2025-12-25 | asset-hub-zagros governance origins macro düzeltmeleri (2 macro) | pezkuwi-teyrchain-bin build | -| 2025-12-25 | Binary build'ler test edildi: pezkuwi, pezkuwi-teyrchain-bin, pezstaging-node-cli, teyrchain-template-node | build-publish-images | -| 2025-12-24 | Bench check'e --features runtime-benchmarks eklendi, yanlış exclusion'lar kaldırıldı | cargo-check-all-benches | -| 2024-12-24 | Workflow'larda pezstaging-node-cli paket adı düzeltildi | build-publish-images, tests | -| 2024-12-24 | Umbrella node feature'ına subxt native propagation eklendi | check-try-runtime | -| 2024-12-24 | Vendor crate rebrand düzeltmeleri (sp_* -> pezsp_*) | cargo-clippy | -| 2024-12-24 | Subxt examples artifact paths düzeltildi | cargo-clippy | -| 2024-12-24 | Subxt examples type conversion düzeltmeleri | cargo-clippy | -| 2024-12-24 | Zombienet-sdk test type düzeltmeleri | cargo-clippy | -| 2024-12-24 | TOML format düzeltildi (umbrella/Cargo.toml) | check-toml-format | -| 2024-12-23 | Umbrella'ya pezpallet-root-testing eklendi | check-try-runtime | -| 2024-12-23 | Umbrella'ya pezpallet-xcm-benchmarks eklendi | Runtime build | -| 2024-12-23 | Subxt runtime-full'dan çıkarıldı | getrandom WASM fix | -| 2024-12-23 | Template URL'leri düzeltildi | check-getting-started | -| 2024-12-22 | rustfmt.toml stable-only | fmt job | -| 2024-12-22 | Zepter feature propagation | check-zepter | -| 2025-12-26 | solc 0.8.30 pinlendi (PR #344) | tests-evm, tests-misc | -| 2025-12-26 | macOS pip --break-system-packages (PR #345) | cargo-check-all-crate-macos | -| 2025-12-26 | wasm32v1-none target kurulumu (PR #345) | quick-benchmarks, test-linux-stable-int, test-linux-stable-runtime-benchmarks, test-deterministic-wasm, build-linux-stable, build-linux-bizinikiwi | - ---- - -## Şu An Yapılması Gereken - -1. ✅ `taplo format --config .config/taplo.toml` - TAMAMLANDI -2. ✅ `cargo clippy` düzeltmeleri - TAMAMLANDI -3. ✅ `check-try-runtime` komutları - TAMAMLANDI (subxt native feature propagation eklendi) -4. ✅ `cargo-check-all-benches` - TAMAMLANDI (--features runtime-benchmarks eklendi) -5. ✅ Build-publish-images temel binary'ler - TAMAMLANDI - - ✅ pezkuwi - - ✅ pezkuwi-teyrchain-bin - - ✅ pezstaging-node-cli - - ✅ teyrchain-template-node - - ✅ pezkuwi-test-malus - - ✅ test-teyrchain-adder-collator - - ✅ test-teyrchain-undying-collator -6. ✅ Template repo'ları - MEVCUT (GitHub'da kontrol edildi) -7. ✅ Kalan binary build'leri - TAMAMLANDI -8. ✅ Commit ve push yap - TAMAMLANDI (PR #344, PR #345) -9. ⏳ CI'da test et - PR #345 merge edildi, CI çalışıyor -10. ⏳ Tüm workflow'lar yeşil olduktan sonra → crates.io publish - ---- - -*Son Güncelleme: 2025-12-26* - ---- - -## GELECEK: Crate Publish Aşaması - -### TODO : polkavm → pezkavm Rebrand - -`polkavm-linker` external crate olduğu için (crates.io), rebrand için fork gerekli: -- polkavm → pezkavm olarak fork edilecek -- `polkavm_linker::target_json_path` → `pezkavm_linker::target_json_path` -- wasm-builder ve revive fixtures güncellenecek -- Tüm işler bitip crate publish aşamasına geçildiğinde yapılacak diff --git a/.claude/domains_repositories.md b/.claude/domains_repositories.md deleted file mode 100644 index 9d5430f6..00000000 --- a/.claude/domains_repositories.md +++ /dev/null @@ -1,186 +0,0 @@ -# PezkuwiChain Infrastructure - -## Domains - -### Primary Domain -| Property | Value | -|----------|-------| -| Domain | pezkuwichain.io | -| IP | 37.60.230.9 | -| TTL | 3600 | - -### Service Subdomains -| Subdomain | Full URL | Description | -|-----------|----------|-------------| -| www | www.pezkuwichain.io | Main website | -| network | network.pezkuwichain.io | Network portal | -| api | api.pezkuwichain.io | API endpoint | -| rpc | rpc.pezkuwichain.io | RPC endpoint | -| ws | ws.pezkuwichain.io | WebSocket endpoint | -| explorer | explorer.pezkuwichain.io | Block explorer | -| docs | docs.pezkuwichain.io | Documentation | -| wiki | wiki.pezkuwichain.io | Wiki | -| wiki.network | wiki.network.pezkuwichain.io | Network wiki | -| faucet | faucet.pezkuwichain.io | Test token faucet | -| telemetry | telemetry.pezkuwichain.io | Telemetry dashboard | -| forum | forum.pezkuwichain.io | Community forum | -| grants | grants.pezkuwichain.io | Grant program | -| developers | developers.pezkuwichain.io | Developer portal | -| mail | mail.pezkuwichain.io | Email service | - -### Network RPC Endpoints -| Network | Subdomain | Full URL | -|---------|-----------|----------| -| Mainnet | mainnet | mainnet.pezkuwichain.io | -| Mainnet | pezkuwichain-rpc | pezkuwichain-rpc.pezkuwichain.io | -| Zagros | zagros | zagros.pezkuwichain.io | -| Zagros | zagros-rpc | zagros-rpc.pezkuwichain.io | -| Zagros Asset Hub | zagros-asset-hub-rpc | zagros-asset-hub-rpc.pezkuwichain.io | -| Zagros Bridge Hub | zagros-bridge-hub-rpc | zagros-bridge-hub-rpc.pezkuwichain.io | -| Zagros Collectives | zagros-collectives-rpc | zagros-collectives-rpc.pezkuwichain.io | -| Zagros Coretime | zagros-coretime-rpc | zagros-coretime-rpc.pezkuwichain.io | -| Testnet | testnet | testnet.pezkuwichain.io | -| Staging | staging | staging.pezkuwichain.io | -| Beta | beta | beta.pezkuwichain.io | -| Beta RPC | beta-rpc | beta-rpc.pezkuwichain.io | -| Try Runtime | try-runtime | try-runtime.pezkuwichain.io | -| Try Runtime Zagros | try-runtime-zagros | try-runtime-zagros.pezkuwichain.io | - ---- - -## GitHub Repositories - -**Organization:** https://github.com/pezkuwichain - -### Core SDK Repositories -| Repository | Description | Language | Upstream | -|------------|-------------|----------|----------| -| pezkuwi-sdk | Digital state for Kurdish nation on blockchain | Rust | paritytech/polkadot-sdk | -| polkadot-sdk | The Parity Polkadot Blockchain SDK (fork) | Rust | paritytech/polkadot-sdk | -| pezkuwi-subxt | Interact with Substrate based nodes | Rust | paritytech/subxt | -| pezkuwi-zombienet-sdk | ZombieNet SDK | Rust | paritytech/zombienet-sdk | - -### Template Repositories -| Repository | Description | Language | Upstream | -|------------|-------------|----------|----------| -| pezkuwi-sdk-minimal-template | Minimal Testing/Learning Template | Rust | paritytech/polkadot-sdk-minimal-template | -| pezkuwi-sdk-solochain-template | Solochain-Ready Template | Rust | paritytech/polkadot-sdk-solochain-template | -| pezkuwi-sdk-teyrchain-template | Teyrchain template for Pezkuwi SDK | Rust | paritytech/polkadot-sdk-parachain-template | -| polkadot-runtime-templates | Runtime Templates for Pezkuwi Teyrchains | Rust | - | - -### Library Forks -| Repository | Description | Language | Upstream | -|------------|-------------|----------|----------| -| parity-db | Experimental blockchain database | Rust | paritytech/parity-db | -| parity-scale-codec | Binary serialization codec | Rust | paritytech/parity-scale-codec | -| pezframe-metadata | FRAME metadata parser tools | Rust | paritytech/frame-metadata | -| merkle-mountain-range | MMR implementation | Rust | nervosnetwork/merkle-mountain-range | -| wasm-instrument | WASM module instrumentation | Rust | parity/wasm-instrument | -| consensus | Consensus for Web3 | TeX | parity/consensus | - -### Community & Documentation -| Repository | Description | Language | Upstream | -|------------|-------------|----------|----------| -| awesome-hez | Awesome resources in Polkadot ecosystem | - | parity/awesome-substrate | -| pezkuwi-fellows | Fellowship proposals | Handlebars | polkadot-fellows/rfc | -| kurdistan_blockchain-akademy | Blockchain Academy Rust Qualifier | Rust | polkadot-blockchain-academy | -| docs | PezkuwiChain documentation | Rust | - | -| labels | Label rules for repositories | Shell | paritytech/labels | - -### Applications -| Repository | Description | Language | -|------------|-------------|----------| -| DKSweb | Sovereign Blockchain for Kurdish Nation | TypeScript | -| pezkuwi-mobile-app | Official Mobile App | TypeScript | -| pwap | Web and mobile applications monorepo | TypeScript | -| pezkuwi-validator-v1.0.0 | Validator installer scripts | Shell | -| testnet | Testnet configuration | Shell | -| workflow-stopper | CI/CD workflow management | - | - ---- - -## URL Mapping Reference - -### Repositories We Own (use pezkuwichain URLs) -``` -github.com/pezkuwichain/pezkuwi-sdk -github.com/pezkuwichain/pezkuwi-subxt -github.com/pezkuwichain/pezkuwi-zombienet-sdk -github.com/pezkuwichain/pezkuwi-fellows -github.com/pezkuwichain/awesome-hez -github.com/pezkuwichain/parity-db -github.com/pezkuwichain/parity-scale-codec -github.com/pezkuwichain/pezframe-metadata -github.com/pezkuwichain/merkle-mountain-range -github.com/pezkuwichain/wasm-instrument -github.com/pezkuwichain/kurdistan_blockchain-akademy -``` - -### External Repositories (use original URLs) -| Our Reference | Original URL | -|---------------|--------------| -| xcm-format | github.com/polkadot-fellows/xcm-format | -| try-runtime-cli | github.com/paritytech/try-runtime-cli | -| trie | github.com/paritytech/trie | -| srtool | github.com/paritytech/srtool | -| parity-common | github.com/paritytech/parity-common | -| arkworks-extensions | github.com/paritytech/arkworks-extensions | -| chainextension-registry | github.com/parity/chainextension-registry | -| substrate-developer-hub | github.com/substrate-developer-hub | - -### External Websites (use original URLs) -| Our Reference | Original URL | -|---------------|--------------| -| shawntabrizi.com/bizinikiwi-* | shawntabrizi.com/substrate-* | -| pezkuwichain.github.io | paritytech.github.io | - ---- - -## Code Usage Examples - -```rust -// Website URLs -"https://pezkuwichain.io" -"https://network.pezkuwichain.io" -"https://docs.pezkuwichain.io" - -// RPC Endpoints -"wss://rpc.pezkuwichain.io" // Mainnet WS -"wss://zagros-rpc.pezkuwichain.io" // Zagros WS - -// GitHub Repositories -"https://github.com/pezkuwichain/pezkuwi-sdk" -"https://github.com/pezkuwichain/awesome-hez" -``` - ---- - ---- - -## VPS Runner Infrastructure - -**GitHub Actions Self-Hosted Runners:** - -| VPS | IP Address | SSH | Runner Label | Status | -|-----|------------|-----|--------------|--------| -| VPS1 | 37.60.230.9 | `ssh root@37.60.230.9` | ubuntu-large | Active | -| VPS2 | 62.146.235.186 | `ssh root@62.146.235.186` | ubuntu-xlarge | Active | - -**Runner Configuration:** -- Both runners work in parallel for CI workloads -- VPS1: Primary domain server + runner -- VPS2: Dedicated runner for larger jobs - -**Monitoring:** -```bash -# Check runner status -gh run list --limit 10 - -# SSH to runners -ssh root@37.60.230.9 -ssh root@62.146.235.186 -``` - ---- - -*Last updated: 2025-12-27* diff --git a/Cargo.toml b/Cargo.toml index 46609693..a5d12fbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -623,7 +623,6 @@ members = [ "vendor/pezkuwi-zombienet-sdk/crates/provider", "vendor/pezkuwi-zombienet-sdk/crates/sdk", "vendor/pezkuwi-zombienet-sdk/crates/support", - "vendor/pezkuwi-zombienet-sdk/crates/cli", ] default-members = [ diff --git a/bizinikiwi/bin/node/cli/Cargo.toml b/bizinikiwi/bin/node/cli/Cargo.toml index 63066807..34694151 100644 --- a/bizinikiwi/bin/node/cli/Cargo.toml +++ b/bizinikiwi/bin/node/cli/Cargo.toml @@ -210,8 +210,8 @@ pezkuwi-sdk = { features = [ ], optional = true, workspace = true, default-features = true } [features] -default = ["cli"] -cli = ["clap", "clap_complete", "node-inspect", "pezkuwi-sdk"] +default = [ "cli" ] +cli = [ "clap", "clap_complete", "node-inspect", "pezkuwi-sdk" ] runtime-benchmarks = [ "bizinikiwi-cli-test-utils/runtime-benchmarks", "node-inspect?/runtime-benchmarks", @@ -223,8 +223,9 @@ runtime-benchmarks = [ "pezsc-service-test/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", + "pezframe-benchmarking-cli?/runtime-benchmarks" ] -storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"] +storage-benchmark = [ "pezframe-benchmarking-cli/storage-benchmark" ] try-runtime = [ "bizinikiwi-cli-test-utils/try-runtime", "pez-kitchensink-runtime/try-runtime", diff --git a/bizinikiwi/bin/node/primitives/Cargo.toml b/bizinikiwi/bin/node/primitives/Cargo.toml index 78c35e86..ca015f51 100644 --- a/bizinikiwi/bin/node/primitives/Cargo.toml +++ b/bizinikiwi/bin/node/primitives/Cargo.toml @@ -21,6 +21,6 @@ pezsp-core = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["pezsp-core/std", "pezsp-runtime/std"] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +default = [ "std" ] +std = [ "pezsp-core/std", "pezsp-runtime/std" ] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/bin/node/runtime/Cargo.toml b/bizinikiwi/bin/node/runtime/Cargo.toml index f74c6f98..1d52caa5 100644 --- a/bizinikiwi/bin/node/runtime/Cargo.toml +++ b/bizinikiwi/bin/node/runtime/Cargo.toml @@ -51,8 +51,8 @@ pezpallet-example-tasks = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] -with-tracing = ["pezkuwi-sdk/with-tracing"] +default = [ "std" ] +with-tracing = [ "pezkuwi-sdk/with-tracing" ] std = [ "bizinikiwi-wasm-builder", "codec/std", @@ -88,5 +88,5 @@ try-runtime = [ "pezpallet-example-tasks/try-runtime", "pezsp-runtime/try-runtime", ] -experimental = ["pezpallet-example-tasks/experimental"] -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +experimental = [ "pezpallet-example-tasks/experimental" ] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] diff --git a/bizinikiwi/bin/utils/pez-subkey/Cargo.toml b/bizinikiwi/bin/utils/pez-subkey/Cargo.toml index e81724bf..658ad9b3 100644 --- a/bizinikiwi/bin/utils/pez-subkey/Cargo.toml +++ b/bizinikiwi/bin/utils/pez-subkey/Cargo.toml @@ -25,4 +25,4 @@ clap = { features = ["derive"], workspace = true } pezsc-cli = { workspace = true, default-features = true } [features] -runtime-benchmarks = ["pezsc-cli/runtime-benchmarks"] +runtime-benchmarks = [ "pezsc-cli/runtime-benchmarks" ] diff --git a/bizinikiwi/client/cli/Cargo.toml b/bizinikiwi/client/cli/Cargo.toml index 3e385310..72663bda 100644 --- a/bizinikiwi/client/cli/Cargo.toml +++ b/bizinikiwi/client/cli/Cargo.toml @@ -63,8 +63,8 @@ pezsp-tracing = { workspace = true, default-features = true } tempfile = { workspace = true } [features] -default = ["rocksdb"] -rocksdb = ["pezsc-client-db/rocksdb"] +default = [ "rocksdb" ] +rocksdb = [ "pezsc-client-db/rocksdb" ] runtime-benchmarks = [ "pezsc-client-api/runtime-benchmarks", "pezsc-client-db/runtime-benchmarks", diff --git a/bizinikiwi/client/db/Cargo.toml b/bizinikiwi/client/db/Cargo.toml index 5c952b1d..bd6aeac5 100644 --- a/bizinikiwi/client/db/Cargo.toml +++ b/bizinikiwi/client/db/Cargo.toml @@ -68,4 +68,4 @@ runtime-benchmarks = [ "pezsp-state-machine/runtime-benchmarks", "pezsp-trie/runtime-benchmarks", ] -rocksdb = ["kvdb-rocksdb"] +rocksdb = [ "kvdb-rocksdb" ] diff --git a/bizinikiwi/client/executor/Cargo.toml b/bizinikiwi/client/executor/Cargo.toml index 82e59e0d..c9d221f5 100644 --- a/bizinikiwi/client/executor/Cargo.toml +++ b/bizinikiwi/client/executor/Cargo.toml @@ -58,7 +58,7 @@ tracing-subscriber = { workspace = true } wat = { workspace = true } [features] -default = ["std"] +default = [ "std" ] # This crate does not have `no_std` support, we just require this for tests std = [ "bizinikiwi-test-runtime/std", diff --git a/bizinikiwi/client/executor/runtime-test/Cargo.toml b/bizinikiwi/client/executor/runtime-test/Cargo.toml index 0b20018d..750a3f4d 100644 --- a/bizinikiwi/client/executor/runtime-test/Cargo.toml +++ b/bizinikiwi/client/executor/runtime-test/Cargo.toml @@ -27,7 +27,7 @@ pezsp-runtime-interface = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "pezsp-core/std", diff --git a/bizinikiwi/client/network/common/Cargo.toml b/bizinikiwi/client/network/common/Cargo.toml index cc8087de..bcc6a659 100644 --- a/bizinikiwi/client/network/common/Cargo.toml +++ b/bizinikiwi/client/network/common/Cargo.toml @@ -21,4 +21,4 @@ codec = { features = ["derive"], workspace = true, default-features = true } pezsp-runtime = { workspace = true, default-features = true } [features] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/client/rpc-servers/Cargo.toml b/bizinikiwi/client/rpc-servers/Cargo.toml index e76705d0..96766e02 100644 --- a/bizinikiwi/client/rpc-servers/Cargo.toml +++ b/bizinikiwi/client/rpc-servers/Cargo.toml @@ -38,4 +38,4 @@ tower = { workspace = true, features = ["util"] } tower-http = { workspace = true, features = ["cors"] } [features] -runtime-benchmarks = ["pezsc-rpc-api/runtime-benchmarks"] +runtime-benchmarks = [ "pezsc-rpc-api/runtime-benchmarks" ] diff --git a/bizinikiwi/client/service/Cargo.toml b/bizinikiwi/client/service/Cargo.toml index f8c72c27..f7e4ce32 100644 --- a/bizinikiwi/client/service/Cargo.toml +++ b/bizinikiwi/client/service/Cargo.toml @@ -84,10 +84,10 @@ bizinikiwi-test-runtime = { workspace = true } bizinikiwi-test-runtime-client = { workspace = true } [features] -default = ["rocksdb"] +default = [ "rocksdb" ] # The RocksDB feature activates the RocksDB database backend. If it is not activated, and you pass # a path to a database, an error will be produced at runtime. -rocksdb = ["pezsc-client-db/rocksdb"] +rocksdb = [ "pezsc-client-db/rocksdb" ] runtime-benchmarks = [ "bizinikiwi-test-runtime-client/runtime-benchmarks", "bizinikiwi-test-runtime/runtime-benchmarks", diff --git a/bizinikiwi/client/transaction-pool/tests/zombienet/mod.rs b/bizinikiwi/client/transaction-pool/tests/zombienet/mod.rs index 29d629c4..1791c6b8 100644 --- a/bizinikiwi/client/transaction-pool/tests/zombienet/mod.rs +++ b/bizinikiwi/client/transaction-pool/tests/zombienet/mod.rs @@ -20,13 +20,13 @@ //! across integration tests for transaction pool. use anyhow::anyhow; -use std::time::SystemTime; -use tracing_subscriber::EnvFilter; -use txtesttool::scenario::{ChainType, ScenarioBuilder}; use pezkuwi_zombienet_sdk::{ pezkuwi_subxt::BizinikiwConfig, GlobalSettingsBuilder, LocalFileSystem, Network, NetworkConfig, NetworkConfigBuilder, NetworkConfigExt, WithRelaychain, }; +use std::time::SystemTime; +use tracing_subscriber::EnvFilter; +use txtesttool::scenario::{ChainType, ScenarioBuilder}; /// Bizinikiwi configuration for zombienet tests - based on BizinikiwConfig pub type BizinikiwiConfig = BizinikiwConfig; diff --git a/bizinikiwi/client/transaction-pool/tests/zombienet/yap_test.rs b/bizinikiwi/client/transaction-pool/tests/zombienet/yap_test.rs index 5510f655..2c979918 100644 --- a/bizinikiwi/client/transaction-pool/tests/zombienet/yap_test.rs +++ b/bizinikiwi/client/transaction-pool/tests/zombienet/yap_test.rs @@ -23,13 +23,13 @@ use crate::zombienet::{BlockSubscriptionType, NetworkSpawner, ScenarioBuilderSharedParams}; use pezcumulus_zombienet_sdk_helpers::create_assign_core_call; -use serde_json::json; -use txtesttool::{execution_log::ExecutionLog, scenario::ScenarioBuilder}; use pezkuwi_zombienet_sdk::{ pezkuwi_subxt::{OnlineClient, PezkuwiConfig}, pezkuwi_subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; +use txtesttool::{execution_log::ExecutionLog, scenario::ScenarioBuilder}; #[tokio::test(flavor = "multi_thread")] #[ignore] diff --git a/bizinikiwi/client/utils/Cargo.toml b/bizinikiwi/client/utils/Cargo.toml index d1c38a46..18d85128 100644 --- a/bizinikiwi/client/utils/Cargo.toml +++ b/bizinikiwi/client/utils/Cargo.toml @@ -26,5 +26,5 @@ prometheus = { workspace = true } tokio-test = { workspace = true } [features] -default = ["metered"] +default = [ "metered" ] metered = [] diff --git a/bizinikiwi/deprecated/hashing/Cargo.toml b/bizinikiwi/deprecated/hashing/Cargo.toml index 6570885a..7310aa6f 100644 --- a/bizinikiwi/deprecated/hashing/Cargo.toml +++ b/bizinikiwi/deprecated/hashing/Cargo.toml @@ -19,5 +19,5 @@ targets = ["x86_64-unknown-linux-gnu"] pezsp-crypto-hashing = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["pezsp-crypto-hashing/std"] +default = [ "std" ] +std = [ "pezsp-crypto-hashing/std" ] diff --git a/bizinikiwi/pezframe/Cargo.toml b/bizinikiwi/pezframe/Cargo.toml index d29031ed..06d99cac 100644 --- a/bizinikiwi/pezframe/Cargo.toml +++ b/bizinikiwi/pezframe/Cargo.toml @@ -62,7 +62,7 @@ docify = { workspace = true } log = { workspace = true } [features] -default = ["runtime", "std"] +default = [ "runtime", "std" ] std = [ "codec/std", "log/std", @@ -121,7 +121,7 @@ try-runtime = [ "pezframe-try-runtime/try-runtime", "pezsp-runtime/try-runtime", ] -experimental = ["pezframe-support/experimental"] +experimental = [ "pezframe-support/experimental" ] runtime = [ "pezframe-executive", "pezframe-system-rpc-runtime-api", diff --git a/bizinikiwi/pezframe/alliance/Cargo.toml b/bizinikiwi/pezframe/alliance/Cargo.toml index 96a92259..14070428 100644 --- a/bizinikiwi/pezframe/alliance/Cargo.toml +++ b/bizinikiwi/pezframe/alliance/Cargo.toml @@ -42,7 +42,7 @@ pezpallet-collective = { workspace = true, default-features = true } pezsp-crypto-hashing = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/asset-conversion/Cargo.toml b/bizinikiwi/pezframe/asset-conversion/Cargo.toml index e2fb9a1e..03f328ef 100644 --- a/bizinikiwi/pezframe/asset-conversion/Cargo.toml +++ b/bizinikiwi/pezframe/asset-conversion/Cargo.toml @@ -39,7 +39,7 @@ primitive-types = { features = [ ], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/asset-conversion/ops/Cargo.toml b/bizinikiwi/pezframe/asset-conversion/ops/Cargo.toml index 39018cc1..119a7bdc 100644 --- a/bizinikiwi/pezframe/asset-conversion/ops/Cargo.toml +++ b/bizinikiwi/pezframe/asset-conversion/ops/Cargo.toml @@ -38,7 +38,7 @@ primitive-types = { features = [ ], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/asset-rate/Cargo.toml b/bizinikiwi/pezframe/asset-rate/Cargo.toml index 4927a672..0e6a3d10 100644 --- a/bizinikiwi/pezframe/asset-rate/Cargo.toml +++ b/bizinikiwi/pezframe/asset-rate/Cargo.toml @@ -30,7 +30,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/asset-rewards/Cargo.toml b/bizinikiwi/pezframe/asset-rewards/Cargo.toml index 6fee03a0..3b92f79d 100644 --- a/bizinikiwi/pezframe/asset-rewards/Cargo.toml +++ b/bizinikiwi/pezframe/asset-rewards/Cargo.toml @@ -39,7 +39,7 @@ primitive-types = { workspace = true, features = [ ] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/assets-freezer/Cargo.toml b/bizinikiwi/pezframe/assets-freezer/Cargo.toml index 025f9023..571a506b 100644 --- a/bizinikiwi/pezframe/assets-freezer/Cargo.toml +++ b/bizinikiwi/pezframe/assets-freezer/Cargo.toml @@ -28,13 +28,13 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", - "pezframe-support/std", "log/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-assets/std", "pezpallet-balances/std", "scale-info/std", @@ -43,9 +43,13 @@ runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-assets/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-assets/try-runtime", "pezpallet-balances/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/assets-holder/Cargo.toml b/bizinikiwi/pezframe/assets-holder/Cargo.toml index b07db587..83df42f5 100644 --- a/bizinikiwi/pezframe/assets-holder/Cargo.toml +++ b/bizinikiwi/pezframe/assets-holder/Cargo.toml @@ -31,7 +31,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/assets/Cargo.toml b/bizinikiwi/pezframe/assets/Cargo.toml index 6883e38d..65b61d9e 100644 --- a/bizinikiwi/pezframe/assets/Cargo.toml +++ b/bizinikiwi/pezframe/assets/Cargo.toml @@ -35,7 +35,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/assets/precompiles/Cargo.toml b/bizinikiwi/pezframe/assets/precompiles/Cargo.toml index 6aed9209..433d2863 100644 --- a/bizinikiwi/pezframe/assets/precompiles/Cargo.toml +++ b/bizinikiwi/pezframe/assets/precompiles/Cargo.toml @@ -31,7 +31,7 @@ pezsp-runtime = { workspace = true } scale-info = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/atomic-swap/Cargo.toml b/bizinikiwi/pezframe/atomic-swap/Cargo.toml index 8240f2cc..1d9054fd 100644 --- a/bizinikiwi/pezframe/atomic-swap/Cargo.toml +++ b/bizinikiwi/pezframe/atomic-swap/Cargo.toml @@ -27,10 +27,24 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "pezpallet-balances/std", "scale-info/std"] -try-runtime = ["pezframe/try-runtime", "pezpallet-balances/try-runtime"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "pezpallet-balances/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] +try-runtime = [ + "pezframe/try-runtime", + "pezpallet-balances/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/aura/Cargo.toml b/bizinikiwi/pezframe/aura/Cargo.toml index 6f5ae001..81a6f335 100644 --- a/bizinikiwi/pezframe/aura/Cargo.toml +++ b/bizinikiwi/pezframe/aura/Cargo.toml @@ -32,7 +32,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/authority-discovery/Cargo.toml b/bizinikiwi/pezframe/authority-discovery/Cargo.toml index 89b46f17..8f1db761 100644 --- a/bizinikiwi/pezframe/authority-discovery/Cargo.toml +++ b/bizinikiwi/pezframe/authority-discovery/Cargo.toml @@ -32,7 +32,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/authorship/Cargo.toml b/bizinikiwi/pezframe/authorship/Cargo.toml index 25f47e31..cdaa00d6 100644 --- a/bizinikiwi/pezframe/authorship/Cargo.toml +++ b/bizinikiwi/pezframe/authorship/Cargo.toml @@ -29,7 +29,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/babe/Cargo.toml b/bizinikiwi/pezframe/babe/Cargo.toml index 4b1e0421..85156b94 100644 --- a/bizinikiwi/pezframe/babe/Cargo.toml +++ b/bizinikiwi/pezframe/babe/Cargo.toml @@ -44,7 +44,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/bags-list/Cargo.toml b/bizinikiwi/pezframe/bags-list/Cargo.toml index 47297785..7fb00fdf 100644 --- a/bizinikiwi/pezframe/bags-list/Cargo.toml +++ b/bizinikiwi/pezframe/bags-list/Cargo.toml @@ -50,7 +50,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/balances/Cargo.toml b/bizinikiwi/pezframe/balances/Cargo.toml index 0a93cae8..392e7fe4 100644 --- a/bizinikiwi/pezframe/balances/Cargo.toml +++ b/bizinikiwi/pezframe/balances/Cargo.toml @@ -36,7 +36,7 @@ pezframe-support = { features = [ pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/beefy-mmr/Cargo.toml b/bizinikiwi/pezframe/beefy-mmr/Cargo.toml index 8ad3b775..401fd2c2 100644 --- a/bizinikiwi/pezframe/beefy-mmr/Cargo.toml +++ b/bizinikiwi/pezframe/beefy-mmr/Cargo.toml @@ -38,12 +38,12 @@ pezpallet-balances = { workspace = true } pezsp-staking = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "array-bytes", - "pez-binary-merkle-tree/std", "codec/std", "log/std", + "pez-binary-merkle-tree/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", diff --git a/bizinikiwi/pezframe/beefy/Cargo.toml b/bizinikiwi/pezframe/beefy/Cargo.toml index 06df9864..169c6a2e 100644 --- a/bizinikiwi/pezframe/beefy/Cargo.toml +++ b/bizinikiwi/pezframe/beefy/Cargo.toml @@ -40,7 +40,7 @@ pezsp-state-machine = { workspace = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/benchmarking/Cargo.toml b/bizinikiwi/pezframe/benchmarking/Cargo.toml index fdae94f1..885c3b00 100644 --- a/bizinikiwi/pezframe/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/benchmarking/Cargo.toml @@ -44,7 +44,7 @@ pezsp-state-machine = { workspace = true } rusty-fork = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "linregress", diff --git a/bizinikiwi/pezframe/benchmarking/pov/Cargo.toml b/bizinikiwi/pezframe/benchmarking/pov/Cargo.toml index c18a70ae..dad5248a 100644 --- a/bizinikiwi/pezframe/benchmarking/pov/Cargo.toml +++ b/bizinikiwi/pezframe/benchmarking/pov/Cargo.toml @@ -25,7 +25,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking/std", diff --git a/bizinikiwi/pezframe/bounties/Cargo.toml b/bizinikiwi/pezframe/bounties/Cargo.toml index 666ccce7..94fe90b4 100644 --- a/bizinikiwi/pezframe/bounties/Cargo.toml +++ b/bizinikiwi/pezframe/bounties/Cargo.toml @@ -32,7 +32,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/broker/Cargo.toml b/bizinikiwi/pezframe/broker/Cargo.toml index 34f1027c..cda70267 100644 --- a/bizinikiwi/pezframe/broker/Cargo.toml +++ b/bizinikiwi/pezframe/broker/Cargo.toml @@ -34,7 +34,7 @@ pezsp-tracing = { workspace = true, default-features = true } pretty_assertions = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bitvec/std", "codec/std", diff --git a/bizinikiwi/pezframe/child-bounties/Cargo.toml b/bizinikiwi/pezframe/child-bounties/Cargo.toml index 706a4433..e01064b0 100644 --- a/bizinikiwi/pezframe/child-bounties/Cargo.toml +++ b/bizinikiwi/pezframe/child-bounties/Cargo.toml @@ -33,7 +33,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/collective/Cargo.toml b/bizinikiwi/pezframe/collective/Cargo.toml index 4add6c51..e3f8d1ee 100644 --- a/bizinikiwi/pezframe/collective/Cargo.toml +++ b/bizinikiwi/pezframe/collective/Cargo.toml @@ -32,7 +32,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/contracts/Cargo.toml b/bizinikiwi/pezframe/contracts/Cargo.toml index b9d211c9..70b3cc83 100644 --- a/bizinikiwi/pezframe/contracts/Cargo.toml +++ b/bizinikiwi/pezframe/contracts/Cargo.toml @@ -71,7 +71,7 @@ pezsp-keystore = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "environmental/std", diff --git a/bizinikiwi/pezframe/contracts/mock-network/Cargo.toml b/bizinikiwi/pezframe/contracts/mock-network/Cargo.toml index 11cf9b6b..cb6f99ad 100644 --- a/bizinikiwi/pezframe/contracts/mock-network/Cargo.toml +++ b/bizinikiwi/pezframe/contracts/mock-network/Cargo.toml @@ -43,7 +43,7 @@ xcm-pez-simulator = { workspace = true, default-features = true } pezpallet-contracts-fixtures = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/contracts/uapi/Cargo.toml b/bizinikiwi/pezframe/contracts/uapi/Cargo.toml index 0fe05702..b5518f7c 100644 --- a/bizinikiwi/pezframe/contracts/uapi/Cargo.toml +++ b/bizinikiwi/pezframe/contracts/uapi/Cargo.toml @@ -25,5 +25,5 @@ paste = { workspace = true } scale-info = { features = ["derive"], optional = true, workspace = true } [features] -default = ["scale"] -scale = ["dep:codec", "scale-info"] +default = [ "scale" ] +scale = [ "dep:codec", "scale-info" ] diff --git a/bizinikiwi/pezframe/conviction-voting/Cargo.toml b/bizinikiwi/pezframe/conviction-voting/Cargo.toml index 1297486b..97e6f240 100644 --- a/bizinikiwi/pezframe/conviction-voting/Cargo.toml +++ b/bizinikiwi/pezframe/conviction-voting/Cargo.toml @@ -34,7 +34,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-core = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/core-fellowship/Cargo.toml b/bizinikiwi/pezframe/core-fellowship/Cargo.toml index 06286e01..3cb65820 100644 --- a/bizinikiwi/pezframe/core-fellowship/Cargo.toml +++ b/bizinikiwi/pezframe/core-fellowship/Cargo.toml @@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/delegated-staking/Cargo.toml b/bizinikiwi/pezframe/delegated-staking/Cargo.toml index 82a413af..7370327a 100644 --- a/bizinikiwi/pezframe/delegated-staking/Cargo.toml +++ b/bizinikiwi/pezframe/delegated-staking/Cargo.toml @@ -33,7 +33,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/democracy/Cargo.toml b/bizinikiwi/pezframe/democracy/Cargo.toml index 18959211..f72fbe7b 100644 --- a/bizinikiwi/pezframe/democracy/Cargo.toml +++ b/bizinikiwi/pezframe/democracy/Cargo.toml @@ -36,7 +36,7 @@ pezpallet-preimage = { workspace = true, default-features = true } pezpallet-scheduler = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/derivatives/Cargo.toml b/bizinikiwi/pezframe/derivatives/Cargo.toml index c5bccf00..7d3c2cf7 100644 --- a/bizinikiwi/pezframe/derivatives/Cargo.toml +++ b/bizinikiwi/pezframe/derivatives/Cargo.toml @@ -36,7 +36,7 @@ xcm-executor = { workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/dummy-dim/Cargo.toml b/bizinikiwi/pezframe/dummy-dim/Cargo.toml index 5c5034d6..c7ba106e 100644 --- a/bizinikiwi/pezframe/dummy-dim/Cargo.toml +++ b/bizinikiwi/pezframe/dummy-dim/Cargo.toml @@ -31,7 +31,7 @@ pezpallet-people = { workspace = true } verifiable = { workspace = true, features = ["small-ring"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/election-provider-multi-block/Cargo.toml b/bizinikiwi/pezframe/election-provider-multi-block/Cargo.toml index dec0668a..121705bb 100644 --- a/bizinikiwi/pezframe/election-provider-multi-block/Cargo.toml +++ b/bizinikiwi/pezframe/election-provider-multi-block/Cargo.toml @@ -43,7 +43,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/election-provider-multi-phase/Cargo.toml b/bizinikiwi/pezframe/election-provider-multi-phase/Cargo.toml index 0b66e691..4f6233f5 100644 --- a/bizinikiwi/pezframe/election-provider-multi-phase/Cargo.toml +++ b/bizinikiwi/pezframe/election-provider-multi-phase/Cargo.toml @@ -51,8 +51,8 @@ rand = { workspace = true, default-features = true } [features] -remote-mining = ["hex", "remote-externalities", "tokio"] -default = ["std"] +remote-mining = [ "hex", "remote-externalities", "tokio" ] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/election-provider-support/Cargo.toml b/bizinikiwi/pezframe/election-provider-support/Cargo.toml index bb6d5974..77a209d9 100644 --- a/bizinikiwi/pezframe/election-provider-support/Cargo.toml +++ b/bizinikiwi/pezframe/election-provider-support/Cargo.toml @@ -34,8 +34,8 @@ pezsp-npos-elections = { workspace = true, default-features = true } rand = { features = ["small_rng"], workspace = true, default-features = true } [features] -default = ["std"] -fuzz = ["default"] +default = [ "std" ] +fuzz = [ "default" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/election-provider-support/benchmarking/Cargo.toml b/bizinikiwi/pezframe/election-provider-support/benchmarking/Cargo.toml index 220b1496..b18e08e9 100644 --- a/bizinikiwi/pezframe/election-provider-support/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/election-provider-support/benchmarking/Cargo.toml @@ -24,7 +24,7 @@ pezsp-npos-elections = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/elections-phragmen/Cargo.toml b/bizinikiwi/pezframe/elections-phragmen/Cargo.toml index 61c4ede8..81ca53f4 100644 --- a/bizinikiwi/pezframe/elections-phragmen/Cargo.toml +++ b/bizinikiwi/pezframe/elections-phragmen/Cargo.toml @@ -36,7 +36,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/Cargo.toml b/bizinikiwi/pezframe/examples/Cargo.toml index de2ab443..d98f24c3 100644 --- a/bizinikiwi/pezframe/examples/Cargo.toml +++ b/bizinikiwi/pezframe/examples/Cargo.toml @@ -30,7 +30,7 @@ pezpallet-example-tasks = { workspace = true } pezpallet-example-view-functions = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezpallet-default-config-example/std", "pezpallet-dev-mode/std", diff --git a/bizinikiwi/pezframe/examples/authorization-tx-extension/Cargo.toml b/bizinikiwi/pezframe/examples/authorization-tx-extension/Cargo.toml index 25de3800..daf3f99c 100644 --- a/bizinikiwi/pezframe/examples/authorization-tx-extension/Cargo.toml +++ b/bizinikiwi/pezframe/examples/authorization-tx-extension/Cargo.toml @@ -35,7 +35,7 @@ pezsp-core = { workspace = true } pezsp-keyring = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/basic/Cargo.toml b/bizinikiwi/pezframe/examples/basic/Cargo.toml index ced41ab5..296da90d 100644 --- a/bizinikiwi/pezframe/examples/basic/Cargo.toml +++ b/bizinikiwi/pezframe/examples/basic/Cargo.toml @@ -32,7 +32,7 @@ scale-info = { features = ["derive"], workspace = true } pezsp-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/default-config/Cargo.toml b/bizinikiwi/pezframe/examples/default-config/Cargo.toml index b00298b9..14cd0c8b 100644 --- a/bizinikiwi/pezframe/examples/default-config/Cargo.toml +++ b/bizinikiwi/pezframe/examples/default-config/Cargo.toml @@ -28,7 +28,7 @@ pezsp-io = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/dev-mode/Cargo.toml b/bizinikiwi/pezframe/examples/dev-mode/Cargo.toml index b8bbd961..e210615a 100644 --- a/bizinikiwi/pezframe/examples/dev-mode/Cargo.toml +++ b/bizinikiwi/pezframe/examples/dev-mode/Cargo.toml @@ -31,7 +31,7 @@ scale-info = { features = ["derive"], workspace = true } pezsp-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/kitchensink/Cargo.toml b/bizinikiwi/pezframe/examples/kitchensink/Cargo.toml index e9e6b3b0..e6030a44 100644 --- a/bizinikiwi/pezframe/examples/kitchensink/Cargo.toml +++ b/bizinikiwi/pezframe/examples/kitchensink/Cargo.toml @@ -35,7 +35,7 @@ pezpallet-balances = { workspace = true } pezsp-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/multi-block-migrations/Cargo.toml b/bizinikiwi/pezframe/examples/multi-block-migrations/Cargo.toml index 34f3d21d..39e7bc3a 100644 --- a/bizinikiwi/pezframe/examples/multi-block-migrations/Cargo.toml +++ b/bizinikiwi/pezframe/examples/multi-block-migrations/Cargo.toml @@ -24,7 +24,7 @@ pezsp-io = { workspace = true } scale-info = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/offchain-worker/Cargo.toml b/bizinikiwi/pezframe/examples/offchain-worker/Cargo.toml index 39e39df3..2dd9aade 100644 --- a/bizinikiwi/pezframe/examples/offchain-worker/Cargo.toml +++ b/bizinikiwi/pezframe/examples/offchain-worker/Cargo.toml @@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "lite-json/std", diff --git a/bizinikiwi/pezframe/examples/pezframe-crate/Cargo.toml b/bizinikiwi/pezframe/examples/pezframe-crate/Cargo.toml index a66e8ace..04ebdf5a 100644 --- a/bizinikiwi/pezframe/examples/pezframe-crate/Cargo.toml +++ b/bizinikiwi/pezframe/examples/pezframe-crate/Cargo.toml @@ -28,6 +28,16 @@ pezframe-system = { workspace = true } pezframe-support = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "pezframe-system/std", "pezframe-support/std", "scale-info/std"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", + "scale-info/std", +] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] diff --git a/bizinikiwi/pezframe/examples/single-block-migrations/Cargo.toml b/bizinikiwi/pezframe/examples/single-block-migrations/Cargo.toml index f6515240..3e0e890c 100644 --- a/bizinikiwi/pezframe/examples/single-block-migrations/Cargo.toml +++ b/bizinikiwi/pezframe/examples/single-block-migrations/Cargo.toml @@ -27,7 +27,7 @@ pezsp-version = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/examples/split/Cargo.toml b/bizinikiwi/pezframe/examples/split/Cargo.toml index 486b5ec6..78c76316 100644 --- a/bizinikiwi/pezframe/examples/split/Cargo.toml +++ b/bizinikiwi/pezframe/examples/split/Cargo.toml @@ -33,7 +33,7 @@ pezframe-benchmarking = { optional = true, workspace = true } pezsp-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", @@ -50,4 +50,4 @@ runtime-benchmarks = [ "pezframe-system/runtime-benchmarks", "pezsp-io/runtime-benchmarks", ] -try-runtime = ["pezframe-support/try-runtime", "pezframe-system/try-runtime"] +try-runtime = [ "pezframe-support/try-runtime", "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/examples/tasks/Cargo.toml b/bizinikiwi/pezframe/examples/tasks/Cargo.toml index 5030915f..9447a3be 100644 --- a/bizinikiwi/pezframe/examples/tasks/Cargo.toml +++ b/bizinikiwi/pezframe/examples/tasks/Cargo.toml @@ -31,7 +31,7 @@ pezsp-runtime = { workspace = true } pezframe-benchmarking = { optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", @@ -55,4 +55,7 @@ try-runtime = [ "pezframe-system/try-runtime", "pezsp-runtime/try-runtime", ] -experimental = ["pezframe-support/experimental", "pezframe-system/experimental"] +experimental = [ + "pezframe-support/experimental", + "pezframe-system/experimental", +] diff --git a/bizinikiwi/pezframe/examples/view-functions/Cargo.toml b/bizinikiwi/pezframe/examples/view-functions/Cargo.toml index 8101371e..fe3173fd 100644 --- a/bizinikiwi/pezframe/examples/view-functions/Cargo.toml +++ b/bizinikiwi/pezframe/examples/view-functions/Cargo.toml @@ -36,7 +36,7 @@ pezsp-runtime = { default-features = false, workspace = true } pretty_assertions = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-metadata/std", diff --git a/bizinikiwi/pezframe/executive/Cargo.toml b/bizinikiwi/pezframe/executive/Cargo.toml index fef806f4..9b3e2661 100644 --- a/bizinikiwi/pezframe/executive/Cargo.toml +++ b/bizinikiwi/pezframe/executive/Cargo.toml @@ -38,8 +38,8 @@ pezsp-io = { workspace = true, default-features = true } pezsp-version = { workspace = true, default-features = true } [features] -default = ["std"] -with-tracing = ["pezsp-tracing/with-tracing"] +default = [ "std" ] +with-tracing = [ "pezsp-tracing/with-tracing" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/fast-unstake/Cargo.toml b/bizinikiwi/pezframe/fast-unstake/Cargo.toml index c1efd7e8..63b64336 100644 --- a/bizinikiwi/pezframe/fast-unstake/Cargo.toml +++ b/bizinikiwi/pezframe/fast-unstake/Cargo.toml @@ -41,7 +41,7 @@ pezsp-core = { workspace = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/glutton/Cargo.toml b/bizinikiwi/pezframe/glutton/Cargo.toml index a461abeb..a141d571 100644 --- a/bizinikiwi/pezframe/glutton/Cargo.toml +++ b/bizinikiwi/pezframe/glutton/Cargo.toml @@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "blake2/std", "codec/std", diff --git a/bizinikiwi/pezframe/grandpa/Cargo.toml b/bizinikiwi/pezframe/grandpa/Cargo.toml index 64fb89fa..4a71bdec 100644 --- a/bizinikiwi/pezframe/grandpa/Cargo.toml +++ b/bizinikiwi/pezframe/grandpa/Cargo.toml @@ -48,7 +48,7 @@ pezsp-keyring = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/honzon/oracle/Cargo.toml b/bizinikiwi/pezframe/honzon/oracle/Cargo.toml index d532742d..a82a91f9 100644 --- a/bizinikiwi/pezframe/honzon/oracle/Cargo.toml +++ b/bizinikiwi/pezframe/honzon/oracle/Cargo.toml @@ -35,7 +35,7 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/honzon/oracle/runtime-api/Cargo.toml b/bizinikiwi/pezframe/honzon/oracle/runtime-api/Cargo.toml index 4f8fad6f..f6727f08 100644 --- a/bizinikiwi/pezframe/honzon/oracle/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/honzon/oracle/runtime-api/Cargo.toml @@ -21,6 +21,6 @@ scale-info = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std", "pezsp-std/std", "scale-info/std"] -runtime-benchmarks = ["pezsp-api/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std", "pezsp-std/std", "scale-info/std" ] +runtime-benchmarks = [ "pezsp-api/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/identity/Cargo.toml b/bizinikiwi/pezframe/identity/Cargo.toml index dd11cd62..6913473e 100644 --- a/bizinikiwi/pezframe/identity/Cargo.toml +++ b/bizinikiwi/pezframe/identity/Cargo.toml @@ -33,7 +33,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-keystore = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "enumflags2/std", diff --git a/bizinikiwi/pezframe/im-online/Cargo.toml b/bizinikiwi/pezframe/im-online/Cargo.toml index 94139bce..d113ff3b 100644 --- a/bizinikiwi/pezframe/im-online/Cargo.toml +++ b/bizinikiwi/pezframe/im-online/Cargo.toml @@ -35,7 +35,7 @@ pezpallet-balances = { workspace = true } pezpallet-session = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/indices/Cargo.toml b/bizinikiwi/pezframe/indices/Cargo.toml index aa7e9266..4edbb5f4 100644 --- a/bizinikiwi/pezframe/indices/Cargo.toml +++ b/bizinikiwi/pezframe/indices/Cargo.toml @@ -30,7 +30,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/insecure-randomness-collective-flip/Cargo.toml b/bizinikiwi/pezframe/insecure-randomness-collective-flip/Cargo.toml index 73d855fd..1072e5f9 100644 --- a/bizinikiwi/pezframe/insecure-randomness-collective-flip/Cargo.toml +++ b/bizinikiwi/pezframe/insecure-randomness-collective-flip/Cargo.toml @@ -25,7 +25,22 @@ safe-mix = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "safe-mix/std", "scale-info/std"] -try-runtime = ["pezframe/try-runtime"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "safe-mix/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] diff --git a/bizinikiwi/pezframe/lottery/Cargo.toml b/bizinikiwi/pezframe/lottery/Cargo.toml index dd8724ff..a71b7d5f 100644 --- a/bizinikiwi/pezframe/lottery/Cargo.toml +++ b/bizinikiwi/pezframe/lottery/Cargo.toml @@ -30,7 +30,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/membership/Cargo.toml b/bizinikiwi/pezframe/membership/Cargo.toml index dd829eb0..0aa54641 100644 --- a/bizinikiwi/pezframe/membership/Cargo.toml +++ b/bizinikiwi/pezframe/membership/Cargo.toml @@ -28,7 +28,7 @@ pezsp-runtime = { features = ["serde"], workspace = true } scale-info = { features = ["derive", "serde"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/merkle-mountain-range/Cargo.toml b/bizinikiwi/pezframe/merkle-mountain-range/Cargo.toml index 0f42939e..6badfcba 100644 --- a/bizinikiwi/pezframe/merkle-mountain-range/Cargo.toml +++ b/bizinikiwi/pezframe/merkle-mountain-range/Cargo.toml @@ -29,18 +29,24 @@ itertools = { workspace = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", - "pezframe-support/std", "log/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezsp-mmr-primitives/std", "scale-info/std", ] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezsp-mmr-primitives/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] -try-runtime = ["pezframe/try-runtime"] diff --git a/bizinikiwi/pezframe/merkle-mountain-range/src/mmr/storage.rs b/bizinikiwi/pezframe/merkle-mountain-range/src/mmr/storage.rs index 929a722c..77f0411e 100644 --- a/bizinikiwi/pezframe/merkle-mountain-range/src/mmr/storage.rs +++ b/bizinikiwi/pezframe/merkle-mountain-range/src/mmr/storage.rs @@ -25,6 +25,7 @@ use crate::{ use alloc::{vec, vec::Vec}; use codec::Encode; use core::iter::Peekable; +use log::{debug, trace}; use pezframe::{ deps::{ pezsp_core::offchain::StorageKind, @@ -32,7 +33,6 @@ use pezframe::{ }, prelude::*, }; -use log::{debug, trace}; /// A marker type for runtime-specific storage implementation. /// diff --git a/bizinikiwi/pezframe/message-queue/Cargo.toml b/bizinikiwi/pezframe/message-queue/Cargo.toml index 58235fc0..29433ca5 100644 --- a/bizinikiwi/pezframe/message-queue/Cargo.toml +++ b/bizinikiwi/pezframe/message-queue/Cargo.toml @@ -39,7 +39,7 @@ rand = { workspace = true, default-features = true } rand_distr = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "environmental/std", diff --git a/bizinikiwi/pezframe/meta-tx/Cargo.toml b/bizinikiwi/pezframe/meta-tx/Cargo.toml index acb2905f..ca0e0487 100644 --- a/bizinikiwi/pezframe/meta-tx/Cargo.toml +++ b/bizinikiwi/pezframe/meta-tx/Cargo.toml @@ -34,7 +34,7 @@ pezsp-keyring = { workspace = true, default-features = true } pezsp-keystore = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/metadata-hash-extension/Cargo.toml b/bizinikiwi/pezframe/metadata-hash-extension/Cargo.toml index c506feb4..19e3b95a 100644 --- a/bizinikiwi/pezframe/metadata-hash-extension/Cargo.toml +++ b/bizinikiwi/pezframe/metadata-hash-extension/Cargo.toml @@ -31,7 +31,7 @@ pezsp-api = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "const-hex/std", diff --git a/bizinikiwi/pezframe/migrations/Cargo.toml b/bizinikiwi/pezframe/migrations/Cargo.toml index a4dc20a8..41c6d6b0 100644 --- a/bizinikiwi/pezframe/migrations/Cargo.toml +++ b/bizinikiwi/pezframe/migrations/Cargo.toml @@ -36,14 +36,14 @@ pezsp-tracing = { features = [ pretty_assertions = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", "log/std", "pezframe-benchmarking?/std", "pezframe-support/std", "pezframe-system/std", + "pezframe/std", "pezsp-core/std", "pezsp-io/std", "pezsp-runtime/std", @@ -51,19 +51,19 @@ std = [ ] runtime-benchmarks = [ - "pezframe/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-executive/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", + "pezframe/runtime-benchmarks", "pezsp-io/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", ] try-runtime = [ - "pezframe/try-runtime", "pezframe-executive/try-runtime", "pezframe-support/try-runtime", "pezframe-system/try-runtime", + "pezframe/try-runtime", "pezsp-runtime/try-runtime", ] diff --git a/bizinikiwi/pezframe/mixnet/Cargo.toml b/bizinikiwi/pezframe/mixnet/Cargo.toml index 5cbcc500..48064c6f 100644 --- a/bizinikiwi/pezframe/mixnet/Cargo.toml +++ b/bizinikiwi/pezframe/mixnet/Cargo.toml @@ -31,20 +31,26 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", - "pezframe-support/std", "log/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezsp-application-crypto/std", "pezsp-mixnet/std", "scale-info/std", "serde/std", ] -try-runtime = ["pezframe/try-runtime"] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezsp-mixnet/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/multi-asset-bounties/Cargo.toml b/bizinikiwi/pezframe/multi-asset-bounties/Cargo.toml index 2eb2e548..7df01482 100644 --- a/bizinikiwi/pezframe/multi-asset-bounties/Cargo.toml +++ b/bizinikiwi/pezframe/multi-asset-bounties/Cargo.toml @@ -33,7 +33,7 @@ pezpallet-preimage = { workspace = true, default-features = true } pezpallet-utility = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/multisig/Cargo.toml b/bizinikiwi/pezframe/multisig/Cargo.toml index df7c9f55..44c4462d 100644 --- a/bizinikiwi/pezframe/multisig/Cargo.toml +++ b/bizinikiwi/pezframe/multisig/Cargo.toml @@ -30,10 +30,24 @@ log = { workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "log/std", "scale-info/std"] +default = [ "std" ] +std = [ + "codec/std", + "log/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +try-runtime = [ + "pezframe/try-runtime", + "pezpallet-balances/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] -try-runtime = ["pezframe/try-runtime", "pezpallet-balances/try-runtime"] diff --git a/bizinikiwi/pezframe/nft-fractionalization/Cargo.toml b/bizinikiwi/pezframe/nft-fractionalization/Cargo.toml index 2636e217..1cbfa2e3 100644 --- a/bizinikiwi/pezframe/nft-fractionalization/Cargo.toml +++ b/bizinikiwi/pezframe/nft-fractionalization/Cargo.toml @@ -30,13 +30,13 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", - "pezframe-support/std", "log/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-assets/std", "pezpallet-balances/std", "pezpallet-nfts/std", @@ -47,10 +47,14 @@ runtime-benchmarks = [ "pezpallet-assets/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-nfts/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-assets/try-runtime", "pezpallet-balances/try-runtime", "pezpallet-nfts/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/nft-fractionalization/src/benchmarking.rs b/bizinikiwi/pezframe/nft-fractionalization/src/benchmarking.rs index 81c71d88..2f846521 100644 --- a/bizinikiwi/pezframe/nft-fractionalization/src/benchmarking.rs +++ b/bizinikiwi/pezframe/nft-fractionalization/src/benchmarking.rs @@ -22,9 +22,9 @@ use super::*; use pezframe::benchmarking::prelude::*; -use pezframe::deps::pezframe_support::assert_ok; use fungible::{Inspect as InspectFungible, Mutate as MutateFungible}; use nonfungibles_v2::{Create, Mutate}; +use pezframe::deps::pezframe_support::assert_ok; use pezframe_system::RawOrigin as SystemOrigin; use pezpallet_nfts::{CollectionConfig, CollectionSettings, ItemConfig, MintSettings}; diff --git a/bizinikiwi/pezframe/nft-fractionalization/src/tests.rs b/bizinikiwi/pezframe/nft-fractionalization/src/tests.rs index 301cf4ec..a7cd3090 100644 --- a/bizinikiwi/pezframe/nft-fractionalization/src/tests.rs +++ b/bizinikiwi/pezframe/nft-fractionalization/src/tests.rs @@ -19,9 +19,9 @@ use crate::{mock::*, *}; -use pezframe::{deps::pezsp_runtime::ModuleError, testing_prelude::*}; use fungible::{hold::Inspect as InspectHold, Mutate as MutateFungible}; use fungibles::{metadata::Inspect, InspectEnumerable}; +use pezframe::{deps::pezsp_runtime::ModuleError, testing_prelude::*}; use TokenError::FundsUnavailable; use pezpallet_nfts::CollectionConfig; diff --git a/bizinikiwi/pezframe/nfts/Cargo.toml b/bizinikiwi/pezframe/nfts/Cargo.toml index 5e352b7d..41323058 100644 --- a/bizinikiwi/pezframe/nfts/Cargo.toml +++ b/bizinikiwi/pezframe/nfts/Cargo.toml @@ -33,7 +33,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-keystore = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "enumflags2/std", diff --git a/bizinikiwi/pezframe/nfts/runtime-api/Cargo.toml b/bizinikiwi/pezframe/nfts/runtime-api/Cargo.toml index 0ef5c0b7..40dc1754 100644 --- a/bizinikiwi/pezframe/nfts/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/nfts/runtime-api/Cargo.toml @@ -21,6 +21,6 @@ codec = { features = ["derive"], workspace = true } pezsp-api = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std"] -runtime-benchmarks = ["pezsp-api/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std" ] +runtime-benchmarks = [ "pezsp-api/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/nis/Cargo.toml b/bizinikiwi/pezframe/nis/Cargo.toml index 708d66e6..38df7e0f 100644 --- a/bizinikiwi/pezframe/nis/Cargo.toml +++ b/bizinikiwi/pezframe/nis/Cargo.toml @@ -28,11 +28,24 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "scale-info/std"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezsp-io/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +try-runtime = [ + "pezframe/try-runtime", + "pezpallet-balances/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] -try-runtime = ["pezframe/try-runtime", "pezpallet-balances/try-runtime"] diff --git a/bizinikiwi/pezframe/nis/src/lib.rs b/bizinikiwi/pezframe/nis/src/lib.rs index 2c22fa99..e3b0f087 100644 --- a/bizinikiwi/pezframe/nis/src/lib.rs +++ b/bizinikiwi/pezframe/nis/src/lib.rs @@ -90,12 +90,12 @@ pub use pezpallet::*; pub use weights::WeightInfo; use alloc::{vec, vec::Vec}; -use pezframe::prelude::*; use fungible::{ Balanced as FunBalanced, Inspect as FunInspect, Mutate as FunMutate, MutateHold as FunMutateHold, }; use nonfungible::{Inspect as NftInspect, Transfer as NftTransfer}; +use pezframe::prelude::*; use tokens::{Balance, Restriction::*}; use Fortitude::*; use Precision::*; diff --git a/bizinikiwi/pezframe/node-authorization/Cargo.toml b/bizinikiwi/pezframe/node-authorization/Cargo.toml index 663fd5b4..33e94606 100644 --- a/bizinikiwi/pezframe/node-authorization/Cargo.toml +++ b/bizinikiwi/pezframe/node-authorization/Cargo.toml @@ -24,7 +24,22 @@ log = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "log/std", "scale-info/std"] -try-runtime = ["pezframe/try-runtime"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +default = [ "std" ] +std = [ + "codec/std", + "log/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] diff --git a/bizinikiwi/pezframe/nomination-pools/Cargo.toml b/bizinikiwi/pezframe/nomination-pools/Cargo.toml index 249a560d..3c14959c 100644 --- a/bizinikiwi/pezframe/nomination-pools/Cargo.toml +++ b/bizinikiwi/pezframe/nomination-pools/Cargo.toml @@ -38,8 +38,8 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] -fuzzing = ["pezpallet-balances", "pezsp-tracing"] +default = [ "std" ] +fuzzing = [ "pezpallet-balances", "pezsp-tracing" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/nomination-pools/benchmarking/Cargo.toml b/bizinikiwi/pezframe/nomination-pools/benchmarking/Cargo.toml index 6d50579d..853f5bbd 100644 --- a/bizinikiwi/pezframe/nomination-pools/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/nomination-pools/benchmarking/Cargo.toml @@ -44,7 +44,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking/std", diff --git a/bizinikiwi/pezframe/nomination-pools/runtime-api/Cargo.toml b/bizinikiwi/pezframe/nomination-pools/runtime-api/Cargo.toml index 9a023f12..60f477a9 100644 --- a/bizinikiwi/pezframe/nomination-pools/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/nomination-pools/runtime-api/Cargo.toml @@ -22,8 +22,8 @@ pezpallet-nomination-pools = { workspace = true } pezsp-api = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezpallet-nomination-pools/std", "pezsp-api/std"] +default = [ "std" ] +std = [ "codec/std", "pezpallet-nomination-pools/std", "pezsp-api/std" ] runtime-benchmarks = [ "pezpallet-nomination-pools/runtime-benchmarks", "pezsp-api/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/offences/Cargo.toml b/bizinikiwi/pezframe/offences/Cargo.toml index acf83f09..ceffa424 100644 --- a/bizinikiwi/pezframe/offences/Cargo.toml +++ b/bizinikiwi/pezframe/offences/Cargo.toml @@ -31,7 +31,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/offences/benchmarking/Cargo.toml b/bizinikiwi/pezframe/offences/benchmarking/Cargo.toml index 58c49533..06cfb872 100644 --- a/bizinikiwi/pezframe/offences/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/offences/benchmarking/Cargo.toml @@ -42,7 +42,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/origin-restriction/Cargo.toml b/bizinikiwi/pezframe/origin-restriction/Cargo.toml index a95e0c58..7a533333 100644 --- a/bizinikiwi/pezframe/origin-restriction/Cargo.toml +++ b/bizinikiwi/pezframe/origin-restriction/Cargo.toml @@ -26,7 +26,7 @@ pezsp-runtime = { workspace = true } scale-info = { workspace = true, features = ["derive"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/paged-list/Cargo.toml b/bizinikiwi/pezframe/paged-list/Cargo.toml index 2e338809..2c3f2229 100644 --- a/bizinikiwi/pezframe/paged-list/Cargo.toml +++ b/bizinikiwi/pezframe/paged-list/Cargo.toml @@ -25,12 +25,27 @@ pezsp-metadata-ir = { optional = true, workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] -std = ["codec/std", "pezframe/std", "pezsp-metadata-ir/std", "scale-info/std"] +std = [ + "codec/std", + "pezframe/std", + "pezsp-metadata-ir/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] -try-runtime = ["pezframe/try-runtime"] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] -frame-metadata = ["pezsp-metadata-ir"] +frame-metadata = [ "pezsp-metadata-ir" ] diff --git a/bizinikiwi/pezframe/paged-list/fuzzer/Cargo.toml b/bizinikiwi/pezframe/paged-list/fuzzer/Cargo.toml index 657b61b5..cba3c041 100644 --- a/bizinikiwi/pezframe/paged-list/fuzzer/Cargo.toml +++ b/bizinikiwi/pezframe/paged-list/fuzzer/Cargo.toml @@ -26,9 +26,16 @@ honggfuzz = { workspace = true } pezpallet-paged-list = { features = ["std"], workspace = true } [features] -default = ["std"] -std = ["pezframe/std", "pezpallet-paged-list/std"] +default = [ "std" ] +std = [ + "pezframe/std", + "pezpallet-paged-list/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-paged-list/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/paged-list/src/lib.rs b/bizinikiwi/pezframe/paged-list/src/lib.rs index 799abf8c..cc955d30 100644 --- a/bizinikiwi/pezframe/paged-list/src/lib.rs +++ b/bizinikiwi/pezframe/paged-list/src/lib.rs @@ -72,8 +72,8 @@ mod tests; extern crate alloc; use codec::FullCodec; -use pezframe::{prelude::*, traits::StorageInstance}; pub use paged_list::StoragePagedList; +use pezframe::{prelude::*, traits::StorageInstance}; #[pezframe::pezpallet] pub mod pezpallet { diff --git a/bizinikiwi/pezframe/parameters/Cargo.toml b/bizinikiwi/pezframe/parameters/Cargo.toml index cdfafc87..25da4c1a 100644 --- a/bizinikiwi/pezframe/parameters/Cargo.toml +++ b/bizinikiwi/pezframe/parameters/Cargo.toml @@ -34,7 +34,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/people/Cargo.toml b/bizinikiwi/pezframe/people/Cargo.toml index 7cde3ff5..2affb9fe 100644 --- a/bizinikiwi/pezframe/people/Cargo.toml +++ b/bizinikiwi/pezframe/people/Cargo.toml @@ -28,7 +28,7 @@ verifiable = { workspace = true, features = ["small-ring"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/pezframe-metadata/Cargo.toml b/bizinikiwi/pezframe/pezframe-metadata/Cargo.toml index de247d81..01b261e5 100644 --- a/bizinikiwi/pezframe/pezframe-metadata/Cargo.toml +++ b/bizinikiwi/pezframe/pezframe-metadata/Cargo.toml @@ -25,24 +25,24 @@ serde = { version = "1.0.101", default-features = false, optional = true, featur ] } [features] -default = ["current", "std"] +default = [ "current", "std" ] # Feature flag for pre-V14 versions. legacy = [] # The current stable metadata versions. -current = ["scale-info"] +current = [ "scale-info" ] # Unstable next metadata version. -unstable = ["current"] +unstable = [ "current" ] # Serde support without relying on std features -serde_full = ["codec/serde", "scale-info/serde", "serde", "serde/alloc"] +serde_full = [ "codec/serde", "scale-info/serde", "serde", "serde/alloc" ] # Scale decode support without relying on std features -decode = ["scale-info/decode"] +decode = [ "scale-info/decode" ] -std = ["codec/std", "decode", "scale-info/std", "serde/std", "serde_full"] +std = [ "codec/std", "decode", "scale-info/std", "serde/std", "serde_full" ] [lints] workspace = true diff --git a/bizinikiwi/pezframe/preimage/Cargo.toml b/bizinikiwi/pezframe/preimage/Cargo.toml index d6813a07..f10fea73 100644 --- a/bizinikiwi/pezframe/preimage/Cargo.toml +++ b/bizinikiwi/pezframe/preimage/Cargo.toml @@ -28,7 +28,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-core = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking", "pezframe-benchmarking/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/proxy/Cargo.toml b/bizinikiwi/pezframe/proxy/Cargo.toml index 62d4741c..a9c5600a 100644 --- a/bizinikiwi/pezframe/proxy/Cargo.toml +++ b/bizinikiwi/pezframe/proxy/Cargo.toml @@ -28,15 +28,25 @@ pezpallet-balances = { workspace = true, default-features = true } pezpallet-utility = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "scale-info/std"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-utility/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-balances/try-runtime", "pezpallet-utility/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/ranked-collective/Cargo.toml b/bizinikiwi/pezframe/ranked-collective/Cargo.toml index 52665c7f..18141daa 100644 --- a/bizinikiwi/pezframe/ranked-collective/Cargo.toml +++ b/bizinikiwi/pezframe/ranked-collective/Cargo.toml @@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/recovery/Cargo.toml b/bizinikiwi/pezframe/recovery/Cargo.toml index cbbef2e4..4b06a72a 100644 --- a/bizinikiwi/pezframe/recovery/Cargo.toml +++ b/bizinikiwi/pezframe/recovery/Cargo.toml @@ -27,10 +27,24 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +std = [ + "codec/std", + "pezframe/std", + "pezpallet-balances/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] +try-runtime = [ + "pezframe/try-runtime", + "pezpallet-balances/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] -std = ["codec/std", "pezframe/std", "pezpallet-balances/std", "scale-info/std"] -try-runtime = ["pezframe/try-runtime", "pezpallet-balances/try-runtime"] diff --git a/bizinikiwi/pezframe/referenda/Cargo.toml b/bizinikiwi/pezframe/referenda/Cargo.toml index cff0d20f..e3a1a8af 100644 --- a/bizinikiwi/pezframe/referenda/Cargo.toml +++ b/bizinikiwi/pezframe/referenda/Cargo.toml @@ -39,7 +39,7 @@ pezpallet-scheduler = { workspace = true, default-features = true } pezsp-core = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "assert_matches", "codec/std", diff --git a/bizinikiwi/pezframe/remark/Cargo.toml b/bizinikiwi/pezframe/remark/Cargo.toml index a2b425fd..745f2069 100644 --- a/bizinikiwi/pezframe/remark/Cargo.toml +++ b/bizinikiwi/pezframe/remark/Cargo.toml @@ -28,7 +28,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/revive/Cargo.toml b/bizinikiwi/pezframe/revive/Cargo.toml index 830267e2..6b819a16 100644 --- a/bizinikiwi/pezframe/revive/Cargo.toml +++ b/bizinikiwi/pezframe/revive/Cargo.toml @@ -95,7 +95,7 @@ pezsp-tracing = { workspace = true, default-features = true } proptest = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-consensus/serde", "alloy-consensus/std", diff --git a/bizinikiwi/pezframe/revive/dev-node/node/Cargo.toml b/bizinikiwi/pezframe/revive/dev-node/node/Cargo.toml index 93c2c623..1bf80a81 100644 --- a/bizinikiwi/pezframe/revive/dev-node/node/Cargo.toml +++ b/bizinikiwi/pezframe/revive/dev-node/node/Cargo.toml @@ -42,8 +42,8 @@ pezkuwi-sdk = { workspace = true, features = [ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] } [features] -default = ["std"] -std = ["pez-revive-dev-runtime/std", "pezkuwi-sdk/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "pez-revive-dev-runtime/std", "pezkuwi-sdk/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pez-revive-dev-runtime/runtime-benchmarks", "pezkuwi-sdk/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/revive/dev-node/runtime/Cargo.toml b/bizinikiwi/pezframe/revive/dev-node/runtime/Cargo.toml index 4a313ebf..c54ae156 100644 --- a/bizinikiwi/pezframe/revive/dev-node/runtime/Cargo.toml +++ b/bizinikiwi/pezframe/revive/dev-node/runtime/Cargo.toml @@ -40,7 +40,7 @@ pezkuwi-sdk = { optional = true, workspace = true, features = [ ] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezkuwi-sdk/std", diff --git a/bizinikiwi/pezframe/revive/fixtures/Cargo.toml b/bizinikiwi/pezframe/revive/fixtures/Cargo.toml index ce5109e5..1c50c68a 100644 --- a/bizinikiwi/pezframe/revive/fixtures/Cargo.toml +++ b/bizinikiwi/pezframe/revive/fixtures/Cargo.toml @@ -35,7 +35,7 @@ serde_json = { workspace = true } toml = { workspace = true } [features] -default = ["std"] +default = [ "std" ] # only when std is enabled all fixtures are available std = [ "alloy-core", diff --git a/bizinikiwi/pezframe/revive/uapi/Cargo.toml b/bizinikiwi/pezframe/revive/uapi/Cargo.toml index e0241263..ebe519c8 100644 --- a/bizinikiwi/pezframe/revive/uapi/Cargo.toml +++ b/bizinikiwi/pezframe/revive/uapi/Cargo.toml @@ -32,7 +32,7 @@ scale-info = { features = ["derive"], optional = true, workspace = true } polkavm-derive = { version = "0.29.0" } [features] -default = ["scale"] -scale = ["dep:codec", "scale-info"] -precompiles-sol-interfaces = ["alloy-core"] +default = [ "scale" ] +scale = [ "dep:codec", "scale-info" ] +precompiles-sol-interfaces = [ "alloy-core" ] unstable-hostfn = [] diff --git a/bizinikiwi/pezframe/root-offences/Cargo.toml b/bizinikiwi/pezframe/root-offences/Cargo.toml index b5035f9d..0831e1a2 100644 --- a/bizinikiwi/pezframe/root-offences/Cargo.toml +++ b/bizinikiwi/pezframe/root-offences/Cargo.toml @@ -39,7 +39,7 @@ pezsp-io = { workspace = true, default-features = true } pezframe-election-provider-support = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-election-provider-support/std", diff --git a/bizinikiwi/pezframe/root-testing/Cargo.toml b/bizinikiwi/pezframe/root-testing/Cargo.toml index 632a87ae..f61bdc4b 100644 --- a/bizinikiwi/pezframe/root-testing/Cargo.toml +++ b/bizinikiwi/pezframe/root-testing/Cargo.toml @@ -25,7 +25,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/safe-mode/Cargo.toml b/bizinikiwi/pezframe/safe-mode/Cargo.toml index 31d58e70..381aa54e 100644 --- a/bizinikiwi/pezframe/safe-mode/Cargo.toml +++ b/bizinikiwi/pezframe/safe-mode/Cargo.toml @@ -32,12 +32,12 @@ pezpallet-proxy = { workspace = true, default-features = true } pezpallet-utility = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-balances?/std", "pezpallet-proxy?/std", "pezpallet-utility?/std", @@ -48,10 +48,14 @@ runtime-benchmarks = [ "pezpallet-balances/runtime-benchmarks", "pezpallet-proxy/runtime-benchmarks", "pezpallet-utility/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-balances?/try-runtime", "pezpallet-proxy?/try-runtime", "pezpallet-utility?/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/salary/Cargo.toml b/bizinikiwi/pezframe/salary/Cargo.toml index 0b62b76f..ff2b0742 100644 --- a/bizinikiwi/pezframe/salary/Cargo.toml +++ b/bizinikiwi/pezframe/salary/Cargo.toml @@ -26,18 +26,25 @@ pezpallet-ranked-collective = { optional = true, workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", - "pezframe-support/std", "log/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-ranked-collective/std", "scale-info/std", ] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-ranked-collective/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +try-runtime = [ + "pezframe/try-runtime", + "pezpallet-ranked-collective?/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] -try-runtime = ["pezframe/try-runtime", "pezpallet-ranked-collective?/try-runtime"] diff --git a/bizinikiwi/pezframe/sassafras/Cargo.toml b/bizinikiwi/pezframe/sassafras/Cargo.toml index 4d0f63fa..45d9254a 100644 --- a/bizinikiwi/pezframe/sassafras/Cargo.toml +++ b/bizinikiwi/pezframe/sassafras/Cargo.toml @@ -40,7 +40,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-crypto-hashing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/scheduler/Cargo.toml b/bizinikiwi/pezframe/scheduler/Cargo.toml index bf5dccd0..c9965e4d 100644 --- a/bizinikiwi/pezframe/scheduler/Cargo.toml +++ b/bizinikiwi/pezframe/scheduler/Cargo.toml @@ -31,7 +31,7 @@ pezpallet-preimage = { workspace = true, default-features = true } pezsp-core = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking", "pezframe-benchmarking/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/scored-pool/Cargo.toml b/bizinikiwi/pezframe/scored-pool/Cargo.toml index b558c7ba..245523c3 100644 --- a/bizinikiwi/pezframe/scored-pool/Cargo.toml +++ b/bizinikiwi/pezframe/scored-pool/Cargo.toml @@ -28,7 +28,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/session/Cargo.toml b/bizinikiwi/pezframe/session/Cargo.toml index 44e0ff1b..c8dbe0c8 100644 --- a/bizinikiwi/pezframe/session/Cargo.toml +++ b/bizinikiwi/pezframe/session/Cargo.toml @@ -34,8 +34,8 @@ pezsp-trie = { optional = true, workspace = true } scale-info = { features = ["derive", "serde"], workspace = true } [features] -default = ["historical", "std"] -historical = ["pezsp-trie"] +default = [ "historical", "std" ] +historical = [ "pezsp-trie" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/session/benchmarking/Cargo.toml b/bizinikiwi/pezframe/session/benchmarking/Cargo.toml index 56918716..206ba3ab 100644 --- a/bizinikiwi/pezframe/session/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/session/benchmarking/Cargo.toml @@ -38,7 +38,7 @@ pezsp-staking = { workspace = true } scale-info = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezframe-benchmarking/std", "pezframe-election-provider-support/std", diff --git a/bizinikiwi/pezframe/society/Cargo.toml b/bizinikiwi/pezframe/society/Cargo.toml index 1347b606..56aa8d0d 100644 --- a/bizinikiwi/pezframe/society/Cargo.toml +++ b/bizinikiwi/pezframe/society/Cargo.toml @@ -35,7 +35,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-crypto-hashing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/staking-async/Cargo.toml b/bizinikiwi/pezframe/staking-async/Cargo.toml index f03655cd..64796e8a 100644 --- a/bizinikiwi/pezframe/staking-async/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/Cargo.toml @@ -50,7 +50,7 @@ pezsp-tracing = { workspace = true, default-features = true } rand_chacha = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "anyhow/std", "codec/std", @@ -64,7 +64,6 @@ std = [ "pezpallet-staking-async-rc-client/std", "pezsp-application-crypto/std", "pezsp-core/std", - "pezsp-core/std", "pezsp-io/std", "pezsp-npos-elections/std", "pezsp-runtime/std", diff --git a/bizinikiwi/pezframe/staking-async/ah-client/Cargo.toml b/bizinikiwi/pezframe/staking-async/ah-client/Cargo.toml index ba7a1835..2c1ee816 100644 --- a/bizinikiwi/pezframe/staking-async/ah-client/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/ah-client/Cargo.toml @@ -28,7 +28,7 @@ pezpallet-session = { features = ["historical"], workspace = true } pezpallet-staking-async-rc-client = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/staking-async/ahm-test/Cargo.toml b/bizinikiwi/pezframe/staking-async/ahm-test/Cargo.toml index 2b11fb88..d8c16bfa 100644 --- a/bizinikiwi/pezframe/staking-async/ahm-test/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/ahm-test/Cargo.toml @@ -50,30 +50,31 @@ pezpallet-root-offences = { workspace = true, default-features = true } pezpallet-staking = { workspace = true, default-features = true } [features] -std = ["log/std"] +std = [ + "log/std", + "pezframe-system/std" +] try-runtime = [ - "pezpallet-balances/try-runtime", - - "pezpallet-staking/try-runtime", - - "pezpallet-staking-async-rc-client/try-runtime", - "pezpallet-staking-async/try-runtime", - - "pezframe/try-runtime", "pezframe-election-provider-support/try-runtime", "pezframe-support/try-runtime", + "pezframe/try-runtime", "pezpallet-authorship/try-runtime", + "pezpallet-balances/try-runtime", "pezpallet-election-provider-multi-block/try-runtime", "pezpallet-offences/try-runtime", "pezpallet-root-offences/try-runtime", "pezpallet-session/try-runtime", "pezpallet-staking-async-ah-client/try-runtime", + "pezpallet-staking-async-rc-client/try-runtime", + "pezpallet-staking-async/try-runtime", + "pezpallet-staking/try-runtime", "pezpallet-timestamp/try-runtime", + "pezframe-system/try-runtime" ] runtime-benchmarks = [ - "pezframe/runtime-benchmarks", "pezframe-election-provider-support/runtime-benchmarks", "pezframe-support/runtime-benchmarks", + "pezframe/runtime-benchmarks", "pezpallet-authorship/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-election-provider-multi-block/runtime-benchmarks", @@ -87,4 +88,5 @@ runtime-benchmarks = [ "pezpallet-timestamp/runtime-benchmarks", "pezsp-session/runtime-benchmarks", "pezsp-staking/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/staking-async/rc-client/Cargo.toml b/bizinikiwi/pezframe/staking-async/rc-client/Cargo.toml index 12a4789d..78eac047 100644 --- a/bizinikiwi/pezframe/staking-async/rc-client/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/rc-client/Cargo.toml @@ -22,7 +22,7 @@ scale-info = { workspace = true, features = ["derive"] } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/staking-async/reward-fn/Cargo.toml b/bizinikiwi/pezframe/staking-async/reward-fn/Cargo.toml index e5d368f8..decfd051 100644 --- a/bizinikiwi/pezframe/staking-async/reward-fn/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/reward-fn/Cargo.toml @@ -22,5 +22,5 @@ log = { workspace = true } pezsp-arithmetic = { workspace = true } [features] -default = ["std"] -std = ["log/std", "pezsp-arithmetic/std"] +default = [ "std" ] +std = [ "log/std", "pezsp-arithmetic/std" ] diff --git a/bizinikiwi/pezframe/staking-async/runtime-api/Cargo.toml b/bizinikiwi/pezframe/staking-async/runtime-api/Cargo.toml index 195067ec..73a9a701 100644 --- a/bizinikiwi/pezframe/staking-async/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/runtime-api/Cargo.toml @@ -22,8 +22,8 @@ pezsp-api = { workspace = true } pezsp-staking = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std", "pezsp-staking/std"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std", "pezsp-staking/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-staking/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/staking-async/runtimes/preset-store/Cargo.toml b/bizinikiwi/pezframe/staking-async/runtimes/preset-store/Cargo.toml index a638e1fa..58675e67 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/preset-store/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/runtimes/preset-store/Cargo.toml @@ -20,16 +20,18 @@ pezpallet-staking-async-ah-client = { workspace = true } scale-info = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "pezframe/std", - "pezframe-system/std", "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-staking-async-ah-client/std", "scale-info/std", ] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-staking-async-ah-client/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/staking-async/runtimes/rc/Cargo.toml b/bizinikiwi/pezframe/staking-async/runtimes/rc/Cargo.toml index 1be9c584..cbd92a45 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/rc/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/runtimes/rc/Cargo.toml @@ -132,13 +132,13 @@ tokio = { features = ["macros"], workspace = true, default-features = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ - "pez-binary-merkle-tree/std", "bitvec/std", "codec/std", "log/std", + "pez-binary-merkle-tree/std", "pezframe-benchmarking?/std", "pezframe-election-provider-support/std", "pezframe-executive/std", @@ -230,8 +230,8 @@ std = [ "xcm/std", ] runtime-benchmarks = [ - "pez-binary-merkle-tree/runtime-benchmarks", "bizinikiwi-wasm-builder/runtime-benchmarks", + "pez-binary-merkle-tree/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-election-provider-support/runtime-benchmarks", "pezframe-executive/runtime-benchmarks", @@ -367,7 +367,7 @@ try-runtime = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] @@ -380,4 +380,4 @@ runtime-metrics = [ # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/bizinikiwi/pezframe/staking-async/runtimes/rc/constants/Cargo.toml b/bizinikiwi/pezframe/staking-async/runtimes/rc/constants/Cargo.toml index 2ddee6de..e5336a36 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/rc/constants/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/runtimes/rc/constants/Cargo.toml @@ -29,7 +29,7 @@ xcm = { workspace = true } xcm-builder = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezframe-support/std", "pezkuwi-primitives/std", diff --git a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/Cargo.toml b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/Cargo.toml index 0192fde9..eb04f514 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/Cargo.toml +++ b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/Cargo.toml @@ -145,11 +145,11 @@ tokio = { features = ["macros"], workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "asset-test-pezutils/runtime-benchmarks", - "pez-assets-common/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", + "pez-assets-common/runtime-benchmarks", "pezbp-asset-hub-pezkuwichain/runtime-benchmarks", "pezbp-bridge-hub-pezkuwichain/runtime-benchmarks", "pezbp-bridge-hub-zagros/runtime-benchmarks", @@ -304,14 +304,14 @@ try-runtime = [ "teyrchains-common/try-runtime", ] std = [ - "pez-assets-common/std", - "pezbp-asset-hub-pezkuwichain/std", # "bp-asset-hub-next-zagros/std", "bizinikiwi-wasm-builder", - "pezbp-bridge-hub-pezkuwichain/std", - "pezbp-bridge-hub-zagros/std", "codec/std", "log/std", + "pez-assets-common/std", + "pezbp-asset-hub-pezkuwichain/std", + "pezbp-bridge-hub-pezkuwichain/std", + "pezbp-bridge-hub-zagros/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", "pezcumulus-pezpallet-teyrchain-system/std", @@ -411,9 +411,9 @@ std = [ fast-runtime = [] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/lib.rs b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/lib.rs index 79582135..0d6faa52 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/lib.rs +++ b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/lib.rs @@ -37,16 +37,16 @@ mod staking; extern crate alloc; use alloc::{vec, vec::Vec}; +use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +use governance::{ + pezpallet_custom_origins, FellowshipAdmin, GeneralAdmin, StakingAdmin, Treasurer, +}; use pez_assets_common::{ foreign_creators::ForeignCreators, local_and_foreign_assets::{ForeignAssetReserveData, LocalFromLeft, TargetFromLeft}, matching::{FromNetwork, FromSiblingTeyrchain}, AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert, }; -use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; -use governance::{ - pezpallet_custom_origins, FellowshipAdmin, GeneralAdmin, StakingAdmin, Treasurer, -}; use pezcumulus_pezpallet_teyrchain_system::{ RelayNumberMonotonicallyIncreases, RelaychainDataProvider, }; diff --git a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/xcm_config.rs b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/xcm_config.rs index 96cbb96d..9ae6d498 100644 --- a/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/xcm_config.rs +++ b/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/src/xcm_config.rs @@ -123,7 +123,10 @@ pub type FungibleTransactor = FungibleAdapter< /// `AssetId`/`Balance` converter for `TrustBackedAssets`. pub type TrustBackedAssetsConvertedConcreteId = - pez_assets_common::TrustBackedAssetsConvertedConcreteId; + pez_assets_common::TrustBackedAssetsConvertedConcreteId< + TrustBackedAssetsPalletLocation, + Balance, + >; /// Means for transacting assets besides the native currency on this chain. pub type FungiblesTransactor = FungiblesAdapter< diff --git a/bizinikiwi/pezframe/staking/Cargo.toml b/bizinikiwi/pezframe/staking/Cargo.toml index 2644dcc8..4a5cac22 100644 --- a/bizinikiwi/pezframe/staking/Cargo.toml +++ b/bizinikiwi/pezframe/staking/Cargo.toml @@ -52,7 +52,7 @@ pezsp-tracing = { workspace = true, default-features = true } rand_chacha = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/staking/reward-curve/Cargo.toml b/bizinikiwi/pezframe/staking/reward-curve/Cargo.toml index 21a71438..a4984aca 100644 --- a/bizinikiwi/pezframe/staking/reward-curve/Cargo.toml +++ b/bizinikiwi/pezframe/staking/reward-curve/Cargo.toml @@ -28,4 +28,4 @@ syn = { features = ["full", "visit"], workspace = true } pezsp-runtime = { workspace = true, default-features = true } [features] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/staking/reward-fn/Cargo.toml b/bizinikiwi/pezframe/staking/reward-fn/Cargo.toml index 301dd65d..14e5969e 100644 --- a/bizinikiwi/pezframe/staking/reward-fn/Cargo.toml +++ b/bizinikiwi/pezframe/staking/reward-fn/Cargo.toml @@ -20,5 +20,5 @@ log = { workspace = true } pezsp-arithmetic = { workspace = true } [features] -default = ["std"] -std = ["log/std", "pezsp-arithmetic/std"] +default = [ "std" ] +std = [ "log/std", "pezsp-arithmetic/std" ] diff --git a/bizinikiwi/pezframe/staking/runtime-api/Cargo.toml b/bizinikiwi/pezframe/staking/runtime-api/Cargo.toml index 9227b007..809d8598 100644 --- a/bizinikiwi/pezframe/staking/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/staking/runtime-api/Cargo.toml @@ -22,8 +22,8 @@ pezsp-api = { workspace = true } pezsp-staking = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std", "pezsp-staking/std"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std", "pezsp-staking/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-staking/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/state-trie-migration/Cargo.toml b/bizinikiwi/pezframe/state-trie-migration/Cargo.toml index b3deeb66..adeedab0 100644 --- a/bizinikiwi/pezframe/state-trie-migration/Cargo.toml +++ b/bizinikiwi/pezframe/state-trie-migration/Cargo.toml @@ -37,7 +37,7 @@ pezsp-tracing = { workspace = true, default-features = true } tokio = { features = ["macros"], workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/statement/Cargo.toml b/bizinikiwi/pezframe/statement/Cargo.toml index ae423a9d..9f4cfcaa 100644 --- a/bizinikiwi/pezframe/statement/Cargo.toml +++ b/bizinikiwi/pezframe/statement/Cargo.toml @@ -31,7 +31,7 @@ scale-info = { features = ["derive"], workspace = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/sudo/Cargo.toml b/bizinikiwi/pezframe/sudo/Cargo.toml index 6d0d2367..0c0fed78 100644 --- a/bizinikiwi/pezframe/sudo/Cargo.toml +++ b/bizinikiwi/pezframe/sudo/Cargo.toml @@ -28,7 +28,7 @@ scale-info = { features = ["derive"], workspace = true } docify = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/support/Cargo.toml b/bizinikiwi/pezframe/support/Cargo.toml index a171d2e9..80a91dba 100644 --- a/bizinikiwi/pezframe/support/Cargo.toml +++ b/bizinikiwi/pezframe/support/Cargo.toml @@ -60,14 +60,14 @@ pezsp-crypto-hashing = { workspace = true, default-features = true } pretty_assertions = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pez-binary-merkle-tree/std", "codec/std", "environmental/std", "frame-metadata/std", "k256/std", "log/std", + "pez-binary-merkle-tree/std", "pezframe-support-procedural/std", "pezsp-api/std", "pezsp-arithmetic/std", @@ -100,11 +100,8 @@ runtime-benchmarks = [ "pezsp-state-machine?/runtime-benchmarks", "pezsp-trie/runtime-benchmarks", ] -try-runtime = [ - "pezsp-debug-derive/force-debug", - "pezsp-runtime/try-runtime", -] -experimental = ["pezframe-support-procedural/experimental"] +try-runtime = [ "pezsp-debug-derive/force-debug", "pezsp-runtime/try-runtime" ] +experimental = [ "pezframe-support-procedural/experimental" ] # By default some types have documentation, `no-metadata-docs` allows to reduce the documentation # in the metadata. no-metadata-docs = [ @@ -113,8 +110,8 @@ no-metadata-docs = [ ] # By default some types have documentation, `full-metadata-docs` allows to add documentation to # more types in the metadata. -full-metadata-docs = ["scale-info/docs"] +full-metadata-docs = [ "scale-info/docs" ] # Generate impl-trait for tuples with the given number of tuples. Will be needed as the number of # pallets in a runtime grows. Does increase the compile time! -tuples-96 = ["pezframe-support-procedural/tuples-96"] -tuples-128 = ["pezframe-support-procedural/tuples-128"] +tuples-96 = [ "pezframe-support-procedural/tuples-96" ] +tuples-128 = [ "pezframe-support-procedural/tuples-128" ] diff --git a/bizinikiwi/pezframe/support/procedural/Cargo.toml b/bizinikiwi/pezframe/support/procedural/Cargo.toml index 1b32b275..62327bca 100644 --- a/bizinikiwi/pezframe/support/procedural/Cargo.toml +++ b/bizinikiwi/pezframe/support/procedural/Cargo.toml @@ -45,10 +45,8 @@ pretty_assertions = { workspace = true } regex = { workspace = true } [features] -default = ["std"] -std = [ - "pezsp-crypto-hashing/std", -] +default = [ "std" ] +std = [ "pezsp-crypto-hashing/std" ] no-metadata-docs = [] experimental = [] # Generate impl-trait for tuples with the given number of tuples. Will be needed as the number of diff --git a/bizinikiwi/pezframe/support/procedural/src/pezpallet/parse/config.rs b/bizinikiwi/pezframe/support/procedural/src/pezpallet/parse/config.rs index 3b21222d..4e68f3ce 100644 --- a/bizinikiwi/pezframe/support/procedural/src/pezpallet/parse/config.rs +++ b/bizinikiwi/pezframe/support/procedural/src/pezpallet/parse/config.rs @@ -646,8 +646,7 @@ mod tests { let path = syn::parse2::(quote::quote!(pezframe_system::Config)).unwrap(); let pezframe_system = - syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)) - .unwrap(); + syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)).unwrap(); assert!(has_expected_system_config(path.clone(), &pezframe_system)); let pezframe_system = @@ -658,70 +657,56 @@ mod tests { #[test] fn has_expected_system_config_works_with_frame_full_path() { let pezframe_system = - syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)) - .unwrap(); - let path = syn::parse2::(quote::quote!( - pezframe::deps::pezframe_system::Config - )) - .unwrap(); + syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::deps::pezframe_system::Config)) + .unwrap(); assert!(has_expected_system_config(path, &pezframe_system)); let pezframe_system = syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)).unwrap(); - let path = - syn::parse2::(quote::quote!(pezframe::deps::pezframe_system::Config)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::deps::pezframe_system::Config)) + .unwrap(); assert!(has_expected_system_config(path, &pezframe_system)); } #[test] fn has_expected_system_config_works_with_other_frame_full_path() { let pezframe_system = - syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system)) - .unwrap(); - let path = syn::parse2::(quote::quote!( - pezframe::xyz::pezframe_system::Config - )) - .unwrap(); + syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system::Config)) + .unwrap(); assert!(has_expected_system_config(path, &pezframe_system)); let pezframe_system = syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system)).unwrap(); - let path = - syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system::Config)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system::Config)) + .unwrap(); assert!(has_expected_system_config(path, &pezframe_system)); } #[test] fn has_expected_system_config_does_not_works_with_mixed_frame_full_path() { let pezframe_system = - syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system)) - .unwrap(); - let path = syn::parse2::(quote::quote!( - pezframe::deps::pezframe_system::Config - )) - .unwrap(); + syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::deps::pezframe_system::Config)) + .unwrap(); assert!(!has_expected_system_config(path, &pezframe_system)); } #[test] fn has_expected_system_config_does_not_works_with_other_mixed_frame_full_path() { let pezframe_system = - syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)) - .unwrap(); - let path = syn::parse2::(quote::quote!( - pezframe::xyz::pezframe_system::Config - )) - .unwrap(); + syn::parse2::(quote::quote!(pezframe::deps::pezframe_system)).unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::xyz::pezframe_system::Config)) + .unwrap(); assert!(!has_expected_system_config(path, &pezframe_system)); } #[test] fn has_expected_system_config_does_not_work_with_frame_full_path_if_not_frame_crate() { let pezframe_system = syn::parse2::(quote::quote!(pezframe_system)).unwrap(); - let path = syn::parse2::(quote::quote!( - pezframe::deps::pezframe_system::Config - )) - .unwrap(); + let path = syn::parse2::(quote::quote!(pezframe::deps::pezframe_system::Config)) + .unwrap(); assert!(!has_expected_system_config(path, &pezframe_system)); } diff --git a/bizinikiwi/pezframe/support/test/Cargo.toml b/bizinikiwi/pezframe/support/test/Cargo.toml index c76024d2..ca0009a6 100644 --- a/bizinikiwi/pezframe/support/test/Cargo.toml +++ b/bizinikiwi/pezframe/support/test/Cargo.toml @@ -41,7 +41,7 @@ trybuild = { features = ["diff"], workspace = true } test-pezpallet = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-metadata/std", @@ -61,7 +61,10 @@ std = [ "serde/std", "test-pezpallet/std", ] -experimental = ["pezframe-support/experimental", "pezframe-system/experimental"] +experimental = [ + "pezframe-support/experimental", + "pezframe-system/experimental", +] runtime-benchmarks = [ "pezframe-benchmarking/runtime-benchmarks", "pezframe-executive/runtime-benchmarks", @@ -87,4 +90,4 @@ frame-feature-testing = [] frame-feature-testing-2 = [] # Disable ui tests disable-ui-tests = [] -no-metadata-docs = ["pezframe-support/no-metadata-docs"] +no-metadata-docs = [ "pezframe-support/no-metadata-docs" ] diff --git a/bizinikiwi/pezframe/support/test/compile_pass/Cargo.toml b/bizinikiwi/pezframe/support/test/compile_pass/Cargo.toml index caf81439..e0c576cf 100644 --- a/bizinikiwi/pezframe/support/test/compile_pass/Cargo.toml +++ b/bizinikiwi/pezframe/support/test/compile_pass/Cargo.toml @@ -26,7 +26,7 @@ pezsp-version = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/support/test/pezpallet/Cargo.toml b/bizinikiwi/pezframe/support/test/pezpallet/Cargo.toml index 4735c9bf..dbd67cbc 100644 --- a/bizinikiwi/pezframe/support/test/pezpallet/Cargo.toml +++ b/bizinikiwi/pezframe/support/test/pezpallet/Cargo.toml @@ -25,7 +25,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/support/test/stg_pezframe_crate/Cargo.toml b/bizinikiwi/pezframe/support/test/stg_pezframe_crate/Cargo.toml index bb52dbb8..41ae69d7 100644 --- a/bizinikiwi/pezframe/support/test/stg_pezframe_crate/Cargo.toml +++ b/bizinikiwi/pezframe/support/test/stg_pezframe_crate/Cargo.toml @@ -24,6 +24,16 @@ pezframe-system = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "pezframe-support/std", "pezframe-system/std", "scale-info/std"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", + "scale-info/std", +] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] diff --git a/bizinikiwi/pezframe/system/Cargo.toml b/bizinikiwi/pezframe/system/Cargo.toml index 5cdb75d5..37dfea98 100644 --- a/bizinikiwi/pezframe/system/Cargo.toml +++ b/bizinikiwi/pezframe/system/Cargo.toml @@ -41,7 +41,7 @@ pezsp-externalities = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", @@ -60,5 +60,5 @@ runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks", "pezsp-version/runtime-benchmarks", ] -try-runtime = ["pezframe-support/try-runtime", "pezsp-runtime/try-runtime"] -experimental = ["pezframe-support/experimental"] +try-runtime = [ "pezframe-support/try-runtime", "pezsp-runtime/try-runtime" ] +experimental = [ "pezframe-support/experimental" ] diff --git a/bizinikiwi/pezframe/system/benchmarking/Cargo.toml b/bizinikiwi/pezframe/system/benchmarking/Cargo.toml index 061b20c5..da09b151 100644 --- a/bizinikiwi/pezframe/system/benchmarking/Cargo.toml +++ b/bizinikiwi/pezframe/system/benchmarking/Cargo.toml @@ -31,7 +31,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-version = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking/std", diff --git a/bizinikiwi/pezframe/system/rpc/runtime-api/Cargo.toml b/bizinikiwi/pezframe/system/rpc/runtime-api/Cargo.toml index f1820408..7ab5c5c7 100644 --- a/bizinikiwi/pezframe/system/rpc/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/system/rpc/runtime-api/Cargo.toml @@ -22,6 +22,6 @@ docify = { workspace = true } pezsp-api = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std"] -runtime-benchmarks = ["pezsp-api/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std" ] +runtime-benchmarks = [ "pezsp-api/runtime-benchmarks" ] diff --git a/bizinikiwi/pezframe/timestamp/Cargo.toml b/bizinikiwi/pezframe/timestamp/Cargo.toml index 86760f81..a7a80f54 100644 --- a/bizinikiwi/pezframe/timestamp/Cargo.toml +++ b/bizinikiwi/pezframe/timestamp/Cargo.toml @@ -34,7 +34,7 @@ docify = { workspace = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/tips/Cargo.toml b/bizinikiwi/pezframe/tips/Cargo.toml index 11bc169d..85a12122 100644 --- a/bizinikiwi/pezframe/tips/Cargo.toml +++ b/bizinikiwi/pezframe/tips/Cargo.toml @@ -36,7 +36,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-storage = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/transaction-payment/Cargo.toml b/bizinikiwi/pezframe/transaction-payment/Cargo.toml index 25cee824..9bdc7ca1 100644 --- a/bizinikiwi/pezframe/transaction-payment/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-payment/Cargo.toml @@ -32,7 +32,7 @@ pezpallet-balances = { workspace = true, default-features = true } serde_json = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/transaction-payment/asset-conversion-tx-payment/Cargo.toml b/bizinikiwi/pezframe/transaction-payment/asset-conversion-tx-payment/Cargo.toml index 46ffb92e..70a3fb38 100644 --- a/bizinikiwi/pezframe/transaction-payment/asset-conversion-tx-payment/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-payment/asset-conversion-tx-payment/Cargo.toml @@ -33,7 +33,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/transaction-payment/asset-tx-payment/Cargo.toml b/bizinikiwi/pezframe/transaction-payment/asset-tx-payment/Cargo.toml index 5329d5e6..b3b11e84 100644 --- a/bizinikiwi/pezframe/transaction-payment/asset-tx-payment/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-payment/asset-tx-payment/Cargo.toml @@ -37,7 +37,7 @@ pezpallet-authorship = { workspace = true, default-features = true } pezpallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/transaction-payment/rpc/runtime-api/Cargo.toml b/bizinikiwi/pezframe/transaction-payment/rpc/runtime-api/Cargo.toml index 4487d171..dc2d59b7 100644 --- a/bizinikiwi/pezframe/transaction-payment/rpc/runtime-api/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-payment/rpc/runtime-api/Cargo.toml @@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true } pezsp-weights = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezpallet-transaction-payment/std", diff --git a/bizinikiwi/pezframe/transaction-payment/skip-feeless-payment/Cargo.toml b/bizinikiwi/pezframe/transaction-payment/skip-feeless-payment/Cargo.toml index c722592f..83aa46ea 100644 --- a/bizinikiwi/pezframe/transaction-payment/skip-feeless-payment/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-payment/skip-feeless-payment/Cargo.toml @@ -27,7 +27,7 @@ codec = { features = ["derive"], workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/bizinikiwi/pezframe/transaction-storage/Cargo.toml b/bizinikiwi/pezframe/transaction-storage/Cargo.toml index 53208caa..d70c1e67 100644 --- a/bizinikiwi/pezframe/transaction-storage/Cargo.toml +++ b/bizinikiwi/pezframe/transaction-storage/Cargo.toml @@ -35,7 +35,7 @@ serde = { optional = true, workspace = true, default-features = true } pezsp-transaction-storage-proof = { default-features = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/treasury/Cargo.toml b/bizinikiwi/pezframe/treasury/Cargo.toml index ccf19f2e..6e77333f 100644 --- a/bizinikiwi/pezframe/treasury/Cargo.toml +++ b/bizinikiwi/pezframe/treasury/Cargo.toml @@ -37,7 +37,7 @@ pezpallet-utility = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/try-runtime/Cargo.toml b/bizinikiwi/pezframe/try-runtime/Cargo.toml index 16f9e9b4..de066a05 100644 --- a/bizinikiwi/pezframe/try-runtime/Cargo.toml +++ b/bizinikiwi/pezframe/try-runtime/Cargo.toml @@ -22,14 +22,14 @@ pezsp-api = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", "pezsp-api/std", "pezsp-runtime/std", ] -try-runtime = ["pezframe-support/try-runtime", "pezsp-runtime/try-runtime"] +try-runtime = [ "pezframe-support/try-runtime", "pezsp-runtime/try-runtime" ] runtime-benchmarks = [ "pezframe-support/runtime-benchmarks", "pezsp-api/runtime-benchmarks", diff --git a/bizinikiwi/pezframe/tx-pause/Cargo.toml b/bizinikiwi/pezframe/tx-pause/Cargo.toml index 4c3159ad..e456b4bb 100644 --- a/bizinikiwi/pezframe/tx-pause/Cargo.toml +++ b/bizinikiwi/pezframe/tx-pause/Cargo.toml @@ -29,17 +29,27 @@ pezpallet-proxy = { workspace = true, default-features = true } pezpallet-utility = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "scale-info/std"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-proxy/runtime-benchmarks", "pezpallet-utility/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-balances/try-runtime", "pezpallet-proxy/try-runtime", "pezpallet-utility/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/pezframe/uniques/Cargo.toml b/bizinikiwi/pezframe/uniques/Cargo.toml index 2f41e444..a948746a 100644 --- a/bizinikiwi/pezframe/uniques/Cargo.toml +++ b/bizinikiwi/pezframe/uniques/Cargo.toml @@ -30,7 +30,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/utility/Cargo.toml b/bizinikiwi/pezframe/utility/Cargo.toml index e8e8099c..5ed03889 100644 --- a/bizinikiwi/pezframe/utility/Cargo.toml +++ b/bizinikiwi/pezframe/utility/Cargo.toml @@ -33,7 +33,7 @@ pezpallet-collective = { workspace = true, default-features = true } pezpallet-timestamp = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/verify-signature/Cargo.toml b/bizinikiwi/pezframe/verify-signature/Cargo.toml index 8bb4a192..492b028e 100644 --- a/bizinikiwi/pezframe/verify-signature/Cargo.toml +++ b/bizinikiwi/pezframe/verify-signature/Cargo.toml @@ -27,7 +27,7 @@ pezsp-weights = { features = ["serde"], workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/bizinikiwi/pezframe/vesting/Cargo.toml b/bizinikiwi/pezframe/vesting/Cargo.toml index 649252e1..64dabec2 100644 --- a/bizinikiwi/pezframe/vesting/Cargo.toml +++ b/bizinikiwi/pezframe/vesting/Cargo.toml @@ -30,7 +30,7 @@ pezpallet-balances = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/bizinikiwi/pezframe/whitelist/Cargo.toml b/bizinikiwi/pezframe/whitelist/Cargo.toml index cd6f4029..1324e491 100644 --- a/bizinikiwi/pezframe/whitelist/Cargo.toml +++ b/bizinikiwi/pezframe/whitelist/Cargo.toml @@ -27,15 +27,25 @@ pezpallet-balances = { workspace = true, default-features = true } pezpallet-preimage = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "scale-info/std"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe/std", + "scale-info/std", + "pezframe-support/std", + "pezframe-system/std" +] runtime-benchmarks = [ "pezframe/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-preimage/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" ] try-runtime = [ "pezframe/try-runtime", "pezpallet-balances/try-runtime", "pezpallet-preimage/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" ] diff --git a/bizinikiwi/primitives/api/Cargo.toml b/bizinikiwi/primitives/api/Cargo.toml index c560fd54..e78599cf 100644 --- a/bizinikiwi/primitives/api/Cargo.toml +++ b/bizinikiwi/primitives/api/Cargo.toml @@ -34,7 +34,7 @@ scale-info = { features = ["derive"], workspace = true } thiserror = { optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "hash-db", @@ -59,10 +59,10 @@ std = [ # building a runtime for registering it on chain. # # This sets the max logging level to `off` for `log`. -disable-logging = ["log/max_level_off"] +disable-logging = [ "log/max_level_off" ] # Do not report the documentation in the metadata. -no-metadata-docs = ["pezsp-api-proc-macro/no-metadata-docs"] -frame-metadata = ["pezsp-metadata-ir"] +no-metadata-docs = [ "pezsp-api-proc-macro/no-metadata-docs" ] +frame-metadata = [ "pezsp-metadata-ir" ] runtime-benchmarks = [ "pezsp-runtime-interface/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/bizinikiwi/primitives/api/proc-macro/Cargo.toml b/bizinikiwi/primitives/api/proc-macro/Cargo.toml index a5defe7e..bcb22622 100644 --- a/bizinikiwi/primitives/api/proc-macro/Cargo.toml +++ b/bizinikiwi/primitives/api/proc-macro/Cargo.toml @@ -38,6 +38,6 @@ assert_matches = { workspace = true } [features] # Required for the doc tests -default = ["std"] -std = ["blake2/std"] +default = [ "std" ] +std = [ "blake2/std" ] no-metadata-docs = [] diff --git a/bizinikiwi/primitives/application-crypto/Cargo.toml b/bizinikiwi/primitives/application-crypto/Cargo.toml index c4a64bc9..73353269 100644 --- a/bizinikiwi/primitives/application-crypto/Cargo.toml +++ b/bizinikiwi/primitives/application-crypto/Cargo.toml @@ -24,7 +24,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { optional = true, features = ["alloc", "derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "full_crypto", @@ -35,7 +35,7 @@ std = [ ] # Serde support without relying on std features. -serde = ["dep:serde", "pezsp-core/serde", "scale-info/serde"] +serde = [ "dep:serde", "pezsp-core/serde", "scale-info/serde" ] # This feature enables all crypto primitives for `no_std` builds like microcontrollers # or Intel SGX. @@ -51,7 +51,10 @@ full_crypto = [ # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["pezsp-core/bls-experimental", "pezsp-io/bls-experimental"] +bls-experimental = [ + "pezsp-core/bls-experimental", + "pezsp-io/bls-experimental", +] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still diff --git a/bizinikiwi/primitives/application-crypto/test/Cargo.toml b/bizinikiwi/primitives/application-crypto/test/Cargo.toml index 84647544..4977aaaa 100644 --- a/bizinikiwi/primitives/application-crypto/test/Cargo.toml +++ b/bizinikiwi/primitives/application-crypto/test/Cargo.toml @@ -25,7 +25,7 @@ pezsp-keystore = { workspace = true } pezsp-tracing = { workspace = true, default-features = true } [features] -bls-experimental = ["bizinikiwi-test-runtime-client/bls-experimental"] +bls-experimental = [ "bizinikiwi-test-runtime-client/bls-experimental" ] runtime-benchmarks = [ "bizinikiwi-test-runtime-client/runtime-benchmarks", "pezsp-api/runtime-benchmarks", diff --git a/bizinikiwi/primitives/arithmetic/Cargo.toml b/bizinikiwi/primitives/arithmetic/Cargo.toml index 986d6a40..dc886acc 100644 --- a/bizinikiwi/primitives/arithmetic/Cargo.toml +++ b/bizinikiwi/primitives/arithmetic/Cargo.toml @@ -36,7 +36,7 @@ primitive-types = { workspace = true, default-features = true } rand = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "num-traits/std", @@ -45,4 +45,4 @@ std = [ "serde/std", ] # Serde support without relying on std features. -serde = ["dep:serde", "scale-info/serde"] +serde = [ "dep:serde", "scale-info/serde" ] diff --git a/bizinikiwi/primitives/authority-discovery/Cargo.toml b/bizinikiwi/primitives/authority-discovery/Cargo.toml index ea45c252..bd8c2b5b 100644 --- a/bizinikiwi/primitives/authority-discovery/Cargo.toml +++ b/bizinikiwi/primitives/authority-discovery/Cargo.toml @@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", diff --git a/bizinikiwi/primitives/block-builder/Cargo.toml b/bizinikiwi/primitives/block-builder/Cargo.toml index a3599c0e..6241413a 100644 --- a/bizinikiwi/primitives/block-builder/Cargo.toml +++ b/bizinikiwi/primitives/block-builder/Cargo.toml @@ -22,8 +22,8 @@ pezsp-inherents = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["pezsp-api/std", "pezsp-inherents/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "pezsp-api/std", "pezsp-inherents/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-inherents/runtime-benchmarks", diff --git a/bizinikiwi/primitives/consensus/aura/Cargo.toml b/bizinikiwi/primitives/consensus/aura/Cargo.toml index 8c491e83..6cf14e3c 100644 --- a/bizinikiwi/primitives/consensus/aura/Cargo.toml +++ b/bizinikiwi/primitives/consensus/aura/Cargo.toml @@ -28,7 +28,7 @@ pezsp-timestamp = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/bizinikiwi/primitives/consensus/babe/Cargo.toml b/bizinikiwi/primitives/consensus/babe/Cargo.toml index 9c92dad7..1333d73b 100644 --- a/bizinikiwi/primitives/consensus/babe/Cargo.toml +++ b/bizinikiwi/primitives/consensus/babe/Cargo.toml @@ -30,7 +30,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/bizinikiwi/primitives/consensus/beefy/Cargo.toml b/bizinikiwi/primitives/consensus/beefy/Cargo.toml index 3cda9615..aaac5138 100644 --- a/bizinikiwi/primitives/consensus/beefy/Cargo.toml +++ b/bizinikiwi/primitives/consensus/beefy/Cargo.toml @@ -35,7 +35,7 @@ array-bytes = { workspace = true, default-features = true } w3f-bls = { features = ["std"], workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", diff --git a/bizinikiwi/primitives/consensus/grandpa/Cargo.toml b/bizinikiwi/primitives/consensus/grandpa/Cargo.toml index 4ae199f9..5ff852a5 100644 --- a/bizinikiwi/primitives/consensus/grandpa/Cargo.toml +++ b/bizinikiwi/primitives/consensus/grandpa/Cargo.toml @@ -29,7 +29,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "finality-grandpa/std", diff --git a/bizinikiwi/primitives/consensus/pow/Cargo.toml b/bizinikiwi/primitives/consensus/pow/Cargo.toml index 4b1bff7d..5399461d 100644 --- a/bizinikiwi/primitives/consensus/pow/Cargo.toml +++ b/bizinikiwi/primitives/consensus/pow/Cargo.toml @@ -23,8 +23,8 @@ pezsp-core = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "codec/std", "pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/bizinikiwi/primitives/consensus/sassafras/Cargo.toml b/bizinikiwi/primitives/consensus/sassafras/Cargo.toml index 2447b104..01e15ad6 100644 --- a/bizinikiwi/primitives/consensus/sassafras/Cargo.toml +++ b/bizinikiwi/primitives/consensus/sassafras/Cargo.toml @@ -33,7 +33,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["derive"], optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", diff --git a/bizinikiwi/primitives/consensus/slots/Cargo.toml b/bizinikiwi/primitives/consensus/slots/Cargo.toml index b736fa47..1ba48b12 100644 --- a/bizinikiwi/primitives/consensus/slots/Cargo.toml +++ b/bizinikiwi/primitives/consensus/slots/Cargo.toml @@ -23,9 +23,9 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-timestamp/std", "scale-info/std", "serde/std"] +default = [ "std" ] +std = [ "codec/std", "pezsp-timestamp/std", "scale-info/std", "serde/std" ] # Serde support without relying on std features. -serde = ["dep:serde", "scale-info/serde"] -runtime-benchmarks = ["pezsp-timestamp/runtime-benchmarks"] +serde = [ "dep:serde", "scale-info/serde" ] +runtime-benchmarks = [ "pezsp-timestamp/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/core/Cargo.toml b/bizinikiwi/primitives/core/Cargo.toml index 599f0773..da58ad50 100644 --- a/bizinikiwi/primitives/core/Cargo.toml +++ b/bizinikiwi/primitives/core/Cargo.toml @@ -90,7 +90,7 @@ regex = { workspace = true } serde_json = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "ark-vrf?/std", "bip39/rand", @@ -153,14 +153,14 @@ serde = [ # This feature enables all crypto primitives for `no_std` builds like microcontrollers # or Intel SGX. # For the regular wasm runtime builds this should not be used. -full_crypto = ["blake2"] +full_crypto = [ "blake2" ] # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["sha2", "w3f-bls"] +bls-experimental = [ "sha2", "w3f-bls" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["ark-vrf"] +bandersnatch-experimental = [ "ark-vrf" ] diff --git a/bizinikiwi/primitives/crypto/ec-utils/Cargo.toml b/bizinikiwi/primitives/crypto/ec-utils/Cargo.toml index d3bc45d7..f578147d 100644 --- a/bizinikiwi/primitives/crypto/ec-utils/Cargo.toml +++ b/bizinikiwi/primitives/crypto/ec-utils/Cargo.toml @@ -31,7 +31,7 @@ ark-scale = { features = ["hazmat"], optional = true, workspace = true } pezsp-runtime-interface = { optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "ark-bls12-377-ext?/std", "ark-bls12-377?/std", @@ -48,11 +48,11 @@ std = [ "ark-scale?/std", "pezsp-runtime-interface?/std", ] -common = ["ark-ec", "ark-scale", "pezsp-runtime-interface"] -bls12-377 = ["ark-bls12-377", "ark-bls12-377-ext", "common"] -bls12-381 = ["ark-bls12-381", "ark-bls12-381-ext", "common"] -bw6-761 = ["ark-bw6-761", "ark-bw6-761-ext", "common"] -ed-on-bls12-377 = ["ark-ed-on-bls12-377", "ark-ed-on-bls12-377-ext", "common"] +common = [ "ark-ec", "ark-scale", "pezsp-runtime-interface" ] +bls12-377 = [ "ark-bls12-377", "ark-bls12-377-ext", "common" ] +bls12-381 = [ "ark-bls12-381", "ark-bls12-381-ext", "common" ] +bw6-761 = [ "ark-bw6-761", "ark-bw6-761-ext", "common" ] +ed-on-bls12-377 = [ "ark-ed-on-bls12-377", "ark-ed-on-bls12-377-ext", "common" ] ed-on-bls12-381-bandersnatch = [ "ark-ed-on-bls12-381-bandersnatch", "ark-ed-on-bls12-381-bandersnatch-ext", diff --git a/bizinikiwi/primitives/crypto/hashing/Cargo.toml b/bizinikiwi/primitives/crypto/hashing/Cargo.toml index 25b28c4e..a1ad0080 100644 --- a/bizinikiwi/primitives/crypto/hashing/Cargo.toml +++ b/bizinikiwi/primitives/crypto/hashing/Cargo.toml @@ -36,7 +36,7 @@ criterion = { workspace = true, default-features = true } # The proc-macro tests are in its own crate [features] -default = ["std"] +default = [ "std" ] std = [ "blake2b_simd/std", "byteorder/std", diff --git a/bizinikiwi/primitives/debug-derive/Cargo.toml b/bizinikiwi/primitives/debug-derive/Cargo.toml index 0f26a4e1..a5116c7f 100644 --- a/bizinikiwi/primitives/debug-derive/Cargo.toml +++ b/bizinikiwi/primitives/debug-derive/Cargo.toml @@ -24,7 +24,7 @@ quote = { workspace = true } syn = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [] # By default `RuntimeDebug` implements `Debug` that outputs `` when `std` is # disabled. However, sometimes downstream users need to have the real `Debug` implementation for diff --git a/bizinikiwi/primitives/externalities/Cargo.toml b/bizinikiwi/primitives/externalities/Cargo.toml index 0c69441b..685122f9 100644 --- a/bizinikiwi/primitives/externalities/Cargo.toml +++ b/bizinikiwi/primitives/externalities/Cargo.toml @@ -22,5 +22,5 @@ environmental = { workspace = true } pezsp-storage = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "environmental/std", "pezsp-storage/std"] +default = [ "std" ] +std = [ "codec/std", "environmental/std", "pezsp-storage/std" ] diff --git a/bizinikiwi/primitives/genesis-builder/Cargo.toml b/bizinikiwi/primitives/genesis-builder/Cargo.toml index 128c31ad..0485f042 100644 --- a/bizinikiwi/primitives/genesis-builder/Cargo.toml +++ b/bizinikiwi/primitives/genesis-builder/Cargo.toml @@ -25,7 +25,7 @@ pezsp-runtime = { workspace = true } serde_json = { features = ["alloc", "arbitrary_precision"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", diff --git a/bizinikiwi/primitives/inherents/Cargo.toml b/bizinikiwi/primitives/inherents/Cargo.toml index b351f8d0..d6f6ca47 100644 --- a/bizinikiwi/primitives/inherents/Cargo.toml +++ b/bizinikiwi/primitives/inherents/Cargo.toml @@ -28,7 +28,7 @@ thiserror = { optional = true, workspace = true } futures = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", @@ -36,4 +36,4 @@ std = [ "scale-info/std", "thiserror", ] -runtime-benchmarks = ["pezsp-runtime?/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime?/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/io/Cargo.toml b/bizinikiwi/primitives/io/Cargo.toml index c9281d23..5fd5926b 100644 --- a/bizinikiwi/primitives/io/Cargo.toml +++ b/bizinikiwi/primitives/io/Cargo.toml @@ -60,7 +60,7 @@ polkavm-derive = { workspace = true } rustversion = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bytes/std", "codec/std", @@ -81,7 +81,7 @@ std = [ "tracing/std", ] -with-tracing = ["pezsp-tracing/with-tracing"] +with-tracing = [ "pezsp-tracing/with-tracing" ] # These two features are used for `no_std` builds for the environments which already provides # `#[panic_handler]`, `#[alloc_error_handler]` and `#[global_allocator]`. diff --git a/bizinikiwi/primitives/keyring/Cargo.toml b/bizinikiwi/primitives/keyring/Cargo.toml index 8aff9ba3..03d157e4 100644 --- a/bizinikiwi/primitives/keyring/Cargo.toml +++ b/bizinikiwi/primitives/keyring/Cargo.toml @@ -22,11 +22,11 @@ pezsp-runtime = { workspace = true } strum = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["pezsp-core/std", "pezsp-runtime/std", "strum/std"] +default = [ "std" ] +std = [ "pezsp-core/std", "pezsp-runtime/std", "strum/std" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["pezsp-core/bandersnatch-experimental"] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +bandersnatch-experimental = [ "pezsp-core/bandersnatch-experimental" ] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/keystore/Cargo.toml b/bizinikiwi/primitives/keystore/Cargo.toml index fe323ceb..a7fd8f3e 100644 --- a/bizinikiwi/primitives/keystore/Cargo.toml +++ b/bizinikiwi/primitives/keystore/Cargo.toml @@ -22,7 +22,7 @@ pezsp-core = { workspace = true } pezsp-externalities = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "dep:parking_lot", @@ -33,9 +33,9 @@ std = [ # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["pezsp-core/bls-experimental"] +bls-experimental = [ "pezsp-core/bls-experimental" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["pezsp-core/bandersnatch-experimental"] +bandersnatch-experimental = [ "pezsp-core/bandersnatch-experimental" ] diff --git a/bizinikiwi/primitives/merkle-mountain-range/Cargo.toml b/bizinikiwi/primitives/merkle-mountain-range/Cargo.toml index 6ba2ac70..99c2307d 100644 --- a/bizinikiwi/primitives/merkle-mountain-range/Cargo.toml +++ b/bizinikiwi/primitives/merkle-mountain-range/Cargo.toml @@ -31,7 +31,7 @@ thiserror = { optional = true, workspace = true } array-bytes = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "dep:thiserror", diff --git a/bizinikiwi/primitives/metadata-ir/Cargo.toml b/bizinikiwi/primitives/metadata-ir/Cargo.toml index 12a02fec..a42cb874 100644 --- a/bizinikiwi/primitives/metadata-ir/Cargo.toml +++ b/bizinikiwi/primitives/metadata-ir/Cargo.toml @@ -21,5 +21,5 @@ frame-metadata = { features = ["current"], workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["codec/std", "frame-metadata/std", "scale-info/std"] +default = [ "std" ] +std = [ "codec/std", "frame-metadata/std", "scale-info/std" ] diff --git a/bizinikiwi/primitives/mixnet/Cargo.toml b/bizinikiwi/primitives/mixnet/Cargo.toml index 54742a11..62c58085 100644 --- a/bizinikiwi/primitives/mixnet/Cargo.toml +++ b/bizinikiwi/primitives/mixnet/Cargo.toml @@ -26,11 +26,11 @@ pezsp-application-crypto = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", "pezsp-application-crypto/std", "scale-info/std", ] -runtime-benchmarks = ["pezsp-api/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-api/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/npos-elections/Cargo.toml b/bizinikiwi/primitives/npos-elections/Cargo.toml index b75bf278..485b9ef6 100644 --- a/bizinikiwi/primitives/npos-elections/Cargo.toml +++ b/bizinikiwi/primitives/npos-elections/Cargo.toml @@ -25,7 +25,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] bench = [] std = [ "codec/std", @@ -44,4 +44,4 @@ serde = [ "pezsp-runtime/serde", "scale-info/serde", ] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/offchain/Cargo.toml b/bizinikiwi/primitives/offchain/Cargo.toml index f5b98384..83a297c5 100644 --- a/bizinikiwi/primitives/offchain/Cargo.toml +++ b/bizinikiwi/primitives/offchain/Cargo.toml @@ -22,8 +22,8 @@ pezsp-core = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "pezsp-api/std", "pezsp-core/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/bizinikiwi/primitives/runtime-interface/Cargo.toml b/bizinikiwi/primitives/runtime-interface/Cargo.toml index 630e0e91..d500b5a5 100644 --- a/bizinikiwi/primitives/runtime-interface/Cargo.toml +++ b/bizinikiwi/primitives/runtime-interface/Cargo.toml @@ -36,7 +36,7 @@ rustversion = { workspace = true } trybuild = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bytes/std", "codec/std", diff --git a/bizinikiwi/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml b/bizinikiwi/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml index 779a0d3b..3e23020c 100644 --- a/bizinikiwi/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml +++ b/bizinikiwi/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml @@ -26,7 +26,7 @@ pezsp-runtime-interface = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "pezsp-core/std", diff --git a/bizinikiwi/primitives/runtime-interface/test-wasm/Cargo.toml b/bizinikiwi/primitives/runtime-interface/test-wasm/Cargo.toml index 1556acc0..f939620b 100644 --- a/bizinikiwi/primitives/runtime-interface/test-wasm/Cargo.toml +++ b/bizinikiwi/primitives/runtime-interface/test-wasm/Cargo.toml @@ -27,7 +27,7 @@ pezsp-runtime-interface = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "bytes/std", diff --git a/bizinikiwi/primitives/runtime/Cargo.toml b/bizinikiwi/primitives/runtime/Cargo.toml index a7f8266c..2281aa54 100644 --- a/bizinikiwi/primitives/runtime/Cargo.toml +++ b/bizinikiwi/primitives/runtime/Cargo.toml @@ -61,11 +61,11 @@ runtime-benchmarks = [ "pezsp-io/runtime-benchmarks", "pezsp-state-machine/runtime-benchmarks", "pezsp-trie/runtime-benchmarks", + "pez-binary-merkle-tree/runtime-benchmarks" ] try-runtime = [] -default = ["std"] +default = [ "std" ] std = [ - "pez-binary-merkle-tree/std", "bytes/std", "codec/std", "either/std", @@ -73,6 +73,7 @@ std = [ "hash256-std-hasher/std", "log/std", "num-traits/std", + "pez-binary-merkle-tree/std", "pezsp-application-crypto/std", "pezsp-arithmetic/std", "pezsp-core/std", diff --git a/bizinikiwi/primitives/runtime/src/proving_trie/base2.rs b/bizinikiwi/primitives/runtime/src/proving_trie/base2.rs index 72127c35..b40f26f4 100644 --- a/bizinikiwi/primitives/runtime/src/proving_trie/base2.rs +++ b/bizinikiwi/primitives/runtime/src/proving_trie/base2.rs @@ -23,8 +23,8 @@ use super::{ProofToHashes, ProvingTrie, TrieError}; use crate::{Decode, DispatchError, Encode}; use alloc::{collections::BTreeMap, vec::Vec}; -use pez_binary_merkle_tree::{merkle_proof, merkle_root, MerkleProof}; use codec::MaxEncodedLen; +use pez_binary_merkle_tree::{merkle_proof, merkle_root, MerkleProof}; /// A helper structure for building a basic base-2 merkle trie and creating compact proofs for that /// trie. diff --git a/bizinikiwi/primitives/session/Cargo.toml b/bizinikiwi/primitives/session/Cargo.toml index d7912dce..c08e2de6 100644 --- a/bizinikiwi/primitives/session/Cargo.toml +++ b/bizinikiwi/primitives/session/Cargo.toml @@ -26,7 +26,7 @@ pezsp-staking = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-api/std", diff --git a/bizinikiwi/primitives/staking/Cargo.toml b/bizinikiwi/primitives/staking/Cargo.toml index c54980af..8103e68c 100644 --- a/bizinikiwi/primitives/staking/Cargo.toml +++ b/bizinikiwi/primitives/staking/Cargo.toml @@ -26,7 +26,7 @@ pezsp-core = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-core/std", @@ -34,4 +34,4 @@ std = [ "scale-info/std", "serde/std", ] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/state-machine/Cargo.toml b/bizinikiwi/primitives/state-machine/Cargo.toml index 00dc7108..afbbb292 100644 --- a/bizinikiwi/primitives/state-machine/Cargo.toml +++ b/bizinikiwi/primitives/state-machine/Cargo.toml @@ -40,8 +40,8 @@ pretty_assertions = { workspace = true } rand = { workspace = true, default-features = true } [features] -default = ["std"] -fuzzing = ["arbitrary"] +default = [ "std" ] +fuzzing = [ "arbitrary" ] std = [ "codec/std", "hash-db/std", @@ -56,6 +56,4 @@ std = [ "tracing", "trie-db/std", ] -runtime-benchmarks = [ - "pezsp-trie/runtime-benchmarks", -] +runtime-benchmarks = [ "pezsp-trie/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/state-machine/src/fuzzing.rs b/bizinikiwi/primitives/state-machine/src/fuzzing.rs index 3642c0df..d4cdc191 100644 --- a/bizinikiwi/primitives/state-machine/src/fuzzing.rs +++ b/bizinikiwi/primitives/state-machine/src/fuzzing.rs @@ -23,9 +23,9 @@ use arbitrary::Arbitrary; #[cfg(test)] use codec::Encode; use hash_db::Hasher; -use pezsp_core::{storage::StateVersion, traits::Externalities}; #[cfg(test)] use pezsp_core::Blake2Hasher as BlakeTwo256; +use pezsp_core::{storage::StateVersion, traits::Externalities}; use pezsp_trie::PrefixedMemoryDB; use std::collections::BTreeMap; diff --git a/bizinikiwi/primitives/state-machine/src/lib.rs b/bizinikiwi/primitives/state-machine/src/lib.rs index 3c1e72e3..95885e45 100644 --- a/bizinikiwi/primitives/state-machine/src/lib.rs +++ b/bizinikiwi/primitives/state-machine/src/lib.rs @@ -1097,13 +1097,13 @@ mod tests { use crate::{execution::CallResult, in_memory_backend::new_in_mem}; use assert_matches::assert_matches; use codec::Encode; + use pezsp_core::Blake2Hasher as BlakeTwo256; use pezsp_core::{ map, storage::{ChildInfo, StateVersion}, traits::{CallContext, CodeExecutor, Externalities, RuntimeCode}, H256, }; - use pezsp_core::Blake2Hasher as BlakeTwo256; use pezsp_trie::{ trie_types::{TrieDBMutBuilderV0, TrieDBMutBuilderV1}, KeySpacedDBMut, PrefixedMemoryDB, diff --git a/bizinikiwi/primitives/state-machine/src/testing.rs b/bizinikiwi/primitives/state-machine/src/testing.rs index e27b2bd9..38d26359 100644 --- a/bizinikiwi/primitives/state-machine/src/testing.rs +++ b/bizinikiwi/primitives/state-machine/src/testing.rs @@ -415,8 +415,8 @@ where #[cfg(test)] mod tests { use super::*; - use pezsp_core::{storage::ChildInfo, traits::Externalities, H256}; use pezsp_core::Blake2Hasher as BlakeTwo256; + use pezsp_core::{storage::ChildInfo, traits::Externalities, H256}; #[test] fn commit_should_work() { diff --git a/bizinikiwi/primitives/state-machine/src/trie_backend.rs b/bizinikiwi/primitives/state-machine/src/trie_backend.rs index 72356291..e8ea6197 100644 --- a/bizinikiwi/primitives/state-machine/src/trie_backend.rs +++ b/bizinikiwi/primitives/state-machine/src/trie_backend.rs @@ -577,8 +577,8 @@ pub mod tests { use super::*; use codec::Encode; - use pezsp_core::H256; use pezsp_core::Blake2Hasher as BlakeTwo256; + use pezsp_core::H256; use pezsp_trie::{ cache::{CacheSize, SharedTrieCache}, trie_types::{TrieDBBuilder, TrieDBMutBuilderV0, TrieDBMutBuilderV1}, diff --git a/bizinikiwi/primitives/statement-store/Cargo.toml b/bizinikiwi/primitives/statement-store/Cargo.toml index 5d3a9658..94b0a1ec 100644 --- a/bizinikiwi/primitives/statement-store/Cargo.toml +++ b/bizinikiwi/primitives/statement-store/Cargo.toml @@ -42,7 +42,7 @@ x25519-dalek = { optional = true, features = [ ], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "aes-gcm", "aes-gcm?/std", diff --git a/bizinikiwi/primitives/std/Cargo.toml b/bizinikiwi/primitives/std/Cargo.toml index deee706d..7e872085 100644 --- a/bizinikiwi/primitives/std/Cargo.toml +++ b/bizinikiwi/primitives/std/Cargo.toml @@ -17,5 +17,5 @@ workspace = true targets = ["x86_64-unknown-linux-gnu"] [features] -default = ["std"] +default = [ "std" ] std = [] diff --git a/bizinikiwi/primitives/storage/Cargo.toml b/bizinikiwi/primitives/storage/Cargo.toml index 05517ebb..43046047 100644 --- a/bizinikiwi/primitives/storage/Cargo.toml +++ b/bizinikiwi/primitives/storage/Cargo.toml @@ -24,8 +24,8 @@ ref-cast = { workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } [features] -default = ["std"] -std = ["codec/std", "impl-serde/std", "pezsp-debug-derive/std", "serde/std"] +default = [ "std" ] +std = [ "codec/std", "impl-serde/std", "pezsp-debug-derive/std", "serde/std" ] # Serde support without relying on std features. -serde = ["dep:serde", "impl-serde"] +serde = [ "dep:serde", "impl-serde" ] diff --git a/bizinikiwi/primitives/test-primitives/Cargo.toml b/bizinikiwi/primitives/test-primitives/Cargo.toml index 14efbb98..596332fe 100644 --- a/bizinikiwi/primitives/test-primitives/Cargo.toml +++ b/bizinikiwi/primitives/test-primitives/Cargo.toml @@ -25,7 +25,7 @@ scale-info = { features = ["derive"], workspace = true } serde = { features = ["derive"], optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-application-crypto/std", @@ -42,4 +42,4 @@ serde = [ "pezsp-core/serde", "pezsp-runtime/serde", ] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/timestamp/Cargo.toml b/bizinikiwi/primitives/timestamp/Cargo.toml index 45614c99..7d0186db 100644 --- a/bizinikiwi/primitives/timestamp/Cargo.toml +++ b/bizinikiwi/primitives/timestamp/Cargo.toml @@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true } thiserror = { optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/bizinikiwi/primitives/tracing/Cargo.toml b/bizinikiwi/primitives/tracing/Cargo.toml index 8b74b26c..21e8cb22 100644 --- a/bizinikiwi/primitives/tracing/Cargo.toml +++ b/bizinikiwi/primitives/tracing/Cargo.toml @@ -33,8 +33,8 @@ tracing-subscriber = { workspace = true, optional = true, features = [ ] } [features] -default = ["std"] -with-tracing = ["codec/derive", "codec/full"] +default = [ "std" ] +with-tracing = [ "codec/derive", "codec/full" ] std = [ "codec/std", "regex", diff --git a/bizinikiwi/primitives/transaction-pool/Cargo.toml b/bizinikiwi/primitives/transaction-pool/Cargo.toml index e286c31e..c65ef851 100644 --- a/bizinikiwi/primitives/transaction-pool/Cargo.toml +++ b/bizinikiwi/primitives/transaction-pool/Cargo.toml @@ -21,8 +21,8 @@ pezsp-api = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["pezsp-api/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "pezsp-api/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/bizinikiwi/primitives/transaction-storage-proof/Cargo.toml b/bizinikiwi/primitives/transaction-storage-proof/Cargo.toml index 73bda9ef..e710d7ce 100644 --- a/bizinikiwi/primitives/transaction-storage-proof/Cargo.toml +++ b/bizinikiwi/primitives/transaction-storage-proof/Cargo.toml @@ -26,7 +26,7 @@ pezsp-trie = { optional = true, workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/bizinikiwi/primitives/trie/Cargo.toml b/bizinikiwi/primitives/trie/Cargo.toml index 806111bf..8022e21a 100644 --- a/bizinikiwi/primitives/trie/Cargo.toml +++ b/bizinikiwi/primitives/trie/Cargo.toml @@ -47,7 +47,7 @@ trie-bench = { workspace = true } trie-standardmap = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "ahash", "codec/std", diff --git a/bizinikiwi/primitives/trie/src/cache/shared_cache.rs b/bizinikiwi/primitives/trie/src/cache/shared_cache.rs index 505e911f..26e1106e 100644 --- a/bizinikiwi/primitives/trie/src/cache/shared_cache.rs +++ b/bizinikiwi/primitives/trie/src/cache/shared_cache.rs @@ -15,6 +15,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +use super::metrics::Registry; ///! Provides the [`SharedNodeCache`], the [`SharedValueCache`] and the [`SharedTrieCache`] ///! that combines both caches and is exported to the outside. use super::{ @@ -26,7 +27,6 @@ use core::{hash::Hash, time::Duration}; use hash_db::Hasher; use nohash_hasher::BuildNoHashHasher; use parking_lot::{Mutex, RwLock, RwLockWriteGuard}; -use super::metrics::Registry; use schnellru::LruMap; use std::{ collections::{hash_map::Entry as SetEntry, HashMap}, diff --git a/bizinikiwi/primitives/version/Cargo.toml b/bizinikiwi/primitives/version/Cargo.toml index 61c80e8d..d05a49a6 100644 --- a/bizinikiwi/primitives/version/Cargo.toml +++ b/bizinikiwi/primitives/version/Cargo.toml @@ -29,7 +29,7 @@ serde = { features = ["alloc", "derive"], optional = true, workspace = true } thiserror = { optional = true, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "impl-serde/std", @@ -42,7 +42,7 @@ std = [ ] # Serde support without relying on std features. -serde = ["dep:serde", "impl-serde", "pezsp-runtime/serde"] +serde = [ "dep:serde", "impl-serde", "pezsp-runtime/serde" ] runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks", "pezsp-version-proc-macro/runtime-benchmarks", diff --git a/bizinikiwi/primitives/version/proc-macro/Cargo.toml b/bizinikiwi/primitives/version/proc-macro/Cargo.toml index 87f85073..068f0a40 100644 --- a/bizinikiwi/primitives/version/proc-macro/Cargo.toml +++ b/bizinikiwi/primitives/version/proc-macro/Cargo.toml @@ -29,4 +29,4 @@ syn = { features = ["extra-traits", "fold", "full", "visit"], workspace = true } pezsp-version = { workspace = true, default-features = true } [features] -runtime-benchmarks = ["pezsp-version/runtime-benchmarks"] +runtime-benchmarks = [ "pezsp-version/runtime-benchmarks" ] diff --git a/bizinikiwi/primitives/wasm-interface/Cargo.toml b/bizinikiwi/primitives/wasm-interface/Cargo.toml index 167b24cb..44098f90 100644 --- a/bizinikiwi/primitives/wasm-interface/Cargo.toml +++ b/bizinikiwi/primitives/wasm-interface/Cargo.toml @@ -24,6 +24,6 @@ log = { optional = true, workspace = true, default-features = true } wasmtime = { optional = true, workspace = true } [features] -default = ["std"] -std = ["anyhow?/std", "codec/std", "log/std", "wasmtime?/std"] -wasmtime = ["anyhow", "dep:wasmtime"] +default = [ "std" ] +std = [ "anyhow?/std", "codec/std", "log/std", "wasmtime?/std" ] +wasmtime = [ "anyhow", "dep:wasmtime" ] diff --git a/bizinikiwi/primitives/weights/Cargo.toml b/bizinikiwi/primitives/weights/Cargo.toml index 7d9436c6..56bf7aaf 100644 --- a/bizinikiwi/primitives/weights/Cargo.toml +++ b/bizinikiwi/primitives/weights/Cargo.toml @@ -26,7 +26,7 @@ serde = { optional = true, features = ["alloc", "derive"], workspace = true } smallvec = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bounded-collections/std", "codec/std", @@ -38,7 +38,7 @@ std = [ ] # By default some types have documentation, `full-metadata-docs` allows to add documentation to # more types in the metadata. -full-metadata-docs = ["scale-info/docs"] +full-metadata-docs = [ "scale-info/docs" ] # Serde support without relying on std features. serde = [ @@ -48,4 +48,4 @@ serde = [ "scale-info/serde", ] -json-schema = ["dep:schemars"] +json-schema = [ "dep:schemars" ] diff --git a/bizinikiwi/test-utils/cli/Cargo.toml b/bizinikiwi/test-utils/cli/Cargo.toml index d3322313..655ead38 100644 --- a/bizinikiwi/test-utils/cli/Cargo.toml +++ b/bizinikiwi/test-utils/cli/Cargo.toml @@ -30,7 +30,7 @@ regex = { workspace = true } tokio = { features = ["full"], workspace = true, default-features = true } [features] -try-runtime = ["node-cli/try-runtime"] +try-runtime = [ "node-cli/try-runtime" ] runtime-benchmarks = [ "bizinikiwi-rpc-client/runtime-benchmarks", "node-cli/runtime-benchmarks", diff --git a/bizinikiwi/test-utils/runtime/Cargo.toml b/bizinikiwi/test-utils/runtime/Cargo.toml index 8e6d8ee3..efbad41a 100644 --- a/bizinikiwi/test-utils/runtime/Cargo.toml +++ b/bizinikiwi/test-utils/runtime/Cargo.toml @@ -79,7 +79,7 @@ bizinikiwi-wasm-builder = { optional = true, features = [ ], workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "array-bytes", @@ -127,12 +127,12 @@ std = [ ] # Special feature to disable logging -disable-logging = ["pezsp-api/disable-logging"] +disable-logging = [ "pezsp-api/disable-logging" ] # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["pezsp-application-crypto/bls-experimental"] +bls-experimental = [ "pezsp-application-crypto/bls-experimental" ] runtime-benchmarks = [ "bizinikiwi-test-runtime-client/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", diff --git a/bizinikiwi/test-utils/runtime/client/Cargo.toml b/bizinikiwi/test-utils/runtime/client/Cargo.toml index b2d9822e..37416a9a 100644 --- a/bizinikiwi/test-utils/runtime/client/Cargo.toml +++ b/bizinikiwi/test-utils/runtime/client/Cargo.toml @@ -33,7 +33,7 @@ pezsp-runtime = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -bls-experimental = ["bizinikiwi-test-runtime/bls-experimental"] +bls-experimental = [ "bizinikiwi-test-runtime/bls-experimental" ] runtime-benchmarks = [ "bizinikiwi-test-client/runtime-benchmarks", "bizinikiwi-test-runtime/runtime-benchmarks", diff --git a/bizinikiwi/test-utils/runtime/client/src/runtime_logger_tests.rs b/bizinikiwi/test-utils/runtime/client/src/runtime_logger_tests.rs index d7e218b2..46835875 100644 --- a/bizinikiwi/test-utils/runtime/client/src/runtime_logger_tests.rs +++ b/bizinikiwi/test-utils/runtime/client/src/runtime_logger_tests.rs @@ -20,7 +20,9 @@ //! These tests verify that logging from within the runtime works correctly //! with the test client infrastructure. -use crate::{runtime::TestAPI, DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt}; +use crate::{ + runtime::TestAPI, DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt, +}; use pezsp_api::ProvideRuntimeApi; use std::env; diff --git a/bizinikiwi/utils/binary-merkle-tree/Cargo.toml b/bizinikiwi/utils/binary-merkle-tree/Cargo.toml index 92726616..3952b3bb 100644 --- a/bizinikiwi/utils/binary-merkle-tree/Cargo.toml +++ b/bizinikiwi/utils/binary-merkle-tree/Cargo.toml @@ -23,11 +23,7 @@ array-bytes = { workspace = true, default-features = true } pezsp-core = { workspace = true, default-features = true } [features] -debug = ["array-bytes", "log"] -default = ["debug", "std"] -std = [ - "codec/std", - "hash-db/std", - "log/std", -] +debug = [ "array-bytes", "log" ] +default = [ "debug", "std" ] +std = [ "codec/std", "hash-db/std", "log/std" ] runtime-benchmarks = [] diff --git a/bizinikiwi/utils/binary-merkle-tree/src/lib.rs b/bizinikiwi/utils/binary-merkle-tree/src/lib.rs index c2ef88ad..dd0a9875 100644 --- a/bizinikiwi/utils/binary-merkle-tree/src/lib.rs +++ b/bizinikiwi/utils/binary-merkle-tree/src/lib.rs @@ -416,7 +416,7 @@ where #[cfg(test)] mod tests { use super::*; - use pezsp_core::{H256, KeccakHasher}; + use pezsp_core::{KeccakHasher, H256}; #[test] fn should_generate_empty_root() { diff --git a/bizinikiwi/utils/bizinikiwi-bip39/Cargo.toml b/bizinikiwi/utils/bizinikiwi-bip39/Cargo.toml index 01f2f581..e95f125c 100644 --- a/bizinikiwi/utils/bizinikiwi-bip39/Cargo.toml +++ b/bizinikiwi/utils/bizinikiwi-bip39/Cargo.toml @@ -21,7 +21,7 @@ bip39 = { workspace = true, default-features = true } rustc-hex = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "hmac/std", "pbkdf2/std", diff --git a/bizinikiwi/utils/pezframe/benchmarking-cli/Cargo.toml b/bizinikiwi/utils/pezframe/benchmarking-cli/Cargo.toml index 40022586..b5899741 100644 --- a/bizinikiwi/utils/pezframe/benchmarking-cli/Cargo.toml +++ b/bizinikiwi/utils/pezframe/benchmarking-cli/Cargo.toml @@ -125,6 +125,6 @@ runtime-benchmarks = [ "pezsp-transaction-pool/runtime-benchmarks", "pezsp-trie/runtime-benchmarks", "pezsp-version/runtime-benchmarks", - # "zagros-runtime/runtime-benchmarks", + # "zagros-runtime/runtime-benchmarks", # Not a dependency of this crate ] rocksdb = ["pezsc-cli/rocksdb", "pezsc-client-db/rocksdb"] diff --git a/bizinikiwi/utils/pezframe/storage-access-test-runtime/Cargo.toml b/bizinikiwi/utils/pezframe/storage-access-test-runtime/Cargo.toml index 8f607592..6ea40f29 100644 --- a/bizinikiwi/utils/pezframe/storage-access-test-runtime/Cargo.toml +++ b/bizinikiwi/utils/pezframe/storage-access-test-runtime/Cargo.toml @@ -26,7 +26,7 @@ pezsp-trie = { workspace = true } [build-dependencies] [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ "codec/std", diff --git a/bizinikiwi/utils/pezframe/storage-access-test-runtime/build.rs b/bizinikiwi/utils/pezframe/storage-access-test-runtime/build.rs index c860096c..6f347cd5 100644 --- a/bizinikiwi/utils/pezframe/storage-access-test-runtime/build.rs +++ b/bizinikiwi/utils/pezframe/storage-access-test-runtime/build.rs @@ -39,7 +39,8 @@ pub const WASM_BINARY: Option<&[u8]> = None; pub const WASM_BINARY_BLOATY: Option<&[u8]> = None; "#; - let mut file = std::fs::File::create(&wasm_binary_path).expect("Failed to create wasm_binary.rs"); + let mut file = + std::fs::File::create(&wasm_binary_path).expect("Failed to create wasm_binary.rs"); file.write_all(content.as_bytes()).expect("Failed to write wasm_binary.rs"); } } diff --git a/docs/sdk/Cargo.toml b/docs/sdk/Cargo.toml index e6660252..40e027eb 100644 --- a/docs/sdk/Cargo.toml +++ b/docs/sdk/Cargo.toml @@ -141,7 +141,6 @@ runtime-benchmarks = [ "bizinikiwi-wasm-builder/runtime-benchmarks", "chain-spec-builder/runtime-benchmarks", "first-runtime/runtime-benchmarks", - "pezframe/runtime-benchmarks", "node-cli/runtime-benchmarks", "pez-chain-spec-guide-runtime/runtime-benchmarks", "pez-kitchensink-runtime/runtime-benchmarks", @@ -158,6 +157,7 @@ runtime-benchmarks = [ "pezframe-metadata-hash-extension/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", + "pezframe/runtime-benchmarks", "pezkuwi-omni-node-lib/runtime-benchmarks", "pezkuwi-sdk/runtime-benchmarks", "pezpallet-asset-conversion-tx-payment/runtime-benchmarks", diff --git a/docs/sdk/packages/guides/first-pezpallet/Cargo.toml b/docs/sdk/packages/guides/first-pezpallet/Cargo.toml index 81e0830c..cab1d02c 100644 --- a/docs/sdk/packages/guides/first-pezpallet/Cargo.toml +++ b/docs/sdk/packages/guides/first-pezpallet/Cargo.toml @@ -25,6 +25,16 @@ pezframe-support = { workspace = true } scale-info = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezframe/std", "pezframe-system/std", "pezframe-support/std", "scale-info/std"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] +default = [ "std" ] +std = [ + "codec/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", + "scale-info/std", +] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] diff --git a/docs/sdk/packages/guides/first-runtime/Cargo.toml b/docs/sdk/packages/guides/first-runtime/Cargo.toml index 172439c8..8703bc5c 100644 --- a/docs/sdk/packages/guides/first-runtime/Cargo.toml +++ b/docs/sdk/packages/guides/first-runtime/Cargo.toml @@ -51,23 +51,20 @@ docify = { workspace = true } bizinikiwi-wasm-builder = { workspace = true, optional = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "bizinikiwi-wasm-builder", "codec/std", - "scale-info/std", - "serde_json/std", - - "pezframe/std", - "pezframe-system/std", + "first-pezpallet/std", "pezframe-support/std", - + "pezframe-system-rpc-runtime-api/std", + "pezframe-system/std", + "pezframe/std", "pezpallet-balances/std", "pezpallet-sudo/std", "pezpallet-timestamp/std", "pezpallet-transaction-payment-rpc-runtime-api/std", "pezpallet-transaction-payment/std", - - "first-pezpallet/std", "pezsp-api/std", "pezsp-block-builder/std", "pezsp-core/std", @@ -77,9 +74,8 @@ std = [ "pezsp-runtime/std", "pezsp-session/std", "pezsp-transaction-pool/std", - "pezframe-system-rpc-runtime-api/std", - - "bizinikiwi-wasm-builder", + "scale-info/std", + "serde_json/std", ] runtime-benchmarks = [ "bizinikiwi-wasm-builder?/runtime-benchmarks", @@ -91,4 +87,14 @@ runtime-benchmarks = [ "pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks", "pezpallet-transaction-payment/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks", + "pezframe-system-rpc-runtime-api/runtime-benchmarks", + "pezsp-api/runtime-benchmarks", + "pezsp-block-builder/runtime-benchmarks", + "pezsp-genesis-builder/runtime-benchmarks", + "pezsp-offchain/runtime-benchmarks", + "pezsp-runtime/runtime-benchmarks", + "pezsp-session/runtime-benchmarks", + "pezsp-transaction-pool/runtime-benchmarks" ] diff --git a/docs/sdk/packages/guides/first-runtime/src/lib.rs b/docs/sdk/packages/guides/first-runtime/src/lib.rs index cf65133d..e8c792de 100644 --- a/docs/sdk/packages/guides/first-runtime/src/lib.rs +++ b/docs/sdk/packages/guides/first-runtime/src/lib.rs @@ -22,11 +22,7 @@ extern crate alloc; use alloc::{vec, vec::Vec}; use first_pezpallet::pezpallet_v2 as our_first_pallet; -use pezframe::{ - deps::pezsp_genesis_builder::DEV_RUNTIME_PRESET, - prelude::*, - runtime::prelude::*, -}; +use pezframe::{deps::pezsp_genesis_builder::DEV_RUNTIME_PRESET, prelude::*, runtime::prelude::*}; use pezpallet_transaction_payment_rpc_runtime_api::{FeeDetails, RuntimeDispatchInfo}; use pezsp_keyring::Sr25519Keyring; use pezsp_runtime::{ diff --git a/docs/sdk/src/reference_docs/chain_spec_runtime/Cargo.toml b/docs/sdk/src/reference_docs/chain_spec_runtime/Cargo.toml index 012cf9ba..41fb471e 100644 --- a/docs/sdk/src/reference_docs/chain_spec_runtime/Cargo.toml +++ b/docs/sdk/src/reference_docs/chain_spec_runtime/Cargo.toml @@ -38,32 +38,31 @@ pezsc-chain-spec = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "bizinikiwi-wasm-builder", "codec/std", - "scale-info/std", - - "pezframe/std", "pezframe-support/std", "pezframe-system/std", - + "pezframe/std", "pezsp-api/std", "pezsp-application-crypto/std", "pezsp-core/std", "pezsp-genesis-builder/std", "pezsp-keyring/std", "pezsp-runtime/std", - - "bizinikiwi-wasm-builder", + "scale-info/std", "serde/std", "serde_json/std", ] runtime-benchmarks = [ "bizinikiwi-wasm-builder?/runtime-benchmarks", - "pezframe/runtime-benchmarks", "pezframe-support/runtime-benchmarks", + "pezframe/runtime-benchmarks", "pezsc-chain-spec/runtime-benchmarks", "pezsp-genesis-builder/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", + "pezframe-system/runtime-benchmarks", + "pezsp-api/runtime-benchmarks" ] diff --git a/docs/sdk/src/reference_docs/frame_pallet_coupling.rs b/docs/sdk/src/reference_docs/frame_pallet_coupling.rs index 87cc9974..ad90b767 100644 --- a/docs/sdk/src/reference_docs/frame_pallet_coupling.rs +++ b/docs/sdk/src/reference_docs/frame_pallet_coupling.rs @@ -272,8 +272,8 @@ impl AuthorProvider for () { pub mod runtime { use super::*; - use pezframe::{runtime::prelude::*, testing_prelude::*}; use pezcumulus_pezpallet_aura_ext::pezpallet; + use pezframe::{runtime::prelude::*, testing_prelude::*}; construct_runtime!( pub struct Runtime { diff --git a/pezbridges/bin/runtime-common/Cargo.toml b/pezbridges/bin/runtime-common/Cargo.toml index 97c1dbee..ec7f437d 100644 --- a/pezbridges/bin/runtime-common/Cargo.toml +++ b/pezbridges/bin/runtime-common/Cargo.toml @@ -55,16 +55,16 @@ pezpallet-bridge-messages = { features = [ pezsp-core = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", "pezbp-pezkuwi-core/std", "pezbp-relayers/std", + "pezbp-runtime/std", "pezbp-test-utils/std", "pezbp-teyrchains/std", - "codec/std", - "pezbp-runtime/std", "pezframe-support/std", "pezframe-system/std", "pezpallet-bridge-grandpa/std", @@ -88,10 +88,10 @@ runtime-benchmarks = [ "pezbp-messages/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", - "pezbp-test-utils/runtime-benchmarks", - "pezbp-teyrchains/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", "pezbp-runtime/test-helpers", + "pezbp-test-utils/runtime-benchmarks", + "pezbp-teyrchains/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", @@ -108,5 +108,5 @@ runtime-benchmarks = [ "pezsp-trie?/runtime-benchmarks", "xcm/runtime-benchmarks", ] -integrity-test = ["static_assertions"] -test-helpers = ["pezbp-runtime/test-helpers", "pezsp-trie"] +integrity-test = [ "static_assertions" ] +test-helpers = [ "pezbp-runtime/test-helpers", "pezsp-trie" ] diff --git a/pezbridges/bin/runtime-common/src/extensions.rs b/pezbridges/bin/runtime-common/src/extensions.rs index 0706aa7c..2fc3d627 100644 --- a/pezbridges/bin/runtime-common/src/extensions.rs +++ b/pezbridges/bin/runtime-common/src/extensions.rs @@ -19,8 +19,8 @@ //! checks. use pezbp_relayers::ExplicitOrAccountParams; -use pezbp_teyrchains::SubmitTeyrchainHeadsInfo; use pezbp_runtime::Teyrchain; +use pezbp_teyrchains::SubmitTeyrchainHeadsInfo; use pezpallet_bridge_grandpa::{ BridgedBlockNumber, CallSubType as GrandpaCallSubType, SubmitFinalityProofHelper, }; @@ -377,14 +377,14 @@ macro_rules! generate_bridge_reject_obsolete_headers_and_messages { mod tests { use super::*; use crate::mock::*; + use codec::{Decode, Encode, MaxEncodedLen}; use pezbp_header_pez_chain::StoredHeaderDataBuilder; use pezbp_messages::{InboundLaneData, MessageNonce, OutboundLaneData}; use pezbp_pezkuwi_core::teyrchains::{ParaHeadsProof, ParaId}; use pezbp_relayers::{RewardsAccountOwner, RewardsAccountParams}; + use pezbp_runtime::HeaderId; use pezbp_test_utils::{make_default_justification, test_keyring, TEST_GRANDPA_SET_ID}; use pezbp_teyrchains::{BestParaHeadHash, ParaInfo}; - use codec::{Decode, Encode, MaxEncodedLen}; - use pezbp_runtime::HeaderId; use pezframe_support::{assert_err, assert_ok, traits::fungible::Mutate}; use pezpallet_bridge_grandpa::{Call as GrandpaCall, StoredAuthoritySet}; use pezpallet_bridge_teyrchains::Call as TeyrchainsCall; diff --git a/pezbridges/bin/runtime-common/src/integrity.rs b/pezbridges/bin/runtime-common/src/integrity.rs index bf8634d7..24b50001 100644 --- a/pezbridges/bin/runtime-common/src/integrity.rs +++ b/pezbridges/bin/runtime-common/src/integrity.rs @@ -19,9 +19,9 @@ //! Most of the tests in this module assume that the bridge is using standard (see `crate::messages` //! module for details) configuration. +use codec::Encode; use pezbp_header_pez_chain::ChainWithGrandpa; use pezbp_messages::{ChainWithMessages, InboundLaneData, MessageNonce}; -use codec::Encode; use pezbp_runtime::{AccountIdOf, Chain}; use pezframe_support::{storage::generator::StorageValue, traits::Get, weights::Weight}; use pezframe_system::limits; diff --git a/pezbridges/bin/runtime-common/src/messages_benchmarking.rs b/pezbridges/bin/runtime-common/src/messages_benchmarking.rs index d894fe65..52d2fc1c 100644 --- a/pezbridges/bin/runtime-common/src/messages_benchmarking.rs +++ b/pezbridges/bin/runtime-common/src/messages_benchmarking.rs @@ -19,12 +19,12 @@ #![cfg(feature = "runtime-benchmarks")] +use codec::Encode; use pezbp_messages::{ source_chain::FromBridgedChainMessagesDeliveryProof, target_chain::FromBridgedChainMessagesProof, MessagePayload, }; use pezbp_pezkuwi_core::teyrchains::ParaHash; -use codec::Encode; use pezbp_runtime::{AccountIdOf, Chain, HashOf, Teyrchain}; use pezframe_support::weights::Weight; use pezpallet_bridge_messages::{ diff --git a/pezbridges/bin/runtime-common/src/mock.rs b/pezbridges/bin/runtime-common/src/mock.rs index 4519abf8..afa37caa 100644 --- a/pezbridges/bin/runtime-common/src/mock.rs +++ b/pezbridges/bin/runtime-common/src/mock.rs @@ -20,15 +20,15 @@ #![cfg(test)] #![allow(dead_code)] +use codec::Encode; use pezbp_header_pez_chain::ChainWithGrandpa; use pezbp_messages::{ target_chain::{DispatchMessage, MessageDispatch}, ChainWithMessages, HashedLaneId, LaneIdType, MessageNonce, }; use pezbp_relayers::{PayRewardFromAccount, RewardsAccountParams}; -use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder; -use codec::Encode; use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, Teyrchain}; +use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder; use pezframe_support::{ derive_impl, parameter_types, weights::{ConstantMultiplier, IdentityFee, RuntimeDbWeight, Weight}, diff --git a/pezbridges/bin/runtime-common/src/teyrchains_benchmarking.rs b/pezbridges/bin/runtime-common/src/teyrchains_benchmarking.rs index 056820b6..81efd407 100644 --- a/pezbridges/bin/runtime-common/src/teyrchains_benchmarking.rs +++ b/pezbridges/bin/runtime-common/src/teyrchains_benchmarking.rs @@ -20,14 +20,14 @@ use crate::messages_benchmarking::insert_header_to_grandpa_pallet; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; -use pezbp_teyrchains::{ - teyrchain_head_storage_key_at_source, RelayBlockHash, RelayBlockHasher, RelayBlockNumber, -}; use codec::Encode; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; use pezbp_runtime::{ grow_storage_value, record_all_trie_keys, Chain, UnverifiedStorageProofParams, }; +use pezbp_teyrchains::{ + teyrchain_head_storage_key_at_source, RelayBlockHash, RelayBlockHasher, RelayBlockNumber, +}; use pezframe_support::traits::Get; use pezsp_std::prelude::*; use pezsp_trie::{trie_types::TrieDBMutBuilderV1, LayoutV1, MemoryDB, TrieMut}; diff --git a/pezbridges/chains/chain-pezcumulus/Cargo.toml b/pezbridges/chains/chain-pezcumulus/Cargo.toml index c72e89ac..89ecfcd7 100644 --- a/pezbridges/chains/chain-pezcumulus/Cargo.toml +++ b/pezbridges/chains/chain-pezcumulus/Cargo.toml @@ -32,7 +32,7 @@ teyrchains-common = { workspace = true } pezkuwi-primitives = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezbp-messages/std", "pezbp-pezkuwi-core/std", diff --git a/pezbridges/chains/chain-pezkuwi-bulletin/Cargo.toml b/pezbridges/chains/chain-pezkuwi-bulletin/Cargo.toml index e29ee37d..55d1475f 100644 --- a/pezbridges/chains/chain-pezkuwi-bulletin/Cargo.toml +++ b/pezbridges/chains/chain-pezkuwi-bulletin/Cargo.toml @@ -33,12 +33,12 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", "pezbp-pezkuwi-core/std", - "codec/std", "pezbp-runtime/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/chains/chain-pezkuwi-bulletin/src/lib.rs b/pezbridges/chains/chain-pezkuwi-bulletin/src/lib.rs index b0bd2f6b..4002be68 100644 --- a/pezbridges/chains/chain-pezkuwi-bulletin/src/lib.rs +++ b/pezbridges/chains/chain-pezkuwi-bulletin/src/lib.rs @@ -19,9 +19,9 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] +use codec::{Decode, DecodeWithMemTracking, Encode}; use pezbp_header_pez_chain::ChainWithGrandpa; use pezbp_messages::{ChainWithMessages, MessageNonce}; -use codec::{Decode, DecodeWithMemTracking, Encode}; use pezbp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, extensions::{ diff --git a/pezbridges/modules/beefy/Cargo.toml b/pezbridges/modules/beefy/Cargo.toml index a5c3b177..ac1e9492 100644 --- a/pezbridges/modules/beefy/Cargo.toml +++ b/pezbridges/modules/beefy/Cargo.toml @@ -40,10 +40,10 @@ pezsp-io = { workspace = true, default-features = true } rand = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-beefy/std", "codec/std", + "pezbp-beefy/std", "pezbp-runtime/std", "pezframe-support/std", "pezframe-system/std", @@ -63,8 +63,8 @@ try-runtime = [ ] runtime-benchmarks = [ "pezbp-beefy/runtime-benchmarks", - "pezbp-test-utils/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-test-utils/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", "pezpallet-beefy-mmr/runtime-benchmarks", diff --git a/pezbridges/modules/beefy/src/lib.rs b/pezbridges/modules/beefy/src/lib.rs index d6d65f92..541da336 100644 --- a/pezbridges/modules/beefy/src/lib.rs +++ b/pezbridges/modules/beefy/src/lib.rs @@ -59,15 +59,18 @@ pub type BridgedBlockHash = pezbp_runtime::HashOf>; pub type InitializationDataOf = InitializationData, pezbp_beefy::MmrHashOf>>; /// BEEFY commitment hasher, used by configured bridged chain. -pub type BridgedBeefyCommitmentHasher = pezbp_beefy::BeefyCommitmentHasher>; +pub type BridgedBeefyCommitmentHasher = + pezbp_beefy::BeefyCommitmentHasher>; /// BEEFY validator id, used by configured bridged chain. pub type BridgedBeefyAuthorityId = pezbp_beefy::BeefyAuthorityIdOf>; /// BEEFY validator set, used by configured bridged chain. pub type BridgedBeefyAuthoritySet = pezbp_beefy::BeefyAuthoritySetOf>; /// BEEFY authority set, used by configured bridged chain. -pub type BridgedBeefyAuthoritySetInfo = pezbp_beefy::BeefyAuthoritySetInfoOf>; +pub type BridgedBeefyAuthoritySetInfo = + pezbp_beefy::BeefyAuthoritySetInfoOf>; /// BEEFY signed commitment, used by configured bridged chain. -pub type BridgedBeefySignedCommitment = pezbp_beefy::BeefySignedCommitmentOf>; +pub type BridgedBeefySignedCommitment = + pezbp_beefy::BeefySignedCommitmentOf>; /// MMR hashing algorithm, used by configured bridged chain. pub type BridgedMmrHashing = pezbp_beefy::MmrHashingOf>; /// MMR hashing output type of `BridgedMmrHashing`. @@ -415,10 +418,10 @@ pub mod pezpallet { #[cfg(test)] mod tests { use super::*; - use pezbp_test_utils::generate_owned_bridge_module_tests; use mock::*; use mock_chain::*; use pezbp_runtime::{BasicOperatingMode, OwnedBridgeModuleError}; + use pezbp_test_utils::generate_owned_bridge_module_tests; use pezframe_support::{assert_noop, assert_ok, traits::Get}; use pezsp_consensus_beefy::mmr::BeefyAuthoritySet; use pezsp_runtime::DispatchError; diff --git a/pezbridges/modules/beefy/src/mock.rs b/pezbridges/modules/beefy/src/mock.rs index 0307a852..5b4fc203 100644 --- a/pezbridges/modules/beefy/src/mock.rs +++ b/pezbridges/modules/beefy/src/mock.rs @@ -21,8 +21,8 @@ use crate::{ BridgedMmrHash, BridgedMmrHashing, BridgedMmrProof, }; -use pezbp_beefy::{BeefyValidatorSignatureOf, ChainWithBeefy, Commitment, MmrDataOrHash}; use codec::Encode; +use pezbp_beefy::{BeefyValidatorSignatureOf, ChainWithBeefy, Commitment, MmrDataOrHash}; use pezbp_runtime::{BasicOperatingMode, Chain, ChainId}; use pezframe_support::{construct_runtime, derive_impl, weights::Weight}; use pezsp_core::{sr25519::Signature, Pair}; diff --git a/pezbridges/modules/beefy/src/mock_chain.rs b/pezbridges/modules/beefy/src/mock_chain.rs index f7fe6758..194f7124 100644 --- a/pezbridges/modules/beefy/src/mock_chain.rs +++ b/pezbridges/modules/beefy/src/mock_chain.rs @@ -26,8 +26,8 @@ use crate::{ utils::get_authorities_mmr_root, }; -use pezbp_beefy::{BeefyPayload, Commitment, ValidatorSetId, MMR_ROOT_PAYLOAD_ID}; use codec::Encode; +use pezbp_beefy::{BeefyPayload, Commitment, ValidatorSetId, MMR_ROOT_PAYLOAD_ID}; use pezpallet_mmr::NodeIndex; use pezsp_consensus_beefy::mmr::{BeefyNextAuthoritySet, MmrLeafVersion}; use pezsp_core::Pair; diff --git a/pezbridges/modules/beefy/src/utils.rs b/pezbridges/modules/beefy/src/utils.rs index a50633d3..31573bf7 100644 --- a/pezbridges/modules/beefy/src/utils.rs +++ b/pezbridges/modules/beefy/src/utils.rs @@ -3,8 +3,8 @@ use crate::{ BridgedBeefyMmrLeaf, BridgedBeefySignedCommitment, BridgedChain, BridgedMmrHash, BridgedMmrHashing, BridgedMmrProof, Config, Error, LOG_TARGET, }; -use pezbp_beefy::{merkle_root, verify_mmr_leaves_proof, BeefyAuthorityId, MmrDataOrHash}; use codec::Encode; +use pezbp_beefy::{merkle_root, verify_mmr_leaves_proof, BeefyAuthorityId, MmrDataOrHash}; use pezframe_support::ensure; use pezsp_runtime::traits::{Convert, Hash}; use pezsp_std::{vec, vec::Vec}; diff --git a/pezbridges/modules/grandpa/Cargo.toml b/pezbridges/modules/grandpa/Cargo.toml index 0dda1353..bd6c4ca8 100644 --- a/pezbridges/modules/grandpa/Cargo.toml +++ b/pezbridges/modules/grandpa/Cargo.toml @@ -40,12 +40,12 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-header-pez-chain/std", - "pezbp-test-utils/std", "codec/std", + "pezbp-header-pez-chain/std", "pezbp-runtime/std", + "pezbp-test-utils/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", @@ -57,9 +57,9 @@ std = [ ] runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-test-utils", "pezbp-test-utils?/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", diff --git a/pezbridges/modules/grandpa/src/benchmarking.rs b/pezbridges/modules/grandpa/src/benchmarking.rs index 67d5560d..c1f29741 100644 --- a/pezbridges/modules/grandpa/src/benchmarking.rs +++ b/pezbridges/modules/grandpa/src/benchmarking.rs @@ -43,11 +43,11 @@ use crate::*; use pezbp_header_pez_chain::justification::required_justification_precommits; +use pezbp_runtime::BasicOperatingMode; use pezbp_test_utils::{ accounts, make_justification_for_header, JustificationGeneratorParams, TEST_GRANDPA_ROUND, TEST_GRANDPA_SET_ID, }; -use pezbp_runtime::BasicOperatingMode; use pezframe_benchmarking::{benchmarks_instance_pallet, whitelisted_caller}; use pezframe_system::RawOrigin; use pezsp_consensus_grandpa::AuthorityId; diff --git a/pezbridges/modules/grandpa/src/call_ext.rs b/pezbridges/modules/grandpa/src/call_ext.rs index 4d5c3f6a..c9e78154 100644 --- a/pezbridges/modules/grandpa/src/call_ext.rs +++ b/pezbridges/modules/grandpa/src/call_ext.rs @@ -308,13 +308,13 @@ mod tests { BestFinalized, Config, CurrentAuthoritySet, FreeHeadersRemaining, PalletOperatingMode, StoredAuthoritySet, WeightInfo, }; + use codec::Encode; use pezbp_header_pez_chain::{ChainWithGrandpa, SubmitFinalityProofInfo}; + use pezbp_runtime::{BasicOperatingMode, HeaderId}; use pezbp_test_utils::{ make_default_justification, make_justification_for_header, JustificationGeneratorParams, TEST_GRANDPA_SET_ID, }; - use codec::Encode; - use pezbp_runtime::{BasicOperatingMode, HeaderId}; use pezframe_support::weights::Weight; use pezsp_runtime::{testing::DigestItem, traits::Header as _, SaturatedConversion}; diff --git a/pezbridges/modules/grandpa/src/lib.rs b/pezbridges/modules/grandpa/src/lib.rs index 9990631c..5aa6b215 100644 --- a/pezbridges/modules/grandpa/src/lib.rs +++ b/pezbridges/modules/grandpa/src/lib.rs @@ -838,14 +838,14 @@ mod tests { run_test, test_header, FreeHeadersInterval, RuntimeEvent as TestEvent, RuntimeOrigin, System, TestBridgedChain, TestHeader, TestNumber, TestRuntime, MAX_BRIDGED_AUTHORITIES, }; + use codec::Encode; use pezbp_header_pez_chain::BridgeGrandpaCall; + use pezbp_runtime::BasicOperatingMode; use pezbp_test_utils::{ authority_list, generate_owned_bridge_module_tests, make_default_justification, make_justification_for_header, JustificationGeneratorParams, ALICE, BOB, TEST_GRANDPA_SET_ID, }; - use codec::Encode; - use pezbp_runtime::BasicOperatingMode; use pezframe_support::{ assert_err, assert_noop, assert_ok, dispatch::{Pays, PostDispatchInfo}, diff --git a/pezbridges/modules/grandpa/src/storage_types.rs b/pezbridges/modules/grandpa/src/storage_types.rs index d81d8d96..75afcd3c 100644 --- a/pezbridges/modules/grandpa/src/storage_types.rs +++ b/pezbridges/modules/grandpa/src/storage_types.rs @@ -18,8 +18,8 @@ use crate::{Config, Error}; -use pezbp_header_pez_chain::{AuthoritySet, ChainWithGrandpa}; use codec::{Decode, Encode, MaxEncodedLen}; +use pezbp_header_pez_chain::{AuthoritySet, ChainWithGrandpa}; use pezframe_support::{traits::Get, BoundedVec, CloneNoBound, RuntimeDebugNoBound}; use pezsp_consensus_grandpa::{AuthorityId, AuthorityList, AuthorityWeight, SetId}; use pezsp_std::marker::PhantomData; diff --git a/pezbridges/modules/messages/Cargo.toml b/pezbridges/modules/messages/Cargo.toml index fd23f8a0..05830089 100644 --- a/pezbridges/modules/messages/Cargo.toml +++ b/pezbridges/modules/messages/Cargo.toml @@ -39,13 +39,13 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", - "pezbp-test-utils/std", - "codec/std", "pezbp-runtime/std", + "pezbp-test-utils/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", @@ -62,9 +62,9 @@ std = [ runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-test-utils/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", "pezbp-runtime/test-helpers", + "pezbp-test-utils/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", @@ -81,4 +81,4 @@ try-runtime = [ "pezpallet-bridge-grandpa/try-runtime", "pezsp-runtime/try-runtime", ] -test-helpers = ["pezbp-runtime/test-helpers", "pezsp-trie"] +test-helpers = [ "pezbp-runtime/test-helpers", "pezsp-trie" ] diff --git a/pezbridges/modules/messages/src/benchmarking.rs b/pezbridges/modules/messages/src/benchmarking.rs index 6c4d81bc..7ab48e9c 100644 --- a/pezbridges/modules/messages/src/benchmarking.rs +++ b/pezbridges/modules/messages/src/benchmarking.rs @@ -23,13 +23,13 @@ use crate::{ InboundLanes, OutboundLanes, }; +use codec::Decode; use pezbp_messages::{ source_chain::FromBridgedChainMessagesDeliveryProof, target_chain::FromBridgedChainMessagesProof, ChainWithMessages, DeliveredMessages, InboundLaneData, LaneState, MessageNonce, OutboundLaneData, UnrewardedRelayer, UnrewardedRelayersState, }; -use codec::Decode; use pezbp_runtime::{AccountIdOf, HashOf, UnverifiedStorageProofParams}; use pezframe_benchmarking::{account, v2::*}; use pezframe_support::weights::Weight; diff --git a/pezbridges/modules/messages/src/inbound_lane.rs b/pezbridges/modules/messages/src/inbound_lane.rs index 53f7f949..413a86dc 100644 --- a/pezbridges/modules/messages/src/inbound_lane.rs +++ b/pezbridges/modules/messages/src/inbound_lane.rs @@ -18,12 +18,12 @@ use crate::{BridgedChainOf, Config}; +use codec::{Decode, Encode, EncodeLike, MaxEncodedLen}; use pezbp_messages::{ target_chain::{DispatchMessage, DispatchMessageData, MessageDispatch}, ChainWithMessages, DeliveredMessages, InboundLaneData, LaneState, MessageKey, MessageNonce, OutboundLaneData, ReceptionResult, UnrewardedRelayer, }; -use codec::{Decode, Encode, EncodeLike, MaxEncodedLen}; use pezbp_runtime::AccountIdOf; use pezsp_runtime::RuntimeDebug; use pezsp_std::prelude::PartialEq; diff --git a/pezbridges/modules/messages/src/lanes_manager.rs b/pezbridges/modules/messages/src/lanes_manager.rs index 968e6b3a..3827040e 100644 --- a/pezbridges/modules/messages/src/lanes_manager.rs +++ b/pezbridges/modules/messages/src/lanes_manager.rs @@ -20,11 +20,11 @@ use crate::{ StoredMessagePayload, }; +use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use pezbp_messages::{ target_chain::MessageDispatch, ChainWithMessages, InboundLaneData, LaneState, MessageKey, MessageNonce, OutboundLaneData, }; -use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use pezbp_runtime::AccountIdOf; use pezframe_support::{ensure, pezsp_runtime::RuntimeDebug, PalletError}; use pezsp_std::marker::PhantomData; diff --git a/pezbridges/modules/messages/src/lib.rs b/pezbridges/modules/messages/src/lib.rs index 2004ea03..175d1ca1 100644 --- a/pezbridges/modules/messages/src/lib.rs +++ b/pezbridges/modules/messages/src/lib.rs @@ -50,6 +50,7 @@ pub use weights_ext::{ EXPECTED_DEFAULT_MESSAGE_LENGTH, EXTRA_STORAGE_PROOF_SIZE, }; +use codec::{Decode, Encode}; use pezbp_header_pez_chain::HeaderChain; use pezbp_messages::{ source_chain::{ @@ -64,7 +65,6 @@ use pezbp_messages::{ MessageNonce, MessagePayload, MessagesOperatingMode, OutboundLaneData, OutboundMessageDetails, UnrewardedRelayersState, VerificationError, }; -use codec::{Decode, Encode}; use pezbp_runtime::{ AccountIdOf, BasicOperatingMode, HashOf, OwnedBridgeModule, PreComputedSize, RangeInclusiveExt, Size, diff --git a/pezbridges/modules/messages/src/migration.rs b/pezbridges/modules/messages/src/migration.rs index 5899c20b..ee98397e 100644 --- a/pezbridges/modules/messages/src/migration.rs +++ b/pezbridges/modules/messages/src/migration.rs @@ -30,8 +30,8 @@ pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); pub mod v0 { use super::Config; use crate::BridgedChainOf; - use pezbp_messages::{MessageNonce, UnrewardedRelayer}; use codec::{Decode, Encode}; + use pezbp_messages::{MessageNonce, UnrewardedRelayer}; use pezbp_runtime::AccountIdOf; use pezsp_std::collections::vec_deque::VecDeque; diff --git a/pezbridges/modules/messages/src/outbound_lane.rs b/pezbridges/modules/messages/src/outbound_lane.rs index 22b6ab53..9348a7e6 100644 --- a/pezbridges/modules/messages/src/outbound_lane.rs +++ b/pezbridges/modules/messages/src/outbound_lane.rs @@ -18,11 +18,11 @@ use crate::{Config, LOG_TARGET}; +use codec::{Decode, DecodeWithMemTracking, Encode}; use pezbp_messages::{ ChainWithMessages, DeliveredMessages, LaneState, MessageNonce, OutboundLaneData, UnrewardedRelayer, }; -use codec::{Decode, DecodeWithMemTracking, Encode}; use pezframe_support::{traits::Get, BoundedVec, PalletError}; use pezsp_runtime::RuntimeDebug; use pezsp_std::{collections::vec_deque::VecDeque, marker::PhantomData, ops::RangeInclusive}; diff --git a/pezbridges/modules/messages/src/proofs.rs b/pezbridges/modules/messages/src/proofs.rs index 4c2fe66c..3628aefb 100644 --- a/pezbridges/modules/messages/src/proofs.rs +++ b/pezbridges/modules/messages/src/proofs.rs @@ -18,6 +18,7 @@ use crate::{BridgedChainOf, BridgedHeaderChainOf, Config}; +use codec::Decode; use pezbp_header_pez_chain::{HeaderChain, HeaderChainError}; use pezbp_messages::{ source_chain::FromBridgedChainMessagesDeliveryProof, @@ -25,7 +26,6 @@ use pezbp_messages::{ ChainWithMessages, InboundLaneData, Message, MessageKey, MessageNonce, MessagePayload, OutboundLaneData, VerificationError, }; -use codec::Decode; use pezbp_runtime::{ HashOf, HasherOf, RangeInclusiveExt, RawStorageProof, StorageProofChecker, StorageProofError, }; @@ -216,9 +216,9 @@ mod tests { mock::*, }; + use codec::Encode; use pezbp_header_pez_chain::{HeaderChainError, StoredHeaderDataBuilder}; use pezbp_messages::LaneState; - use codec::Encode; use pezbp_runtime::{HeaderId, StorageProofError}; use pezsp_runtime::traits::Header; diff --git a/pezbridges/modules/messages/src/tests/messages_generation.rs b/pezbridges/modules/messages/src/tests/messages_generation.rs index 6f35f743..d715c693 100644 --- a/pezbridges/modules/messages/src/tests/messages_generation.rs +++ b/pezbridges/modules/messages/src/tests/messages_generation.rs @@ -16,11 +16,11 @@ //! Helpers for generating message storage proofs, that are used by tests and by benchmarks. +use codec::Encode; use pezbp_messages::{ storage_keys, ChainWithMessages, InboundLaneData, MessageKey, MessageNonce, MessagePayload, OutboundLaneData, }; -use codec::Encode; use pezbp_runtime::{ grow_storage_value, record_all_trie_keys, AccountIdOf, Chain, HashOf, HasherOf, RawStorageProof, UnverifiedStorageProofParams, diff --git a/pezbridges/modules/messages/src/tests/mock.rs b/pezbridges/modules/messages/src/tests/mock.rs index 3e197ec9..05cdc173 100644 --- a/pezbridges/modules/messages/src/tests/mock.rs +++ b/pezbridges/modules/messages/src/tests/mock.rs @@ -25,6 +25,7 @@ use crate::{ Config, StoredMessagePayload, }; +use codec::{Decode, DecodeWithMemTracking, Encode}; use pezbp_header_pez_chain::{ChainWithGrandpa, StoredHeaderData}; use pezbp_messages::{ calc_relayers_rewards, @@ -39,7 +40,6 @@ use pezbp_messages::{ Message, MessageKey, MessageNonce, OutboundLaneData, UnrewardedRelayer, UnrewardedRelayersState, }; -use codec::{Decode, DecodeWithMemTracking, Encode}; use pezbp_runtime::{ messages::MessageDispatchResult, Chain, ChainId, Size, UnverifiedStorageProofParams, }; diff --git a/pezbridges/modules/messages/src/tests/pezpallet_tests.rs b/pezbridges/modules/messages/src/tests/pezpallet_tests.rs index 141438e4..fe3f75f8 100644 --- a/pezbridges/modules/messages/src/tests/pezpallet_tests.rs +++ b/pezbridges/modules/messages/src/tests/pezpallet_tests.rs @@ -26,6 +26,7 @@ use crate::{ PalletOperatingMode, PalletOwner, Pezpallet, StoredInboundLaneData, }; +use codec::Encode; use pezbp_messages::{ source_chain::{FromBridgedChainMessagesDeliveryProof, MessagesBridge}, target_chain::{FromBridgedChainMessagesProof, MessageDispatch}, @@ -34,9 +35,8 @@ use pezbp_messages::{ OutboundLaneData, OutboundMessageDetails, UnrewardedRelayer, UnrewardedRelayersState, VerificationError, }; -use pezbp_test_utils::generate_owned_bridge_module_tests; -use codec::Encode; use pezbp_runtime::{BasicOperatingMode, PreComputedSize, RangeInclusiveExt, Size}; +use pezbp_test_utils::generate_owned_bridge_module_tests; use pezframe_support::{ assert_err, assert_noop, assert_ok, dispatch::Pays, diff --git a/pezbridges/modules/relayers/Cargo.toml b/pezbridges/modules/relayers/Cargo.toml index 9793aed7..5219900e 100644 --- a/pezbridges/modules/relayers/Cargo.toml +++ b/pezbridges/modules/relayers/Cargo.toml @@ -44,16 +44,16 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", "pezbp-pezkuwi-core/std", "pezbp-relayers/std", + "pezbp-runtime/std", "pezbp-test-utils/std", "pezbp-teyrchains/std", - "codec/std", - "pezbp-runtime/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", @@ -74,9 +74,9 @@ runtime-benchmarks = [ "pezbp-messages/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-test-utils/runtime-benchmarks", "pezbp-teyrchains/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", diff --git a/pezbridges/modules/relayers/src/extension/grandpa_adapter.rs b/pezbridges/modules/relayers/src/extension/grandpa_adapter.rs index 0bfbc5e2..0065ecee 100644 --- a/pezbridges/modules/relayers/src/extension/grandpa_adapter.rs +++ b/pezbridges/modules/relayers/src/extension/grandpa_adapter.rs @@ -21,8 +21,8 @@ use crate::{ extension::verify_messages_call_succeeded, Config as BridgeRelayersConfig, LOG_TARGET, }; -use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use core::marker::PhantomData; +use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use pezbp_runtime::{Chain, StaticStrProvider}; use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo}; use pezframe_system::Config as SystemConfig; diff --git a/pezbridges/modules/relayers/src/extension/messages_adapter.rs b/pezbridges/modules/relayers/src/extension/messages_adapter.rs index 8d0efc44..1e5828fa 100644 --- a/pezbridges/modules/relayers/src/extension/messages_adapter.rs +++ b/pezbridges/modules/relayers/src/extension/messages_adapter.rs @@ -19,8 +19,8 @@ use crate::{extension::verify_messages_call_succeeded, Config as BridgeRelayersConfig}; -use pezbp_relayers::{ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use core::marker::PhantomData; +use pezbp_relayers::{ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use pezbp_runtime::StaticStrProvider; use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo}; use pezpallet_bridge_messages::{ diff --git a/pezbridges/modules/relayers/src/extension/mod.rs b/pezbridges/modules/relayers/src/extension/mod.rs index 51549380..30f0fd81 100644 --- a/pezbridges/modules/relayers/src/extension/mod.rs +++ b/pezbridges/modules/relayers/src/extension/mod.rs @@ -24,13 +24,13 @@ use crate::{Config as RelayersConfig, Pezpallet as RelayersPallet, WeightInfoExt, LOG_TARGET}; +use codec::{Decode, DecodeWithMemTracking, Encode}; +use core::{fmt::Debug, marker::PhantomData}; use pezbp_messages::{ChainWithMessages, MessageNonce}; use pezbp_relayers::{ ExplicitOrAccountParams, ExtensionCallData, ExtensionCallInfo, ExtensionConfig, RewardsAccountOwner, RewardsAccountParams, }; -use codec::{Decode, DecodeWithMemTracking, Encode}; -use core::{fmt::Debug, marker::PhantomData}; use pezbp_runtime::{Chain, RangeInclusiveExt, StaticStrProvider}; use pezframe_support::{ dispatch::{DispatchInfo, PostDispatchInfo}, @@ -86,7 +86,8 @@ impl Option<&mut pezbp_header_pez_chain::SubmitFinalityProofInfo> { + ) -> Option<&mut pezbp_header_pez_chain::SubmitFinalityProofInfo> + { match self.call_info { ExtensionCallInfo::AllFinalityAndMsgs(ref mut info, _, _) => Some(info), ExtensionCallInfo::RelayFinalityAndMsgs(ref mut info, _) => Some(info), @@ -465,9 +466,9 @@ mod tests { }; use pezbp_pezkuwi_core::teyrchains::{ParaHeadsProof, ParaId}; use pezbp_relayers::RuntimeWithUtilityPallet; + use pezbp_runtime::{BasicOperatingMode, HeaderId, Teyrchain}; use pezbp_test_utils::{make_default_justification, test_keyring, TEST_GRANDPA_SET_ID}; use pezbp_teyrchains::{BestParaHeadHash, ParaInfo, SubmitTeyrchainHeadsInfo}; - use pezbp_runtime::{BasicOperatingMode, HeaderId, Teyrchain}; use pezframe_support::{ __private::pezsp_tracing, assert_storage_noop, parameter_types, diff --git a/pezbridges/modules/relayers/src/extension/teyrchain_adapter.rs b/pezbridges/modules/relayers/src/extension/teyrchain_adapter.rs index 3b7ff4fb..387f6838 100644 --- a/pezbridges/modules/relayers/src/extension/teyrchain_adapter.rs +++ b/pezbridges/modules/relayers/src/extension/teyrchain_adapter.rs @@ -24,8 +24,8 @@ use crate::{ Config as BridgeRelayersConfig, LOG_TARGET, }; -use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use core::marker::PhantomData; +use pezbp_relayers::{BatchCallUnpacker, ExtensionCallData, ExtensionCallInfo, ExtensionConfig}; use pezbp_runtime::{StaticStrProvider, Teyrchain}; use pezframe_support::dispatch::{DispatchInfo, PostDispatchInfo}; use pezframe_system::Config as SystemConfig; diff --git a/pezbridges/modules/relayers/src/lib.rs b/pezbridges/modules/relayers/src/lib.rs index d712fc6a..7fd6fab2 100644 --- a/pezbridges/modules/relayers/src/lib.rs +++ b/pezbridges/modules/relayers/src/lib.rs @@ -21,9 +21,9 @@ extern crate alloc; +use core::marker::PhantomData; pub use pezbp_relayers::RewardLedger; use pezbp_relayers::{PaymentProcedure, Registration, RelayerRewardsKeyProvider, StakeAndSlash}; -use core::marker::PhantomData; use pezbp_runtime::StorageDoubleMapKeyProvider; use pezframe_support::{fail, traits::tokens::Balance}; use pezsp_arithmetic::traits::{AtLeast32BitUnsigned, Zero}; @@ -637,7 +637,8 @@ mod tests { *b"test", RewardsAccountOwner::ThisChain, ); - let slash_destination = pezbp_relayers::ExplicitOrAccountParams::Params(slash_destination); + let slash_destination = + pezbp_relayers::ExplicitOrAccountParams::Params(slash_destination); Pezpallet::::slash_and_deregister(®ISTER_RELAYER, slash_destination); // check if event emitted assert_eq!( diff --git a/pezbridges/modules/relayers/src/migration.rs b/pezbridges/modules/relayers/src/migration.rs index 715776b7..a6d6dc77 100644 --- a/pezbridges/modules/relayers/src/migration.rs +++ b/pezbridges/modules/relayers/src/migration.rs @@ -29,9 +29,9 @@ pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(2); /// (used with v1 migration). pub mod v0 { use crate::{Config, Pezpallet}; - use pezbp_relayers::RewardsAccountOwner; use codec::{Codec, Decode, Encode, EncodeLike, MaxEncodedLen}; use core::marker::PhantomData; + use pezbp_relayers::RewardsAccountOwner; use pezbp_runtime::{ChainId, StorageDoubleMapKeyProvider}; use pezframe_support::{pezpallet_prelude::OptionQuery, Blake2_128Concat, Identity}; use pezsp_runtime::traits::AccountIdConversion; @@ -120,10 +120,10 @@ pub mod v0 { pub mod v1 { use super::*; use crate::{Config, Pezpallet}; - use pezbp_messages::LaneIdType; - use pezbp_relayers::RewardsAccountParams; use codec::{Codec, EncodeLike}; use core::marker::PhantomData; + use pezbp_messages::LaneIdType; + use pezbp_relayers::RewardsAccountParams; use pezbp_runtime::StorageDoubleMapKeyProvider; use pezframe_support::{ pezpallet_prelude::OptionQuery, traits::UncheckedOnRuntimeUpgrade, Blake2_128Concat, @@ -329,9 +329,9 @@ pub mod v2 { #[cfg(feature = "try-runtime")] use crate::RelayerRewards; use crate::{Config, Pezpallet}; + use core::marker::PhantomData; use pezbp_messages::LaneIdType; use pezbp_relayers::RewardsAccountParams; - use core::marker::PhantomData; use pezframe_support::traits::UncheckedOnRuntimeUpgrade; /// Migrates the pezpallet storage to v2. diff --git a/pezbridges/modules/relayers/src/mock.rs b/pezbridges/modules/relayers/src/mock.rs index 74df7ffb..38448b30 100644 --- a/pezbridges/modules/relayers/src/mock.rs +++ b/pezbridges/modules/relayers/src/mock.rs @@ -18,6 +18,7 @@ use crate as pezpallet_bridge_relayers; +use codec::Encode; use pezbp_header_pez_chain::ChainWithGrandpa; use pezbp_messages::{ target_chain::{DispatchMessage, MessageDispatch}, @@ -26,9 +27,8 @@ use pezbp_messages::{ use pezbp_relayers::{ PayRewardFromAccount, PaymentProcedure, RewardsAccountOwner, RewardsAccountParams, }; -use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder; -use codec::Encode; use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, Teyrchain}; +use pezbp_teyrchains::SingleParaStoredHeaderDataBuilder; use pezframe_support::{ derive_impl, parameter_types, traits::fungible::Mutate, diff --git a/pezbridges/modules/relayers/src/payment_adapter.rs b/pezbridges/modules/relayers/src/payment_adapter.rs index c6150ef3..ed0dfb87 100644 --- a/pezbridges/modules/relayers/src/payment_adapter.rs +++ b/pezbridges/modules/relayers/src/payment_adapter.rs @@ -20,13 +20,13 @@ use crate::{Config, Pezpallet}; use alloc::collections::vec_deque::VecDeque; +use core::{marker::PhantomData, ops::RangeInclusive}; use pezbp_messages::{ source_chain::{DeliveryConfirmationPayments, RelayersRewards}, MessageNonce, }; pub use pezbp_relayers::PayRewardFromAccount; use pezbp_relayers::{RewardsAccountOwner, RewardsAccountParams}; -use core::{marker::PhantomData, ops::RangeInclusive}; use pezbp_runtime::Chain; use pezframe_support::{pezsp_runtime::SaturatedConversion, traits::Get}; use pezpallet_bridge_messages::LaneIdOf; diff --git a/pezbridges/modules/relayers/src/stake_adapter.rs b/pezbridges/modules/relayers/src/stake_adapter.rs index 84a01921..4cd0daca 100644 --- a/pezbridges/modules/relayers/src/stake_adapter.rs +++ b/pezbridges/modules/relayers/src/stake_adapter.rs @@ -17,9 +17,9 @@ //! Code that allows `NamedReservableCurrency` to be used as a `StakeAndSlash` //! mechanism of the relayers pezpallet. -use pezbp_relayers::StakeAndSlash; use codec::Codec; use core::{fmt::Debug, marker::PhantomData}; +use pezbp_relayers::StakeAndSlash; use pezframe_support::traits::{tokens::BalanceStatus, NamedReservableCurrency}; use pezsp_runtime::{traits::Get, DispatchError, DispatchResult}; diff --git a/pezbridges/modules/teyrchains/Cargo.toml b/pezbridges/modules/teyrchains/Cargo.toml index 59b7bd82..f240d43b 100644 --- a/pezbridges/modules/teyrchains/Cargo.toml +++ b/pezbridges/modules/teyrchains/Cargo.toml @@ -38,13 +38,13 @@ pezsp-core = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-pezkuwi-core/std", - "pezbp-teyrchains/std", - "codec/std", "pezbp-runtime/std", + "pezbp-teyrchains/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", @@ -57,9 +57,9 @@ std = [ runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-test-utils/runtime-benchmarks", "pezbp-teyrchains/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", diff --git a/pezbridges/modules/teyrchains/src/call_ext.rs b/pezbridges/modules/teyrchains/src/call_ext.rs index 77d4de68..8b576bba 100644 --- a/pezbridges/modules/teyrchains/src/call_ext.rs +++ b/pezbridges/modules/teyrchains/src/call_ext.rs @@ -16,8 +16,8 @@ use crate::{Config, GrandpaPalletOf, Pezpallet, RelayBlockNumber}; use pezbp_header_pez_chain::HeaderChain; -use pezbp_teyrchains::{BestParaHeadHash, SubmitTeyrchainHeadsInfo}; use pezbp_runtime::{HeaderId, OwnedBridgeModule}; +use pezbp_teyrchains::{BestParaHeadHash, SubmitTeyrchainHeadsInfo}; use pezframe_support::{ dispatch::CallableCallFor, traits::{Get, IsSubType}, @@ -261,8 +261,8 @@ mod tests { }; use pezbp_header_pez_chain::StoredHeaderData; use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHeadsProof, ParaId}; - use pezbp_teyrchains::BestParaHeadHash; use pezbp_runtime::BasicOperatingMode; + use pezbp_teyrchains::BestParaHeadHash; fn validate_submit_teyrchain_heads( num: RelayBlockNumber, diff --git a/pezbridges/modules/teyrchains/src/lib.rs b/pezbridges/modules/teyrchains/src/lib.rs index 279c3318..3cfd6b46 100644 --- a/pezbridges/modules/teyrchains/src/lib.rs +++ b/pezbridges/modules/teyrchains/src/lib.rs @@ -29,22 +29,22 @@ pub use weights_ext::WeightInfoExt; use pezbp_header_pez_chain::{HeaderChain, HeaderChainError}; use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; +use pezbp_runtime::{Chain, HashOf, HeaderId, HeaderIdOf, Teyrchain}; use pezbp_teyrchains::{ ParaInfo, ParaStoredHeaderData, RelayBlockHash, RelayBlockHasher, RelayBlockNumber, SubmitTeyrchainHeadsInfo, }; -use pezbp_runtime::{Chain, HashOf, HeaderId, HeaderIdOf, Teyrchain}; use pezframe_support::{dispatch::PostDispatchInfo, DefaultNoBound}; use pezpallet_bridge_grandpa::SubmitFinalityProofHelper; use pezsp_std::{marker::PhantomData, vec::Vec}; use proofs::{StorageProofAdapter, TeyrchainsStorageProofAdapter}; -#[cfg(feature = "runtime-benchmarks")] -use pezbp_teyrchains::ParaStoredHeaderDataBuilder; #[cfg(feature = "runtime-benchmarks")] use codec::Encode; #[cfg(feature = "runtime-benchmarks")] use pezbp_runtime::HeaderOf; +#[cfg(feature = "runtime-benchmarks")] +use pezbp_teyrchains::ParaStoredHeaderDataBuilder; // Re-export in crate namespace for `construct_runtime!`. pub use call_ext::*; @@ -75,14 +75,14 @@ struct UpdateTeyrchainHeadArtifacts { #[pezframe_support::pezpallet] pub mod pezpallet { use super::*; - use pezbp_teyrchains::{ - BestParaHeadHash, ImportedParaHeadsKeyProvider, OnNewHead, ParaStoredHeaderDataBuilder, - ParasInfoKeyProvider, - }; use pezbp_runtime::{ BasicOperatingMode, BoundedStorageValue, OwnedBridgeModule, StorageDoubleMapKeyProvider, StorageMapKeyProvider, }; + use pezbp_teyrchains::{ + BestParaHeadHash, ImportedParaHeadsKeyProvider, OnNewHead, ParaStoredHeaderDataBuilder, + ParasInfoKeyProvider, + }; use pezframe_support::pezpallet_prelude::*; use pezframe_system::pezpallet_prelude::*; @@ -842,11 +842,15 @@ pub(crate) mod tests { RegularTeyrchainHasher, RegularTeyrchainHeader, RelayBlockHeader, RuntimeEvent as TestEvent, RuntimeOrigin, TestRuntime, UNTRACKED_TEYRCHAIN_ID, }; - use pezbp_test_utils::prepare_teyrchain_heads_proof; use codec::Encode; + use pezbp_test_utils::prepare_teyrchain_heads_proof; use pezbp_header_pez_chain::{justification::GrandpaJustification, StoredHeaderGrandpaInfo}; use pezbp_pezkuwi_core::teyrchains::ParaHead; + use pezbp_runtime::{ + BasicOperatingMode, OwnedBridgeModuleError, StorageDoubleMapKeyProvider, + StorageMapKeyProvider, StorageProofError, + }; use pezbp_test_utils::{ authority_list, generate_owned_bridge_module_tests, make_default_justification, TEST_GRANDPA_SET_ID, @@ -854,10 +858,6 @@ pub(crate) mod tests { use pezbp_teyrchains::{ BestParaHeadHash, BridgeTeyrchainCall, ImportedParaHeadsKeyProvider, ParasInfoKeyProvider, }; - use pezbp_runtime::{ - BasicOperatingMode, OwnedBridgeModuleError, StorageDoubleMapKeyProvider, - StorageMapKeyProvider, StorageProofError, - }; use pezframe_support::{ assert_noop, assert_ok, dispatch::DispatchResultWithPostInfo, diff --git a/pezbridges/modules/teyrchains/src/proofs.rs b/pezbridges/modules/teyrchains/src/proofs.rs index 933edbf6..4dfcf240 100644 --- a/pezbridges/modules/teyrchains/src/proofs.rs +++ b/pezbridges/modules/teyrchains/src/proofs.rs @@ -17,11 +17,11 @@ //! Tools for teyrchain head proof verification. use crate::{Config, GrandpaPalletOf, RelayBlockHash, RelayBlockHasher}; +use codec::Decode; use pezbp_header_pez_chain::{HeaderChain, HeaderChainError}; use pezbp_pezkuwi_core::teyrchains::{ParaHead, ParaId}; -use pezbp_teyrchains::teyrchain_head_storage_key_at_source; -use codec::Decode; use pezbp_runtime::{RawStorageProof, StorageProofChecker, StorageProofError}; +use pezbp_teyrchains::teyrchain_head_storage_key_at_source; use pezframe_support::traits::Get; /// Abstraction over storage proof manipulation, hiding implementation details of actual storage diff --git a/pezbridges/modules/xcm-bridge-hub-router/Cargo.toml b/pezbridges/modules/xcm-bridge-hub-router/Cargo.toml index 436d3c51..05882e77 100644 --- a/pezbridges/modules/xcm-bridge-hub-router/Cargo.toml +++ b/pezbridges/modules/xcm-bridge-hub-router/Cargo.toml @@ -37,10 +37,10 @@ xcm-builder = { workspace = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-xcm-bridge-hub-router/std", "codec/std", + "pezbp-xcm-bridge-hub-router/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/modules/xcm-bridge-hub-router/src/lib.rs b/pezbridges/modules/xcm-bridge-hub-router/src/lib.rs index aee6f5b0..0ccbcd21 100644 --- a/pezbridges/modules/xcm-bridge-hub-router/src/lib.rs +++ b/pezbridges/modules/xcm-bridge-hub-router/src/lib.rs @@ -30,9 +30,9 @@ #![cfg_attr(not(feature = "std"), no_std)] +use codec::Encode; use pezbp_xcm_bridge_hub_router::MINIMAL_DELIVERY_FEE_FACTOR; pub use pezbp_xcm_bridge_hub_router::{BridgeState, XcmChannelStatusProvider}; -use codec::Encode; use pezframe_support::traits::Get; use pezkuwi_runtime_teyrchains::FeeTracker; use pezsp_core::H256; diff --git a/pezbridges/modules/xcm-bridge-hub-router/src/mock.rs b/pezbridges/modules/xcm-bridge-hub-router/src/mock.rs index 5913996a..0e2c343c 100644 --- a/pezbridges/modules/xcm-bridge-hub-router/src/mock.rs +++ b/pezbridges/modules/xcm-bridge-hub-router/src/mock.rs @@ -18,8 +18,8 @@ use crate as pezpallet_xcm_bridge_hub_router; -use pezbp_xcm_bridge_hub_router::XcmChannelStatusProvider; use codec::Encode; +use pezbp_xcm_bridge_hub_router::XcmChannelStatusProvider; use pezframe_support::{ construct_runtime, derive_impl, parameter_types, traits::{Contains, Equals}, diff --git a/pezbridges/modules/xcm-bridge-hub/Cargo.toml b/pezbridges/modules/xcm-bridge-hub/Cargo.toml index 36898b55..157b96af 100644 --- a/pezbridges/modules/xcm-bridge-hub/Cargo.toml +++ b/pezbridges/modules/xcm-bridge-hub/Cargo.toml @@ -44,14 +44,14 @@ pezpallet-xcm-bridge-hub-router = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", + "pezbp-runtime/std", "pezbp-xcm-bridge-hub-router/std", "pezbp-xcm-bridge-hub/std", - "codec/std", - "pezbp-runtime/std", "pezframe-support/std", "pezframe-system/std", "pezkuwi-teyrchain-primitives/std", @@ -71,9 +71,9 @@ std = [ runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezbp-xcm-bridge-hub/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", "pezkuwi-teyrchain-primitives/runtime-benchmarks", diff --git a/pezbridges/modules/xcm-bridge-hub/src/dispatcher.rs b/pezbridges/modules/xcm-bridge-hub/src/dispatcher.rs index 9fba821b..6bea3d67 100644 --- a/pezbridges/modules/xcm-bridge-hub/src/dispatcher.rs +++ b/pezbridges/modules/xcm-bridge-hub/src/dispatcher.rs @@ -23,10 +23,10 @@ use crate::{Config, Pezpallet, LOG_TARGET}; -use pezbp_messages::target_chain::{DispatchMessage, MessageDispatch}; -use pezbp_xcm_bridge_hub::{LocalXcmChannelManager, XcmAsPlainPayload}; use codec::{Decode, DecodeWithMemTracking, Encode}; +use pezbp_messages::target_chain::{DispatchMessage, MessageDispatch}; use pezbp_runtime::messages::MessageDispatchResult; +use pezbp_xcm_bridge_hub::{LocalXcmChannelManager, XcmAsPlainPayload}; use pezframe_support::{weights::Weight, CloneNoBound, EqNoBound, PartialEqNoBound}; use pezpallet_bridge_messages::{Config as BridgeMessagesConfig, WeightInfoExt}; use pezsp_runtime::SaturatedConversion; diff --git a/pezbridges/modules/xcm-bridge-hub/src/exporter.rs b/pezbridges/modules/xcm-bridge-hub/src/exporter.rs index 0212df01..48e52332 100644 --- a/pezbridges/modules/xcm-bridge-hub/src/exporter.rs +++ b/pezbridges/modules/xcm-bridge-hub/src/exporter.rs @@ -371,8 +371,8 @@ mod tests { use super::*; use crate::{mock::*, Bridges, LaneToBridge, LanesManagerOf}; - use pezbp_xcm_bridge_hub::{Bridge, BridgeLocations, BridgeState}; use pezbp_runtime::RangeInclusiveExt; + use pezbp_xcm_bridge_hub::{Bridge, BridgeLocations, BridgeState}; use pezframe_support::{assert_ok, traits::EnsureOrigin}; use pezpallet_bridge_messages::InboundLaneStorage; use xcm_builder::{NetworkExportTable, UnpaidRemoteExporter}; diff --git a/pezbridges/modules/xcm-bridge-hub/src/lib.rs b/pezbridges/modules/xcm-bridge-hub/src/lib.rs index 09bb5e52..c3ac1d79 100644 --- a/pezbridges/modules/xcm-bridge-hub/src/lib.rs +++ b/pezbridges/modules/xcm-bridge-hub/src/lib.rs @@ -144,11 +144,11 @@ #![cfg_attr(not(feature = "std"), no_std)] use pezbp_messages::{LaneState, MessageNonce}; +use pezbp_runtime::{AccountIdOf, BalanceOf, RangeInclusiveExt}; use pezbp_xcm_bridge_hub::BridgeLocationsError; pub use pezbp_xcm_bridge_hub::{ Bridge, BridgeId, BridgeLocations, BridgeState, LocalXcmChannelManager, }; -use pezbp_runtime::{AccountIdOf, BalanceOf, RangeInclusiveExt}; use pezframe_support::{traits::fungible::MutateHold, DefaultNoBound}; use pezframe_system::Config as SystemConfig; use pezpallet_bridge_messages::{Config as BridgeMessagesConfig, LanesManagerError}; @@ -158,9 +158,9 @@ use xcm::prelude::*; use xcm_builder::DispatchBlob; use xcm_executor::traits::ConvertLocation; -pub use pezbp_xcm_bridge_hub::XcmAsPlainPayload; pub use dispatcher::XcmBlobMessageDispatchResult; pub use exporter::PalletAsHaulBlobExporter; +pub use pezbp_xcm_bridge_hub::XcmAsPlainPayload; pub use pezpallet::*; mod dispatcher; @@ -846,8 +846,8 @@ pub mod pezpallet { #[cfg(test)] mod tests { use super::*; - use pezbp_messages::LaneIdType; use mock::*; + use pezbp_messages::LaneIdType; use pezframe_support::{ assert_err, assert_noop, assert_ok, traits::fungible::Mutate, BoundedVec, diff --git a/pezbridges/modules/xcm-bridge-hub/src/mock.rs b/pezbridges/modules/xcm-bridge-hub/src/mock.rs index 2995a79e..07f5e230 100644 --- a/pezbridges/modules/xcm-bridge-hub/src/mock.rs +++ b/pezbridges/modules/xcm-bridge-hub/src/mock.rs @@ -18,13 +18,13 @@ use crate as pezpallet_xcm_bridge_hub; +use codec::{Decode, Encode}; use pezbp_messages::{ target_chain::{DispatchMessage, MessageDispatch}, ChainWithMessages, HashedLaneId, MessageNonce, }; -use pezbp_xcm_bridge_hub::{BridgeId, LocalXcmChannelManager}; -use codec::{Decode, Encode}; use pezbp_runtime::{messages::MessageDispatchResult, Chain, ChainId, HashOf}; +use pezbp_xcm_bridge_hub::{BridgeId, LocalXcmChannelManager}; use pezframe_support::{ assert_ok, derive_impl, parameter_types, traits::{EnsureOrigin, Equals, Everything, Get, OriginTrait}, diff --git a/pezbridges/pezsnowbridge/pezpallets/ethereum-client/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/ethereum-client/Cargo.toml index 69a41a4e..848cdbc7 100644 --- a/pezbridges/pezsnowbridge/pezpallets/ethereum-client/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/ethereum-client/Cargo.toml @@ -52,7 +52,7 @@ serde = { workspace = true, default-features = true } serde_json = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] fuzzing = [ "hex-literal", "pezpallet-timestamp", diff --git a/pezbridges/pezsnowbridge/pezpallets/ethereum-client/fixtures/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/ethereum-client/fixtures/Cargo.toml index c99d05c7..05e33650 100644 --- a/pezbridges/pezsnowbridge/pezpallets/ethereum-client/fixtures/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/ethereum-client/fixtures/Cargo.toml @@ -28,7 +28,7 @@ pezsp-core = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezsnowbridge-beacon-primitives/std", "pezsnowbridge-verification-primitives/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/Cargo.toml index dceddd09..da3a29a7 100644 --- a/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/Cargo.toml @@ -53,11 +53,11 @@ pezsnowbridge-test-utils = { workspace = true } pezsp-keyring = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-core/std", - "pezbp-relayers/std", "codec/std", + "pezbp-relayers/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/fixtures/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/fixtures/Cargo.toml index 4f18627a..698a8522 100644 --- a/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/fixtures/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/inbound-queue-v2/fixtures/Cargo.toml @@ -29,7 +29,7 @@ pezsp-core = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezsnowbridge-beacon-primitives/std", "pezsnowbridge-core/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/inbound-queue/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/inbound-queue/Cargo.toml index 76b89455..adc0a9db 100644 --- a/pezbridges/pezsnowbridge/pezpallets/inbound-queue/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/inbound-queue/Cargo.toml @@ -50,7 +50,7 @@ pezsnowbridge-pezpallet-ethereum-client = { workspace = true, default-features = pezsp-keyring = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-core/std", "codec/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/inbound-queue/fixtures/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/inbound-queue/fixtures/Cargo.toml index 18f7deeb..a3accead 100644 --- a/pezbridges/pezsnowbridge/pezpallets/inbound-queue/fixtures/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/inbound-queue/fixtures/Cargo.toml @@ -29,7 +29,7 @@ pezsp-core = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezsnowbridge-beacon-primitives/std", "pezsnowbridge-core/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/Cargo.toml index 1d444981..f031da13 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/Cargo.toml @@ -53,12 +53,12 @@ pezpallet-message-queue = { workspace = true } pezsnowbridge-test-utils = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-core/std", - "pezbp-relayers/std", "codec/std", "ethabi/std", + "pezbp-relayers/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/runtime-api/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/runtime-api/Cargo.toml index d570f499..7257bb11 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/runtime-api/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/runtime-api/Cargo.toml @@ -28,7 +28,7 @@ pezsp-std = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/src/lib.rs b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/src/lib.rs index 064a8c14..e52e4077 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/src/lib.rs +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue-v2/src/lib.rs @@ -71,8 +71,8 @@ use alloy_core::{ primitives::{Bytes, FixedBytes}, sol_types::SolValue, }; -use pezbp_relayers::RewardLedger; use codec::{Decode, FullCodec}; +use pezbp_relayers::RewardLedger; use pezframe_support::{ storage::StorageStreamIter, traits::{tokens::Balance, EnqueueMessage, Get, ProcessMessageError}, diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/Cargo.toml index 2359e5c0..61d12782 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/Cargo.toml @@ -44,11 +44,11 @@ pezsnowbridge-outbound-queue-primitives = { workspace = true } pezpallet-message-queue = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbridge-hub-common/std", "codec/std", "ethabi/std", + "pezbridge-hub-common/std", "pezframe-benchmarking/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/runtime-api/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/runtime-api/Cargo.toml index 81550c48..add5a393 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/runtime-api/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/runtime-api/Cargo.toml @@ -29,7 +29,7 @@ pezsp-api = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/benchmarking.rs b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/benchmarking.rs index a150b4e5..68a3c13a 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/benchmarking.rs +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/benchmarking.rs @@ -2,8 +2,8 @@ // SPDX-FileCopyrightText: 2023 Snowfork use super::*; -use pezbridge_hub_common::AggregateMessageOrigin; use codec::Encode; +use pezbridge_hub_common::AggregateMessageOrigin; use pezframe_benchmarking::v2::*; use pezsnowbridge_core::ChannelId; use pezsnowbridge_outbound_queue_primitives::v1::{Command, Initializer}; diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/lib.rs b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/lib.rs index 3c05a27b..6a87cefc 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/lib.rs +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/lib.rs @@ -103,8 +103,8 @@ mod mock; #[cfg(test)] mod test; -use pezbridge_hub_common::AggregateMessageOrigin; use codec::Decode; +use pezbridge_hub_common::AggregateMessageOrigin; use pezframe_support::{ storage::StorageStreamIter, traits::{tokens::Balance, Contains, Defensive, EnqueueMessage, Get, ProcessMessageError}, diff --git a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/send_message_impl.rs b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/send_message_impl.rs index 92adfe3e..f9e7f9b5 100644 --- a/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/send_message_impl.rs +++ b/pezbridges/pezsnowbridge/pezpallets/outbound-queue/src/send_message_impl.rs @@ -2,8 +2,8 @@ // SPDX-FileCopyrightText: 2023 Snowfork //! Implementation for [`pezsnowbridge_outbound_queue_primitives::v1::SendMessage`] use super::*; -use pezbridge_hub_common::AggregateMessageOrigin; use codec::Encode; +use pezbridge_hub_common::AggregateMessageOrigin; use pezframe_support::{ ensure, traits::{EnqueueMessage, Get}, diff --git a/pezbridges/pezsnowbridge/pezpallets/system-frontend/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/system-frontend/Cargo.toml index 09e0dd89..c9fc6e17 100644 --- a/pezbridges/pezsnowbridge/pezpallets/system-frontend/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/system-frontend/Cargo.toml @@ -41,7 +41,7 @@ pezsnowbridge-test-utils = { workspace = true } pezsp-keyring = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/system-v2/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/system-v2/Cargo.toml index ca36601d..57c6e50a 100644 --- a/pezbridges/pezsnowbridge/pezpallets/system-v2/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/system-v2/Cargo.toml @@ -47,7 +47,7 @@ pezsnowbridge-test-utils = { workspace = true } pezsp-keyring = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/system-v2/runtime-api/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/system-v2/runtime-api/Cargo.toml index 9f22b024..7e2e01f4 100644 --- a/pezbridges/pezsnowbridge/pezpallets/system-v2/runtime-api/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/system-v2/runtime-api/Cargo.toml @@ -27,7 +27,7 @@ pezsp-std = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsnowbridge-core/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/system/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/system/Cargo.toml index c368c990..8878a1ca 100644 --- a/pezbridges/pezsnowbridge/pezpallets/system/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/system/Cargo.toml @@ -47,7 +47,7 @@ pezpallet-message-queue = { workspace = true, default-features = true } pezsnowbridge-pezpallet-outbound-queue = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/pezbridges/pezsnowbridge/pezpallets/system/runtime-api/Cargo.toml b/pezbridges/pezsnowbridge/pezpallets/system/runtime-api/Cargo.toml index 5ce336a1..4c8e8439 100644 --- a/pezbridges/pezsnowbridge/pezpallets/system/runtime-api/Cargo.toml +++ b/pezbridges/pezsnowbridge/pezpallets/system/runtime-api/Cargo.toml @@ -27,7 +27,7 @@ pezsp-std = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsnowbridge-core/std", diff --git a/pezbridges/pezsnowbridge/primitives/beacon/Cargo.toml b/pezbridges/pezsnowbridge/primitives/beacon/Cargo.toml index c7cf5b50..98c43799 100644 --- a/pezbridges/pezsnowbridge/primitives/beacon/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/beacon/Cargo.toml @@ -42,7 +42,7 @@ pezsnowbridge-ethereum = { workspace = true } hex-literal = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "byte-slice-cast/std", "codec/std", diff --git a/pezbridges/pezsnowbridge/primitives/core/Cargo.toml b/pezbridges/pezsnowbridge/primitives/core/Cargo.toml index fe6ac042..8898c5ba 100644 --- a/pezbridges/pezsnowbridge/primitives/core/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/core/Cargo.toml @@ -39,10 +39,10 @@ xcm-executor = { workspace = true } pezbp-relayers = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-relayers/std", "codec/std", + "pezbp-relayers/std", "pezframe-support/std", "pezframe-system/std", "pezkuwi-teyrchain-primitives/std", @@ -58,7 +58,7 @@ std = [ "xcm-executor/std", "xcm/std", ] -serde = ["dep:serde", "scale-info/serde"] +serde = [ "dep:serde", "scale-info/serde" ] runtime-benchmarks = [ "pezbp-relayers/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezbridges/pezsnowbridge/primitives/core/src/reward.rs b/pezbridges/pezsnowbridge/primitives/core/src/reward.rs index 5456e043..5532ac14 100644 --- a/pezbridges/pezsnowbridge/primitives/core/src/reward.rs +++ b/pezbridges/pezsnowbridge/primitives/core/src/reward.rs @@ -4,8 +4,8 @@ extern crate alloc; use crate::reward::RewardPaymentError::{ChargeFeesFailure, XcmSendFailure}; -use pezbp_relayers::PaymentProcedure; use codec::DecodeWithMemTracking; +use pezbp_relayers::PaymentProcedure; use pezframe_support::{dispatch::GetDispatchInfo, PalletError}; use pezsp_runtime::{ codec::{Decode, Encode}, diff --git a/pezbridges/pezsnowbridge/primitives/ethereum/Cargo.toml b/pezbridges/pezsnowbridge/primitives/ethereum/Cargo.toml index 47ea8756..900f8634 100644 --- a/pezbridges/pezsnowbridge/primitives/ethereum/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/ethereum/Cargo.toml @@ -43,7 +43,7 @@ ethabi = { workspace = true } [features] -default = ["std"] +default = [ "std" ] expensive_tests = [] std = [ "alloy-consensus/std", diff --git a/pezbridges/pezsnowbridge/primitives/inbound-queue/Cargo.toml b/pezbridges/pezsnowbridge/primitives/inbound-queue/Cargo.toml index 773615a5..ba3870bb 100644 --- a/pezbridges/pezsnowbridge/primitives/inbound-queue/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/inbound-queue/Cargo.toml @@ -45,11 +45,11 @@ hex-literal = { workspace = true, default-features = true } pezsnowbridge-test-utils = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-core/std", - "pez-assets-common/std", "codec/std", + "pez-assets-common/std", "pezframe-support/std", "pezframe-system/std", "pezsnowbridge-beacon-primitives/std", @@ -83,4 +83,5 @@ try-runtime = [ "pezframe-support/try-runtime", "pezframe-system/try-runtime", "pezsp-runtime/try-runtime", + "pez-assets-common/try-runtime" ] diff --git a/pezbridges/pezsnowbridge/primitives/merkle-tree/Cargo.toml b/pezbridges/pezsnowbridge/primitives/merkle-tree/Cargo.toml index 4ee29fe4..b9e8c392 100644 --- a/pezbridges/pezsnowbridge/primitives/merkle-tree/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/merkle-tree/Cargo.toml @@ -30,6 +30,6 @@ pezsp-crypto-hashing = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-core/std", "pezsp-runtime/std", "scale-info/std"] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-core/std", "pezsp-runtime/std", "scale-info/std" ] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/pezbridges/pezsnowbridge/primitives/outbound-queue/Cargo.toml b/pezbridges/pezsnowbridge/primitives/outbound-queue/Cargo.toml index 71f961b7..f0620676 100644 --- a/pezbridges/pezsnowbridge/primitives/outbound-queue/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/outbound-queue/Cargo.toml @@ -42,7 +42,7 @@ pezsnowbridge-core = { workspace = true } pezsnowbridge-verification-primitives = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "alloy-core/std", "codec/std", diff --git a/pezbridges/pezsnowbridge/primitives/verification/Cargo.toml b/pezbridges/pezsnowbridge/primitives/verification/Cargo.toml index 648625a8..0e956e51 100644 --- a/pezbridges/pezsnowbridge/primitives/verification/Cargo.toml +++ b/pezbridges/pezsnowbridge/primitives/verification/Cargo.toml @@ -25,7 +25,7 @@ pezsp-std = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezbridges/pezsnowbridge/runtime/runtime-common/Cargo.toml b/pezbridges/pezsnowbridge/runtime/runtime-common/Cargo.toml index 1ed8cd89..35b67dce 100644 --- a/pezbridges/pezsnowbridge/runtime/runtime-common/Cargo.toml +++ b/pezbridges/pezsnowbridge/runtime/runtime-common/Cargo.toml @@ -31,7 +31,7 @@ xcm-executor = { workspace = true } [dev-dependencies] [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezbridges/pezsnowbridge/runtime/test-common/Cargo.toml b/pezbridges/pezsnowbridge/runtime/test-common/Cargo.toml index 9b0a3919..471e1472 100644 --- a/pezbridges/pezsnowbridge/runtime/test-common/Cargo.toml +++ b/pezbridges/pezsnowbridge/runtime/test-common/Cargo.toml @@ -51,7 +51,7 @@ pezsnowbridge-pezpallet-outbound-queue = { workspace = true } pezsnowbridge-pezpallet-system = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-pezpallet-teyrchain-system/std", diff --git a/pezbridges/pezsnowbridge/test-utils/src/mock_rewards.rs b/pezbridges/pezsnowbridge/test-utils/src/mock_rewards.rs index 81950669..93ac4d10 100644 --- a/pezbridges/pezsnowbridge/test-utils/src/mock_rewards.rs +++ b/pezbridges/pezsnowbridge/test-utils/src/mock_rewards.rs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2023 Snowfork -use pezbp_relayers::{PaymentProcedure, RewardLedger, RewardsAccountOwner, RewardsAccountParams}; use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +use pezbp_relayers::{PaymentProcedure, RewardLedger, RewardsAccountOwner, RewardsAccountParams}; use pezframe_support::{parameter_types, pezpallet_prelude::DispatchResult, pezsp_runtime}; use scale_info::TypeInfo; use xcm::opaque::latest::Location; diff --git a/pezbridges/primitives/beefy/Cargo.toml b/pezbridges/primitives/beefy/Cargo.toml index d59a140e..7eb490b5 100644 --- a/pezbridges/primitives/beefy/Cargo.toml +++ b/pezbridges/primitives/beefy/Cargo.toml @@ -31,10 +31,10 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pez-binary-merkle-tree/std", "codec/std", + "pez-binary-merkle-tree/std", "pezbp-runtime/std", "pezframe-support/std", "pezpallet-beefy-mmr/std", diff --git a/pezbridges/primitives/header-chain/Cargo.toml b/pezbridges/primitives/header-chain/Cargo.toml index 4df39572..8486e56d 100644 --- a/pezbridges/primitives/header-chain/Cargo.toml +++ b/pezbridges/primitives/header-chain/Cargo.toml @@ -34,7 +34,7 @@ hex = { workspace = true, default-features = true } hex-literal = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "finality-grandpa/std", diff --git a/pezbridges/primitives/header-chain/tests/implementation_match.rs b/pezbridges/primitives/header-chain/tests/implementation_match.rs index e512e5e0..68a9c775 100644 --- a/pezbridges/primitives/header-chain/tests/implementation_match.rs +++ b/pezbridges/primitives/header-chain/tests/implementation_match.rs @@ -21,6 +21,7 @@ //! Some of tests in this module may partially duplicate tests from `justification.rs`, //! but their purpose is different. +use finality_grandpa::voter_set::VoterSet; use pezbp_header_pez_chain::justification::{ verify_justification, GrandpaJustification, JustificationVerificationContext, JustificationVerificationError, PrecommitError, @@ -29,7 +30,6 @@ use pezbp_test_utils::{ header_id, make_justification_for_header, signed_precommit, test_header, Account, JustificationGeneratorParams, ALICE, BOB, CHARLIE, DAVE, EVE, FERDIE, TEST_GRANDPA_SET_ID, }; -use finality_grandpa::voter_set::VoterSet; use pezsp_consensus_grandpa::{AuthorityId, AuthorityWeight, SetId}; use pezsp_runtime::traits::Header as HeaderT; diff --git a/pezbridges/primitives/header-chain/tests/justification/equivocation.rs b/pezbridges/primitives/header-chain/tests/justification/equivocation.rs index 2154d7ab..664d869e 100644 --- a/pezbridges/primitives/header-chain/tests/justification/equivocation.rs +++ b/pezbridges/primitives/header-chain/tests/justification/equivocation.rs @@ -16,9 +16,9 @@ //! Tests for Grandpa equivocations collector code. +use finality_grandpa::Precommit; use pezbp_header_pez_chain::justification::EquivocationsCollector; use pezbp_test_utils::*; -use finality_grandpa::Precommit; use pezsp_consensus_grandpa::EquivocationProof; type TestHeader = pezsp_runtime::testing::Header; diff --git a/pezbridges/primitives/header-chain/tests/justification/optimizer.rs b/pezbridges/primitives/header-chain/tests/justification/optimizer.rs index 201d3c91..cfb7268c 100644 --- a/pezbridges/primitives/header-chain/tests/justification/optimizer.rs +++ b/pezbridges/primitives/header-chain/tests/justification/optimizer.rs @@ -16,9 +16,9 @@ //! Tests for Grandpa Justification optimizer code. +use finality_grandpa::SignedPrecommit; use pezbp_header_pez_chain::justification::verify_and_optimize_justification; use pezbp_test_utils::*; -use finality_grandpa::SignedPrecommit; use pezsp_consensus_grandpa::AuthoritySignature; type TestHeader = pezsp_runtime::testing::Header; diff --git a/pezbridges/primitives/messages/Cargo.toml b/pezbridges/primitives/messages/Cargo.toml index 9ea91ca7..f38b6332 100644 --- a/pezbridges/primitives/messages/Cargo.toml +++ b/pezbridges/primitives/messages/Cargo.toml @@ -32,10 +32,10 @@ hex = { workspace = true, default-features = true } hex-literal = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-header-pez-chain/std", "codec/std", + "pezbp-header-pez-chain/std", "pezbp-runtime/std", "pezframe-support/std", "pezsp-core/std", diff --git a/pezbridges/primitives/messages/src/lib.rs b/pezbridges/primitives/messages/src/lib.rs index 66bf6a44..12a8aac1 100644 --- a/pezbridges/primitives/messages/src/lib.rs +++ b/pezbridges/primitives/messages/src/lib.rs @@ -19,8 +19,8 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] -use pezbp_header_pez_chain::HeaderChainError; use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +use pezbp_header_pez_chain::HeaderChainError; use pezbp_runtime::{ messages::MessageDispatchResult, BasicOperatingMode, Chain, OperatingMode, RangeInclusiveExt, StorageProofError, UnderlyingChainOf, UnderlyingChainProvider, diff --git a/pezbridges/primitives/pezkuwi-core/Cargo.toml b/pezbridges/primitives/pezkuwi-core/Cargo.toml index a0fe175b..f335cafa 100644 --- a/pezbridges/primitives/pezkuwi-core/Cargo.toml +++ b/pezbridges/primitives/pezkuwi-core/Cargo.toml @@ -34,10 +34,10 @@ pezsp-std = { workspace = true } hex = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-messages/std", "codec/std", + "pezbp-messages/std", "pezbp-runtime/std", "pezframe-support/std", "pezframe-system/std", diff --git a/pezbridges/primitives/relayers/Cargo.toml b/pezbridges/primitives/relayers/Cargo.toml index fc7256a9..690356e0 100644 --- a/pezbridges/primitives/relayers/Cargo.toml +++ b/pezbridges/primitives/relayers/Cargo.toml @@ -33,13 +33,13 @@ pezsp-std = { workspace = true } hex-literal = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", - "pezbp-teyrchains/std", - "codec/std", "pezbp-runtime/std", + "pezbp-teyrchains/std", "pezframe-support/std", "pezframe-system/std", "pezpallet-utility/std", @@ -50,8 +50,8 @@ std = [ runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-teyrchains/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-teyrchains/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", "pezpallet-utility/runtime-benchmarks", diff --git a/pezbridges/primitives/relayers/src/extension.rs b/pezbridges/primitives/relayers/src/extension.rs index 49bdea9e..b2de644b 100644 --- a/pezbridges/primitives/relayers/src/extension.rs +++ b/pezbridges/primitives/relayers/src/extension.rs @@ -17,11 +17,11 @@ //! All runtime calls, supported by `pezpallet-bridge-relayers` when it acts as a signed //! extension. +use codec::{Decode, Encode}; use pezbp_header_pez_chain::SubmitFinalityProofInfo; use pezbp_messages::MessagesCallInfo; -use pezbp_teyrchains::SubmitTeyrchainHeadsInfo; -use codec::{Decode, Encode}; use pezbp_runtime::StaticStrProvider; +use pezbp_teyrchains::SubmitTeyrchainHeadsInfo; use pezframe_support::{ dispatch::CallableCallFor, traits::IsSubType, weights::Weight, RuntimeDebugNoBound, }; diff --git a/pezbridges/primitives/runtime/Cargo.toml b/pezbridges/primitives/runtime/Cargo.toml index d8640187..c341047c 100644 --- a/pezbridges/primitives/runtime/Cargo.toml +++ b/pezbridges/primitives/runtime/Cargo.toml @@ -36,7 +36,7 @@ trie-db = { workspace = true } hex-literal = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "hash-db/std", diff --git a/pezbridges/primitives/test-utils/Cargo.toml b/pezbridges/primitives/test-utils/Cargo.toml index 083439fd..b8bde552 100644 --- a/pezbridges/primitives/test-utils/Cargo.toml +++ b/pezbridges/primitives/test-utils/Cargo.toml @@ -28,15 +28,15 @@ pezsp-std = { workspace = true } pezsp-trie = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-header-pez-chain/std", - "pezbp-pezkuwi-core/std", - "pezbp-teyrchains/std", "codec/std", "ed25519-dalek/std", "finality-grandpa/std", + "pezbp-header-pez-chain/std", + "pezbp-pezkuwi-core/std", "pezbp-runtime/std", + "pezbp-teyrchains/std", "pezsp-application-crypto/std", "pezsp-consensus-grandpa/std", "pezsp-core/std", @@ -47,8 +47,8 @@ std = [ runtime-benchmarks = [ "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", - "pezbp-teyrchains/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-teyrchains/runtime-benchmarks", "pezsp-consensus-grandpa/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", "pezsp-trie/runtime-benchmarks", diff --git a/pezbridges/primitives/test-utils/src/keyring.rs b/pezbridges/primitives/test-utils/src/keyring.rs index cf44d0ec..6c0fa403 100644 --- a/pezbridges/primitives/test-utils/src/keyring.rs +++ b/pezbridges/primitives/test-utils/src/keyring.rs @@ -16,10 +16,10 @@ //! Utilities for working with test accounts. -use pezbp_header_pez_chain::{justification::JustificationVerificationContext, AuthoritySet}; use codec::Encode; use ed25519_dalek::{Signature, SigningKey, VerifyingKey}; use finality_grandpa::voter_set::VoterSet; +use pezbp_header_pez_chain::{justification::JustificationVerificationContext, AuthoritySet}; use pezsp_consensus_grandpa::{AuthorityId, AuthorityList, AuthorityWeight, SetId}; use pezsp_runtime::RuntimeDebug; use pezsp_std::prelude::*; diff --git a/pezbridges/primitives/test-utils/src/lib.rs b/pezbridges/primitives/test-utils/src/lib.rs index 9cadadbc..037c2cae 100644 --- a/pezbridges/primitives/test-utils/src/lib.rs +++ b/pezbridges/primitives/test-utils/src/lib.rs @@ -19,11 +19,13 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] -use pezbp_header_pez_chain::justification::{required_justification_precommits, GrandpaJustification}; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; -use pezbp_teyrchains::teyrchain_head_storage_key_at_source; use codec::Encode; +use pezbp_header_pez_chain::justification::{ + required_justification_precommits, GrandpaJustification, +}; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; use pezbp_runtime::record_all_trie_keys; +use pezbp_teyrchains::teyrchain_head_storage_key_at_source; use pezsp_consensus_grandpa::{AuthorityId, AuthoritySignature, AuthorityWeight, SetId}; use pezsp_runtime::traits::{Header as HeaderT, One, Zero}; use pezsp_std::prelude::*; diff --git a/pezbridges/primitives/teyrchains/Cargo.toml b/pezbridges/primitives/teyrchains/Cargo.toml index 30105dff..3a5f3b68 100644 --- a/pezbridges/primitives/teyrchains/Cargo.toml +++ b/pezbridges/primitives/teyrchains/Cargo.toml @@ -29,11 +29,11 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-header-pez-chain/std", "pezbp-pezkuwi-core/std", - "codec/std", "pezbp-runtime/std", "pezframe-support/std", "pezsp-core/std", diff --git a/pezbridges/primitives/teyrchains/src/call_info.rs b/pezbridges/primitives/teyrchains/src/call_info.rs index 4589b74f..10531b8e 100644 --- a/pezbridges/primitives/teyrchains/src/call_info.rs +++ b/pezbridges/primitives/teyrchains/src/call_info.rs @@ -18,8 +18,8 @@ use crate::{ParaHash, ParaId, RelayBlockHash, RelayBlockNumber}; -use pezbp_pezkuwi_core::teyrchains::ParaHeadsProof; use codec::{Decode, Encode}; +use pezbp_pezkuwi_core::teyrchains::ParaHeadsProof; use pezbp_runtime::HeaderId; use pezsp_runtime::RuntimeDebug; use pezsp_std::vec::Vec; diff --git a/pezbridges/primitives/teyrchains/src/lib.rs b/pezbridges/primitives/teyrchains/src/lib.rs index 5e5258f4..6a1236ab 100644 --- a/pezbridges/primitives/teyrchains/src/lib.rs +++ b/pezbridges/primitives/teyrchains/src/lib.rs @@ -19,11 +19,11 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] -pub use pezbp_header_pez_chain::StoredHeaderData; pub use call_info::{BridgeTeyrchainCall, SubmitTeyrchainHeadsInfo}; +pub use pezbp_header_pez_chain::StoredHeaderData; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaId}; use codec::{Decode, Encode, MaxEncodedLen}; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaId}; use pezbp_runtime::{ BlockNumberOf, Chain, HashOf, HeaderOf, StorageDoubleMapKeyProvider, StorageMapKeyProvider, Teyrchain, diff --git a/pezbridges/primitives/xcm-bridge-hub-router/Cargo.toml b/pezbridges/primitives/xcm-bridge-hub-router/Cargo.toml index 0e7a072a..ed8c7b43 100644 --- a/pezbridges/primitives/xcm-bridge-hub-router/Cargo.toml +++ b/pezbridges/primitives/xcm-bridge-hub-router/Cargo.toml @@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezsp-core/std", diff --git a/pezbridges/primitives/xcm-bridge-hub/Cargo.toml b/pezbridges/primitives/xcm-bridge-hub/Cargo.toml index f7f657c4..33edc704 100644 --- a/pezbridges/primitives/xcm-bridge-hub/Cargo.toml +++ b/pezbridges/primitives/xcm-bridge-hub/Cargo.toml @@ -31,10 +31,10 @@ pezsp-std = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pezbp-messages/std", "codec/std", + "pezbp-messages/std", "pezbp-runtime/std", "pezframe-support/std", "pezsp-core/std", diff --git a/pezbridges/primitives/xcm-bridge-hub/src/call_info.rs b/pezbridges/primitives/xcm-bridge-hub/src/call_info.rs index 99bd98db..fa6b5256 100644 --- a/pezbridges/primitives/xcm-bridge-hub/src/call_info.rs +++ b/pezbridges/primitives/xcm-bridge-hub/src/call_info.rs @@ -16,8 +16,8 @@ //! Defines structures related to calls of the `pezpallet-xcm-bridge-hub` pezpallet. -use pezbp_messages::MessageNonce; use codec::{Decode, Encode}; +use pezbp_messages::MessageNonce; use pezsp_std::boxed::Box; use scale_info::TypeInfo; use xcm::prelude::VersionedInteriorLocation; diff --git a/pezbridges/primitives/xcm-bridge-hub/src/lib.rs b/pezbridges/primitives/xcm-bridge-hub/src/lib.rs index 6dd21776..89f8ca9f 100644 --- a/pezbridges/primitives/xcm-bridge-hub/src/lib.rs +++ b/pezbridges/primitives/xcm-bridge-hub/src/lib.rs @@ -19,9 +19,9 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] -use pezbp_messages::LaneIdType; pub use call_info::XcmBridgeHubCall; use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +use pezbp_messages::LaneIdType; use pezbp_runtime::{AccountIdOf, BalanceOf, Chain}; use pezframe_support::{ ensure, pezsp_runtime::RuntimeDebug, CloneNoBound, PalletError, PartialEqNoBound, diff --git a/pezbridges/relays/client-bizinikiwi/Cargo.toml b/pezbridges/relays/client-bizinikiwi/Cargo.toml index 8d73b795..83521bba 100644 --- a/pezbridges/relays/client-bizinikiwi/Cargo.toml +++ b/pezbridges/relays/client-bizinikiwi/Cargo.toml @@ -63,10 +63,10 @@ xcm = { workspace = true, default-features = true } default = [] test-helpers = [] runtime-benchmarks = [ + "pez-finality-relay/runtime-benchmarks", "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", - "pez-finality-relay/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks", diff --git a/pezbridges/relays/client-bizinikiwi/src/chain.rs b/pezbridges/relays/client-bizinikiwi/src/chain.rs index 9cde6e7a..e013f532 100644 --- a/pezbridges/relays/client-bizinikiwi/src/chain.rs +++ b/pezbridges/relays/client-bizinikiwi/src/chain.rs @@ -17,11 +17,11 @@ use crate::calls::UtilityCall; use crate::SimpleRuntimeVersion; -use pezbp_header_pez_chain::ChainWithGrandpa as ChainWithGrandpaBase; -use pezbp_messages::ChainWithMessages as ChainWithMessagesBase; use codec::{Codec, Decode, Encode, MaxEncodedLen}; use jsonrpsee::core::{DeserializeOwned, Serialize}; use num_traits::Zero; +use pezbp_header_pez_chain::ChainWithGrandpa as ChainWithGrandpaBase; +use pezbp_messages::ChainWithMessages as ChainWithMessagesBase; use pezbp_runtime::{ Chain as ChainBase, EncodedOrDecodedCall, HashOf, Teyrchain as TeyrchainBase, TransactionEra, TransactionEraOf, UnderlyingChainProvider, diff --git a/pezbridges/relays/client-bizinikiwi/src/error.rs b/pezbridges/relays/client-bizinikiwi/src/error.rs index 82ce823f..49f2bf09 100644 --- a/pezbridges/relays/client-bizinikiwi/src/error.rs +++ b/pezbridges/relays/client-bizinikiwi/src/error.rs @@ -17,9 +17,9 @@ //! Bizinikiwi node RPC errors. use crate::{BlockNumberOf, Chain, HashOf, SimpleRuntimeVersion}; +use jsonrpsee::core::ClientError as RpcError; use pezbp_header_pez_chain::SubmitFinalityProofCallExtras; use pezbp_pezkuwi_core::teyrchains::ParaId; -use jsonrpsee::core::ClientError as RpcError; use pezsc_rpc_api::system::Health; use pezsp_core::{storage::StorageKey, Bytes}; use pezsp_runtime::transaction_validity::TransactionValidityError; diff --git a/pezbridges/relays/client-bizinikiwi/src/sync_header.rs b/pezbridges/relays/client-bizinikiwi/src/sync_header.rs index eeb1d840..69bd8b37 100644 --- a/pezbridges/relays/client-bizinikiwi/src/sync_header.rs +++ b/pezbridges/relays/client-bizinikiwi/src/sync_header.rs @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . -use pezbp_header_pez_chain::ConsensusLogReader; use pez_finality_relay::SourceHeader as FinalitySourceHeader; +use pezbp_header_pez_chain::ConsensusLogReader; use pezsp_runtime::traits::Header as HeaderT; /// Generic wrapper for `pezsp_runtime::traits::Header` based headers, that diff --git a/pezbridges/relays/client-bizinikiwi/src/test_chain.rs b/pezbridges/relays/client-bizinikiwi/src/test_chain.rs index 180038cb..887eaf02 100644 --- a/pezbridges/relays/client-bizinikiwi/src/test_chain.rs +++ b/pezbridges/relays/client-bizinikiwi/src/test_chain.rs @@ -25,8 +25,8 @@ use crate::{ Chain, ChainWithBalances, ChainWithMessages, ChainWithRewards, ChainWithTransactions, Error as BizinikiwiError, SignParam, UnsignedTransaction, }; -use pezbp_messages::{ChainWithMessages as ChainWithMessagesBase, MessageNonce}; use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +use pezbp_messages::{ChainWithMessages as ChainWithMessagesBase, MessageNonce}; use pezbp_runtime::ChainId; use pezframe_support::{pezsp_runtime::StateVersion, weights::Weight}; use scale_info::TypeInfo; diff --git a/pezbridges/relays/equivocation/Cargo.toml b/pezbridges/relays/equivocation/Cargo.toml index 339198e6..65aa5484 100644 --- a/pezbridges/relays/equivocation/Cargo.toml +++ b/pezbridges/relays/equivocation/Cargo.toml @@ -25,7 +25,7 @@ tracing = { workspace = true } [features] runtime-benchmarks = [ - "pezbp-header-pez-chain/runtime-benchmarks", "pez-finality-relay/runtime-benchmarks", + "pezbp-header-pez-chain/runtime-benchmarks", "relay-utils/runtime-benchmarks", ] diff --git a/pezbridges/relays/equivocation/src/block_checker.rs b/pezbridges/relays/equivocation/src/block_checker.rs index d0dba13f..0b2e624a 100644 --- a/pezbridges/relays/equivocation/src/block_checker.rs +++ b/pezbridges/relays/equivocation/src/block_checker.rs @@ -19,10 +19,10 @@ use crate::{ EquivocationReportingContext, HeaderFinalityInfo, SourceClient, TargetClient, }; -use pezbp_header_pez_chain::{FinalityProof, FindEquivocations as FindEquivocationsT}; use futures::future::{BoxFuture, FutureExt}; use num_traits::Saturating; use pez_finality_relay::FinalityProofsBuf; +use pezbp_header_pez_chain::{FinalityProof, FindEquivocations as FindEquivocationsT}; /// First step in the block checking state machine. /// diff --git a/pezbridges/relays/equivocation/src/lib.rs b/pezbridges/relays/equivocation/src/lib.rs index 2476b77a..c1b6d051 100644 --- a/pezbridges/relays/equivocation/src/lib.rs +++ b/pezbridges/relays/equivocation/src/lib.rs @@ -20,8 +20,8 @@ mod mock; mod reporter; use async_trait::async_trait; -use pezbp_header_pez_chain::{FinalityProof, FindEquivocations}; use pez_finality_relay::{FinalityPipeline, SourceClientBase}; +use pezbp_header_pez_chain::{FinalityProof, FindEquivocations}; use relay_utils::{relay_loop::Client as RelayClient, MaybeConnectionError, TransactionTracker}; use std::{fmt::Debug, time::Duration}; diff --git a/pezbridges/relays/equivocation/src/mock.rs b/pezbridges/relays/equivocation/src/mock.rs index 629903d9..456a5337 100644 --- a/pezbridges/relays/equivocation/src/mock.rs +++ b/pezbridges/relays/equivocation/src/mock.rs @@ -18,9 +18,9 @@ use crate::{EquivocationDetectionPipeline, HeaderFinalityInfo, SourceClient, TargetClient}; use async_trait::async_trait; -use pezbp_header_pez_chain::{FinalityProof, FindEquivocations}; use futures::{Stream, StreamExt}; use pez_finality_relay::{FinalityPipeline, SourceClientBase}; +use pezbp_header_pez_chain::{FinalityProof, FindEquivocations}; use relay_utils::{ relay_loop::Client as RelayClient, HeaderId, MaybeConnectionError, TrackedTransactionStatus, TransactionTracker, diff --git a/pezbridges/relays/finality/src/base.rs b/pezbridges/relays/finality/src/base.rs index 9946326d..0636b219 100644 --- a/pezbridges/relays/finality/src/base.rs +++ b/pezbridges/relays/finality/src/base.rs @@ -15,8 +15,8 @@ // along with Parity Bridges Common. If not, see . use async_trait::async_trait; -use pezbp_header_pez_chain::FinalityProof; use futures::Stream; +use pezbp_header_pez_chain::FinalityProof; use relay_utils::relay_loop::Client as RelayClient; use std::fmt::Debug; diff --git a/pezbridges/relays/finality/src/finality_proofs.rs b/pezbridges/relays/finality/src/finality_proofs.rs index 59a80786..8f14bd0f 100644 --- a/pezbridges/relays/finality/src/finality_proofs.rs +++ b/pezbridges/relays/finality/src/finality_proofs.rs @@ -16,8 +16,8 @@ use crate::{base::SourceClientBase, FinalityPipeline}; -use pezbp_header_pez_chain::FinalityProof; use futures::{FutureExt, Stream, StreamExt}; +use pezbp_header_pez_chain::FinalityProof; use std::pin::Pin; /// Source finality proofs stream that may be restarted. diff --git a/pezbridges/relays/finality/src/headers.rs b/pezbridges/relays/finality/src/headers.rs index 6a3e239e..0889f8b9 100644 --- a/pezbridges/relays/finality/src/headers.rs +++ b/pezbridges/relays/finality/src/headers.rs @@ -19,8 +19,8 @@ use crate::{ HeadersToRelay, SourceClient, SourceHeader, TargetClient, }; -use pezbp_header_pez_chain::FinalityProof; use num_traits::Saturating; +use pezbp_header_pez_chain::FinalityProof; use std::cmp::Ordering; /// Unjustified headers container. Ordered by header number. diff --git a/pezbridges/relays/finality/src/mock.rs b/pezbridges/relays/finality/src/mock.rs index 59a46e60..44b608c9 100644 --- a/pezbridges/relays/finality/src/mock.rs +++ b/pezbridges/relays/finality/src/mock.rs @@ -25,9 +25,9 @@ use crate::{ }; use async_trait::async_trait; -use pezbp_header_pez_chain::{FinalityProof, GrandpaConsensusLogReader}; use futures::{Stream, StreamExt}; use parking_lot::Mutex; +use pezbp_header_pez_chain::{FinalityProof, GrandpaConsensusLogReader}; use relay_utils::{ relay_loop::Client as RelayClient, HeaderId, MaybeConnectionError, TrackedTransactionStatus, TransactionTracker, diff --git a/pezbridges/relays/lib-bizinikiwi-relay/Cargo.toml b/pezbridges/relays/lib-bizinikiwi-relay/Cargo.toml index ce13f23b..0915b996 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/Cargo.toml +++ b/pezbridges/relays/lib-bizinikiwi-relay/Cargo.toml @@ -63,15 +63,15 @@ scale-info = { features = ["derive"], workspace = true } [features] runtime-benchmarks = [ + "pez-equivocation-detector/runtime-benchmarks", + "pez-finality-relay/runtime-benchmarks", + "pez-messages-relay/runtime-benchmarks", "pezbp-header-pez-chain/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", - "pezbp-teyrchains/runtime-benchmarks", - "pez-equivocation-detector/runtime-benchmarks", - "pez-finality-relay/runtime-benchmarks", - "pez-messages-relay/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-teyrchains/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/cli/relay_teyrchains.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/cli/relay_teyrchains.rs index 64ecd9f4..5b0d4301 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/cli/relay_teyrchains.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/cli/relay_teyrchains.rs @@ -18,8 +18,8 @@ use async_std::sync::Mutex; use async_trait::async_trait; -use pezbp_pezkuwi_core::BlockNumber as RelayBlockNumber; use clap::Parser; +use pezbp_pezkuwi_core::BlockNumber as RelayBlockNumber; use pezbp_runtime::HeaderIdProvider; use relay_bizinikiwi_client::{Client, Teyrchain}; use relay_utils::metrics::{GlobalMetrics, StandaloneMetric}; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/equivocation/target.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/equivocation/target.rs index f36aca62..b374e541 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/equivocation/target.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/equivocation/target.rs @@ -25,8 +25,8 @@ use crate::{ }; use async_trait::async_trait; -use pezbp_header_pez_chain::HeaderFinalityInfo; use pez_equivocation_detector::TargetClient; +use pezbp_header_pez_chain::HeaderFinalityInfo; use pezbp_runtime::{BlockNumberOf, HashOf}; use pezsp_runtime::traits::Header; use relay_bizinikiwi_client::{Client, Error}; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/finality/mod.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/finality/mod.rs index e881e3f8..b1c740a6 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/finality/mod.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/finality/mod.rs @@ -24,10 +24,12 @@ use crate::{ }; use async_trait::async_trait; -use pezbp_header_pez_chain::justification::{GrandpaJustification, JustificationVerificationContext}; use pez_finality_relay::{ FinalityPipeline, FinalitySyncPipeline, HeadersToRelay, SourceClient, TargetClient, }; +use pezbp_header_pez_chain::justification::{ + GrandpaJustification, JustificationVerificationContext, +}; use pezpallet_bridge_grandpa::{Call as BridgeGrandpaCall, Config as BridgeGrandpaConfig}; use pezsp_core::Pair; use relay_bizinikiwi_client::{ diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/finality/source.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/finality/source.rs index b5a31722..4b5699e7 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/finality/source.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/finality/source.rs @@ -25,7 +25,6 @@ use crate::{ use async_std::sync::{Arc, Mutex}; use async_trait::async_trait; -use pezbp_header_pez_chain::FinalityProof; use codec::Decode; use futures::{ select, @@ -33,6 +32,7 @@ use futures::{ }; use num_traits::One; use pez_finality_relay::{SourceClient, SourceClientBase}; +use pezbp_header_pez_chain::FinalityProof; use relay_bizinikiwi_client::{BlockNumberOf, BlockWithJustification, Client, Error, HeaderOf}; use relay_utils::{relay_loop::Client as RelayClient, UniqueSaturatedInto}; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/finality_base/engine.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/finality_base/engine.rs index a4fdd204..2cb659d9 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/finality_base/engine.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/finality_base/engine.rs @@ -18,6 +18,9 @@ use crate::error::Error; use async_trait::async_trait; +use codec::{Decode, Encode}; +use futures::stream::StreamExt; +use num_traits::{One, Zero}; use pezbp_header_pez_chain::{ justification::{ verify_and_optimize_justification, GrandpaEquivocationsFinder, GrandpaJustification, @@ -26,9 +29,6 @@ use pezbp_header_pez_chain::{ AuthoritySet, ConsensusLogReader, FinalityProof, FindEquivocations, GrandpaConsensusLogReader, HeaderFinalityInfo, HeaderGrandpaInfo, StoredHeaderGrandpaInfo, SubmitFinalityProofCallExtras, }; -use codec::{Decode, Encode}; -use futures::stream::StreamExt; -use num_traits::{One, Zero}; use pezbp_runtime::{BasicOperatingMode, HeaderIdProvider, OperatingMode}; use pezsp_consensus_grandpa::{AuthorityList as GrandpaAuthoritiesSet, GRANDPA_ENGINE_ID}; use pezsp_core::{storage::StorageKey, Bytes}; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/metrics.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/metrics.rs index 644f5338..16b30b07 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/metrics.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/metrics.rs @@ -18,9 +18,9 @@ use crate::TaggedAccount; -use pezbp_relayers::{RewardsAccountOwner, RewardsAccountParams}; use codec::{Decode, EncodeLike}; use pez_messages_relay::Labeled; +use pezbp_relayers::{RewardsAccountOwner, RewardsAccountParams}; use pezframe_system::AccountInfo; use pezpallet_balances::AccountData; use pezsp_core::storage::StorageData; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/mod.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/mod.rs index 055962a5..3728ea9b 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/mod.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/mod.rs @@ -26,11 +26,11 @@ use crate::{ }; use async_std::sync::Arc; +use codec::{Codec, Encode, EncodeLike}; +use pez_messages_relay::{message_lane::MessageLane, message_lane_loop::BatchTransaction, Labeled}; use pezbp_messages::{ target_chain::FromBridgedChainMessagesProof, ChainWithMessages as _, MessageNonce, }; -use codec::{Codec, Encode, EncodeLike}; -use pez_messages_relay::{message_lane::MessageLane, message_lane_loop::BatchTransaction, Labeled}; use pezbp_runtime::{ AccountIdOf, EncodedOrDecodedCall, HeaderIdOf, TransactionEra, WeightExtraOps, }; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/source.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/source.rs index 1b2f432b..8d246ca2 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/source.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/source.rs @@ -31,12 +31,6 @@ use crate::{ use async_std::sync::Arc; use async_trait::async_trait; -use pezbp_messages::{ - storage_keys::{operating_mode_key, outbound_lane_data_key}, - target_chain::FromBridgedChainMessagesProof, - ChainWithMessages as _, InboundMessageDetails, MessageNonce, MessagePayload, - MessagesOperatingMode, OutboundMessageDetails, -}; use codec::{Decode, Encode}; use num_traits::Zero; use pez_messages_relay::{ @@ -46,6 +40,12 @@ use pez_messages_relay::{ SourceClientState, }, }; +use pezbp_messages::{ + storage_keys::{operating_mode_key, outbound_lane_data_key}, + target_chain::FromBridgedChainMessagesProof, + ChainWithMessages as _, InboundMessageDetails, MessageNonce, MessagePayload, + MessagesOperatingMode, OutboundMessageDetails, +}; use pezbp_runtime::{BasicOperatingMode, HeaderIdProvider, RangeInclusiveExt}; use pezframe_support::weights::Weight; use pezsp_core::Pair; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/target.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/target.rs index bd986162..9cc31ace 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/messages/target.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/messages/target.rs @@ -34,15 +34,15 @@ use crate::{ use async_std::sync::Arc; use async_trait::async_trait; -use pezbp_messages::{ - source_chain::FromBridgedChainMessagesDeliveryProof, storage_keys::inbound_lane_data_key, - ChainWithMessages as _, LaneState, MessageNonce, UnrewardedRelayer, UnrewardedRelayersState, -}; use codec::Decode; use pez_messages_relay::{ message_lane::{MessageLane, SourceHeaderIdOf, TargetHeaderIdOf}, message_lane_loop::{NoncesSubmitArtifacts, TargetClient, TargetClientState}, }; +use pezbp_messages::{ + source_chain::FromBridgedChainMessagesDeliveryProof, storage_keys::inbound_lane_data_key, + ChainWithMessages as _, LaneState, MessageNonce, UnrewardedRelayer, UnrewardedRelayersState, +}; use pezsp_core::Pair; use relay_bizinikiwi_client::{ AccountIdOf, AccountKeyPairOf, BalanceOf, CallOf, Chain, Client, Error as BizinikiwiError, @@ -366,8 +366,8 @@ fn make_messages_delivery_call( #[cfg(test)] mod tests { use super::*; - use pezbp_messages::{DeliveredMessages, UnrewardedRelayer}; use codec::Encode; + use pezbp_messages::{DeliveredMessages, UnrewardedRelayer}; #[test] fn inbound_lane_data_wrapper_is_compatible() { diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/headers.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/headers.rs index d55f396a..e1a0f755 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/headers.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/headers.rs @@ -20,9 +20,9 @@ use crate::finality::SubmitFinalityProofCallBuilder; use async_std::sync::{Arc, Mutex}; use async_trait::async_trait; -use pezbp_header_pez_chain::ConsensusLogReader; use futures::{select, FutureExt}; use num_traits::{One, Saturating, Zero}; +use pezbp_header_pez_chain::ConsensusLogReader; use pezbp_runtime::HeaderIdProvider; use pezsp_runtime::traits::Header; diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/teyrchains.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/teyrchains.rs index 1288279f..59a2b47f 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/teyrchains.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/on_demand/teyrchains.rs @@ -31,11 +31,11 @@ use async_std::{ sync::{Arc, Mutex}, }; use async_trait::async_trait; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId}; -use pezbp_teyrchains::{RelayBlockHash, RelayBlockHasher, RelayBlockNumber}; use futures::{select, FutureExt}; use num_traits::Zero; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId}; use pezbp_runtime::HeaderIdProvider; +use pezbp_teyrchains::{RelayBlockHash, RelayBlockHasher, RelayBlockNumber}; use relay_bizinikiwi_client::{ is_ancient_block, AccountIdOf, AccountKeyPairOf, BlockNumberOf, CallOf, Chain, Client, Error as BizinikiwiError, HashOf, HeaderIdOf, TeyrchainBase, diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/source.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/source.rs index 1bcbb85f..2f22346e 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/source.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/source.rs @@ -22,10 +22,10 @@ use crate::{ }; use async_std::sync::{Arc, Mutex}; use async_trait::async_trait; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; -use pezbp_teyrchains::teyrchain_head_storage_key_at_source; use codec::Decode; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId}; use pezbp_runtime::HeaderIdProvider; +use pezbp_teyrchains::teyrchain_head_storage_key_at_source; use relay_bizinikiwi_client::{ is_ancient_block, Chain, Client, Error as BizinikiwiError, HeaderIdOf, HeaderOf, RelayChain, TeyrchainBase, diff --git a/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/target.rs b/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/target.rs index e66a9026..837943f1 100644 --- a/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/target.rs +++ b/pezbridges/relays/lib-bizinikiwi-relay/src/teyrchains/target.rs @@ -28,13 +28,13 @@ use pezbp_pezkuwi_core::{ teyrchains::{ParaHash, ParaHeadsProof, ParaId}, BlockNumber as RelayBlockNumber, }; -use pezbp_teyrchains::{ - ImportedParaHeadsKeyProvider, ParaInfo, ParaStoredHeaderData, ParasInfoKeyProvider, -}; use pezbp_runtime::{ Chain as ChainBase, HeaderId, HeaderIdProvider, StorageDoubleMapKeyProvider, StorageMapKeyProvider, }; +use pezbp_teyrchains::{ + ImportedParaHeadsKeyProvider, ParaInfo, ParaStoredHeaderData, ParasInfoKeyProvider, +}; use pezsp_core::Pair; use pezsp_runtime::traits::Header; use relay_bizinikiwi_client::{ diff --git a/pezbridges/relays/messages/Cargo.toml b/pezbridges/relays/messages/Cargo.toml index c4774d42..2291946e 100644 --- a/pezbridges/relays/messages/Cargo.toml +++ b/pezbridges/relays/messages/Cargo.toml @@ -34,7 +34,7 @@ pezsp-core = { workspace = true } [features] runtime-benchmarks = [ - "pezbp-messages/runtime-benchmarks", "pez-finality-relay/runtime-benchmarks", + "pezbp-messages/runtime-benchmarks", "relay-utils/runtime-benchmarks", ] diff --git a/pezbridges/relays/messages/src/message_lane_loop.rs b/pezbridges/relays/messages/src/message_lane_loop.rs index fe4f0025..e0c2cc3f 100644 --- a/pezbridges/relays/messages/src/message_lane_loop.rs +++ b/pezbridges/relays/messages/src/message_lane_loop.rs @@ -471,9 +471,9 @@ async fn run_until_connection_lost, TC: Targ pub(crate) mod tests { use std::sync::Arc; - use pezbp_messages::{HashedLaneId, LaneIdType, LegacyLaneId}; use futures::stream::StreamExt; use parking_lot::Mutex; + use pezbp_messages::{HashedLaneId, LaneIdType, LegacyLaneId}; use relay_utils::{HeaderId, MaybeConnectionError, TrackedTransactionStatus}; use super::*; diff --git a/pezbridges/relays/messages/src/message_race_loop.rs b/pezbridges/relays/messages/src/message_race_loop.rs index 6b3d7f53..54f7db12 100644 --- a/pezbridges/relays/messages/src/message_race_loop.rs +++ b/pezbridges/relays/messages/src/message_race_loop.rs @@ -23,11 +23,11 @@ use crate::message_lane_loop::{BatchTransaction, ClientState, NoncesSubmitArtifacts}; use async_trait::async_trait; -use pezbp_messages::MessageNonce; use futures::{ future::{FutureExt, TryFutureExt}, stream::{FusedStream, StreamExt}, }; +use pezbp_messages::MessageNonce; use relay_utils::{ process_future_result, retry_backoff, FailedClient, MaybeConnectionError, TrackedTransactionStatus, TransactionTracker, diff --git a/pezbridges/relays/messages/src/message_race_receiving.rs b/pezbridges/relays/messages/src/message_race_receiving.rs index ed98afcc..a8b82e5f 100644 --- a/pezbridges/relays/messages/src/message_race_receiving.rs +++ b/pezbridges/relays/messages/src/message_race_receiving.rs @@ -28,8 +28,8 @@ use crate::{ }; use async_trait::async_trait; -use pezbp_messages::MessageNonce; use futures::stream::FusedStream; +use pezbp_messages::MessageNonce; use relay_utils::{FailedClient, TrackedTransactionStatus, TransactionTracker}; use std::{marker::PhantomData, ops::RangeInclusive}; diff --git a/pezbridges/relays/messages/src/metrics.rs b/pezbridges/relays/messages/src/metrics.rs index 61fde051..ddc409bb 100644 --- a/pezbridges/relays/messages/src/metrics.rs +++ b/pezbridges/relays/messages/src/metrics.rs @@ -21,8 +21,8 @@ use crate::{ message_lane_loop::{SourceClientState, TargetClientState}, }; -use pezbp_messages::{HashedLaneId, LegacyLaneId, MessageNonce}; use pez_finality_relay::SyncLoopMetrics; +use pezbp_messages::{HashedLaneId, LegacyLaneId, MessageNonce}; use relay_utils::metrics::{ metric_name, register, GaugeVec, Metric, Opts, PrometheusError, Registry, U64, }; diff --git a/pezbridges/relays/teyrchains/src/teyrchains_loop.rs b/pezbridges/relays/teyrchains/src/teyrchains_loop.rs index 31d28a45..ba5c36d3 100644 --- a/pezbridges/relays/teyrchains/src/teyrchains_loop.rs +++ b/pezbridges/relays/teyrchains/src/teyrchains_loop.rs @@ -17,14 +17,14 @@ use crate::{teyrchains_loop_metrics::TeyrchainsLoopMetrics, TeyrchainsPipeline}; use async_trait::async_trait; -use pezbp_pezkuwi_core::{ - teyrchains::{ParaHash, ParaHeadsProof, ParaId}, - BlockNumber as RelayBlockNumber, -}; use futures::{ future::{FutureExt, Shared}, poll, select_biased, }; +use pezbp_pezkuwi_core::{ + teyrchains::{ParaHash, ParaHeadsProof, ParaId}, + BlockNumber as RelayBlockNumber, +}; use relay_bizinikiwi_client::{BlockNumberOf, Chain, HeaderIdOf, TeyrchainBase}; use relay_utils::{ metrics::MetricsParams, relay_loop::Client as RelayClient, FailedClient, diff --git a/pezcumulus/client/teyrchain-inherent/Cargo.toml b/pezcumulus/client/teyrchain-inherent/Cargo.toml index 68e50d10..4817b70b 100644 --- a/pezcumulus/client/teyrchain-inherent/Cargo.toml +++ b/pezcumulus/client/teyrchain-inherent/Cargo.toml @@ -32,7 +32,7 @@ pezcumulus-test-relay-sproof-builder = { optional = true, workspace = true, defa [features] default = [] -mock = ["pezcumulus-test-relay-sproof-builder"] +mock = [ "pezcumulus-test-relay-sproof-builder" ] runtime-benchmarks = [ "pezcumulus-primitives-core/runtime-benchmarks", "pezcumulus-primitives-teyrchain-inherent/runtime-benchmarks", diff --git a/pezcumulus/pezkuwi-omni-node/Cargo.toml b/pezcumulus/pezkuwi-omni-node/Cargo.toml index 28a29940..b8ecc42e 100644 --- a/pezcumulus/pezkuwi-omni-node/Cargo.toml +++ b/pezcumulus/pezkuwi-omni-node/Cargo.toml @@ -30,5 +30,5 @@ bizinikiwi-build-script-utils = { workspace = true, default-features = true } [features] default = [] -runtime-benchmarks = ["pezkuwi-omni-node-lib/runtime-benchmarks"] -try-runtime = ["pezkuwi-omni-node-lib/try-runtime"] +runtime-benchmarks = [ "pezkuwi-omni-node-lib/runtime-benchmarks" ] +try-runtime = [ "pezkuwi-omni-node-lib/try-runtime" ] diff --git a/pezcumulus/pezkuwi-omni-node/lib/Cargo.toml b/pezcumulus/pezkuwi-omni-node/lib/Cargo.toml index 86db8465..496f2809 100644 --- a/pezcumulus/pezkuwi-omni-node/lib/Cargo.toml +++ b/pezcumulus/pezkuwi-omni-node/lib/Cargo.toml @@ -117,8 +117,8 @@ wait-timeout = { workspace = true } [features] default = [] -pezkuwichain-native = ["pezkuwi-cli/pezkuwichain-native"] -zagros-native = ["pezkuwi-cli/zagros-native"] +pezkuwichain-native = [ "pezkuwi-cli/pezkuwichain-native" ] +zagros-native = [ "pezkuwi-cli/zagros-native" ] runtime-benchmarks = [ "bizinikiwi-frame-rpc-system/runtime-benchmarks", "bizinikiwi-state-trie-migration-rpc/runtime-benchmarks", diff --git a/pezcumulus/pezkuwi-teyrchain/Cargo.toml b/pezcumulus/pezkuwi-teyrchain/Cargo.toml index d9686cc8..a75c2663 100644 --- a/pezcumulus/pezkuwi-teyrchain/Cargo.toml +++ b/pezcumulus/pezkuwi-teyrchain/Cargo.toml @@ -68,11 +68,6 @@ bizinikiwi-build-script-utils = { workspace = true, default-features = true } [features] default = [] runtime-benchmarks = [ - "pezcumulus-primitives-core/runtime-benchmarks", - "pezkuwi-omni-node-lib/runtime-benchmarks", - "pezsc-service/runtime-benchmarks", - "teyrchains-common/runtime-benchmarks", - "asset-hub-pezkuwichain-runtime/runtime-benchmarks", "asset-hub-zagros-runtime/runtime-benchmarks", "collectives-zagros-runtime/runtime-benchmarks", @@ -85,17 +80,19 @@ runtime-benchmarks = [ "pezbridge-hub-pezkuwichain-runtime/runtime-benchmarks", "pezbridge-hub-zagros-runtime/runtime-benchmarks", "pezcumulus-client-consensus-aura/runtime-benchmarks", + "pezcumulus-primitives-core/runtime-benchmarks", + "pezkuwi-omni-node-lib/runtime-benchmarks", "pezkuwichain-teyrchain-runtime/runtime-benchmarks", "pezsc-chain-spec/runtime-benchmarks", "pezsc-cli/runtime-benchmarks", + "pezsc-service/runtime-benchmarks", "pezsp-genesis-builder/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", + "teyrchains-common/runtime-benchmarks", "xcm/runtime-benchmarks", "yet-another-teyrchain-runtime/runtime-benchmarks", ] try-runtime = [ - "pezkuwi-omni-node-lib/try-runtime", - "asset-hub-pezkuwichain-runtime/try-runtime", "asset-hub-zagros-runtime/try-runtime", "collectives-zagros-runtime/try-runtime", @@ -107,6 +104,7 @@ try-runtime = [ "pez-penpal-runtime/try-runtime", "pezbridge-hub-pezkuwichain-runtime/try-runtime", "pezbridge-hub-zagros-runtime/try-runtime", + "pezkuwi-omni-node-lib/try-runtime", "teyrchains-common/try-runtime", ] fast-runtime = [ diff --git a/pezcumulus/pezpallets/ah-ops/Cargo.toml b/pezcumulus/pezpallets/ah-ops/Cargo.toml index 476892a7..bdbc6d6b 100644 --- a/pezcumulus/pezpallets/ah-ops/Cargo.toml +++ b/pezcumulus/pezpallets/ah-ops/Cargo.toml @@ -29,7 +29,7 @@ pezsp-std = { workspace = true } scale-info = { workspace = true, features = ["derive"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/pezpallets/aura-ext/Cargo.toml b/pezcumulus/pezpallets/aura-ext/Cargo.toml index 5a843de5..07a75aa4 100644 --- a/pezcumulus/pezpallets/aura-ext/Cargo.toml +++ b/pezcumulus/pezpallets/aura-ext/Cargo.toml @@ -46,7 +46,7 @@ pezsp-trie = { workspace = true, default-features = true } pezsp-version = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-pezpallet-teyrchain-system/std", diff --git a/pezcumulus/pezpallets/collator-selection/Cargo.toml b/pezcumulus/pezpallets/collator-selection/Cargo.toml index b94d9e9f..0d16c3a3 100644 --- a/pezcumulus/pezpallets/collator-selection/Cargo.toml +++ b/pezcumulus/pezpallets/collator-selection/Cargo.toml @@ -41,7 +41,7 @@ pezsp-runtime = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezcumulus/pezpallets/dmp-queue/Cargo.toml b/pezcumulus/pezpallets/dmp-queue/Cargo.toml index c7968bfb..b94f2464 100644 --- a/pezcumulus/pezpallets/dmp-queue/Cargo.toml +++ b/pezcumulus/pezpallets/dmp-queue/Cargo.toml @@ -37,7 +37,7 @@ pezsp-core = { workspace = true, default-features = true } pezsp-tracing = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/pezpallets/session-benchmarking/Cargo.toml b/pezcumulus/pezpallets/session-benchmarking/Cargo.toml index 5da2f64f..b02bfb64 100644 --- a/pezcumulus/pezpallets/session-benchmarking/Cargo.toml +++ b/pezcumulus/pezpallets/session-benchmarking/Cargo.toml @@ -25,7 +25,7 @@ pezpallet-session = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezcumulus/pezpallets/solo-to-para/Cargo.toml b/pezcumulus/pezpallets/solo-to-para/Cargo.toml index 5591b389..e6154ef0 100644 --- a/pezcumulus/pezpallets/solo-to-para/Cargo.toml +++ b/pezcumulus/pezpallets/solo-to-para/Cargo.toml @@ -29,7 +29,7 @@ pezkuwi-primitives = { workspace = true } pezcumulus-pezpallet-teyrchain-system = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-pezpallet-teyrchain-system/std", diff --git a/pezcumulus/pezpallets/teyrchain-system/Cargo.toml b/pezcumulus/pezpallets/teyrchain-system/Cargo.toml index bdb7cd66..c19923d8 100644 --- a/pezcumulus/pezpallets/teyrchain-system/Cargo.toml +++ b/pezcumulus/pezpallets/teyrchain-system/Cargo.toml @@ -73,7 +73,7 @@ pezcumulus-test-client = { workspace = true } pezcumulus-test-relay-sproof-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bytes/std", "codec/std", diff --git a/pezcumulus/pezpallets/teyrchain-system/proc-macro/Cargo.toml b/pezcumulus/pezpallets/teyrchain-system/proc-macro/Cargo.toml index a68ada0b..71dc1373 100644 --- a/pezcumulus/pezpallets/teyrchain-system/proc-macro/Cargo.toml +++ b/pezcumulus/pezpallets/teyrchain-system/proc-macro/Cargo.toml @@ -22,5 +22,5 @@ quote = { workspace = true } syn = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [] diff --git a/pezcumulus/pezpallets/weight-reclaim/Cargo.toml b/pezcumulus/pezpallets/weight-reclaim/Cargo.toml index 58f03220..77c6def5 100644 --- a/pezcumulus/pezpallets/weight-reclaim/Cargo.toml +++ b/pezcumulus/pezpallets/weight-reclaim/Cargo.toml @@ -37,7 +37,7 @@ scale-info = { features = ["derive"], workspace = true } pezcumulus-primitives-proof-size-hostfunction = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/pezpallets/xcm/Cargo.toml b/pezcumulus/pezpallets/xcm/Cargo.toml index cd268ff5..f1e24f76 100644 --- a/pezcumulus/pezpallets/xcm/Cargo.toml +++ b/pezcumulus/pezpallets/xcm/Cargo.toml @@ -26,7 +26,7 @@ xcm = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/pezpallets/xcmp-queue/Cargo.toml b/pezcumulus/pezpallets/xcmp-queue/Cargo.toml index 60825c4f..fd672a46 100644 --- a/pezcumulus/pezpallets/xcmp-queue/Cargo.toml +++ b/pezcumulus/pezpallets/xcmp-queue/Cargo.toml @@ -56,12 +56,12 @@ pezsp-core = { workspace = true, default-features = true } pezcumulus-pezpallet-teyrchain-system = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "approx/std", "bounded-collections/std", - "pezbp-xcm-bridge-hub-router?/std", "codec/std", + "pezbp-xcm-bridge-hub-router?/std", "pezcumulus-primitives-core/std", "pezframe-benchmarking?/std", "pezframe-support/std", @@ -105,4 +105,4 @@ try-runtime = [ "pezpallet-message-queue/try-runtime", "pezsp-runtime/try-runtime", ] -bridging = ["pezbp-xcm-bridge-hub-router"] +bridging = [ "pezbp-xcm-bridge-hub-router" ] diff --git a/pezcumulus/primitives/aura/Cargo.toml b/pezcumulus/primitives/aura/Cargo.toml index 54614655..bb25e8a4 100644 --- a/pezcumulus/primitives/aura/Cargo.toml +++ b/pezcumulus/primitives/aura/Cargo.toml @@ -18,8 +18,8 @@ pezsp-api = { workspace = true } pezsp-consensus-aura = { workspace = true } [features] -default = ["std"] -std = ["pezsp-api/std", "pezsp-consensus-aura/std"] +default = [ "std" ] +std = [ "pezsp-api/std", "pezsp-consensus-aura/std" ] runtime-benchmarks = [ "pezsp-api/runtime-benchmarks", "pezsp-consensus-aura/runtime-benchmarks", diff --git a/pezcumulus/primitives/core/Cargo.toml b/pezcumulus/primitives/core/Cargo.toml index a7b3a723..9483188a 100644 --- a/pezcumulus/primitives/core/Cargo.toml +++ b/pezcumulus/primitives/core/Cargo.toml @@ -29,7 +29,7 @@ pezkuwi-teyrchain-primitives = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezkuwi-core-primitives/std", diff --git a/pezcumulus/primitives/proof-size-hostfunction/Cargo.toml b/pezcumulus/primitives/proof-size-hostfunction/Cargo.toml index 32cd51bc..7e377a31 100644 --- a/pezcumulus/primitives/proof-size-hostfunction/Cargo.toml +++ b/pezcumulus/primitives/proof-size-hostfunction/Cargo.toml @@ -23,7 +23,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-state-machine = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezsp-externalities/std", "pezsp-runtime-interface/std", diff --git a/pezcumulus/primitives/storage-weight-reclaim/Cargo.toml b/pezcumulus/primitives/storage-weight-reclaim/Cargo.toml index 6c830570..f218dcf5 100644 --- a/pezcumulus/primitives/storage-weight-reclaim/Cargo.toml +++ b/pezcumulus/primitives/storage-weight-reclaim/Cargo.toml @@ -33,7 +33,7 @@ pezsp-io = { workspace = true } pezsp-trie = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/primitives/teyrchain-inherent/Cargo.toml b/pezcumulus/primitives/teyrchain-inherent/Cargo.toml index 93399657..31ffb0e0 100644 --- a/pezcumulus/primitives/teyrchain-inherent/Cargo.toml +++ b/pezcumulus/primitives/teyrchain-inherent/Cargo.toml @@ -26,7 +26,7 @@ pezsp-trie = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/pezcumulus/primitives/timestamp/Cargo.toml b/pezcumulus/primitives/timestamp/Cargo.toml index a00f2648..fb54b88d 100644 --- a/pezcumulus/primitives/timestamp/Cargo.toml +++ b/pezcumulus/primitives/timestamp/Cargo.toml @@ -21,7 +21,7 @@ pezsp-timestamp = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezcumulus-primitives-core/std", "pezsp-inherents/std", diff --git a/pezcumulus/primitives/utility/Cargo.toml b/pezcumulus/primitives/utility/Cargo.toml index 5c235692..6c91a49b 100644 --- a/pezcumulus/primitives/utility/Cargo.toml +++ b/pezcumulus/primitives/utility/Cargo.toml @@ -31,7 +31,7 @@ xcm-executor = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/test/relay-sproof-builder/Cargo.toml b/pezcumulus/test/relay-sproof-builder/Cargo.toml index 9ee6add9..03c8744a 100644 --- a/pezcumulus/test/relay-sproof-builder/Cargo.toml +++ b/pezcumulus/test/relay-sproof-builder/Cargo.toml @@ -28,7 +28,7 @@ pezkuwi-primitives = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/test/runtime/Cargo.toml b/pezcumulus/test/runtime/Cargo.toml index e4163054..90606672 100644 --- a/pezcumulus/test/runtime/Cargo.toml +++ b/pezcumulus/test/runtime/Cargo.toml @@ -58,7 +58,7 @@ teyrchain-info = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", diff --git a/pezcumulus/teyrchains/common/Cargo.toml b/pezcumulus/teyrchains/common/Cargo.toml index 484dbcc3..bc56ea0f 100644 --- a/pezcumulus/teyrchains/common/Cargo.toml +++ b/pezcumulus/teyrchains/common/Cargo.toml @@ -48,7 +48,7 @@ pezpallet-collator-selection = { workspace = true } teyrchain-info = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-pezkuwichain/Cargo.toml index 5b5cf705..fd3adb40 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-pezkuwichain/Cargo.toml @@ -39,8 +39,8 @@ pezbp-bridge-hub-pezkuwichain = { workspace = true } [features] runtime-benchmarks = [ "asset-hub-pezkuwichain-runtime/runtime-benchmarks", - "pezbp-bridge-hub-pezkuwichain/runtime-benchmarks", "emulated-integration-tests-common/runtime-benchmarks", + "pezbp-bridge-hub-pezkuwichain/runtime-benchmarks", "pezcumulus-primitives-core/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezkuwichain-emulated-chain/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-zagros/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-zagros/Cargo.toml index 34aabf8b..622a4d38 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/assets/asset-hub-zagros/Cargo.toml @@ -39,8 +39,8 @@ pezbp-bridge-hub-zagros = { workspace = true } [features] runtime-benchmarks = [ "asset-hub-zagros-runtime/runtime-benchmarks", - "pezbp-bridge-hub-zagros/runtime-benchmarks", "emulated-integration-tests-common/runtime-benchmarks", + "pezbp-bridge-hub-zagros/runtime-benchmarks", "pezcumulus-primitives-core/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-pezkuwichain/Cargo.toml index 2cefc2bb..461cd518 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-pezkuwichain/Cargo.toml @@ -36,9 +36,9 @@ teyrchains-common = { workspace = true, default-features = true } [features] runtime-benchmarks = [ + "emulated-integration-tests-common/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", "pezbridge-hub-common/runtime-benchmarks", - "emulated-integration-tests-common/runtime-benchmarks", "pezbridge-hub-pezkuwichain-runtime/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-zagros/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-zagros/Cargo.toml index 168aa8b6..e2ec8733 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/chains/teyrchains/pezbridges/bridge-hub-zagros/Cargo.toml @@ -36,9 +36,9 @@ teyrchains-common = { workspace = true, default-features = true } [features] runtime-benchmarks = [ + "emulated-integration-tests-common/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", "pezbridge-hub-common/runtime-benchmarks", - "emulated-integration-tests-common/runtime-benchmarks", "pezbridge-hub-zagros-runtime/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-keyring/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-pezkuwichain/Cargo.toml index 10922422..88007c2f 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-pezkuwichain/Cargo.toml @@ -59,8 +59,8 @@ pezsnowbridge-pezpallet-system = { workspace = true } [features] runtime-benchmarks = [ "asset-hub-pezkuwichain-runtime/runtime-benchmarks", - "pezbp-asset-hub-pezkuwichain/runtime-benchmarks", "emulated-integration-tests-common/runtime-benchmarks", + "pezbp-asset-hub-pezkuwichain/runtime-benchmarks", "pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezkuwichain-system-emulated-network/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-zagros/Cargo.toml b/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-zagros/Cargo.toml index 9d4fed5d..b90c98bd 100644 --- a/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/integration-tests/emulated/tests/pezbridges/bridge-hub-zagros/Cargo.toml @@ -68,9 +68,9 @@ pezsnowbridge-pezpallet-system-v2 = { workspace = true } [features] runtime-benchmarks = [ "asset-hub-zagros-runtime/runtime-benchmarks", + "emulated-integration-tests-common/runtime-benchmarks", "pezbp-asset-hub-zagros/runtime-benchmarks", "pezbridge-hub-common/runtime-benchmarks", - "emulated-integration-tests-common/runtime-benchmarks", "pezbridge-hub-zagros-runtime/runtime-benchmarks", "pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks", "pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/pezpallets/collective-content/Cargo.toml b/pezcumulus/teyrchains/pezpallets/collective-content/Cargo.toml index 0eb713a0..e4b9592c 100644 --- a/pezcumulus/teyrchains/pezpallets/collective-content/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/collective-content/Cargo.toml @@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/pezpallets/identity-kyc/Cargo.toml b/pezcumulus/teyrchains/pezpallets/identity-kyc/Cargo.toml index 1b9daa2b..67fa6e27 100644 --- a/pezcumulus/teyrchains/pezpallets/identity-kyc/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/identity-kyc/Cargo.toml @@ -34,7 +34,7 @@ pezpallet-balances = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/perwerde/Cargo.toml b/pezcumulus/teyrchains/pezpallets/perwerde/Cargo.toml index 7792a6f2..ed1382d5 100644 --- a/pezcumulus/teyrchains/pezpallets/perwerde/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/perwerde/Cargo.toml @@ -42,7 +42,7 @@ pezsp-io = { workspace = true, default-features = false, optional = true } # pezpallet-sudo = { workspace = true, default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/pez-rewards/Cargo.toml b/pezcumulus/teyrchains/pezpallets/pez-rewards/Cargo.toml index b34b9bfd..816c304a 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-rewards/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/pez-rewards/Cargo.toml @@ -66,7 +66,7 @@ pezsp-core = { workspace = true, default-features = false, features = ["std"] } pezsp-io = { workspace = true, default-features = false, features = ["std"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/Cargo.toml b/pezcumulus/teyrchains/pezpallets/pez-treasury/Cargo.toml index b72b1c4f..57be3035 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/Cargo.toml @@ -49,7 +49,7 @@ pezpallet-assets = { workspace = true, default-features = false, features = [ ] } # <-- BU SATIRI EKLEYİN [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/ping/Cargo.toml b/pezcumulus/teyrchains/pezpallets/ping/Cargo.toml index f382034d..fa4f226a 100644 --- a/pezcumulus/teyrchains/pezpallets/ping/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/ping/Cargo.toml @@ -26,7 +26,7 @@ pezcumulus-pezpallet-xcm = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-pezpallet-xcm/std", diff --git a/pezcumulus/teyrchains/pezpallets/presale/Cargo.toml b/pezcumulus/teyrchains/pezpallets/presale/Cargo.toml index cb58b2f3..5290a3e3 100644 --- a/pezcumulus/teyrchains/pezpallets/presale/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/presale/Cargo.toml @@ -39,7 +39,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/referral/Cargo.toml b/pezcumulus/teyrchains/pezpallets/referral/Cargo.toml index 2c819eee..5e8b4b8d 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/referral/Cargo.toml @@ -36,7 +36,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/staking-score/Cargo.toml b/pezcumulus/teyrchains/pezpallets/staking-score/Cargo.toml index 084c092e..0d48f14a 100644 --- a/pezcumulus/teyrchains/pezpallets/staking-score/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/staking-score/Cargo.toml @@ -48,7 +48,7 @@ pezsp-runtime = { workspace = true, features = ["std"] } pezsp-staking = { workspace = true, features = ["std"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/pezcumulus/teyrchains/pezpallets/teyrchain-info/Cargo.toml b/pezcumulus/teyrchains/pezpallets/teyrchain-info/Cargo.toml index b08e16a6..232aaa57 100644 --- a/pezcumulus/teyrchains/pezpallets/teyrchain-info/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/teyrchain-info/Cargo.toml @@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/teyrchains/pezpallets/tiki/Cargo.toml b/pezcumulus/teyrchains/pezpallets/tiki/Cargo.toml index 0b4c4a1a..e47946b8 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/tiki/Cargo.toml @@ -35,7 +35,7 @@ pezsp-core = { workspace = true } pezsp-io = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/pezpallets/token-wrapper/Cargo.toml b/pezcumulus/teyrchains/pezpallets/token-wrapper/Cargo.toml index a0bc5364..ebacf8c8 100644 --- a/pezcumulus/teyrchains/pezpallets/token-wrapper/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/token-wrapper/Cargo.toml @@ -41,7 +41,7 @@ pezsp-io = { workspace = true } serde = { version = "1.0" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/pezcumulus/teyrchains/pezpallets/trust/Cargo.toml b/pezcumulus/teyrchains/pezpallets/trust/Cargo.toml index 79a28bc2..2f176907 100644 --- a/pezcumulus/teyrchains/pezpallets/trust/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/trust/Cargo.toml @@ -53,7 +53,7 @@ pezsp-core = { workspace = true, default-features = false } pezsp-io = { workspace = true, default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", @@ -73,7 +73,8 @@ std = [ "pezsp-runtime/std", "pezsp-std/std", "scale-info/std", - "serde", # serde'yi doğrudan feature olarak ekliyoruz + "serde", + # serde'yi doğrudan feature olarak ekliyoruz "serde?/std", ] runtime-benchmarks = [ diff --git a/pezcumulus/teyrchains/pezpallets/welati/Cargo.toml b/pezcumulus/teyrchains/pezpallets/welati/Cargo.toml index e213c7a5..e6965e97 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/Cargo.toml +++ b/pezcumulus/teyrchains/pezpallets/welati/Cargo.toml @@ -56,7 +56,7 @@ pezsp-core = { workspace = true, default-features = false } pezsp-io = { workspace = true, default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/Cargo.toml index 7c9b400e..aa125628 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/Cargo.toml @@ -134,12 +134,12 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] fast-runtime = [] runtime-benchmarks = [ "asset-test-pezutils/runtime-benchmarks", - "pez-assets-common/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", + "pez-assets-common/runtime-benchmarks", "pezbp-asset-hub-pezkuwichain/runtime-benchmarks", "pezbp-asset-hub-zagros/runtime-benchmarks", "pezbp-bridge-hub-pezkuwichain/runtime-benchmarks", @@ -284,14 +284,14 @@ try-runtime = [ "teyrchains-common/try-runtime", ] std = [ - "pez-assets-common/std", "bizinikiwi-wasm-builder", + "codec/std", + "log/std", + "pez-assets-common/std", "pezbp-asset-hub-pezkuwichain/std", "pezbp-asset-hub-zagros/std", "pezbp-bridge-hub-pezkuwichain/std", "pezbp-bridge-hub-zagros/std", - "codec/std", - "log/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", "pezcumulus-pezpallet-teyrchain-system/std", @@ -384,9 +384,9 @@ std = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/Cargo.toml index 2542f1b8..7c770614 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/Cargo.toml @@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["pezkuwichain"], workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-bridge-hub-pezcumulus/std", "pezbp-messages/std", - "pezbp-xcm-bridge-hub-router/std", - "codec/std", "pezbp-runtime/std", + "pezbp-xcm-bridge-hub-router/std", "pezframe-support/std", "pezsp-api/std", "pezsp-core/std", @@ -52,8 +52,8 @@ std = [ runtime-benchmarks = [ "pezbp-bridge-hub-pezcumulus/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-api/runtime-benchmarks", "testnet-teyrchains-constants/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/src/lib.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/src/lib.rs index c9d69ff4..a99bf93b 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/bridge-primitives/src/lib.rs @@ -24,10 +24,10 @@ use scale_info::TypeInfo; pub use pezbp_bridge_hub_pezcumulus::*; use pezbp_messages::*; -pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; use pezbp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain, }; +pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; use pezframe_support::{ dispatch::DispatchClass, pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion}, diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/lib.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/lib.rs index 4e2289f2..7df6fbfb 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/lib.rs @@ -61,8 +61,8 @@ use testnet_teyrchains_constants::pezkuwichain::snowbridge::EthereumNetwork; use pezsp_version::NativeVersion; use pezsp_version::RuntimeVersion; -pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; +pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use pezcumulus_primitives_core::ParaId; use pezframe_support::{ construct_runtime, derive_impl, diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/xcm_config.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/xcm_config.rs index 116cde83..caf67fa4 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/xcm_config.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/xcm_config.rs @@ -129,7 +129,10 @@ pub type FungibleTransactor = FungibleAdapter< /// `AssetId`/`Balance` converter for `TrustBackedAssets`. pub type TrustBackedAssetsConvertedConcreteId = - pez_assets_common::TrustBackedAssetsConvertedConcreteId; + pez_assets_common::TrustBackedAssetsConvertedConcreteId< + TrustBackedAssetsPalletLocation, + Balance, + >; /// Means for transacting assets besides the native currency on this chain. pub type FungiblesTransactor = FungiblesAdapter< diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/tests/tests.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/tests/tests.rs index 1ad5a99d..a28e6194 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/tests/tests.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/tests/tests.rs @@ -967,7 +967,8 @@ mod asset_hub_pezkuwichain_tests { let actual = >::WeightInfo::report_bridge_status(); - let max_weight = pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get(); + let max_weight = + pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get(); assert!( actual.all_lte(max_weight), "max_weight: {:?} should be adjusted to actual {:?}", diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/Cargo.toml index 596dde78..142a16a3 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/Cargo.toml @@ -151,11 +151,11 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "asset-test-pezutils/runtime-benchmarks", - "pez-assets-common/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", + "pez-assets-common/runtime-benchmarks", "pezbp-asset-hub-pezkuwichain/runtime-benchmarks", "pezbp-asset-hub-zagros/runtime-benchmarks", "pezbp-bridge-hub-pezkuwichain/runtime-benchmarks", @@ -326,14 +326,14 @@ try-runtime = [ ] std = [ "alloy-core/std", - "pez-assets-common/std", "bizinikiwi-wasm-builder", + "codec/std", + "log/std", + "pez-assets-common/std", "pezbp-asset-hub-pezkuwichain/std", "pezbp-asset-hub-zagros/std", "pezbp-bridge-hub-pezkuwichain/std", "pezbp-bridge-hub-zagros/std", - "codec/std", - "log/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", "pezcumulus-pezpallet-teyrchain-system/std", @@ -443,9 +443,9 @@ std = [ fast-runtime = [] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/Cargo.toml index fdd0a0db..fa9db362 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/Cargo.toml @@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["zagros"], workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-bridge-hub-pezcumulus/std", "pezbp-messages/std", - "pezbp-xcm-bridge-hub-router/std", - "codec/std", "pezbp-runtime/std", + "pezbp-xcm-bridge-hub-router/std", "pezframe-support/std", "pezsp-api/std", "pezsp-core/std", @@ -52,8 +52,8 @@ std = [ runtime-benchmarks = [ "pezbp-bridge-hub-pezcumulus/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-api/runtime-benchmarks", "testnet-teyrchains-constants/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/src/lib.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/src/lib.rs index 538faf6b..0698c3a3 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/bridge-primitives/src/lib.rs @@ -19,13 +19,13 @@ extern crate alloc; +use codec::{Decode, Encode}; pub use pezbp_bridge_hub_pezcumulus::*; use pezbp_messages::*; -pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; -use codec::{Decode, Encode}; use pezbp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain, }; +pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; use pezframe_support::{ dispatch::DispatchClass, pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion}, diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/lib.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/lib.rs index a61a5ec8..21084c06 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/lib.rs @@ -43,13 +43,13 @@ use governance::{ extern crate alloc; use alloc::{vec, vec::Vec}; +use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use pez_assets_common::{ local_and_foreign_assets::{LocalFromLeft, TargetFromLeft}, AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert, }; use pezbp_asset_hub_zagros::CreateForeignAssetDeposit; -use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use pezcumulus_pezpallet_teyrchain_system::{ RelayNumberMonotonicallyIncreases, RelaychainDataProvider, }; diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/xcm_config.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/xcm_config.rs index aaac242f..f671f618 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/xcm_config.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/xcm_config.rs @@ -124,7 +124,10 @@ pub type FungibleTransactor = FungibleAdapter< /// `AssetId`/`Balance` converter for `TrustBackedAssets`. pub type TrustBackedAssetsConvertedConcreteId = - pez_assets_common::TrustBackedAssetsConvertedConcreteId; + pez_assets_common::TrustBackedAssetsConvertedConcreteId< + TrustBackedAssetsPalletLocation, + Balance, + >; /// Means for transacting assets besides the native currency on this chain. pub type FungiblesTransactor = FungiblesAdapter< diff --git a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/tests/tests.rs b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/tests/tests.rs index 4bd9bdb7..93ae04a0 100644 --- a/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/tests/tests.rs +++ b/pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/tests/tests.rs @@ -38,9 +38,9 @@ use asset_test_pezutils::{ test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys, ExtBuilder, GovernanceOrigin, SlotDurations, }; -use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use codec::{Decode, Encode}; use hex_literal::hex; +use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use pezframe_support::{ assert_err, assert_noop, assert_ok, parameter_types, traits::{ @@ -780,12 +780,13 @@ fn test_assets_balances_api_works() { assert_eq!(result.len(), 3); // check currency - assert!(result.inner().iter().any(|asset| asset.eq( - &pez_assets_common::fungible_conversion::convert_balance::( - some_currency - ) - .unwrap() - ))); + assert!(result.inner().iter().any(|asset| { + asset.eq(&pez_assets_common::fungible_conversion::convert_balance::< + ZagrosLocation, + Balance, + >(some_currency) + .unwrap()) + })); // check trusted asset assert!(result.inner().iter().any(|asset| asset.eq(&( AssetIdForTrustBackedAssetsConvert::convert_back(&local_asset_id).unwrap(), diff --git a/pezcumulus/teyrchains/runtimes/assets/common/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/common/Cargo.toml index 44bf4881..827edc5c 100644 --- a/pezcumulus/teyrchains/runtimes/assets/common/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/common/Cargo.toml @@ -42,7 +42,7 @@ pezcumulus-primitives-core = { workspace = true } teyrchains-common = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/teyrchains/runtimes/assets/test-utils/Cargo.toml b/pezcumulus/teyrchains/runtimes/assets/test-utils/Cargo.toml index 6aa70387..bfff00fd 100644 --- a/pezcumulus/teyrchains/runtimes/assets/test-utils/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/assets/test-utils/Cargo.toml @@ -47,10 +47,10 @@ xcm-runtime-pezapis = { workspace = true } pezpallet-xcm-bridge-hub-router = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pez-assets-common/std", "codec/std", + "pez-assets-common/std", "pezcumulus-pezpallet-teyrchain-system/std", "pezcumulus-pezpallet-xcmp-queue/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases.rs b/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases.rs index 956c6f1c..0604a9a4 100644 --- a/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases.rs +++ b/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases.rs @@ -17,9 +17,9 @@ use super::xcm_helpers; use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees}; -use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use codec::Encode; use core::ops::Mul; +use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use pezcumulus_primitives_core::{UpwardMessageSender, XcmpMessageSource}; use pezframe_support::{ assert_noop, assert_ok, diff --git a/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs b/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs index e1a70e5c..ab3bb551 100644 --- a/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs +++ b/pezcumulus/teyrchains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs @@ -17,8 +17,8 @@ //! over a bridge. use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees}; -use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use codec::Encode; +use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData; use pezcumulus_primitives_core::XcmpMessageSource; use pezframe_support::{ assert_ok, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/Cargo.toml index af7bc3de..96e7f830 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/Cargo.toml @@ -133,9 +133,10 @@ pezsnowbridge-runtime-test-common = { workspace = true, default-features = true teyrchains-runtimes-test-utils = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", + "codec/std", "pezbp-asset-hub-pezkuwichain/std", "pezbp-asset-hub-zagros/std", "pezbp-bridge-hub-pezkuwichain/std", @@ -145,12 +146,11 @@ std = [ "pezbp-pezkuwi-bulletin/std", "pezbp-pezkuwi-core/std", "pezbp-relayers/std", + "pezbp-runtime/std", "pezbp-teyrchains/std", "pezbp-xcm-bridge-hub-router/std", "pezbp-zagros/std", "pezbridge-hub-common/std", - "codec/std", - "pezbp-runtime/std", "pezbridge-runtime-common/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", @@ -240,11 +240,11 @@ runtime-benchmarks = [ "pezbp-pezkuwi-bulletin/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-teyrchains/runtime-benchmarks", "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezbp-zagros/runtime-benchmarks", "pezbridge-hub-common/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezbridge-hub-test-utils/runtime-benchmarks", "pezbridge-runtime-common/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/Cargo.toml index 7af4e59e..397a1a2f 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/Cargo.toml @@ -31,13 +31,13 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-bridge-hub-pezcumulus/std", "pezbp-messages/std", - "pezbp-xcm-bridge-hub/std", - "codec/std", "pezbp-runtime/std", + "pezbp-xcm-bridge-hub/std", "pezframe-support/std", "pezsp-api/std", "pezsp-runtime/std", @@ -46,8 +46,8 @@ std = [ runtime-benchmarks = [ "pezbp-bridge-hub-pezcumulus/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-xcm-bridge-hub/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-xcm-bridge-hub/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-api/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/src/lib.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/src/lib.rs index fdc29efb..e180b763 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/bridge-primitives/src/lib.rs @@ -19,9 +19,9 @@ #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] +use codec::{Decode, Encode}; pub use pezbp_bridge_hub_pezcumulus::*; use pezbp_messages::*; -use codec::{Decode, Encode}; use pezbp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain, }; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_ethereum_config.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_ethereum_config.rs index 2c9d9500..f29afc27 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_ethereum_config.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_ethereum_config.rs @@ -37,8 +37,8 @@ use testnet_teyrchains_constants::pezkuwichain::{ use crate::xcm_config::RelayNetwork; #[cfg(feature = "runtime-benchmarks")] use benchmark_helpers::DoNothingRouter; -use pezbp_asset_hub_pezkuwichain::CreateForeignAssetDeposit; use hex_literal::hex; +use pezbp_asset_hub_pezkuwichain::CreateForeignAssetDeposit; use pezframe_support::{parameter_types, weights::ConstantMultiplier}; use pezpallet_xcm::EnsureXcm; use pezsp_runtime::{ diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_zagros_config.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_zagros_config.rs index 1cd2faea..959d6b51 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_zagros_config.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/bridge_to_zagros_config.rs @@ -364,8 +364,8 @@ pub mod migration { >; mod v1_wrong { - use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer}; use codec::{Decode, Encode}; + use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer}; use pezbp_runtime::AccountIdOf; use pezpallet_bridge_messages::BridgedChainOf; use pezsp_std::collections::vec_deque::VecDeque; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/lib.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/lib.rs index d6b2dcc5..3961d81a 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/lib.rs @@ -75,11 +75,11 @@ use testnet_teyrchains_constants::pezkuwichain::{ consensus::*, currency::*, fee::WeightToFee, time::*, }; +use pezbp_runtime::HeaderId; use pezbridge_hub_common::{ message_queue::{NarrowOriginToSibling, ParaIdToSibling}, AggregateMessageOrigin, }; -use pezbp_runtime::HeaderId; pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId; pub use pezsp_runtime::{MultiAddress, Perbill, Permill}; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/snowbridge.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/snowbridge.rs index db6572e8..6d50653a 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/snowbridge.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/snowbridge.rs @@ -16,8 +16,8 @@ #![cfg(test)] -use pezbp_pezkuwi_core::Signature; use codec::{Decode, Encode}; +use pezbp_pezkuwi_core::Signature; use pezbridge_hub_pezkuwichain_runtime::{ bridge_to_zagros_config::OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages, xcm_config::XcmConfig, AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/tests.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/tests.rs index 106d2a4f..61a8241a 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/tests.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/tests/tests.rs @@ -16,9 +16,9 @@ #![cfg(test)] -use pezbp_pezkuwi_core::Signature; use codec::{Decode, Encode}; use hex_literal::hex; +use pezbp_pezkuwi_core::Signature; use pezbridge_hub_pezkuwichain_runtime::{ bridge_common_config, bridge_to_bulletin_config, bridge_to_zagros_config, xcm_config::{RelayNetwork, TokenLocation, XcmConfig}, @@ -126,7 +126,6 @@ pezbridge_hub_test_utils::test_cases::include_teleports_for_native_asset_works!( mod bridge_hub_zagros_tests { use super::*; - use pezbp_messages::LegacyLaneId; use bridge_common_config::{ BridgeGrandpaZagrosInstance, BridgeTeyrchainZagrosInstance, DeliveryRewardInBalance, RelayersForLegacyLaneIdsMessagesInstance, @@ -135,6 +134,7 @@ mod bridge_hub_zagros_tests { BridgeHubZagrosLocation, WithBridgeHubZagrosMessagesInstance, XcmOverBridgeHubZagrosInstance, ZagrosGlobalConsensusNetwork, }; + use pezbp_messages::LegacyLaneId; use pezbridge_hub_pezkuwichain_runtime::{ bridge_to_ethereum_config::EthereumGatewayAddress, xcm_config::LocationToAccountId, }; @@ -525,13 +525,13 @@ mod bridge_hub_zagros_tests { mod bridge_hub_bulletin_tests { use super::*; - use pezbp_messages::LegacyLaneId; use bridge_common_config::BridgeGrandpaPezkuwichainBulletinInstance; use bridge_to_bulletin_config::{ PezkuwichainBulletinGlobalConsensusNetwork, PezkuwichainBulletinGlobalConsensusNetworkLocation, WithPezkuwichainBulletinMessagesInstance, XcmOverPezkuwiBulletinInstance, }; + use pezbp_messages::LegacyLaneId; use pezbridge_hub_pezkuwichain_runtime::{ bridge_common_config::RelayersForLegacyLaneIdsMessagesInstance, xcm_config::LocationToAccountId, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/Cargo.toml index 9bc38be5..0ffc4d24 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/Cargo.toml @@ -140,6 +140,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features [features] std = [ "bizinikiwi-wasm-builder", + "codec/std", "pezbp-asset-hub-pezkuwichain/std", "pezbp-asset-hub-zagros/std", "pezbp-bridge-hub-pezkuwichain/std", @@ -149,11 +150,10 @@ std = [ "pezbp-pezkuwi-core/std", "pezbp-pezkuwichain/std", "pezbp-relayers/std", + "pezbp-runtime/std", "pezbp-teyrchains/std", "pezbp-xcm-bridge-hub-router/std", "pezbridge-hub-common/std", - "codec/std", - "pezbp-runtime/std", "pezbridge-runtime-common/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", @@ -238,7 +238,7 @@ std = [ "xcm/std", "zagros-runtime-constants/std", ] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "bizinikiwi-wasm-builder?/runtime-benchmarks", @@ -251,10 +251,10 @@ runtime-benchmarks = [ "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-pezkuwichain/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-teyrchains/runtime-benchmarks", "pezbp-xcm-bridge-hub-router/runtime-benchmarks", "pezbridge-hub-common/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezbridge-hub-test-utils/runtime-benchmarks", "pezbridge-runtime-common/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext/runtime-benchmarks", @@ -377,11 +377,11 @@ try-runtime = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] fast-runtime = [] diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/Cargo.toml index 0a633d2b..c49251d7 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/Cargo.toml @@ -31,13 +31,13 @@ pezsp-runtime = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "codec/std", "pezbp-bridge-hub-pezcumulus/std", "pezbp-messages/std", - "pezbp-xcm-bridge-hub/std", - "codec/std", "pezbp-runtime/std", + "pezbp-xcm-bridge-hub/std", "pezframe-support/std", "pezsp-api/std", "pezsp-runtime/std", @@ -46,8 +46,8 @@ std = [ runtime-benchmarks = [ "pezbp-bridge-hub-pezcumulus/runtime-benchmarks", "pezbp-messages/runtime-benchmarks", - "pezbp-xcm-bridge-hub/runtime-benchmarks", "pezbp-runtime/runtime-benchmarks", + "pezbp-xcm-bridge-hub/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezsp-api/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/src/lib.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/src/lib.rs index 8ac2a6fa..db3948fa 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/bridge-primitives/src/lib.rs @@ -18,9 +18,9 @@ #![cfg_attr(not(feature = "std"), no_std)] +use codec::{Decode, Encode}; pub use pezbp_bridge_hub_pezcumulus::*; use pezbp_messages::*; -use codec::{Decode, Encode}; use pezbp_runtime::{ decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain, }; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_common_config.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_common_config.rs index dfa26a9a..179e9ba7 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_common_config.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_common_config.rs @@ -26,9 +26,9 @@ use crate::{ bridge_to_ethereum_config::InboundQueueV2Location, xcm_config::XcmConfig, RuntimeCall, XcmRouter, }; +use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use pezbp_messages::LegacyLaneId; use pezbp_relayers::RewardsAccountParams; -use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; use pezframe_support::parameter_types; use scale_info::TypeInfo; use testnet_teyrchains_constants::zagros::{ diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_ethereum_config.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_ethereum_config.rs index 13065e95..a8f8a867 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_ethereum_config.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_ethereum_config.rs @@ -22,9 +22,9 @@ use crate::{ EthereumOutboundQueue, EthereumOutboundQueueV2, EthereumSystem, EthereumSystemV2, MessageQueue, Runtime, RuntimeEvent, TransactionByteFee, }; +use hex_literal::hex; use pezbp_asset_hub_zagros::CreateForeignAssetDeposit; use pezbridge_hub_common::AggregateMessageOrigin; -use hex_literal::hex; use pezframe_support::{parameter_types, traits::Contains, weights::ConstantMultiplier}; use pezframe_system::EnsureRootWithSuccess; use pezpallet_xcm::EnsureXcm; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_pezkuwichain_config.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_pezkuwichain_config.rs index e29b0880..b3a41a59 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_pezkuwichain_config.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/bridge_to_pezkuwichain_config.rs @@ -83,8 +83,10 @@ parameter_types! { pub type FromPezkuwichainBridgeHubMessagesProof = FromBridgedChainMessagesProof>; /// Messages delivery proof for Pezkuwichain Bridge Hub -> Zagros Bridge Hub messages. -pub type ToPezkuwichainBridgeHubMessagesDeliveryProof = - FromBridgedChainMessagesDeliveryProof>; +pub type ToPezkuwichainBridgeHubMessagesDeliveryProof = FromBridgedChainMessagesDeliveryProof< + pezbp_bridge_hub_pezkuwichain::Hash, + LaneIdOf, +>; /// Dispatches received XCM messages from other bridge type FromPezkuwichainMessageBlobDispatcher = BridgeBlobDispatcher< @@ -381,8 +383,8 @@ pub mod migration { } mod v1_wrong { - use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer}; use codec::{Decode, Encode}; + use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer}; use pezbp_runtime::AccountIdOf; use pezpallet_bridge_messages::BridgedChainOf; use pezsp_std::collections::vec_deque::VecDeque; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/lib.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/lib.rs index 198614b5..a249b838 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/lib.rs @@ -1487,15 +1487,16 @@ mod tests { ).into(); { - let bh_indirect_payload = pezbp_bridge_hub_zagros::TransactionExtension::from_params( - VERSION.spec_version, - VERSION.transaction_version, - pezbp_runtime::TransactionEra::Immortal, - System::block_hash(BlockNumber::zero()), - 10, - 10, - (((), ()), ((), ())), - ); + let bh_indirect_payload = + pezbp_bridge_hub_zagros::TransactionExtension::from_params( + VERSION.spec_version, + VERSION.transaction_version, + pezbp_runtime::TransactionEra::Immortal, + System::block_hash(BlockNumber::zero()), + 10, + 10, + (((), ()), ((), ())), + ); assert_eq!(payload.encode().split_last().unwrap().1, bh_indirect_payload.encode()); assert_eq!( TxExtension::implicit(&payload).unwrap().encode().split_last().unwrap().1, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/snowbridge.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/snowbridge.rs index f33d932f..c2a4d130 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/snowbridge.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/snowbridge.rs @@ -16,10 +16,10 @@ #![cfg(test)] +use codec::{Decode, Encode}; use pezbp_asset_hub_zagros::ASSET_HUB_ZAGROS_TEYRCHAIN_ID; use pezbp_bridge_hub_zagros::BRIDGE_HUB_ZAGROS_TEYRCHAIN_ID; use pezbp_pezkuwi_core::Signature; -use codec::{Decode, Encode}; use pezbridge_hub_zagros_runtime::{ bridge_to_pezkuwichain_config, xcm_config::XcmConfig, AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages, Executive, MessageQueueServiceWeight, Runtime, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/tests.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/tests.rs index 553f58bf..dfb55c4c 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/tests.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/tests/tests.rs @@ -17,9 +17,6 @@ #![cfg(test)] use crate::bridge_common_config::BridgeRewardBeneficiaries; -use pezbp_messages::LegacyLaneId; -use pezbp_pezkuwi_core::Signature; -use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams}; use bridge_common_config::{BridgeRelayersInstance, BridgeReward, RequiredStakeForStakeAndSlash}; use bridge_to_pezkuwichain_config::{ BridgeGrandpaPezkuwichainInstance, BridgeHubPezkuwichainLocation, @@ -28,6 +25,9 @@ use bridge_to_pezkuwichain_config::{ }; use codec::{Decode, Encode}; use hex_literal::hex; +use pezbp_messages::LegacyLaneId; +use pezbp_pezkuwi_core::Signature; +use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams}; use pezbridge_hub_test_utils::{ test_cases::{from_teyrchain, run_test}, GovernanceOrigin, SlotDurations, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/common/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/common/Cargo.toml index 11bc86ed..5aae6bda 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/common/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/common/Cargo.toml @@ -27,7 +27,7 @@ xcm-builder = { workspace = true } xcm-executor = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-primitives-core/std", diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/Cargo.toml b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/Cargo.toml index 42b514b6..8e505dd3 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/Cargo.toml @@ -58,17 +58,17 @@ pezpallet-bridge-teyrchains = { workspace = true } pezpallet-xcm-bridge-hub = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "asset-test-pezutils/std", + "codec/std", "pezbp-header-pez-chain/std", "pezbp-messages/std", "pezbp-pezkuwi-core/std", "pezbp-relayers/std", + "pezbp-runtime/std", "pezbp-test-utils/std", "pezbp-teyrchains/std", - "codec/std", - "pezbp-runtime/std", "pezcumulus-pezpallet-teyrchain-system/std", "pezcumulus-pezpallet-xcmp-queue/std", "pezframe-support/std", @@ -99,9 +99,9 @@ runtime-benchmarks = [ "pezbp-messages/runtime-benchmarks", "pezbp-pezkuwi-core/runtime-benchmarks", "pezbp-relayers/runtime-benchmarks", + "pezbp-runtime/runtime-benchmarks", "pezbp-test-utils/runtime-benchmarks", "pezbp-teyrchains/runtime-benchmarks", - "pezbp-runtime/runtime-benchmarks", "pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks", "pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/helpers.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/helpers.rs index bdb7b00c..d33a07b7 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/helpers.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/helpers.rs @@ -19,10 +19,10 @@ use crate::test_cases::{bridges_prelude::*, run_test, RuntimeHelper}; use asset_test_pezutils::BasicTeyrchainRuntime; -use pezbp_messages::MessageNonce; -use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId}; use codec::Decode; use core::marker::PhantomData; +use pezbp_messages::MessageNonce; +use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId}; use pezbp_runtime::Chain; use pezframe_support::{ assert_ok, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs index 8a91b124..f16ec600 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs @@ -27,11 +27,11 @@ pub(crate) mod helpers; use crate::{test_cases::bridges_prelude::*, test_data}; use asset_test_pezutils::BasicTeyrchainRuntime; +use codec::Encode; use pezbp_messages::{ target_chain::{DispatchMessage, DispatchMessageData, MessageDispatch}, LaneState, MessageKey, MessagesOperatingMode, OutboundLaneData, }; -use codec::Encode; use pezbp_runtime::BasicOperatingMode; use pezframe_support::{ assert_ok, diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_grandpa_chain.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_grandpa_chain.rs index 7e2572bc..7d497927 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_grandpa_chain.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_grandpa_chain.rs @@ -18,14 +18,14 @@ use crate::test_data::{prepare_inbound_xcm, XcmAsPlainPayload}; +use codec::Encode; use pezbp_messages::{ source_chain::FromBridgedChainMessagesDeliveryProof, target_chain::FromBridgedChainMessagesProof, ChainWithMessages, LaneState, MessageNonce, UnrewardedRelayersState, }; -use pezbp_test_utils::make_default_justification; -use codec::Encode; use pezbp_runtime::{AccountIdOf, BlockNumberOf, Chain, HeaderOf, UnverifiedStorageProofParams}; +use pezbp_test_utils::make_default_justification; use pezpallet_bridge_grandpa::{BridgedChain, BridgedHeader}; use pezsp_runtime::traits::Header as HeaderT; use xcm::latest::prelude::*; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_teyrchain.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_teyrchain.rs index 14e0ba6b..238c3547 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_teyrchain.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/from_teyrchain.rs @@ -21,17 +21,17 @@ use super::{ XcmAsPlainPayload, }; +use codec::Encode; use pezbp_messages::{ source_chain::FromBridgedChainMessagesDeliveryProof, target_chain::FromBridgedChainMessagesProof, ChainWithMessages, LaneState, UnrewardedRelayersState, Weight, }; -use pezbp_test_utils::prepare_teyrchain_heads_proof; -use pezbp_teyrchains::{RelayBlockHash, RelayBlockNumber}; -use codec::Encode; use pezbp_runtime::{ AccountIdOf, BlockNumberOf, Chain, HeaderOf, Teyrchain, UnverifiedStorageProofParams, }; +use pezbp_test_utils::prepare_teyrchain_heads_proof; +use pezbp_teyrchains::{RelayBlockHash, RelayBlockNumber}; use pezpallet_bridge_grandpa::BridgedHeader; use pezsp_runtime::traits::Header as HeaderT; use xcm::latest::prelude::*; diff --git a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/mod.rs b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/mod.rs index 06f33e8a..c2bd7cc1 100644 --- a/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/mod.rs +++ b/pezcumulus/teyrchains/runtimes/bridge-hubs/test-utils/src/test_data/mod.rs @@ -19,18 +19,18 @@ pub mod from_grandpa_chain; pub mod from_teyrchain; +use codec::Encode; use pezbp_messages::{ target_chain::{DispatchMessage, DispatchMessageData}, MessageKey, }; -use codec::Encode; use pezframe_support::traits::Get; use pezpallet_bridge_grandpa::BridgedHeader; use xcm::latest::prelude::*; use pezbp_messages::MessageNonce; -use pezbp_test_utils::authority_list; use pezbp_runtime::BasicOperatingMode; +use pezbp_test_utils::authority_list; use xcm::GetVersion; use xcm_builder::{BridgeMessage, HaulBlob, HaulBlobError, HaulBlobExporter}; use xcm_executor::traits::{validate_export, ExportXcm}; diff --git a/pezcumulus/teyrchains/runtimes/collectives/collectives-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/collectives/collectives-zagros/Cargo.toml index 879fc794..365f8387 100644 --- a/pezcumulus/teyrchains/runtimes/collectives/collectives-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/collectives/collectives-zagros/Cargo.toml @@ -102,7 +102,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "bizinikiwi-wasm-builder?/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext/runtime-benchmarks", @@ -288,9 +288,9 @@ std = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezcumulus/teyrchains/runtimes/constants/Cargo.toml b/pezcumulus/teyrchains/runtimes/constants/Cargo.toml index 12773211..32713857 100644 --- a/pezcumulus/teyrchains/runtimes/constants/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/constants/Cargo.toml @@ -32,7 +32,7 @@ zagros-runtime-constants = { optional = true, workspace = true } pezcumulus-primitives-core = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezcumulus-primitives-core/std", "pezframe-support/std", @@ -44,8 +44,8 @@ std = [ ] # Test runtimes specific features. -pezkuwichain = ["pezkuwichain-runtime-constants"] -zagros = ["zagros-runtime-constants"] +pezkuwichain = [ "pezkuwichain-runtime-constants" ] +zagros = [ "zagros-runtime-constants" ] runtime-benchmarks = [ "pezcumulus-primitives-core/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/coretime/coretime-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/runtimes/coretime/coretime-pezkuwichain/Cargo.toml index 029aa0f2..f9199248 100644 --- a/pezcumulus/teyrchains/runtimes/coretime/coretime-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/coretime/coretime-pezkuwichain/Cargo.toml @@ -90,7 +90,7 @@ teyrchains-runtimes-test-utils = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", @@ -243,12 +243,12 @@ try-runtime = [ "teyrchain-info/try-runtime", "teyrchains-common/try-runtime", ] -fast-runtime = ["pezkuwichain-runtime-constants/fast-runtime"] +fast-runtime = [ "pezkuwichain-runtime-constants/fast-runtime" ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezcumulus/teyrchains/runtimes/coretime/coretime-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/coretime/coretime-zagros/Cargo.toml index 00f69adb..67d3719c 100644 --- a/pezcumulus/teyrchains/runtimes/coretime/coretime-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/coretime/coretime-zagros/Cargo.toml @@ -91,7 +91,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", @@ -243,12 +243,12 @@ try-runtime = [ "teyrchain-info/try-runtime", "teyrchains-common/try-runtime", ] -fast-runtime = ["zagros-runtime-constants/fast-runtime"] +fast-runtime = [ "zagros-runtime-constants/fast-runtime" ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezcumulus/teyrchains/runtimes/glutton/glutton-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/glutton/glutton-zagros/Cargo.toml index fe2c08b5..43ef5660 100644 --- a/pezcumulus/teyrchains/runtimes/glutton/glutton-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/glutton/glutton-zagros/Cargo.toml @@ -63,7 +63,7 @@ teyrchains-common = { workspace = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "bizinikiwi-wasm-builder/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/people/people-pezkuwichain/Cargo.toml b/pezcumulus/teyrchains/runtimes/people/people-pezkuwichain/Cargo.toml index eb2f6aad..784329a2 100644 --- a/pezcumulus/teyrchains/runtimes/people/people-pezkuwichain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/people/people-pezkuwichain/Cargo.toml @@ -112,7 +112,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", diff --git a/pezcumulus/teyrchains/runtimes/people/people-zagros/Cargo.toml b/pezcumulus/teyrchains/runtimes/people/people-zagros/Cargo.toml index 71eb6b4a..061e7cd2 100644 --- a/pezcumulus/teyrchains/runtimes/people/people-zagros/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/people/people-zagros/Cargo.toml @@ -91,7 +91,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", diff --git a/pezcumulus/teyrchains/runtimes/test-utils/Cargo.toml b/pezcumulus/teyrchains/runtimes/test-utils/Cargo.toml index 6e997fca..320f5bf7 100644 --- a/pezcumulus/teyrchains/runtimes/test-utils/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/test-utils/Cargo.toml @@ -45,7 +45,7 @@ xcm-executor = { workspace = true } xcm-runtime-pezapis = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezcumulus-pezpallet-teyrchain-system/std", diff --git a/pezcumulus/teyrchains/runtimes/testing/penpal/Cargo.toml b/pezcumulus/teyrchains/runtimes/testing/penpal/Cargo.toml index 602e88ca..3238cbd1 100644 --- a/pezcumulus/teyrchains/runtimes/testing/penpal/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/testing/penpal/Cargo.toml @@ -96,11 +96,11 @@ primitive-types = { workspace = true, default-features = false, features = [ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "pez-assets-common/std", "bizinikiwi-wasm-builder", "codec/std", + "pez-assets-common/std", "pezcumulus-pezpallet-aura-ext/std", "pezcumulus-pezpallet-session-benchmarking/std", "pezcumulus-pezpallet-teyrchain-system/std", @@ -163,9 +163,9 @@ std = [ ] runtime-benchmarks = [ - "pez-assets-common/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", "hex-literal", + "pez-assets-common/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext/runtime-benchmarks", "pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks", "pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks", diff --git a/pezcumulus/teyrchains/runtimes/testing/penpal/src/xcm_config.rs b/pezcumulus/teyrchains/runtimes/testing/penpal/src/xcm_config.rs index 7df1c238..a482cf24 100644 --- a/pezcumulus/teyrchains/runtimes/testing/penpal/src/xcm_config.rs +++ b/pezcumulus/teyrchains/runtimes/testing/penpal/src/xcm_config.rs @@ -41,8 +41,8 @@ use super::{ TeyrchainSystem, WeightToFee, XcmpQueue, }; use crate::{BaseDeliveryFee, FeeAssetId, TransactionByteFee}; -use pez_assets_common::TrustBackedAssetsAsLocation; use core::marker::PhantomData; +use pez_assets_common::TrustBackedAssetsAsLocation; use pezframe_support::{ parameter_types, traits::{ diff --git a/pezcumulus/teyrchains/runtimes/testing/pezkuwichain-teyrchain/Cargo.toml b/pezcumulus/teyrchains/runtimes/testing/pezkuwichain-teyrchain/Cargo.toml index c40a4909..781ee1e5 100644 --- a/pezcumulus/teyrchains/runtimes/testing/pezkuwichain-teyrchain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/testing/pezkuwichain-teyrchain/Cargo.toml @@ -69,7 +69,7 @@ teyrchains-common = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", diff --git a/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/Cargo.toml b/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/Cargo.toml index e7e0d904..d1fbd423 100644 --- a/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/Cargo.toml +++ b/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/Cargo.toml @@ -79,7 +79,7 @@ pezcumulus-pezpallet-teyrchain-system = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", diff --git a/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/src/lib.rs b/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/src/lib.rs index ae87db12..6dac8703 100644 --- a/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/src/lib.rs +++ b/pezcumulus/teyrchains/runtimes/testing/yet-another-teyrchain/src/lib.rs @@ -79,8 +79,8 @@ pub use pezsp_runtime::BuildStorage; pub use pezsp_runtime::{Perbill, Permill}; use pezcumulus_primitives_core::AggregateMessageOrigin; //, ClaimQueueOffset, CoreSelector}; -use xcm::latest::prelude::BodyId; use teyrchains_common::{AccountId, Signature}; +use xcm::latest::prelude::BodyId; pub type SessionHandlers = (); diff --git a/pezcumulus/zombienet/zombienet-sdk-helpers/Cargo.toml b/pezcumulus/zombienet/zombienet-sdk-helpers/Cargo.toml index 7d798674..873aaae2 100644 --- a/pezcumulus/zombienet/zombienet-sdk-helpers/Cargo.toml +++ b/pezcumulus/zombienet/zombienet-sdk-helpers/Cargo.toml @@ -23,6 +23,6 @@ pezkuwi-zombienet-configuration = { workspace = true } [features] runtime-benchmarks = [ - "pezcumulus-primitives-core/runtime-benchmarks", - "pezkuwi-primitives/runtime-benchmarks", + "pezcumulus-primitives-core/runtime-benchmarks", + "pezkuwi-primitives/runtime-benchmarks", ] diff --git a/pezcumulus/zombienet/zombienet-sdk-helpers/src/lib.rs b/pezcumulus/zombienet/zombienet-sdk-helpers/src/lib.rs index c55d0bc2..2742c164 100644 --- a/pezcumulus/zombienet/zombienet-sdk-helpers/src/lib.rs +++ b/pezcumulus/zombienet/zombienet-sdk-helpers/src/lib.rs @@ -7,15 +7,6 @@ use codec::{Compact, Decode}; use futures::stream::StreamExt; use pezcumulus_primitives_core::{relay_chain, rpsr_digest::RPSR_CONSENSUS_ID}; use pezkuwi_primitives::{CandidateReceiptV2, Id as ParaId}; -use std::{ - cmp::max, - collections::{HashMap, HashSet}, - ops::Range, -}; -use tokio::{ - join, - time::{sleep, Duration}, -}; use pezkuwi_zombienet_sdk::subxt::{ self, blocks::Block, @@ -26,6 +17,15 @@ use pezkuwi_zombienet_sdk::subxt::{ utils::H256, OnlineClient, PezkuwiConfig, }; +use std::{ + cmp::max, + collections::{HashMap, HashSet}, + ops::Range, +}; +use tokio::{ + join, + time::{sleep, Duration}, +}; use pezkuwi_zombienet_sdk::{ tx_helper::{ChainUpgrade, RuntimeUpgradeOptions}, diff --git a/pezcumulus/zombienet/zombienet-sdk/Cargo.toml b/pezcumulus/zombienet/zombienet-sdk/Cargo.toml index c4388d1a..659bb982 100644 --- a/pezcumulus/zombienet/zombienet-sdk/Cargo.toml +++ b/pezcumulus/zombienet/zombienet-sdk/Cargo.toml @@ -33,9 +33,9 @@ rstest = { workspace = true } [features] zombie-ci = [] runtime-benchmarks = [ - "pezcumulus-zombienet-sdk-helpers/runtime-benchmarks", - "pezkuwi-primitives/runtime-benchmarks", - "pezsc-statement-store/runtime-benchmarks", - "pezsp-keyring/runtime-benchmarks", - "pezsp-statement-store/runtime-benchmarks", + "pezcumulus-zombienet-sdk-helpers/runtime-benchmarks", + "pezkuwi-primitives/runtime-benchmarks", + "pezsc-statement-store/runtime-benchmarks", + "pezsp-keyring/runtime-benchmarks", + "pezsp-statement-store/runtime-benchmarks", ] diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/multiple_blocks_per_slot.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/multiple_blocks_per_slot.rs index 30383960..c7be2e59 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/multiple_blocks_per_slot.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/multiple_blocks_per_slot.rs @@ -7,11 +7,11 @@ use crate::utils::initialize_network; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput, assign_cores}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfig, NetworkConfigBuilder, }; +use serde_json::json; const PARA_ID: u32 = 2400; diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/pov_recovery.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/pov_recovery.rs index b6cd7a6c..55b483d7 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/pov_recovery.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/pov_recovery.rs @@ -10,12 +10,12 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_para_is_registered, assert_para_throughput, assign_cores, }; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfig, NetworkConfigBuilder, RegistrationStrategy, }; +use serde_json::json; const PARA_ID: u32 = 2100; diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_authoring.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_authoring.rs index e73bcebd..4dd5a615 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_authoring.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_authoring.rs @@ -7,9 +7,9 @@ use std::time::Duration; use crate::utils::{initialize_network, BEST_BLOCK_METRIC}; use pezcumulus_zombienet_sdk_helpers::assign_cores; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{NetworkConfig, NetworkConfigBuilder}; +use serde_json::json; const PARA_ID_1: u32 = 2100; const PARA_ID_2: u32 = 2000; diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_rp_offset.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_rp_offset.rs index 357dd471..6310ffa8 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_rp_offset.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/slot_based_rp_offset.rs @@ -6,11 +6,11 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_relay_parent_offset, assign_cores}; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn elastic_scaling_slot_based_relay_parent_offset_test() -> Result<(), anyhow::Error> { diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/upgrade_to_3_cores.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/upgrade_to_3_cores.rs index 78ba13ad..ad6ce2b0 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/upgrade_to_3_cores.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/elastic_scaling/upgrade_to_3_cores.rs @@ -11,11 +11,11 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_para_throughput, assign_cores, runtime_upgrade, wait_for_upgrade, }; use pezkuwi_primitives::Id as ParaId; -use rstest::rstest; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfig, NetworkConfigBuilder, }; +use rstest::rstest; const PARA_ID: u32 = 2000; const WASM_WITH_ELASTIC_SCALING: &str = diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/migrate_solo.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/migrate_solo.rs index 3a42204a..56670dda 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/migrate_solo.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/migrate_solo.rs @@ -9,12 +9,12 @@ use crate::utils::{initialize_network, BEST_BLOCK_METRIC}; use pezcumulus_zombienet_sdk_helpers::assert_para_throughput; use pezkuwi_primitives::Id as ParaId; -use pezsp_core::{hexdisplay::AsBytesRef, Bytes}; use pezkuwi_zombienet_sdk::{ subxt::{self, dynamic::Value, tx::DynamicPayload, OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfig, NetworkConfigBuilder, RegistrationStrategy, }; +use pezsp_core::{hexdisplay::AsBytesRef, Bytes}; const PARA_ID: u32 = 2000; diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/pov_recovery.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/pov_recovery.rs index d320293a..e8796ba3 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/pov_recovery.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/pov_recovery.rs @@ -7,8 +7,6 @@ use crate::utils::{initialize_network, BEST_BLOCK_METRIC}; use pezcumulus_zombienet_sdk_helpers::{assert_para_is_registered, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; -use std::{sync::Arc, time::Duration}; use pezkuwi_zombienet_configuration::types::Arg; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ @@ -16,6 +14,8 @@ use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfig, NetworkConfigBuilder, RegistrationStrategy, }; +use serde_json::json; +use std::{sync::Arc, time::Duration}; const PARA_ID: u32 = 2000; diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store.rs index 491b4b9a..414a37ac 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store.rs @@ -5,8 +5,8 @@ // propagated to peers. use anyhow::anyhow; -use pezsp_core::{Bytes, Encode}; use pezkuwi_zombienet_sdk::{subxt::ext::pezkuwi_subxt_rpcs::rpc_params, NetworkConfigBuilder}; +use pezsp_core::{Bytes, Encode}; #[tokio::test(flavor = "multi_thread")] async fn statement_store() -> Result<(), anyhow::Error> { diff --git a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store_bench.rs b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store_bench.rs index efee303f..b9903742 100644 --- a/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store_bench.rs +++ b/pezcumulus/zombienet/zombienet-sdk/tests/zombie_ci/statement_store_bench.rs @@ -6,15 +6,15 @@ use anyhow::anyhow; use codec::{Decode, Encode}; use log::{debug, info, trace}; +use pezkuwi_zombienet_sdk::{ + subxt::{backend::rpc::RpcClient, ext::pezkuwi_subxt_rpcs::rpc_params}, + LocalFileSystem, Network, NetworkConfigBuilder, +}; use pezsc_statement_store::{DEFAULT_MAX_TOTAL_SIZE, DEFAULT_MAX_TOTAL_STATEMENTS}; use pezsp_core::{blake2_256, sr25519, Bytes, Pair}; use pezsp_statement_store::{Channel, Statement, Topic}; use std::{cell::Cell, collections::HashMap, time::Duration}; use tokio::time::timeout; -use pezkuwi_zombienet_sdk::{ - subxt::{backend::rpc::RpcClient, ext::pezkuwi_subxt_rpcs::rpc_params}, - LocalFileSystem, Network, NetworkConfigBuilder, -}; const GROUP_SIZE: u32 = 6; const PARTICIPANT_SIZE: u32 = GROUP_SIZE * 8333; // Target ~50,000 total diff --git a/pezkuwi/Cargo.toml b/pezkuwi/Cargo.toml index a60b1e9d..b6b23392 100644 --- a/pezkuwi/Cargo.toml +++ b/pezkuwi/Cargo.toml @@ -112,10 +112,10 @@ runtime-benchmarks = [ "pezkuwi-node-core-pvf/runtime-benchmarks", "pezkuwi-overseer/runtime-benchmarks", ] -try-runtime = ["pezkuwi-cli/try-runtime"] -fast-runtime = ["pezkuwi-cli/fast-runtime"] -runtime-metrics = ["pezkuwi-cli/runtime-metrics"] -pyroscope = ["pezkuwi-cli/pyroscope"] +try-runtime = [ "pezkuwi-cli/try-runtime" ] +fast-runtime = [ "pezkuwi-cli/fast-runtime" ] +runtime-metrics = [ "pezkuwi-cli/runtime-metrics" ] +pyroscope = [ "pezkuwi-cli/pyroscope" ] jemalloc-allocator = [ "dep:tikv-jemallocator", "pezkuwi-node-core-pvf-prepare-worker/jemalloc-allocator", @@ -125,8 +125,8 @@ jemalloc-allocator = [ # Generate the metadata hash needed for CheckMetadataHash # in the builtin test runtimes (zagros and pezkuwichain). -metadata-hash = ["pezkuwi-cli/metadata-hash"] +metadata-hash = [ "pezkuwi-cli/metadata-hash" ] # Enables timeout-based tests supposed to be run only in CI environment as they may be flaky # when run locally depending on system load -ci-only-tests = ["pezkuwi-node-core-pvf/ci-only-tests"] +ci-only-tests = [ "pezkuwi-node-core-pvf/ci-only-tests" ] diff --git a/pezkuwi/cli/Cargo.toml b/pezkuwi/cli/Cargo.toml index 708c9a59..8c717b83 100644 --- a/pezkuwi/cli/Cargo.toml +++ b/pezkuwi/cli/Cargo.toml @@ -47,10 +47,10 @@ pezsp-runtime = { workspace = true, default-features = true } bizinikiwi-build-script-utils = { workspace = true, default-features = true } [features] -default = ["cli", "db", "full-node"] -db = ["pezkuwi-service/db"] -metadata-hash = ["pezkuwi-service/metadata-hash"] -service = ["dep:pezkuwi-service"] +default = [ "cli", "db", "full-node" ] +db = [ "pezkuwi-service/db" ] +metadata-hash = [ "pezkuwi-service/metadata-hash" ] +service = [ "dep:pezkuwi-service" ] cli = [ "clap", "pezframe-benchmarking-cli", @@ -71,16 +71,16 @@ runtime-benchmarks = [ "pezsp-keyring/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", ] -full-node = ["pezkuwi-service/full-node"] -try-runtime = ["pezkuwi-service?/try-runtime", "pezsp-runtime/try-runtime"] -fast-runtime = ["pezkuwi-service/fast-runtime"] -pyroscope = ["dep:pyroscope", "pyroscope_pprofrs"] +full-node = [ "pezkuwi-service/full-node" ] +try-runtime = [ "pezkuwi-service?/try-runtime", "pezsp-runtime/try-runtime" ] +fast-runtime = [ "pezkuwi-service/fast-runtime" ] +pyroscope = [ "dep:pyroscope", "pyroscope_pprofrs" ] # Configure the native runtimes to use. -zagros-native = ["pezkuwi-service/zagros-native"] -pezkuwichain-native = ["pezkuwi-service/pezkuwichain-native"] +zagros-native = [ "pezkuwi-service/zagros-native" ] +pezkuwichain-native = [ "pezkuwi-service/pezkuwichain-native" ] -malus = ["full-node", "pezkuwi-service/malus"] +malus = [ "full-node", "pezkuwi-service/malus" ] runtime-metrics = [ "pezkuwi-node-metrics/runtime-metrics", "pezkuwi-service/runtime-metrics", diff --git a/pezkuwi/core-primitives/Cargo.toml b/pezkuwi/core-primitives/Cargo.toml index f67a2748..9c21cac7 100644 --- a/pezkuwi/core-primitives/Cargo.toml +++ b/pezkuwi/core-primitives/Cargo.toml @@ -19,6 +19,6 @@ pezsp-runtime = { workspace = true } scale-info = { features = ["derive"], workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-core/std", "pezsp-runtime/std", "scale-info/std"] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-core/std", "pezsp-runtime/std", "scale-info/std" ] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/pezkuwi/node/core/pvf/Cargo.toml b/pezkuwi/node/core/pvf/Cargo.toml index 1d24acbc..7336d2f0 100644 --- a/pezkuwi/node/core/pvf/Cargo.toml +++ b/pezkuwi/node/core/pvf/Cargo.toml @@ -77,7 +77,7 @@ pezsc-sysinfo = { workspace = true, default-features = true } [features] ci-only-tests = [] -jemalloc-allocator = ["pezkuwi-node-core-pvf-common/jemalloc-allocator"] +jemalloc-allocator = [ "pezkuwi-node-core-pvf-common/jemalloc-allocator" ] # This feature is used to export test code to other crates without putting it in the production build. test-utils = [ "dep:is_executable", diff --git a/pezkuwi/node/gum/Cargo.toml b/pezkuwi/node/gum/Cargo.toml index 8b9e4f07..b5dd48a0 100644 --- a/pezkuwi/node/gum/Cargo.toml +++ b/pezkuwi/node/gum/Cargo.toml @@ -21,4 +21,4 @@ pezkuwi-primitives = { features = [ tracing = { workspace = true, default-features = true } [features] -runtime-benchmarks = ["pezkuwi-primitives/runtime-benchmarks"] +runtime-benchmarks = [ "pezkuwi-primitives/runtime-benchmarks" ] diff --git a/pezkuwi/node/malus/Cargo.toml b/pezkuwi/node/malus/Cargo.toml index 31dd0718..bf409767 100644 --- a/pezkuwi/node/malus/Cargo.toml +++ b/pezkuwi/node/malus/Cargo.toml @@ -67,7 +67,7 @@ bizinikiwi-build-script-utils = { workspace = true, default-features = true } [features] default = [] -fast-runtime = ["pezkuwi-cli/fast-runtime"] +fast-runtime = [ "pezkuwi-cli/fast-runtime" ] runtime-benchmarks = [ "gum/runtime-benchmarks", "pezkuwi-cli/runtime-benchmarks", diff --git a/pezkuwi/node/network/collator-protocol/Cargo.toml b/pezkuwi/node/network/collator-protocol/Cargo.toml index 5e71bb86..5c768fc2 100644 --- a/pezkuwi/node/network/collator-protocol/Cargo.toml +++ b/pezkuwi/node/network/collator-protocol/Cargo.toml @@ -56,7 +56,7 @@ itertools = { workspace = true } [features] default = [] -experimental-collator-protocol = ["async-trait", "tokio"] +experimental-collator-protocol = [ "async-trait", "tokio" ] runtime-benchmarks = [ "gum/runtime-benchmarks", "pezkuwi-node-network-protocol/runtime-benchmarks", diff --git a/pezkuwi/node/overseer/Cargo.toml b/pezkuwi/node/overseer/Cargo.toml index 73a746ea..4f83b79a 100644 --- a/pezkuwi/node/overseer/Cargo.toml +++ b/pezkuwi/node/overseer/Cargo.toml @@ -39,10 +39,10 @@ pezkuwi-node-subsystem-test-helpers = { workspace = true } pezkuwi-primitives-test-helpers = { workspace = true } [features] -default = ["futures_channel"] -expand = ["orchestra/expand"] -futures_channel = ["metered/futures_channel", "orchestra/futures_channel"] -jemalloc-allocator = ["dep:tikv-jemalloc-ctl"] +default = [ "futures_channel" ] +expand = [ "orchestra/expand" ] +futures_channel = [ "metered/futures_channel", "orchestra/futures_channel" ] +jemalloc-allocator = [ "dep:tikv-jemalloc-ctl" ] runtime-benchmarks = [ "gum/runtime-benchmarks", "pezkuwi-node-metrics/runtime-benchmarks", diff --git a/pezkuwi/node/service/Cargo.toml b/pezkuwi/node/service/Cargo.toml index 5aab656c..e6ab1f01 100644 --- a/pezkuwi/node/service/Cargo.toml +++ b/pezkuwi/node/service/Cargo.toml @@ -146,8 +146,8 @@ pezsp-tracing = { workspace = true } tempfile = { workspace = true } [features] -default = ["db", "full-node"] -db = ["pezsc-service/rocksdb"] +default = [ "db", "full-node" ] +db = [ "pezsc-service/rocksdb" ] full-node = [ "kvdb-rocksdb", "parity-db", @@ -301,7 +301,7 @@ fast-runtime = [ "zagros-runtime?/fast-runtime", ] -malus = ["full-node"] +malus = [ "full-node" ] runtime-metrics = [ "pezkuwi-runtime-teyrchains/runtime-metrics", "pezkuwichain-runtime?/runtime-metrics", diff --git a/pezkuwi/node/subsystem-bench/Cargo.toml b/pezkuwi/node/subsystem-bench/Cargo.toml index e6cfd072..360e5188 100644 --- a/pezkuwi/node/subsystem-bench/Cargo.toml +++ b/pezkuwi/node/subsystem-bench/Cargo.toml @@ -102,7 +102,7 @@ strum = { features = ["derive"], workspace = true, default-features = true } [features] default = [] -memprofile = ["dep:tikv-jemallocator"] +memprofile = [ "dep:tikv-jemallocator" ] runtime-benchmarks = [ "gum/runtime-benchmarks", "pezkuwi-approval-distribution/runtime-benchmarks", diff --git a/pezkuwi/node/test/service/Cargo.toml b/pezkuwi/node/test/service/Cargo.toml index cf44dcd4..bc3656e2 100644 --- a/pezkuwi/node/test/service/Cargo.toml +++ b/pezkuwi/node/test/service/Cargo.toml @@ -60,7 +60,7 @@ pezpallet-balances = { workspace = true } tokio = { features = ["macros"], workspace = true, default-features = true } [features] -runtime-metrics = ["pezkuwi-test-runtime/runtime-metrics"] +runtime-metrics = [ "pezkuwi-test-runtime/runtime-metrics" ] runtime-benchmarks = [ "bizinikiwi-test-client/runtime-benchmarks", "pezframe-system/runtime-benchmarks", diff --git a/pezkuwi/node/zombienet-backchannel/Cargo.toml b/pezkuwi/node/zombienet-backchannel/Cargo.toml index a8b79292..6013b0a8 100644 --- a/pezkuwi/node/zombienet-backchannel/Cargo.toml +++ b/pezkuwi/node/zombienet-backchannel/Cargo.toml @@ -30,4 +30,4 @@ tokio = { features = [ tokio-tungstenite = { workspace = true } [features] -runtime-benchmarks = ["gum/runtime-benchmarks"] +runtime-benchmarks = [ "gum/runtime-benchmarks" ] diff --git a/pezkuwi/pezpallets/validator-pool/Cargo.toml b/pezkuwi/pezpallets/validator-pool/Cargo.toml index 8a7e77e1..43b197a6 100644 --- a/pezkuwi/pezpallets/validator-pool/Cargo.toml +++ b/pezkuwi/pezpallets/validator-pool/Cargo.toml @@ -43,7 +43,7 @@ pezsp-staking = { workspace = true, default-features = false } serde = { version = "1.0" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezkuwi/primitives/Cargo.toml b/pezkuwi/primitives/Cargo.toml index 2234688d..d324d511 100644 --- a/pezkuwi/primitives/Cargo.toml +++ b/pezkuwi/primitives/Cargo.toml @@ -39,7 +39,7 @@ pezkuwi-core-primitives = { workspace = true } pezkuwi-teyrchain-primitives = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bitvec/std", "bounded-collections/std", diff --git a/pezkuwi/runtime/common/Cargo.toml b/pezkuwi/runtime/common/Cargo.toml index 34258de4..0e9a0d7c 100644 --- a/pezkuwi/runtime/common/Cargo.toml +++ b/pezkuwi/runtime/common/Cargo.toml @@ -74,7 +74,7 @@ pezsp-keystore = { workspace = true, default-features = true } serde_json = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ "bitvec/std", diff --git a/pezkuwi/runtime/common/pez-slot-range-helper/Cargo.toml b/pezkuwi/runtime/common/pez-slot-range-helper/Cargo.toml index 4c0edbbc..9c2fea3b 100644 --- a/pezkuwi/runtime/common/pez-slot-range-helper/Cargo.toml +++ b/pezkuwi/runtime/common/pez-slot-range-helper/Cargo.toml @@ -19,6 +19,6 @@ paste = { workspace = true, default-features = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["codec/std", "pezsp-runtime/std"] -runtime-benchmarks = ["pezsp-runtime/runtime-benchmarks"] +default = [ "std" ] +std = [ "codec/std", "pezsp-runtime/std" ] +runtime-benchmarks = [ "pezsp-runtime/runtime-benchmarks" ] diff --git a/pezkuwi/runtime/metrics/Cargo.toml b/pezkuwi/runtime/metrics/Cargo.toml index 73906878..54a6625a 100644 --- a/pezkuwi/runtime/metrics/Cargo.toml +++ b/pezkuwi/runtime/metrics/Cargo.toml @@ -21,7 +21,7 @@ pezsp-tracing = { workspace = true } bs58 = { features = ["alloc"], workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bs58/std", "codec/std", @@ -29,7 +29,7 @@ std = [ "pezkuwi-primitives/std", "pezsp-tracing/std", ] -runtime-metrics = ["pezframe-benchmarking", "pezsp-tracing/with-tracing"] +runtime-metrics = [ "pezframe-benchmarking", "pezsp-tracing/with-tracing" ] runtime-benchmarks = [ "pezframe-benchmarking?/runtime-benchmarks", "pezkuwi-primitives/runtime-benchmarks", diff --git a/pezkuwi/runtime/pezkuwichain/Cargo.toml b/pezkuwi/runtime/pezkuwichain/Cargo.toml index 6003806d..ee21dc12 100644 --- a/pezkuwi/runtime/pezkuwichain/Cargo.toml +++ b/pezkuwi/runtime/pezkuwichain/Cargo.toml @@ -129,14 +129,14 @@ tokio = { features = ["macros"], workspace = true, default-features = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ - "pez-binary-merkle-tree/std", "bitvec/std", "bizinikiwi-wasm-builder", "codec/std", "log/std", + "pez-binary-merkle-tree/std", "pezframe-benchmarking?/std", "pezframe-election-provider-support/std", "pezframe-executive/std", @@ -226,8 +226,8 @@ std = [ "xcm/std", ] runtime-benchmarks = [ - "pez-binary-merkle-tree/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", + "pez-binary-merkle-tree/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-election-provider-support/runtime-benchmarks", "pezframe-executive/runtime-benchmarks", @@ -359,10 +359,10 @@ try-runtime = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # Set timing constants (e.g. session period) to faster versions to speed up testing. -fast-runtime = ["pezkuwichain-runtime-constants/fast-runtime"] +fast-runtime = [ "pezkuwichain-runtime-constants/fast-runtime" ] runtime-metrics = [ "pezkuwi-runtime-teyrchains/runtime-metrics", @@ -372,4 +372,4 @@ runtime-metrics = [ # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezkuwi/runtime/pezkuwichain/bridge-primitives/Cargo.toml b/pezkuwi/runtime/pezkuwichain/bridge-primitives/Cargo.toml index c9329a35..a95aa0ff 100644 --- a/pezkuwi/runtime/pezkuwichain/bridge-primitives/Cargo.toml +++ b/pezkuwi/runtime/pezkuwichain/bridge-primitives/Cargo.toml @@ -27,7 +27,7 @@ pezsp-api = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezbp-header-pez-chain/std", "pezbp-pezkuwi-core/std", diff --git a/pezkuwi/runtime/pezkuwichain/constants/Cargo.toml b/pezkuwi/runtime/pezkuwichain/constants/Cargo.toml index 11a90974..7678bde6 100644 --- a/pezkuwi/runtime/pezkuwichain/constants/Cargo.toml +++ b/pezkuwi/runtime/pezkuwichain/constants/Cargo.toml @@ -29,7 +29,7 @@ xcm = { workspace = true } xcm-builder = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezframe-support/std", "pezkuwi-primitives/std", diff --git a/pezkuwi/runtime/test-runtime/Cargo.toml b/pezkuwi/runtime/test-runtime/Cargo.toml index a4787f0e..4a9355f0 100644 --- a/pezkuwi/runtime/test-runtime/Cargo.toml +++ b/pezkuwi/runtime/test-runtime/Cargo.toml @@ -71,7 +71,7 @@ xcm-executor = { workspace = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] runtime-metrics = [ diff --git a/pezkuwi/runtime/test-runtime/constants/Cargo.toml b/pezkuwi/runtime/test-runtime/constants/Cargo.toml index 82685b61..fe745dd0 100644 --- a/pezkuwi/runtime/test-runtime/constants/Cargo.toml +++ b/pezkuwi/runtime/test-runtime/constants/Cargo.toml @@ -21,8 +21,8 @@ pezkuwi-primitives = { workspace = true } pezsp-runtime = { workspace = true } [features] -default = ["std"] -std = ["pezframe-support/std", "pezkuwi-primitives/std", "pezsp-runtime/std"] +default = [ "std" ] +std = [ "pezframe-support/std", "pezkuwi-primitives/std", "pezsp-runtime/std" ] runtime-benchmarks = [ "pezframe-support/runtime-benchmarks", "pezkuwi-primitives/runtime-benchmarks", diff --git a/pezkuwi/runtime/teyrchains/Cargo.toml b/pezkuwi/runtime/teyrchains/Cargo.toml index c8f448ac..6e1067a0 100644 --- a/pezkuwi/runtime/teyrchains/Cargo.toml +++ b/pezkuwi/runtime/teyrchains/Cargo.toml @@ -78,7 +78,7 @@ serde_json = { workspace = true, default-features = true } thousands = { workspace = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ "bitvec/std", diff --git a/pezkuwi/runtime/zagros/Cargo.toml b/pezkuwi/runtime/zagros/Cargo.toml index e5b90a0d..b3ba245d 100644 --- a/pezkuwi/runtime/zagros/Cargo.toml +++ b/pezkuwi/runtime/zagros/Cargo.toml @@ -135,13 +135,13 @@ tokio = { features = ["macros"], workspace = true, default-features = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ - "pez-binary-merkle-tree/std", "bitvec/std", "codec/std", "log/std", + "pez-binary-merkle-tree/std", "pezframe-benchmarking?/std", "pezframe-election-provider-support/std", "pezframe-executive/std", @@ -239,8 +239,8 @@ std = [ "zagros-runtime-constants/std", ] runtime-benchmarks = [ - "pez-binary-merkle-tree/runtime-benchmarks", "bizinikiwi-wasm-builder/runtime-benchmarks", + "pez-binary-merkle-tree/runtime-benchmarks", "pezframe-benchmarking/runtime-benchmarks", "pezframe-election-provider-support/runtime-benchmarks", "pezframe-executive/runtime-benchmarks", @@ -386,7 +386,7 @@ try-runtime = [ ] # Enable the metadata hash generation in the wasm builder. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] @@ -399,4 +399,4 @@ runtime-metrics = [ # 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 = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/pezkuwi/runtime/zagros/bridge-primitives/Cargo.toml b/pezkuwi/runtime/zagros/bridge-primitives/Cargo.toml index 808cc044..02bbecab 100644 --- a/pezkuwi/runtime/zagros/bridge-primitives/Cargo.toml +++ b/pezkuwi/runtime/zagros/bridge-primitives/Cargo.toml @@ -27,7 +27,7 @@ pezsp-api = { workspace = true } pezsp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezbp-header-pez-chain/std", "pezbp-pezkuwi-core/std", diff --git a/pezkuwi/runtime/zagros/constants/Cargo.toml b/pezkuwi/runtime/zagros/constants/Cargo.toml index 88499cf3..aacace57 100644 --- a/pezkuwi/runtime/zagros/constants/Cargo.toml +++ b/pezkuwi/runtime/zagros/constants/Cargo.toml @@ -29,7 +29,7 @@ xcm = { workspace = true } xcm-builder = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezframe-support/std", "pezkuwi-primitives/std", diff --git a/pezkuwi/teyrchain/Cargo.toml b/pezkuwi/teyrchain/Cargo.toml index a4c38294..d91f6d88 100644 --- a/pezkuwi/teyrchain/Cargo.toml +++ b/pezkuwi/teyrchain/Cargo.toml @@ -30,7 +30,7 @@ scale-info = { features = ["derive", "serde"], workspace = true } serde = { features = ["alloc", "derive"], workspace = true } [features] -default = ["std"] +default = [ "std" ] wasm-api = [] std = [ "bounded-collections/std", diff --git a/pezkuwi/teyrchain/test-teyrchains/adder/Cargo.toml b/pezkuwi/teyrchain/test-teyrchains/adder/Cargo.toml index f8532987..c63848ff 100644 --- a/pezkuwi/teyrchain/test-teyrchains/adder/Cargo.toml +++ b/pezkuwi/teyrchain/test-teyrchains/adder/Cargo.toml @@ -27,8 +27,8 @@ pezsp-io = { features = ["disable_allocator"], workspace = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["codec/std", "pezkuwi-teyrchain-primitives/std", "pezsp-io/std"] +default = [ "std" ] +std = [ "codec/std", "pezkuwi-teyrchain-primitives/std", "pezsp-io/std" ] runtime-benchmarks = [ "bizinikiwi-wasm-builder/runtime-benchmarks", "pezkuwi-teyrchain-primitives/runtime-benchmarks", diff --git a/pezkuwi/teyrchain/test-teyrchains/halt/Cargo.toml b/pezkuwi/teyrchain/test-teyrchains/halt/Cargo.toml index 55f91ba3..1c1cde5b 100644 --- a/pezkuwi/teyrchain/test-teyrchains/halt/Cargo.toml +++ b/pezkuwi/teyrchain/test-teyrchains/halt/Cargo.toml @@ -19,5 +19,5 @@ bizinikiwi-wasm-builder = { workspace = true, default-features = true } rustversion = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [] diff --git a/pezkuwi/teyrchain/test-teyrchains/undying/Cargo.toml b/pezkuwi/teyrchain/test-teyrchains/undying/Cargo.toml index e3d74612..14beeff1 100644 --- a/pezkuwi/teyrchain/test-teyrchains/undying/Cargo.toml +++ b/pezkuwi/teyrchain/test-teyrchains/undying/Cargo.toml @@ -29,7 +29,7 @@ pezsp-io = { features = ["disable_allocator"], workspace = true } bizinikiwi-wasm-builder = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", diff --git a/pezkuwi/xcm/Cargo.toml b/pezkuwi/xcm/Cargo.toml index 2ea95947..80b1567d 100644 --- a/pezkuwi/xcm/Cargo.toml +++ b/pezkuwi/xcm/Cargo.toml @@ -33,7 +33,7 @@ xcm-pez-procedural = { workspace = true, default-features = true } pezsp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] wasm-api = [] std = [ "bounded-collections/std", diff --git a/pezkuwi/xcm/docs/Cargo.toml b/pezkuwi/xcm/docs/Cargo.toml index 2c1ffaca..836808e0 100644 --- a/pezkuwi/xcm/docs/Cargo.toml +++ b/pezkuwi/xcm/docs/Cargo.toml @@ -41,9 +41,9 @@ test-log = { workspace = true } [features] runtime-benchmarks = [ - "pezframe/runtime-benchmarks", "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", + "pezframe/runtime-benchmarks", "pezkuwi-runtime-teyrchains/runtime-benchmarks", "pezpallet-balances/runtime-benchmarks", "pezpallet-message-queue/runtime-benchmarks", diff --git a/pezkuwi/xcm/pezpallet-xcm-benchmarks/Cargo.toml b/pezkuwi/xcm/pezpallet-xcm-benchmarks/Cargo.toml index dd47981d..adfbdc80 100644 --- a/pezkuwi/xcm/pezpallet-xcm-benchmarks/Cargo.toml +++ b/pezkuwi/xcm/pezpallet-xcm-benchmarks/Cargo.toml @@ -33,7 +33,7 @@ pezsp-tracing = { workspace = true, default-features = true } xcm = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking/std", diff --git a/pezkuwi/xcm/pezpallet-xcm/Cargo.toml b/pezkuwi/xcm/pezpallet-xcm/Cargo.toml index 199cb76f..b47a0939 100644 --- a/pezkuwi/xcm/pezpallet-xcm/Cargo.toml +++ b/pezkuwi/xcm/pezpallet-xcm/Cargo.toml @@ -45,7 +45,7 @@ pezsp-tracing = { workspace = true, default-features = true } # xcm-pez-simulator = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bounded-collections/std", "codec/std", @@ -80,7 +80,7 @@ runtime-benchmarks = [ "xcm-runtime-pezapis/runtime-benchmarks", "xcm/runtime-benchmarks", ] -test-utils = ["std"] +test-utils = [ "std" ] try-runtime = [ "pezframe-support/try-runtime", "pezframe-system/try-runtime", diff --git a/pezkuwi/xcm/pezpallet-xcm/precompiles/Cargo.toml b/pezkuwi/xcm/pezpallet-xcm/precompiles/Cargo.toml index efdc1628..f84727eb 100644 --- a/pezkuwi/xcm/pezpallet-xcm/precompiles/Cargo.toml +++ b/pezkuwi/xcm/pezpallet-xcm/precompiles/Cargo.toml @@ -39,7 +39,7 @@ xcm-builder = { workspace = true, default-features = true } xcm-pez-simulator = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezkuwi/xcm/xcm-builder/Cargo.toml b/pezkuwi/xcm/xcm-builder/Cargo.toml index e275dacb..f5c2bb72 100644 --- a/pezkuwi/xcm/xcm-builder/Cargo.toml +++ b/pezkuwi/xcm/xcm-builder/Cargo.toml @@ -50,7 +50,7 @@ primitive-types = { features = [ xcm-pez-simulator = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-support/runtime-benchmarks", "pezframe-system/runtime-benchmarks", diff --git a/pezkuwi/xcm/xcm-executor/Cargo.toml b/pezkuwi/xcm/xcm-executor/Cargo.toml index 22066811..885625ee 100644 --- a/pezkuwi/xcm/xcm-executor/Cargo.toml +++ b/pezkuwi/xcm/xcm-executor/Cargo.toml @@ -28,7 +28,7 @@ tracing = { workspace = true } xcm = { workspace = true } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "pezframe-benchmarking/runtime-benchmarks", "pezframe-support/runtime-benchmarks", diff --git a/pezkuwi/xcm/xcm-executor/integration-tests/Cargo.toml b/pezkuwi/xcm/xcm-executor/integration-tests/Cargo.toml index 857c22e5..9bc2e27c 100644 --- a/pezkuwi/xcm/xcm-executor/integration-tests/Cargo.toml +++ b/pezkuwi/xcm/xcm-executor/integration-tests/Cargo.toml @@ -34,7 +34,7 @@ xcm = { workspace = true } xcm-executor = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "pezframe-support/std", "pezframe-system/std", diff --git a/pezkuwi/xcm/xcm-runtime-pezapis/Cargo.toml b/pezkuwi/xcm/xcm-runtime-pezapis/Cargo.toml index 34570a08..a2bed79f 100644 --- a/pezkuwi/xcm/xcm-runtime-pezapis/Cargo.toml +++ b/pezkuwi/xcm/xcm-runtime-pezapis/Cargo.toml @@ -35,7 +35,7 @@ xcm-builder = { workspace = true } # xcm-pez-simulator = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-support/std", diff --git a/pezkuwi/zombienet-sdk-tests/tests/disabling/slashing.rs b/pezkuwi/zombienet-sdk-tests/tests/disabling/slashing.rs index 6c0a1154..2dbbf51c 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/disabling/slashing.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/disabling/slashing.rs @@ -11,14 +11,14 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_blocks_are_being_finalized, assert_para_throughput, wait_for_first_session_change, }; use pezkuwi_primitives::{BlockNumber, CandidateHash, DisputeState, Id as ParaId, SessionIndex}; -use serde_json::json; -use tokio::time::Duration; -use tokio_util::time::FutureExt; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; +use tokio::time::Duration; +use tokio_util::time::FutureExt; #[tokio::test(flavor = "multi_thread")] async fn dispute_past_session_slashing() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/basic_3cores.rs b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/basic_3cores.rs index 9bd16827..4863ec64 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/basic_3cores.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/basic_3cores.rs @@ -7,12 +7,12 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_para_throughput, create_assign_core_call}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn basic_3cores_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/doesnt_break_teyrchains.rs b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/doesnt_break_teyrchains.rs index 4b84830a..24ca12d1 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/doesnt_break_teyrchains.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/doesnt_break_teyrchains.rs @@ -10,13 +10,13 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_finality_lag, assert_para_throughput, create_assign_core_call, }; use pezkuwi_primitives::{CoreIndex, Id as ParaId}; -use serde_json::json; -use std::collections::{BTreeMap, VecDeque}; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; +use std::collections::{BTreeMap, VecDeque}; #[tokio::test(flavor = "multi_thread")] async fn doesnt_break_teyrchains_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_12cores.rs b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_12cores.rs index eb67a7c2..83f19fc6 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_12cores.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_12cores.rs @@ -12,13 +12,13 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_finality_lag, assert_para_throughput, create_assign_core_call, }; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn slot_based_12cores_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs index 3f717f91..45739315 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs @@ -10,12 +10,12 @@ use pezcumulus_zombienet_sdk_helpers::{ assert_finality_lag, assert_para_throughput, create_assign_core_call, }; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn slot_based_3cores_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/approval_voting_coalescing.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/approval_voting_coalescing.rs index ae294252..ead332a5 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/approval_voting_coalescing.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/approval_voting_coalescing.rs @@ -7,11 +7,11 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn approval_voting_coalescing_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/approved_peer_mixed_validators.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/approved_peer_mixed_validators.rs index a2e72114..451f1f77 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/approved_peer_mixed_validators.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/approved_peer_mixed_validators.rs @@ -11,12 +11,12 @@ use tokio::time::Duration; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn approved_peer_mixed_validators_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/async_backing_6_seconds_rate.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/async_backing_6_seconds_rate.rs index 6091c988..a8e2995f 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/async_backing_6_seconds_rate.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/async_backing_6_seconds_rate.rs @@ -7,11 +7,11 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn async_backing_6_seconds_rate_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/dispute_old_finalized.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/dispute_old_finalized.rs index 7c7abe57..d9a7a4c0 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/dispute_old_finalized.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/dispute_old_finalized.rs @@ -20,9 +20,9 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::assert_para_throughput; +use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use serde_json::json; use tokio::time::Duration; -use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; #[tokio::test(flavor = "multi_thread")] async fn dispute_old_finalized() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/duplicate_collations.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/duplicate_collations.rs index f5760b7f..56b91584 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/duplicate_collations.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/duplicate_collations.rs @@ -9,13 +9,13 @@ use tokio::time::Duration; use pezcumulus_zombienet_sdk_helpers::{assert_para_throughput, create_assign_core_call}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; const VALIDATOR_COUNT: u8 = 3; diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/shared_core_idle_teyrchain.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/shared_core_idle_teyrchain.rs index b0aa7631..cd27506a 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/shared_core_idle_teyrchain.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/shared_core_idle_teyrchain.rs @@ -8,12 +8,12 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{self, ext::scale_value::value, OnlineClient, PezkuwiConfig}, subxt_signer::sr25519::dev, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn shared_core_idle_teyrchain_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/spam_statement_distribution_requests.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/spam_statement_distribution_requests.rs index 99746ccd..2d2eb225 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/spam_statement_distribution_requests.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/spam_statement_distribution_requests.rs @@ -8,12 +8,12 @@ use tokio::time::Duration; use pezcumulus_zombienet_sdk_helpers::assert_para_throughput; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_orchestrator::network::node::LogLineCountOptions; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn spam_statement_distribution_requests_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/sync_backing.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/sync_backing.rs index 7a994ced..c6052218 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/sync_backing.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/sync_backing.rs @@ -7,11 +7,11 @@ use anyhow::anyhow; use pezcumulus_zombienet_sdk_helpers::{assert_finality_lag, assert_para_throughput}; use pezkuwi_primitives::Id as ParaId; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn sync_backing_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/functional/validator_disabling.rs b/pezkuwi/zombienet-sdk-tests/tests/functional/validator_disabling.rs index fe39f0df..6dbd55bd 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/functional/validator_disabling.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/functional/validator_disabling.rs @@ -8,11 +8,11 @@ use pezcumulus_zombienet_sdk_helpers::assert_para_throughput; use pezkuwi_primitives::{ BlockNumber, CandidateHash, DisputeState, SessionIndex, ValidatorId, ValidatorIndex, }; -use serde_json::json; use pezkuwi_zombienet_sdk::{ subxt::{OnlineClient, PezkuwiConfig}, NetworkConfigBuilder, }; +use serde_json::json; #[tokio::test(flavor = "multi_thread")] async fn validator_disabling_test() -> Result<(), anyhow::Error> { diff --git a/pezkuwi/zombienet-sdk-tests/tests/smoke/coretime_revenue.rs b/pezkuwi/zombienet-sdk-tests/tests/smoke/coretime_revenue.rs index c3f16523..b27bf348 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/smoke/coretime_revenue.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/smoke/coretime_revenue.rs @@ -29,10 +29,10 @@ use pezkuwichain::runtime_types::{ }; use pezkuwi_subxt::{events::StaticEvent, utils::AccountId32, OnlineClient, PezkuwiConfig}; +use pezkuwi_zombienet_sdk::{subxt_signer::sr25519::dev, NetworkConfigBuilder}; use serde_json::json; use std::{fmt::Display, sync::Arc}; use tokio::sync::RwLock; -use pezkuwi_zombienet_sdk::{subxt_signer::sr25519::dev, NetworkConfigBuilder}; use coretime_pezkuwichain::{ self as coretime_api, diff --git a/pezkuwi/zombienet-sdk-tests/tests/teyrchains/weights.rs b/pezkuwi/zombienet-sdk-tests/tests/teyrchains/weights.rs index ed3ec2fd..6b811faa 100644 --- a/pezkuwi/zombienet-sdk-tests/tests/teyrchains/weights.rs +++ b/pezkuwi/zombienet-sdk-tests/tests/teyrchains/weights.rs @@ -16,10 +16,6 @@ use pezkuwi_subxt::{ config::pezkuwi::PezkuwiExtrinsicParamsBuilder, tx::SubmittableTransaction, OnlineClient, PezkuwiConfig, }; -use pezpallet_revive::AddressMapper; -use pezsp_core::{H160, H256}; -use rand::Rng; -use std::str::FromStr; use pezkuwi_zombienet_sdk::{ subxt_signer::{ sr25519::{dev, Keypair}, @@ -27,6 +23,10 @@ use pezkuwi_zombienet_sdk::{ }, LocalFileSystem, Network, NetworkConfigBuilder, NetworkNode, }; +use pezpallet_revive::AddressMapper; +use pezsp_core::{H160, H256}; +use rand::Rng; +use std::str::FromStr; const KEYS_COUNT: usize = 6000; const CHUNK_SIZE: usize = 3000; diff --git a/templates/minimal/node/Cargo.toml b/templates/minimal/node/Cargo.toml index 2f1b1b73..15f6ba77 100644 --- a/templates/minimal/node/Cargo.toml +++ b/templates/minimal/node/Cargo.toml @@ -42,7 +42,7 @@ pezkuwi-sdk = { workspace = true, features = [ pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] } [features] -default = ["std"] +default = [ "std" ] std = [ "pez-minimal-template-runtime/std", "pezkuwi-sdk/std", diff --git a/templates/minimal/pezpallets/template/Cargo.toml b/templates/minimal/pezpallets/template/Cargo.toml index 2ca02925..23054dc1 100644 --- a/templates/minimal/pezpallets/template/Cargo.toml +++ b/templates/minimal/pezpallets/template/Cargo.toml @@ -26,7 +26,7 @@ pezframe-support = { workspace = true } pezframe-system = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/templates/minimal/runtime/Cargo.toml b/templates/minimal/runtime/Cargo.toml index 209e6988..82dd62fc 100644 --- a/templates/minimal/runtime/Cargo.toml +++ b/templates/minimal/runtime/Cargo.toml @@ -39,7 +39,7 @@ pezkuwi-sdk = { optional = true, workspace = true, features = [ ] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezkuwi-sdk/std", diff --git a/templates/solochain/node/Cargo.toml b/templates/solochain/node/Cargo.toml index fb69e9c3..afcd1943 100644 --- a/templates/solochain/node/Cargo.toml +++ b/templates/solochain/node/Cargo.toml @@ -68,10 +68,10 @@ pez-solochain-template-runtime = { workspace = true } bizinikiwi-build-script-utils = { workspace = true, default-features = true } [features] -default = ["std"] -std = ["pez-solochain-template-runtime/std"] +default = [ "std" ] +std = [ "pez-solochain-template-runtime/std" ] # Storage benchmarking support (optional) -storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"] +storage-benchmark = [ "pezframe-benchmarking-cli/storage-benchmark" ] # Dependencies that are only required if runtime benchmarking should be build. runtime-benchmarks = [ "bizinikiwi-frame-rpc-system/runtime-benchmarks", diff --git a/templates/solochain/pezpallets/template/Cargo.toml b/templates/solochain/pezpallets/template/Cargo.toml index 3a1778d7..0692e0ba 100644 --- a/templates/solochain/pezpallets/template/Cargo.toml +++ b/templates/solochain/pezpallets/template/Cargo.toml @@ -31,7 +31,7 @@ pezsp-io = { workspace = true, default-features = true } pezsp-runtime = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pezframe-benchmarking?/std", diff --git a/templates/solochain/runtime/Cargo.toml b/templates/solochain/runtime/Cargo.toml index bef04c46..fbe1a1ed 100644 --- a/templates/solochain/runtime/Cargo.toml +++ b/templates/solochain/runtime/Cargo.toml @@ -69,7 +69,7 @@ pezpallet-template = { workspace = true } bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", @@ -159,8 +159,8 @@ try-runtime = [ # generate the metadata hash and then a second time with the # `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash` # extension. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # A convenience feature for enabling things when doing a build # for an on-chain release. -on-chain-release-build = ["metadata-hash", "pezsp-api/disable-logging"] +on-chain-release-build = [ "metadata-hash", "pezsp-api/disable-logging" ] diff --git a/templates/teyrchain/node/Cargo.toml b/templates/teyrchain/node/Cargo.toml index 9fec53bc..b9901f46 100644 --- a/templates/teyrchain/node/Cargo.toml +++ b/templates/teyrchain/node/Cargo.toml @@ -41,7 +41,7 @@ pezframe-benchmarking-cli = { workspace = true, optional = true } pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] } [features] -default = ["std"] +default = [ "std" ] std = [ "log/std", "pezkuwi-sdk/std", @@ -52,8 +52,9 @@ runtime-benchmarks = [ "pezkuwi-sdk/runtime-benchmarks", "pezsp-runtime/runtime-benchmarks", "teyrchain-template-runtime/runtime-benchmarks", + "pezframe-benchmarking-cli?/runtime-benchmarks" ] -storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"] +storage-benchmark = [ "pezframe-benchmarking-cli/storage-benchmark" ] try-runtime = [ "pezkuwi-sdk/try-runtime", "pezsp-runtime/try-runtime", diff --git a/templates/teyrchain/pezpallets/template/Cargo.toml b/templates/teyrchain/pezpallets/template/Cargo.toml index 5eefa357..9d6248a3 100644 --- a/templates/teyrchain/pezpallets/template/Cargo.toml +++ b/templates/teyrchain/pezpallets/template/Cargo.toml @@ -28,7 +28,21 @@ pezframe-support = { workspace = true, default-features = false } pezframe-system = { workspace = true, default-features = false } [features] -default = ["std"] -runtime-benchmarks = ["pezframe/runtime-benchmarks"] -std = ["codec/std", "pezframe/std", "pezframe-support/std", "pezframe-system/std", "scale-info/std"] -try-runtime = ["pezframe/try-runtime"] +default = [ "std" ] +runtime-benchmarks = [ + "pezframe/runtime-benchmarks", + "pezframe-support/runtime-benchmarks", + "pezframe-system/runtime-benchmarks" +] +std = [ + "codec/std", + "pezframe-support/std", + "pezframe-system/std", + "pezframe/std", + "scale-info/std", +] +try-runtime = [ + "pezframe/try-runtime", + "pezframe-support/try-runtime", + "pezframe-system/try-runtime" +] diff --git a/templates/teyrchain/runtime/Cargo.toml b/templates/teyrchain/runtime/Cargo.toml index 9e322fea..4db09eb6 100644 --- a/templates/teyrchain/runtime/Cargo.toml +++ b/templates/teyrchain/runtime/Cargo.toml @@ -93,7 +93,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features docify = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "bizinikiwi-wasm-builder", "codec/std", @@ -131,8 +131,8 @@ try-runtime = [ # generate the metadata hash and then a second time with the # `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash` # extension. -metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"] +metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ] # A convenience feature for enabling things when doing a build # for an on-chain release. -on-chain-release-build = ["metadata-hash"] +on-chain-release-build = [ "metadata-hash" ] diff --git a/templates/teyrchain/runtime/src/configs/xcm_config.rs b/templates/teyrchain/runtime/src/configs/xcm_config.rs index 9e9a4e47..b2ec95e1 100644 --- a/templates/teyrchain/runtime/src/configs/xcm_config.rs +++ b/templates/teyrchain/runtime/src/configs/xcm_config.rs @@ -6,6 +6,7 @@ use crate::{ use pezkuwi_sdk::{xcm, xcm_builder, xcm_executor, *}; +use pezframe_support::traits::Disabled; use pezframe_support::{ parameter_types, traits::{ConstU32, Contains, Everything, Nothing}, @@ -13,7 +14,6 @@ use pezframe_support::{ }; use pezframe_system::EnsureRoot; use pezkuwi_runtime_common::impls::ToAuthor; -use pezframe_support::traits::Disabled; use pezkuwi_teyrchain_primitives::primitives::Sibling; use pezpallet_xcm::XcmPassthrough; use xcm::latest::prelude::*; diff --git a/umbrella/Cargo.toml b/umbrella/Cargo.toml index f529524f..96bb90dd 100644 --- a/umbrella/Cargo.toml +++ b/umbrella/Cargo.toml @@ -5,23 +5,23 @@ description = "Pezkuwi SDK umbrella crate - Kurdish blockchain SDK." license = "Apache-2.0" [features] -default = ["std"] +default = [ "std" ] std = [ "asset-test-pezutils?/std", + "bizinikiwi-bip39?/std", "pez-assets-common?/std", "pez-binary-merkle-tree?/std", - "bizinikiwi-bip39?/std", + "pez-slot-range-helper?/std", "pezbp-header-pez-chain?/std", "pezbp-messages?/std", "pezbp-pezkuwi-core?/std", "pezbp-relayers?/std", + "pezbp-runtime?/std", "pezbp-test-utils?/std", "pezbp-teyrchains?/std", "pezbp-xcm-bridge-hub-router?/std", "pezbp-xcm-bridge-hub?/std", "pezbridge-hub-common?/std", - "pez-slot-range-helper?/std", - "pezbp-runtime?/std", "pezbridge-hub-test-utils?/std", "pezbridge-runtime-common?/std", "pezcumulus-pezpallet-aura-ext?/std", @@ -52,13 +52,12 @@ std = [ "pezframe-system-benchmarking?/std", "pezframe-system-rpc-runtime-api?/std", "pezframe-system?/std", + "pezframe?/std", "pezkuwi-core-primitives?/std", "pezkuwi-primitives?/std", "pezkuwi-runtime-common?/std", "pezkuwi-runtime-metrics?/std", "pezkuwi-runtime-teyrchains?/std", - "pezframe?/std", - "ss58-registry?/std", "pezkuwi-subxt-core?/std", "pezkuwi-subxt-metadata?/std", "pezkuwi-subxt-signer?/std", @@ -226,39 +225,39 @@ std = [ "pezsp-version?/std", "pezsp-wasm-interface?/std", "pezsp-weights?/std", - "teyrchain-info?/std", - "xcm-builder?/std", - "xcm-executor?/std", - "xcm?/std", + "ss58-registry?/std", "testnet-teyrchains-constants?/std", + "teyrchain-info?/std", "teyrchains-common?/std", "teyrchains-runtimes-test-utils?/std", + "xcm-builder?/std", + "xcm-executor?/std", "xcm-runtime-pezapis?/std", + "xcm?/std", ] runtime-benchmarks = [ "asset-test-pezutils?/runtime-benchmarks", - "pez-assets-common?/runtime-benchmarks", - "pez-binary-merkle-tree?/runtime-benchmarks", "bizinikiwi-frame-rpc-support?/runtime-benchmarks", "bizinikiwi-frame-rpc-system?/runtime-benchmarks", "bizinikiwi-rpc-client?/runtime-benchmarks", "bizinikiwi-state-trie-migration-rpc?/runtime-benchmarks", "bizinikiwi-wasm-builder?/runtime-benchmarks", + "gum?/runtime-benchmarks", + "pez-assets-common?/runtime-benchmarks", + "pez-binary-merkle-tree?/runtime-benchmarks", + "pez-generate-bags?/runtime-benchmarks", + "pez-slot-range-helper?/runtime-benchmarks", + "pez-subkey?/runtime-benchmarks", "pezbp-header-pez-chain?/runtime-benchmarks", "pezbp-messages?/runtime-benchmarks", "pezbp-pezkuwi-core?/runtime-benchmarks", "pezbp-relayers?/runtime-benchmarks", + "pezbp-runtime?/runtime-benchmarks", "pezbp-test-utils?/runtime-benchmarks", "pezbp-teyrchains?/runtime-benchmarks", "pezbp-xcm-bridge-hub-router?/runtime-benchmarks", "pezbp-xcm-bridge-hub?/runtime-benchmarks", "pezbridge-hub-common?/runtime-benchmarks", - "remote-externalities?/runtime-benchmarks", - "pez-generate-bags?/runtime-benchmarks", - "pez-slot-range-helper?/runtime-benchmarks", - "pez-subkey?/runtime-benchmarks", - "gum?/runtime-benchmarks", - "pezbp-runtime?/runtime-benchmarks", "pezbridge-hub-test-utils?/runtime-benchmarks", "pezbridge-runtime-common?/runtime-benchmarks", "pezcumulus-pezpallet-aura-ext?/runtime-benchmarks", @@ -289,6 +288,7 @@ runtime-benchmarks = [ "pezframe-system-benchmarking?/runtime-benchmarks", "pezframe-system-rpc-runtime-api?/runtime-benchmarks", "pezframe-system?/runtime-benchmarks", + "pezframe?/runtime-benchmarks", "pezkuwi-approval-distribution?/runtime-benchmarks", "pezkuwi-availability-bitfield-distribution?/runtime-benchmarks", "pezkuwi-availability-distribution?/runtime-benchmarks", @@ -306,7 +306,6 @@ runtime-benchmarks = [ "pezkuwi-runtime-common?/runtime-benchmarks", "pezkuwi-runtime-metrics?/runtime-benchmarks", "pezkuwi-runtime-teyrchains?/runtime-benchmarks", - "pezframe?/runtime-benchmarks", "pezkuwi-statement-distribution?/runtime-benchmarks", "pezkuwi-statement-table?/runtime-benchmarks", "pezkuwi-teyrchain-primitives?/runtime-benchmarks", @@ -461,17 +460,107 @@ runtime-benchmarks = [ "pezsp-trie?/runtime-benchmarks", "pezsp-version-proc-macro?/runtime-benchmarks", "pezsp-version?/runtime-benchmarks", - "teyrchain-info?/runtime-benchmarks", - "xcm-builder?/runtime-benchmarks", - "xcm-executor?/runtime-benchmarks", - "xcm?/runtime-benchmarks", + "remote-externalities?/runtime-benchmarks", "testnet-teyrchains-constants?/runtime-benchmarks", + "teyrchain-info?/runtime-benchmarks", "teyrchains-common?/runtime-benchmarks", "teyrchains-runtimes-test-utils?/runtime-benchmarks", + "xcm-builder?/runtime-benchmarks", + "xcm-executor?/runtime-benchmarks", "xcm-pez-emulator?/runtime-benchmarks", "xcm-pez-procedural?/runtime-benchmarks", "xcm-pez-simulator?/runtime-benchmarks", "xcm-runtime-pezapis?/runtime-benchmarks", + "xcm?/runtime-benchmarks", + "pezcumulus-client-bootnodes?/runtime-benchmarks", + "pezcumulus-client-cli?/runtime-benchmarks", + "pezcumulus-client-collator?/runtime-benchmarks", + "pezcumulus-client-consensus-aura?/runtime-benchmarks", + "pezcumulus-client-consensus-common?/runtime-benchmarks", + "pezcumulus-client-consensus-proposer?/runtime-benchmarks", + "pezcumulus-client-consensus-relay-chain?/runtime-benchmarks", + "pezcumulus-client-network?/runtime-benchmarks", + "pezcumulus-client-pov-recovery?/runtime-benchmarks", + "pezcumulus-client-service?/runtime-benchmarks", + "pezcumulus-client-teyrchain-inherent?/runtime-benchmarks", + "pezcumulus-relay-chain-inprocess-interface?/runtime-benchmarks", + "pezcumulus-relay-chain-interface?/runtime-benchmarks", + "pezcumulus-relay-chain-minimal-node?/runtime-benchmarks", + "pezcumulus-relay-chain-rpc-interface?/runtime-benchmarks", + "pezcumulus-relay-chain-streams?/runtime-benchmarks", + "pezkuwi-cli?/runtime-benchmarks", + "pezkuwi-node-collation-generation?/runtime-benchmarks", + "pezkuwi-node-core-approval-voting?/runtime-benchmarks", + "pezkuwi-node-core-approval-voting-parallel?/runtime-benchmarks", + "pezkuwi-node-core-av-store?/runtime-benchmarks", + "pezkuwi-node-core-backing?/runtime-benchmarks", + "pezkuwi-node-core-bitfield-signing?/runtime-benchmarks", + "pezkuwi-node-core-candidate-validation?/runtime-benchmarks", + "pezkuwi-node-core-chain-api?/runtime-benchmarks", + "pezkuwi-node-core-chain-selection?/runtime-benchmarks", + "pezkuwi-node-core-dispute-coordinator?/runtime-benchmarks", + "pezkuwi-node-core-prospective-teyrchains?/runtime-benchmarks", + "pezkuwi-node-core-provisioner?/runtime-benchmarks", + "pezkuwi-node-core-pvf?/runtime-benchmarks", + "pezkuwi-node-core-pvf-checker?/runtime-benchmarks", + "pezkuwi-node-core-pvf-common?/runtime-benchmarks", + "pezkuwi-node-core-pvf-execute-worker?/runtime-benchmarks", + "pezkuwi-node-core-pvf-prepare-worker?/runtime-benchmarks", + "pezkuwi-node-core-runtime-api?/runtime-benchmarks", + "pezkuwi-node-core-teyrchains-inherent?/runtime-benchmarks", + "pezkuwi-node-metrics?/runtime-benchmarks", + "pezkuwi-node-network-protocol?/runtime-benchmarks", + "pezkuwi-node-subsystem?/runtime-benchmarks", + "pezkuwi-node-subsystem-types?/runtime-benchmarks", + "pezkuwi-node-subsystem-util?/runtime-benchmarks", + "pezkuwi-overseer?/runtime-benchmarks", + "pezkuwi-rpc?/runtime-benchmarks", + "pezkuwi-service?/runtime-benchmarks", + "pezsc-authority-discovery?/runtime-benchmarks", + "pezsc-basic-authorship?/runtime-benchmarks", + "pezsc-block-builder?/runtime-benchmarks", + "pezsc-chain-spec?/runtime-benchmarks", + "pezsc-cli?/runtime-benchmarks", + "pezsc-client-api?/runtime-benchmarks", + "pezsc-client-db?/runtime-benchmarks", + "pezsc-consensus?/runtime-benchmarks", + "pezsc-consensus-aura?/runtime-benchmarks", + "pezsc-consensus-babe?/runtime-benchmarks", + "pezsc-consensus-babe-rpc?/runtime-benchmarks", + "pezsc-consensus-beefy?/runtime-benchmarks", + "pezsc-consensus-beefy-rpc?/runtime-benchmarks", + "pezsc-consensus-epochs?/runtime-benchmarks", + "pezsc-consensus-grandpa?/runtime-benchmarks", + "pezsc-consensus-grandpa-rpc?/runtime-benchmarks", + "pezsc-consensus-manual-seal?/runtime-benchmarks", + "pezsc-consensus-pow?/runtime-benchmarks", + "pezsc-consensus-slots?/runtime-benchmarks", + "pezsc-executor?/runtime-benchmarks", + "pezsc-executor-wasmtime?/runtime-benchmarks", + "pezsc-informant?/runtime-benchmarks", + "pezsc-mixnet?/runtime-benchmarks", + "pezsc-network?/runtime-benchmarks", + "pezsc-network-common?/runtime-benchmarks", + "pezsc-network-gossip?/runtime-benchmarks", + "pezsc-network-light?/runtime-benchmarks", + "pezsc-network-statement?/runtime-benchmarks", + "pezsc-network-sync?/runtime-benchmarks", + "pezsc-network-transactions?/runtime-benchmarks", + "pezsc-offchain?/runtime-benchmarks", + "pezsc-rpc?/runtime-benchmarks", + "pezsc-rpc-api?/runtime-benchmarks", + "pezsc-rpc-server?/runtime-benchmarks", + "pezsc-rpc-spec-v2?/runtime-benchmarks", + "pezsc-runtime-utilities?/runtime-benchmarks", + "pezsc-service?/runtime-benchmarks", + "pezsc-statement-store?/runtime-benchmarks", + "pezsc-sync-state-rpc?/runtime-benchmarks", + "pezsc-sysinfo?/runtime-benchmarks", + "pezsc-tracing?/runtime-benchmarks", + "pezsc-transaction-pool?/runtime-benchmarks", + "pezsc-transaction-pool-api?/runtime-benchmarks", + "chain-spec-builder?/runtime-benchmarks", + "node-inspect?/runtime-benchmarks" ] try-runtime = [ "asset-test-pezutils?/try-runtime", @@ -489,11 +578,11 @@ try-runtime = [ "pezframe-executive?/try-runtime", "pezframe-support?/try-runtime", "pezframe-system?/try-runtime", + "pezframe?/try-runtime", "pezkuwi-cli?/try-runtime", "pezkuwi-omni-node-lib?/try-runtime", "pezkuwi-runtime-common?/try-runtime", "pezkuwi-runtime-teyrchains?/try-runtime", - "pezframe?/try-runtime", "pezkuwi-service?/try-runtime", "pezpallet-alliance?/try-runtime", "pezpallet-asset-conversion-ops?/try-runtime", @@ -655,22 +744,22 @@ with-tracing = [ "pezsp-tracing?/with-tracing", ] runtime-full = [ + "bizinikiwi-bip39", + "gum-proc-macro", "pez-assets-common", "pez-binary-merkle-tree", - "bizinikiwi-bip39", + "pez-ethereum-standards", + "pez-slot-range-helper", "pezbp-header-pez-chain", "pezbp-messages", "pezbp-pezkuwi-core", "pezbp-relayers", + "pezbp-runtime", "pezbp-test-utils", "pezbp-teyrchains", "pezbp-xcm-bridge-hub", "pezbp-xcm-bridge-hub-router", "pezbridge-hub-common", - "pez-ethereum-standards", - "pez-slot-range-helper", - "gum-proc-macro", - "pezbp-runtime", "pezbridge-runtime-common", "pezcumulus-pezpallet-aura-ext", "pezcumulus-pezpallet-dmp-queue", @@ -689,6 +778,7 @@ runtime-full = [ "pezcumulus-primitives-teyrchain-inherent", "pezcumulus-primitives-timestamp", "pezcumulus-primitives-utility", + "pezframe", "pezframe-benchmarking", "pezframe-benchmarking-pezpallet-pov", "pezframe-election-provider-solution-type", @@ -707,8 +797,6 @@ runtime-full = [ "pezkuwi-runtime-common", "pezkuwi-runtime-metrics", "pezkuwi-runtime-teyrchains", - "pezframe", - "ss58-registry", "pezkuwi-subxt-core", "pezkuwi-subxt-macro", "pezkuwi-subxt-metadata", @@ -884,16 +972,18 @@ runtime-full = [ "pezsp-version-proc-macro", "pezsp-wasm-interface", "pezsp-weights", + "ss58-registry", + "testnet-teyrchains-constants", "teyrchain-info", + "teyrchains-common", "xcm", "xcm-builder", "xcm-executor", - "testnet-teyrchains-constants", - "teyrchains-common", "xcm-pez-procedural", "xcm-runtime-pezapis", ] runtime = [ + "pezframe", "pezframe-benchmarking", "pezframe-benchmarking-pezpallet-pov", "pezframe-election-provider-solution-type", @@ -907,7 +997,6 @@ runtime = [ "pezframe-system", "pezframe-system-benchmarking", "pezframe-system-rpc-runtime-api", - "pezframe", "pezframe?/runtime", "pezkuwi-subxt?/runtime", ] @@ -916,16 +1005,15 @@ node = [ "bizinikiwi-build-script-utils", "bizinikiwi-frame-rpc-support", "bizinikiwi-frame-rpc-system", - "prometheus-endpoint", "bizinikiwi-rpc-client", "bizinikiwi-state-trie-migration-rpc", - "txtesttool", "bizinikiwi-wasm-builder", - "remote-externalities", + "chain-spec-builder", + "gum", + "node-inspect", "pez-fork-tree", "pez-generate-bags", "pez-subkey", - "gum", "pezbridge-hub-test-utils", "pezcumulus-client-bootnodes", "pezcumulus-client-cli", @@ -993,6 +1081,12 @@ node = [ "pezkuwi-subxt-rpcs", "pezkuwi-subxt-utils-fetchmetadata", "pezkuwi-subxt-utils-stripmetadata", + "pezkuwi-zombienet-configuration", + "pezkuwi-zombienet-orchestrator", + "pezkuwi-zombienet-prom-metrics-parser", + "pezkuwi-zombienet-provider", + "pezkuwi-zombienet-sdk", + "pezkuwi-zombienet-support", "pezmmr-gadget", "pezmmr-rpc", # "pezpallet-contracts-mock-network", # Test-only crate @@ -1058,19 +1152,14 @@ node = [ "pezsp-maybe-compressed-blob", "pezsp-panic-handler", "pezsp-rpc", - "chain-spec-builder", - "node-inspect", - "tracking-allocator", + "prometheus-endpoint", + "remote-externalities", "std", "teyrchains-runtimes-test-utils", + "tracking-allocator", + "txtesttool", "xcm-pez-emulator", "xcm-pez-simulator", - "pezkuwi-zombienet-configuration", - "pezkuwi-zombienet-orchestrator", - "pezkuwi-zombienet-prom-metrics-parser", - "pezkuwi-zombienet-provider", - "pezkuwi-zombienet-sdk", - "pezkuwi-zombienet-support", ] tuples-96 = [ "pezframe-support-procedural?/tuples-96", diff --git a/vendor/pezkuwi-subxt/codegen/Cargo.toml b/vendor/pezkuwi-subxt/codegen/Cargo.toml index 28b40e7b..8289cf2d 100644 --- a/vendor/pezkuwi-subxt/codegen/Cargo.toml +++ b/vendor/pezkuwi-subxt/codegen/Cargo.toml @@ -13,7 +13,7 @@ description = "Generate an API for interacting with a Pezkuwi/Bizinikiwi node fr [features] default = [] -web = ["getrandom/js"] +web = [ "getrandom/js" ] [dependencies] codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] } diff --git a/vendor/pezkuwi-subxt/core/Cargo.toml b/vendor/pezkuwi-subxt/core/Cargo.toml index 1a833db5..4b55392b 100644 --- a/vendor/pezkuwi-subxt/core/Cargo.toml +++ b/vendor/pezkuwi-subxt/core/Cargo.toml @@ -15,7 +15,7 @@ description = "A no-std compatible subset of Subxt's functionality" keywords = ["extrinsic", "no-std", "parity", "subxt"] [features] -default = ["std"] +default = [ "std" ] std = [ "bitvec/std", "blake2/std", diff --git a/vendor/pezkuwi-subxt/lightclient/Cargo.toml b/vendor/pezkuwi-subxt/lightclient/Cargo.toml index f396afe3..3fed8944 100644 --- a/vendor/pezkuwi-subxt/lightclient/Cargo.toml +++ b/vendor/pezkuwi-subxt/lightclient/Cargo.toml @@ -18,32 +18,27 @@ keywords = ["bizinikiwi", "blockchain", "parity"] workspace = true [features] -default = ["native"] +default = [ "native" ] # Enable this for native (ie non web/wasm builds). # Exactly 1 of "web" and "native" is expected. -native = [ - "smoldot-light/std", - "tokio/rt", -] +native = [ "smoldot-light/std", "tokio/rt" ] # Enable this for web/wasm builds. # Exactly 1 of "web" and "native" is expected. web = [ - "getrandom/js", - "smoldot/std", - # For the light-client platform. "futures-timer/wasm-bindgen", - "pin-project", - "wasm-bindgen-futures", - "web-time", - + "getrandom/js", # For websocket. "js-sys", + "pin-project", "send_wrapper", + "smoldot/std", "wasm-bindgen", + "wasm-bindgen-futures", "web-sys", + "web-time", ] [dependencies] diff --git a/vendor/pezkuwi-subxt/macro/Cargo.toml b/vendor/pezkuwi-subxt/macro/Cargo.toml index 133434e6..68c8599f 100644 --- a/vendor/pezkuwi-subxt/macro/Cargo.toml +++ b/vendor/pezkuwi-subxt/macro/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true description = "Generate types and helpers for interacting with Bizinikiwi runtimes." [features] -web = ["pezkuwi-subxt-codegen/web"] +web = [ "pezkuwi-subxt-codegen/web" ] runtime-wasm-path = [ "pezsc-executor", "pezsc-executor-common", @@ -22,7 +22,7 @@ runtime-wasm-path = [ "pezsp-maybe-compressed-blob", "pezsp-state-machine", ] -runtime-metadata-insecure-url = ["pezkuwi-subxt-utils-fetchmetadata/url"] +runtime-metadata-insecure-url = [ "pezkuwi-subxt-utils-fetchmetadata/url" ] [lib] proc-macro = true diff --git a/vendor/pezkuwi-subxt/metadata/Cargo.toml b/vendor/pezkuwi-subxt/metadata/Cargo.toml index 65b7f780..ecc4db53 100644 --- a/vendor/pezkuwi-subxt/metadata/Cargo.toml +++ b/vendor/pezkuwi-subxt/metadata/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true description = "Command line utilities for checking metadata compatibility between nodes." [features] -default = ["legacy", "std"] +default = [ "legacy", "std" ] std = [ "bitvec/std", "codec/std", diff --git a/vendor/pezkuwi-subxt/rpcs/Cargo.toml b/vendor/pezkuwi-subxt/rpcs/Cargo.toml index 7bc27259..8ad31312 100644 --- a/vendor/pezkuwi-subxt/rpcs/Cargo.toml +++ b/vendor/pezkuwi-subxt/rpcs/Cargo.toml @@ -15,12 +15,12 @@ description = "Make RPC calls to Bizinikiwi based nodes" keywords = ["parity", "rpcs", "subxt"] [features] -default = ["jsonrpsee", "native"] +default = [ "jsonrpsee", "native" ] -subxt = ["dep:pezkuwi-subxt-core"] -jsonrpsee = ["dep:jsonrpsee", "dep:tokio-util"] +subxt = [ "dep:pezkuwi-subxt-core" ] +jsonrpsee = [ "dep:jsonrpsee", "dep:tokio-util" ] -unstable-light-client = ["dep:pezkuwi-subxt-lightclient"] +unstable-light-client = [ "dep:pezkuwi-subxt-lightclient" ] reconnecting-rpc-client = [ "dep:finito", @@ -29,10 +29,7 @@ reconnecting-rpc-client = [ "tokio/sync", ] -mock-rpc-client = [ - "dep:tokio", - "tokio/sync", -] +mock-rpc-client = [ "dep:tokio", "tokio/sync" ] # Enable this for native (ie non web/wasm builds). # Exactly 1 of "web" and "native" is expected. diff --git a/vendor/pezkuwi-subxt/signer/Cargo.toml b/vendor/pezkuwi-subxt/signer/Cargo.toml index 922d3d9f..e6a1c526 100644 --- a/vendor/pezkuwi-subxt/signer/Cargo.toml +++ b/vendor/pezkuwi-subxt/signer/Cargo.toml @@ -15,7 +15,7 @@ description = "Sign extrinsics to be submitted by Subxt" keywords = ["extrinsic", "parity", "signer", "subxt"] [features] -default = ["ecdsa", "sr25519", "std", "subxt"] +default = [ "ecdsa", "sr25519", "std", "subxt" ] std = [ "base64?/std", "bip32?/std", @@ -45,9 +45,9 @@ std = [ # corresponding features. Note: I had more difficulties getting # ecdsa compiling to WASM on my mac; following this comment helped: # https://github.com/rust-bitcoin/rust-bitcoin/issues/930#issuecomment-1215538699 -sr25519 = ["schnorrkel"] -ecdsa = ["secp256k1"] -unstable-eth = ["bip32", "ecdsa", "keccak-hash", "secp256k1"] +sr25519 = [ "schnorrkel" ] +ecdsa = [ "secp256k1" ] +unstable-eth = [ "bip32", "ecdsa", "keccak-hash", "secp256k1" ] # Enable support for loading key pairs from pezkuwi-js json. pezkuwi-js-compat = [ @@ -63,11 +63,11 @@ pezkuwi-js-compat = [ # Make the keypair algorithms here compatible with Subxt's Signer trait, # so that they can be used to sign transactions for compatible chains. -subxt = ["dep:pezkuwi-subxt-core"] +subxt = [ "dep:pezkuwi-subxt-core" ] # The getrandom package is used via schnorrkel. We need to enable the JS # feature on it if compiling for the web. -web = ["getrandom/js"] +web = [ "getrandom/js" ] [dependencies] bip32 = { workspace = true, features = ["alloc", "secp256k1"], optional = true } diff --git a/vendor/pezkuwi-subxt/subxt/Cargo.toml b/vendor/pezkuwi-subxt/subxt/Cargo.toml index 99fffa01..b4dfb66b 100644 --- a/vendor/pezkuwi-subxt/subxt/Cargo.toml +++ b/vendor/pezkuwi-subxt/subxt/Cargo.toml @@ -20,7 +20,7 @@ workspace = true [features] # For dev and documentation reasons we enable more features than are often desired. # it's recommended to use `--no-default-features` and then select what you need. -default = ["jsonrpsee", "native"] +default = [ "jsonrpsee", "native" ] # Enable this for native (ie non web/wasm builds). # Exactly 1 of "web" and "native" is expected. @@ -47,18 +47,14 @@ web = [ # # For instance `wasm-bindgen-futures` panics if the platform isn't wasm32 and # similar for tokio that requires a tokio runtime to be initialized. -runtime = ["tokio/rt", "wasm-bindgen-futures"] +runtime = [ "tokio/rt", "wasm-bindgen-futures" ] # Enable this to use the reconnecting rpc client -reconnecting-rpc-client = ["pezkuwi-subxt-rpcs/reconnecting-rpc-client"] +reconnecting-rpc-client = [ "pezkuwi-subxt-rpcs/reconnecting-rpc-client" ] # Enable this to use jsonrpsee, which enables the jsonrpsee RPC client, and # a couple of util functions which rely on jsonrpsee. -jsonrpsee = [ - "dep:jsonrpsee", - "pezkuwi-subxt-rpcs/jsonrpsee", - "runtime", -] +jsonrpsee = [ "dep:jsonrpsee", "pezkuwi-subxt-rpcs/jsonrpsee", "runtime" ] # Enable this to fetch and utilize the latest unstable metadata from a node. # The unstable metadata is subject to breaking changes and the subxt might @@ -74,7 +70,7 @@ unstable-light-client = [ ] # Activate this to expose the ability to generate metadata from Wasm runtime files. -runtime-wasm-path = ["pezkuwi-subxt-macro/runtime-wasm-path"] +runtime-wasm-path = [ "pezkuwi-subxt-macro/runtime-wasm-path" ] [dependencies] async-trait = { workspace = true } diff --git a/vendor/pezkuwi-subxt/utils/fetch-metadata/Cargo.toml b/vendor/pezkuwi-subxt/utils/fetch-metadata/Cargo.toml index 5e9ebb0d..8129ec18 100644 --- a/vendor/pezkuwi-subxt/utils/fetch-metadata/Cargo.toml +++ b/vendor/pezkuwi-subxt/utils/fetch-metadata/Cargo.toml @@ -14,7 +14,7 @@ homepage.workspace = true description = "subxt utility to fetch metadata" [features] -url = ["dep:jsonrpsee", "dep:tokio", "dep:url", "frame-metadata"] +url = [ "dep:jsonrpsee", "dep:tokio", "dep:url", "frame-metadata" ] [dependencies] codec = { package = "parity-scale-codec", workspace = true, features = ["derive", "std"] } diff --git a/vendor/ss58-registry/Cargo.toml b/vendor/ss58-registry/Cargo.toml index db761653..05a3ede4 100644 --- a/vendor/ss58-registry/Cargo.toml +++ b/vendor/ss58-registry/Cargo.toml @@ -12,12 +12,8 @@ repository.workspace = true bench = false [features] -default = ["std"] -std = [ - "num-format", - "serde/std", - "serde_json/std", -] +default = [ "std" ] +std = [ "num-format", "serde/std", "serde_json/std" ] [dependencies] num-format = { version = "0.4.3", optional = true }