Development (#172)
* docs: Add CLAUDE_RULES.md with strict rebrand protection rules - Define immutable rebrand rules that cannot be violated - Prohibit reverting rebrand for cargo check convenience - Establish checkpoint and audit trail requirements - Document correct error handling approach * refactor: Complete kurdistan-sdk to pezkuwi-sdk rebrand - Update README.md with pezkuwi-sdk branding - Replace all kurdistan-sdk URL references with pezkuwi-sdk - Replace kurdistan-tech with pezkuwichain in workflows - Update email domains from @kurdistan-tech.io to @pezkuwichain.io - Rename tool references: kurdistan-tech-publish → pezkuwi-publish - Update runner names: kurdistan-tech-* → pezkuwichain-* - Update analytics/forum/matrix domains to pezkuwichain.io - Keep 'Kurdistan Tech Institute' as organization name - Keep tech@kurdistan.gov as official government contact
This commit is contained in:
@@ -73,9 +73,9 @@ jobs:
|
||||
rustup target add wasm32-unknown-unknown --toolchain $TOOLCHAIN
|
||||
rustup component add rust-src --toolchain $TOOLCHAIN
|
||||
|
||||
- name: Install kurdistan-tech-publish
|
||||
- name: Install pezkuwi-publish
|
||||
# Set the target dir to cache the build.
|
||||
run: CARGO_TARGET_DIR=./target/ cargo install kurdistan-tech-publish@0.10.6 --locked -q
|
||||
run: CARGO_TARGET_DIR=./target/ cargo install pezkuwi-publish@0.10.6 --locked -q
|
||||
|
||||
- name: Get original PR number
|
||||
shell: bash
|
||||
@@ -125,10 +125,10 @@ jobs:
|
||||
|
||||
prdoc_file="prdoc/pr_$PR.prdoc"
|
||||
|
||||
# Always run kurdistan-tech-publish to check for all issues (mismatches and missing crates)
|
||||
# Always run pezkuwi-publish to check for all issues (mismatches and missing crates)
|
||||
# Capture output to check for specific error types
|
||||
parity_output=$(mktemp)
|
||||
if ! kurdistan-tech-publish --color always prdoc --since old --validate prdoc/pr_$PR.prdoc $PRDOC_EXTRA_ARGS -v --toolchain $TOOLCHAIN 2>&1 | tee "$parity_output"; then
|
||||
if ! pezkuwi-publish --color always prdoc --since old --validate prdoc/pr_$PR.prdoc $PRDOC_EXTRA_ARGS -v --toolchain $TOOLCHAIN 2>&1 | tee "$parity_output"; then
|
||||
|
||||
# Check if there are missing crates (files changed but not listed in prdoc)
|
||||
if grep -q "Files changed but crate not listed in PR Doc" "$parity_output"; then
|
||||
@@ -202,7 +202,7 @@ jobs:
|
||||
rm -f "$minor_patch_temp"
|
||||
|
||||
if [ "$has_validate_false" = true ]; then
|
||||
echo "ℹ️ Found minor/patch bumps with validate: false override. Semver validation was skipped for these crates by kurdistan-tech-publish."
|
||||
echo "ℹ️ Found minor/patch bumps with validate: false override. Semver validation was skipped for these crates by pezkuwi-publish."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -18,5 +18,5 @@ jobs:
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'We have migrated the command bot to GHA<br/><br/>Please, see the new usage instructions <a href="https://github.com/pezkuwichain/pezkuwi-sdk/blob/master/docs/contributor/commands-readme.md">here</a> or <a href="https://forum.kurdistan-tech.io/t/streamlining-weight-generation-and-more-the-new-cmd-bot/2411">here</a>. Soon the old commands will be disabled.'
|
||||
body: 'We have migrated the command bot to GHA<br/><br/>Please, see the new usage instructions <a href="https://github.com/pezkuwichain/pezkuwi-sdk/blob/master/docs/contributor/commands-readme.md">here</a> or <a href="https://forum.pezkuwichain.io/t/streamlining-weight-generation-and-more-the-new-cmd-bot/2411">here</a>. Soon the old commands will be disabled.'
|
||||
})
|
||||
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
- run: mv ./target/doc ./crate-docs
|
||||
- name: Inject Simple Analytics script
|
||||
run: |
|
||||
script_content="<script async defer src=\"https://apisa.kurdistan-tech.io/latest.js\"></script><noscript><img src=\"https://apisa.kurdistan-tech.io/latest.js\" alt=\"\" referrerpolicy=\"no-referrer-when-downgrade\" /></noscript>"
|
||||
script_content="<script async defer src=\"https://apisa.pezkuwichain.io/latest.js\"></script><noscript><img src=\"https://apisa.pezkuwichain.io/latest.js\" alt=\"\" referrerpolicy=\"no-referrer-when-downgrade\" /></noscript>"
|
||||
docs_dir="./crate-docs"
|
||||
|
||||
inject_simple_analytics() {
|
||||
@@ -167,7 +167,7 @@ jobs:
|
||||
sed -i.bak '/extraheader/d' ./.git/config
|
||||
|
||||
echo "${Green}Git push${NC}"
|
||||
git config user.email "ci@kurdistan-tech.io"
|
||||
git config user.email "ci@pezkuwichain.io"
|
||||
git config user.name "${APP_NAME}"
|
||||
git commit --amend -m "___Updated docs" || echo "___Nothing to commit___"
|
||||
git push origin gh-pages --force
|
||||
|
||||
@@ -31,9 +31,9 @@ jobs:
|
||||
with:
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
- name: install kurdistan-tech-publish
|
||||
- name: install pezkuwi-publish
|
||||
run: |
|
||||
cargo install kurdistan-tech-publish@0.10.6 --locked -q
|
||||
cargo install pezkuwi-publish@0.10.6 --locked -q
|
||||
|
||||
- name: set current PR's prdoc name in a variable
|
||||
env:
|
||||
@@ -41,20 +41,20 @@ jobs:
|
||||
run: |
|
||||
echo "CURRENT_PRDOC=pr_${GITHUB_PR_NUM}.prdoc" >> $GITHUB_ENV
|
||||
|
||||
- name: kurdistan-tech-publish update plan w/o current prdoc
|
||||
- name: pezkuwi-publish update plan w/o current prdoc
|
||||
run: |
|
||||
if [ -f prdoc/$CURRENT_PRDOC ]; then
|
||||
mv prdoc/$CURRENT_PRDOC .
|
||||
fi
|
||||
kurdistan-tech-publish --color always plan --skip-check --prdoc prdoc/
|
||||
pezkuwi-publish --color always plan --skip-check --prdoc prdoc/
|
||||
|
||||
# The code base is not in master's state (due to commits brought by the
|
||||
# current PR), but we're interested in all master's prdocs to be applied
|
||||
# as if master is a stable branch, and in next steps we're following up with
|
||||
# a patch release of all crates based on some newly added prdocs
|
||||
# (meaning only the current prdoc).
|
||||
- name: kurdistan-tech-publish apply plan on the code state prior to current prdoc
|
||||
run: kurdistan-tech-publish --color always apply --registry
|
||||
- name: pezkuwi-publish apply plan on the code state prior to current prdoc
|
||||
run: pezkuwi-publish --color always apply --registry
|
||||
|
||||
- name: move all prdocs except current one to unstable dir
|
||||
run: |
|
||||
@@ -64,21 +64,21 @@ jobs:
|
||||
mv $CURRENT_PRDOC prdoc
|
||||
fi
|
||||
|
||||
- name: kurdistan-tech-publish update plan just for PR's prdoc
|
||||
- name: pezkuwi-publish update plan just for PR's prdoc
|
||||
run: |
|
||||
if [ -f "prdoc/$CURRENT_PRDOC" ]; then
|
||||
kurdistan-tech-publish --color always plan --skip-check --prdoc prdoc/
|
||||
pezkuwi-publish --color always plan --skip-check --prdoc prdoc/
|
||||
fi
|
||||
|
||||
- name: kurdistan-tech-publish apply plan
|
||||
- name: pezkuwi-publish apply plan
|
||||
run: |
|
||||
if [ -f "prdoc/$CURRENT_PRDOC" ]; then
|
||||
kurdistan-tech-publish --color always apply --registry
|
||||
pezkuwi-publish --color always apply --registry
|
||||
fi
|
||||
|
||||
- name: kurdistan-tech-publish check compile
|
||||
- name: pezkuwi-publish check compile
|
||||
run: |
|
||||
packages="$(kurdistan-tech-publish apply --print)"
|
||||
packages="$(pezkuwi-publish apply --print)"
|
||||
|
||||
if [ -n "$packages" ]; then
|
||||
cargo --color always check $(printf -- '-p %s ' $packages)
|
||||
|
||||
@@ -92,7 +92,7 @@ jobs:
|
||||
git config --global commit.gpgsign true
|
||||
git config --global gpg.program /home/runner/.local/bin/pgpkms-git
|
||||
git config --global user.name "ParityReleases"
|
||||
git config --global user.email "release-team@kurdistan-tech.io"
|
||||
git config --global user.email "release-team@pezkuwichain.io"
|
||||
git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
|
||||
|
||||
- name: Create stable branch
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
matrix:
|
||||
channel:
|
||||
- name: "RelEng: Pezkuwi Release Coordination"
|
||||
room: '!cqAmzdIcbOFwrdrubV:kurdistan-tech.io'
|
||||
room: '!cqAmzdIcbOFwrdrubV:pezkuwichain.io'
|
||||
environment: release
|
||||
env:
|
||||
PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }}
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
git config --global commit.gpgsign true
|
||||
git config --global gpg.program /home/runner/.local/bin/pgpkms-git
|
||||
git config --global user.name "ParityReleases"
|
||||
git config --global user.email "release-team@kurdistan-tech.io"
|
||||
git config --global user.email "release-team@pezkuwichain.io"
|
||||
git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
|
||||
|
||||
- name: Compute next rc tag
|
||||
@@ -101,6 +101,6 @@ jobs:
|
||||
with:
|
||||
room_id: ${{ matrix.channel.room }}
|
||||
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
|
||||
server: m.kurdistan-tech.io
|
||||
server: m.pezkuwichain.io
|
||||
message: |
|
||||
Release process for pezkuwi ${{ steps.compute_tag.outputs.new_tag }} has been started.<br/>
|
||||
|
||||
@@ -292,7 +292,7 @@ jobs:
|
||||
matrix:
|
||||
channel:
|
||||
- name: "Team: RelEng Internal"
|
||||
room: '!GvAyzgCDgaVrvibaAF:kurdistan-tech.io'
|
||||
room: '!GvAyzgCDgaVrvibaAF:pezkuwichain.io'
|
||||
|
||||
steps:
|
||||
- name: Send Matrix message to ${{ matrix.channel.name }}
|
||||
@@ -300,7 +300,7 @@ jobs:
|
||||
with:
|
||||
room_id: ${{ matrix.channel.room }}
|
||||
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
|
||||
server: m.kurdistan-tech.io
|
||||
server: m.pezkuwichain.io
|
||||
message: |
|
||||
**New version of pezkuwi tagged**: ${{ needs.validate-inputs.outputs.release_tag }}<br/>
|
||||
And release draft is release created in [pezkuwi-sdk repo](https://github.com/pezkuwichain/pezkuwi-sdk/releases)
|
||||
|
||||
@@ -38,7 +38,7 @@ on:
|
||||
description: Owner of the container image repo
|
||||
required: true
|
||||
type: string
|
||||
default: kurdistan-tech
|
||||
default: pezkuwichain
|
||||
|
||||
version:
|
||||
description: Version of the pezkuwi node release in format v1.16.0 or v1.16.0-rc1
|
||||
@@ -73,7 +73,7 @@ on:
|
||||
description: Owner of the container image repo
|
||||
required: true
|
||||
type: string
|
||||
default: kurdistan-tech
|
||||
default: pezkuwichain
|
||||
|
||||
version:
|
||||
description: Version of the pezkuwi node release in format v1.16.0 or v1.16.0-rc1
|
||||
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
git config --global commit.gpgsign true
|
||||
git config --global gpg.program /home/runner/.local/bin/pgpkms-git
|
||||
git config --global user.name "ParityReleases"
|
||||
git config --global user.email "release-team@kurdistan-tech.io"
|
||||
git config --global user.email "release-team@pezkuwichain.io"
|
||||
git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
|
||||
|
||||
- name: Create old release tag
|
||||
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
echo "Using pgpkms-git at: $PGPKMS_PATH"
|
||||
git config --global gpg.program "$PGPKMS_PATH"
|
||||
git config --global user.name "ParityReleases"
|
||||
git config --global user.email "release-team@kurdistan-tech.io"
|
||||
git config --global user.email "release-team@pezkuwichain.io"
|
||||
git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
|
||||
|
||||
- name: Bump NODE_VERSION for pezkuwi
|
||||
|
||||
@@ -51,7 +51,7 @@ on:
|
||||
description: Owner of the container image repo
|
||||
required: true
|
||||
type: string
|
||||
default: kurdistan-tech
|
||||
default: pezkuwichain
|
||||
|
||||
version:
|
||||
description: Version for Docker tags in format v1.16.0 or v1.16.0-rc1
|
||||
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ inputs.binary }}" == "pezkuwi-teyrchain" ]]; then
|
||||
echo "RUNNER=kurdistan-tech-large" >> $GITHUB_OUTPUT
|
||||
echo "RUNNER=pezkuwichain-large" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "RUNNER=ubuntu-latest" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
COMMIT=$(git rev-parse tags/$AUDITED)
|
||||
#$(git branch --contains $COMMIT | grep -q $UNSTABLE) || (echo "The '$AUDITED' tag is not on the '$UNSTABLE' branch." && exit 1)
|
||||
|
||||
git config --global user.email "admin@kurdistan-tech.io"
|
||||
git config --global user.email "admin@pezkuwichain.io"
|
||||
git config --global user.name "Kurdistan-Tech Release Team"
|
||||
|
||||
- name: Prepare commit
|
||||
|
||||
@@ -167,7 +167,7 @@ jobs:
|
||||
- name: Set workspace environment variable
|
||||
# relevant for artifacts upload, which can not interpolate Github Action variable syntax when
|
||||
# used within valid paths. We can not use root-based paths either, since it is set as read-only
|
||||
# on the `kurdistan-tech-macos` runner.
|
||||
# on the `pezkuwichain-macos` runner.
|
||||
run: echo "ARTIFACTS_PATH=${GITHUB_WORKSPACE}/artifacts/${{ matrix.binaries }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Homebrew
|
||||
|
||||
@@ -38,7 +38,7 @@ on:
|
||||
RUNNER_OLDLINUX:
|
||||
value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX }}
|
||||
description: |
|
||||
kurdistan-tech-oldlinux
|
||||
pezkuwichain-oldlinux
|
||||
By default we use spot machines that can be terminated at any time.
|
||||
Merge queues use persistent runners to avoid kicking off from queue when the runner is terminated.
|
||||
# New is used only during transition to the new runners
|
||||
@@ -51,7 +51,7 @@ on:
|
||||
RUNNER_OLDLINUX_NEW:
|
||||
value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX_NEW }}
|
||||
description: |
|
||||
kurdistan-tech-oldlinux
|
||||
pezkuwichain-oldlinux
|
||||
By default we use spot machines that can be terminated at any time.
|
||||
Merge queues use persistent runners to avoid kicking off from queue when the runner is terminated.
|
||||
RUNNER_DEFAULT:
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# Kurdistan SDK — Sovereign Blockchain Infrastructure
|
||||
# Pezkuwi SDK — Sovereign Blockchain Infrastructure
|
||||
|
||||
**Developed and maintained by Kurdistan Tech Institute**
|
||||
|
||||
Kurdistan 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 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.
|
||||
|
||||
---
|
||||
|
||||
## Origin
|
||||
|
||||
Kurdistan 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.
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
@@ -16,12 +16,12 @@ Kurdistan SDK originated as a fork of Polkadot SDK (stable2512). It has since be
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Kurdistan SDK Ecosystem │
|
||||
│ Pezkuwi SDK Ecosystem │
|
||||
├─────────────────────────────────────────────────────────────┤
|
||||
│ │
|
||||
│ ┌─────────────────────┐ ┌─────────────────────────┐ │
|
||||
│ │ Bizinikiwi │ │ PezCumulus │ │
|
||||
│ │ (Core Framework) │ │ (Parachain SDK) │ │
|
||||
│ │ (Core Framework) │ │ (TeyrChain SDK) │ │
|
||||
│ │ │ │ │ │
|
||||
│ │ • Runtime Engine │ │ • Collator Framework │ │
|
||||
│ │ • Consensus │ │ • XCM Integration │ │
|
||||
@@ -31,7 +31,7 @@ Kurdistan SDK originated as a fork of Polkadot SDK (stable2512). It has since be
|
||||
│ └──────────┬───────────────┘ │
|
||||
│ │ │
|
||||
│ ┌──────────▼───────────┐ │
|
||||
│ │ KurdistanChain │ │
|
||||
│ │ PezkuwiChain │ │
|
||||
│ │ (Reference Impl) │ │
|
||||
│ │ • TeyrChain │ │
|
||||
│ │ • Zagros Runtime │ │
|
||||
@@ -43,12 +43,12 @@ Kurdistan SDK originated as a fork of Polkadot SDK (stable2512). It has since be
|
||||
|
||||
## Crate Naming Convention
|
||||
|
||||
Kurdistan SDK uses a distinct naming scheme to ensure complete independence:
|
||||
Pezkuwi SDK uses a distinct naming scheme to ensure complete independence:
|
||||
|
||||
| Component | Prefix | Example |
|
||||
|-----------|--------|---------|
|
||||
| Core Framework (ex-Bizinikiwi) | `bizinikiwi-` | `bizinikiwi-runtime` |
|
||||
| Parachain SDK (ex-Pezcumulus) | `pezcumulus-` | `pezcumulus-client` |
|
||||
| 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` |
|
||||
@@ -57,9 +57,9 @@ Kurdistan SDK uses a distinct naming scheme to ensure complete independence:
|
||||
|
||||
---
|
||||
|
||||
## KurdistanChain — Reference Implementation
|
||||
## PezkuwiChain — Reference Implementation
|
||||
|
||||
KurdistanChain is the flagship blockchain built on Kurdistan SDK, designed for Kurdish digital sovereignty.
|
||||
PezkuwiChain is the flagship blockchain built on Pezkuwi SDK, designed for Kurdish digital sovereignty.
|
||||
|
||||
### Token Economics
|
||||
|
||||
@@ -75,7 +75,7 @@ KurdistanChain is the flagship blockchain built on Kurdistan SDK, designed for K
|
||||
|
||||
### Custom Pallets
|
||||
|
||||
| Pezpallet | Purpose |
|
||||
| Pallet | Purpose |
|
||||
|--------|---------|
|
||||
| `pezpallet-presale` | Multi-round token launches with vesting |
|
||||
| `pezpallet-identity-kyc` | Decentralized identity verification |
|
||||
@@ -99,70 +99,6 @@ Trust-enhanced Nominated Proof-of-Stake combines:
|
||||
|
||||
---
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# Clone repository
|
||||
git clone https://github.com/pezkuwichain/kurdistan-sdk.git
|
||||
cd kurdistan-sdk
|
||||
|
||||
# Build release
|
||||
cargo build --release
|
||||
|
||||
# Build with benchmarks
|
||||
cargo build --release --features runtime-benchmarks
|
||||
|
||||
# Run development node
|
||||
./target/release/kurdistan-node --dev
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
| Resource | URL |
|
||||
|----------|-----|
|
||||
| Main Docs | [docs.pezkuwichain.io](https://docs.pezkuwichain.io) |
|
||||
| API Reference | [api.pezkuwichain.io](https://api.pezkuwichain.io) |
|
||||
| Website | [pezkuwichain.io](https://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) |
|
||||
| GitHub | [github.com/pezkuwichain](https://github.com/pezkuwichain) |
|
||||
|
||||
---
|
||||
|
||||
## Contributing
|
||||
|
||||
Kurdistan SDK is developed by Kurdistan Tech Institute with community contributions.
|
||||
|
||||
See [CONTRIBUTING.md](./docs/contributor/CONTRIBUTING.md) for guidelines.
|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
Kurdistan SDK is licensed under Apache 2.0. See [LICENSE](./LICENSE) for details.
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
**Kurdistan Tech Institute**
|
||||
|
||||
*Building sovereign infrastructure for stateless nations*
|
||||
|
||||
</div>
|
||||
```
|
||||
|
||||
|
||||
## TNPoS Consensus — World's First Trust-Augmented PoS
|
||||
|
||||
**Trust-enhanced Nominated Proof-of-Stake** combines:
|
||||
@@ -171,10 +107,10 @@ Kurdistan SDK is licensed under Apache 2.0. See [LICENSE](./LICENSE) for details
|
||||
- **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 pezpallet)
|
||||
- 📊 Multi-dimensional validator scoring
|
||||
- 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
|
||||
|
||||
---
|
||||
|
||||
@@ -185,7 +121,7 @@ Polkadot Asset Hub (USDT)
|
||||
│
|
||||
│ XCM Reserve Transfer
|
||||
▼
|
||||
TeyrChain Parachain
|
||||
TeyrChain (Parachain)
|
||||
│
|
||||
├─► Presale contributions
|
||||
├─► DEX trading (future)
|
||||
@@ -203,9 +139,9 @@ TeyrChain Parachain
|
||||
|
||||
| Stage | Validators | Status |
|
||||
|-------|------------|--------|
|
||||
| Dev Mode | 1 | |
|
||||
| Local Testnet | 2 | |
|
||||
| **Alfa Testnet** | 4 | |
|
||||
| Dev Mode | 1 | ✅ |
|
||||
| Local Testnet | 2 | ✅ |
|
||||
| **Alfa Testnet** | 4 | ✅ |
|
||||
| Beta Testnet | 8 | Q1 2026 |
|
||||
| Staging | 20 | Q1 2026 |
|
||||
| **Mainnet** | 100 | Q2 2026 |
|
||||
@@ -214,7 +150,7 @@ TeyrChain Parachain
|
||||
|
||||
## Multi-Nation Platform Vision
|
||||
|
||||
KurdistanChain is designed to host **multiple digital nations** simultaneously:
|
||||
PezkuwiChain is designed to host **multiple digital nations** simultaneously:
|
||||
|
||||
| Nation Type | Example | Target Population |
|
||||
|-------------|---------|-------------------|
|
||||
@@ -249,8 +185,8 @@ KurdistanChain is designed to host **multiple digital nations** simultaneously:
|
||||
|
||||
```bash
|
||||
# Clone repository
|
||||
git clone https://github.com/pezkuwichain/kurdistan-sdk.git
|
||||
cd kurdistan-sdk
|
||||
git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
|
||||
cd pezkuwi-sdk
|
||||
|
||||
# Build release
|
||||
cargo build --release
|
||||
@@ -259,7 +195,7 @@ cargo build --release
|
||||
cargo build --release --features runtime-benchmarks
|
||||
|
||||
# Run local testnet
|
||||
./target/release/kurdistan-node --dev
|
||||
./target/release/pezkuwi-node --dev
|
||||
```
|
||||
|
||||
---
|
||||
@@ -283,105 +219,99 @@ cargo build --release --features runtime-benchmarks
|
||||
| Twitter | [@pezkuwichain](https://twitter.com/pezkuwichain) |
|
||||
| GitHub | [github.com/pezkuwichain](https://github.com/pezkuwichain) |
|
||||
| Medium | [@pezkuwichain](https://medium.com/@pezkuwichain) |
|
||||
| Facebook | [KurdistanChain](https://www.facebook.com/profile.php?id=61582484611719) |
|
||||
| Facebook | [PezkuwiChain](https://www.facebook.com/profile.php?id=61582484611719) |
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# Kurdistan SDK
|
||||
# Pezkuwi SDK
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
<!-- markdownlint-disable-next-line MD013 -->
|
||||
[](https://pezkuwichain.app/community)   
|
||||
[](https://pezkuwichain.app/community)   
|
||||
|
||||
> The Kurdistan SDK repository provides all the components needed to start building on the
|
||||
> [KurdistanChain](https://pezkuwichain.app/) network, a multi-chain blockchain platform that enables
|
||||
> The Pezkuwi SDK repository provides all the components needed to start building on the
|
||||
> [PezkuwiChain](https://pezkuwichain.app/) network, a multi-chain blockchain platform that enables
|
||||
> different blockchains to interoperate and share information in a secure and scalable way.
|
||||
|
||||
</div>
|
||||
|
||||
## ⚡ Quickstart
|
||||
## Quickstart
|
||||
|
||||
If you want to get an example node running quickly you can execute the following getting started script:
|
||||
|
||||
```
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/pezkuwichain/kurdistan-sdk/master/scripts/getting-started.sh | bash
|
||||
```bash
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/pezkuwichain/pezkuwi-sdk/master/scripts/getting-started.sh | bash
|
||||
```
|
||||
|
||||
## 👩🏽💻 Building
|
||||
## 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-kurdistan-sdk).
|
||||
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
|
||||
## Documentation
|
||||
|
||||
- [Kurdistan Documentation Portal](https://docs.pezkuwichain.io)
|
||||
- [rust-docs](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/index.html): Where we keep track of
|
||||
the API docs of our Rust crates. Includes:
|
||||
- [Introduction](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/kurdistan_sdk/index.html)
|
||||
to each component of the Kurdistan SDK: Substrate, FRAME, Cumulus, and XCM
|
||||
- [Guides](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/guides/index.html),
|
||||
namely how to build your first FRAME pezpallet
|
||||
- [Templates](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/kurdistan_sdk/templates/index.html)
|
||||
for starting a new project.
|
||||
- [External Resources](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/external_resources/index.html)
|
||||
- Have a question? You can ask in the Kurdistan SDK Developers Chat.
|
||||
Messages from either of these channels are bridged to the other, so you can use whichever one you like.
|
||||
- [Pezkuwi Documentation Portal](https://docs.pezkuwichain.io)
|
||||
- [rust-docs](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/index.html): Where we keep track of the API docs of our Rust crates. Includes:
|
||||
- [Introduction](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/pezkuwi_sdk/index.html) to each component of the Pezkuwi SDK: Bizinikiwi, FRAME, PezCumulus, and XCM
|
||||
- [Guides](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/guides/index.html), namely how to build your first FRAME pallet
|
||||
- [Templates](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/pezkuwi_sdk/templates/index.html) for starting a new project.
|
||||
- [External Resources](https://pezkuwichain.github.io/pezkuwi-sdk/master/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)
|
||||
- [Kurdistan and Substrate StackExchange](https://pezkuwichain.io/forum)
|
||||
- [Pezkuwi StackExchange](https://pezkuwichain.io/forum)
|
||||
|
||||
## 🚀 Releases
|
||||
## Releases
|
||||
|
||||
<!-- markdownlint-disable-next-line MD013 -->
|
||||
 
|
||||
 
|
||||
|
||||
The Kurdistan SDK is released every three months as a `Kurdistan stableYYMM` release. Each stable release is supported for
|
||||
one year with patches. See the next upcoming versions in the [Release
|
||||
Registry](https://github.com/pezkuwichain/release-registry/) and more docs in [RELEASE.md](./docs/RELEASE.md).
|
||||
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 next upcoming versions in the [Release Registry](https://github.com/pezkuwichain/release-registry/) and more docs in [RELEASE.md](./docs/RELEASE.md).
|
||||
|
||||
You can use [`psvm`](https://github.com/pezkuwichain/psvm) to update all dependencies to a specific
|
||||
version without needing to manually select the correct version for each crate.
|
||||
You can use [`psvm`](https://github.com/pezkuwichain/psvm) to update all dependencies to a specific version without needing to manually select the correct version for each crate.
|
||||
|
||||
## 🛠️ Tooling
|
||||
## Tooling
|
||||
|
||||
[Kurdistan SDK Version Manager](https://github.com/pezkuwichain/psvm):
|
||||
A simple tool to manage and update the Kurdistan SDK dependencies in any Cargo.toml file.
|
||||
It will automatically update the Kurdistan SDK dependencies to their correct crates.io version.
|
||||
[Pezkuwi SDK Version Manager](https://github.com/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
|
||||
## Security
|
||||
|
||||
The security policy and procedures can be found in
|
||||
[docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).
|
||||
The security policy and procedures can be found in [docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).
|
||||
|
||||
## 🤍 Contributing & Code of Conduct
|
||||
## 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).
|
||||
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?
|
||||
### Ready to Contribute?
|
||||
|
||||
Take a look at the issues labeled with [`mentor`](https://github.com/pezkuwichain/kurdistan-sdk/labels/C1-mentor)
|
||||
(or alternatively [this](https://mentor.tasty.limo/) page, created by one of the maintainers) label to get started!
|
||||
We always recognize valuable contributions by proposing an on-chain tip to the KurdistanChain network as a token of our
|
||||
appreciation.
|
||||
Take a look at the issues labeled with [`mentor`](https://github.com/pezkuwichain/pezkuwi-sdk/labels/C1-mentor) (or alternatively [this](https://mentor.tasty.limo/) page, created by one of the maintainers) label to get started! We always recognize valuable contributions by proposing an on-chain tip to the PezkuwiChain network as a token of our appreciation.
|
||||
|
||||
## Kurdistan Fellowship
|
||||
## 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 KurdistanChain and its teyrchains. But,
|
||||
the actual KurdistanChain runtime lives in the `fellowship/runtimes` repository. Read more about the
|
||||
fellowship, this separation, the RFC process
|
||||
[here](https://kurdistan-fellows.github.io/dashboard/).
|
||||
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, the RFC process [here](https://pezkuwi-fellows.github.io/dashboard/).
|
||||
|
||||
## History
|
||||
|
||||
This repository is the amalgamation of 3 separate repositories that used to make up Kurdistan SDK,
|
||||
namely Substrate, Kurdistan and Cumulus. Read more about the merge and its history
|
||||
[here](https://kurdistan-public.notion.site/Kurdistan-SDK-FAQ-fbc4cecc2c46443fb37b9eeec2f0d85f).
|
||||
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 merge and its history [here](https://pezkuwi-public.notion.site/Pezkuwi-SDK-FAQ-fbc4cecc2c46443fb37b9eeec2f0d85f).
|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
Pezkuwi SDK is licensed under Apache 2.0. See [LICENSE](./LICENSE) for details.
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
**Kurdistan Tech Institute**
|
||||
|
||||
*Building sovereign infrastructure for stateless nations*
|
||||
|
||||
</div>
|
||||
|
||||
@@ -177,7 +177,7 @@ where
|
||||
|
||||
io.merge(System::new(client.clone(), pool).into_rpc())?;
|
||||
// Making synchronous calls in light client freezes the browser currently,
|
||||
// more context: https://github.com/pezkuwichain/kurdistan-sdk/issues/53
|
||||
// more context: https://github.com/pezkuwichain/pezkuwi-sdk/issues/53
|
||||
// These RPCs should use an asynchronous caller instead.
|
||||
io.merge(
|
||||
Mmr::new(
|
||||
|
||||
@@ -33,7 +33,7 @@ Command:
|
||||
|
||||
```bash
|
||||
# Install only `pez_subkey`, at a specific version of the pez_subkey crate
|
||||
cargo install --force pez_subkey --git https://github.com/pezkuwichain/kurdistan-sdk --version <SET VERSION> --locked
|
||||
cargo install --force pez_subkey --git https://github.com/pezkuwichain/pezkuwi-sdk --version <SET VERSION> --locked
|
||||
# If you run into issues building, you likely are missing deps defined in https://docs.pezkuwichain.io/install/
|
||||
```
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
//!
|
||||
//! ```bash
|
||||
//! # Install only `pez_subkey`, at a specific version of the pez_subkey crate
|
||||
//! cargo install --force pez_subkey --git https://github.com/pezkuwichain/kurdistan-sdk --version <SET VERSION> --locked
|
||||
//! cargo install --force pez_subkey --git https://github.com/pezkuwichain/pezkuwi-sdk --version <SET VERSION> --locked
|
||||
//! # If you run into issues building, you likely are missing deps defined in https://docs.pezkuwichain.io/install/
|
||||
//! ```
|
||||
//!
|
||||
|
||||
@@ -73,7 +73,7 @@ pub trait BlockchainEvents<Block: BlockT> {
|
||||
///
|
||||
/// The events for this notification stream are emitted:
|
||||
/// - During initial sync process: if there is a re-org while importing blocks. See
|
||||
/// [here](https://github.com/pezkuwichain/kurdistan-sdk/issues/60#issuecomment-694091901) for the
|
||||
/// [here](https://github.com/pezkuwichain/pezkuwi-sdk/issues/60#issuecomment-694091901) for the
|
||||
/// rationale behind this.
|
||||
/// - After initial sync process: on every imported block, regardless of whether it is
|
||||
/// the new best block or not, causes a re-org or not.
|
||||
|
||||
@@ -85,7 +85,7 @@ pub enum CompatibilityMode<N> {
|
||||
/// Call `initialize_block` before doing any runtime calls.
|
||||
///
|
||||
/// Previously the node would execute `initialize_block` before fetching the authorities
|
||||
/// from the runtime. This behaviour changed in: <https://github.com/pezkuwichain/kurdistan-sdk/issues/77>
|
||||
/// from the runtime. This behaviour changed in: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/77>
|
||||
///
|
||||
/// By calling `initialize_block` before fetching the authorities, on a block that
|
||||
/// would enact a new validator set, the block would already be build/sealed by an
|
||||
|
||||
@@ -332,7 +332,7 @@ The current cryptographic scheme used by BEEFY is `ecdsa`. This is **different**
|
||||
schemes like `sr25519` and `ed25519` which are commonly used in Bizinikiwi configurations for
|
||||
other pallets (BABE, GRANDPA, AuRa, etc). The most noticeable difference is that an `ecdsa`
|
||||
public key is `33` bytes long, instead of `32` bytes for a `sr25519` based public key. So, a
|
||||
BEEFY key [sticks out](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/pezkuwi/node/service/src/chain_spec.rs#L738)
|
||||
BEEFY key [sticks out](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/pezkuwi/node/service/src/chain_spec.rs#L738)
|
||||
among the other public keys a bit.
|
||||
|
||||
For other crypto (using the default Bizinikiwi configuration) the `AccountId` (32-bytes) matches
|
||||
|
||||
@@ -381,7 +381,7 @@ impl DatabaseSource {
|
||||
/// Return path for databases that are stored on disk.
|
||||
pub fn path(&self) -> Option<&Path> {
|
||||
match self {
|
||||
// as per https://github.com/pezkuwichain/kurdistan-sdk/issues/78#discussion_r684312550
|
||||
// as per https://github.com/pezkuwichain/pezkuwi-sdk/issues/78#discussion_r684312550
|
||||
//
|
||||
// IIUC this is needed for pezkuwi to create its own dbs, so until it can use parity db
|
||||
// I would think rocksdb, but later parity-db.
|
||||
|
||||
@@ -492,7 +492,7 @@ fn returns_mutable_static_bss(wasm_method: WasmExecutionMethod) {
|
||||
// If we didn't restore the wasm instance properly, on a trap the stack pointer would not be
|
||||
// returned to its initial value and thus the stack space is going to be leaked.
|
||||
//
|
||||
// See https://github.com/pezkuwichain/kurdistan-sdk/issues/23 for details
|
||||
// See https://github.com/pezkuwichain/pezkuwi-sdk/issues/23 for details
|
||||
test_wasm_execution!(restoration_of_globals);
|
||||
fn restoration_of_globals(wasm_method: WasmExecutionMethod) {
|
||||
// Allocate 32 pages (of 65536 bytes) which gives the runtime 2048KB of heap to operate on
|
||||
|
||||
@@ -577,7 +577,7 @@ mod tests {
|
||||
/// Regression test for the case where the `GossipEngine.network_event_stream` closes. One
|
||||
/// should not ignore a `Poll::Ready(None)` as `poll_next_unpin` will panic on subsequent calls.
|
||||
///
|
||||
/// See https://github.com/pezkuwichain/kurdistan-sdk/issues/25 for details.
|
||||
/// See https://github.com/pezkuwichain/pezkuwi-sdk/issues/25 for details.
|
||||
#[test]
|
||||
fn returns_when_network_event_stream_closes() {
|
||||
let network = TestNetwork::default();
|
||||
|
||||
@@ -28,7 +28,7 @@ use pezsp_runtime::traits::{Block as BlockT, Hash, HashingFor};
|
||||
use prometheus_endpoint::{register, Counter, PrometheusError, Registry, U64};
|
||||
use std::{collections::HashMap, iter, sync::Arc, time, time::Instant};
|
||||
|
||||
// FIXME: Add additional spam/DoS attack protection: https://github.com/pezkuwichain/kurdistan-sdk/issues/7
|
||||
// FIXME: Add additional spam/DoS attack protection: https://github.com/pezkuwichain/pezkuwi-sdk/issues/7
|
||||
// NOTE: The current value is adjusted based on largest production network deployment (Kusama) and
|
||||
// the current main gossip user (GRANDPA). Currently there are ~800 validators on Kusama, as such,
|
||||
// each GRANDPA round should generate ~1600 messages, and we currently keep track of the last 2
|
||||
|
||||
@@ -360,9 +360,9 @@ impl NetworkStatusProvider for Litep2pNetworkService {
|
||||
connected_peers: HashMap::new(),
|
||||
not_connected_peers: HashMap::new(),
|
||||
// TODO: Check what info we can include here.
|
||||
// Issue reference: https://github.com/pezkuwichain/kurdistan-sdk/issues/15.
|
||||
// Issue reference: https://github.com/pezkuwichain/pezkuwi-sdk/issues/15.
|
||||
peerset: serde_json::json!(
|
||||
"Unimplemented. See https://github.com/pezkuwichain/kurdistan-sdk/issues/15."
|
||||
"Unimplemented. See https://github.com/pezkuwichain/pezkuwi-sdk/issues/15."
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -61,9 +61,9 @@ pub mod generic {
|
||||
}
|
||||
|
||||
/// Status sent on connection.
|
||||
// TODO https://github.com/pezkuwichain/kurdistan-sdk/issues/24: replace the `Status`
|
||||
// TODO https://github.com/pezkuwichain/pezkuwi-sdk/issues/24: replace the `Status`
|
||||
// struct with this one, after waiting a few releases beyond `NetworkSpecialization`'s
|
||||
// removal (https://github.com/pezkuwichain/kurdistan-sdk/issues/55)
|
||||
// removal (https://github.com/pezkuwichain/pezkuwi-sdk/issues/55)
|
||||
//
|
||||
// and set MIN_VERSION to 6.
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Encode, Decode)]
|
||||
|
||||
@@ -106,7 +106,7 @@ fn setup_libp2p(
|
||||
.with_substream_upgrade_protocol_override(upgrade::Version::V1)
|
||||
.with_notify_handler_buffer_size(NonZeroUsize::new(32).expect("32 != 0; qed"))
|
||||
// NOTE: 24 is somewhat arbitrary and should be tuned in the future if
|
||||
// necessary. See <https://github.com/pezkuwichain/kurdistan-sdk/issues/57>
|
||||
// necessary. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/57>
|
||||
.with_per_connection_event_buffer_size(24)
|
||||
.with_max_negotiating_inbound_streams(2048)
|
||||
.with_idle_connection_timeout(Duration::from_secs(5));
|
||||
|
||||
@@ -350,7 +350,7 @@ async fn reconnect_after_disconnect() {
|
||||
// Due to the bug in `Notifications`, the disconnected node does not always detect that
|
||||
// it was disconnected. The closed inbound substream is tolerated by design, and the
|
||||
// closed outbound substream is not detected until something is sent into it.
|
||||
// See [PR #13396](https://github.com/pezkuwichain/kurdistan-sdk/issues/45).
|
||||
// See [PR #13396](https://github.com/pezkuwichain/pezkuwi-sdk/issues/45).
|
||||
// This happens if the disconnecting node reconnects to it fast enough.
|
||||
// In this case the disconnected node does not transit via `ServiceState::NotConnected`
|
||||
// and stays in `ServiceState::FirstConnec`.
|
||||
|
||||
@@ -546,7 +546,7 @@ where
|
||||
.with_substream_upgrade_protocol_override(upgrade::Version::V1)
|
||||
.with_notify_handler_buffer_size(NonZeroUsize::new(32).expect("32 != 0; qed"))
|
||||
// NOTE: 24 is somewhat arbitrary and should be tuned in the future if
|
||||
// necessary. See <https://github.com/pezkuwichain/kurdistan-sdk/issues/57>
|
||||
// necessary. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/57>
|
||||
.with_per_connection_event_buffer_size(24)
|
||||
.with_max_negotiating_inbound_streams(2048)
|
||||
.with_idle_connection_timeout(network_config.idle_connection_timeout);
|
||||
@@ -768,9 +768,9 @@ where
|
||||
connected_peers,
|
||||
not_connected_peers,
|
||||
// TODO: Check what info we can include here.
|
||||
// Issue reference: https://github.com/pezkuwichain/kurdistan-sdk/issues/15.
|
||||
// Issue reference: https://github.com/pezkuwichain/pezkuwi-sdk/issues/15.
|
||||
peerset: serde_json::json!(
|
||||
"Unimplemented. See https://github.com/pezkuwichain/kurdistan-sdk/issues/15."
|
||||
"Unimplemented. See https://github.com/pezkuwichain/pezkuwi-sdk/issues/15."
|
||||
),
|
||||
}
|
||||
}
|
||||
@@ -1639,11 +1639,11 @@ where
|
||||
// reopened.
|
||||
// The code below doesn't compile because `role` is unknown. Propagating the
|
||||
// handshake of the secondary connections is quite an invasive change and
|
||||
// would conflict with https://github.com/pezkuwichain/kurdistan-sdk/issues/27.
|
||||
// would conflict with https://github.com/pezkuwichain/pezkuwi-sdk/issues/27.
|
||||
// Considering that dropping notifications is generally regarded as
|
||||
// acceptable, this bug is at the moment intentionally left there and is
|
||||
// intended to be fixed at the same time as
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/27.
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/27.
|
||||
// self.event_streams.send(Event::NotificationStreamClosed {
|
||||
// remote,
|
||||
// protocol,
|
||||
|
||||
@@ -386,7 +386,7 @@ where
|
||||
// receiving we need to add the engine ID tag.
|
||||
// The ID tag is hardcoded here to avoid depending on the GRANDPA crate, and
|
||||
// will be removed once we remove the backwards compatibility.
|
||||
// See: https://github.com/pezkuwichain/kurdistan-sdk/issues/32
|
||||
// See: https://github.com/pezkuwichain/pezkuwi-sdk/issues/32
|
||||
let justification =
|
||||
justifications.and_then(|just| just.into_justification(*b"FRNK"));
|
||||
|
||||
|
||||
@@ -2075,7 +2075,7 @@ where
|
||||
// This is purely during a backwards compatible transitionary period and should be removed
|
||||
// once we can assume all nodes can send and receive multiple Justifications
|
||||
// The ID tag is hardcoded here to avoid depending on the GRANDPA crate.
|
||||
// See: https://github.com/pezkuwichain/kurdistan-sdk/issues/32
|
||||
// See: https://github.com/pezkuwichain/pezkuwi-sdk/issues/32
|
||||
fn legacy_justification_mapping(
|
||||
justification: Option<EncodedJustification>,
|
||||
) -> Option<Justifications> {
|
||||
|
||||
@@ -549,7 +549,7 @@ async fn can_sync_explicit_forks() {
|
||||
|
||||
// TODO: for unknown reason, this test is flaky on a multithreaded runtime, so we run it
|
||||
// in a single-threaded mode.
|
||||
// See issue https://github.com/pezkuwichain/kurdistan-sdk/issues/20.
|
||||
// See issue https://github.com/pezkuwichain/pezkuwi-sdk/issues/20.
|
||||
#[tokio::test]
|
||||
async fn syncs_header_only_forks() {
|
||||
pezsp_tracing::try_init_simple();
|
||||
|
||||
@@ -76,8 +76,8 @@ pub trait SystemApi<Hash, Number> {
|
||||
///
|
||||
/// **Warning**: This API is not stable. Please do not programmatically interpret its output,
|
||||
/// as its format might change at any time.
|
||||
// TODO: the future of this call is uncertain: https://github.com/pezkuwichain/kurdistan-sdk/issues/22
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/26
|
||||
// TODO: the future of this call is uncertain: https://github.com/pezkuwichain/pezkuwi-sdk/issues/22
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/26
|
||||
#[method(name = "system_unstable_networkState", with_extensions)]
|
||||
async fn system_network_state(&self) -> Result<JsonValue, Error>;
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ const DEFAULT_PROTOCOL_ID: &str = "sup";
|
||||
#[derive(Clone)]
|
||||
pub struct RpcHandlers {
|
||||
// This is legacy and may be removed at some point, it was for WASM stuff before smoldot was a
|
||||
// thing. https://github.com/pezkuwichain/kurdistan-sdk/issues/121#discussion_r1694971805
|
||||
// thing. https://github.com/pezkuwichain/pezkuwi-sdk/issues/121#discussion_r1694971805
|
||||
rpc_module: Arc<RpcModule<()>>,
|
||||
|
||||
// This can be used to introspect the port the RPC server is listening on. SDK consumers are
|
||||
@@ -447,7 +447,7 @@ where
|
||||
request_logger_limit: rpc_configuration.request_logger_limit,
|
||||
};
|
||||
|
||||
// TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/12
|
||||
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/12
|
||||
//
|
||||
// `block_in_place` is a hack to allow callers to call `block_on` prior to
|
||||
// calling `start_rpc_servers`.
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
// Test inspired (copied) from:
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/blob/85b71daf7aac59da4d2186b45d589c7c619f0981/polkadot/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs#L21
|
||||
// and patched as in:
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/124#issuecomment-2808830472
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/124#issuecomment-2808830472
|
||||
|
||||
use crate::zombienet::{BlockSubscriptionType, NetworkSpawner, ScenarioBuilderSharedParams};
|
||||
use pezcumulus_zombienet_sdk_helpers::create_assign_core_call;
|
||||
|
||||
@@ -160,11 +160,11 @@ board](https://github.com/paritytech/bizinikiwi/discussions).
|
||||
|
||||
Patch release with backports to fix broken nightly builds. Namely contains backports of
|
||||
|
||||
* [#7381: Make Bizinikiwi compile with latest nightly](https://github.com/pezkuwichain/kurdistan-sdk/issues/66)
|
||||
* [#7238: Fix compilation with environmental on latest nightly](https://github.com/pezkuwichain/kurdistan-sdk/issues/63)
|
||||
* [#7395: Make benchmarks compile with latest nightly](https://github.com/pezkuwichain/kurdistan-sdk/issues/69)
|
||||
* [#7838: Fix incorrect use of syn::exports](https://github.com/pezkuwichain/kurdistan-sdk/issues/72) (partially)
|
||||
* [#7854: Update to futures 0.3.9](https://github.com/pezkuwichain/kurdistan-sdk/issues/73)
|
||||
* [#7381: Make Bizinikiwi compile with latest nightly](https://github.com/pezkuwichain/pezkuwi-sdk/issues/66)
|
||||
* [#7238: Fix compilation with environmental on latest nightly](https://github.com/pezkuwichain/pezkuwi-sdk/issues/63)
|
||||
* [#7395: Make benchmarks compile with latest nightly](https://github.com/pezkuwichain/pezkuwi-sdk/issues/69)
|
||||
* [#7838: Fix incorrect use of syn::exports](https://github.com/pezkuwichain/pezkuwi-sdk/issues/72) (partially)
|
||||
* [#7854: Update to futures 0.3.9](https://github.com/pezkuwichain/pezkuwi-sdk/issues/73)
|
||||
|
||||
|
||||
## 2.0.0-rc6 -> 2.0.0 – two dot 😮
|
||||
@@ -390,7 +390,7 @@ Patch release with backports to fix broken nightly builds. Namely contains backp
|
||||
**License Changed** From this release forward, the code is released under a new – more relaxed – license scheme: Client
|
||||
(`pezsc-*`) is released under "GPL 3.0 or newer with the Classpath Exception", while primitives, FRAME, the pallets, utils
|
||||
and test-utils are released under "Apache 2.0". More details in the [Relax licensing scheme
|
||||
PR](https://github.com/pezkuwichain/kurdistan-sdk/issues/56).
|
||||
PR](https://github.com/pezkuwichain/pezkuwi-sdk/issues/56).
|
||||
|
||||
### Runtime
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ The same goes for all `<Self as frame_system::Trait>` and alike, which simply be
|
||||
#### SS58 Prefix is now a runtime param
|
||||
|
||||
|
||||
Since [#7810](https://github.com/pezkuwichain/kurdistan-sdk/issues/71) we don't define the ss58 prefix in the chainspec
|
||||
Since [#7810](https://github.com/pezkuwichain/pezkuwi-sdk/issues/71) we don't define the ss58 prefix in the chainspec
|
||||
anymore but moved it into the runtime. Namely, `frame_system` now needs a new `SS58Prefix`, which in Bizinikiwi node we
|
||||
have defined for ourselves as: `pub const SS58Prefix: u8 = 42;`. Use your own chain-specific value there.
|
||||
|
||||
@@ -195,9 +195,9 @@ And update the overall definition for weights on frame and a few related types a
|
||||
##### Assets
|
||||
|
||||
The assets pezpallet has seen a variety of changes:
|
||||
- [Features needed for reserve-backed stablecoins #7152](https://github.com/pezkuwichain/kurdistan-sdk/issues/61)
|
||||
- [Freeze Assets and Asset Metadata #7346](https://github.com/pezkuwichain/kurdistan-sdk/issues/64)
|
||||
- [Introduces account existence providers reference counting #7363]((https://github.com/pezkuwichain/kurdistan-sdk/issues/65))
|
||||
- [Features needed for reserve-backed stablecoins #7152](https://github.com/pezkuwichain/pezkuwi-sdk/issues/61)
|
||||
- [Freeze Assets and Asset Metadata #7346](https://github.com/pezkuwichain/pezkuwi-sdk/issues/64)
|
||||
- [Introduces account existence providers reference counting #7363]((https://github.com/pezkuwichain/pezkuwi-sdk/issues/65))
|
||||
|
||||
have all altered the feature set and changed the concepts. However, it has some of the best documentation and explains
|
||||
the current state very well. If you are using the assets pezpallet and need to upgrade from an earlier version, we
|
||||
@@ -269,7 +269,7 @@ impl pallet_tips::Config for Runtime {
|
||||
#### `FinalityTracker` removed
|
||||
|
||||
Finality Tracker has been removed in favor of a different approach to handle the issue in GRANDPA, [see #7228 for
|
||||
details](https://github.com/pezkuwichain/kurdistan-sdk/issues/62). With latest GRANDPA this is not needed anymore and can be
|
||||
details](https://github.com/pezkuwichain/pezkuwi-sdk/issues/62). With latest GRANDPA this is not needed anymore and can be
|
||||
removed without worry.
|
||||
|
||||
#### (changes) Elections Phragmen
|
||||
@@ -309,9 +309,9 @@ adequate deposit associated with them. A number of configuration parameters has
|
||||
```
|
||||
|
||||
**This upgrade requires storage
|
||||
[migration](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/elections-phragmen/src/migrations_3_0_0.rs)**.
|
||||
[migration](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/elections-phragmen/src/migrations_3_0_0.rs)**.
|
||||
Further details can be found in the [pezpallet-specific
|
||||
changelog](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/elections-phragmen/CHANGELOG.md#security).
|
||||
changelog](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/elections-phragmen/CHANGELOG.md#security).
|
||||
|
||||
#### (changes) Democracy
|
||||
|
||||
@@ -360,15 +360,15 @@ are effected by changes and how to update your code yourself.
|
||||
A few minor things have changed in the `cli` (compared to 2.0.1):
|
||||
|
||||
1. we've [replaced the newly added `BuildSyncSpec` subcommand with an RPC
|
||||
API](https://github.com/pezkuwichain/kurdistan-sdk/commit/65cc9af9b8df8d36928f6144ee7474cefbd70454#diff-c57da6fbeff8c46ce15f55ea42fedaa5a4684d79578006ce4af01ae04fd6b8f8)
|
||||
API](https://github.com/pezkuwichain/pezkuwi-sdk/commit/65cc9af9b8df8d36928f6144ee7474cefbd70454#diff-c57da6fbeff8c46ce15f55ea42fedaa5a4684d79578006ce4af01ae04fd6b8f8)
|
||||
in an on-going effort to make light-client-support smoother, see below
|
||||
2. we've [removed double accounts from our
|
||||
chainspec-builder](https://github.com/pezkuwichain/kurdistan-sdk/commit/31499cd29ed30df932fb71b7459796f7160d0272)
|
||||
chainspec-builder](https://github.com/pezkuwichain/pezkuwi-sdk/commit/31499cd29ed30df932fb71b7459796f7160d0272)
|
||||
3. we [don't fallback to `--chain flaming-fir`
|
||||
anymore](https://github.com/pezkuwichain/kurdistan-sdk/commit/13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6), if no chain is
|
||||
anymore](https://github.com/pezkuwichain/pezkuwi-sdk/commit/13cdf1c8cd2ee62d411f82b64dc7eba860c9c6c6), if no chain is
|
||||
given our `bizinikiwi-node` will error.
|
||||
4. [the `pez_subkey`-integration has seen a fix to the
|
||||
`insert`-command](https://github.com/pezkuwichain/kurdistan-sdk/commit/54bde60cfd2c544c54e9e8623b6b8725b99557f8) that
|
||||
`insert`-command](https://github.com/pezkuwichain/pezkuwi-sdk/commit/54bde60cfd2c544c54e9e8623b6b8725b99557f8) that
|
||||
requires you to now add the `&cli` as a param.
|
||||
```diff=
|
||||
--- a/bin/node/cli/src/command.rs
|
||||
|
||||
@@ -26,7 +26,7 @@ that are removed from the source. So you need to manually check and remove them
|
||||
commit in Bizinikiwi remote repository, such as:
|
||||
|
||||
```toml
|
||||
toml pezsp-core = { version = "7.0.0", git = "https://github.com/pezkuwichain/kurdistan-sdk.git", rev =
|
||||
toml pezsp-core = { version = "7.0.0", git = "https://github.com/pezkuwichain/pezkuwi-sdk.git", rev =
|
||||
"de80d0107336a9c7a2efdc0199015e4d67fcbdb5", default-features = false }
|
||||
```
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
There is [a script in place](../.maintain/rustdocs-release.sh) to manage the deployment of Bizinikiwi rustdocs at
|
||||
https://docs.pezkuwichain.io/bizinikiwi, which is pushing the rustdocs file in `gh-pages` branch of
|
||||
https://github.com/pezkuwichain/kurdistan-sdk.
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk.
|
||||
|
||||
The documentation at the top of the `rustdocs-release.sh` explains most of the mechanics of the script.
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ pub(crate) fn new_test_ext() -> pezsp_io::TestExternalities {
|
||||
config.assimilate_storage(&mut storage).unwrap();
|
||||
|
||||
let mut ext: pezsp_io::TestExternalities = storage.into();
|
||||
// Clear thread local vars for https://github.com/pezkuwichain/kurdistan-sdk/issues/2.
|
||||
// Clear thread local vars for https://github.com/pezkuwichain/pezkuwi-sdk/issues/2.
|
||||
ext.execute_with(|| take_hooks());
|
||||
ext.execute_with(|| System::set_block_number(1));
|
||||
ext
|
||||
|
||||
@@ -1547,7 +1547,7 @@ fn freezer_should_work() {
|
||||
set_frozen_balance(0, 1, 50);
|
||||
|
||||
// Note: The amount to be transferred in this step changed deliberately from 20 to 30
|
||||
// (https://github.com/pezkuwichain/kurdistan-sdk/issues/119/commits/2ab35354d86904c035b21a2229452841b79b0457)
|
||||
// (https://github.com/pezkuwichain/pezkuwi-sdk/issues/119/commits/2ab35354d86904c035b21a2229452841b79b0457)
|
||||
// to reflect the change in how `reducible_balance` is calculated: from untouchable = ed +
|
||||
// frozen, to untouchalbe = max(ed, frozen)
|
||||
//
|
||||
|
||||
@@ -303,7 +303,7 @@ pub mod pezpallet {
|
||||
|
||||
/// The ID type for reserves.
|
||||
///
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/kurdistan-sdk/issues/40/`
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/40/`
|
||||
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
|
||||
|
||||
/// The ID type for freezes.
|
||||
@@ -312,13 +312,13 @@ pub mod pezpallet {
|
||||
/// The maximum number of locks that should exist on an account.
|
||||
/// Not strictly enforced, but used for weight estimation.
|
||||
///
|
||||
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/kurdistan-sdk/issues/40/`
|
||||
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/40/`
|
||||
#[pezpallet::constant]
|
||||
type MaxLocks: Get<u32>;
|
||||
|
||||
/// The maximum number of named reserves that can exist on an account.
|
||||
///
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/kurdistan-sdk/issues/40/`
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/40/`
|
||||
#[pezpallet::constant]
|
||||
type MaxReserves: Get<u32>;
|
||||
|
||||
@@ -507,7 +507,7 @@ pub mod pezpallet {
|
||||
/// Any liquidity locks on some account balances.
|
||||
/// NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||
///
|
||||
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/kurdistan-sdk/issues/40/`
|
||||
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/40/`
|
||||
#[pezpallet::storage]
|
||||
pub type Locks<T: Config<I>, I: 'static = ()> = StorageMap<
|
||||
_,
|
||||
@@ -519,7 +519,7 @@ pub mod pezpallet {
|
||||
|
||||
/// Named reserves on some account balances.
|
||||
///
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/kurdistan-sdk/issues/40/`
|
||||
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/40/`
|
||||
#[pezpallet::storage]
|
||||
pub type Reserves<T: Config<I>, I: 'static = ()> = StorageMap<
|
||||
_,
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
// Most of the business logic in this pezpallet has been
|
||||
// originally contributed by "https://github.com/shamb0",
|
||||
// as part of the PR - https://github.com/pezkuwichain/kurdistan-sdk/issues/74.
|
||||
// as part of the PR - https://github.com/pezkuwichain/pezkuwi-sdk/issues/74.
|
||||
// The code has been moved here and then refactored in order to
|
||||
// extract child bounties as a separate pezpallet.
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Don't rely on reserved balances keeping an account alive
|
||||
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/44>.
|
||||
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/44>.
|
||||
|
||||
use crate::{
|
||||
exec::AccountIdOf,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Overflowing bounded DeletionQueue.
|
||||
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/47>.
|
||||
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/47>.
|
||||
|
||||
use crate::{
|
||||
migration::{IsFinished, MigrationStep},
|
||||
@@ -74,7 +74,7 @@ pub struct Migration<T: Config> {
|
||||
impl<T: Config> MigrationStep for Migration<T> {
|
||||
const VERSION: u16 = 11;
|
||||
|
||||
// It would be more correct to make our use the now removed [DeletionQueueDepth](https://github.com/pezkuwichain/kurdistan-sdk/issues/47/files#diff-70e9723e9db62816e35f6f885b6770a8449c75a6c2733e9fa7a245fe52c4656c)
|
||||
// It would be more correct to make our use the now removed [DeletionQueueDepth](https://github.com/pezkuwichain/pezkuwi-sdk/issues/47/files#diff-70e9723e9db62816e35f6f885b6770a8449c75a6c2733e9fa7a245fe52c4656c)
|
||||
// but in practice the queue is always empty, so 128 is a good enough approximation for not
|
||||
// underestimating the weight of our migration.
|
||||
fn max_step_weight() -> Weight {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Add `delegate_dependencies` to `ContractInfo`.
|
||||
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/49>.
|
||||
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/49>.
|
||||
|
||||
use crate::{
|
||||
migration::{IsFinished, MigrationStep},
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
//! Update the code owner balance, make the code upload deposit balance to be held instead of
|
||||
//! reserved. Since [`Currency`](pezframe_support::traits::Currency) has been
|
||||
//! [deprecated](https://github.com/pezkuwichain/kurdistan-sdk/issues/40), we need the deposits to be
|
||||
//! [deprecated](https://github.com/pezkuwichain/pezkuwi-sdk/issues/40), we need the deposits to be
|
||||
//! handled by the [`pezframe_support::traits::fungible`] traits.
|
||||
|
||||
use crate::{
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
//! Move contracts' _reserved_ balance from the `deposit_account` to be _held_ in the contract's
|
||||
//! account instead. Since [`Currency`](pezframe_support::traits::Currency) has been
|
||||
//! [deprecated](https://github.com/pezkuwichain/kurdistan-sdk/issues/40), we need the deposits to be
|
||||
//! [deprecated](https://github.com/pezkuwichain/pezkuwi-sdk/issues/40), we need the deposits to be
|
||||
//! handled by the [`pezframe_support::traits::fungible`] traits instead. For this transfer the
|
||||
//! balance from the deposit account to the contract's account and hold it in there.
|
||||
//! Then the deposit account is not needed anymore and we can get rid of it.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! Remove ED from storage base deposit.
|
||||
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/116>.
|
||||
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/116>.
|
||||
|
||||
use crate::{
|
||||
migration::{IsFinished, MigrationStep},
|
||||
|
||||
@@ -1371,7 +1371,7 @@ pub mod pezpallet {
|
||||
|
||||
/// The in-code storage version.
|
||||
///
|
||||
/// v1: https://github.com/pezkuwichain/kurdistan-sdk/issues/38/
|
||||
/// v1: https://github.com/pezkuwichain/pezkuwi-sdk/issues/38/
|
||||
const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);
|
||||
|
||||
#[pezpallet::pezpallet]
|
||||
|
||||
@@ -250,7 +250,7 @@ fn continuous_slashes_below_offending_threshold() {
|
||||
/// be below ED. In that case, only the stash (or root) can kill the ledger entry by calling
|
||||
/// `withdraw_unbonded` after the bonding period has passed.
|
||||
///
|
||||
/// Related to <https://github.com/pezkuwichain/kurdistan-sdk/issues/16>.
|
||||
/// Related to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/16>.
|
||||
fn ledger_consistency_active_balance_below_ed() {
|
||||
use pezpallet_staking::{Error, Event};
|
||||
|
||||
|
||||
@@ -699,7 +699,7 @@ pub fn roll_to(n: BlockNumber, delay_solution: bool) {
|
||||
Timestamp::set_timestamp(System::block_number() * BLOCK_TIME + INIT_TIMESTAMP);
|
||||
|
||||
// TODO(gpestana): implement a realistic OCW worker instead of simulating it
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/10
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/10
|
||||
// if there's no solution queued and the solution should not be delayed, try mining and
|
||||
// queue a solution.
|
||||
if CurrentPhase::<Runtime>::get().is_signed() && !delay_solution {
|
||||
|
||||
@@ -49,7 +49,7 @@ pub(crate) fn syn_err(message: &'static str) -> syn::Error {
|
||||
/// compact encoding.
|
||||
/// - The accuracy of the ratios. This must be one of the `PerThing` types defined in
|
||||
/// `sp-arithmetic`.
|
||||
/// - The maximum number of voters. This must be of type `Get<u32>`. Check <https://github.com/pezkuwichain/kurdistan-sdk/issues/5>
|
||||
/// - The maximum number of voters. This must be of type `Get<u32>`. Check <https://github.com/pezkuwichain/pezkuwi-sdk/issues/5>
|
||||
/// for more details. This is used to bound the struct, by leveraging the fact that `votes1.len()
|
||||
/// < votes2.len() < ... < votesn.len()` (the details of the struct is explained further below).
|
||||
/// We know that `sum_i votes_i.len() <= MaxVoters`, and we know that the maximum size of the
|
||||
|
||||
@@ -379,7 +379,7 @@ pub trait ElectionDataProvider {
|
||||
/// [`Self::targets().len()`], since desiring a winner set larger than candidates is not
|
||||
/// feasible.
|
||||
///
|
||||
/// This is documented further in issue: <https://github.com/pezkuwichain/kurdistan-sdk/issues/35>
|
||||
/// This is documented further in issue: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/35>
|
||||
fn desired_targets() -> data_provider::Result<u32>;
|
||||
|
||||
/// Provide a best effort prediction about when the next election is about to happen.
|
||||
|
||||
@@ -9,7 +9,7 @@ and this crate adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
|
||||
### Added
|
||||
|
||||
### Changed
|
||||
\[**Needs Migration**\] [migrate pezpallet-elections-phragmen to attribute macros](https://github.com/pezkuwichain/kurdistan-sdk/issues/75)
|
||||
\[**Needs Migration**\] [migrate pezpallet-elections-phragmen to attribute macros](https://github.com/pezkuwichain/pezkuwi-sdk/issues/75)
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -18,16 +18,16 @@ and this crate adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
|
||||
## [3.0.0]
|
||||
|
||||
### Added
|
||||
[Add slashing events to elections-phragmen](https://github.com/pezkuwichain/kurdistan-sdk/issues/70)
|
||||
[Add slashing events to elections-phragmen](https://github.com/pezkuwichain/pezkuwi-sdk/issues/70)
|
||||
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
[Don't slash all outgoing members](https://github.com/pezkuwichain/kurdistan-sdk/issues/68)
|
||||
[Fix wrong outgoing calculation in election](https://github.com/pezkuwichain/kurdistan-sdk/issues/67)
|
||||
[Don't slash all outgoing members](https://github.com/pezkuwichain/pezkuwi-sdk/issues/68)
|
||||
[Fix wrong outgoing calculation in election](https://github.com/pezkuwichain/pezkuwi-sdk/issues/67)
|
||||
|
||||
### Security
|
||||
\[**Needs Migration**\] [Fix elections-phragmen and proxy issue + Record deposits on-chain](https://github.com/pezkuwichain/kurdistan-sdk/issues/59)
|
||||
\[**Needs Migration**\] [Fix elections-phragmen and proxy issue + Record deposits on-chain](https://github.com/pezkuwichain/pezkuwi-sdk/issues/59)
|
||||
|
||||
## [2.0.0] - 2020-09-2020
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ Run `cargo doc --package pezpallet-example-basic --open` to view this pezpallet'
|
||||
requires root, but without repeating the source code details.
|
||||
Capitalize the first word of each documentation comment and end it with
|
||||
a full stop. See
|
||||
<a href="https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/README.md#contributing-to-documentation-for-bizinikiwi-packages"
|
||||
<a href="https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/README.md#contributing-to-documentation-for-bizinikiwi-packages"
|
||||
target="_blank"> Generic example of annotating source code with documentation comments</a></li>
|
||||
<li>Self-documenting code - Try to refactor code to be self-documenting.</li>
|
||||
<li>Code comments - Supplement complex code with a brief explanation, not every line of code.</li>
|
||||
@@ -54,7 +54,7 @@ Copy and paste this template from frame/examples/basic/src/lib.rs into file
|
||||
|
||||
\## Overview
|
||||
|
||||
<!-- Original author of paragraph: Various. See https://github.com/pezkuwichain/kurdistan-sdk/issues/1 -->
|
||||
<!-- Original author of paragraph: Various. See https://github.com/pezkuwichain/pezkuwi-sdk/issues/1 -->
|
||||
// Short description of pezpallet's purpose.
|
||||
// Links to Traits that should be implemented.
|
||||
// What this pezpallet is for.
|
||||
@@ -64,8 +64,8 @@ Copy and paste this template from frame/examples/basic/src/lib.rs into file
|
||||
// Inputs it uses and the source of each input.
|
||||
// Outputs it produces.
|
||||
|
||||
<!-- Original author of paragraph: @Kianenigma in PR https://github.com/pezkuwichain/kurdistan-sdk/issues/52 -->
|
||||
<!-- and comment https://github.com/pezkuwichain/kurdistan-sdk/issues/1#issuecomment-471982710 -->
|
||||
<!-- Original author of paragraph: @Kianenigma in PR https://github.com/pezkuwichain/pezkuwi-sdk/issues/52 -->
|
||||
<!-- and comment https://github.com/pezkuwichain/pezkuwi-sdk/issues/1#issuecomment-471982710 -->
|
||||
|
||||
\## Terminology
|
||||
|
||||
@@ -76,17 +76,17 @@ Copy and paste this template from frame/examples/basic/src/lib.rs into file
|
||||
// "free balance" and "reserved balance" should be noted to give context to the pezpallet.
|
||||
// Please do not link to outside resources. The reference docs should be the ultimate source of truth.
|
||||
|
||||
<!-- Original author of heading: @Kianenigma in PR https://github.com/pezkuwichain/kurdistan-sdk/issues/52 -->
|
||||
<!-- Original author of heading: @Kianenigma in PR https://github.com/pezkuwichain/pezkuwi-sdk/issues/52 -->
|
||||
|
||||
\## Goals
|
||||
|
||||
// Add goals that the custom pezpallet is designed to achieve.
|
||||
|
||||
<!-- Original author of heading: @Kianenigma in PR https://github.com/pezkuwichain/kurdistan-sdk/issues/52 -->
|
||||
<!-- Original author of heading: @Kianenigma in PR https://github.com/pezkuwichain/pezkuwi-sdk/issues/52 -->
|
||||
|
||||
\### Scenarios
|
||||
|
||||
<!-- Original author of paragraph: @Kianenigma. Based on PR https://github.com/pezkuwichain/kurdistan-sdk/issues/52 -->
|
||||
<!-- Original author of paragraph: @Kianenigma. Based on PR https://github.com/pezkuwichain/pezkuwi-sdk/issues/52 -->
|
||||
|
||||
\#### <INSERT_SCENARIO_NAME>
|
||||
|
||||
@@ -105,7 +105,7 @@ Copy and paste this template from frame/examples/basic/src/lib.rs into file
|
||||
<code>\`inherent\`</code> <INSERT_DESCRIPTION>
|
||||
|
||||
<!-- Original author of paragraph: @Kianenigma in comment -->
|
||||
<!-- https://github.com/pezkuwichain/kurdistan-sdk/issues/1#issuecomment-471982710 -->
|
||||
<!-- https://github.com/pezkuwichain/pezkuwi-sdk/issues/1#issuecomment-471982710 -->
|
||||
|
||||
\### Types
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
//! preferred tool to test migrations is
|
||||
//! [`try-runtime-cli`](https://github.com/paritytech/try-runtime-cli). Support will be added to
|
||||
//! dry-run MBMs once they are stable
|
||||
//! (tracked: <https://github.com/pezkuwichain/kurdistan-sdk/issues/190>).
|
||||
//! (tracked: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/190>).
|
||||
|
||||
pub mod migrations;
|
||||
mod mock;
|
||||
|
||||
@@ -516,7 +516,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
/// You should call this function with different seed values until the random
|
||||
/// number lies within `u32::MAX - u32::MAX % n`.
|
||||
/// TODO: deal with randomness freshness
|
||||
/// https://github.com/pezkuwichain/kurdistan-sdk/issues/33
|
||||
/// https://github.com/pezkuwichain/pezkuwi-sdk/issues/33
|
||||
fn generate_random_number(seed: u32) -> u32 {
|
||||
let (random_seed, _) = T::Randomness::random(&(T::PalletId::get(), seed).encode());
|
||||
let random_number = <u32>::decode(&mut random_seed.as_ref())
|
||||
|
||||
@@ -285,7 +285,7 @@ fn service_queues_low_weight_defensive() {
|
||||
});
|
||||
}
|
||||
|
||||
/// Regression test for <https://github.com/pezkuwichain/kurdistan-sdk/issues/109>.
|
||||
/// Regression test for <https://github.com/pezkuwichain/pezkuwi-sdk/issues/109>.
|
||||
#[test]
|
||||
fn service_queues_regression_1873() {
|
||||
use MessageOrigin::*;
|
||||
|
||||
@@ -339,7 +339,7 @@
|
||||
//!
|
||||
//! To be fair to joiners, this implementation also need joining pools, which are actively staking,
|
||||
//! in addition to the unbonding pools. For maintenance simplicity these are not implemented.
|
||||
//! Related: <https://github.com/pezkuwichain/kurdistan-sdk/issues/4>
|
||||
//! Related: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/4>
|
||||
//!
|
||||
//! ### Limitations
|
||||
//!
|
||||
|
||||
@@ -841,7 +841,7 @@ pub mod v2 {
|
||||
}
|
||||
|
||||
/// Migrate the pool reward scheme to the new version, as per
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/37.>.
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/37.>.
|
||||
pub struct MigrateToV2<T>(core::marker::PhantomData<T>);
|
||||
impl<T: Config> MigrateToV2<T> {
|
||||
fn run(current: StorageVersion) -> Weight {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
//! > Made with *Bizinikiwi*, for *DotSama*.
|
||||
//!
|
||||
//! [![github]](https://github.com/pezkuwichain/kurdistan-sdk/tree/main/bizinikiwi/pezframe/fast-unstake) -
|
||||
//! [![github]](https://github.com/pezkuwichain/pezkuwi-sdk/tree/main/bizinikiwi/pezframe/fast-unstake) -
|
||||
//! [![pezkuwi]](https://pezkuwichain.io)
|
||||
//!
|
||||
//! [pezkuwi]: https://img.shields.io/badge/polkadot-E6007A?style=for-the-badge&logo=polkadot&logoColor=white
|
||||
|
||||
@@ -140,7 +140,7 @@ pub const DEFAULT_MAX_TRACK_NAME_LEN: usize = 25;
|
||||
|
||||
/// Helper structure to treat a `[u8; N]` array as a string.
|
||||
///
|
||||
/// This is a temporary fix (see [#7671](https://github.com/pezkuwichain/kurdistan-sdk/issues/126)) in
|
||||
/// This is a temporary fix (see [#7671](https://github.com/pezkuwichain/pezkuwi-sdk/issues/126)) in
|
||||
/// order to stop `pezkuwi.js` apps to fail when trying to decode the `name` field in `TrackInfo`.
|
||||
#[derive(Clone, Eq, DecodeWithMemTracking, PartialEq, Debug)]
|
||||
pub struct StringLike<const N: usize>(pub [u8; N]);
|
||||
|
||||
@@ -60,7 +60,7 @@ impl BlockHashMap {
|
||||
|
||||
/// Provides information about a block,
|
||||
/// This is an abstratction on top of [`BizinikiwiBlock`] that can't be mocked in tests.
|
||||
/// Can be removed once <https://github.com/pezkuwichain/kurdistan-sdk/issues/188> is fixed.
|
||||
/// Can be removed once <https://github.com/pezkuwichain/pezkuwi-sdk/issues/188> is fixed.
|
||||
pub trait BlockInfo {
|
||||
/// Returns the block hash.
|
||||
fn hash(&self) -> H256;
|
||||
@@ -299,7 +299,7 @@ impl<B: BlockInfoProvider> ReceiptProvider<B> {
|
||||
|
||||
/// Insert receipts into the provider.
|
||||
///
|
||||
/// Note: Can be merged into `insert_block_receipts` once <https://github.com/pezkuwichain/kurdistan-sdk/issues/188> is fixed and subxt let
|
||||
/// Note: Can be merged into `insert_block_receipts` once <https://github.com/pezkuwichain/pezkuwi-sdk/issues/188> is fixed and subxt let
|
||||
/// us create Mock `BizinikiwiBlock`
|
||||
async fn insert(
|
||||
&self,
|
||||
|
||||
@@ -192,7 +192,7 @@ pub mod v4 {
|
||||
/// This migration cleans up empty agendas of the V4 scheduler.
|
||||
///
|
||||
/// This should be run on a scheduler that does not have
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/41> since it piles up `None`-only agendas. This does not modify the pezpallet version.
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/41> since it piles up `None`-only agendas. This does not modify the pezpallet version.
|
||||
pub struct CleanupAgendas<T>(core::marker::PhantomData<T>);
|
||||
|
||||
impl<T: Config> OnRuntimeUpgrade for CleanupAgendas<T> {
|
||||
|
||||
@@ -803,7 +803,7 @@ pub mod pezpallet {
|
||||
let phrase = b"society_rotation";
|
||||
// we'll need a random seed here.
|
||||
// TODO: deal with randomness freshness
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/34
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/34
|
||||
let (seed, _) = T::Randomness::random(phrase);
|
||||
// seed needs to be guaranteed to be 32 bytes.
|
||||
let seed = <[u8; 32]>::decode(&mut TrailingZeroInput::new(seed.as_ref()))
|
||||
|
||||
@@ -273,7 +273,7 @@ pub mod benchmarking {
|
||||
}
|
||||
|
||||
#[deprecated(
|
||||
note = "'The V1 benchmarking syntax is deprecated. Please use the V2 syntax. This warning may become a hard error any time after April 2025. For more info, see: https://github.com/pezkuwichain/kurdistan-sdk/issues/123"
|
||||
note = "'The V1 benchmarking syntax is deprecated. Please use the V2 syntax. This warning may become a hard error any time after April 2025. For more info, see: https://github.com/pezkuwichain/pezkuwi-sdk/issues/123"
|
||||
)]
|
||||
pub mod v1 {
|
||||
pub use super::shared::*;
|
||||
|
||||
@@ -257,7 +257,7 @@ parameter_types! {
|
||||
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
|
||||
pub const AssetsStringLimit: u32 = 50;
|
||||
/// Key = 32 bytes, Value = 36 bytes (32+1+1+1+1)
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/assets/src/lib.rs#L257L271
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/assets/src/lib.rs#L257L271
|
||||
pub const MetadataDepositBase: Balance = deposit(1, 68);
|
||||
pub const MetadataDepositPerByte: Balance = deposit(0, 1);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ parameter_types! {
|
||||
/// * Kusama: 16 (1.6m snapshot)
|
||||
///
|
||||
/// Reasoning: Both leads to around 700 nominators per-page, yielding the weights in
|
||||
/// https://github.com/pezkuwichain/kurdistan-sdk/issues/128, the maximum of which being around 1mb
|
||||
/// https://github.com/pezkuwichain/pezkuwi-sdk/issues/128, the maximum of which being around 1mb
|
||||
/// compressed PoV and 2mb uncompressed.
|
||||
///
|
||||
/// NOTE: in principle, there is nothing preventing us from stretching these values further, it
|
||||
|
||||
@@ -67,7 +67,7 @@ pub struct UnlockChunk<Balance: HasCompact + MaxEncodedLen> {
|
||||
///
|
||||
/// TODO: move struct definition and full implementation into `/src/ledger.rs`. Currently
|
||||
/// leaving here to enforce a clean PR diff, given how critical this logic is. Tracking issue
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/21>.
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/21>.
|
||||
#[derive(
|
||||
PartialEqNoBound,
|
||||
EqNoBound,
|
||||
@@ -300,7 +300,7 @@ impl<T: Config> StakingLedger<T> {
|
||||
if let Some(bonded_ledger) = Ledger::<T>::get(&self.stash) {
|
||||
// there is a ledger bonded by the stash. In this case, the stash of the bonded ledger
|
||||
// should be the same as the ledger's stash. Otherwise fail to prevent data
|
||||
// inconsistencies. See <https://github.com/pezkuwichain/kurdistan-sdk/issues/117> for more
|
||||
// inconsistencies. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/117> for more
|
||||
// details.
|
||||
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
|
||||
}
|
||||
|
||||
@@ -55,4 +55,4 @@ migrations.
|
||||
- Field `claimed_rewards` in item `Ledger` is renamed
|
||||
to `legacy_claimed_rewards` and can be removed after 84 eras.
|
||||
|
||||
[v14]: https://github.com/pezkuwichain/kurdistan-sdk/issues/46
|
||||
[v14]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/46
|
||||
|
||||
@@ -238,7 +238,7 @@ impl<T: Config> StakingLedger<T> {
|
||||
if let Some(bonded_ledger) = Ledger::<T>::get(&self.stash) {
|
||||
// there is a ledger bonded by the stash. In this case, the stash of the bonded ledger
|
||||
// should be the same as the ledger's stash. Otherwise fail to prevent data
|
||||
// inconsistencies. See <https://github.com/pezkuwichain/kurdistan-sdk/issues/117> for more
|
||||
// inconsistencies. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/117> for more
|
||||
// details.
|
||||
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ pub struct UnlockChunk<Balance: HasCompact + MaxEncodedLen> {
|
||||
///
|
||||
/// TODO: move struct definition and full implementation into `/src/ledger.rs`. Currently
|
||||
/// leaving here to enforce a clean PR diff, given how critical this logic is. Tracking issue
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/21>.
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/21>.
|
||||
#[derive(
|
||||
PartialEqNoBound,
|
||||
EqNoBound,
|
||||
|
||||
@@ -204,7 +204,7 @@ pub mod v15 {
|
||||
}
|
||||
|
||||
/// Migration of era exposure storage items to paged exposures.
|
||||
/// Changelog: [v14.](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/staking/CHANGELOG.md#14)
|
||||
/// Changelog: [v14.](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/staking/CHANGELOG.md#14)
|
||||
pub mod v14 {
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -1526,7 +1526,7 @@ impl<T: Config> ElectionDataProvider for Pezpallet<T> {
|
||||
let targets = Self::get_npos_targets(bounds);
|
||||
|
||||
// We can't handle this case yet -- return an error. WIP to improve handling this case in
|
||||
// <https://github.com/pezkuwichain/kurdistan-sdk/issues/43>.
|
||||
// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/43>.
|
||||
if bounds.exhausted(None, CountBound(T::TargetList::count()).into()) {
|
||||
return Err("Target snapshot too big");
|
||||
}
|
||||
|
||||
@@ -530,7 +530,7 @@ pub mod pezpallet {
|
||||
/// keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
||||
///
|
||||
/// Use the *state migration RPC* to retrieve the length of the longest key in your
|
||||
/// storage: <https://github.com/pezkuwichain/kurdistan-sdk/issues/8>
|
||||
/// storage: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/8>
|
||||
///
|
||||
/// The migration will halt with a `Halted` event if this value is too small.
|
||||
/// Since there is no real penalty from over-estimating, it is advised to use a large
|
||||
|
||||
@@ -437,7 +437,7 @@ fn construct_runtime_final_expansion(
|
||||
"use `pezframe_system::Config` to set the `Block` type and delete this clause.
|
||||
It is planned to be removed in December 2023",
|
||||
)
|
||||
.help_links(&["https://github.com/pezkuwichain/kurdistan-sdk/issues/51"])
|
||||
.help_links(&["https://github.com/pezkuwichain/pezkuwi-sdk/issues/51"])
|
||||
.span(where_section.span)
|
||||
.build_or_panic(),
|
||||
)
|
||||
|
||||
@@ -106,8 +106,8 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
.old("use implicit call indices")
|
||||
.new("ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode")
|
||||
.help_links(&[
|
||||
"https://github.com/pezkuwichain/kurdistan-sdk/issues/39",
|
||||
"https://github.com/pezkuwichain/kurdistan-sdk/issues/36"
|
||||
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/39",
|
||||
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/36"
|
||||
])
|
||||
.span(method.name.span())
|
||||
.build_or_panic();
|
||||
|
||||
@@ -38,7 +38,7 @@ pub(crate) fn weight_witness_warning(
|
||||
let partial_warning = Warning::new_deprecated("UncheckedWeightWitness")
|
||||
.old("not check weight witness data")
|
||||
.new("ensure that all witness data for weight calculation is checked before usage")
|
||||
.help_link("https://github.com/pezkuwichain/kurdistan-sdk/issues/108");
|
||||
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/108");
|
||||
|
||||
for (_, arg_ident, _) in method.args.iter() {
|
||||
if !arg_ident.to_string().starts_with('_') || !contains_ident(w.clone(), &arg_ident) {
|
||||
@@ -70,7 +70,7 @@ pub(crate) fn weight_constant_warning(
|
||||
.index(warnings.len())
|
||||
.old("use hard-coded constant as call weight")
|
||||
.new("benchmark all calls or put the pezpallet into `dev` mode")
|
||||
.help_link("https://github.com/pezkuwichain/kurdistan-sdk/issues/48")
|
||||
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/48")
|
||||
.span(lit.span())
|
||||
.build_or_panic();
|
||||
|
||||
|
||||
@@ -436,7 +436,7 @@ impl ConfigDef {
|
||||
.old("have `RuntimeEvent` associated type in the pezpallet config")
|
||||
.new("remove it as it is redundant since associated bound gets appended automatically: \n
|
||||
pub trait Config: pezframe_system::Config<RuntimeEvent: From<Event<Self>>> { }")
|
||||
.help_link("https://github.com/pezkuwichain/kurdistan-sdk/issues/125")
|
||||
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/125")
|
||||
.span(type_event.ident.span())
|
||||
.build_or_panic();
|
||||
|
||||
|
||||
@@ -1926,7 +1926,7 @@ pub mod pezpallet_macros {
|
||||
///
|
||||
/// ## Former Usage
|
||||
///
|
||||
/// Prior to <https://github.com/pezkuwichain/kurdistan-sdk/issues/50>, the following syntax was used.
|
||||
/// Prior to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/50>, the following syntax was used.
|
||||
/// This is deprecated and will soon be removed.
|
||||
///
|
||||
/// ```
|
||||
|
||||
@@ -310,7 +310,7 @@ pub fn migrate_from_pallet_version_to_storage_version<
|
||||
/// If your pezpallet has too many keys to be removed in a single block, it is advised to wait for
|
||||
/// a multi-block scheduler currently under development which will allow for removal of storage
|
||||
/// items (and performing other heavy migrations) over multiple blocks
|
||||
/// (see <https://github.com/pezkuwichain/kurdistan-sdk/issues/11>).
|
||||
/// (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/11>).
|
||||
pub struct RemovePallet<P: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
|
||||
PhantomData<(P, DbWeight)>,
|
||||
);
|
||||
@@ -417,7 +417,7 @@ impl<P: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>
|
||||
/// If your storage has too many keys to be removed in a single block, it is advised to wait for
|
||||
/// a multi-block scheduler currently under development which will allow for removal of storage
|
||||
/// items (and performing other heavy migrations) over multiple blocks
|
||||
/// (see <https://github.com/pezkuwichain/kurdistan-sdk/issues/11>).
|
||||
/// (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/11>).
|
||||
pub struct RemoveStorage<P: Get<&'static str>, S: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
|
||||
PhantomData<(P, S, DbWeight)>,
|
||||
);
|
||||
|
||||
@@ -274,7 +274,7 @@ pub mod pezpallet {
|
||||
type SpendFunds: SpendFunds<Self, I>;
|
||||
|
||||
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
||||
/// Refer to <https://github.com/pezkuwichain/kurdistan-sdk/issues/122> for migration to `spend`.
|
||||
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/122> for migration to `spend`.
|
||||
///
|
||||
/// The maximum number of approvals that can wait in the spending queue.
|
||||
///
|
||||
@@ -329,14 +329,14 @@ pub mod pezpallet {
|
||||
}
|
||||
|
||||
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
||||
/// Refer to <https://github.com/pezkuwichain/kurdistan-sdk/issues/122> for migration to `spend`.
|
||||
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/122> for migration to `spend`.
|
||||
///
|
||||
/// Number of proposals that have been made.
|
||||
#[pezpallet::storage]
|
||||
pub type ProposalCount<T, I = ()> = StorageValue<_, ProposalIndex, ValueQuery>;
|
||||
|
||||
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
||||
/// Refer to <https://github.com/pezkuwichain/kurdistan-sdk/issues/122> for migration to `spend`.
|
||||
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/122> for migration to `spend`.
|
||||
///
|
||||
/// Proposals that have been made.
|
||||
#[pezpallet::storage]
|
||||
@@ -354,7 +354,7 @@ pub mod pezpallet {
|
||||
StorageValue<_, BalanceOf<T, I>, ValueQuery>;
|
||||
|
||||
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
||||
/// Refer to <https://github.com/pezkuwichain/kurdistan-sdk/issues/122> for migration to `spend`.
|
||||
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/122> for migration to `spend`.
|
||||
///
|
||||
/// Proposal indices that have been approved but not yet awarded.
|
||||
#[pezpallet::storage]
|
||||
|
||||
@@ -181,7 +181,7 @@ pub trait Backend<Block: BlockT>:
|
||||
/// chain or descendants of it.
|
||||
///
|
||||
/// Returns `Ok(None)` if `base_hash` is not found in search space.
|
||||
// TODO: document time complexity of this, see [#1444](https://github.com/pezkuwichain/kurdistan-sdk/issues/18)
|
||||
// TODO: document time complexity of this, see [#1444](https://github.com/pezkuwichain/pezkuwi-sdk/issues/18)
|
||||
fn longest_containing(
|
||||
&self,
|
||||
base_hash: Block::Hash,
|
||||
|
||||
@@ -43,7 +43,7 @@ impl AuraInherentData for InherentData {
|
||||
}
|
||||
|
||||
/// Provides the slot duration inherent data for `Aura`.
|
||||
// TODO: Remove in the future. https://github.com/pezkuwichain/kurdistan-sdk/issues/31
|
||||
// TODO: Remove in the future. https://github.com/pezkuwichain/pezkuwi-sdk/issues/31
|
||||
#[cfg(feature = "std")]
|
||||
pub struct InherentDataProvider {
|
||||
slot: InherentType,
|
||||
|
||||
@@ -54,7 +54,7 @@ impl BabeInherentData for InherentData {
|
||||
}
|
||||
|
||||
/// Provides the slot duration inherent data for BABE.
|
||||
// TODO: Remove in the future. https://github.com/pezkuwichain/kurdistan-sdk/issues/31
|
||||
// TODO: Remove in the future. https://github.com/pezkuwichain/pezkuwi-sdk/issues/31
|
||||
#[cfg(feature = "std")]
|
||||
pub struct InherentDataProvider {
|
||||
slot: InherentType,
|
||||
|
||||
@@ -95,7 +95,7 @@ fn unavailable_yet<R: Default>(name: &str) -> R {
|
||||
tracing::error!(
|
||||
target: LOG_TARGET,
|
||||
"The {:?} API is not available for offchain workers yet. Follow \
|
||||
https://github.com/pezkuwichain/kurdistan-sdk/issues/19 for details",
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk/issues/19 for details",
|
||||
name
|
||||
);
|
||||
Default::default()
|
||||
|
||||
@@ -47,7 +47,7 @@ pub type Page = u32;
|
||||
/// Representation of a staking account, which may be a stash or controller account.
|
||||
///
|
||||
/// Note: once the controller is completely deprecated, this enum can also be deprecated in favor of
|
||||
/// the stash account. Tracking issue: <https://github.com/pezkuwichain/kurdistan-sdk/issues/28>.
|
||||
/// the stash account. Tracking issue: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/28>.
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum StakingAccount<AccountId> {
|
||||
Stash(AccountId),
|
||||
|
||||
@@ -609,7 +609,7 @@ mod std_features {
|
||||
);
|
||||
|
||||
// FIXME: this could be done a lot in 0.2 if they opt for using `Cow<str,'static>` instead
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/29
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/29
|
||||
impl From<&crate::WasmMetadata> for &'static tracing_core::Metadata<'static> {
|
||||
fn from(wm: &crate::WasmMetadata) -> &'static tracing_core::Metadata<'static> {
|
||||
match (&wm.level, wm.is_span) {
|
||||
|
||||
@@ -137,7 +137,7 @@ impl ParseRuntimeVersion {
|
||||
let warning = Warning::new_deprecated("RuntimeVersion")
|
||||
.old("state_version")
|
||||
.new("system_version)")
|
||||
.help_link("https://github.com/pezkuwichain/kurdistan-sdk/issues/118")
|
||||
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/118")
|
||||
.span(field_name.span())
|
||||
.build_or_panic();
|
||||
warnings.push(warning);
|
||||
|
||||
@@ -106,8 +106,8 @@ License: Apache-2.0
|
||||
<!-- LINKS -->
|
||||
|
||||
[Polkachu]: https://polkachu.com/snapshots
|
||||
[here]: https://github.com/pezkuwichain/kurdistan-sdk/issues/6
|
||||
[pezkuwi#5192]: https://github.com/pezkuwichain/kurdistan-sdk/issues/154
|
||||
[here]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/6
|
||||
[pezkuwi#5192]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/154
|
||||
|
||||
[`--db`]: ../shared/README.md#arguments
|
||||
[`--pruning`]: ../shared/README.md#arguments
|
||||
|
||||
@@ -109,9 +109,9 @@ cargo run --profile=production -- benchmark overhead --chain=pezkuwi-dev --wasm-
|
||||
```
|
||||
|
||||
This will overwrite the
|
||||
[block_weights.rs](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/pezkuwi/runtime/pezkuwichain/constants/src/weights/block_weights.rs)
|
||||
[block_weights.rs](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/pezkuwi/runtime/pezkuwichain/constants/src/weights/block_weights.rs)
|
||||
and
|
||||
[extrinsic_weights.rs](https://github.com/pezkuwichain/kurdistan-sdk/blob/main/pezkuwi/runtime/pezkuwichain/constants/src/weights/extrinsic_weights.rs)
|
||||
[extrinsic_weights.rs](https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/pezkuwi/runtime/pezkuwichain/constants/src/weights/extrinsic_weights.rs)
|
||||
files in the PezkuwiChain runtime directory. You can try the same for *pezkuwichain* and to see that the results slightly differ.
|
||||
👉 It is paramount to use `--profile=production` and `--wasm-execution=compiled` as the results are otherwise useless.
|
||||
|
||||
@@ -138,9 +138,9 @@ License: Apache-2.0
|
||||
|
||||
<!-- LINKS -->
|
||||
[`ExtrinsicBaseWeight`]:
|
||||
https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/support/src/weights/extrinsic_weights.rs#L26
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/support/src/weights/extrinsic_weights.rs#L26
|
||||
[`BlockExecutionWeight`]:
|
||||
https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/support/src/weights/block_weights.rs#L26
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/support/src/weights/block_weights.rs#L26
|
||||
|
||||
[System::Remark]:
|
||||
https://github.com/pezkuwichain/kurdistan-sdk/blob/main/bizinikiwi/pezframe/system/src/lib.rs#L382
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk/blob/main/bizinikiwi/pezframe/system/src/lib.rs#L382
|
||||
|
||||
@@ -27,7 +27,7 @@ use std::{borrow::Cow, path::PathBuf};
|
||||
const ERROR_CANNOT_BUILD_GENESIS: &str = "The runtime returned \
|
||||
an error when trying to build the genesis storage. Please ensure that all pallets \
|
||||
define a genesis config that can be built. This can be tested with: \
|
||||
https://github.com/pezkuwichain/kurdistan-sdk/issues/115";
|
||||
https://github.com/pezkuwichain/pezkuwi-sdk/issues/115";
|
||||
|
||||
/// Warn when using the chain spec to generate the genesis state.
|
||||
pub const WARN_SPEC_GENESIS_CTOR: &'static str = "Using the chain spec instead of the runtime to \
|
||||
|
||||
@@ -485,7 +485,7 @@ where
|
||||
|
||||
loop {
|
||||
// This loop can hit the node with very rapid requests, occasionally causing it to
|
||||
// error out in CI (https://github.com/pezkuwichain/kurdistan-sdk/issues/14), so we retry.
|
||||
// error out in CI (https://github.com/pezkuwichain/pezkuwi-sdk/issues/14), so we retry.
|
||||
let retry_strategy =
|
||||
FixedInterval::new(Self::KEYS_PAGE_RETRY_INTERVAL).take(Self::MAX_RETRIES);
|
||||
let get_page_closure =
|
||||
|
||||
@@ -54,7 +54,7 @@ data/chains/local_testnet/db/full/
|
||||
data/chains/local_testnet/db/full/000469.log
|
||||
```
|
||||
|
||||
Also refer to: [zombienet#578](https://github.com/pezkuwichain/kurdistan-sdk/issues/191)
|
||||
Also refer to: [zombienet#578](https://github.com/pezkuwichain/pezkuwi-sdk/issues/191)
|
||||
|
||||
The `raw` chain-spec shall also be saved: `db-test-gen/local.json`.
|
||||
|
||||
|
||||
@@ -170,4 +170,4 @@ $ENGINE run --rm -it parity/pezkuwi:latest --version
|
||||
```
|
||||
|
||||
This will show you the Pezkuwi version as well as the git commit ref that was used to build your container. You can now
|
||||
paste the version information in a [new issue](https://github.com/pezkuwichain/kurdistan-sdk/issues/new/choose).
|
||||
paste the version information in a [new issue](https://github.com/pezkuwichain/pezkuwi-sdk/issues/new/choose).
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Markdown linting
|
||||
|
||||
Since the introduction of [PR #1309](https://github.com/pezkuwichain/kurdistan-sdk/issues/103), the markdown
|
||||
Since the introduction of [PR #1309](https://github.com/pezkuwichain/pezkuwi-sdk/issues/103), the markdown
|
||||
files in this repository are checked by a linter for formatting and consistency.
|
||||
|
||||
The linter used is [`markdownlint`](https://github.com/DavidAnson/markdownlint) and can be installed locally on your
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 MiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user