Skip to content
Open
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
fix: derive Default for LockMultiplier to satisfy clippy
Replaces manual Default implementation with derived version using
#[default] attribute on the OneMonth variant. This satisfies the
clippy::derivable_impls lint.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
  • Loading branch information
drewstone and claude committed Nov 11, 2025
commit b3fe503f505afec9dcea4caf018a5d24aa2872fe
18 changes: 11 additions & 7 deletions primitives/src/types/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,20 @@ impl<Balance: Default, BlockNumber: Default, AssetId: AssetIdT, MaxServiceReward

/// Lock multiplier for rewards, representing months of lock period
#[derive(
Clone, Copy, Encode, Decode, RuntimeDebug, TypeInfo, PartialEq, Eq, codec::DecodeWithMemTracking,
Default,
Clone,
Copy,
Encode,
Decode,
RuntimeDebug,
TypeInfo,
PartialEq,
Eq,
codec::DecodeWithMemTracking,
)]
pub enum LockMultiplier {
/// One month lock period (1x multiplier)
#[default]
OneMonth = 1,
/// Two months lock period (2x multiplier)
TwoMonths = 2,
Expand All @@ -140,12 +150,6 @@ pub enum LockMultiplier {
SixMonths = 6,
}

impl Default for LockMultiplier {
fn default() -> Self {
Self::OneMonth
}
}

impl LockMultiplier {
/// Get the multiplier value
pub fn value(&self) -> u32 {
Expand Down
Loading