pub trait RegistryAccount {
// Required methods
fn new(&mut self) -> Result<()>;
fn new_node(
&mut self,
delegate: &Signer<'_>,
owner: &mut Signer<'_>,
node: &mut Account<'_, Node>,
stake: &mut Account<'_, TokenAccount>,
) -> Result<()>;
fn new_snapshot(
&mut self,
snapshot: &mut Account<'_, Snapshot>,
) -> Result<()>;
fn rotate_snapshot(
&mut self,
clock: &Sysvar<'_, Clock>,
current_snapshot: Option<&mut Account<'_, Snapshot>>,
next_snapshot: &mut Account<'_, Snapshot>,
) -> Result<()>;
fn lock(&mut self) -> Result<()>;
fn unlock(&mut self) -> Result<()>;
}Expand description
RegistryAccount