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:
@@ -403,7 +403,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
/// Inserting arbitrarily causes a `DispatchError::DisallowedInsert` error.
|
||||
// With this restriction this function allows for O(1) complexity. It could easily be lifted, if
|
||||
// need be and in fact an implementation is available
|
||||
// [here](https://github.com/pezkuwichain/kurdistan-sdk/issues/107/commits/c0c23b01fd2830910cde92c11960dad12cdff398#diff-0c85a46e448de79a5452395829986ee8747e17a857c27ab624304987d2dde8baR386).
|
||||
// [here](https://github.com/pezkuwichain/pezkuwi-sdk/issues/107/commits/c0c23b01fd2830910cde92c11960dad12cdff398#diff-0c85a46e448de79a5452395829986ee8747e17a857c27ab624304987d2dde8baR386).
|
||||
// The problem is that insertion complexity then depends on the size of the existing queue,
|
||||
// which makes determining weights hard and could lead to issues like overweight blocks (at
|
||||
// least in theory).
|
||||
|
||||
@@ -135,7 +135,7 @@ pub struct HostConfiguration<BlockNumber> {
|
||||
/// revert [`validation_upgrade_delay`](Self::validation_upgrade_delay) many blocks back and
|
||||
/// still find the new code in the storage by hash.
|
||||
///
|
||||
/// [#4601]: https://github.com/pezkuwichain/kurdistan-sdk/issues/151
|
||||
/// [#4601]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/151
|
||||
pub validation_upgrade_delay: BlockNumber,
|
||||
/// Asynchronous backing parameters.
|
||||
pub async_backing_params: AsyncBackingParams,
|
||||
@@ -513,20 +513,20 @@ pub mod pezpallet {
|
||||
|
||||
/// The in-code storage version.
|
||||
///
|
||||
/// v0-v1: <https://github.com/pezkuwichain/kurdistan-sdk/issues/174>
|
||||
/// v1-v2: <https://github.com/pezkuwichain/kurdistan-sdk/issues/175>
|
||||
/// v2-v3: <https://github.com/pezkuwichain/kurdistan-sdk/issues/178>
|
||||
/// v3-v4: <https://github.com/pezkuwichain/kurdistan-sdk/issues/180>
|
||||
/// v4-v5: <https://github.com/pezkuwichain/kurdistan-sdk/issues/182>
|
||||
/// + <https://github.com/pezkuwichain/kurdistan-sdk/issues/183>
|
||||
/// + <https://github.com/pezkuwichain/kurdistan-sdk/issues/181>
|
||||
/// v5-v6: <https://github.com/pezkuwichain/kurdistan-sdk/issues/179> (remove UMP dispatch queue)
|
||||
/// v6-v7: <https://github.com/pezkuwichain/kurdistan-sdk/issues/185>
|
||||
/// v7-v8: <https://github.com/pezkuwichain/kurdistan-sdk/issues/184>
|
||||
/// v8-v9: <https://github.com/pezkuwichain/kurdistan-sdk/issues/186>
|
||||
/// v9-v10: <https://github.com/pezkuwichain/kurdistan-sdk/issues/110>
|
||||
/// v10-11: <https://github.com/pezkuwichain/kurdistan-sdk/issues/100>
|
||||
/// v11-12: <https://github.com/pezkuwichain/kurdistan-sdk/issues/112>
|
||||
/// v0-v1: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/174>
|
||||
/// v1-v2: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/175>
|
||||
/// v2-v3: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/178>
|
||||
/// v3-v4: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/180>
|
||||
/// v4-v5: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/182>
|
||||
/// + <https://github.com/pezkuwichain/pezkuwi-sdk/issues/183>
|
||||
/// + <https://github.com/pezkuwichain/pezkuwi-sdk/issues/181>
|
||||
/// v5-v6: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/179> (remove UMP dispatch queue)
|
||||
/// v6-v7: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/185>
|
||||
/// v7-v8: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/184>
|
||||
/// v8-v9: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/186>
|
||||
/// v9-v10: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/110>
|
||||
/// v10-11: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/100>
|
||||
/// v11-12: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/112>
|
||||
const STORAGE_VERSION: StorageVersion = StorageVersion::new(12);
|
||||
|
||||
#[pezpallet::pezpallet]
|
||||
|
||||
@@ -194,7 +194,7 @@ pub trait DisputesHandler<BlockNumber: Ord> {
|
||||
) -> Result<(), ()> {
|
||||
// TODO: Consider trade-of to avoid `O(n * log(n))` average lookups of `included_state`
|
||||
// TODO: instead make a single pass and store the values lazily.
|
||||
// TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/150
|
||||
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/150
|
||||
let n = statement_sets.len();
|
||||
|
||||
statement_sets.sort_by(dispute_ordering_compare::<Self, BlockNumber>);
|
||||
@@ -893,7 +893,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
BackersOnDisputes::<T>::remove_prefix(to_prune, None);
|
||||
|
||||
// This is larger, and will be extracted to the `shared` pezpallet for more proper
|
||||
// pruning. TODO: https://github.com/pezkuwichain/kurdistan-sdk/issues/145
|
||||
// pruning. TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/145
|
||||
#[allow(deprecated)]
|
||||
Included::<T>::remove_prefix(to_prune, None);
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
let random_seed = {
|
||||
let mut buf = [0u8; 32];
|
||||
// TODO: audit usage of randomness API
|
||||
// https://github.com/pezkuwichain/kurdistan-sdk/issues/139
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/139
|
||||
let (random_hash, _) = T::Randomness::random(&b"paras"[..]);
|
||||
let len = core::cmp::min(32, random_hash.as_ref().len());
|
||||
buf[..len].copy_from_slice(&random_hash.as_ref()[..len]);
|
||||
|
||||
@@ -398,7 +398,7 @@ pub(crate) enum PvfCheckCause<BlockNumber> {
|
||||
/// instead of its relay parent -- in order to keep PVF available in case of chain
|
||||
/// reversions.
|
||||
///
|
||||
/// See https://github.com/pezkuwichain/kurdistan-sdk/issues/151 for detailed explanation.
|
||||
/// See https://github.com/pezkuwichain/pezkuwi-sdk/issues/151 for detailed explanation.
|
||||
included_at: BlockNumber,
|
||||
/// Whether or not the upgrade should be enacted directly.
|
||||
///
|
||||
@@ -2080,7 +2080,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
//
|
||||
// This is only an intermediate solution and should be fixed in foreseeable future.
|
||||
//
|
||||
// [soaking issue]: https://github.com/pezkuwichain/kurdistan-sdk/issues/146
|
||||
// [soaking issue]: https://github.com/pezkuwichain/pezkuwi-sdk/issues/146
|
||||
let validation_code =
|
||||
mem::replace(&mut genesis_data.validation_code, ValidationCode(Vec::new()));
|
||||
UpcomingParasGenesis::<T>::insert(&id, genesis_data);
|
||||
|
||||
Reference in New Issue
Block a user