Struct mainnet_lib::network::wallet_state::MainnetWalletState
source · pub struct MainnetWalletState {
pub rep: Option<Identifier>,
pub registration_tx: Option<Transaction>,
pub stake: u64,
pub stake_address: Address,
}
Expand description
Represents wallet candidate for registration. Defines wallet role (delegator/direct-voter/representative)
Fields§
§rep: Option<Identifier>
Possible identifier which define representative id
registration_tx: Option<Transaction>
Possible valid registration transaction
stake: u64
Ada amount account hold on snapshot time
stake_address: Address
Stake address
Implementations§
source§impl MainnetWalletState
impl MainnetWalletState
sourcepub fn rep(&self) -> &Option<Identifier>
pub fn rep(&self) -> &Option<Identifier>
get representative information
sourcepub fn registration(&self) -> &Option<Transaction>
pub fn registration(&self) -> &Option<Transaction>
get registration metadata
sourcepub fn stake_address(&self) -> &Address
pub fn stake_address(&self) -> &Address
get stake address for wallet
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MainnetWalletState
impl Send for MainnetWalletState
impl Sync for MainnetWalletState
impl Unpin for MainnetWalletState
impl UnwindSafe for MainnetWalletState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request