pub struct DistributeEpochReward {Show 16 fields
pub authority: Address,
pub satrush_config: Address,
pub epoch_vault: Address,
pub epoch_vault_iteration: Address,
pub miner: Address,
pub board: Address,
pub sats_vault: Address,
pub usd_mint: Address,
pub btc_mint: Address,
pub epoch_vault_usd_ata: Address,
pub epoch_vault_btc_ata: Address,
pub board_usd_ata: Address,
pub sats_vault_btc_ata: Address,
pub token_program: Address,
pub event_authority: Address,
pub program: Address,
}Expand description
Accounts.
Fields§
§satrush_config: Address§epoch_vault: Address§epoch_vault_iteration: Address§miner: AddressThe winner’s miner profile. The handler checks its authority against
the winner recorded at rank; the profile necessarily exists because
epoch tickets are bought with hashrate held on it.
board: AddressPDA that owns board_usd_ata — the pool claim_usd later pays from.
sats_vault: AddressThe Sats Vault the winner’s BTC is deposited into for shares.
usd_mint: Addressdecimals byte are read. Unchecked for try_accounts stack headroom.
btc_mint: Addressdecimals byte are read. Unchecked for try_accounts stack headroom.
epoch_vault_usd_ata: Addressprogram validates mint and ownership on the transfer CPI. Unchecked for
try_accounts stack headroom.
epoch_vault_btc_ata: Addressprogram validates mint and ownership on the transfer CPI. Unchecked for
try_accounts stack headroom.
board_usd_ata: AddressThe board’s USD pool — the destination claim_usd later pays from.
program validates mint and ownership on the transfer CPI. Unchecked for
try_accounts stack headroom.
sats_vault_btc_ata: AddressThe vault’s BTC reserves (created by create_sats_vault).
program validates mint and ownership on the transfer CPI. Unchecked for
try_accounts stack headroom.
token_program: Address§program: AddressImplementations§
Source§impl DistributeEpochReward
impl DistributeEpochReward
pub fn instruction( &self, args: DistributeEpochRewardInstructionArgs, ) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: DistributeEpochRewardInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DistributeEpochReward
impl RefUnwindSafe for DistributeEpochReward
impl Send for DistributeEpochReward
impl Sync for DistributeEpochReward
impl Unpin for DistributeEpochReward
impl UnsafeUnpin for DistributeEpochReward
impl UnwindSafe for DistributeEpochReward
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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