From d8089a5d5b6d93f31acb83a9e9c8ad2fc8deb8e1 Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Fri, 20 Dec 2024 09:18:09 +0100 Subject: [PATCH] stake-contract: reorganize imports See also #2947 --- contracts/stake/src/state.rs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/contracts/stake/src/state.rs b/contracts/stake/src/state.rs index fd5485be6..8d978c99e 100644 --- a/contracts/stake/src/state.rs +++ b/contracts/stake/src/state.rs @@ -6,23 +6,19 @@ use alloc::collections::BTreeMap; use alloc::vec::Vec; - use core::cmp::min; use dusk_bytes::Serializable; - -use dusk_core::{ - signatures::bls::PublicKey as BlsPublicKey, - stake::{ - next_epoch, Reward, SlashEvent, Stake, StakeAmount, StakeConfig, - StakeData, StakeEvent, StakeFundOwner, StakeKeys, Withdraw, - WithdrawToContract, EPOCH, STAKE_CONTRACT, - }, - transfer::{ContractToContract, ReceiveFromContract, TRANSFER_CONTRACT}, - ContractId, +use dusk_core::signatures::bls::PublicKey as BlsPublicKey; +use dusk_core::stake::{ + next_epoch, Reward, SlashEvent, Stake, StakeAmount, StakeConfig, StakeData, + StakeEvent, StakeFundOwner, StakeKeys, Withdraw, WithdrawToContract, EPOCH, + STAKE_CONTRACT, }; - -use crate::*; +use dusk_core::transfer::{ + ContractToContract, ReceiveFromContract, TRANSFER_CONTRACT, +}; +use dusk_core::ContractId; /// Contract keeping track of each public key's stake. ///