Module orca_whirlpools_docs::orca_whirlpools
source · Structs§
- Represents the instructions and quotes for closing a liquidity position.
- Represents the instructions and metadata for creating a pool.
- Represents the instructions and quote for decreasing liquidity in a position.
- Represents the instructions and quotes for harvesting a position.
- Represents a single bundled position within a
PositionBundle
account. - Represents a single Position account.
- Represents a Position Bundle account, which includes multiple bundled positions.
- Represents the instructions and quote for increasing liquidity in a position.
- Represents an initialized pool.
- Represents the instructions and quote for opening a liquidity position.
- Represents the instructions and quote for executing a token swap.
- Represents an uninitialized pool.
Enums§
- Represents the parameters for decreasing liquidity in a pool.
- Represents the parameters for increasing liquidity in a position.
- Defines the strategy for handling SOL wrapping in a transaction.
- Represents information about a pool, either initialized or uninitialized.
- Represents either a standalone Position account or a Position Bundle account.
- Represents the quote for a swap operation.
- Represents the type of a swap operation.
- Input type for setting the Whirlpools configuration.
Constants§
- The default funder for the Whirlpools program.
- The default SOL wrapping strategy.
- The default slippage tolerance, expressed in basis points. Value of 100 is equivalent to 1%.
- The tick spacing for the SPLASH pool.
Statics§
- The currently selected funder for the Whirlpools program.
- The currently selected SOL wrapping strategy.
- The currently selected slippage tolerance, expressed in basis points.
- The currently selected address for the Whirlpools program’s config account.
- The currently selected address for the Whirlpools program’s config extension account.
Functions§
- Generates instructions to close a liquidity position.
- Creates the necessary instructions to initialize a Concentrated Liquidity Pool (CLMM).
- Creates the necessary instructions to initialize a Splash Pool.
- Generates instructions to decrease liquidity from an existing position.
- Fetches the details of a specific Concentrated Liquidity Pool.
- Fetches all positions associated with a specific Whirlpool.
- Fetches the details of a specific Splash Pool.
- Fetches all possible liquidity pools between two token mints in Orca Whirlpools.
- Fetches all positions owned by a given wallet in the Orca Whirlpools.
- Generates instructions to harvest a position.
- Generates instructions to increase liquidity for an existing position.
- Opens a full-range position in a liquidity pool.
- Opens a position in a liquidity pool within a specific price range.
- Orders two mint addresses by their canonical byte order.
- Resets the configuration to its default values.
- Sets the currently selected funder for the Whirlpools program.
- Sets the currently selected SOL wrapping strategy.
- Sets the currently selected slippage tolerance, expressed in basis points.
- Sets the currently selected address for the Whirlpools program’s config account.
- Generates the instructions necessary to execute a token swap.