Structs§
- Close
Position Instruction - Represents the instructions and quotes for closing a liquidity position.
- Create
Pool Instructions - Represents the instructions and metadata for creating a pool.
- Decrease
Liquidity Instruction - Represents the instructions and quote for decreasing liquidity in a position.
- Harvest
Position Instruction - Represents the instructions and quotes for harvesting a position.
- Hydrated
Bundled Position - Represents a single bundled position within a
PositionBundle
account. - Hydrated
Position - Represents a single Position account.
- Hydrated
Position Bundle - Represents a Position Bundle account, which includes multiple bundled positions.
- Increase
Liquidity Instruction - Represents the instructions and quote for increasing liquidity in a position.
- Initialized
Pool - Represents an initialized pool.
- Open
Position Instruction - Represents the instructions and quote for opening a liquidity position.
- Parsed
Token Account - Swap
Instructions - Represents the instructions and quote for executing a token swap.
- Uninitialized
Pool - Represents an uninitialized pool.
Enums§
- Decrease
Liquidity Param - Represents the parameters for decreasing liquidity in a pool.
- Increase
Liquidity Param - Represents the parameters for increasing liquidity in a position.
- Native
Mint Wrapping Strategy - Defines the strategy for handling SOL wrapping in a transaction.
- Pool
Info - Represents information about a pool, either initialized or uninitialized.
- Position
OrBundle - Represents either a standalone Position account or a Position Bundle account.
- Swap
Quote - Represents the quote for a swap operation.
- Swap
Type - Represents the type of a swap operation.
- Whirlpools
Config Input - Input type for setting the Whirlpools configuration.
Constants§
- DEFAULT_
FUNDER - The default funder for the Whirlpools 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%.
- SPLASH_
POOL_ TICK_ SPACING - The tick spacing for the SPLASH pool.
Statics§
- FUNDER
- The currently selected funder for the Whirlpools program.
- NATIVE_
MINT_ WRAPPING_ STRATEGY - The currently selected SOL wrapping strategy.
- SLIPPAGE_
TOLERANCE_ BPS - The currently selected slippage tolerance, expressed in basis points.
- WHIRLPOOLS_
CONFIG_ ADDRESS - The currently selected address for the Whirlpools program’s config account.
- WHIRLPOOLS_
CONFIG_ EXTENSION_ ADDRESS - The currently selected address for the Whirlpools program’s config extension account.
Functions§
- close_
position_ instructions - Generates instructions to close a liquidity position.
- create_
concentrated_ liquidity_ pool_ instructions - Creates the necessary instructions to initialize a Concentrated Liquidity Pool (CLMM).
- create_
splash_ pool_ instructions - Creates the necessary instructions to initialize a Splash Pool.
- 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_
positions_ for_ owner - Fetches all positions owned by a given wallet in the Orca Whirlpools.
- fetch_
positions_ in_ whirlpool - Fetches all positions associated with a specific Whirlpool.
- fetch_
splash_ pool - Fetches the details of a specific Splash Pool.
- fetch_
whirlpools_ by_ token_ pair - Fetches all possible liquidity pools between two token mints in Orca Whirlpools.
- 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_
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.
- set_
funder - Sets the currently selected funder for the Whirlpools 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_
whirlpools_ config_ address - Sets the currently selected address for the Whirlpools program’s config account.
- swap_
instructions - Generates the instructions necessary to execute a token swap.