pub trait FeeAccount {
    fn pubkey(&self) -> Pubkey;
    fn init(&mut self, worker: Pubkey) -> Result<()>;
    fn claim_balance(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>
    ) -> Result<()>; fn claim_withholding(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>
    ) -> Result<()>; fn escrow_balance(
        &mut self,
        amount: u64,
        queue: &mut Account<'_, Queue>
    ) -> Result<()>; fn escrow_withholding(
        &mut self,
        amount: u64,
        queue: &mut Account<'_, Queue>
    ) -> Result<()>; }
Expand description

Trait for reading and writing to a fee account.

Required Methods

Get the pubkey of the fee account.

Initialize the account to hold fee object.

Claim the balance.

Claim the withholding.

Debits lamports from the queue and increments the claimable balance.

Debits lamports from the queue and increments the withholding.

Implementations on Foreign Types

Implementors