Struct chain_impl_mockchain::testing::data::stake_pool::StakePool
source · pub struct StakePool {
alias: String,
id: PoolId,
vrf: KeyPair<RistrettoGroup2HashDh>,
kes: KeyPair<SumEd25519_12>,
pool_info: PoolRegistration,
reward_account: Option<AddressData>,
}
Fields§
§alias: String
§id: PoolId
§vrf: KeyPair<RistrettoGroup2HashDh>
§kes: KeyPair<SumEd25519_12>
§pool_info: PoolRegistration
§reward_account: Option<AddressData>
Implementations§
source§impl StakePool
impl StakePool
pub fn new( alias: &str, id: PoolId, vrf: KeyPair<RistrettoGroup2HashDh>, kes: KeyPair<SumEd25519_12>, pool_info: PoolRegistration, reward_account: Option<AddressData> ) -> Self
pub fn id(&self) -> PoolId
pub fn vrf(&self) -> KeyPair<RistrettoGroup2HashDh>
pub fn kes(&self) -> KeyPair<SumEd25519_12>
pub fn info_mut(&mut self) -> &mut PoolRegistration
pub fn info(&self) -> PoolRegistration
pub fn alias(&self) -> String
pub fn reward_account(&self) -> Option<&AddressData>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StakePool
impl Send for StakePool
impl Sync for StakePool
impl Unpin for StakePool
impl UnwindSafe for StakePool
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more