NodeAccount

Trait NodeAccount 

Source
pub trait NodeAccount {
    // Required methods
    fn new(
        &mut self,
        authority: &mut Signer<'_>,
        id: u64,
        stake: &mut Account<'_, TokenAccount>,
        worker: &Signer<'_>,
    ) -> Result<()>;
    fn update(&mut self, settings: NodeSettings) -> Result<()>;
}
Expand description

NodeAccount

Required Methods§

Source

fn new( &mut self, authority: &mut Signer<'_>, id: u64, stake: &mut Account<'_, TokenAccount>, worker: &Signer<'_>, ) -> Result<()>

Source

fn update(&mut self, settings: NodeSettings) -> Result<()>

Implementations on Foreign Types§

Source§

impl NodeAccount for Account<'_, Node>

Source§

fn new( &mut self, authority: &mut Signer<'_>, id: u64, stake: &mut Account<'_, TokenAccount>, worker: &Signer<'_>, ) -> Result<()>

Source§

fn update(&mut self, settings: NodeSettings) -> Result<()>

Implementors§