Trait clockwork_sdk::queue_program::accounts::FeeAccount   
source · [−]pub trait FeeAccount {
    fn pubkey(&self) -> Pubkey;
    fn init(&mut self, worker: Pubkey) -> Result<(), Error>;
    fn claim_balance(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>
    ) -> Result<(), Error>;
    fn claim_withholding(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>
    ) -> Result<(), Error>;
    fn escrow_balance(
        &mut self,
        amount: u64,
        queue: &mut Account<'_, Queue>
    ) -> Result<(), Error>;
    fn escrow_withholding(
        &mut self,
        amount: u64,
        queue: &mut Account<'_, Queue>
    ) -> Result<(), Error>;
}Expand description
Trait for reading and writing to a fee account.
Required Methods
sourcefn init(&mut self, worker: Pubkey) -> Result<(), Error>
 
fn init(&mut self, worker: Pubkey) -> Result<(), Error>
Initialize the account to hold fee object.
sourcefn claim_balance(
    &mut self,
    amount: u64,
    pay_to: &mut SystemAccount<'_>
) -> Result<(), Error>
 
fn claim_balance(
    &mut self,
    amount: u64,
    pay_to: &mut SystemAccount<'_>
) -> Result<(), Error>
Claim the balance.
sourcefn claim_withholding(
    &mut self,
    amount: u64,
    pay_to: &mut SystemAccount<'_>
) -> Result<(), Error>
 
fn claim_withholding(
    &mut self,
    amount: u64,
    pay_to: &mut SystemAccount<'_>
) -> Result<(), Error>
Claim the withholding.