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:
@@ -263,7 +263,7 @@ fn slot_now(slot_duration: SlotDuration) -> Slot {
|
||||
/// The others are generated explicitly internally.
|
||||
///
|
||||
/// This should only be used for runtimes where the runtime does not check all inherents and
|
||||
/// seals in `execute_block` (see <https://github.com/pezkuwichain/kurdistan-sdk/issues/91>)
|
||||
/// seals in `execute_block` (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/91>)
|
||||
pub fn fully_verifying_import_queue<P, Client, Block: BlockT, I, CIDP>(
|
||||
client: Arc<Client>,
|
||||
block_import: I,
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//! At the time of writing, the inherent and consensus checks in most Pezcumulus runtimes
|
||||
//! are only performed during teyrchain validation, not full node block execution.
|
||||
//!
|
||||
//! See <https://github.com/pezkuwichain/kurdistan-sdk/issues/91> for details.
|
||||
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/91> for details.
|
||||
|
||||
use pezsp_consensus::error::Error as ConsensusError;
|
||||
use pezsp_runtime::traits::Block as BlockT;
|
||||
|
||||
@@ -375,7 +375,7 @@ async fn handle_new_block_imported<Block, P>(
|
||||
{
|
||||
// HACK
|
||||
//
|
||||
// Remove after https://github.com/pezkuwichain/kurdistan-sdk/issues/76 or similar is merged
|
||||
// Remove after https://github.com/pezkuwichain/pezkuwi-sdk/issues/76 or similar is merged
|
||||
if notification.origin != BlockOrigin::Own {
|
||||
announce_block(notification.hash, None);
|
||||
}
|
||||
|
||||
@@ -784,7 +784,7 @@ pub fn distribute_header(header: RelayHeader, senders: &mut Vec<Sender<RelayHead
|
||||
Err(error) if error.is_disconnected() => false,
|
||||
// Channel is full. This should not happen.
|
||||
// TODO: Improve error handling here
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/90
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/90
|
||||
Err(error) => {
|
||||
tracing::error!(target: LOG_TARGET, ?error, "Event distribution channel has reached its limit. This can lead to missed notifications.");
|
||||
true
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
//! To initiate rewards, an ED needs to be transferred to the pot address.
|
||||
//!
|
||||
//! Note: Eventually the Pot distribution may be modified as discussed in [this
|
||||
//! issue](https://github.com/pezkuwichain/kurdistan-sdk/issues/187#issuecomment-810481073).
|
||||
//! issue](https://github.com/pezkuwichain/pezkuwi-sdk/issues/187#issuecomment-810481073).
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ use alloc::vec::Vec;
|
||||
use log;
|
||||
use pezframe_support::traits::{OnRuntimeUpgrade, UncheckedOnRuntimeUpgrade};
|
||||
|
||||
/// Migrate to v2. Should have been part of <https://github.com/pezkuwichain/kurdistan-sdk/issues/104>.
|
||||
/// Migrate to v2. Should have been part of <https://github.com/pezkuwichain/pezkuwi-sdk/issues/104>.
|
||||
pub mod v2 {
|
||||
use super::*;
|
||||
use pezframe_support::{
|
||||
|
||||
@@ -42,7 +42,7 @@ pub type MaxDmpMessageLenOf<T> =
|
||||
|
||||
#[pezframe_support::pezpallet]
|
||||
#[deprecated(
|
||||
note = "`pezcumulus-pezpallet-dmp-queue` will be removed after November 2024. It can be removed once its lazy migration completed. See <https://github.com/pezkuwichain/kurdistan-sdk/issues/101>."
|
||||
note = "`pezcumulus-pezpallet-dmp-queue` will be removed after November 2024. It can be removed once its lazy migration completed. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/101>."
|
||||
)]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
|
||||
@@ -636,7 +636,7 @@ pub mod pezpallet {
|
||||
total_weight += Self::maybe_drop_included_ancestors(&relay_state_proof, capacity);
|
||||
// Deposit a log indicating the relay-parent storage root.
|
||||
// TODO: remove this in favor of the relay-parent's hash after
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/92
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/92
|
||||
pezframe_system::Pezpallet::<T>::deposit_log(
|
||||
pezcumulus_primitives_core::rpsr_digest::relay_parent_storage_root_item(
|
||||
vfp.relay_parent_storage_root,
|
||||
@@ -1010,7 +1010,7 @@ pub mod pezpallet {
|
||||
#[pezpallet::genesis_build]
|
||||
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
|
||||
fn build(&self) {
|
||||
// TODO: Remove after https://github.com/pezkuwichain/kurdistan-sdk/issues/93
|
||||
// TODO: Remove after https://github.com/pezkuwichain/pezkuwi-sdk/issues/93
|
||||
pezsp_io::storage::set(b":c", &[]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1195,7 +1195,7 @@ fn message_queue_chain() {
|
||||
// the types are nominally different, they have the same structure and computation of the
|
||||
// new head doesn't differ.
|
||||
//
|
||||
// These cases are taken from https://github.com/pezkuwichain/kurdistan-sdk/issues/173
|
||||
// These cases are taken from https://github.com/pezkuwichain/pezkuwi-sdk/issues/173
|
||||
assert_eq!(
|
||||
MessageQueueChain::default()
|
||||
.extend_downward(&InboundDownwardMessage { sent_at: 2, msg: vec![1, 2, 3] })
|
||||
|
||||
@@ -365,8 +365,8 @@ pub fn extract_relay_parent(digest: &Digest) -> Option<relay_chain::Hash> {
|
||||
/// Utilities for handling the relay-parent storage root as a digest item.
|
||||
///
|
||||
/// This is not intended to be part of the public API, as it is a workaround for
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/92> via
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/169>.
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/92> via
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/169>.
|
||||
///
|
||||
/// Runtimes using the teyrchain-system pezpallet are expected to produce this digest item,
|
||||
/// but will stop as soon as they are able to provide the relay-parent hash directly.
|
||||
|
||||
@@ -259,7 +259,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);
|
||||
}
|
||||
@@ -1437,7 +1437,7 @@ parameter_types! {
|
||||
|
||||
/// Migration to initialize storage versions for pallets added after genesis.
|
||||
///
|
||||
/// This is now done automatically (see <https://github.com/pezkuwichain/kurdistan-sdk/issues/102>),
|
||||
/// This is now done automatically (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/102>),
|
||||
/// but some pallets had made it in and had storage set in them for this teyrchain before it was
|
||||
/// merged.
|
||||
pub struct InitStorageVersions;
|
||||
|
||||
@@ -285,7 +285,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);
|
||||
}
|
||||
@@ -1566,7 +1566,7 @@ impl pezframe_support::traits::OnRuntimeUpgrade for DeleteUndecodableStorage {
|
||||
/// Migration to initialize storage versions for pallets added after genesis.
|
||||
///
|
||||
/// Ideally this would be done automatically (see
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// time and it's beneficial to get try-runtime-cli on-runtime-upgrade checks into the CI, so we're
|
||||
/// doing it manually.
|
||||
pub struct InitStorageVersions;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
/// For new assets, the reserve location(s) and teleport status need to be explicitly configured by
|
||||
/// the asset's `Owner`.
|
||||
///
|
||||
/// See <https://github.com/pezkuwichain/kurdistan-sdk/issues/129> for more info.
|
||||
/// See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/129> for more info.
|
||||
pub mod foreign_assets_reserves {
|
||||
use crate::*;
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
|
||||
@@ -208,7 +208,7 @@ parameter_types! {
|
||||
/// Migration to initialize storage versions for pallets added after genesis.
|
||||
///
|
||||
/// Ideally this would be done automatically (see
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// time and it's beneficial to get try-runtime-cli on-runtime-upgrade checks into the CI, so we're
|
||||
/// doing it manually.
|
||||
pub struct InitStorageVersions;
|
||||
|
||||
@@ -196,7 +196,7 @@ parameter_types! {
|
||||
/// Migration to initialize storage versions for pallets added after genesis.
|
||||
///
|
||||
/// Ideally this would be done automatically (see
|
||||
/// <https://github.com/pezkuwichain/kurdistan-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/102>), but it probably won't be ready for some
|
||||
/// time and it's beneficial to get try-runtime-cli on-runtime-upgrade checks into the CI, so we're
|
||||
/// doing it manually.
|
||||
pub struct InitStorageVersions;
|
||||
|
||||
@@ -175,7 +175,7 @@ parameter_types! {
|
||||
.build_or_panic();
|
||||
pub const SS58Prefix: u8 = 42;
|
||||
// We assume the whole teyrchain state fits into the trie cache
|
||||
// Numbers are from <https://github.com/pezkuwichain/kurdistan-sdk/issues/127>
|
||||
// Numbers are from <https://github.com/pezkuwichain/pezkuwi-sdk/issues/127>
|
||||
pub const InMemoryDbWeight: RuntimeDbWeight = RuntimeDbWeight {
|
||||
read: 9_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
|
||||
write: 28_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
|
||||
|
||||
@@ -362,7 +362,7 @@ pub async fn submit_extrinsic_and_wait_for_finalization_success<S: Signer<Polkad
|
||||
.await?;
|
||||
|
||||
// Below we use the low level API to replicate the `wait_for_in_block` behaviour
|
||||
// which was removed in subxt 0.33.0. See https://github.com/pezkuwichain/kurdistan-sdk/issues/189.
|
||||
// which was removed in subxt 0.33.0. See https://github.com/pezkuwichain/pezkuwi-sdk/issues/189.
|
||||
while let Some(status) = tx.next().await {
|
||||
let status = status?;
|
||||
match &status {
|
||||
|
||||
Reference in New Issue
Block a user