pub struct Community {Show 14 fields
pub authority: Pubkey,
pub cases: u64,
pub confirmation_threshold: u8,
pub stake_unlock_epochs: u64,
pub stake_mint: Pubkey,
pub token_signer: Pubkey,
pub token_signer_bump: u8,
pub token_account: Pubkey,
pub treasury_token_account: Pubkey,
pub validator_stake: u64,
pub tracer_stake: u64,
pub full_stake: u64,
pub authority_stake: u64,
pub appraiser_stake: u64,
}Fields§
Community authority wallet
cases: u64Community case counter
confirmation_threshold: u8Number of confirmations needed for address to be considered confirmed
stake_unlock_epochs: u64Number of epochs reporter must wait to retrieve their stake
stake_mint: PubkeyStake token mint account
token_signer: PubkeyToken signer PDA
token_signer_bump: u8Seed bump for token signer PDA
token_account: PubkeyStake holding token account
treasury_token_account: PubkeyToken account for reporter fee
validator_stake: u64Amount of stake required from a reporter of validator type
tracer_stake: u64Amount of stake required from a reporter of tracer type
full_stake: u64Amount of stake required from a reporter of full type
Amount of stake required from a reporter of authority type
appraiser_stake: u64Amount of stake required from a reporter of appraiser type
Trait Implementations§
Source§impl AccountDeserialize for Community
impl AccountDeserialize for Community
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl AccountSerialize for Community
impl AccountSerialize for Community
Source§impl BorshDeserialize for Community
impl BorshDeserialize for Community
Source§impl BorshSerialize for Community
impl BorshSerialize for Community
Source§impl Discriminator for Community
impl Discriminator for Community
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for Community
impl RefUnwindSafe for Community
impl Send for Community
impl Sync for Community
impl Unpin for Community
impl UnwindSafe for Community
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more