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
@@ -31,7 +31,7 @@ pub trait Environment<C: Chain>: Send + Sync {
async fn header_id_by_hash(&self, hash: HashOf<C>) -> Result<HeaderIdOf<C>, Error>;
}
// TODO (https://github.com/pezkuwichain/kurdistan-sdk/issues/84): remove `Environment` trait
// TODO (https://github.com/pezkuwichain/pezkuwi-sdk/issues/84): remove `Environment` trait
// after test client is implemented
#[async_trait]
impl<C: Chain, T: crate::client::Client<C>> Environment<C> for T {
@@ -78,7 +78,7 @@ impl<C: Chain, E: Environment<C>> TransactionTracker<C, E> {
Self { environment, stall_timeout, transaction_hash, subscription }
}
// TODO (https://github.com/pezkuwichain/kurdistan-sdk/issues/84): remove me after
// TODO (https://github.com/pezkuwichain/pezkuwi-sdk/issues/84): remove me after
// test client is implemented
/// Converts self into tracker with different environment.
pub fn switch_environment<NewE: Environment<C>>(
@@ -236,7 +236,7 @@ async fn watch_transaction_status<
Some(TransactionStatusOf::<C>::InBlock(block_hash)) => {
// TODO: read matching system event (ExtrinsicSuccess or ExtrinsicFailed), log it
// here and use it later (on finality) for reporting invalid transaction
// https://github.com/pezkuwichain/kurdistan-sdk/issues/79
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/79
tracing::trace!(
target: "bridge",
node=%C::NAME,
@@ -92,7 +92,7 @@ macro_rules! declare_chain_runtime_version_params_cli_schema {
macro_rules! declare_chain_connection_params_cli_schema {
($chain:ident, $chain_prefix:ident) => {
pezbp_runtime::paste::item! {
// TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/86
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/86
// remove all obsolete arguments (separate URI components)
#[doc = $chain " connection params."]
@@ -163,7 +163,7 @@ impl<
//
// this may lead to multiple reconnects to the same node during the same call and it
// needs to be addressed in the future
// TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/82
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/82
if let Some(ref mut target_to_source_headers_relay) = self.target_to_source_headers_relay {
target_to_source_headers_relay.reconnect().await?;
}
@@ -189,7 +189,7 @@ impl<
//
// this may lead to multiple reconnects to the same node during the same call and it
// needs to be addressed in the future
// TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/82
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/82
if let Some(ref mut source_to_target_headers_relay) = self.source_to_target_headers_relay {
source_to_target_headers_relay.reconnect().await?;
}