fix: Resolve cargo clippy errors and add CI workflow plan

## Changes

### Clippy Fixes
- Fixed deprecated `cargo_bin` usage in 27 test files (added #![allow(deprecated)])
- Fixed uninlined_format_args in zombienet-sdk-tests
- Fixed subxt API changes in revive/rpc/tests.rs (fetch signature, StorageValue)
- Fixed dead_code warnings in validator-pool and identity-kyc mocks
- Fixed field name `i` -> `_i` in tasks example

### CI Infrastructure
- Added .claude/WORKFLOW_PLAN.md for tracking CI fix progress
- Updated lychee.toml and taplo.toml configs

### Files Modified
- 27 test files with deprecated cargo_bin fix
- bizinikiwi/pezframe/revive/rpc/src/tests.rs (subxt API)
- pezkuwi/pezpallets/validator-pool/src/{mock,tests}.rs
- pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs
- bizinikiwi/pezframe/examples/tasks/src/tests.rs

## Status
- cargo clippy: PASSING
- Next: cargo fmt, zepter, workspace checks
This commit is contained in:
2025-12-22 16:36:14 +03:00
parent 8acf59c6aa
commit 65b7f5e640
1393 changed files with 17834 additions and 179151 deletions
@@ -30,8 +30,8 @@ pezsp-core = { workspace = true }
pezsp-runtime = { workspace = true }
# Pezkuwi
pezpallet-xcm = { workspace = true }
pezkuwi-runtime-common = { workspace = true, default-features = true }
pezpallet-xcm = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
@@ -39,9 +39,9 @@ xcm-runtime-pezapis = { workspace = true }
# Pezcumulus
asset-test-pezutils = { workspace = true, default-features = true }
emulated-integration-tests-common = { workspace = true }
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
pezcumulus-pezpallet-xcmp-queue = { workspace = true }
emulated-integration-tests-common = { workspace = true }
teyrchains-common = { workspace = true, default-features = true }
zagros-system-emulated-network = { workspace = true }
@@ -50,25 +50,25 @@ pezsp-tracing = { workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"asset-test-pezutils/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"emulated-integration-tests-common/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-asset-conversion/runtime-benchmarks",
"pezpallet-asset-rewards/runtime-benchmarks",
"pezpallet-assets/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-treasury/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-system-emulated-network/runtime-benchmarks",
"asset-test-pezutils/runtime-benchmarks",
"emulated-integration-tests-common/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezpallet-asset-conversion/runtime-benchmarks",
"pezpallet-asset-rewards/runtime-benchmarks",
"pezpallet-assets/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-treasury/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-system-emulated-network/runtime-benchmarks",
]
@@ -65,11 +65,15 @@ mod imports {
ExistentialDeposit as AssetHubZagrosExistentialDeposit, ForeignAssetReserveData,
},
genesis::{AssetHubZagrosAssetOwner, ED as ASSET_HUB_ZAGROS_ED},
AssetHubZagrosParaPallet as AssetHubZagrosPallet,
AssetHubZagrosParaPezpallet,
AssetHubZagrosParaPezpallet as AssetHubZagrosPallet,
},
collectives_zagros_emulated_chain::CollectivesZagrosParaPallet as CollectivesZagrosPallet,
coretime_zagros_emulated_chain::CoretimeZagrosParaPallet as CoretimeZagrosPallet,
people_zagros_emulated_chain::PeopleZagrosParaPallet as PeopleZagrosPallet,
collectives_zagros_emulated_chain::{
CollectivesZagrosParaPezpallet,
CollectivesZagrosParaPezpallet as CollectivesZagrosPallet,
},
coretime_zagros_emulated_chain::CoretimeZagrosParaPezpallet,
people_zagros_emulated_chain::PeopleZagrosParaPezpallet,
pez_penpal_emulated_chain::{
pez_penpal_runtime::xcm_config::{
CustomizableAssetFromSystemAssetHub as PenpalCustomizableAssetFromSystemAssetHub,
@@ -78,12 +82,15 @@ mod imports {
UniversalLocation as PenpalUniversalLocation,
UsdtFromAssetHub as PenpalUsdtFromAssetHub,
},
PenpalAParaPallet as PenpalAPallet, PenpalAssetOwner,
PenpalBParaPallet as PenpalBPallet,
PenpalAParaPezpallet,
PenpalAParaPezpallet as PenpalAPallet,
PenpalAssetOwner,
PenpalBParaPezpallet,
PenpalBParaPezpallet as PenpalBPallet,
},
pezbridge_hub_zagros_emulated_chain::{
pezbridge_hub_zagros_runtime::xcm_config::{self as bhw_xcm_config},
BridgeHubZagrosParaPallet as BridgeHubZagrosPallet,
BridgeHubZagrosParaPezpallet,
},
zagros_emulated_chain::{
genesis::ED as ZAGROS_ED,
@@ -94,7 +101,8 @@ mod imports {
},
Dmp,
},
ZagrosRelayPallet as ZagrosPallet,
ZagrosRelayPezpallet,
ZagrosRelayPezpallet as ZagrosPallet,
},
AssetHubZagrosPara as AssetHubZagros, AssetHubZagrosParaReceiver as AssetHubZagrosReceiver,
AssetHubZagrosParaSender as AssetHubZagrosSender, BridgeHubZagrosPara as BridgeHubZagros,
@@ -36,7 +36,7 @@ macro_rules! foreign_balance_on {
( $chain:ident, $id:expr, $who:expr ) => {
emulated_integration_tests_common::impls::paste::paste! {
<$chain>::execute_with(|| {
type ForeignAssets = <$chain as [<$chain Pezpallet>]>::ForeignAssets;
type ForeignAssets = <$chain as [<$chain ParaPezpallet>]>::ForeignAssets;
<ForeignAssets as pezframe_support::traits::fungibles::Inspect<_>>::balance($id, $who)
})
}
@@ -48,7 +48,7 @@ macro_rules! assets_balance_on {
( $chain:ident, $id:expr, $who:expr ) => {
emulated_integration_tests_common::impls::paste::paste! {
<$chain>::execute_with(|| {
type Assets = <$chain as [<$chain Pezpallet>]>::Assets;
type Assets = <$chain as [<$chain ParaPezpallet>]>::Assets;
<Assets as pezframe_support::traits::fungibles::Inspect<_>>::balance($id, $who)
})
}
@@ -78,7 +78,7 @@ macro_rules! create_pool_with_wnd_on {
let signed_owner = <$chain as Chain>::RuntimeOrigin::signed(owner.clone());
let wnd_location: Location = Parent.into();
if $is_foreign {
assert_ok!(<$chain as [<$chain Pezpallet>]>::ForeignAssets::mint(
assert_ok!(<$chain as [<$chain ParaPezpallet>]>::ForeignAssets::mint(
signed_owner.clone(),
$asset_id.clone().into(),
owner.clone().into(),
@@ -89,7 +89,7 @@ macro_rules! create_pool_with_wnd_on {
Some(GeneralIndex(id)) => *id as u32,
_ => unreachable!(),
};
assert_ok!(<$chain as [<$chain Pezpallet>]>::Assets::mint(
assert_ok!(<$chain as [<$chain ParaPezpallet>]>::Assets::mint(
signed_owner.clone(),
asset_id.into(),
owner.clone().into(),
@@ -97,7 +97,7 @@ macro_rules! create_pool_with_wnd_on {
));
}
assert_ok!(<$chain as [<$chain Pezpallet>]>::AssetConversion::create_pool(
assert_ok!(<$chain as [<$chain ParaPezpallet>]>::AssetConversion::create_pool(
signed_owner.clone(),
Box::new(wnd_location.clone()),
Box::new($asset_id.clone()),
@@ -110,7 +110,7 @@ macro_rules! create_pool_with_wnd_on {
]
);
assert_ok!(<$chain as [<$chain Pezpallet>]>::AssetConversion::add_liquidity(
assert_ok!(<$chain as [<$chain ParaPezpallet>]>::AssetConversion::add_liquidity(
signed_owner,
Box::new(wnd_location),
Box::new($asset_id),