pub struct RestakingCliHandler { /* private fields */ }Implementations§
Source§impl RestakingCliHandler
impl RestakingCliHandler
pub const fn new( cli_config: CliConfig, restaking_program_id: Pubkey, vault_program_id: Pubkey, print_tx: bool, print_json: bool, print_json_with_reserves: bool, ) -> Self
pub async fn handle(&self, action: RestakingCommands) -> Result<()>
pub async fn operator_set_fee( &self, operator: String, operator_fee_bps: u16, ) -> Result<()>
pub async fn operator_set_secondary_admin( &self, operator: String, new_admin: String, set_ncn_admin: bool, set_vault_admin: bool, set_voter_admin: bool, set_delegate_admin: bool, set_metadata_admin: bool, ) -> Result<()>
pub async fn operator_delegate_token_account( &self, operator: String, delegate: String, token_mint: String, should_create_token_account: bool, ) -> Result<()>
pub async fn ncn_delegate_token_account( &self, ncn: String, delegate: String, token_mint: String, should_create_token_account: bool, ) -> Result<()>
pub async fn initialize_ncn_vault_ticket( &self, ncn: String, vault: String, ) -> Result<()>
pub async fn warmup_ncn_vault_ticket( &self, ncn: String, vault: String, ) -> Result<()>
pub async fn cooldown_ncn_vault_ticket( &self, ncn: String, vault: String, ) -> Result<()>
pub async fn initialize_ncn_operator_state( &self, ncn: String, operator: String, ) -> Result<()>
pub async fn ncn_warmup_operator( &self, ncn: String, operator: String, ) -> Result<()>
pub async fn ncn_cooldown_operator( &self, ncn: String, operator: String, ) -> Result<()>
pub async fn operator_warmup_ncn( &self, operator: String, ncn: String, ) -> Result<()>
pub async fn operator_cooldown_ncn( &self, operator: String, ncn: String, ) -> Result<()>
pub async fn initialize_ncn( &self, path_to_base_keypair: Option<String>, ) -> Result<()>
pub async fn initialize_operator(&self, operator_fee_bps: u16) -> Result<()>
pub async fn initialize_operator_vault_ticket( &self, operator: String, vault: String, ) -> Result<()>
pub async fn warmup_operator_vault_ticket( &self, operator: String, vault: String, ) -> Result<()>
pub async fn cooldown_operator_vault_ticket( &self, operator: String, vault: String, ) -> Result<()>
pub async fn get_config(&self) -> Result<()>
pub async fn get_ncn(&self, pubkey: String) -> Result<()>
pub async fn list_ncn(&self) -> Result<()>
Sourcepub async fn list_ncn_operator_state(
&self,
ncn: Option<&Pubkey>,
operator: Option<&Pubkey>,
) -> Result<()>
pub async fn list_ncn_operator_state( &self, ncn: Option<&Pubkey>, operator: Option<&Pubkey>, ) -> Result<()>
Lists NCN operator state accounts filtered by either NCN or Operator public key.
Sourcepub async fn list_ncn_vault_ticket(&self, ncn: Pubkey) -> Result<()>
pub async fn list_ncn_vault_ticket(&self, ncn: Pubkey) -> Result<()>
Lists NCN operator state accounts filtered by NCN public key.
pub async fn get_operator(&self, pubkey: String) -> Result<()>
pub async fn list_operator(&self) -> Result<()>
pub async fn list_operator_vault_ticket(&self, operator: &Pubkey) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for RestakingCliHandler
impl !Send for RestakingCliHandler
impl !Sync for RestakingCliHandler
impl !UnwindSafe for RestakingCliHandler
impl Freeze for RestakingCliHandler
impl Unpin for RestakingCliHandler
impl UnsafeUnpin for RestakingCliHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more