Enum crema_cli::command::CliCommand
source · [−]pub enum CliCommand<'a> {
Show 60 variants
PairAcceptProtocolFeeAuthority {
clmm_config: Pubkey,
},
PairCollectFee {
mint: Pubkey,
},
PairCollectPartnerFee {
partner: Pubkey,
clmmpool: Pubkey,
},
PairCollectProtocolFee {
clmmpool: Pubkey,
},
PairCreatePoolTemplate {
output_file: &'a str,
},
PairCreatePool {
entry_file: &'a str,
},
PairInfo {
pair_key: Pubkey,
},
PairTicks,
PairConfigCreateTemplate {
output_file: &'a str,
},
PairConfigCreate {
entry_file: &'a str,
},
PairConfigInfo {
config_key: Pubkey,
},
PairFeeTierCreateTemplate {
output_file: &'a str,
},
PairFeeTierCreate {
entry_file: &'a str,
},
PairFeeTierInfo {
fee_tier: Pubkey,
},
PairPartnerCreateTemplate {
output_file: &'a str,
},
PairPartnerCreate {
entry_file: &'a str,
},
PairPartnerInfo {
partner: Pubkey,
},
PairTickArrayCreateTemplate {
output_file: &'a str,
},
PairTickArrayCreate {
entry_file: &'a str,
},
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,
},
PositionOpen {
clmmpool: Pubkey,
tick_lower_index: i32,
tick_upper_index: i32,
},
PositionRemove {
mint: Pubkey,
},
PositionDecrease {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
slid: f64,
},
PositionIncrease {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
slid: f64,
},
PositionList,
PositionInfo {
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,
},
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: &'a str,
},
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: &'a str,
},
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: &'a strPairCreatePool
Fields
entry_file: &'a strPairInfo
Fields
pair_key: PubkeyPairTicks
PairConfigCreateTemplate
Fields
output_file: &'a strPairConfigCreate
Fields
entry_file: &'a strPairConfigInfo
Fields
config_key: PubkeyPairFeeTierCreateTemplate
Fields
output_file: &'a strPairFeeTierCreate
Fields
entry_file: &'a strPairFeeTierInfo
Fields
fee_tier: PubkeyPairPartnerCreateTemplate
Fields
output_file: &'a strPairPartnerCreate
Fields
entry_file: &'a strPairPartnerInfo
Fields
partner: PubkeyPairTickArrayCreateTemplate
Fields
output_file: &'a strPairTickArrayCreate
Fields
entry_file: &'a strPairTransferProtocolFeeAuthority
PairConfigProtocolFeeRateUpdate
PairFeeRateUpdate
PairPartnerUpdate
PairProtocolFeeRateUpdate
Fields
clmmpool: PubkeyPairSwap
PositionOpen
PositionRemove
Fields
mint: PubkeyPositionDecrease
PositionIncrease
PositionList
PositionInfo
Fields
mint: PubkeyTickInfo
TickArrayIndex
TickMapInfo
TickPrice
Fields
tick: i32MathTickToSqrtPrice
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: &'a strFarmingMinterInfo
FarmingMinterUpdate
FarmingMinterMint
Trait Implementations
sourceimpl<'a> Debug for CliCommand<'a>
impl<'a> Debug for CliCommand<'a>
sourceimpl<'a> PartialEq<CliCommand<'a>> for CliCommand<'a>
impl<'a> PartialEq<CliCommand<'a>> for CliCommand<'a>
sourcefn eq(&self, other: &CliCommand<'a>) -> bool
fn eq(&self, other: &CliCommand<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl<'a> StructuralPartialEq for CliCommand<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CliCommand<'a>
impl<'a> Send for CliCommand<'a>
impl<'a> Sync for CliCommand<'a>
impl<'a> Unpin for CliCommand<'a>
impl<'a> UnwindSafe for CliCommand<'a>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
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