fix: resolve all broken links for check-links.yml CI

## Changes

### High Impact Fixes (RED)
- Fix radium git URL (https://https:// → github.com/paritytech/radium-0.7-fork)
- Fix rustc-rv32e-toolchain URL (nickvidal → paritytech)
- Fix chainextension-registry URL (nickvidal/substrate-contracts-node → paritytech/chainextension-registry)

### Medium Impact Fixes (YELLOW)
- Fix docs.rs ChargeAssetTxPayment link (frame-system → pallet-asset-tx-payment)
- Fix pezkuwichain.github.io → paritytech.github.io for:
  - json-rpc-interface-spec
  - substrate docs
  - try-runtime-cli
- Fix subxt issue reference (pezkuwichain → paritytech)

### Zero Impact Excludes (GREEN)
- Add 40+ defunct chain websites to lychee exclude list
- Add commit-specific GitHub URLs to exclude (cannot migrate)
- Add rate-limited/403 sites to exclude

### Documentation
- Refactor .claude/domains_repositories.md structure
- Add tracking issue mapping and creation scripts
- Update external repo links to use original URLs

Result: 🔍 9610 Total  6747 OK 🚫 0 Errors
This commit is contained in:
2025-12-23 07:58:20 +03:00
parent e8c03b5c86
commit 3c60d579a6
174 changed files with 1335 additions and 430 deletions
+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/pezkuwi-sdk/issues/2.
// Clear thread local vars for https://github.com/pezkuwichain/pezkuwi-sdk/issues/317.
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/pezkuwi-sdk/issues/119/commits/2ab35354d86904c035b21a2229452841b79b0457)
// (https://github.com/pezkuwichain/pezkuwi-sdk/issues/264/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/pezkuwi-sdk/issues/40/`
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/209/`
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/pezkuwi-sdk/issues/40/`
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/209/`
#[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/pezkuwi-sdk/issues/40/`
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/209/`
#[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/pezkuwi-sdk/issues/40/`
/// Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/209/`
#[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/pezkuwi-sdk/issues/40/`
/// Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/pezkuwi-sdk/issues/209/`
#[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/pezkuwi-sdk/issues/74.
// as part of the PR - https://github.com/pezkuwichain/pezkuwi-sdk/issues/223.
// The code has been moved here and then refactored in order to
// extract child bounties as a separate pezpallet.
@@ -39,7 +39,7 @@
//! However, only extensions implementing [`RegisteredChainExtension`] can be put into a tuple.
//! This is because the [`RegisteredChainExtension::ID`] is used to decide which of those extensions
//! should be used when the contract calls a chain extensions. Extensions which are generally
//! useful should claim their `ID` with [the registry](https://github.com/pezkuwichain/chainextension-registry)
//! useful should claim their `ID` with [the registry](https://github.com/paritytech/chainextension-registry)
//! so that no collisions with other vendors will occur.
//!
//! **Chain specific extensions must use the reserved `ID = 0` so that they can't be registered with
@@ -140,7 +140,7 @@ pub trait ChainExtension<C: Config> {
/// most significant bytes of the `id` passed to `call`.
///
/// If this extensions is to be used by multiple runtimes consider
/// [registering it](https://github.com/pezkuwichain/chainextension-registry) to ensure that there
/// [registering it](https://github.com/paritytech/chainextension-registry) to ensure that there
/// are no collisions with other vendors.
///
/// # Note
@@ -16,7 +16,7 @@
// limitations under the License.
//! Don't rely on reserved balances keeping an account alive
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/44>.
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/212>.
use crate::{
exec::AccountIdOf,
@@ -16,7 +16,7 @@
// limitations under the License.
//! Overflowing bounded DeletionQueue.
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/47>.
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/214>.
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/pezkuwi-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/214/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/pezkuwi-sdk/issues/49>.
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/216>.
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/pezkuwi-sdk/issues/40), we need the deposits to be
//! [deprecated](https://github.com/pezkuwichain/pezkuwi-sdk/issues/209), 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/pezkuwi-sdk/issues/40), we need the deposits to be
//! [deprecated](https://github.com/pezkuwichain/pezkuwi-sdk/issues/209), 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/pezkuwi-sdk/issues/116>.
//! See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/261>.
use crate::{
migration::{IsFinished, MigrationStep},
@@ -1371,7 +1371,7 @@ pub mod pezpallet {
/// The in-code storage version.
///
/// v1: https://github.com/pezkuwichain/pezkuwi-sdk/issues/38/
/// v1: https://github.com/pezkuwichain/pezkuwi-sdk/issues/207/
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/pezkuwi-sdk/issues/16>.
/// Related to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/329>.
fn ledger_consistency_active_balance_below_ed() {
use pezpallet_staking::{Error, Event};
@@ -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/pezkuwi-sdk/issues/5>
/// - The maximum number of voters. This must be of type `Get<u32>`. Check <https://github.com/pezkuwichain/pezkuwi-sdk/issues/320>
/// 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/pezkuwi-sdk/issues/35>
/// This is documented further in issue: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/204>
fn desired_targets() -> data_provider::Result<u32>;
/// Provide a best effort prediction about when the next election is about to happen.
@@ -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/pezkuwi-sdk/issues/190>).
//! (tracked: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/333>).
pub mod migrations;
mod mock;
@@ -285,7 +285,7 @@ fn service_queues_low_weight_defensive() {
});
}
/// Regression test for <https://github.com/pezkuwichain/pezkuwi-sdk/issues/109>.
/// Regression test for <https://github.com/pezkuwichain/pezkuwi-sdk/issues/255>.
#[test]
fn service_queues_regression_1873() {
use MessageOrigin::*;
@@ -1675,7 +1675,7 @@ fn integrity_test_checks_service_weight() {
});
}
/// Test for <https://github.com/pezkuwichain/pezkuwi-sdk/issues/121>.
/// Test for <https://github.com/pezkuwichain/pezkuwi-sdk/issues/266>.
#[test]
fn regression_issue_2319() {
build_and_execute::<Test>(|| {
@@ -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/pezkuwi-sdk/issues/4>
//! Related: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/319>
//!
//! ### Limitations
//!
@@ -840,7 +840,7 @@ pub mod v2 {
}
/// Migrate the pool reward scheme to the new version, as per
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/37.>.
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/206.>.
pub struct MigrateToV2<T>(core::marker::PhantomData<T>);
impl<T: Config> MigrateToV2<T> {
fn run(current: StorageVersion) -> Weight {
+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/pezkuwi-sdk/issues/126)) in
/// This is a temporary fix (see [#7671](https://github.com/pezkuwichain/pezkuwi-sdk/issues/271)) 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/pezkuwi-sdk/issues/188> is fixed.
/// Can be removed once <https://github.com/pezkuwichain/pezkuwi-sdk/issues/331> is fixed.
pub trait BlockInfo {
/// Returns the block hash.
fn hash(&self) -> H256;
@@ -300,7 +300,7 @@ impl<B: BlockInfoProvider> ReceiptProvider<B> {
/// Insert receipts into the provider.
///
/// Note: Can be merged into `insert_block_receipts` once <https://github.com/pezkuwichain/pezkuwi-sdk/issues/188> is fixed and subxt let
/// Note: Can be merged into `insert_block_receipts` once <https://github.com/pezkuwichain/pezkuwi-sdk/issues/331> is fixed and subxt let
/// us create Mock `BizinikiwiBlock`
async fn insert(
&self,
+1 -1
View File
@@ -4043,7 +4043,7 @@ fn call_tracing_works() {
];
// Verify that the first trace report the same weight reported by bare_call
// TODO: fix tracing ( https://github.com/pezkuwichain/pezkuwi-sdk/issues/153 )
// TODO: fix tracing ( https://github.com/pezkuwichain/pezkuwi-sdk/issues/296 )
/*
let mut tracer = CallTracer::new(false, |w| w);
let gas_used = trace(&mut tracer, || {
@@ -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/pezkuwi-sdk/issues/41> since it piles up `None`-only agendas. This does not modify the pezpallet version.
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/210> 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
@@ -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/pezkuwi-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/268"
)]
pub mod v1 {
pub use super::shared::*;
@@ -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/pezkuwi-sdk/issues/128, the maximum of which being around 1mb
/// https://github.com/pezkuwichain/pezkuwi-sdk/issues/273, 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/pezkuwi-sdk/issues/21>.
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/191>.
#[derive(
PartialEqNoBound,
EqNoBound,
@@ -194,7 +194,7 @@ impl<T: Config> StakingLedger<T> {
// further spoil the ledger's state. A bond is in bad state when the bonded controller is
// associated with a different ledger (i.e. a ledger with a different stash).
//
// See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/128> for more details.
// See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/273> for more details.
ensure!(
Bonded::<T>::get(&stash) == Some(controller) && ledger.stash == stash,
Error::<T>::BadState
@@ -303,7 +303,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/pezkuwi-sdk/issues/117> for more
// inconsistencies. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/262> for more
// details.
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
}
@@ -1795,7 +1795,7 @@ impl<T: Config> Pezpallet<T> {
/// * A bonded (stash, controller) pair must have an associated ledger.
///
/// NOTE: these checks result in warnings only. Once
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/128> is resolved, turn warns into check
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/273> is resolved, turn warns into check
/// failures.
fn check_bonded_consistency() -> Result<(), TryRuntimeError> {
use alloc::collections::btree_set::BTreeSet;
+2 -2
View File
@@ -132,7 +132,7 @@ impl<T: Config> StakingLedger<T> {
// further spoil the ledger's state. A bond is in bad state when the bonded controller is
// associated with a different ledger (i.e. a ledger with a different stash).
//
// See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/128> for more details.
// See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/273> for more details.
ensure!(
Bonded::<T>::get(&stash) == Some(controller) && ledger.stash == stash,
Error::<T>::BadState
@@ -241,7 +241,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/pezkuwi-sdk/issues/117> for more
// inconsistencies. See <https://github.com/pezkuwichain/pezkuwi-sdk/issues/262> for more
// details.
ensure!(bonded_ledger.stash == self.stash, Error::<T>::BadState);
}
+3 -3
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/pezkuwi-sdk/issues/21>.
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/191>.
#[derive(
PartialEqNoBound,
EqNoBound,
@@ -531,7 +531,7 @@ pub struct StakingLedger<T: Config> {
/// for validators.
///
/// This is deprecated as of V14 in favor of `T::ClaimedRewards` and will be removed in future.
/// Refer to issue <https://github.com/pezkuwichain/pezkuwi-sdk/issues/103>
/// Refer to issue <https://github.com/pezkuwichain/pezkuwi-sdk/issues/249>
pub legacy_claimed_rewards: BoundedVec<EraIndex, T::HistoryDepth>,
/// The controller associated with this ledger's stash.
@@ -1213,7 +1213,7 @@ impl<T: Config> EraInfo<T> {
/// non-paged rewards, and (2) `T::ClaimedRewards` for paged rewards. This function can be
/// removed once `T::HistoryDepth` eras have passed and none of the older non-paged rewards
/// are relevant/claimable.
// Refer tracker issue for cleanup: https://github.com/pezkuwichain/pezkuwi-sdk/issues/103
// Refer tracker issue for cleanup: https://github.com/pezkuwichain/pezkuwi-sdk/issues/249
pub(crate) fn is_rewards_claimed_with_legacy_fallback(
era: EraIndex,
ledger: &StakingLedger<T>,
@@ -1527,7 +1527,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/pezkuwi-sdk/issues/43>.
// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/211>.
if bounds.exhausted(None, CountBound(T::TargetList::count()).into()) {
return Err("Target snapshot too big");
}
@@ -2082,7 +2082,7 @@ impl<T: Config> StakingInterface for Pezpallet<T> {
fn is_exposed_in_era(who: &Self::AccountId, era: &EraIndex) -> bool {
// look in the non paged exposures
// FIXME: Can be cleaned up once non paged exposures are cleared (https://github.com/pezkuwichain/pezkuwi-sdk/issues/103)
// FIXME: Can be cleaned up once non paged exposures are cleared (https://github.com/pezkuwichain/pezkuwi-sdk/issues/249)
ErasStakers::<T>::iter_prefix(era).any(|(validator, exposures)| {
validator == *who || exposures.others.iter().any(|i| i.who == *who)
})
@@ -2237,7 +2237,7 @@ impl<T: Config> Pezpallet<T> {
/// * A bonded (stash, controller) pair must have an associated ledger.
///
/// NOTE: these checks result in warnings only. Once
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/128> is resolved, turn warns into check
/// <https://github.com/pezkuwichain/pezkuwi-sdk/issues/273> is resolved, turn warns into check
/// failures.
fn check_bonded_consistency() -> Result<(), TryRuntimeError> {
use alloc::collections::btree_set::BTreeSet;
+2 -2
View File
@@ -289,7 +289,7 @@ pub(crate) fn compute_slash<T: Config>(
if target_span == Some(spans.span_index()) {
// misbehavior occurred within the current slashing span - end current span.
// Check <https://github.com/pezkuwichain/pezkuwi-sdk/issues/124> for details.
// Check <https://github.com/pezkuwichain/pezkuwi-sdk/issues/269> for details.
spans.end_span(params.now);
}
}
@@ -321,7 +321,7 @@ fn kick_out_if_recent<T: Config>(params: SlashParams<T>) {
);
if spans.era_span(params.slash_era).map(|s| s.index) == Some(spans.span_index()) {
// Check https://github.com/pezkuwichain/pezkuwi-sdk/issues/124 for details
// Check https://github.com/pezkuwichain/pezkuwi-sdk/issues/269 for details
spans.end_span(params.now);
}
}
@@ -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/pezkuwi-sdk/issues/8>
/// storage: <https://github.com/pezkuwichain/pezkuwi-sdk/issues/322>
///
/// 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
@@ -542,7 +542,7 @@ pub mod pezpallet {
/// - [`pezframe_support::storage::StorageDoubleMap`]: 96 byte
///
/// For more info see
/// <https://www.shawntabrizi.com/blog/bizinikiwi/querying-bizinikiwi-storage-via-rpc/>
/// <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
#[pezpallet::constant]
#[pezpallet::no_default]
@@ -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/pezkuwi-sdk/issues/51"])
.help_links(&["https://github.com/pezkuwichain/pezkuwi-sdk/issues/218"])
.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/pezkuwi-sdk/issues/39",
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/36"
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/208",
"https://github.com/pezkuwichain/pezkuwi-sdk/issues/205"
])
.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/pezkuwi-sdk/issues/108");
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/254");
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/pezkuwi-sdk/issues/48")
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/215")
.span(lit.span())
.build_or_panic();
@@ -444,7 +444,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/pezkuwi-sdk/issues/125")
.help_link("https://github.com/pezkuwichain/pezkuwi-sdk/issues/270")
.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/pezkuwi-sdk/issues/50>, the following syntax was used.
/// Prior to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/217>, the following syntax was used.
/// This is deprecated and will soon be removed.
///
/// ```
@@ -311,7 +311,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/pezkuwi-sdk/issues/11>).
/// (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/324>).
pub struct RemovePallet<P: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
PhantomData<(P, DbWeight)>,
);
@@ -418,7 +418,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/pezkuwi-sdk/issues/11>).
/// (see <https://github.com/pezkuwichain/pezkuwi-sdk/issues/324>).
pub struct RemoveStorage<P: Get<&'static str>, S: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>(
PhantomData<(P, S, DbWeight)>,
);
@@ -170,7 +170,7 @@ pub mod pezpallet {
#[pezpallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T> {
fn on_initialize(n: BlockNumberFor<T>) -> Weight {
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/160 - Replace this with benchmarked weights.
// TODO: https://github.com/pezkuwichain/pezkuwi-sdk/issues/303 - Replace this with benchmarked weights.
let mut weight = Weight::zero();
let db_weight = T::DbWeight::get();
+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/pezkuwi-sdk/issues/122> for migration to `spend`.
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/267> 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/pezkuwi-sdk/issues/122> for migration to `spend`.
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/267> 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/pezkuwi-sdk/issues/122> for migration to `spend`.
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/267> 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/pezkuwi-sdk/issues/122> for migration to `spend`.
/// Refer to <https://github.com/pezkuwichain/pezkuwi-sdk/issues/267> for migration to `spend`.
///
/// Proposal indices that have been approved but not yet awarded.
#[pezpallet::storage]