Skip to content

Commit

Permalink
remove deprecated pallet-dapp-staking-migration (#1335)
Browse files Browse the repository at this point in the history
ipapandinas authored Aug 23, 2024
1 parent 40c4b6c commit 27b7f6f
Showing 8 changed files with 1 addition and 718 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -282,7 +282,6 @@ orml-oracle = { git = "https://github.com/AstarNetwork/open-runtime-module-libra
# (wasm)
pallet-collator-selection = { path = "./pallets/collator-selection", default-features = false }
pallet-dapp-staking-v3 = { path = "./pallets/dapp-staking-v3", default-features = false }
pallet-dapp-staking-migration = { path = "./pallets/dapp-staking-migration", default-features = false }
pallet-xc-asset-config = { path = "./pallets/xc-asset-config", default-features = false }
pallet-ethereum-checked = { path = "./pallets/ethereum-checked", default-features = false }
pallet-inflation = { path = "./pallets/inflation", default-features = false }
62 changes: 0 additions & 62 deletions pallets/dapp-staking-migration/Cargo.toml

This file was deleted.

72 changes: 0 additions & 72 deletions pallets/dapp-staking-migration/src/benchmarking.rs

This file was deleted.

445 changes: 0 additions & 445 deletions pallets/dapp-staking-migration/src/lib.rs

This file was deleted.

105 changes: 0 additions & 105 deletions pallets/dapp-staking-migration/src/weights.rs

This file was deleted.

1 change: 1 addition & 0 deletions pallets/dapp-staking-v3/src/migration.rs
Original file line number Diff line number Diff line change
@@ -270,6 +270,7 @@ mod v7 {
},
}

#[cfg(feature = "try-runtime")]
impl TierThreshold {
/// Return threshold for the tier.
pub fn threshold(&self) -> Balance {
13 changes: 0 additions & 13 deletions pallets/dapp-staking-v3/src/types.rs
Original file line number Diff line number Diff line change
@@ -998,19 +998,6 @@ impl SingularStakingInfo {
}
}

/// TODO: remove this after migration to v6 has been done.
pub fn new_migration(
previous_staked: StakeAmount,
staked: StakeAmount,
loyal_staker: bool,
) -> Self {
Self {
previous_staked,
staked,
loyal_staker,
}
}

/// Stake the specified amount on the contract, for the specified subperiod.
pub fn stake(&mut self, amount: Balance, current_era: EraNumber, subperiod: Subperiod) {
// Keep the previous stake amount for future reference

0 comments on commit 27b7f6f

Please sign in to comment.