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:
2025-12-19 23:30:43 +03:00
committed by GitHub
parent ee389beb8c
commit 830dcc9bba
206 changed files with 378 additions and 448 deletions
+5 -5
View File
@@ -73,9 +73,9 @@ jobs:
rustup target add wasm32-unknown-unknown --toolchain $TOOLCHAIN rustup target add wasm32-unknown-unknown --toolchain $TOOLCHAIN
rustup component add rust-src --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. # 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 - name: Get original PR number
shell: bash shell: bash
@@ -125,10 +125,10 @@ jobs:
prdoc_file="prdoc/pr_$PR.prdoc" 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 # Capture output to check for specific error types
parity_output=$(mktemp) 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) # 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 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" rm -f "$minor_patch_temp"
if [ "$has_validate_false" = true ]; then 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
fi fi
+1 -1
View File
@@ -18,5 +18,5 @@ jobs:
issue_number: context.issue.number, issue_number: context.issue.number,
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, 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.'
}) })
+2 -2
View File
@@ -60,7 +60,7 @@ jobs:
- run: mv ./target/doc ./crate-docs - run: mv ./target/doc ./crate-docs
- name: Inject Simple Analytics script - name: Inject Simple Analytics script
run: | 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" docs_dir="./crate-docs"
inject_simple_analytics() { inject_simple_analytics() {
@@ -167,7 +167,7 @@ jobs:
sed -i.bak '/extraheader/d' ./.git/config sed -i.bak '/extraheader/d' ./.git/config
echo "${Green}Git push${NC}" 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 config user.name "${APP_NAME}"
git commit --amend -m "___Updated docs" || echo "___Nothing to commit___" git commit --amend -m "___Updated docs" || echo "___Nothing to commit___"
git push origin gh-pages --force git push origin gh-pages --force
+12 -12
View File
@@ -31,9 +31,9 @@ jobs:
with: with:
save-if: ${{ github.ref == 'refs/heads/master' }} save-if: ${{ github.ref == 'refs/heads/master' }}
- name: install kurdistan-tech-publish - name: install pezkuwi-publish
run: | 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 - name: set current PR's prdoc name in a variable
env: env:
@@ -41,20 +41,20 @@ jobs:
run: | run: |
echo "CURRENT_PRDOC=pr_${GITHUB_PR_NUM}.prdoc" >> $GITHUB_ENV 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: | run: |
if [ -f prdoc/$CURRENT_PRDOC ]; then if [ -f prdoc/$CURRENT_PRDOC ]; then
mv prdoc/$CURRENT_PRDOC . mv prdoc/$CURRENT_PRDOC .
fi 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 # 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 # 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 # 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 # a patch release of all crates based on some newly added prdocs
# (meaning only the current prdoc). # (meaning only the current prdoc).
- name: kurdistan-tech-publish apply plan on the code state prior to current prdoc - name: pezkuwi-publish apply plan on the code state prior to current prdoc
run: kurdistan-tech-publish --color always apply --registry run: pezkuwi-publish --color always apply --registry
- name: move all prdocs except current one to unstable dir - name: move all prdocs except current one to unstable dir
run: | run: |
@@ -64,21 +64,21 @@ jobs:
mv $CURRENT_PRDOC prdoc mv $CURRENT_PRDOC prdoc
fi fi
- name: kurdistan-tech-publish update plan just for PR's prdoc - name: pezkuwi-publish update plan just for PR's prdoc
run: | run: |
if [ -f "prdoc/$CURRENT_PRDOC" ]; then 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 fi
- name: kurdistan-tech-publish apply plan - name: pezkuwi-publish apply plan
run: | run: |
if [ -f "prdoc/$CURRENT_PRDOC" ]; then if [ -f "prdoc/$CURRENT_PRDOC" ]; then
kurdistan-tech-publish --color always apply --registry pezkuwi-publish --color always apply --registry
fi fi
- name: kurdistan-tech-publish check compile - name: pezkuwi-publish check compile
run: | run: |
packages="$(kurdistan-tech-publish apply --print)" packages="$(pezkuwi-publish apply --print)"
if [ -n "$packages" ]; then if [ -n "$packages" ]; then
cargo --color always check $(printf -- '-p %s ' $packages) cargo --color always check $(printf -- '-p %s ' $packages)
@@ -92,7 +92,7 @@ jobs:
git config --global commit.gpgsign true git config --global commit.gpgsign true
git config --global gpg.program /home/runner/.local/bin/pgpkms-git git config --global gpg.program /home/runner/.local/bin/pgpkms-git
git config --global user.name "ParityReleases" 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" git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
- name: Create stable branch - name: Create stable branch
@@ -17,7 +17,7 @@ jobs:
matrix: matrix:
channel: channel:
- name: "RelEng: Pezkuwi Release Coordination" - name: "RelEng: Pezkuwi Release Coordination"
room: '!cqAmzdIcbOFwrdrubV:kurdistan-tech.io' room: '!cqAmzdIcbOFwrdrubV:pezkuwichain.io'
environment: release environment: release
env: env:
PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }} PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }}
@@ -57,7 +57,7 @@ jobs:
git config --global commit.gpgsign true git config --global commit.gpgsign true
git config --global gpg.program /home/runner/.local/bin/pgpkms-git git config --global gpg.program /home/runner/.local/bin/pgpkms-git
git config --global user.name "ParityReleases" 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" git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
- name: Compute next rc tag - name: Compute next rc tag
@@ -101,6 +101,6 @@ jobs:
with: with:
room_id: ${{ matrix.channel.room }} room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }} access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
server: m.kurdistan-tech.io server: m.pezkuwichain.io
message: | message: |
Release process for pezkuwi ${{ steps.compute_tag.outputs.new_tag }} has been started.<br/> Release process for pezkuwi ${{ steps.compute_tag.outputs.new_tag }} has been started.<br/>
@@ -292,7 +292,7 @@ jobs:
matrix: matrix:
channel: channel:
- name: "Team: RelEng Internal" - name: "Team: RelEng Internal"
room: '!GvAyzgCDgaVrvibaAF:kurdistan-tech.io' room: '!GvAyzgCDgaVrvibaAF:pezkuwichain.io'
steps: steps:
- name: Send Matrix message to ${{ matrix.channel.name }} - name: Send Matrix message to ${{ matrix.channel.name }}
@@ -300,7 +300,7 @@ jobs:
with: with:
room_id: ${{ matrix.channel.room }} room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }} access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
server: m.kurdistan-tech.io server: m.pezkuwichain.io
message: | message: |
**New version of pezkuwi tagged**: ${{ needs.validate-inputs.outputs.release_tag }}<br/> **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) 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 description: Owner of the container image repo
required: true required: true
type: string type: string
default: kurdistan-tech default: pezkuwichain
version: version:
description: Version of the pezkuwi node release in format v1.16.0 or v1.16.0-rc1 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 description: Owner of the container image repo
required: true required: true
type: string type: string
default: kurdistan-tech default: pezkuwichain
version: version:
description: Version of the pezkuwi node release in format v1.16.0 or v1.16.0-rc1 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 commit.gpgsign true
git config --global gpg.program /home/runner/.local/bin/pgpkms-git git config --global gpg.program /home/runner/.local/bin/pgpkms-git
git config --global user.name "ParityReleases" 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" git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
- name: Create old release tag - name: Create old release tag
@@ -64,7 +64,7 @@ jobs:
echo "Using pgpkms-git at: $PGPKMS_PATH" echo "Using pgpkms-git at: $PGPKMS_PATH"
git config --global gpg.program "$PGPKMS_PATH" git config --global gpg.program "$PGPKMS_PATH"
git config --global user.name "ParityReleases" 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" git config --global user.signingKey "D8018FBB3F534D866A45998293C5FB5F6A367B51"
- name: Bump NODE_VERSION for pezkuwi - name: Bump NODE_VERSION for pezkuwi
@@ -51,7 +51,7 @@ on:
description: Owner of the container image repo description: Owner of the container image repo
required: true required: true
type: string type: string
default: kurdistan-tech default: pezkuwichain
version: version:
description: Version for Docker tags in format v1.16.0 or v1.16.0-rc1 description: Version for Docker tags in format v1.16.0 or v1.16.0-rc1
+1 -1
View File
@@ -46,7 +46,7 @@ jobs:
shell: bash shell: bash
run: | run: |
if [[ "${{ inputs.binary }}" == "pezkuwi-teyrchain" ]]; then if [[ "${{ inputs.binary }}" == "pezkuwi-teyrchain" ]]; then
echo "RUNNER=kurdistan-tech-large" >> $GITHUB_OUTPUT echo "RUNNER=pezkuwichain-large" >> $GITHUB_OUTPUT
else else
echo "RUNNER=ubuntu-latest" >> $GITHUB_OUTPUT echo "RUNNER=ubuntu-latest" >> $GITHUB_OUTPUT
fi fi
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
COMMIT=$(git rev-parse tags/$AUDITED) 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 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" git config --global user.name "Kurdistan-Tech Release Team"
- name: Prepare commit - name: Prepare commit
@@ -167,7 +167,7 @@ jobs:
- name: Set workspace environment variable - name: Set workspace environment variable
# relevant for artifacts upload, which can not interpolate Github Action variable syntax when # 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 # 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 run: echo "ARTIFACTS_PATH=${GITHUB_WORKSPACE}/artifacts/${{ matrix.binaries }}" >> $GITHUB_ENV
- name: Set up Homebrew - name: Set up Homebrew
+2 -2
View File
@@ -38,7 +38,7 @@ on:
RUNNER_OLDLINUX: RUNNER_OLDLINUX:
value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX }} value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX }}
description: | description: |
kurdistan-tech-oldlinux pezkuwichain-oldlinux
By default we use spot machines that can be terminated at any time. 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. 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 # New is used only during transition to the new runners
@@ -51,7 +51,7 @@ on:
RUNNER_OLDLINUX_NEW: RUNNER_OLDLINUX_NEW:
value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX_NEW }} value: ${{ jobs.preflight.outputs.RUNNER_OLDLINUX_NEW }}
description: | description: |
kurdistan-tech-oldlinux pezkuwichain-oldlinux
By default we use spot machines that can be terminated at any time. 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. Merge queues use persistent runners to avoid kicking off from queue when the runner is terminated.
RUNNER_DEFAULT: RUNNER_DEFAULT:
+78 -148
View File
@@ -1,14 +1,14 @@
# Kurdistan SDK — Sovereign Blockchain Infrastructure # Pezkuwi SDK — Sovereign Blockchain Infrastructure
**Developed and maintained by Kurdistan Tech Institute** **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 ## 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 │ │ │ │ Bizinikiwi │ │ PezCumulus │ │
│ │ (Core Framework) │ │ (Parachain SDK) │ │ │ │ (Core Framework) │ │ (TeyrChain SDK) │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ • Runtime Engine │ │ • Collator Framework │ │ │ │ • Runtime Engine │ │ • Collator Framework │ │
│ │ • Consensus │ │ • XCM Integration │ │ │ │ • 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) │ │ │ │ (Reference Impl) │ │
│ │ • TeyrChain │ │ │ │ • TeyrChain │ │
│ │ • Zagros Runtime │ │ │ │ • Zagros Runtime │ │
@@ -43,12 +43,12 @@ Kurdistan SDK originated as a fork of Polkadot SDK (stable2512). It has since be
## Crate Naming Convention ## 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 | | Component | Prefix | Example |
|-----------|--------|---------| |-----------|--------|---------|
| Core Framework (ex-Bizinikiwi) | `bizinikiwi-` | `bizinikiwi-runtime` | | Core Framework | `bizinikiwi-` | `bizinikiwi-runtime` |
| Parachain SDK (ex-Pezcumulus) | `pezcumulus-` | `pezcumulus-client` | | TeyrChain SDK | `pezcumulus-` | `pezcumulus-client` |
| Client Crates | `pezsc-` | `pezsc-network`, `pezsc-consensus` | | Client Crates | `pezsc-` | `pezsc-network`, `pezsc-consensus` |
| Primitives | `pezsp-` | `pezsp-runtime`, `pezsp-core` | | Primitives | `pezsp-` | `pezsp-runtime`, `pezsp-core` |
| Framework | `pezframe-` | `pezframe-support`, `pezframe-system` | | 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 ### Token Economics
@@ -75,7 +75,7 @@ KurdistanChain is the flagship blockchain built on Kurdistan SDK, designed for K
### Custom Pallets ### Custom Pallets
| Pezpallet | Purpose | | Pallet | Purpose |
|--------|---------| |--------|---------|
| `pezpallet-presale` | Multi-round token launches with vesting | | `pezpallet-presale` | Multi-round token launches with vesting |
| `pezpallet-identity-kyc` | Decentralized identity verification | | `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 ## TNPoS Consensus — World's First Trust-Augmented PoS
**Trust-enhanced Nominated Proof-of-Stake** combines: **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 - **Performance Metrics**: Uptime, finality participation, historical behavior
**Key Innovations**: **Key Innovations**:
- 🔬 First implementation of social trust in consensus (academic contribution) - First implementation of social trust in consensus (academic contribution)
- 🏛️ Parliamentary NFT System: 201 non-transferable governance seats - Parliamentary NFT System: 201 non-transferable governance seats
- 🔐 Sybil-resistant via citizenship verification (Tiki pezpallet) - Sybil-resistant via citizenship verification (Tiki pallet)
- 📊 Multi-dimensional validator scoring - Multi-dimensional validator scoring
--- ---
@@ -185,7 +121,7 @@ Polkadot Asset Hub (USDT)
│ XCM Reserve Transfer │ XCM Reserve Transfer
TeyrChain Parachain TeyrChain (Parachain)
├─► Presale contributions ├─► Presale contributions
├─► DEX trading (future) ├─► DEX trading (future)
@@ -203,9 +139,9 @@ TeyrChain Parachain
| Stage | Validators | Status | | Stage | Validators | Status |
|-------|------------|--------| |-------|------------|--------|
| Dev Mode | 1 | | | Dev Mode | 1 | |
| Local Testnet | 2 | | | Local Testnet | 2 | |
| **Alfa Testnet** | 4 | | | **Alfa Testnet** | 4 | |
| Beta Testnet | 8 | Q1 2026 | | Beta Testnet | 8 | Q1 2026 |
| Staging | 20 | Q1 2026 | | Staging | 20 | Q1 2026 |
| **Mainnet** | 100 | Q2 2026 | | **Mainnet** | 100 | Q2 2026 |
@@ -214,7 +150,7 @@ TeyrChain Parachain
## Multi-Nation Platform Vision ## 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 | | Nation Type | Example | Target Population |
|-------------|---------|-------------------| |-------------|---------|-------------------|
@@ -249,8 +185,8 @@ KurdistanChain is designed to host **multiple digital nations** simultaneously:
```bash ```bash
# Clone repository # Clone repository
git clone https://github.com/pezkuwichain/kurdistan-sdk.git git clone https://github.com/pezkuwichain/pezkuwi-sdk.git
cd kurdistan-sdk cd pezkuwi-sdk
# Build release # Build release
cargo build --release cargo build --release
@@ -259,7 +195,7 @@ cargo build --release
cargo build --release --features runtime-benchmarks cargo build --release --features runtime-benchmarks
# Run local testnet # 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) | | Twitter | [@pezkuwichain](https://twitter.com/pezkuwichain) |
| GitHub | [github.com/pezkuwichain](https://github.com/pezkuwichain) | | GitHub | [github.com/pezkuwichain](https://github.com/pezkuwichain) |
| Medium | [@pezkuwichain](https://medium.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"> <div align="center">
![SDK Logo](./docs/images/Kurdistan_Logo_Horizontal_Pink_White.png#gh-dark-mode-only) ![SDK Logo](./docs/images/Pezkuwi_Logo_Horizontal_Pink_White.png#gh-dark-mode-only)
![SDK Logo](./docs/images/Kurdistan_Logo_Horizontal_Pink_Black.png#gh-light-mode-only) ![SDK Logo](./docs/images/Pezkuwi_Logo_Horizontal_Pink_Black.png#gh-light-mode-only)
# Kurdistan SDK # Pezkuwi SDK
![GitHub stars](https://img.shields.io/github/stars/pezkuwichain/kurdistan-sdk)&nbsp;&nbsp;![GitHub ![GitHub stars](https://img.shields.io/github/stars/pezkuwichain/pezkuwi-sdk)&nbsp;&nbsp;![GitHub forks](https://img.shields.io/github/forks/pezkuwichain/pezkuwi-sdk)
forks](https://img.shields.io/github/forks/pezkuwichain/kurdistan-sdk)
<!-- markdownlint-disable-next-line MD013 --> <!-- markdownlint-disable-next-line MD013 -->
[![StackExchange](https://img.shields.io/badge/StackExchange-Community%20&%20Support-222222?logo=stackexchange)](https://pezkuwichain.app/community)&nbsp;&nbsp;![GitHub contributors](https://img.shields.io/github/contributors/pezkuwichain/kurdistan-sdk)&nbsp;&nbsp;![GitHub commit activity](https://img.shields.io/github/commit-activity/m/pezkuwichain/kurdistan-sdk)&nbsp;&nbsp;![GitHub last commit](https://img.shields.io/github/last-commit/pezkuwichain/kurdistan-sdk) [![StackExchange](https://img.shields.io/badge/StackExchange-Community%20&%20Support-222222?logo=stackexchange)](https://pezkuwichain.app/community)&nbsp;&nbsp;![GitHub contributors](https://img.shields.io/github/contributors/pezkuwichain/pezkuwi-sdk)&nbsp;&nbsp;![GitHub commit activity](https://img.shields.io/github/commit-activity/m/pezkuwichain/pezkuwi-sdk)&nbsp;&nbsp;![GitHub last commit](https://img.shields.io/github/last-commit/pezkuwichain/pezkuwi-sdk)
> The Kurdistan SDK repository provides all the components needed to start building on the > The Pezkuwi SDK repository provides all the components needed to start building on the
> [KurdistanChain](https://pezkuwichain.app/) network, a multi-chain blockchain platform that enables > [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. > different blockchains to interoperate and share information in a secure and scalable way.
</div> </div>
## Quickstart ## Quickstart
If you want to get an example node running quickly you can execute the following getting started script: If you want to get an example node running quickly you can execute the following getting started script:
``` ```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/pezkuwichain/kurdistan-sdk/master/scripts/getting-started.sh | 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) - [Pezkuwi 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 - [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:
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
- [Introduction](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/kurdistan_sdk/index.html) - [Guides](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/guides/index.html), namely how to build your first FRAME pallet
to each component of the Kurdistan SDK: Substrate, FRAME, Cumulus, and XCM - [Templates](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/pezkuwi_sdk/templates/index.html) for starting a new project.
- [Guides](https://pezkuwichain.github.io/kurdistan-sdk/master/kurdistan_sdk_docs/guides/index.html), - [External Resources](https://pezkuwichain.github.io/pezkuwi-sdk/master/pezkuwi_sdk_docs/external_resources/index.html)
namely how to build your first FRAME pezpallet - Have a question? You can ask in the Pezkuwi SDK Developers Chat.
- [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.
- [Telegram](https://t.me/DKSPezkuwiChain) - [Telegram](https://t.me/DKSPezkuwiChain)
- [Matrix](https://matrix.to/#/#pezkuwidevs:matrix.org) - [Matrix](https://matrix.to/#/#pezkuwidevs:matrix.org)
- [Discord](https://discord.gg/Y3VyEC6h8W) - [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 --> <!-- markdownlint-disable-next-line MD013 -->
![Current Stable Release](https://raw.githubusercontent.com/pezkuwichain/release-registry/main/badges/kurdistan-sdk-latest.svg)&nbsp;&nbsp;![Next Stable Release](https://raw.githubusercontent.com/pezkuwichain/release-registry/main/badges/kurdistan-sdk-next.svg) ![Current Stable Release](https://raw.githubusercontent.com/pezkuwichain/release-registry/main/badges/pezkuwi-sdk-latest.svg)&nbsp;&nbsp;![Next Stable Release](https://raw.githubusercontent.com/pezkuwichain/release-registry/main/badges/pezkuwi-sdk-next.svg)
The Kurdistan SDK is released every three months as a `Kurdistan stableYYMM` release. Each stable release is supported for 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).
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 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.
version without needing to manually select the correct version for each crate.
## 🛠️ Tooling ## Tooling
[Kurdistan SDK Version Manager](https://github.com/pezkuwichain/psvm): [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.
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.
## 🔐 Security ## Security
The security policy and procedures can be found in The security policy and procedures can be found in [docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).
[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 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).
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) 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.
(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.
## Kurdistan Fellowship ## Pezkuwi Fellowship
Development in this repo usually goes hand in hand with the `fellowship` organization. In short, 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/).
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/).
## History ## History
This repository is the amalgamation of 3 separate repositories that used to make up Kurdistan SDK, 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).
namely Substrate, Kurdistan and Cumulus. Read more about the merge and its history
[here](https://kurdistan-public.notion.site/Kurdistan-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>
+1 -1
View File
@@ -177,7 +177,7 @@ where
io.merge(System::new(client.clone(), pool).into_rpc())?; io.merge(System::new(client.clone(), pool).into_rpc())?;
// Making synchronous calls in light client freezes the browser currently, // 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. // These RPCs should use an asynchronous caller instead.
io.merge( io.merge(
Mmr::new( Mmr::new(
+1 -1
View File
@@ -33,7 +33,7 @@ Command:
```bash ```bash
# Install only `pez_subkey`, at a specific version of the pez_subkey crate # 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/ # If you run into issues building, you likely are missing deps defined in https://docs.pezkuwichain.io/install/
``` ```
+1 -1
View File
@@ -54,7 +54,7 @@
//! //!
//! ```bash //! ```bash
//! # Install only `pez_subkey`, at a specific version of the pez_subkey crate //! # 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/ //! # If you run into issues building, you likely are missing deps defined in https://docs.pezkuwichain.io/install/
//! ``` //! ```
//! //!
+1 -1
View File
@@ -73,7 +73,7 @@ pub trait BlockchainEvents<Block: BlockT> {
/// ///
/// The events for this notification stream are emitted: /// The events for this notification stream are emitted:
/// - During initial sync process: if there is a re-org while importing blocks. See /// - 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. /// rationale behind this.
/// - After initial sync process: on every imported block, regardless of whether it is /// - 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. /// the new best block or not, causes a re-org or not.
+1 -1
View File
@@ -85,7 +85,7 @@ pub enum CompatibilityMode<N> {
/// Call `initialize_block` before doing any runtime calls. /// Call `initialize_block` before doing any runtime calls.
/// ///
/// Previously the node would execute `initialize_block` before fetching the authorities /// 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 /// 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 /// would enact a new validator set, the block would already be build/sealed by an
+1 -1
View File
@@ -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 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` 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 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. among the other public keys a bit.
For other crypto (using the default Bizinikiwi configuration) the `AccountId` (32-bytes) matches For other crypto (using the default Bizinikiwi configuration) the `AccountId` (32-bytes) matches
+1 -1
View File
@@ -381,7 +381,7 @@ impl DatabaseSource {
/// Return path for databases that are stored on disk. /// Return path for databases that are stored on disk.
pub fn path(&self) -> Option<&Path> { pub fn path(&self) -> Option<&Path> {
match self { 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 // 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. // 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 // 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. // 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); test_wasm_execution!(restoration_of_globals);
fn restoration_of_globals(wasm_method: WasmExecutionMethod) { fn restoration_of_globals(wasm_method: WasmExecutionMethod) {
// Allocate 32 pages (of 65536 bytes) which gives the runtime 2048KB of heap to operate on // 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 /// 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. /// 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] #[test]
fn returns_when_network_event_stream_closes() { fn returns_when_network_event_stream_closes() {
let network = TestNetwork::default(); 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 prometheus_endpoint::{register, Counter, PrometheusError, Registry, U64};
use std::{collections::HashMap, iter, sync::Arc, time, time::Instant}; 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 // 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, // 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 // 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(), connected_peers: HashMap::new(),
not_connected_peers: HashMap::new(), not_connected_peers: HashMap::new(),
// TODO: Check what info we can include here. // 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!( 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. /// 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 // 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. // and set MIN_VERSION to 6.
#[derive(Debug, PartialEq, Eq, Clone, Encode, Decode)] #[derive(Debug, PartialEq, Eq, Clone, Encode, Decode)]
@@ -106,7 +106,7 @@ fn setup_libp2p(
.with_substream_upgrade_protocol_override(upgrade::Version::V1) .with_substream_upgrade_protocol_override(upgrade::Version::V1)
.with_notify_handler_buffer_size(NonZeroUsize::new(32).expect("32 != 0; qed")) .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 // 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_per_connection_event_buffer_size(24)
.with_max_negotiating_inbound_streams(2048) .with_max_negotiating_inbound_streams(2048)
.with_idle_connection_timeout(Duration::from_secs(5)); .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 // 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 // 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. // 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. // This happens if the disconnecting node reconnects to it fast enough.
// In this case the disconnected node does not transit via `ServiceState::NotConnected` // In this case the disconnected node does not transit via `ServiceState::NotConnected`
// and stays in `ServiceState::FirstConnec`. // and stays in `ServiceState::FirstConnec`.
+5 -5
View File
@@ -546,7 +546,7 @@ where
.with_substream_upgrade_protocol_override(upgrade::Version::V1) .with_substream_upgrade_protocol_override(upgrade::Version::V1)
.with_notify_handler_buffer_size(NonZeroUsize::new(32).expect("32 != 0; qed")) .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 // 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_per_connection_event_buffer_size(24)
.with_max_negotiating_inbound_streams(2048) .with_max_negotiating_inbound_streams(2048)
.with_idle_connection_timeout(network_config.idle_connection_timeout); .with_idle_connection_timeout(network_config.idle_connection_timeout);
@@ -768,9 +768,9 @@ where
connected_peers, connected_peers,
not_connected_peers, not_connected_peers,
// TODO: Check what info we can include here. // 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!( 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. // reopened.
// The code below doesn't compile because `role` is unknown. Propagating the // The code below doesn't compile because `role` is unknown. Propagating the
// handshake of the secondary connections is quite an invasive change and // 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 // Considering that dropping notifications is generally regarded as
// acceptable, this bug is at the moment intentionally left there and is // acceptable, this bug is at the moment intentionally left there and is
// intended to be fixed at the same time as // 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 { // self.event_streams.send(Event::NotificationStreamClosed {
// remote, // remote,
// protocol, // protocol,
@@ -386,7 +386,7 @@ where
// receiving we need to add the engine ID tag. // receiving we need to add the engine ID tag.
// The ID tag is hardcoded here to avoid depending on the GRANDPA crate, and // The ID tag is hardcoded here to avoid depending on the GRANDPA crate, and
// will be removed once we remove the backwards compatibility. // 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 = let justification =
justifications.and_then(|just| just.into_justification(*b"FRNK")); 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 // 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 // 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. // 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( fn legacy_justification_mapping(
justification: Option<EncodedJustification>, justification: Option<EncodedJustification>,
) -> Option<Justifications> { ) -> Option<Justifications> {
+1 -1
View File
@@ -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 // TODO: for unknown reason, this test is flaky on a multithreaded runtime, so we run it
// in a single-threaded mode. // 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] #[tokio::test]
async fn syncs_header_only_forks() { async fn syncs_header_only_forks() {
pezsp_tracing::try_init_simple(); pezsp_tracing::try_init_simple();
+2 -2
View File
@@ -76,8 +76,8 @@ pub trait SystemApi<Hash, Number> {
/// ///
/// **Warning**: This API is not stable. Please do not programmatically interpret its output, /// **Warning**: This API is not stable. Please do not programmatically interpret its output,
/// as its format might change at any time. /// as its format might change at any time.
// TODO: the future of this call is uncertain: https://github.com/pezkuwichain/kurdistan-sdk/issues/22 // TODO: the future of this call is uncertain: https://github.com/pezkuwichain/pezkuwi-sdk/issues/22
// https://github.com/pezkuwichain/kurdistan-sdk/issues/26 // https://github.com/pezkuwichain/pezkuwi-sdk/issues/26
#[method(name = "system_unstable_networkState", with_extensions)] #[method(name = "system_unstable_networkState", with_extensions)]
async fn system_network_state(&self) -> Result<JsonValue, Error>; async fn system_network_state(&self) -> Result<JsonValue, Error>;
+2 -2
View File
@@ -108,7 +108,7 @@ const DEFAULT_PROTOCOL_ID: &str = "sup";
#[derive(Clone)] #[derive(Clone)]
pub struct RpcHandlers { pub struct RpcHandlers {
// This is legacy and may be removed at some point, it was for WASM stuff before smoldot was a // 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<()>>, rpc_module: Arc<RpcModule<()>>,
// This can be used to introspect the port the RPC server is listening on. SDK consumers are // 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, 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 // `block_in_place` is a hack to allow callers to call `block_on` prior to
// calling `start_rpc_servers`. // calling `start_rpc_servers`.
@@ -19,7 +19,7 @@
// Test inspired (copied) from: // Test inspired (copied) from:
// https://github.com/pezkuwichain/pezkuwi-sdk/blob/85b71daf7aac59da4d2186b45d589c7c619f0981/polkadot/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs#L21 // https://github.com/pezkuwichain/pezkuwi-sdk/blob/85b71daf7aac59da4d2186b45d589c7c619f0981/polkadot/zombienet-sdk-tests/tests/elastic_scaling/slot_based_3cores.rs#L21
// and patched as in: // 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 crate::zombienet::{BlockSubscriptionType, NetworkSpawner, ScenarioBuilderSharedParams};
use pezcumulus_zombienet_sdk_helpers::create_assign_core_call; use pezcumulus_zombienet_sdk_helpers::create_assign_core_call;
+6 -6
View File
@@ -160,11 +160,11 @@ board](https://github.com/paritytech/bizinikiwi/discussions).
Patch release with backports to fix broken nightly builds. Namely contains backports of 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) * [#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/kurdistan-sdk/issues/63) * [#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/kurdistan-sdk/issues/69) * [#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/kurdistan-sdk/issues/72) (partially) * [#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/kurdistan-sdk/issues/73) * [#7854: Update to futures 0.3.9](https://github.com/pezkuwichain/pezkuwi-sdk/issues/73)
## 2.0.0-rc6 -> 2.0.0 two dot 😮 ## 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 **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 (`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 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 ### Runtime
+11 -11
View File
@@ -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 #### 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 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. 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 ##### Assets
The assets pezpallet has seen a variety of changes: The assets pezpallet has seen a variety of changes:
- [Features needed for reserve-backed stablecoins #7152](https://github.com/pezkuwichain/kurdistan-sdk/issues/61) - [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/kurdistan-sdk/issues/64) - [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/kurdistan-sdk/issues/65)) - [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 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 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 #### `FinalityTracker` removed
Finality Tracker has been removed in favor of a different approach to handle the issue in GRANDPA, [see #7228 for 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. removed without worry.
#### (changes) Elections Phragmen #### (changes) Elections Phragmen
@@ -309,9 +309,9 @@ adequate deposit associated with them. A number of configuration parameters has
``` ```
**This upgrade requires storage **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 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 #### (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): 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 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 in an on-going effort to make light-client-support smoother, see below
2. we've [removed double accounts from our 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` 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. given our `bizinikiwi-node` will error.
4. [the `pez_subkey`-integration has seen a fix to the 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. requires you to now add the `&cli` as a param.
```diff= ```diff=
--- a/bin/node/cli/src/command.rs --- a/bin/node/cli/src/command.rs
+1 -1
View File
@@ -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: commit in Bizinikiwi remote repository, such as:
```toml ```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 } "de80d0107336a9c7a2efdc0199015e4d67fcbdb5", default-features = false }
``` ```
+1 -1
View File
@@ -2,7 +2,7 @@
There is [a script in place](../.maintain/rustdocs-release.sh) to manage the deployment of Bizinikiwi rustdocs at 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://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. The documentation at the top of the `rustdocs-release.sh` explains most of the mechanics of the script.
+1 -1
View File
@@ -238,7 +238,7 @@ pub(crate) fn new_test_ext() -> pezsp_io::TestExternalities {
config.assimilate_storage(&mut storage).unwrap(); config.assimilate_storage(&mut storage).unwrap();
let mut ext: pezsp_io::TestExternalities = storage.into(); 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(|| take_hooks());
ext.execute_with(|| System::set_block_number(1)); ext.execute_with(|| System::set_block_number(1));
ext ext
+1 -1
View File
@@ -1547,7 +1547,7 @@ fn freezer_should_work() {
set_frozen_balance(0, 1, 50); set_frozen_balance(0, 1, 50);
// Note: The amount to be transferred in this step changed deliberately from 20 to 30 // 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 + // to reflect the change in how `reducible_balance` is calculated: from untouchable = ed +
// frozen, to untouchalbe = max(ed, frozen) // frozen, to untouchalbe = max(ed, frozen)
// //
+5 -5
View File
@@ -303,7 +303,7 @@ pub mod pezpallet {
/// The ID type for reserves. /// 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; type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
/// The ID type for freezes. /// The ID type for freezes.
@@ -312,13 +312,13 @@ pub mod pezpallet {
/// The maximum number of locks that should exist on an account. /// The maximum number of locks that should exist on an account.
/// Not strictly enforced, but used for weight estimation. /// 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] #[pezpallet::constant]
type MaxLocks: Get<u32>; type MaxLocks: Get<u32>;
/// The maximum number of named reserves that can exist on an account. /// 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] #[pezpallet::constant]
type MaxReserves: Get<u32>; type MaxReserves: Get<u32>;
@@ -507,7 +507,7 @@ pub mod pezpallet {
/// Any liquidity locks on some account balances. /// Any liquidity locks on some account balances.
/// NOTE: Should only be accessed when setting, changing and freeing a lock. /// 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] #[pezpallet::storage]
pub type Locks<T: Config<I>, I: 'static = ()> = StorageMap< pub type Locks<T: Config<I>, I: 'static = ()> = StorageMap<
_, _,
@@ -519,7 +519,7 @@ pub mod pezpallet {
/// Named reserves on some account balances. /// 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] #[pezpallet::storage]
pub type Reserves<T: Config<I>, I: 'static = ()> = StorageMap< pub type Reserves<T: Config<I>, I: 'static = ()> = StorageMap<
_, _,
@@ -46,7 +46,7 @@
// Most of the business logic in this pezpallet has been // Most of the business logic in this pezpallet has been
// originally contributed by "https://github.com/shamb0", // 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 // The code has been moved here and then refactored in order to
// extract child bounties as a separate pezpallet. // extract child bounties as a separate pezpallet.
@@ -16,7 +16,7 @@
// limitations under the License. // limitations under the License.
//! Don't rely on reserved balances keeping an account alive //! 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::{ use crate::{
exec::AccountIdOf, exec::AccountIdOf,
@@ -16,7 +16,7 @@
// limitations under the License. // limitations under the License.
//! Overflowing bounded DeletionQueue. //! Overflowing bounded DeletionQueue.
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/47>. //! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/47>.
use crate::{ use crate::{
migration::{IsFinished, MigrationStep}, migration::{IsFinished, MigrationStep},
@@ -74,7 +74,7 @@ pub struct Migration<T: Config> {
impl<T: Config> MigrationStep for Migration<T> { impl<T: Config> MigrationStep for Migration<T> {
const VERSION: u16 = 11; 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 // but in practice the queue is always empty, so 128 is a good enough approximation for not
// underestimating the weight of our migration. // underestimating the weight of our migration.
fn max_step_weight() -> Weight { fn max_step_weight() -> Weight {
@@ -16,7 +16,7 @@
// limitations under the License. // limitations under the License.
//! Add `delegate_dependencies` to `ContractInfo`. //! 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::{ use crate::{
migration::{IsFinished, MigrationStep}, migration::{IsFinished, MigrationStep},
@@ -17,7 +17,7 @@
//! Update the code owner balance, make the code upload deposit balance to be held instead of //! 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 //! 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. //! handled by the [`pezframe_support::traits::fungible`] traits.
use crate::{ use crate::{
@@ -17,7 +17,7 @@
//! Move contracts' _reserved_ balance from the `deposit_account` to be _held_ in the contract's //! 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 //! 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 //! 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. //! 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. //! Then the deposit account is not needed anymore and we can get rid of it.
@@ -16,7 +16,7 @@
// limitations under the License. // limitations under the License.
//! Remove ED from storage base deposit. //! 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::{ use crate::{
migration::{IsFinished, MigrationStep}, migration::{IsFinished, MigrationStep},
@@ -1371,7 +1371,7 @@ pub mod pezpallet {
/// The in-code storage version. /// 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); const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);
#[pezpallet::pezpallet] #[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 /// 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. /// `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() { fn ledger_consistency_active_balance_below_ed() {
use pezpallet_staking::{Error, Event}; 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); Timestamp::set_timestamp(System::block_number() * BLOCK_TIME + INIT_TIMESTAMP);
// TODO(gpestana): implement a realistic OCW worker instead of simulating it // 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 // if there's no solution queued and the solution should not be delayed, try mining and
// queue a solution. // queue a solution.
if CurrentPhase::<Runtime>::get().is_signed() && !delay_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. /// compact encoding.
/// - The accuracy of the ratios. This must be one of the `PerThing` types defined in /// - The accuracy of the ratios. This must be one of the `PerThing` types defined in
/// `sp-arithmetic`. /// `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() /// 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). /// < 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 /// 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 /// [`Self::targets().len()`], since desiring a winner set larger than candidates is not
/// feasible. /// 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>; fn desired_targets() -> data_provider::Result<u32>;
/// Provide a best effort prediction about when the next election is about to happen. /// 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 ### Added
### Changed ### 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 ### Fixed
@@ -18,16 +18,16 @@ and this crate adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
## [3.0.0] ## [3.0.0]
### Added ### 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 ### Changed
### Fixed ### Fixed
[Don't slash all outgoing members](https://github.com/pezkuwichain/kurdistan-sdk/issues/68) [Don't slash all outgoing members](https://github.com/pezkuwichain/pezkuwi-sdk/issues/68)
[Fix wrong outgoing calculation in election](https://github.com/pezkuwichain/kurdistan-sdk/issues/67) [Fix wrong outgoing calculation in election](https://github.com/pezkuwichain/pezkuwi-sdk/issues/67)
### Security ### 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 ## [2.0.0] - 2020-09-2020
+8 -8
View File
@@ -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. requires root, but without repeating the source code details.
Capitalize the first word of each documentation comment and end it with Capitalize the first word of each documentation comment and end it with
a full stop. See 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> 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>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> <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 \## 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. // Short description of pezpallet's purpose.
// Links to Traits that should be implemented. // Links to Traits that should be implemented.
// What this pezpallet is for. // 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. // Inputs it uses and the source of each input.
// Outputs it produces. // Outputs it produces.
<!-- Original author of paragraph: @Kianenigma in PR https://github.com/pezkuwichain/kurdistan-sdk/issues/52 --> <!-- Original author of paragraph: @Kianenigma in PR https://github.com/pezkuwichain/pezkuwi-sdk/issues/52 -->
<!-- and comment https://github.com/pezkuwichain/kurdistan-sdk/issues/1#issuecomment-471982710 --> <!-- and comment https://github.com/pezkuwichain/pezkuwi-sdk/issues/1#issuecomment-471982710 -->
\## Terminology \## 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. // "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. // 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 \## Goals
// Add goals that the custom pezpallet is designed to achieve. // 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 \### 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> \#### <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> <code>\`inherent\`</code> <INSERT_DESCRIPTION>
<!-- Original author of paragraph: @Kianenigma in comment --> <!-- 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 \### Types
@@ -64,7 +64,7 @@
//! preferred tool to test migrations is //! preferred tool to test migrations is
//! [`try-runtime-cli`](https://github.com/paritytech/try-runtime-cli). Support will be added to //! [`try-runtime-cli`](https://github.com/paritytech/try-runtime-cli). Support will be added to
//! dry-run MBMs once they are stable //! 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; pub mod migrations;
mod mock; mod mock;
+1 -1
View File
@@ -516,7 +516,7 @@ impl<T: Config> Pezpallet<T> {
/// You should call this function with different seed values until the random /// You should call this function with different seed values until the random
/// number lies within `u32::MAX - u32::MAX % n`. /// number lies within `u32::MAX - u32::MAX % n`.
/// TODO: deal with randomness freshness /// 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 { fn generate_random_number(seed: u32) -> u32 {
let (random_seed, _) = T::Randomness::random(&(T::PalletId::get(), seed).encode()); let (random_seed, _) = T::Randomness::random(&(T::PalletId::get(), seed).encode());
let random_number = <u32>::decode(&mut random_seed.as_ref()) 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] #[test]
fn service_queues_regression_1873() { fn service_queues_regression_1873() {
use MessageOrigin::*; use MessageOrigin::*;
@@ -339,7 +339,7 @@
//! //!
//! To be fair to joiners, this implementation also need joining pools, which are actively staking, //! 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. //! 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 //! ### Limitations
//! //!
@@ -841,7 +841,7 @@ pub mod v2 {
} }
/// Migrate the pool reward scheme to the new version, as per /// 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>); pub struct MigrateToV2<T>(core::marker::PhantomData<T>);
impl<T: Config> MigrateToV2<T> { impl<T: Config> MigrateToV2<T> {
fn run(current: StorageVersion) -> Weight { fn run(current: StorageVersion) -> Weight {
+1 -1
View File
@@ -17,7 +17,7 @@
//! > Made with *Bizinikiwi*, for *DotSama*. //! > 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://pezkuwichain.io)
//! //!
//! [pezkuwi]: https://img.shields.io/badge/polkadot-E6007A?style=for-the-badge&logo=polkadot&logoColor=white //! [pezkuwi]: https://img.shields.io/badge/polkadot-E6007A?style=for-the-badge&logo=polkadot&logoColor=white
+1 -1
View File
@@ -140,7 +140,7 @@ pub const DEFAULT_MAX_TRACK_NAME_LEN: usize = 25;
/// Helper structure to treat a `[u8; N]` array as a string. /// 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`. /// order to stop `pezkuwi.js` apps to fail when trying to decode the `name` field in `TrackInfo`.
#[derive(Clone, Eq, DecodeWithMemTracking, PartialEq, Debug)] #[derive(Clone, Eq, DecodeWithMemTracking, PartialEq, Debug)]
pub struct StringLike<const N: usize>(pub [u8; N]); pub struct StringLike<const N: usize>(pub [u8; N]);
@@ -60,7 +60,7 @@ impl BlockHashMap {
/// Provides information about a block, /// Provides information about a block,
/// This is an abstratction on top of [`BizinikiwiBlock`] that can't be mocked in tests. /// 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 { pub trait BlockInfo {
/// Returns the block hash. /// Returns the block hash.
fn hash(&self) -> H256; fn hash(&self) -> H256;
@@ -299,7 +299,7 @@ impl<B: BlockInfoProvider> ReceiptProvider<B> {
/// Insert receipts into the provider. /// 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` /// us create Mock `BizinikiwiBlock`
async fn insert( async fn insert(
&self, &self,
@@ -192,7 +192,7 @@ pub mod v4 {
/// This migration cleans up empty agendas of the V4 scheduler. /// This migration cleans up empty agendas of the V4 scheduler.
/// ///
/// This should be run on a scheduler that does not have /// 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>); pub struct CleanupAgendas<T>(core::marker::PhantomData<T>);
impl<T: Config> OnRuntimeUpgrade for CleanupAgendas<T> { impl<T: Config> OnRuntimeUpgrade for CleanupAgendas<T> {
+1 -1
View File
@@ -803,7 +803,7 @@ pub mod pezpallet {
let phrase = b"society_rotation"; let phrase = b"society_rotation";
// we'll need a random seed here. // we'll need a random seed here.
// TODO: deal with randomness freshness // 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); let (seed, _) = T::Randomness::random(phrase);
// seed needs to be guaranteed to be 32 bytes. // seed needs to be guaranteed to be 32 bytes.
let seed = <[u8; 32]>::decode(&mut TrailingZeroInput::new(seed.as_ref())) let seed = <[u8; 32]>::decode(&mut TrailingZeroInput::new(seed.as_ref()))
+1 -1
View File
@@ -273,7 +273,7 @@ pub mod benchmarking {
} }
#[deprecated( #[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 mod v1 {
pub use super::shared::*; pub use super::shared::*;
@@ -257,7 +257,7 @@ parameter_types! {
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT; pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
pub const AssetsStringLimit: u32 = 50; pub const AssetsStringLimit: u32 = 50;
/// Key = 32 bytes, Value = 36 bytes (32+1+1+1+1) /// 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 MetadataDepositBase: Balance = deposit(1, 68);
pub const MetadataDepositPerByte: Balance = deposit(0, 1); pub const MetadataDepositPerByte: Balance = deposit(0, 1);
} }
@@ -72,7 +72,7 @@ parameter_types! {
/// * Kusama: 16 (1.6m snapshot) /// * Kusama: 16 (1.6m snapshot)
/// ///
/// Reasoning: Both leads to around 700 nominators per-page, yielding the weights in /// 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. /// compressed PoV and 2mb uncompressed.
/// ///
/// NOTE: in principle, there is nothing preventing us from stretching these values further, it /// 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 /// 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 /// 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( #[derive(
PartialEqNoBound, PartialEqNoBound,
EqNoBound, EqNoBound,
@@ -300,7 +300,7 @@ impl<T: Config> StakingLedger<T> {
if let Some(bonded_ledger) = Ledger::<T>::get(&self.stash) { 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 // 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 // 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. // details.
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState); ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
} }
+1 -1
View File
@@ -55,4 +55,4 @@ migrations.
- Field `claimed_rewards` in item `Ledger` is renamed - Field `claimed_rewards` in item `Ledger` is renamed
to `legacy_claimed_rewards` and can be removed after 84 eras. 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
+1 -1
View File
@@ -238,7 +238,7 @@ impl<T: Config> StakingLedger<T> {
if let Some(bonded_ledger) = Ledger::<T>::get(&self.stash) { 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 // 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 // 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. // details.
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState); ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
} }
+1 -1
View File
@@ -495,7 +495,7 @@ pub struct UnlockChunk<Balance: HasCompact + MaxEncodedLen> {
/// ///
/// TODO: move struct definition and full implementation into `/src/ledger.rs`. Currently /// 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 /// 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( #[derive(
PartialEqNoBound, PartialEqNoBound,
EqNoBound, EqNoBound,
@@ -204,7 +204,7 @@ pub mod v15 {
} }
/// Migration of era exposure storage items to paged exposures. /// 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 { pub mod v14 {
use super::*; use super::*;
@@ -1526,7 +1526,7 @@ impl<T: Config> ElectionDataProvider for Pezpallet<T> {
let targets = Self::get_npos_targets(bounds); let targets = Self::get_npos_targets(bounds);
// We can't handle this case yet -- return an error. WIP to improve handling this case in // 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()) { if bounds.exhausted(None, CountBound(T::TargetList::count()).into()) {
return Err("Target snapshot too big"); 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. /// 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 /// 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. /// 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 /// 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. "use `pezframe_system::Config` to set the `Block` type and delete this clause.
It is planned to be removed in December 2023", 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) .span(where_section.span)
.build_or_panic(), .build_or_panic(),
) )
@@ -106,8 +106,8 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
.old("use implicit call indices") .old("use implicit call indices")
.new("ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode") .new("ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode")
.help_links(&[ .help_links(&[
"https://github.com/pezkuwichain/kurdistan-sdk/issues/39", "https://github.com/pezkuwichain/pezkuwi-sdk/issues/39",
"https://github.com/pezkuwichain/kurdistan-sdk/issues/36" "https://github.com/pezkuwichain/pezkuwi-sdk/issues/36"
]) ])
.span(method.name.span()) .span(method.name.span())
.build_or_panic(); .build_or_panic();
@@ -38,7 +38,7 @@ pub(crate) fn weight_witness_warning(
let partial_warning = Warning::new_deprecated("UncheckedWeightWitness") let partial_warning = Warning::new_deprecated("UncheckedWeightWitness")
.old("not check weight witness data") .old("not check weight witness data")
.new("ensure that all witness data for weight calculation is checked before usage") .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() { for (_, arg_ident, _) in method.args.iter() {
if !arg_ident.to_string().starts_with('_') || !contains_ident(w.clone(), &arg_ident) { 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()) .index(warnings.len())
.old("use hard-coded constant as call weight") .old("use hard-coded constant as call weight")
.new("benchmark all calls or put the pezpallet into `dev` mode") .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()) .span(lit.span())
.build_or_panic(); .build_or_panic();
@@ -436,7 +436,7 @@ impl ConfigDef {
.old("have `RuntimeEvent` associated type in the pezpallet config") .old("have `RuntimeEvent` associated type in the pezpallet config")
.new("remove it as it is redundant since associated bound gets appended automatically: \n .new("remove it as it is redundant since associated bound gets appended automatically: \n
pub trait Config: pezframe_system::Config<RuntimeEvent: From<Event<Self>>> { }") 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()) .span(type_event.ident.span())
.build_or_panic(); .build_or_panic();
+1 -1
View File
@@ -1926,7 +1926,7 @@ pub mod pezpallet_macros {
/// ///
/// ## Former Usage /// ## 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. /// 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 /// 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 /// a multi-block scheduler currently under development which will allow for removal of storage
/// items (and performing other heavy migrations) over multiple blocks /// 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>>( pub struct RemovePallet<P: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
PhantomData<(P, DbWeight)>, 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 /// 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 /// a multi-block scheduler currently under development which will allow for removal of storage
/// items (and performing other heavy migrations) over multiple blocks /// 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>>( pub struct RemoveStorage<P: Get<&'static str>, S: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
PhantomData<(P, S, DbWeight)>, PhantomData<(P, S, DbWeight)>,
); );
+4 -4
View File
@@ -274,7 +274,7 @@ pub mod pezpallet {
type SpendFunds: SpendFunds<Self, I>; type SpendFunds: SpendFunds<Self, I>;
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025. /// 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. /// 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. /// 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. /// Number of proposals that have been made.
#[pezpallet::storage] #[pezpallet::storage]
pub type ProposalCount<T, I = ()> = StorageValue<_, ProposalIndex, ValueQuery>; pub type ProposalCount<T, I = ()> = StorageValue<_, ProposalIndex, ValueQuery>;
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025. /// 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. /// Proposals that have been made.
#[pezpallet::storage] #[pezpallet::storage]
@@ -354,7 +354,7 @@ pub mod pezpallet {
StorageValue<_, BalanceOf<T, I>, ValueQuery>; StorageValue<_, BalanceOf<T, I>, ValueQuery>;
/// DEPRECATED: associated with `spend_local` call and will be removed in May 2025. /// 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. /// Proposal indices that have been approved but not yet awarded.
#[pezpallet::storage] #[pezpallet::storage]
@@ -181,7 +181,7 @@ pub trait Backend<Block: BlockT>:
/// chain or descendants of it. /// chain or descendants of it.
/// ///
/// Returns `Ok(None)` if `base_hash` is not found in search space. /// 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( fn longest_containing(
&self, &self,
base_hash: Block::Hash, base_hash: Block::Hash,
@@ -43,7 +43,7 @@ impl AuraInherentData for InherentData {
} }
/// Provides the slot duration inherent data for `Aura`. /// 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")] #[cfg(feature = "std")]
pub struct InherentDataProvider { pub struct InherentDataProvider {
slot: InherentType, slot: InherentType,
@@ -54,7 +54,7 @@ impl BabeInherentData for InherentData {
} }
/// Provides the slot duration inherent data for BABE. /// 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")] #[cfg(feature = "std")]
pub struct InherentDataProvider { pub struct InherentDataProvider {
slot: InherentType, slot: InherentType,
@@ -95,7 +95,7 @@ fn unavailable_yet<R: Default>(name: &str) -> R {
tracing::error!( tracing::error!(
target: LOG_TARGET, target: LOG_TARGET,
"The {:?} API is not available for offchain workers yet. Follow \ "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 name
); );
Default::default() Default::default()
+1 -1
View File
@@ -47,7 +47,7 @@ pub type Page = u32;
/// Representation of a staking account, which may be a stash or controller account. /// 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 /// 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)] #[derive(Clone, Debug)]
pub enum StakingAccount<AccountId> { pub enum StakingAccount<AccountId> {
Stash(AccountId), Stash(AccountId),
+1 -1
View File
@@ -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 // 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> { impl From<&crate::WasmMetadata> for &'static tracing_core::Metadata<'static> {
fn from(wm: &crate::WasmMetadata) -> &'static tracing_core::Metadata<'static> { fn from(wm: &crate::WasmMetadata) -> &'static tracing_core::Metadata<'static> {
match (&wm.level, wm.is_span) { match (&wm.level, wm.is_span) {
@@ -137,7 +137,7 @@ impl ParseRuntimeVersion {
let warning = Warning::new_deprecated("RuntimeVersion") let warning = Warning::new_deprecated("RuntimeVersion")
.old("state_version") .old("state_version")
.new("system_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()) .span(field_name.span())
.build_or_panic(); .build_or_panic();
warnings.push(warning); warnings.push(warning);
@@ -106,8 +106,8 @@ License: Apache-2.0
<!-- LINKS --> <!-- LINKS -->
[Polkachu]: https://polkachu.com/snapshots [Polkachu]: https://polkachu.com/snapshots
[here]: https://github.com/pezkuwichain/kurdistan-sdk/issues/6 [here]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/6
[pezkuwi#5192]: https://github.com/pezkuwichain/kurdistan-sdk/issues/154 [pezkuwi#5192]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/154
[`--db`]: ../shared/README.md#arguments [`--db`]: ../shared/README.md#arguments
[`--pruning`]: ../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 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 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. 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. 👉 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 --> <!-- LINKS -->
[`ExtrinsicBaseWeight`]: [`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`]: [`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]: [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 \ const ERROR_CANNOT_BUILD_GENESIS: &str = "The runtime returned \
an error when trying to build the genesis storage. Please ensure that all pallets \ 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: \ 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. /// 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 \ pub const WARN_SPEC_GENESIS_CTOR: &'static str = "Using the chain spec instead of the runtime to \
@@ -485,7 +485,7 @@ where
loop { loop {
// This loop can hit the node with very rapid requests, occasionally causing it to // 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 = let retry_strategy =
FixedInterval::new(Self::KEYS_PAGE_RETRY_INTERVAL).take(Self::MAX_RETRIES); FixedInterval::new(Self::KEYS_PAGE_RETRY_INTERVAL).take(Self::MAX_RETRIES);
let get_page_closure = let get_page_closure =
@@ -54,7 +54,7 @@ data/chains/local_testnet/db/full/
data/chains/local_testnet/db/full/000469.log 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`. The `raw` chain-spec shall also be saved: `db-test-gen/local.json`.
+1 -1
View File
@@ -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 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 -1
View File
@@ -1,6 +1,6 @@
# Markdown linting # 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. 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 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