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