Trait clockwork_network::state::NodeAccount
source · [−]pub trait NodeAccount {
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
sourcefn new(
fn new(
&mut self,
authority: &mut Signer<'_>,
id: u64,
stake: &mut Account<'_, TokenAccount>,
worker: &Signer<'_>
) -> Result<()>
source