Skip to main content

Crate fusionamm_sdk

Crate fusionamm_sdk 

Source

Structs§

ClosePositionInstruction
Represents the instructions and quotes for closing a liquidity position.
CreatePoolInstructions
Represents the instructions and metadata for creating a pool.
DecreaseLimitOrderInstruction
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.
IncreaseLimitOrderInstruction
IncreaseLiquidityInstruction
Represents the instructions and quote for increasing liquidity in a position.
OpenLimitOrderInstruction
OpenPositionInstruction
Represents the instructions and quote for opening a liquidity position.
ParsedTokenAccount
SwapInstructions
Represents the instructions and quote for executing a token swap.

Enums§

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.
PositionOrBundle
Represents either a standalone Position account or a Position Bundle account.
PriceOrTickIndex
SwapQuote
Represents the quote for a swap operation.
SwapType
Represents the type of a swap operation.

Constants§

DEFAULT_FUNDER
The default funder for the FusionPools 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%.

Statics§

FUNDER
The currently selected funder for the FusionPools program.
NATIVE_MINT_WRAPPING_STRATEGY
The currently selected SOL wrapping strategy.
SLIPPAGE_TOLERANCE_BPS
The currently selected slippage tolerance, expressed in basis points.

Functions§

close_limit_order_instructions
Generates instructions to close a limit order.
close_position_instructions
Generates instructions to close a liquidity position.
create_fusion_pool_instructions
Creates the necessary instructions to initialize a Concentrated Liquidity Pool (CLMM).
decrease_limit_order_instructions
Generates instructions to decrease a limit order.
decrease_liquidity_instructions
Generates instructions to decrease liquidity from an existing position.
fetch_fusion_pool_by_token_pair_and_tick_spacing
Fetches the details of a specific Concentrated Liquidity Pool.
fetch_fusion_pools_by_token_pair
Fetches all possible liquidity pools between two token mints in fusion pools.
fetch_positions_for_owner
Fetches all positions owned by a given wallet in the FusionAMM pools.
fetch_positions_in_fusion_pool
Fetches all positions associated with a specific FusionPool.
get_account_data_size
Get the size of the account data for a token account
harvest_position_instructions
Generates instructions to harvest a position.
increase_limit_order_instructions
Increases a limit order. The limit order can’t be increased if it’s partially filled.
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_limit_order_instructions
Opens a limit order in a liquidity pool at a specific tick index.
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.
set_funder
Sets the currently selected funder for the FusionPools 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.
swap_instructions
Generates the instructions necessary to execute a token swap.