Skip to main content

Crate valiant_vortex

Crate valiant_vortex 

Source

Structs§

ClosePositionInstruction
Represents the instructions and quotes for closing a liquidity position.
CollectCycloneFeesInstruction
Represents the instructions and quotes for harvesting a position.
CreatePoolInstructions
Represents the instructions and metadata for creating a pool.
CycloneFeeTierBondingCurve
CycloneFeeTierFees
CycloneGraduateInstructions
CycloneSwapInstructions
Represents the instructions and quote for executing a token swap.
DecreaseLiquidityInstruction
Represents the instructions and quote for decreasing liquidity in a position.
HarvestPositionInstruction
Represents the instructions and quotes for harvesting a position.
HydratedBundledPosition
Represents a single bundled position within a PositionBundle account.
HydratedPosition
Represents a single Position account.
HydratedPositionBundle
Represents a Position Bundle account, which includes multiple bundled positions.
IncreaseLiquidityInstruction
Represents the instructions and quote for increasing liquidity in a position.
InitializedCyclone
Represents an initialized pool.
InitializedPool
Represents an initialized pool.
NewConfig
NewVortex
OpenPositionInstruction
Represents the instructions and quote for opening a liquidity position.
ParsedTokenAccount
RouteExactInInstructions
SwapInstructions
Represents the instructions and quote for executing a token swap.
UninitializedCyclone
Represents an uninitialized pool.
UninitializedPool
Represents an uninitialized pool.

Enums§

CycloneInfo
Represents information about a pool, either initialized or uninitialized.
CycloneSwapQuote
Represents the quote for a swap operation.
CycloneSwapType
Represents the type of a swap operation.
DecreaseLiquidityParam
Represents the parameters for decreasing liquidity in a pool.
IncreaseLiquidityParam
Represents the parameters for increasing liquidity in a position.
NativeMintWrappingStrategy
Defines the strategy for handling SOL wrapping in a transaction.
PoolInfo
Represents information about a pool, either initialized or uninitialized.
PositionOrBundle
Represents either a standalone Position account or a Position Bundle account.
SwapQuote
Represents the quote for a swap operation.
SwapType
Represents the type of a swap operation.
VortexConfigInput
Input type for setting the Vortex configuration.

Constants§

DEFAULT_FUNDER
The default funder for the Vortex program.
DEFAULT_NATIVE_MINT_WRAPPING_STRATEGY
The default SOL wrapping strategy.
DEFAULT_SLIPPAGE_TOLERANCE_BPS
The default slippage tolerance, expressed in basis points. Value of 100 is equivalent to 1%.
ECHO_TICK_SPACING
The tick spacing for the ECHO pool.

Statics§

FUNDER
The currently selected funder for the Vortex program.
NATIVE_MINT_WRAPPING_STRATEGY
The currently selected SOL wrapping strategy.
SLIPPAGE_TOLERANCE_BPS
The currently selected slippage tolerance, expressed in basis points.
VORTEX_CONFIG_ADDRESS
The currently selected address for the Vortex program’s config account.
VORTEX_CONFIG_EXTENSION_ADDRESS
The currently selected address for the Vortex program’s config extension account.

Functions§

close_position_instructions
Generates instructions to close a liquidity position.
collect_cyclone_fees_instructions
create_concentrated_liquidity_pool_instructions
Creates the necessary instructions to initialize a Concentrated Liquidity Pool (CLMM).
create_echo_instructions
Creates the necessary instructions to initialize a Echo Pool.
cyclone_swap_instructions
Generates the instructions necessary to execute a token swap.
decrease_liquidity_instructions
Generates instructions to decrease liquidity from an existing position.
fetch_concentrated_liquidity_pool
Fetches the details of a specific Concentrated Liquidity Pool.
fetch_cyclone
Fetches the details of a specific Echo Pool.
fetch_cyclone_by_token_pair
Fetches all possible liquidity pools between two token mints in Valiant Vortex.
fetch_echo
Fetches the details of a specific Echo Pool.
fetch_positions_for_owner
Fetches all positions owned by a given wallet in the Valiant Vortex.
fetch_positions_in_vortex
Fetches all positions associated with a specific Vortex.
fetch_vortex_by_token_pair
Fetches all possible liquidity pools between two token mints in Valiant Vortex.
get_account_data_size
Get the size of the account data for a token account
get_increase_liquidity_quote
graduate_cyclone_instructions
harvest_position_instructions
Generates instructions to harvest a position.
increase_liquidity_instructions
Generates instructions to increase liquidity for an existing position.
open_full_range_position_instructions
Opens a full-range position in a liquidity pool.
open_position_instructions
Opens a position in a liquidity pool within a specific price range.
order_mints
Orders two mint addresses by their canonical byte order.
reset_configuration
Resets the configuration to its default values.
resize_config
resize_vortex
route_exact_in_instructions
set_default_cyclone_bonding_curve
set_default_cyclone_fee_rate
set_default_cyclone_graduation_creator_fee_rate
set_default_cyclone_graduation_fee_rate
set_default_cyclone_protocol_fee_rate
set_funder
Sets the currently selected funder for the Vortex program.
set_native_mint_wrapping_strategy
Sets the currently selected SOL wrapping strategy.
set_slippage_tolerance_bps
Sets the currently selected slippage tolerance, expressed in basis points.
set_vortex_config_address
Sets the currently selected address for the Vortex program’s config account.
setup_cyclone_fee_tier
swap_instructions
Generates the instructions necessary to execute a token swap.