Skip to content

Commit

Permalink
stake-contract: reorganize imports
Browse files Browse the repository at this point in the history
See also #2947
  • Loading branch information
herr-seppia committed Dec 20, 2024
1 parent 2f23a83 commit d8089a5
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions contracts/stake/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit d8089a5

Please sign in to comment.