pub enum VaultActions {
Show 30 variants
Initialize {
token_mint: String,
deposit_fee_bps: u16,
withdrawal_fee_bps: u16,
reward_fee_bps: u16,
decimals: u8,
initialize_token_amount: u64,
vrt_mint_address_file_path: Option<PathBuf>,
},
CreateTokenMetadata {
vault: String,
name: String,
symbol: String,
uri: String,
},
UpdateTokenMetadata {
vault: String,
name: String,
symbol: String,
uri: String,
},
InitializeVaultUpdateStateTracker {
vault: String,
},
CrankVaultUpdateStateTracker {
vault: String,
operator: String,
},
CloseVaultUpdateStateTracker {
vault: String,
ncn_epoch: Option<u64>,
},
MintVRT {
vault: String,
amount_in: u64,
min_amount_out: u64,
},
InitializeOperatorDelegation {
vault: String,
operator: String,
},
DelegateToOperator {
vault: String,
operator: String,
amount: u64,
},
CooldownOperatorDelegation {
vault: String,
operator: String,
amount: u64,
},
InitializeVaultNcnTicket {
vault: String,
ncn: String,
},
WarmupVaultNcnTicket {
vault: String,
ncn: String,
},
CooldownVaultNcnTicket {
vault: String,
ncn: String,
},
EnqueueWithdrawal {
vault: String,
amount: u64,
},
ChangeWithdrawalTicketOwner {
vault: Pubkey,
old_ticket_owner_keypair: String,
new_ticket_owner: Pubkey,
},
BurnWithdrawalTicket {
vault: String,
},
GetVaultUpdateStateTracker {
vault: String,
},
GetOperatorDelegations {
vault: String,
},
GetOperatorDelegation {
vault: String,
operator: String,
},
GetWithdrawalTicket {
vault: String,
staker: Option<String>,
},
Get {
pubkey: String,
},
List,
SetAdmin {
vault: Pubkey,
old_admin_keypair: String,
new_admin_keypair: String,
},
SetCapacity {
vault: String,
amount: u64,
},
SetFees {
vault: Pubkey,
deposit_fee_bps: Option<u16>,
withdrawal_fee_bps: Option<u16>,
reward_fee_bps: Option<u16>,
},
SetIsPaused {
vault: Pubkey,
set_pause: bool,
},
SetSecondaryAdmin {
vault: Pubkey,
new_admin: Pubkey,
set_delegation_admin: bool,
set_operator_admin: bool,
set_ncn_admin: bool,
set_slasher_admin: bool,
set_capacity_admin: bool,
set_fee_wallet: bool,
set_mint_burn_admin: bool,
set_delegate_asset_admin: bool,
set_fee_admin: bool,
set_metadata_admin: bool,
},
UpdateVaultBalance {
vault: Pubkey,
},
DelegateTokenAccount {
vault: String,
delegate: String,
token_mint: String,
token_account: String,
},
DelegatedTokenTransfer {
token_account: String,
recipient_pubkey: String,
amount: u64,
},
}Expand description
Vault commands
Variants§
Initialize
Creates a new vault
Fields
CreateTokenMetadata
Creates token metadata for the vault’s LRT token
Fields
UpdateTokenMetadata
Fields
InitializeVaultUpdateStateTracker
Starts the vault update cycle
CrankVaultUpdateStateTracker
Cranks the vault update state tracker, needs to be run per operator
CloseVaultUpdateStateTracker
Ends the vault update cycle
MintVRT
Mints VRT tokens
Fields
InitializeOperatorDelegation
Sets up the delegations for an operator
DelegateToOperator
Delegates tokens to an operator
CooldownOperatorDelegation
Cooldown delegation for an operator
InitializeVaultNcnTicket
Initialize Vault NCN Ticket
WarmupVaultNcnTicket
Warmup Vault NCN Ticket
CooldownVaultNcnTicket
Cooldown Vault NCN Ticket
EnqueueWithdrawal
Starts the withdrawal process
ChangeWithdrawalTicketOwner
Change withdrawal ticket owner
Fields
BurnWithdrawalTicket
Burns the withdrawal ticket, ending the withdrawal process
GetVaultUpdateStateTracker
Gets the update state tracker for a vault
GetOperatorDelegations
Gets the operator delegations for a vault
GetOperatorDelegation
Gets the operator delegation for a vault
GetWithdrawalTicket
Get
Gets a vault
List
List all vaults
SetAdmin
Set Admin
Fields
SetCapacity
Sets the deposit capacity in the vault
SetFees
Sets the fees in the vault
Fields
SetIsPaused
Sets the vault’s pause state
SetSecondaryAdmin
Set Secondary Admin
Fields
UpdateVaultBalance
Update Vault Balance
DelegateTokenAccount
Delegate a token account
Fields
DelegatedTokenTransfer
Transfer a token account
Trait Implementations§
Source§impl FromArgMatches for VaultActions
impl FromArgMatches for VaultActions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for VaultActions
impl Subcommand for VaultActions
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for VaultActions
impl RefUnwindSafe for VaultActions
impl Send for VaultActions
impl Sync for VaultActions
impl Unpin for VaultActions
impl UnwindSafe for VaultActions
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
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>
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>
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