Enum clmm_cli::app::PairCommands
source · [−]pub enum PairCommands {
Show 26 variants
AcceptProtocolFeeAuthority {
clmm_config: Pubkey,
},
CollectPartnerFee {
partner: Pubkey,
clmmpool: Pubkey,
},
CollectProtocolFee {
clmmpool: Pubkey,
},
CreatePoolTemplate {
output_file: String,
},
CreatePool {
entry_file: String,
},
Info {
pair_key: Pubkey,
},
List {},
ConfigInitTemplate {
output_file: String,
},
ConfigInit {
entry_file: String,
},
ConfigInfo {
config_key: Pubkey,
},
FeeTierCreateTemplate {
output_file: String,
},
FeeTierCreate {
entry_file: String,
},
FeeTierInfo {
fee_tier: Pubkey,
},
PartnerCreateTemplate {
output_file: String,
},
PartnerCreate {
entry_file: String,
},
PartnerInfo {
partner: Pubkey,
},
TickArrayCreateTemplate {
output_file: String,
},
TickArrayCreate {
entry_file: String,
},
TransferProtocolFeeAuthority {
clmm_config: Pubkey,
new_authority: Pubkey,
},
ConfigProtocolFeeRateUpdate {
clmm_config: Pubkey,
new_protocol_fee_rate: u16,
},
FeeRateUpdate {
fee_tier: Pubkey,
clmmpool: Pubkey,
},
PartnerUpdate {
partner: Pubkey,
new_fee_rate: Option<u16>,
new_claim_authority: Option<Pubkey>,
},
ProtocolFeeRateUpdate {
clmmpool: Pubkey,
},
Swap {
clmmpool: Pubkey,
amount: f64,
a_to_b: bool,
by_amount_in: bool,
price_limit_tick: Option<i32>,
},
InitRewarder {
clmmpool: Pubkey,
rewarder_authority_file: String,
rewarder_token_mint: Pubkey,
rewarder_index: u8,
mint_wrapper: Pubkey,
minter: Pubkey,
},
UpdateRewarderEmission {
clmmpool: Pubkey,
rewarder_authority_file: String,
rewarder_index: u8,
emissions_per_day: f64,
},
}Variants
AcceptProtocolFeeAuthority
Fields
clmm_config: PubkeyThe clmm_config is the config of new_authority to accept
recalled by the new ClmmConfig authority to accept the authority
CollectPartnerFee
collect the partner fee from ata controlled by partner pda
CollectProtocolFee
Fields
clmmpool: PubkeyThe clmmpool key
protocol_fee_claim_authority to collect the fee earn by the clmmpool
CreatePoolTemplate
Fields
output_file: StringThe config file output path (default: ./clmmpool-template.yaml)
create a yaml template for the create-pool
CreatePool
Fields
entry_file: StringThe config file entry path (default: ./clmmpool-template.yaml)
create a clmm_pool
Info
Fields
pair_key: Pubkeypool key
get clmm_pool info
List
Fields
get clmm_pool list
ConfigInitTemplate
Fields
output_file: StringThe config file output path (default: ./clmm-config-template.yaml)
create a yaml template for the init-config
ConfigInit
Fields
entry_file: StringThe config file entry path (default: ./clmm-config-template.yaml)
init clmm_config
ConfigInfo
Fields
config_key: PubkeyThe config key
get config_info
FeeTierCreateTemplate
Fields
output_file: StringThe config file output path (default: ./fee-tier-template.yaml)
create a yaml template for the create-fee-tier
FeeTierCreate
Fields
entry_file: StringThe config file entry path (default: ./fee-tier-template.yaml)
create fee tier
FeeTierInfo
Fields
fee_tier: PubkeyThe fee_tier key
get fee_tier_info
PartnerCreateTemplate
Fields
output_file: StringThe config file output path (default: ./partner-template.yaml)
create a yaml template for the create-partner
PartnerCreate
Fields
entry_file: StringThe config file entry path (default: ./partner-template.yaml)
create partner
PartnerInfo
Fields
partner: PubkeyThe partner key
get partner_info
TickArrayCreateTemplate
Fields
output_file: StringThe config file output path (default: ./tick-array-template.yaml)
create a yaml template for the create-tick-array
TickArrayCreate
Fields
entry_file: StringThe config file entry path (default: ./tick-array-template.yaml)
create tick array
TransferProtocolFeeAuthority
Fields
clmm_config: PubkeyThe clmm_config to transfer to new_authority
The new_authority will be the new authority of clmm_config
protocol_fee_authority of the ClmmConfig to another new authority
ConfigProtocolFeeRateUpdate
Fields
clmm_config: Pubkeyprotocol_fee_authority is the authority to update protocol_fee_rate
new_protocol_fee_rate: u16The new_protocol_fee_rate to update protocol config
update the protocol_fee_rate on ClmmConfig
FeeRateUpdate
Fields
fee_tier: PubkeyThe fee_rate ot this fee_tier to update clmmpool
clmmpool: PubkeyThe clmmpool to update the fee_rate
update the fee_rate on the clmmpool
PartnerUpdate
Fields
partner: Pubkeypartner is the existed partner to update
The new claim authority to update partner
update partner fee_rate or claim authority
ProtocolFeeRateUpdate
Fields
clmmpool: PubkeyThe clmmpool to update the fee_rate
update the protocol_fee_rate on ClmmPool
Swap
Fields
clmmpool: PubkeyThe clmmpool
amount: f64swap amount
a_to_b: boolswap direction, true: a->b, false: b->a
by_amount_in: boolswap by amount in, ture: in, false: out
swap
InitRewarder
Fields
clmmpool: PubkeyThe pool key
The rewarder authority private file(clmm_config.protocol_authority)
rewarder_token_mint: PubkeyThe rewarder token mint
rewarder_index: u8The rewarder index
mint_wrapper: PubkeyThe mint wrapper
minter: PubkeyThe minter
initialize rewarder
UpdateRewarderEmission
Fields
clmmpool: PubkeyThe pool key
The rewarder authority private file(clmm_config.protocol_authority)
rewarder_index: u8The rewarder index
emissions_per_day: f64The emissions per day
update rewarder emission
Trait Implementations
sourceimpl FromArgMatches for PairCommands
impl FromArgMatches for PairCommands
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn 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>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn 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>
Assign values from ArgMatches to self.
sourcefn 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>
Assign values from ArgMatches to self.
sourceimpl Subcommand for PairCommands
impl Subcommand for PairCommands
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for PairCommands
impl Send for PairCommands
impl Sync for PairCommands
impl Unpin for PairCommands
impl UnwindSafe for PairCommands
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more