Enum clmm_common::command::CliCommand
source · [−]pub enum CliCommand {
Show 67 variants
PairAcceptProtocolFeeAuthority {
clmm_config: Pubkey,
},
PairCollectFee {
mint: Pubkey,
},
PairCollectPartnerFee {
partner: Pubkey,
clmmpool: Pubkey,
},
PairCollectProtocolFee {
clmmpool: Pubkey,
},
PairCreatePoolTemplate {
output_file: String,
},
PairCreatePool {
entry_file: String,
},
PairInfo {
pair_key: Pubkey,
},
PairList {},
PairTicks,
PairConfigInitTemplate {
output_file: String,
},
PairConfigInit {
entry_file: String,
},
PairConfigInfo {
config_key: Pubkey,
},
PairFeeTierCreateTemplate {
output_file: String,
},
PairFeeTierCreate {
entry_file: String,
},
PairFeeTierInfo {
fee_tier: Pubkey,
},
PairPartnerCreateTemplate {
output_file: String,
},
PairPartnerCreate {
entry_file: String,
},
PairPartnerInfo {
partner: Pubkey,
},
PairTickArrayCreateTemplate {
output_file: String,
},
PairTickArrayCreate {
entry_file: String,
},
PairTransferProtocolFeeAuthority {
clmm_config: Pubkey,
new_authority: Pubkey,
},
PairConfigProtocolFeeRateUpdate {
clmm_config: Pubkey,
new_protocol_fee_rate: u16,
},
PairFeeRateUpdate {
fee_tier: Pubkey,
clmmpool: Pubkey,
},
PairPartnerUpdate {
partner: Pubkey,
new_fee_rate: Option<u16>,
new_claim_authority: Option<Pubkey>,
},
PairProtocolFeeRateUpdate {
clmmpool: Pubkey,
},
PairSwap {
clmmpool: Pubkey,
a_to_b: bool,
by_amount_in: bool,
price_limit_tick: i32,
amount: f64,
slid: f64,
},
PairInitializeRewarder {
clmmpool: Pubkey,
rewarder_authority_file: String,
rewarder_token_mint: Pubkey,
rewarder_index: u8,
mint_wrapper: Pubkey,
minter: Pubkey,
},
PairUpdateRewarderEmission {
clmmpool: Pubkey,
rewarder_authority_file: String,
rewarder_index: u8,
emissions_per_day: f64,
},
PairCollectRewarder {
mint: Pubkey,
rewarder_index: u8,
},
PositionOpen {
clmmpool: Pubkey,
tick_lower_index: i32,
tick_upper_index: i32,
},
PositionRemove {
mint: Pubkey,
},
PositionDecrease {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
liquidity: u128,
slid: f64,
},
PositionIncrease {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
slid: f64,
},
PositionIncreaseWithFixedToken {
mint: Pubkey,
amount: f64,
slid: f64,
is_a_fixed: bool,
},
PositionList {
clmmpool: String,
auth: String,
},
PositionInfo {
mint: Pubkey,
},
PositionCollectFee {
mint: Pubkey,
},
TickInfo {
pool: Pubkey,
tick_index: i32,
},
TickArrayIndex {
pool: Pubkey,
tick_index: Option<i32>,
array_index: Option<u16>,
},
TickMapInfo {
pool: Pubkey,
array_index: u16,
},
TickPrice {
tick: i32,
},
ArrayIndex {
tick: i32,
tick_spacing: u16,
},
MathTickToSqrtPrice {
tick: i32,
},
MathSqrtPriceToTick {
price: u128,
},
MathTokenAMount,
MathLiquity,
MathDecodeDepositFixToken,
FarmingQuarryMineNew {
rewarder: Pubkey,
mint: Pubkey,
famine_ts: u64,
share: u64,
},
FarmingQuarryMineList,
FarmingQuarryMineInfo {
rewarder: Pubkey,
mint: Pubkey,
},
FarmingQuarryUpdateShare {
rewarder: Pubkey,
mint: Pubkey,
share: u64,
},
FarmingQuarrySetFamine {
rewarder: Pubkey,
mint: Pubkey,
ts: u64,
},
FarmingMineRewarderNew {
wrapper: Pubkey,
annual_rate: u64,
},
FarmingMineRewarderList,
FarmingMineRewarderInfo {
rewarder: Pubkey,
},
FarmingMineRewarderSetAnnualRate {
rewarder: Pubkey,
rate: u64,
},
FarmingMineRewarderSyncQuarryRewards {
rewarder: Pubkey,
mint: String,
},
FarmingMintWrapperNew {
mint: Pubkey,
hardcap: u64,
},
FarmingMintWrapperList,
FarmingMintWrapperInfo {
wrapper: Pubkey,
},
FarmingMintWrapperBackAuthority {
wrapper: Pubkey,
authority: Pubkey,
},
FarmingMintWrapperTransferAuthority {
wrapper: Pubkey,
},
FarmingMinterNew {
wrapper: Pubkey,
allowance: u64,
authority: Pubkey,
},
FarmingMinterList {
wrapper: String,
},
FarmingMinterInfo {
wrapper: Pubkey,
authority: Pubkey,
},
FarmingMinterUpdate {
wrapper: Pubkey,
allowance: u64,
authority: Pubkey,
},
FarmingMinterMint {
wrapper: Pubkey,
owner: Pubkey,
amount: f64,
},
}Variants
PairAcceptProtocolFeeAuthority
Fields
clmm_config: PubkeyPairCollectFee
Fields
mint: PubkeyPairCollectPartnerFee
PairCollectProtocolFee
Fields
clmmpool: PubkeyPairCreatePoolTemplate
Fields
output_file: StringPairCreatePool
Fields
entry_file: StringPairInfo
Fields
pair_key: PubkeyPairList
Fields
PairTicks
PairConfigInitTemplate
Fields
output_file: StringPairConfigInit
Fields
entry_file: StringPairConfigInfo
Fields
config_key: PubkeyPairFeeTierCreateTemplate
Fields
output_file: StringPairFeeTierCreate
Fields
entry_file: StringPairFeeTierInfo
Fields
fee_tier: PubkeyPairPartnerCreateTemplate
Fields
output_file: StringPairPartnerCreate
Fields
entry_file: StringPairPartnerInfo
Fields
partner: PubkeyPairTickArrayCreateTemplate
Fields
output_file: StringPairTickArrayCreate
Fields
entry_file: StringPairTransferProtocolFeeAuthority
PairConfigProtocolFeeRateUpdate
PairFeeRateUpdate
PairPartnerUpdate
PairProtocolFeeRateUpdate
Fields
clmmpool: PubkeyPairSwap
PairInitializeRewarder
Fields
clmmpool: Pubkeyrewarder_token_mint: Pubkeyrewarder_index: u8mint_wrapper: Pubkeyminter: PubkeyPairUpdateRewarderEmission
PairCollectRewarder
PositionOpen
PositionRemove
Fields
mint: PubkeyPositionDecrease
PositionIncrease
PositionIncreaseWithFixedToken
PositionList
PositionInfo
Fields
mint: PubkeyPositionCollectFee
Fields
mint: PubkeyTickInfo
TickArrayIndex
TickMapInfo
TickPrice
Fields
tick: i32ArrayIndex
MathTickToSqrtPrice
Fields
tick: i32MathSqrtPriceToTick
Fields
price: u128MathTokenAMount
MathLiquity
MathDecodeDepositFixToken
FarmingQuarryMineNew
FarmingQuarryMineList
FarmingQuarryMineInfo
FarmingQuarryUpdateShare
FarmingQuarrySetFamine
FarmingMineRewarderNew
FarmingMineRewarderList
FarmingMineRewarderInfo
Fields
rewarder: PubkeyFarmingMineRewarderSetAnnualRate
FarmingMineRewarderSyncQuarryRewards
FarmingMintWrapperNew
FarmingMintWrapperList
FarmingMintWrapperInfo
Fields
wrapper: PubkeyFarmingMintWrapperBackAuthority
FarmingMintWrapperTransferAuthority
Fields
wrapper: PubkeyFarmingMinterNew
FarmingMinterList
Fields
wrapper: StringFarmingMinterInfo
FarmingMinterUpdate
FarmingMinterMint
Trait Implementations
sourceimpl Debug for CliCommand
impl Debug for CliCommand
sourceimpl PartialEq<CliCommand> for CliCommand
impl PartialEq<CliCommand> for CliCommand
sourcefn eq(&self, other: &CliCommand) -> bool
fn eq(&self, other: &CliCommand) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for CliCommand
Auto Trait Implementations
impl RefUnwindSafe for CliCommand
impl Send for CliCommand
impl Sync for CliCommand
impl Unpin for CliCommand
impl UnwindSafe for CliCommand
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