Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f9f559a
chore : bump polkadot-sdk
1xstj Oct 2, 2025
db4f0dc
chore : fix build errors
1xstj Oct 3, 2025
791471b
chore : cleanup
1xstj Oct 3, 2025
b618695
chore : cleanup
1xstj Oct 4, 2025
006bece
chore : more cleanup
1xstj Oct 6, 2025
14d8e6c
chore : more cleanup
1xstj Oct 6, 2025
99f5424
chore: format
1xstj Oct 6, 2025
17a36cf
chore: switch to stable toolchain
1xstj Oct 6, 2025
52ad2dc
chore: fix runtime benchmarks
1xstj Oct 7, 2025
89759c8
chore: format
1xstj Oct 7, 2025
56b85a0
chore: cleanup
1xstj Oct 7, 2025
af554a5
chore: clippy
1xstj Oct 7, 2025
2c18216
chore: clippy
1xstj Oct 8, 2025
f58d9d5
chore: cleanup
1xstj Oct 9, 2025
223424c
chore: format
1xstj Oct 9, 2025
cbba48f
Update all tests/mocks (#1055)
drewstone Oct 13, 2025
f5fac7b
chore: more cleanup
1xstj Oct 16, 2025
1079b33
chore: format
1xstj Oct 16, 2025
2dd9dcb
chore: generate new subxt files
1xstj Oct 21, 2025
5b124e7
chore: fix
drewstone Nov 11, 2025
e95874a
chore: fmt
drewstone Nov 11, 2025
7f01078
chore: fmt
drewstone Nov 11, 2025
2a9713f
chore: enable blueprint dependencies with stable2503 branch
drewstone Nov 11, 2025
37b1b48
fix: disable txpool RPC due to H256 type mismatches with stable2503
drewstone Nov 11, 2025
3a67f82
chore: run rustfmt with nightly to fix CI formatting
drewstone Nov 11, 2025
b3fe503
fix: derive Default for LockMultiplier to satisfy clippy
drewstone Nov 11, 2025
1c1b57a
fix: derive Default for ClaimPermission to satisfy clippy
drewstone Nov 12, 2025
4375fbc
chore: format test files with nightly rustfmt
drewstone Nov 12, 2025
e9773b1
chore: change target build
danielbui12 Nov 12, 2025
e6fde24
chore: resolve clippy issues
danielbui12 Nov 12, 2025
dead8a8
chore: fix rust fmt check
danielbui12 Nov 12, 2025
57f25ec
chore: update rust fmt
danielbui12 Nov 12, 2025
64347bd
chore: resolve all clippy issues
danielbui12 Nov 12, 2025
d927129
chore: generate new tangle-subxt
danielbui12 Nov 12, 2025
eaa5f90
fix: derive Default for ProxyType in testnet runtime
drewstone Nov 12, 2025
3452a43
fix: remove duplicate Default derive in ProxyType
drewstone Nov 12, 2025
3f1e491
chore: restore e2e test files
drewstone Nov 12, 2025
b5ebf5f
feat: add Chopsticks migration testing infrastructure
drewstone Nov 12, 2025
35471f0
fix(chopsticks): Fix storage format and db paths in configs
drewstone Nov 12, 2025
bf01785
fix: resolve TxPool H256 type mismatch in stable2503 upgrade
drewstone Nov 12, 2025
5144c75
chore: bump alloy
danielbui12 Nov 13, 2025
4e83476
chore: fixing e2e test
danielbui12 Nov 13, 2025
ba2e7fb
chore: update try runtime CLI
danielbui12 Nov 17, 2025
98f52d9
chore: adding frame-try-runtime for try-runtime feature
danielbui12 Nov 17, 2025
3ab03cc
chore: update test migration script to use snapshot
danielbui12 Nov 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: clippy
  • Loading branch information
1xstj committed Oct 8, 2025
commit 2c18216ebfa1e72dcbf0fcca9e0e5d323b9cc889
249 changes: 124 additions & 125 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ members = [
"precompiles/vesting",
"precompiles/staking",
"precompiles/rewards",
# "tangle-subxt",
# "tangle-subxt", # TODO: regenerate for stable2503
"evm-tracer",
]
resolver = "2"
Expand Down Expand Up @@ -110,7 +110,7 @@ honggfuzz = { version = "0.5.55" }

tangle-testnet-runtime = { package = "tangle-testnet-runtime", path = "runtime/testnet" }
tangle-runtime = { package = "tangle-runtime", path = "runtime/mainnet" }
# tangle-subxt = { package = "tangle-subxt", path = "tangle-subxt" }
# tangle-subxt = { package = "tangle-subxt", path = "tangle-subxt" } # TODO: regenerate for stable2503

# Arkworks
ark-ec = { version = "^0.4.2", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion client/rpc/txpool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use ethereum_types::{H160, H256, U256};
use fc_rpc::{internal_err, public_key};
use jsonrpsee::core::RpcResult;
pub use rpc_core_txpool::{GetT, Summary, Transaction, TransactionMap, TxPoolResult, TxPoolServer};
use sc_transaction_pool::ChainApi;
use sc_transaction_pool_api::{InPoolTransaction, TransactionPool as _};
use serde::Serialize;
use sha3::{Digest, Keccak256};
Expand Down
8 changes: 4 additions & 4 deletions frost/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,10 @@ pub fn split<C: Ciphersuite, R: RngCore + CryptoRng>(
) -> Result<(BTreeMap<Identifier<C>, SecretShare<C>>, PublicKeyPackage<C>), Error<C>> {
validate_num_of_signers(min_signers, max_signers)?;

if let IdentifierList::Custom(identifiers) = &identifiers {
if identifiers.len() != max_signers as usize {
return Err(Error::IncorrectNumberOfIdentifiers);
}
if let IdentifierList::Custom(identifiers) = &identifiers &&
identifiers.len() != max_signers as usize
{
return Err(Error::IncorrectNumberOfIdentifiers);
}

let verifying_key = VerifyingKey::from(key);
Expand Down
4 changes: 2 additions & 2 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ futures-timer = { workspace = true }
# blueprint-keystore = { workspace = true, optional = true }

[dev-dependencies]
# tangle-subxt = { workspace = true }
# tangle-subxt = { workspace = true } # TODO: regenerate for stable2503
sp-tracing = { workspace = true }
alloy = { version = "0.9", features = ["full", "provider-debug-api"] }
alloy = { version = "0.7", features = ["full", "provider-debug-api"] }
anyhow = "1.0"

[features]
Expand Down
6 changes: 3 additions & 3 deletions node/src/manual_seal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block

let backend_clone = backend.clone();
Box::new(
move |spawner: Arc<dyn sc_core::traits::SpawnNamed>| -> Result<RpcModule<()>, sc_service::Error> {
move |spawner: Arc<dyn sp_core::traits::SpawnNamed>| -> Result<RpcModule<()>, sc_service::Error> {
let deny_unsafe = sc_rpc_api::DenyUnsafe::No;
let subscription_task_executor = sc_rpc::SubscriptionTaskExecutor(spawner);
let subscription_task_executor = spawner.clone();

let deps = crate::rpc::FullDeps {
client: client.clone(),
Expand Down Expand Up @@ -636,7 +636,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
.spawn_essential_handle()
.spawn_blocking("manual-seal", None, manual_seal);

log::info!("Manual Seal Ready");
log::info!("Manual Seal Ready");

#[cfg(feature = "blueprint-manager")]
{
Expand Down
2 changes: 2 additions & 0 deletions node/src/rpc/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use rpc_txpool::TxPoolServer;
use sp_consensus_babe::BabeApi;

#[derive(Clone)]
#[allow(dead_code)]
pub struct TracingConfig {
pub tracing_requesters: crate::rpc::tracing::RpcRequesters,
pub trace_filter_max_count: u32,
Expand Down Expand Up @@ -120,6 +121,7 @@ impl<C, P, CT: Clone, B: BlockT, CIDP: Clone> Clone for EthDeps<C, P, CT, B, CID
}

/// Instantiate Ethereum-compatible RPC extensions.
#[allow(dead_code, clippy::extra_unused_type_parameters)]
pub fn create_eth<B, C, BE, P, CT, CIDP, EC>(
mut io: RpcModule<()>,
deps: EthDeps<C, P, CT, B, CIDP>,
Expand Down
1 change: 1 addition & 0 deletions node/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ pub struct FullDeps<C, P, CT, SC, B, CIDP> {
pub backend: Arc<B>,
}

#[allow(dead_code)]
pub struct DefaultEthConfig<C, BE>(std::marker::PhantomData<(C, BE)>);

impl<C, BE> fc_rpc::EthConfig<Block, C> for DefaultEthConfig<C, BE>
Expand Down
1 change: 1 addition & 0 deletions node/src/rpc/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use substrate_prometheus_endpoint::Registry as PrometheusRegistry;
use tokio::sync::Semaphore;

#[derive(Clone)]
#[allow(dead_code)]
pub struct RpcRequesters {
pub debug: Option<DebugRequester>,
pub trace: Option<TraceFilterCacheRequester>,
Expand Down
12 changes: 6 additions & 6 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.
use crate::eth::{
BackendType, EthApi, FrontierBackend, FrontierBlockImport, FrontierPartialComponents,
RpcConfig, StorageOverride, StorageOverrideHandler, new_frontier_partial, spawn_frontier_tasks,
BackendType, FrontierBackend, FrontierBlockImport, FrontierPartialComponents, RpcConfig,
StorageOverride, StorageOverrideHandler, new_frontier_partial, spawn_frontier_tasks,
};
pub use crate::eth::{EthConfiguration, db_config_dir};
use futures::FutureExt;
Expand Down Expand Up @@ -242,7 +242,7 @@ pub struct RunFullParams {
/// Builds a new service for a full client.
pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as BlockT>::Hash>>(
RunFullParams {
mut config,
config,
eth_config,
rpc_config,
debug_output: _,
Expand Down Expand Up @@ -369,7 +369,7 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
metrics,
})?;

let role = config.role.clone();
let role = config.role;
let force_authoring = config.force_authoring;
let name = config.network.node_name.clone();
let enable_grandpa = !config.disable_grandpa;
Expand Down Expand Up @@ -500,9 +500,9 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block

let backend_clone = backend.clone();
Box::new(
move |spawner: Arc<dyn sc_core::traits::SpawnNamed>| -> Result<RpcModule<()>, sc_service::Error> {
move |spawner: Arc<dyn sp_core::traits::SpawnNamed>| -> Result<RpcModule<()>, sc_service::Error> {
let deny_unsafe = sc_rpc_api::DenyUnsafe::No;
let subscription_task_executor = sc_rpc::SubscriptionTaskExecutor(spawner);
let subscription_task_executor = spawner.clone();

let deps = crate::rpc::FullDeps {
client: client.clone(),
Expand Down
20 changes: 10 additions & 10 deletions node/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,16 @@ where
let config =
command.create_configuration(this, tokio_runtime.handle().clone()).unwrap();

// Handle logger initialization gracefully - it may already be initialized by previous
// tests
if let Err(e) = command.init(
&CliWrapper::support_url(),
&CliWrapper::impl_version(),
|_, _| {},
&config,
) {
warn!("Logger initialization failed (likely already initialized): {e:?}");
}
// Handle logger initialization gracefully - it may already be initialized by previous
// tests
if let Err(e) = command.init(
&CliWrapper::support_url(),
&CliWrapper::impl_version(),
|_| {},
&config,
) {
warn!("Logger initialization failed (likely already initialized): {e:?}");
}
sc_cli::Runner::<CliWrapper>::new(config, tokio_runtime, signals)
}
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use sp_runtime::{
traits::{DispatchInfoOf, TransactionExtension},
transaction_validity::{InvalidTransaction, TransactionValidityError, ValidTransaction},
transaction_validity::{TransactionValidityError, ValidTransaction},
};
use types::BalanceOf;

Expand Down
8 changes: 4 additions & 4 deletions pallets/multi-asset-delegation/src/functions/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ impl<T: Config> Pallet<T> {
info.used_gas.standard.unique_saturated_into(),
true,
);
if let Some(weight_info) = info.weight_info {
if let Some(proof_size_usage) = weight_info.proof_size_usage {
*gas_to_weight.proof_size_mut() = proof_size_usage;
}
if let Some(weight_info) = info.weight_info &&
let Some(proof_size_usage) = weight_info.proof_size_usage
{
*gas_to_weight.proof_size_mut() = proof_size_usage;
}
gas_to_weight
}
Expand Down
65 changes: 32 additions & 33 deletions pallets/rewards/src/functions/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,43 +345,42 @@ impl<T: Config> Pallet<T> {

// Add score with lock multipliers if any
// only if the admin has enabled boost multiplier for the vault
if reward.boost_multiplier.is_some() {
if let Some(locks) = deposit.amount_with_locks {
for lock in locks {
if lock.expiry_block > last_claim_block {
if lock.expiry_block > current_block {
// Calculate lock reward:
// amount * APY * lock_multiplier *
// (remaining_lock_time / total_lock_time)
let multiplier = BalanceOf::<T>::from(lock.lock_multiplier.value());
let lock_score = lock.amount.saturating_mul(multiplier);
log::debug!(target: LOG_TARGET, "user lock has not expired and still active, lock_multiplier: {:?}, lock_score: {:?}", lock.lock_multiplier, lock_score);

user_rewards_score_by_blocks.push((lock_score, blocks_to_be_paid));
} else {
// the lock has expired, so we only apply the lock multiplier during the
// unexpired period
let multiplier = BalanceOf::<T>::from(lock.lock_multiplier.value());
let lock_score = lock.amount.saturating_mul(multiplier);
let multiplier_applied_blocks =
lock.expiry_block.saturating_sub(last_claim_block);

log::debug!(target: LOG_TARGET, "user lock has partially expired, lock_multiplier: {:?}, lock_score: {:?}, multiplier_applied_blocks: {:?}, blocks_to_be_paid: {:?}",
if reward.boost_multiplier.is_some() &&
let Some(locks) = deposit.amount_with_locks
{
for lock in locks {
if lock.expiry_block > last_claim_block {
if lock.expiry_block > current_block {
// Calculate lock reward:
// amount * APY * lock_multiplier *
// (remaining_lock_time / total_lock_time)
let multiplier = BalanceOf::<T>::from(lock.lock_multiplier.value());
let lock_score = lock.amount.saturating_mul(multiplier);
log::debug!(target: LOG_TARGET, "user lock has not expired and still active, lock_multiplier: {:?}, lock_score: {:?}", lock.lock_multiplier, lock_score);

user_rewards_score_by_blocks.push((lock_score, blocks_to_be_paid));
} else {
// the lock has expired, so we only apply the lock multiplier during the
// unexpired period
let multiplier = BalanceOf::<T>::from(lock.lock_multiplier.value());
let lock_score = lock.amount.saturating_mul(multiplier);
let multiplier_applied_blocks =
lock.expiry_block.saturating_sub(last_claim_block);

log::debug!(target: LOG_TARGET, "user lock has partially expired, lock_multiplier: {:?}, lock_score: {:?}, multiplier_applied_blocks: {:?}, blocks_to_be_paid: {:?}",
lock.lock_multiplier, lock_score, multiplier_applied_blocks, blocks_to_be_paid);

user_rewards_score_by_blocks
.push((lock_score, multiplier_applied_blocks));
user_rewards_score_by_blocks.push((lock_score, multiplier_applied_blocks));

// for rest of the blocks, we do not apply the lock multiplier
user_rewards_score_by_blocks.push((
lock.amount,
blocks_to_be_paid.saturating_sub(multiplier_applied_blocks),
));
}
} else {
// if the lock has expired, we only consider the base score
user_rewards_score_by_blocks.push((lock.amount, blocks_to_be_paid));
// for rest of the blocks, we do not apply the lock multiplier
user_rewards_score_by_blocks.push((
lock.amount,
blocks_to_be_paid.saturating_sub(multiplier_applied_blocks),
));
}
} else {
// if the lock has expired, we only consider the base score
user_rewards_score_by_blocks.push((lock.amount, blocks_to_be_paid));
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions pallets/services/src/functions/evm_hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1920,10 +1920,10 @@ impl<T: Config> Pallet<T> {
info.used_gas.standard.unique_saturated_into(),
true,
);
if let Some(weight_info) = info.weight_info {
if let Some(proof_size_usage) = weight_info.proof_size_usage {
*gas_to_weight.proof_size_mut() = proof_size_usage;
}
if let Some(weight_info) = info.weight_info &&
let Some(proof_size_usage) = weight_info.proof_size_usage
{
*gas_to_weight.proof_size_mut() = proof_size_usage;
}
gas_to_weight
}
Expand Down
Loading
Loading