fix: resolve pez-kitchensink-runtime compilation errors
Umbrella Crate Fixes: - Add pezpallet-root-testing to umbrella (std, try-runtime, runtime-full) - Add pezpallet-xcm-benchmarks to umbrella (std, runtime-benchmarks, runtime-full) - Add re-exports in umbrella/src/lib.rs for both crates getrandom WASM Fix: - Move subxt crates from runtime-full to node feature - Prevents getrandom dependency leak into WASM builds Vendor Updates: - Fix pezkuwi-subxt for web/wasm target compatibility - Update pezkuwi-zombienet-sdk keystore imports Documentation: - Update WORKFLOW_PLAN.md with completed tasks - Update REBRAND_PROGRESS.md with umbrella fixes - Remove obsolete tracking files
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
# Polkadot SDK Issue Tracking
|
||||
|
||||
Bu dosya, pezkuwi-sdk kodunda referans verilen Polkadot SDK issue'larını listeler.
|
||||
Her biri için kendi repomuzda bir tracking issue açılmalı.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Her Polkadot SDK issue için `pezkuwichain/pezkuwi-sdk` reposunda yeni issue aç
|
||||
2. Issue açıklaması: "Track Polkadot SDK issue #XXX"
|
||||
3. Bot haftalık olarak Polkadot'u tarar ve issue durumlarını günceller
|
||||
4. Discord'a bildirim gönderilir
|
||||
|
||||
## Toplu Issue Oluşturma Scripti
|
||||
|
||||
```bash
|
||||
# GitHub CLI ile toplu issue oluşturma örneği
|
||||
for issue_num in 2 3 4 5 7 8 10 11 12 ...; do
|
||||
gh issue create \
|
||||
--repo pezkuwichain/pezkuwi-sdk \
|
||||
--title "Track Polkadot SDK #$issue_num" \
|
||||
--body "This issue tracks upstream changes in https://github.com/paritytech/polkadot-sdk/issues/$issue_num"
|
||||
done
|
||||
```
|
||||
|
||||
## Issue Listesi (143 adet)
|
||||
|
||||
| Pezkuwi Issue # | Polkadot SDK Issue # | Context |
|
||||
|-----------------|---------------------|---------|
|
||||
| TBD | #2 | bizinikiwi/pezframe/assets/src/mock.rs - Thread local vars |
|
||||
| TBD | #3 | templates/minimal/runtime/src/lib.rs |
|
||||
| TBD | #4 | bizinikiwi/pezframe/nomination-pools |
|
||||
| TBD | #5 | election-provider-support - max voters |
|
||||
| TBD | #7 | network-gossip - DoS protection |
|
||||
| TBD | #8 | state-trie-migration - storage |
|
||||
| TBD | #10 | election-provider-multi-phase |
|
||||
| TBD | #11 | pezframe/support migrations |
|
||||
| TBD | #12 | client/service |
|
||||
| TBD | #13 | trait_based_programming docs |
|
||||
| TBD | #14 | remote-externalities CI errors |
|
||||
| TBD | #15 | network service - unimplemented |
|
||||
| TBD | #16 | election-provider-multi-phase |
|
||||
| TBD | #17 | pezframe_system_accounts docs |
|
||||
| TBD | #18 | blockchain backend time complexity |
|
||||
| TBD | #19 | offchain storage |
|
||||
| TBD | #20 | network sync tests |
|
||||
| TBD | #21 | staking ledger |
|
||||
| TBD | #22 | rpc-api system call future |
|
||||
| TBD | #23 | async-backing / slot-based collator |
|
||||
| TBD | #24 | network protocol Status |
|
||||
| TBD | #25 | templates (minimal, solochain) |
|
||||
| TBD | #26 | rpc-api system |
|
||||
| TBD | #27 | network service conflicts |
|
||||
| TBD | #28 | staking stash account |
|
||||
| TBD | #29 | tracing types |
|
||||
| TBD | #31 | consensus inherents |
|
||||
| TBD | #32 | network sync block request |
|
||||
| TBD | #33 | lottery pezpallet |
|
||||
| TBD | #34 | society pezpallet |
|
||||
| TBD | #35-190 | (remaining issues to be mapped) |
|
||||
|
||||
## Öncelik Sıralaması
|
||||
|
||||
**P0 - Kritik (CI'ı etkileyen):**
|
||||
- #97, #143, #177 (OmniNode)
|
||||
- #174-186 (configuration)
|
||||
|
||||
**P1 - Önemli (Core functionality):**
|
||||
- #23 (async-backing)
|
||||
- #15, #27 (network)
|
||||
- #21 (staking)
|
||||
|
||||
**P2 - Normal:**
|
||||
- Diğer tüm issue'lar
|
||||
|
||||
---
|
||||
*Son güncelleme: 2025-12-23*
|
||||
@@ -1,8 +1,9 @@
|
||||
# Rebrand İlerleme Listesi
|
||||
|
||||
**Son Güncelleme:** 2025-12-19
|
||||
**Son Güncelleme:** 2024-12-23
|
||||
**Toplam Crate:** 76 (REBRAND_MAP'ten)
|
||||
**Rebrand Durumu:** 75/76 tamamlandı (98.7%)
|
||||
**Derleme Durumu:** ✅ WORKSPACE TAM DERLENİYOR
|
||||
|
||||
## Durum Açıklamaları
|
||||
- ⏳ Bekliyor
|
||||
@@ -159,6 +160,14 @@
|
||||
|
||||
## Log
|
||||
|
||||
### 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
|
||||
|
||||
@@ -1,205 +0,0 @@
|
||||
# Upstream Tracking Issues
|
||||
|
||||
Bu dosya, pezkuwi-sdk'da referans verilen TÜM upstream kaynakları listeler.
|
||||
Her biri için `pezkuwichain/pezkuwi-sdk` reposunda bir tracking issue açılmalı.
|
||||
|
||||
## Issue Template
|
||||
|
||||
```markdown
|
||||
## Upstream Reference Tracking
|
||||
|
||||
**Upstream URL:** https://github.com/paritytech/polkadot-sdk/issues/XXX
|
||||
**Type:** Issue / Repository / Documentation
|
||||
|
||||
---
|
||||
|
||||
### Status Tracking:
|
||||
|
||||
- [ ] Pending - Upstream not yet resolved
|
||||
- [ ] Resolved - Fix merged upstream
|
||||
- [ ] Evaluated - Assessed if needed for PezkuwiChain
|
||||
- [ ] Applied - Fix applied to our chain
|
||||
- [ ] Closed - Upstream issue closed
|
||||
- [ ] Skipped - Not relevant for us
|
||||
|
||||
**Last Check:** YYYY-MM-DD
|
||||
**Next Check:** YYYY-MM-DD
|
||||
|
||||
---
|
||||
|
||||
### Notes:
|
||||
(Add context about this upstream reference)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## BÖLÜM 1: Polkadot SDK Issues (143 adet)
|
||||
|
||||
Bu issue'lar kodda `https://github.com/pezkuwichain/pezkuwi-sdk/issues/XXX` olarak referans verilmiş.
|
||||
Gerçek upstream URL: `https://github.com/paritytech/polkadot-sdk/issues/XXX`
|
||||
|
||||
### Yüksek Öncelikli (8+ referans)
|
||||
| Pezkuwi Issue # | Upstream # | Referans Sayısı | Açıklama |
|
||||
|-----------------|------------|-----------------|----------|
|
||||
| TBD | 23 | 8 | async-backing, slot-based collator |
|
||||
| TBD | 40 | 8 | (context needed) |
|
||||
|
||||
### Orta Öncelikli (4-7 referans)
|
||||
| Pezkuwi Issue # | Upstream # | Referans Sayısı |
|
||||
|-----------------|------------|-----------------|
|
||||
| TBD | 160 | 7 |
|
||||
| TBD | 149 | 5 |
|
||||
| TBD | 147 | 5 |
|
||||
| TBD | 128 | 5 |
|
||||
| TBD | 122 | 5 |
|
||||
| TBD | 102 | 5 |
|
||||
| TBD | 96 | 4 |
|
||||
| TBD | 25 | 4 |
|
||||
| TBD | 158 | 4 |
|
||||
| TBD | 15 | 4 |
|
||||
|
||||
### Düşük Öncelikli (1-3 referans)
|
||||
Toplam 131 adet daha issue var (2-190 arası).
|
||||
|
||||
Tam liste için çalıştır:
|
||||
```bash
|
||||
grep -rho "github.com/pezkuwichain/pezkuwi-sdk/issues/[0-9]*" --include="*.rs" \
|
||||
| grep -v target | grep -v vendor \
|
||||
| sed 's|github.com/pezkuwichain/pezkuwi-sdk/issues/||' \
|
||||
| sort -n | uniq
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## BÖLÜM 2: External Repository References
|
||||
|
||||
### A. xcm-format (Polkadot Fellows)
|
||||
**Upstream:** https://github.com/polkadot-fellows/xcm-format
|
||||
**Referans sayısı:** 8
|
||||
|
||||
Dosyalar:
|
||||
- pezbridges/snowbridge/primitives/inbound-queue/src/v1.rs
|
||||
- pezkuwi/xcm/docs/src/lib.rs
|
||||
- pezkuwi/xcm/docs/src/fundamentals.rs
|
||||
- docs/sdk/src/pezkuwi_sdk/xcm.rs
|
||||
|
||||
### B. try-runtime-cli
|
||||
**Upstream:** https://github.com/paritytech/try-runtime-cli
|
||||
**Referans sayısı:** 2
|
||||
|
||||
### C. trie
|
||||
**Upstream:** https://github.com/paritytech/trie
|
||||
**Referans sayısı:** 1
|
||||
|
||||
### D. parity-db
|
||||
**Upstream:** https://github.com/paritytech/parity-db
|
||||
**Referans sayısı:** 3
|
||||
|
||||
### E. parity-common
|
||||
**Upstream:** https://github.com/paritytech/parity-common
|
||||
**Referans sayısı:** 1
|
||||
|
||||
### F. arkworks-extensions
|
||||
**Upstream:** https://github.com/paritytech/arkworks-extensions
|
||||
**Referans sayısı:** 1
|
||||
|
||||
### G. chainextension-registry
|
||||
**Upstream:** https://github.com/parity/chainextension-registry (verify)
|
||||
**Referans sayısı:** 2
|
||||
|
||||
### H. polkadot-blockchain-academy
|
||||
**Upstream:** https://github.com/polkadot-blockchain-academy
|
||||
**Referans sayısı:** 2
|
||||
|
||||
### I. srtool
|
||||
**Upstream:** https://github.com/paritytech/srtool
|
||||
**Referans sayısı:** (verify count)
|
||||
|
||||
### J. rustc-rv32e-toolchain
|
||||
**Upstream:** https://github.com/parity/rustc-rv32e-toolchain
|
||||
**Referans sayısı:** 1
|
||||
|
||||
### K. radium-0.7-fork
|
||||
**Upstream:** Verify original source
|
||||
**Referans sayısı:** 1
|
||||
|
||||
---
|
||||
|
||||
## BÖLÜM 3: Diğer Broken Links
|
||||
|
||||
### A. shawntabrizi.com
|
||||
- `www.shawntabrizi.com/bizinikiwi-*` → `www.shawntabrizi.com/substrate-*`
|
||||
|
||||
### B. substrate-developer-hub
|
||||
- `github.com/bizinikiwi-developer-hub/awesome-bizinikiwi` → `github.com/substrate-developer-hub/awesome-substrate`
|
||||
|
||||
### C. paritytech/bizinikiwi-archive
|
||||
- Bu repo artık mevcut değil, alternatif bul veya sil
|
||||
|
||||
---
|
||||
|
||||
## Toplu Issue Oluşturma Scripti
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
# Polkadot SDK issues için tracking issue oluştur
|
||||
|
||||
ISSUES=(2 3 4 5 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 43 44 45 47 48 49 50 51 53 55 57 60 74 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190)
|
||||
|
||||
for issue_num in "${ISSUES[@]}"; do
|
||||
gh issue create \
|
||||
--repo pezkuwichain/pezkuwi-sdk \
|
||||
--title "[Upstream Tracking] Polkadot SDK #$issue_num" \
|
||||
--body "## Upstream Reference Tracking
|
||||
|
||||
**Upstream URL:** https://github.com/paritytech/polkadot-sdk/issues/$issue_num
|
||||
**Type:** Issue
|
||||
|
||||
---
|
||||
|
||||
### Status Tracking:
|
||||
|
||||
- [x] Pending - Upstream not yet resolved
|
||||
- [ ] Resolved - Fix merged upstream
|
||||
- [ ] Evaluated - Assessed if needed for PezkuwiChain
|
||||
- [ ] Applied - Fix applied to our chain
|
||||
- [ ] Closed - Upstream issue closed
|
||||
- [ ] Skipped - Not relevant for us
|
||||
|
||||
**Last Check:** $(date +%Y-%m-%d)
|
||||
**Next Check:** $(date -d '+1 month' +%Y-%m-%d)
|
||||
|
||||
---
|
||||
|
||||
### Notes:
|
||||
Automatically created tracking issue.
|
||||
" \
|
||||
--label "upstream-tracking"
|
||||
done
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Kod Güncellemesi (Issue'lar oluşturulduktan sonra)
|
||||
|
||||
Issue'lar oluşturulduktan sonra, mapping dosyası oluşturun:
|
||||
|
||||
```bash
|
||||
# mapping.txt formatı:
|
||||
# UPSTREAM_NUM PEZKUWI_NUM
|
||||
# 23 1001
|
||||
# 40 1002
|
||||
# ...
|
||||
```
|
||||
|
||||
Sonra bu script ile güncelleme yapın:
|
||||
```bash
|
||||
while read upstream pezkuwi; do
|
||||
find . -name "*.rs" -not -path "./target/*" -not -path "./vendor/*" \
|
||||
-exec sed -i "s|pezkuwichain/pezkuwi-sdk/issues/$upstream|pezkuwichain/pezkuwi-sdk/issues/$pezkuwi|g" {} \;
|
||||
done < mapping.txt
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
*Son güncelleme: 2025-12-23*
|
||||
+70
-139
@@ -5,8 +5,8 @@
|
||||
|
||||
## Son Güncelleme
|
||||
- **Tarih:** 2024-12-23
|
||||
- **Son Tamamlanan:** check-core-crypto-features, check-getting-started.yml template URL düzeltmesi
|
||||
- **Aktif Görev:** FAZ 1 - CI Yeşil Işık (try-runtime beklemede)
|
||||
- **Son Tamamlanan:** pez-kitchensink-runtime compilation fix (umbrella eksik crate'ler)
|
||||
- **Aktif Görev:** FAZ 1 - CI Yeşil Işık
|
||||
|
||||
---
|
||||
|
||||
@@ -49,8 +49,6 @@
|
||||
| macos/teyrchain | ✅ DÜZELTİLDİ | Template URL düzeltildi |
|
||||
| macos/solochain | ✅ DÜZELTİLDİ | Template URL düzeltildi |
|
||||
|
||||
**Düzeltme:** `getting-started.sh` → Template URL'leri `pezkuwichain/pezkuwi-sdk-{template}-template` olarak güncellendi.
|
||||
|
||||
### tests-misc.yml (11 job)
|
||||
| Job | Durum | Notlar |
|
||||
|-----|-------|--------|
|
||||
@@ -74,6 +72,59 @@
|
||||
|
||||
---
|
||||
|
||||
## BUGÜN YAPILAN DÜZELTMELER (2024-12-23)
|
||||
|
||||
### pez-kitchensink-runtime Derleme Hatası Çözümü
|
||||
|
||||
**Problem:** 679 derleme hatası - `Runtime`, `RuntimeCall`, `Balances`, `pezpallet_root_testing` bulunamıyor
|
||||
|
||||
**Teşhis:**
|
||||
- `use pezkuwi_sdk::*;` ile umbrella'dan import yapılıyor
|
||||
- Umbrella'da `pezpallet-root-testing` ve `pezpallet-xcm-benchmarks` eksikti
|
||||
- Macro chain kırılmış, Runtime type'ları generate edilmiyordu
|
||||
|
||||
**Çözüm - Umbrella Cargo.toml'a eklendi:**
|
||||
|
||||
1. **pezpallet-root-testing:**
|
||||
- `std` feature eklendi
|
||||
- `try-runtime` feature eklendi
|
||||
- `runtime-full` feature eklendi
|
||||
- `[dependencies.pezpallet-root-testing]` section eklendi
|
||||
|
||||
2. **pezpallet-xcm-benchmarks:**
|
||||
- `std` feature eklendi
|
||||
- `runtime-benchmarks` feature eklendi
|
||||
- `runtime-full` feature eklendi
|
||||
- `[dependencies.pezpallet-xcm-benchmarks]` section eklendi
|
||||
|
||||
3. **Umbrella src/lib.rs'e re-export eklendi:**
|
||||
```rust
|
||||
#[cfg(feature = "pezpallet-root-testing")]
|
||||
pub use pezpallet_root_testing;
|
||||
|
||||
#[cfg(feature = "pezpallet-xcm-benchmarks")]
|
||||
pub use pezpallet_xcm_benchmarks;
|
||||
```
|
||||
|
||||
**Sonuç:**
|
||||
- ✅ `SKIP_WASM_BUILD=1 cargo check -p pez-kitchensink-runtime` - BAŞARILI
|
||||
- ✅ `SKIP_WASM_BUILD=1 cargo clippy -p pez-kitchensink-runtime` - BAŞARILI
|
||||
- ✅ `SKIP_WASM_BUILD=1 cargo clippy -p pez-kitchensink-runtime -- -D warnings` - BAŞARILI
|
||||
|
||||
### Önceki Düzeltme: getrandom WASM Hatası
|
||||
|
||||
**Problem:** `error: the wasm*-unknown-unknown targets are not supported by default`
|
||||
|
||||
**Sebep:**
|
||||
- `frame-decode v0.15.0` → `sp-crypto-hashing/std` → `twox-hash/std` → `rand` → `getrandom`
|
||||
- subxt crate'leri runtime-full feature'ında getrandom'u çekiyordu
|
||||
|
||||
**Çözüm:**
|
||||
- Umbrella Cargo.toml'da subxt crate'leri `runtime-full`'dan çıkarıldı
|
||||
- `node` feature'ına taşındı
|
||||
|
||||
---
|
||||
|
||||
## GÜVENLİK DÜZELTMELERİ (Dependabot)
|
||||
|
||||
| Vulnerability | Severity | Eski Versiyon | Yeni Versiyon | Durum |
|
||||
@@ -83,13 +134,6 @@
|
||||
| ring (AES overflow) | Medium | 0.16.20 | 0.17.14 | ✅ |
|
||||
| ring (duplicate) | Medium | 0.16.20 | 0.17.14 | ✅ |
|
||||
|
||||
**Ek Değişiklikler (ring fix için):**
|
||||
- libp2p: 0.54.1 → 0.56.0
|
||||
- libp2p-kad: 0.46.2 → 0.48.0
|
||||
- transport.rs: bandwidth logging kaldırıldı
|
||||
- service.rs: NoBandwidthSink stub eklendi
|
||||
- behaviour.rs: From<Infallible> eklendi
|
||||
|
||||
---
|
||||
|
||||
## TOOLCHAIN DURUMU
|
||||
@@ -104,113 +148,17 @@
|
||||
|
||||
---
|
||||
|
||||
## ÇALIŞMA SİSTEMİ
|
||||
|
||||
### Her Workflow Job İçin:
|
||||
1. **Test Et:** Komutu local'de çalıştır
|
||||
2. **Hata Analizi:** Çıktıyı analiz et
|
||||
3. **Düzelt:** Hataları rebrand kurallarına uygun düzelt
|
||||
4. **Tekrar Test:** Düzeltme sonrası tekrar çalıştır
|
||||
5. **İşaretle:** Bu dosyada durumu güncelle
|
||||
|
||||
### Düzeltme Kuralları (CLAUDE_RULES.md'den):
|
||||
- ASLA rebrand'i geri alma
|
||||
- Terminoloji koruması:
|
||||
- polkadot → pezkuwi
|
||||
- substrate → bizinikiwi
|
||||
- cumulus → pezcumulus
|
||||
- westend → zagros
|
||||
- rococo → pezkuwichain
|
||||
- parachain → teyrchain
|
||||
|
||||
---
|
||||
|
||||
## TAMAMLANAN DÜZELTMELER
|
||||
|
||||
### 2024-12-23: Oturum 3 - Link Düzeltmeleri ve Toolchain
|
||||
|
||||
**check-links.yml Düzeltmeleri:**
|
||||
- 78 kırık link tespit edildi
|
||||
- 160 upstream tracking issue oluşturuldu (GitHub CLI ile)
|
||||
- Issue mapping dosyası: `.claude/issue_mapping.txt`
|
||||
|
||||
**Yüksek Etkili Düzeltmeler (RED):**
|
||||
1. `wasm_project.rs`: radium git URL düzeltildi (`https://https://` → `github.com/paritytech/radium-0.7-fork`)
|
||||
2. `prerequisites.rs`: rustc-rv32e-toolchain URL düzeltildi
|
||||
3. `chain_extension.rs`: chainextension-registry URL düzeltildi (2 yer)
|
||||
|
||||
**Orta Etkili Düzeltmeler (YELLOW):**
|
||||
1. `config.rs`: ChargeAssetTxPayment docs.rs link düzeltildi
|
||||
2. `methods/mod.rs`: json-rpc-interface-spec URL düzeltildi
|
||||
3. `tx_client.rs`: substrate github.io URL düzeltildi
|
||||
4. `CHANGELOG.md`: json-rpc-interface-spec URLs (2 yer)
|
||||
5. `umbrella/README.md`: try-runtime URL düzeltildi
|
||||
6. `macro/src/lib.rs`: subxt issue URL düzeltildi
|
||||
|
||||
**lychee.toml Exclude Eklemeleri:**
|
||||
- 40+ defunct chain website (laminar, clover, polkadex, vb.)
|
||||
- Commit-specific GitHub URL pattern'leri
|
||||
- Rate-limited siteler (stackoverflow, aventus, efinity)
|
||||
|
||||
**Toolchain Düzeltmeleri:**
|
||||
- wasm32-unknown-unknown target 1.88.0'a eklendi
|
||||
- polkatool v0.30.0 kuruldu
|
||||
|
||||
### 2024-12-23: Oturum 4 - Core Crypto ve Getting-Started
|
||||
|
||||
**check-core-crypto-features ✅ TAMAMLANDI:**
|
||||
- `bizinikiwi/primitives/core/check-features-variants.sh` geçti
|
||||
- `bizinikiwi/primitives/application-crypto/check-features-variants.sh` geçti
|
||||
- `bizinikiwi/primitives/keyring/check-features-variants.sh` geçti
|
||||
- wasm32-unknown-unknown target testi başarılı
|
||||
|
||||
**check-getting-started.yml Düzeltmesi:**
|
||||
- **Sorun:** Template URL'leri 404 döndürüyordu
|
||||
- `pezkuwichain/minimal-template` → 404
|
||||
- `pezkuwichain/teyrchain-template` → 404
|
||||
- `pezkuwichain/solochain-template` → 404
|
||||
- **Çözüm:** `getting-started.sh` → `pezkuwichain/pezkuwi-sdk-{template}-template`
|
||||
- **Doğrulama:** Tüm template repoları mevcut ve clone edilebilir
|
||||
|
||||
### 2024-12-22: Oturum 2 - Format ve Vendor Entegrasyonu
|
||||
|
||||
**rustfmt.toml Stable Migration:**
|
||||
- Sorun: rustfmt.toml nightly-only özellikler kullanıyordu
|
||||
- Çözüm: 9 nightly özellik kaldırıldı (imports_granularity, wrap_comments, vb.)
|
||||
- Etki: 898 dosya yeniden formatlandı
|
||||
|
||||
**Vendor Entegrasyonu:**
|
||||
- `pezkuwi-subxt` → `vendor/pezkuwi-subxt/` (monorepo'ya dahil)
|
||||
- `pezkuwi-zombienet-sdk` → `vendor/pezkuwi-zombienet-sdk/` (monorepo'ya dahil)
|
||||
- Git bağımlılıkları path bağımlılıklarına çevrildi
|
||||
- 606 crate workspace'e dahil edildi
|
||||
|
||||
**Zepter Düzeltmeleri (18 adet):**
|
||||
- runtime-benchmarks feature propagation (8 düzeltme)
|
||||
- std feature propagation (4 düzeltme)
|
||||
- try-runtime feature propagation (5 düzeltme)
|
||||
- serde feature propagation (1 düzeltme)
|
||||
|
||||
### 2024-12-22: Oturum 1 - Clippy Düzeltmeleri
|
||||
|
||||
**36 dosya düzeltildi:**
|
||||
- deprecated `cargo_bin` function (27 dosya)
|
||||
- `uninlined_format_args` (4 yer)
|
||||
- Subxt API değişiklikleri
|
||||
- unused function warnings
|
||||
|
||||
---
|
||||
|
||||
## SONRAKİ ADIMLAR
|
||||
|
||||
1. ✅ ~~check-links.yml düzelt~~ - TAMAMLANDI
|
||||
2. ✅ ~~wasm32 target ekle~~ - TAMAMLANDI
|
||||
3. ✅ ~~polkatool kur~~ - TAMAMLANDI
|
||||
4. ✅ ~~check-core-crypto-features~~ - TAMAMLANDI (3 script geçti)
|
||||
5. ✅ ~~check-getting-started.yml~~ - Template URL düzeltildi
|
||||
6. ⏳ **try-runtime** - CI'da test et (lokal WASM build sorunu var)
|
||||
7. ⏳ **tests-misc.yml** - CI'da test et
|
||||
8. ⏳ **build-misc.yml** - CI'da test et
|
||||
4. ✅ ~~check-core-crypto-features~~ - TAMAMLANDI
|
||||
5. ✅ ~~check-getting-started.yml~~ - TAMAMLANDI
|
||||
6. ✅ ~~pez-kitchensink-runtime derleme hatası~~ - TAMAMLANDI
|
||||
7. ⏳ **try-runtime** - CI'da test et (lokal WASM build sorunu var)
|
||||
8. ⏳ **tests-misc.yml** - CI'da test et
|
||||
9. ⏳ **build-misc.yml** - CI'da test et
|
||||
|
||||
---
|
||||
|
||||
@@ -220,7 +168,6 @@
|
||||
```
|
||||
error[E0152]: duplicate lang item in crate `core`
|
||||
error[E0152]: duplicate lang item in crate `alloc`
|
||||
error: getrandom wasm*-unknown-unknown not supported
|
||||
```
|
||||
- **Sebep:** WASM builder farklı std/core versiyonu kullanıyor
|
||||
- **Çözüm:** CI Docker image'ında muhtemelen çözümlü
|
||||
@@ -242,24 +189,19 @@ target: riscv64emac-unknown-none-polkavm.json
|
||||
```
|
||||
/home/mamostehp/pezkuwi-sdk/
|
||||
├── .github/workflows/ # Workflow dosyaları
|
||||
│ ├── checks.yml
|
||||
│ ├── checks-quick.yml
|
||||
│ ├── check-links.yml
|
||||
│ ├── tests-misc.yml
|
||||
│ └── build-misc.yml
|
||||
├── .config/
|
||||
│ ├── lychee.toml # Link checker config (güncel)
|
||||
│ ├── lychee.toml # Link checker config
|
||||
│ └── taplo.toml # TOML formatter config
|
||||
├── .claude/
|
||||
│ ├── CLAUDE_RULES.md # Rebrand kuralları
|
||||
│ ├── TERMINOLOGY.md # Terminoloji mapping
|
||||
│ ├── WORKFLOW_PLAN.md # Bu dosya
|
||||
│ ├── REBRAND_PROGRESS.md # Rebrand ilerleme listesi
|
||||
│ ├── domains_repositories.md # Domain ve repo listesi
|
||||
│ └── issue_mapping.txt # Upstream issue mapping
|
||||
├── scripts/
|
||||
│ ├── generate-umbrella.py # Umbrella crate generator
|
||||
│ ├── create_tracking_issues.sh # Issue oluşturma scripti
|
||||
│ └── update_issue_links.sh # Link güncelleme scripti
|
||||
│ └── issue_mapping.txt # Upstream issue mapping (160 issue)
|
||||
├── umbrella/
|
||||
│ ├── Cargo.toml # Umbrella crate dependencies
|
||||
│ └── src/lib.rs # Umbrella re-exports
|
||||
├── vendor/
|
||||
│ ├── pezkuwi-subxt/ # Vendored subxt (10 crate)
|
||||
│ ├── pezkuwi-zombienet-sdk/ # Vendored zombienet (6 crate)
|
||||
@@ -269,29 +211,18 @@ target: riscv64emac-unknown-none-polkavm.json
|
||||
|
||||
---
|
||||
|
||||
## GIT COMMIT GEÇMİŞİ
|
||||
|
||||
1. `fix: resolve all broken links for check-links.yml CI` - 174 dosya
|
||||
2. `fix: address multiple compilation issues` - Son derlemeler
|
||||
3. `fix(security): upgrade libp2p 0.54.1 → 0.56.0` - ring güvenlik düzeltmesi
|
||||
4. `refactor: zombienet-sdk rebrand and subxt compatibility` - Vendor uyumu
|
||||
5. `security: fix wasmtime and tracing-subscriber vulnerabilities` - Güvenlik
|
||||
6. `fix: CI checks-quick.yml fixes` - Quick checks
|
||||
|
||||
---
|
||||
|
||||
## ÖZET İSTATİSTİKLERİ
|
||||
|
||||
| Metrik | Değer |
|
||||
|--------|-------|
|
||||
| Toplam workflow job | 35 |
|
||||
| Tamamlanan (lokal OK) | 26 |
|
||||
| Beklemede (CI testi gerekli) | 8 |
|
||||
| Tamamlanan (lokal OK) | 28 |
|
||||
| Beklemede (CI testi gerekli) | 6 |
|
||||
| Bloklu (sistem gereksinimi) | 1 |
|
||||
| Kırık link düzeltilen | 78 |
|
||||
| Tracking issue oluşturulan | 160 |
|
||||
| Güvenlik açığı kapatılan | 4 |
|
||||
| Template URL düzeltilen | 1 |
|
||||
| Umbrella eksik crate düzeltilen | 2 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
========================================
|
||||
Upstream Tracking Issues Creator
|
||||
Started: Tue Dec 23 07:04:33 +03 2025
|
||||
Total to create: 155
|
||||
========================================
|
||||
OK: Created #179 for upstream #8
|
||||
========================================
|
||||
Upstream Tracking Issues Creator
|
||||
Started: Tue Dec 23 07:04:54 +03 2025
|
||||
Total to create: 155
|
||||
========================================
|
||||
@@ -1,6 +0,0 @@
|
||||
========================================
|
||||
Upstream Tracking Issues Creator
|
||||
Started: Tue Dec 23 07:04:54 +03 2025
|
||||
Total to create: 155
|
||||
========================================
|
||||
Processing upstream #8...
|
||||
Generated
+20
-18
@@ -74,7 +74,7 @@ version = "0.7.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
|
||||
dependencies = [
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"once_cell",
|
||||
"version_check",
|
||||
]
|
||||
@@ -1021,9 +1021,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ark-vrf"
|
||||
version = "0.1.1"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0d63e9780640021b74d02b32895d8cec1b4abe8e5547b560a6bda6b14b78c6da"
|
||||
checksum = "9501da18569b2afe0eb934fb7afd5a247d238b94116155af4dd068f319adfe6d"
|
||||
dependencies = [
|
||||
"ark-bls12-381 0.5.0",
|
||||
"ark-ec 0.5.0",
|
||||
@@ -1847,7 +1847,7 @@ version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
|
||||
dependencies = [
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"instant",
|
||||
"rand 0.8.5",
|
||||
]
|
||||
@@ -1943,7 +1943,7 @@ dependencies = [
|
||||
"bitflags 2.10.0",
|
||||
"cexpr",
|
||||
"clang-sys",
|
||||
"itertools 0.13.0",
|
||||
"itertools 0.10.5",
|
||||
"proc-macro2 1.0.103",
|
||||
"quote 1.0.42",
|
||||
"regex",
|
||||
@@ -3559,7 +3559,7 @@ version = "0.1.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"
|
||||
dependencies = [
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"once_cell",
|
||||
"tiny-keccak",
|
||||
]
|
||||
@@ -4459,7 +4459,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8d162beedaa69905488a8da94f5ac3edb4dd4788b732fadb7bd120b2625c1976"
|
||||
dependencies = [
|
||||
"data-encoding",
|
||||
"syn 2.0.111",
|
||||
"syn 1.0.109",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -5933,9 +5933,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "getrandom"
|
||||
version = "0.2.16"
|
||||
version = "0.2.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
|
||||
checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"js-sys",
|
||||
@@ -7809,7 +7809,7 @@ dependencies = [
|
||||
"either",
|
||||
"futures",
|
||||
"futures-timer",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"libp2p-allow-block-list",
|
||||
"libp2p-connection-limits",
|
||||
"libp2p-core",
|
||||
@@ -13606,7 +13606,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pezkuwi-sdk"
|
||||
version = "0.1.0"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"asset-test-pezutils",
|
||||
"assets-common",
|
||||
@@ -13836,6 +13836,7 @@ dependencies = [
|
||||
"pezpallet-revive-proc-macro",
|
||||
"pezpallet-revive-uapi",
|
||||
"pezpallet-root-offences",
|
||||
"pezpallet-root-testing",
|
||||
"pezpallet-safe-mode",
|
||||
"pezpallet-salary",
|
||||
"pezpallet-scheduler",
|
||||
@@ -13870,6 +13871,7 @@ dependencies = [
|
||||
"pezpallet-vesting",
|
||||
"pezpallet-whitelist",
|
||||
"pezpallet-xcm",
|
||||
"pezpallet-xcm-benchmarks",
|
||||
"pezpallet-xcm-bridge-hub",
|
||||
"pezpallet-xcm-bridge-hub-router",
|
||||
"pezpallet-xcm-precompiles",
|
||||
@@ -14449,7 +14451,7 @@ name = "pezkuwi-subxt-codegen"
|
||||
version = "0.44.0"
|
||||
dependencies = [
|
||||
"frame-metadata",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"heck 0.5.0",
|
||||
"parity-scale-codec",
|
||||
"pezkuwi-subxt-metadata",
|
||||
@@ -14502,7 +14504,7 @@ dependencies = [
|
||||
"futures",
|
||||
"futures-timer",
|
||||
"futures-util",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"js-sys",
|
||||
"pin-project",
|
||||
"send_wrapper 0.6.0",
|
||||
@@ -14566,7 +14568,7 @@ dependencies = [
|
||||
"finito",
|
||||
"frame-metadata",
|
||||
"futures",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"hex",
|
||||
"http-body 1.0.1",
|
||||
"hyper 1.8.1",
|
||||
@@ -14596,7 +14598,7 @@ dependencies = [
|
||||
"bip39",
|
||||
"cfg-if",
|
||||
"crypto_secretbox",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"hex",
|
||||
"hex-literal",
|
||||
"hmac 0.12.1",
|
||||
@@ -22577,7 +22579,7 @@ version = "0.6.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
||||
dependencies = [
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -22728,7 +22730,7 @@ version = "0.4.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
|
||||
dependencies = [
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"libredox",
|
||||
"thiserror 1.0.69",
|
||||
]
|
||||
@@ -23151,7 +23153,7 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"cfg-if",
|
||||
"getrandom 0.2.16",
|
||||
"getrandom 0.2.10",
|
||||
"libc",
|
||||
"untrusted",
|
||||
"windows-sys 0.52.0",
|
||||
|
||||
@@ -43,3 +43,6 @@ serde_full = ["codec/serde", "scale-info/serde", "serde", "serde/alloc"]
|
||||
decode = ["scale-info/decode"]
|
||||
|
||||
std = ["codec/std", "decode", "scale-info/std", "serde/std", "serde_full"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -176,11 +176,12 @@ fn create_cargo_toml<'a>(
|
||||
}
|
||||
|
||||
fn invoke_build(current_dir: &Path) -> Result<()> {
|
||||
// Note: panic_immediate_abort is now a real panic strategy in newer Rust nightlies
|
||||
// Use -Cpanic=immediate-abort instead of -Zbuild-std-features=panic_immediate_abort
|
||||
// -Zunstable-options must be in RUSTFLAGS as well for the rustc probe
|
||||
let encoded_rustflags =
|
||||
["-Dwarnings", "-Zunstable-options", "-Cpanic=immediate-abort"].join("\x1f");
|
||||
// Use -Zbuild-std-features=panic_immediate_abort for immediate abort panic strategy
|
||||
// This works with stable rust when RUSTC_BOOTSTRAP=1 is set
|
||||
let encoded_rustflags = ["-Dwarnings"].join("\x1f");
|
||||
|
||||
let mut args = polkavm_linker::TargetJsonArgs::default();
|
||||
args.is_64_bit = true;
|
||||
|
||||
let mut build_command = Command::new("cargo");
|
||||
build_command
|
||||
@@ -191,9 +192,9 @@ fn invoke_build(current_dir: &Path) -> Result<()> {
|
||||
.env("RUSTUP_HOME", env::var("RUSTUP_HOME").unwrap_or_default())
|
||||
// Support compilation on stable rust
|
||||
.env("RUSTC_BOOTSTRAP", "1")
|
||||
.args(["build", "--release", "-Zbuild-std=core"])
|
||||
.args(["build", "--release", "-Zbuild-std=core", "-Zbuild-std-features=panic_immediate_abort"])
|
||||
.arg("--target")
|
||||
.arg(polkavm_linker::target_json_path(polkavm_linker::TargetJsonArgs::default()).unwrap());
|
||||
.arg(polkavm_linker::target_json_path(args).unwrap());
|
||||
|
||||
if let Ok(toolchain) = env::var(OVERRIDE_RUSTUP_TOOLCHAIN_ENV_VAR) {
|
||||
build_command.env("RUSTUP_TOOLCHAIN", &toolchain);
|
||||
|
||||
+20
-8
@@ -58,9 +58,6 @@ std = [
|
||||
"pezkuwi-runtime-teyrchains?/std",
|
||||
"pezkuwi-sdk-frame?/std",
|
||||
"pezkuwi-ss58-registry?/std",
|
||||
"pezkuwi-subxt-core?/std",
|
||||
"pezkuwi-subxt-metadata?/std",
|
||||
"pezkuwi-subxt-signer?/std",
|
||||
"pezkuwi-teyrchain-primitives?/std",
|
||||
"pezpallet-alliance?/std",
|
||||
"pezpallet-asset-conversion-ops?/std",
|
||||
@@ -144,6 +141,7 @@ std = [
|
||||
"pezpallet-remark?/std",
|
||||
"pezpallet-revive?/std",
|
||||
"pezpallet-root-offences?/std",
|
||||
"pezpallet-root-testing?/std",
|
||||
"pezpallet-safe-mode?/std",
|
||||
"pezpallet-salary?/std",
|
||||
"pezpallet-scheduler?/std",
|
||||
@@ -179,6 +177,7 @@ std = [
|
||||
"pezpallet-xcm-bridge-hub?/std",
|
||||
"pezpallet-xcm-precompiles?/std",
|
||||
"pezpallet-xcm?/std",
|
||||
"pezpallet-xcm-benchmarks?/std",
|
||||
"pezsc-executor?/std",
|
||||
"pezsp-api-proc-macro?/std",
|
||||
"pezsp-api?/std",
|
||||
@@ -470,6 +469,7 @@ runtime-benchmarks = [
|
||||
"pezpallet-xcm-bridge-hub?/runtime-benchmarks",
|
||||
"pezpallet-xcm-precompiles?/runtime-benchmarks",
|
||||
"pezpallet-xcm?/runtime-benchmarks",
|
||||
"pezpallet-xcm-benchmarks?/runtime-benchmarks",
|
||||
"pezsc-authority-discovery?/runtime-benchmarks",
|
||||
"pezsc-basic-authorship?/runtime-benchmarks",
|
||||
"pezsc-block-builder?/runtime-benchmarks",
|
||||
@@ -654,6 +654,7 @@ try-runtime = [
|
||||
"pezpallet-remark?/try-runtime",
|
||||
"pezpallet-revive?/try-runtime",
|
||||
"pezpallet-root-offences?/try-runtime",
|
||||
"pezpallet-root-testing?/try-runtime",
|
||||
"pezpallet-safe-mode?/try-runtime",
|
||||
"pezpallet-salary?/try-runtime",
|
||||
"pezpallet-scheduler?/try-runtime",
|
||||
@@ -690,7 +691,6 @@ serde = [
|
||||
"bp-pezkuwi-core?/serde",
|
||||
"pezframe-benchmarking?/serde",
|
||||
"pezframe-metadata?/serde",
|
||||
"pezkuwi-subxt-signer?/serde",
|
||||
"pezpallet-asset-tx-payment?/serde",
|
||||
"pezpallet-beefy-mmr?/serde",
|
||||
"pezpallet-beefy?/serde",
|
||||
@@ -792,10 +792,6 @@ runtime-full = [
|
||||
"pezkuwi-runtime-teyrchains",
|
||||
"pezkuwi-sdk-frame",
|
||||
"pezkuwi-ss58-registry",
|
||||
"pezkuwi-subxt-core",
|
||||
"pezkuwi-subxt-macro",
|
||||
"pezkuwi-subxt-metadata",
|
||||
"pezkuwi-subxt-signer",
|
||||
"pezkuwi-teyrchain-primitives",
|
||||
"pezpallet-alliance",
|
||||
"pezpallet-asset-conversion",
|
||||
@@ -882,6 +878,7 @@ runtime-full = [
|
||||
"pezpallet-revive-proc-macro",
|
||||
"pezpallet-revive-uapi",
|
||||
"pezpallet-root-offences",
|
||||
"pezpallet-root-testing",
|
||||
"pezpallet-safe-mode",
|
||||
"pezpallet-salary",
|
||||
"pezpallet-scheduler",
|
||||
@@ -915,6 +912,7 @@ runtime-full = [
|
||||
"pezpallet-vesting",
|
||||
"pezpallet-whitelist",
|
||||
"pezpallet-xcm",
|
||||
"pezpallet-xcm-benchmarks",
|
||||
"pezpallet-xcm-bridge-hub",
|
||||
"pezpallet-xcm-bridge-hub-router",
|
||||
"pezpallet-xcm-precompiles",
|
||||
@@ -1070,8 +1068,12 @@ node = [
|
||||
"pezkuwi-statement-table",
|
||||
"pezkuwi-subxt",
|
||||
"pezkuwi-subxt-codegen",
|
||||
"pezkuwi-subxt-core",
|
||||
"pezkuwi-subxt-lightclient",
|
||||
"pezkuwi-subxt-macro",
|
||||
"pezkuwi-subxt-metadata",
|
||||
"pezkuwi-subxt-rpcs",
|
||||
"pezkuwi-subxt-signer",
|
||||
"pezkuwi-subxt-utils-fetchmetadata",
|
||||
"pezkuwi-subxt-utils-stripmetadata",
|
||||
"pezmmr-gadget",
|
||||
@@ -1890,6 +1892,11 @@ default-features = false
|
||||
optional = true
|
||||
path = "../bizinikiwi/pezframe/root-offences"
|
||||
|
||||
[dependencies.pezpallet-root-testing]
|
||||
default-features = false
|
||||
optional = true
|
||||
path = "../bizinikiwi/pezframe/root-testing"
|
||||
|
||||
[dependencies.pezpallet-safe-mode]
|
||||
default-features = false
|
||||
optional = true
|
||||
@@ -2055,6 +2062,11 @@ default-features = false
|
||||
optional = true
|
||||
path = "../pezkuwi/xcm/pezpallet-xcm"
|
||||
|
||||
[dependencies.pezpallet-xcm-benchmarks]
|
||||
default-features = false
|
||||
optional = true
|
||||
path = "../pezkuwi/xcm/pezpallet-xcm-benchmarks"
|
||||
|
||||
[dependencies.pezpallet-xcm-bridge-hub]
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
@@ -923,6 +923,10 @@ pub use pezpallet_revive_uapi;
|
||||
#[cfg(feature = "pezpallet-root-offences")]
|
||||
pub use pezpallet_root_offences;
|
||||
|
||||
/// FRAME root testing pezpallet.
|
||||
#[cfg(feature = "pezpallet-root-testing")]
|
||||
pub use pezpallet_root_testing;
|
||||
|
||||
/// FRAME safe-mode pezpallet.
|
||||
#[cfg(feature = "pezpallet-safe-mode")]
|
||||
pub use pezpallet_safe_mode;
|
||||
@@ -1059,6 +1063,10 @@ pub use pezpallet_whitelist;
|
||||
#[cfg(feature = "pezpallet-xcm")]
|
||||
pub use pezpallet_xcm;
|
||||
|
||||
/// XCM benchmarking pallet.
|
||||
#[cfg(feature = "pezpallet-xcm-benchmarks")]
|
||||
pub use pezpallet_xcm_benchmarks;
|
||||
|
||||
/// Module that adds dynamic bridges/lanes support to XCM infrastructure at the bridge hub.
|
||||
#[cfg(feature = "pezpallet-xcm-bridge-hub")]
|
||||
pub use pezpallet_xcm_bridge_hub;
|
||||
|
||||
+6
-6
@@ -8,11 +8,10 @@
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "web", feature = "native"),
|
||||
not(any(feature = "web", feature = "native"))
|
||||
))]
|
||||
compile_error!("subxt-lightclient: exactly one of the 'web' and 'native' features should be used.");
|
||||
// Note: When both 'web' and 'native' features are enabled (e.g., --all-features),
|
||||
// 'native' takes priority. This allows CI to run with --all-features.
|
||||
#[cfg(not(any(feature = "web", feature = "native")))]
|
||||
compile_error!("subxt-lightclient: at least one of the 'web' or 'native' features must be enabled.");
|
||||
|
||||
mod platform;
|
||||
mod shared_client;
|
||||
@@ -246,12 +245,13 @@ impl Stream for LightClientRpcSubscription {
|
||||
}
|
||||
|
||||
/// A quick helper to spawn a task that works for WASM.
|
||||
/// When both 'native' and 'web' are enabled, 'native' takes priority.
|
||||
fn spawn<F: Future + Send + 'static>(future: F) {
|
||||
#[cfg(feature = "native")]
|
||||
tokio::spawn(async move {
|
||||
future.await;
|
||||
});
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
wasm_bindgen_futures::spawn_local(async move {
|
||||
future.await;
|
||||
});
|
||||
|
||||
+5
-4
@@ -3,12 +3,13 @@
|
||||
// see LICENSE for license details.
|
||||
|
||||
//! Default platform for WASM environments.
|
||||
//! When both 'native' and 'web' features are enabled, 'native' takes priority.
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_helpers;
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_platform;
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod wasm_socket;
|
||||
|
||||
pub use helpers::{build_platform, DefaultPlatform};
|
||||
@@ -25,7 +26,7 @@ mod helpers {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
mod helpers {
|
||||
use super::wasm_platform::SubxtPlatform as Platform;
|
||||
|
||||
|
||||
+9
-9
@@ -7,9 +7,9 @@ use std::{borrow::Cow, path::Path};
|
||||
use codec::{Decode, Encode};
|
||||
use pezkuwi_subxt_codegen::{CodegenError, Metadata};
|
||||
use pezkuwi_subxt_metadata::SUPPORTED_METADATA_VERSIONS;
|
||||
use sc_executor::{WasmExecutionMethod, WasmExecutor};
|
||||
use sc_executor_common::runtime_blob::RuntimeBlob;
|
||||
use sp_maybe_compressed_blob::{self, CODE_BLOB_BOMB_LIMIT};
|
||||
use pezsc_executor::{WasmExecutionMethod, WasmExecutor};
|
||||
use pezsc_executor_common::runtime_blob::RuntimeBlob;
|
||||
use pezsp_maybe_compressed_blob::{self, CODE_BLOB_BOMB_LIMIT};
|
||||
|
||||
/// Result type shorthand
|
||||
pub type WasmMetadataResult<A> = Result<A, CodegenError>;
|
||||
@@ -39,24 +39,24 @@ fn decode(encoded_metadata: Vec<u8>) -> WasmMetadataResult<Metadata> {
|
||||
}
|
||||
|
||||
fn maybe_decompress(file_contents: Vec<u8>) -> WasmMetadataResult<Vec<u8>> {
|
||||
sp_maybe_compressed_blob::decompress(file_contents.as_ref(), CODE_BLOB_BOMB_LIMIT)
|
||||
pezsp_maybe_compressed_blob::decompress(file_contents.as_ref(), CODE_BLOB_BOMB_LIMIT)
|
||||
.map_err(|e| CodegenError::Wasm(e.to_string()))
|
||||
.map(Cow::into_owned)
|
||||
}
|
||||
|
||||
struct Executor {
|
||||
runtime_blob: RuntimeBlob,
|
||||
executor: WasmExecutor<sp_io::BizinikiwiHostFunctions>,
|
||||
externalities: sp_state_machine::BasicExternalities,
|
||||
executor: WasmExecutor<pezsp_io::BizinikiwiHostFunctions>,
|
||||
externalities: pezsp_state_machine::BasicExternalities,
|
||||
}
|
||||
|
||||
impl Executor {
|
||||
fn new(wasm_file: &[u8]) -> WasmMetadataResult<Self> {
|
||||
let externalities: sp_state_machine::BasicExternalities = Default::default();
|
||||
let externalities: pezsp_state_machine::BasicExternalities = Default::default();
|
||||
|
||||
let executor: WasmExecutor<sp_io::BizinikiwiHostFunctions> = WasmExecutor::builder()
|
||||
let executor: WasmExecutor<pezsp_io::BizinikiwiHostFunctions> = WasmExecutor::builder()
|
||||
.with_execution_method(WasmExecutionMethod::default())
|
||||
.with_offchain_heap_alloc_strategy(sc_executor::HeapAllocStrategy::Dynamic {
|
||||
.with_offchain_heap_alloc_strategy(pezsc_executor::HeapAllocStrategy::Dynamic {
|
||||
maximum_pages: Some(64),
|
||||
})
|
||||
.with_max_runtime_instances(1)
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
||||
// see LICENSE for license details.
|
||||
|
||||
//! Platform-specific implementations.
|
||||
//! When both 'native' and 'web' features are enabled, 'native' takes priority.
|
||||
|
||||
use super::{RpcClientBuilder, RpcError};
|
||||
use jsonrpsee::core::client::Client;
|
||||
use std::sync::Arc;
|
||||
@@ -10,7 +13,7 @@ use url::Url;
|
||||
#[cfg(feature = "native")]
|
||||
pub use tokio::spawn;
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
pub use wasm_bindgen_futures::spawn_local as spawn;
|
||||
|
||||
#[cfg(feature = "native")]
|
||||
@@ -56,7 +59,7 @@ pub async fn ws_client<P>(
|
||||
Ok(Arc::new(client))
|
||||
}
|
||||
|
||||
#[cfg(feature = "web")]
|
||||
#[cfg(all(feature = "web", not(feature = "native")))]
|
||||
pub async fn ws_client<P>(
|
||||
url: &Url,
|
||||
builder: &RpcClientBuilder<P>,
|
||||
|
||||
Vendored
+4
-5
@@ -19,11 +19,10 @@
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "web", feature = "native"),
|
||||
not(any(feature = "web", feature = "native"))
|
||||
))]
|
||||
compile_error!("subxt-rpcs: exactly one of the 'web' and 'native' features should be used.");
|
||||
// Note: When both 'web' and 'native' features are enabled (e.g., --all-features),
|
||||
// 'native' takes priority. This allows CI to run with --all-features.
|
||||
#[cfg(not(any(feature = "web", feature = "native")))]
|
||||
compile_error!("subxt-rpcs: at least one of the 'web' or 'native' features must be enabled.");
|
||||
|
||||
mod macros;
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ use crate::sr25519;
|
||||
/// Given a JSON keypair as exported from Pezkuwi-JS, this returns an [`sr25519::Keypair`]
|
||||
pub fn decrypt_json(json: &str, password: &str) -> Result<sr25519::Keypair, Error> {
|
||||
let pair_json: KeyringPairJson = serde_json::from_str(json)?;
|
||||
Ok(pair_json.decrypt(password)?)
|
||||
pair_json.decrypt(password)
|
||||
}
|
||||
|
||||
/// Error
|
||||
|
||||
+4
-5
@@ -13,11 +13,10 @@
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "web", feature = "native"),
|
||||
not(any(feature = "web", feature = "native"))
|
||||
))]
|
||||
compile_error!("subxt: exactly one of the 'web' and 'native' features should be used.");
|
||||
// Note: When both 'web' and 'native' features are enabled (e.g., --all-features),
|
||||
// 'native' takes priority. This allows CI to run with --all-features.
|
||||
#[cfg(not(any(feature = "web", feature = "native")))]
|
||||
compile_error!("subxt: at least one of the 'web' or 'native' features must be enabled.");
|
||||
|
||||
// Internal helper macros
|
||||
#[macro_use]
|
||||
|
||||
+2
-1
@@ -30,6 +30,7 @@ macro_rules! cfg_jsonrpsee {
|
||||
};
|
||||
}
|
||||
|
||||
// When both 'native' and 'web' features are enabled, 'native' takes priority.
|
||||
#[allow(unused)]
|
||||
macro_rules! cfg_jsonrpsee_native {
|
||||
($($item:item)*) => {
|
||||
@@ -45,7 +46,7 @@ macro_rules! cfg_jsonrpsee_native {
|
||||
macro_rules! cfg_jsonrpsee_web {
|
||||
($($item:item)*) => {
|
||||
$(
|
||||
#[cfg(all(feature = "jsonrpsee", feature = "web"))]
|
||||
#[cfg(all(feature = "jsonrpsee", feature = "web", not(feature = "native")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(all(feature = "jsonrpsee", feature = "web"))))]
|
||||
$item
|
||||
)*
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ fn generate_keystore_filename(key_type: &KeystoreKeyType, acc: &NodeAccounts) ->
|
||||
let pk = acc
|
||||
.accounts
|
||||
.get(account_key)
|
||||
.expect(&format!("Key '{}' should be set for node {THIS_IS_A_BUG}", account_key))
|
||||
.expect(&format!("Key '{account_key}' should be set for node {THIS_IS_A_BUG}"))
|
||||
.public_key
|
||||
.as_str();
|
||||
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ impl TryFrom<&str> for KeyScheme {
|
||||
"sr" => Ok(KeyScheme::Sr),
|
||||
"ed" => Ok(KeyScheme::Ed),
|
||||
"ec" => Ok(KeyScheme::Ec),
|
||||
_ => Err(format!("Unsupported key scheme: {}", value)),
|
||||
_ => Err(format!("Unsupported key scheme: {value}")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user