mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-11-30 11:10:23 +00:00
sync: mirror deployed github repo (chains + sanitized bridge), keep GitLab CI
Make this monorepo's tracked tree identical to the deployed github repo (github.com/pezkuwichain/pezkuwi-DKS): all RC/AH/People runtimes and framework carry the mainnet fixes (incl. U128CurrencyToVote everywhere, so the staking election stall cannot recur), and tools/usdt-bridge matches the current, public-safe custody tooling (real config/deploy units gitignored, secret-file locations and server IPs stripped, sanitized *.example templates committed). Only exception to the mirror: GitLab-native CI is preserved (.gitlab-ci.yml and .gitlab/), to be rebuilt to match the github CI pipeline in a follow-up.
This commit is contained in:
1 parent
82543bdfab
commit
d285d59108
736 files changed
+15082
-16359
No files matched your search
@@ -1,327 +1,128 @@
|
||||
# Pezkuwi SDK — Sovereign Blockchain Infrastructure
|
||||
<div align="center">
|
||||
|
||||
**Developed and maintained by Kurdistan Tech Institute**
|
||||
<img src="./docs/images/pezkuwichain_logo.png" alt="PezkuwiChain" height="120" />
|
||||
|
||||
Pezkuwi SDK is a fully independent blockchain development framework, providing all the tools needed to build sovereign, interoperable blockchain networks for stateless nations and distributed communities.
|
||||
# Pezkuwi DKS — Digital Kurdistan State
|
||||
|
||||
**Sovereign blockchain infrastructure · maintained by Kurdistan Tech Institute**
|
||||
|
||||
[](https://github.com/pezkuwichain/pezkuwi-DKS/actions/workflows/check.yml)
|
||||
[](#license--attribution)
|
||||
[](./rust-toolchain.toml)
|
||||
[](https://pezkuwichain.io)
|
||||
[](https://pex.network)
|
||||
|
||||
<img src="./docs/images/DijitalKurdistan.png" alt="Digital Kurdistan State" width="640" />
|
||||
|
||||
</div>
|
||||
|
||||
> **DKS — Digital Kurdistan State.** This repository is the complete, self-contained blockchain
|
||||
> stack of PezkuwiChain: the framework, the relay-chain and system-parachain runtimes, and the
|
||||
> original FRAME pallets that encode the state's citizenship, governance, treasury, and identity.
|
||||
|
||||
PezkuwiChain is the sovereign blockchain of the **Digital Kurdistan State** — a digital home for
|
||||
the Kurdish nation and for other stateless and distributed communities. This is a **self-contained
|
||||
monorepo**: the framework, runtimes, and pallets all live here and build from source, with no
|
||||
dependency on any external package registry. That independence is deliberate — the chain must
|
||||
remain buildable and verifiable no matter what happens to any third-party platform.
|
||||
|
||||
---
|
||||
|
||||
## Origin
|
||||
## Layout
|
||||
|
||||
Pezkuwi SDK originated as a fork of Polkadot SDK (stable2512). It has since been completely rebranded and restructured as an independent project under Kurdistan Tech Institute stewardship. All crate names, dependencies, and documentation have been updated to reflect this independence.
|
||||
|
||||
---
|
||||
|
||||
## Architecture
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Pezkuwi SDK Ecosystem │
|
||||
├─────────────────────────────────────────────────────────────┤
|
||||
│ │
|
||||
│ ┌─────────────────────┐ ┌─────────────────────────┐ │
|
||||
│ │ Bizinikiwi │ │ PezCumulus │ │
|
||||
│ │ (Core Framework) │ │ (TeyrChain SDK) │ │
|
||||
│ │ │ │ │ │
|
||||
│ │ • Runtime Engine │ │ • Collator Framework │ │
|
||||
│ │ • Consensus │ │ • XCM Integration │ │
|
||||
│ │ • Networking │ │ • Relay Chain Bridge │ │
|
||||
│ └─────────────────────┘ └─────────────────────────┘ │
|
||||
│ │ │ │
|
||||
│ └──────────┬───────────────┘ │
|
||||
│ │ │
|
||||
│ ┌──────────▼───────────┐ │
|
||||
│ │ PezkuwiChain │ │
|
||||
│ │ (Reference Impl) │ │
|
||||
│ │ • TeyrChain │ │
|
||||
│ │ • Zagros Runtime │ │
|
||||
│ └──────────────────────┘ │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Crate Naming Convention
|
||||
|
||||
Pezkuwi SDK uses a distinct naming scheme to ensure complete independence:
|
||||
|
||||
| Component | Prefix | Example |
|
||||
| Component | Path | Description |
|
||||
| --- | --- | --- |
|
||||
| Core Framework | `bizinikiwi-` | `bizinikiwi-runtime` |
|
||||
| TeyrChain SDK | `pezcumulus-` | `pezcumulus-client` |
|
||||
| Client Crates | `pezsc-` | `pezsc-network`, `pezsc-consensus` |
|
||||
| Primitives | `pezsp-` | `pezsp-runtime`, `pezsp-core` |
|
||||
| Framework | `pezframe-` | `pezframe-support`, `pezframe-system` |
|
||||
| Pallets | `pezpallet-` | `pezpallet-balances`, `pezpallet-staking` |
|
||||
| Staging | `pezstaging-` | `pezstaging-xcm` |
|
||||
| **Bizinikiwi** | `bizinikiwi/` | Core framework (runtime engine, primitives, FRAME, client) |
|
||||
| **Relay chain** | `pezkuwi/` | PezkuwiChain relay chain (`pezkuwichain-runtime`) + node |
|
||||
| **PezCumulus** | `pezcumulus/` | Parachain framework + system-parachain runtimes (Asset Hub, People) |
|
||||
| **Bridges** | `pezbridges/` | Cross-chain bridge primitives and pallets |
|
||||
|
||||
### Networks
|
||||
|
||||
- **PezkuwiChain** — mainnet (`pezkuwichain-runtime`, Asset Hub & People parachains)
|
||||
- **Zagros** — test network (`zagros-runtime` and its system parachains)
|
||||
|
||||
### Original pallets
|
||||
|
||||
PezkuwiChain's sovereign logic — with no upstream equivalent — lives in
|
||||
`pezcumulus/teyrchains/pezpallets/`: `tiki` (citizenship), `welati` (governance),
|
||||
`perwerde` (education), `pez-treasury`, `pez-rewards`, `trust`, `identity-kyc`,
|
||||
`presale`, `referral`, `staking-score`, `token-wrapper`, `messaging`.
|
||||
|
||||
---
|
||||
|
||||
## PezkuwiChain — Reference Implementation
|
||||
## Tokens
|
||||
|
||||
PezkuwiChain is the flagship blockchain built on Pezkuwi SDK, designed for Kurdish digital sovereignty.
|
||||
|
||||
### Token Economics
|
||||
|
||||
**HEZ — Native Gas Token**
|
||||
- Purpose: Transaction fees, staking, network security
|
||||
- Model: Inflationary with staking rewards
|
||||
- Distribution: 85% staking rewards, 15% treasury
|
||||
|
||||
**PEZ — Governance Token**
|
||||
- Total Supply: 5,000,000,000 PEZ
|
||||
- Model: Fixed supply with halving cycles
|
||||
- Access: Citizenship-gated rewards
|
||||
|
||||
### Custom Pallets
|
||||
|
||||
| Pallet | Purpose |
|
||||
| --- | --- |
|
||||
| `pezpallet-presale` | Multi-round token launches with vesting |
|
||||
| `pezpallet-identity-kyc` | Decentralized identity verification |
|
||||
| `pezpallet-welati` | Democratic governance and voting |
|
||||
| `pezpallet-perwerde` | Educational platform and certificates |
|
||||
| `pezpallet-pez-treasury` | Community treasury with halving |
|
||||
| `pezpallet-pez-rewards` | Trust-based staking rewards |
|
||||
| `pezpallet-validator-pool` | Validator participation |
|
||||
| `pezpallet-staking-score` | Reputation-based metrics |
|
||||
| `pezpallet-trust` | Peer-to-peer trust system |
|
||||
| `pezpallet-referral` | Referral incentives |
|
||||
| `pezpallet-tiki` | NFT-based citizenship |
|
||||
| `pezpallet-token-wrapper` | Asset wrapping |
|
||||
|
||||
### TNPoS Consensus
|
||||
|
||||
Trust-enhanced Nominated Proof-of-Stake combines:
|
||||
- Economic Stake (HEZ)
|
||||
- Social Trust metrics
|
||||
- Performance scoring
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="160"><img src="./docs/images/hez_token_512.png" alt="HEZ" width="110" /><br/><b>HEZ</b></td>
|
||||
<td>Native gas token (relay chain) — transaction fees, staking, network security.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="160"><img src="./docs/images/pez_token_512.png" alt="PEZ" width="110" /><br/><b>PEZ</b></td>
|
||||
<td>Governance token (Asset Hub) — citizenship-gated, fixed supply.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
---
|
||||
|
||||
## TNPoS Consensus — World's First Trust-Augmented PoS
|
||||
|
||||
**Trust-enhanced Nominated Proof-of-Stake** combines:
|
||||
- **Economic Stake**: Traditional staking (HEZ)
|
||||
- **Social Trust**: Peer endorsements, citizenship level, governance participation
|
||||
- **Performance Metrics**: Uptime, finality participation, historical behavior
|
||||
|
||||
**Key Innovations**:
|
||||
- First implementation of social trust in consensus (academic contribution)
|
||||
- Parliamentary NFT System: 201 non-transferable governance seats
|
||||
- Sybil-resistant via citizenship verification (Tiki pallet)
|
||||
- Multi-dimensional validator scoring
|
||||
|
||||
---
|
||||
|
||||
## Cross-Chain Integration (XCM v5)
|
||||
|
||||
```
|
||||
Polkadot Asset Hub (USDT)
|
||||
│
|
||||
│ XCM Reserve Transfer
|
||||
▼
|
||||
TeyrChain (Parachain)
|
||||
│
|
||||
├─► Presale contributions
|
||||
├─► DEX trading (future)
|
||||
└─► Withdraw back to Asset Hub
|
||||
```
|
||||
|
||||
- Full XCM v5 implementation
|
||||
- Reserve-backed wUSDT bridge
|
||||
- HRMP channels for system teyrchains
|
||||
- Future bridges: wETH, wBTC, Ethereum, Tron, BSC
|
||||
|
||||
---
|
||||
|
||||
## Network Roadmap
|
||||
|
||||
| Stage | Validators | Status |
|
||||
| --- | --- | --- |
|
||||
| Dev Mode | 1 | ✅ |
|
||||
| Local Testnet | 2 | ✅ |
|
||||
| **Alfa Testnet** | 4 | ✅ |
|
||||
| Beta Testnet | 8 | Q1 2026 |
|
||||
| Staging | 20 | Q1 2026 |
|
||||
| **Mainnet** | 100 | Q2 2026 |
|
||||
|
||||
---
|
||||
|
||||
## Multi-Nation Platform Vision
|
||||
|
||||
PezkuwiChain is designed to host **multiple digital nations** simultaneously:
|
||||
|
||||
| Nation Type | Example | Target Population |
|
||||
| --- | --- | --- |
|
||||
| **Ethnic** | Kurdish (PEZ) | 40M+ globally |
|
||||
| **Ethnic** | Catalan | 10M+ |
|
||||
| **Ethnic** | Tibetan | 6M+ diaspora |
|
||||
| **Ethnic** | Uyghur | 12M+ |
|
||||
| **Ethnic** | Basque | 3M+ |
|
||||
| **Cultural** | Armenian diaspora | 8M+ |
|
||||
| **Cultural** | Romani | 10M+ worldwide |
|
||||
| **Indigenous** | Various tribes | Land rights, heritage |
|
||||
|
||||
**Shared Infrastructure**: All nations use HEZ for transactions
|
||||
**Nation-Specific Tokens**: Each group issues citizenship-gated tokens (PEZ model)
|
||||
**Interoperable Governance**: Cross-nation commerce, diplomacy on single blockchain
|
||||
|
||||
---
|
||||
|
||||
## Use Cases
|
||||
|
||||
1. **Digital Governance** — Parliamentary NFTs, on-chain voting, treasury management
|
||||
2. **Token Launches** — Compliant multi-round presales with vesting
|
||||
3. **Education** — Blockchain-verified certificates (Perwerde)
|
||||
4. **Identity** — Self-sovereign KYC and citizenship verification
|
||||
5. **Cross-Chain Finance** — wUSDT bridge, DeFi primitives
|
||||
6. **Cultural Preservation** — Language, heritage, oral tradition on-chain
|
||||
7. **Remittance** — Low-cost diaspora→homeland transfers ($20B+ Kurdish annual flows)
|
||||
|
||||
---
|
||||
|
||||
## Quick Start
|
||||
## Building
|
||||
|
||||
```bash
|
||||
# Clone repository
|
||||
git clone https://git.pezkuwichain.io/pezkuwichain/pezkuwi-sdk.git
|
||||
cd pezkuwi-sdk
|
||||
# Check a runtime
|
||||
cargo check -p pezkuwichain-runtime
|
||||
|
||||
# Build release
|
||||
# Build all runtime WASM (release)
|
||||
cargo build --release
|
||||
|
||||
# Build with benchmarks
|
||||
# Build with benchmarks / try-runtime
|
||||
cargo build --release --features runtime-benchmarks
|
||||
|
||||
# Run local testnet
|
||||
./target/release/pezkuwi-node --dev
|
||||
```
|
||||
|
||||
The pinned toolchain is declared in [`rust-toolchain.toml`](./rust-toolchain.toml). Builds are
|
||||
reproducible from a tagged commit together with the committed `Cargo.lock`.
|
||||
|
||||
---
|
||||
|
||||
## Links
|
||||
## Ecosystem
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><img src="./docs/images/marquee-promo.png" alt="Pezkuwi Extension" width="320" /><br/><b>Pezkuwi Extension</b><br/>Accounts & transaction signing</td>
|
||||
<td align="center"><img src="./docs/images/pezkuwi-wallet.png" alt="Pezkuwi Wallet" width="180" /><br/><b>Pezkuwi Wallet</b><br/>Mobile wallet for the network</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
| Resource | URL |
|
||||
| --- | --- |
|
||||
| Website | [pezkuwichain.io](https://pezkuwichain.io) |
|
||||
| Exchange (PEX) | [pex.network](https://pex.network) |
|
||||
| App | [app.pezkuwichain.io](https://app.pezkuwichain.io) |
|
||||
| Explorer | [explorer.pezkuwichain.io](https://explorer.pezkuwichain.io) |
|
||||
| Documentation | [docs.pezkuwichain.io](https://docs.pezkuwichain.io) |
|
||||
| RPC Endpoint | `wss://rpc.pezkuwichain.io` |
|
||||
|
||||
## Community
|
||||
|
||||
| Platform | Link |
|
||||
| --- | --- |
|
||||
| Telegram | [@pezkuwichain](https://t.me/pezkuwichain) |
|
||||
| Discord | [discord.gg/pezkuwichain](https://discord.gg/pezkuwichain) |
|
||||
| Twitter | [@pezkuwichain](https://twitter.com/pezkuwichain) |
|
||||
| Gitea | [git.pezkuwichain.io/pezkuwichain](https://git.pezkuwichain.io/pezkuwichain) |
|
||||
| Medium | [@pezkuwichain](https://medium.com/@pezkuwichain) |
|
||||
| Facebook | [PezkuwiChain](https://www.facebook.com/profile.php?id=61582484611719) |
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
## License & Attribution
|
||||
|
||||

|
||||

|
||||
The code in this repository is a derivative work based on
|
||||
[Polkadot SDK](https://github.com/paritytech/polkadot-sdk) (snapshot `stable2512`) by
|
||||
[Parity Technologies (UK) Ltd.](https://www.parity.io), used under **Apache-2.0** and **GPL-3.0**.
|
||||
|
||||
# Pezkuwi SDK
|
||||
|
||||
[](https://gitlab.com/pezkuwichain/pezkuwi-sdk) [](https://gitlab.com/pezkuwichain/pezkuwi-sdk)
|
||||
|
||||
<!-- markdownlint-disable-next-line MD013 -->
|
||||
[](https://pezkuwichain.io/community) [](https://gitlab.com/pezkuwichain/pezkuwi-sdk/-/graphs/main) [](https://gitlab.com/pezkuwichain/pezkuwi-sdk/-/commits/main)
|
||||
|
||||
> The Pezkuwi SDK repository provides all the components needed to start building on the
|
||||
> [PezkuwiChain](https://pezkuwichain.io/) network, a multi-chain blockchain platform that enables
|
||||
> different blockchains to interoperate and share information in a secure and scalable way.
|
||||
|
||||
</div>
|
||||
|
||||
## Quickstart
|
||||
|
||||
If you want to get an example node running quickly you can execute the following getting started script:
|
||||
|
||||
```bash
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://gitlab.com/pezkuwichain/pezkuwi-sdk/-/raw/main/scripts/getting-started.sh | bash
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
In order to build this project you need to install some dependencies, follow the instructions in [this guide](https://docs.pezkuwichain.io/develop/teyrchains/install-pezkuwi-sdk).
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Pezkuwi Documentation Portal](https://docs.pezkuwichain.io)
|
||||
- [rust-docs](https://pezkuwichain.gitlab.io/pezkuwi-sdk/pezkuwi_sdk_docs/index.html): Where we keep track of the API docs of our Rust crates. Includes:
|
||||
- [Introduction](https://pezkuwichain.gitlab.io/pezkuwi-sdk/pezkuwi_sdk_docs/pezkuwi_sdk/index.html) to each component of the Pezkuwi SDK: Bizinikiwi, FRAME, PezCumulus, and XCM
|
||||
- [Guides](https://pezkuwichain.gitlab.io/pezkuwi-sdk/pezkuwi_sdk_docs/guides/index.html), namely how to build your first FRAME pallet
|
||||
- [Templates](https://pezkuwichain.gitlab.io/pezkuwi-sdk/pezkuwi_sdk_docs/pezkuwi_sdk/templates/index.html) for starting a new project.
|
||||
- [External Resources](https://pezkuwichain.gitlab.io/pezkuwi-sdk/pezkuwi_sdk_docs/external_resources/index.html)
|
||||
- Have a question? You can ask in the Pezkuwi SDK Developers Chat.
|
||||
- [Telegram](https://t.me/DKSPezkuwiChain)
|
||||
- [Matrix](https://matrix.to/#/#pezkuwidevs:matrix.org)
|
||||
- [Discord](https://discord.gg/Y3VyEC6h8W)
|
||||
- [Pezkuwi StackExchange](https://pezkuwichain.io/forum)
|
||||
|
||||
## Releases
|
||||
|
||||
<!-- markdownlint-disable-next-line MD013 -->
|
||||
The Pezkuwi SDK is released every three months as a `Pezkuwi stableYYMM` release. Each stable release is supported for one year with patches. See the release history in [CHANGELOG.md](./CHANGELOG.md) and release documentation in [RELEASE.md](./docs/RELEASE.md).
|
||||
|
||||
You can use [`psvm`](https://git.pezkuwichain.io/pezkuwichain/psvm) to update all dependencies to a specific version without needing to manually select the correct version for each crate.
|
||||
|
||||
## Tooling
|
||||
|
||||
[Pezkuwi SDK Version Manager](https://git.pezkuwichain.io/pezkuwichain/psvm): A simple tool to manage and update the Pezkuwi SDK dependencies in any Cargo.toml file. It will automatically update the Pezkuwi SDK dependencies to their correct crates.io version.
|
||||
|
||||
## Security
|
||||
|
||||
The security policy and procedures can be found in [docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).
|
||||
|
||||
## Contributing & Code of Conduct
|
||||
|
||||
Ensure you follow our [contribution guidelines](./docs/contributor/CONTRIBUTING.md). In every interaction and contribution, this project adheres to the [Contributor Covenant Code of Conduct](./docs/contributor/CODE_OF_CONDUCT.md).
|
||||
|
||||
### Ready to Contribute?
|
||||
|
||||
Take a look at the issues labeled with [`mentor`](https://gitlab.com/pezkuwichain/pezkuwi-sdk/-/issues?label_name=C1-mentor) to get started! We always recognize valuable contributions by proposing an on-chain tip to the PezkuwiChain network as a token of our appreciation.
|
||||
|
||||
## Pezkuwi Fellowship
|
||||
|
||||
Development in this repo usually goes hand in hand with the `fellowship` organization. In short, this repository provides all the SDK pieces needed to build both PezkuwiChain and its teyrchains. But, the actual PezkuwiChain runtime lives in the `fellowship/runtimes` repository. Read more about the fellowship, this separation, and the RFC process in the [Pezkuwi Fellows repository](https://git.pezkuwichain.io/pezkuwichain/pezkuwi-fellows).
|
||||
|
||||
## History
|
||||
|
||||
This repository is the amalgamation of 3 separate repositories that used to make up Pezkuwi SDK, namely Bizinikiwi, Pezkuwi and PezCumulus. Read more about the SDK in the [Pezkuwi SDK Documentation](https://docs.pezkuwichain.io/pezkuwi_sdk_docs/index.html).
|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
Pezkuwi SDK is a derivative work based on [Polkadot SDK](https://github.com/paritytech/polkadot-sdk)
|
||||
by [Parity Technologies (UK) Ltd.](https://www.parity.io), used under Apache-2.0 and GPL-3.0-only.
|
||||
|
||||
Individual crates in this repository are licensed under one of:
|
||||
Individual crates are licensed under one of:
|
||||
|
||||
- **Apache License, Version 2.0** — see [LICENSE-APACHE](./LICENSE-APACHE)
|
||||
- **GNU General Public License v3 or later WITH Classpath-exception-2.0** — see [LICENSE-GPL3](./LICENSE-GPL3)
|
||||
- **MIT No Attribution (MIT-0)** — see [LICENSE-MIT0](./LICENSE-MIT0)
|
||||
- **The Unlicense** — see [LICENSE-UNLICENSE](./LICENSE-UNLICENSE)
|
||||
|
||||
See each crate's `Cargo.toml` `license` field and each source file's `SPDX-License-Identifier` header for the applicable license.
|
||||
See each crate's `Cargo.toml` `license` field and each source file's `SPDX-License-Identifier`
|
||||
header. Full attribution and the list of significant changes are in [NOTICE](./NOTICE).
|
||||
|
||||
For full attribution, significant changes, and third-party component notices, see [NOTICE](./NOTICE).
|
||||
Brand heritage and visual identity: [`docs/BRAND_HERITAGE.md`](./docs/BRAND_HERITAGE.md),
|
||||
[`docs/VISUAL_IDENTITY.md`](./docs/VISUAL_IDENTITY.md).
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
**Kurdistan Tech Institute**
|
||||
|
||||
*Building sovereign infrastructure for stateless nations*
|
||||
**Kurdistan Tech Institute** · *Sovereign infrastructure for stateless nations*
|
||||
|
||||
</div>
|
||||
Reference in new issue
Block a user