1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use alloc::{collections::BTreeMap, vec::Vec};
use crate::{
auction::{Bid, SeigniorageRecipient, UnbondingPurse},
PublicKey, U512,
};
pub type DelegationRate = u64;
pub type Bids = BTreeMap<PublicKey, Bid>;
pub type ValidatorWeights = BTreeMap<PublicKey, U512>;
pub type EraId = u64;
pub type EraValidators = BTreeMap<EraId, ValidatorWeights>;
pub type SeigniorageRecipients = BTreeMap<PublicKey, SeigniorageRecipient>;
pub type SeigniorageRecipientsSnapshot = BTreeMap<EraId, SeigniorageRecipients>;
pub type UnbondingPurses = BTreeMap<PublicKey, Vec<UnbondingPurse>>;