FeeAccount

Trait FeeAccount 

Source
pub trait FeeAccount {
    // Required methods
    fn new(&mut self, authority: Pubkey) -> Result<()>;
    fn claim_admin_balance(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>,
    ) -> Result<()>;
    fn claim_worker_balance(
        &mut self,
        amount: u64,
        pay_to: &mut SystemAccount<'_>,
    ) -> Result<()>;
    fn pay_to_admin(&mut self, request: &mut Account<'_, Request>) -> Result<()>;
    fn pay_to_worker(
        &mut self,
        request: &mut Account<'_, Request>,
    ) -> Result<()>;
}
Expand description

FeeAccount

Required Methods§

Source

fn new(&mut self, authority: Pubkey) -> Result<()>

Source

fn claim_admin_balance( &mut self, amount: u64, pay_to: &mut SystemAccount<'_>, ) -> Result<()>

Source

fn claim_worker_balance( &mut self, amount: u64, pay_to: &mut SystemAccount<'_>, ) -> Result<()>

Source

fn pay_to_admin(&mut self, request: &mut Account<'_, Request>) -> Result<()>

Source

fn pay_to_worker(&mut self, request: &mut Account<'_, Request>) -> Result<()>

Implementations on Foreign Types§

Source§

impl FeeAccount for Account<'_, Fee>

Source§

fn new(&mut self, authority: Pubkey) -> Result<()>

Source§

fn claim_admin_balance( &mut self, amount: u64, pay_to: &mut SystemAccount<'_>, ) -> Result<()>

Source§

fn claim_worker_balance( &mut self, amount: u64, pay_to: &mut SystemAccount<'_>, ) -> Result<()>

Source§

fn pay_to_admin(&mut self, request: &mut Account<'_, Request>) -> Result<()>

Source§

fn pay_to_worker(&mut self, request: &mut Account<'_, Request>) -> Result<()>

Implementors§