The maximum sqrt-price supported by the Whirlpool program.
The maximum number of tick-arrays that can traversed across in a swap.
The maximum tick index supported by the Whirlpool program.
The minimum sqrt-price supported by the Whirlpool program.
The minimum tick index supported by the Whirlpool program.
The number of rewards supported by this whirlpool.
Orca's supported tick spacings.
Orca's WhirlpoolsConfig PublicKey.
Program ID hosting Orca's Whirlpool program.
The number of bundled positions that a position-bundle account can hold.
The denominator which the protocol fee rate is divided on.
The number of initialized ticks that a tick-array account can hold.
The public key that is allowed to update the metadata of Whirlpool NFTs.
Default settings used when resolving token accounts.
Default settings used when interacting with transactions.
Parameters to close a bundled position in a Whirlpool.
Parameters to close a position in a Whirlpool.
Common parameters between CollectAllPositionParams & CollectAllPositionAddressParams
Parameters to collect all fees and rewards from a list of positions.
Parameters to collect all fees and rewards from a list of positions.
Parameters to collect fees from a position.
Parameters to collect protocol fees for a Whirlpool
Parameters to collect rewards from a reward index in a position.
Parameters to remove liquidity from a position.
Parameters to delete a PositionBundle account.
Parameters to swap on a Whirlpool with developer fees
Input parameters to deposit liquidity into a position.
This type is usually generated by a quote class to estimate the amount of tokens required to deposit a certain amount of liquidity into a position.
Parameters to increase liquidity for a position.
Parameters to initialize a WhirlpoolsConfig account.
Parameters to initialize a FeeTier account.
Parameters to initialize a Whirlpool account.
Parameters to initialize a TickArray account.
Parameters to initialize a PositionBundle account.
Parameters to initialize a rewards for a Whirlpool
Parameters to open a bundled position in a Whirlpool.
Parameters to open a position in a Whirlpool.
Parameters to set the collect fee authority in a WhirlpoolsConfig
Parameters to set the default fee rate for a FeeTier.
Parameters to set the default fee rate for a FeeTier.
Parameters to set the fee authority in a WhirlpoolsConfig
Parameters to set fee rate for a Whirlpool.
Parameters to set fee rate for a Whirlpool.
Parameters to update the reward authority at a particular rewardIndex on a Whirlpool.
Parameters to update the reward authority at a particular rewardIndex on a Whirlpool.
Parameters to set rewards emissions for a reward in a Whirlpool
Parameters to set rewards emissions for a reward in a Whirlpool
Parameters that describe the nature of a swap on a Whirlpool.
Raw parameters and accounts to swap on a Whirlpool
Parameters to update fees and reward values for a position.
Type to define fetch options for the WhirlpoolAccountFetcherInterface
Union type of all the {@link ParsableEntity} types that can be cached in the WhirlpoolAccountFetcherInterface
The default retention periods for each {@link ParsableEntity} type in the WhirlpoolAccountFetcherInterface
Default fetch option for always fetching when making an account request to the WhirlpoolAccountFetcherInterface
Default fetch option for always using the cached value for an account request to the WhirlpoolAccountFetcherInterface
Build a default instance of WhirlpoolAccountFetcherInterface with the default {@link AccountFetcher} implementation
An instance of {@link Connection} to use for fetching accounts
An instance of WhirlpoolAccountFetcherInterface
Retrieve a list of whirlpool addresses and accounts filtered by the given params using getProgramAccounts.
tuple of whirlpool addresses and accounts
A type representing a Associated Token Account
Get the size of an account owned by the Whirlpool program in bytes.
Whirlpool account name
Size in bytes of the account
A type representing a pool graph edge.
A path to trade from start token mint to end token mint.
Results for a series of graph search queries between two tokens. The search id for each entry can be obtained from {@link PoolGraphUtils.getSearchRouteId} If a path exist between tokens for that search id, it will be an array of paths. If paths do not exist, it will be an empty array.
Options for finding a path between two tokens
A type representing an undirected graph of pools that can be used to find paths between two tokens. In this graph, nodes are token mints, and edges are pools
Get a list of all paths for this pool graph.
Options for finding a path
An array of all permutations of token-pairs to the paths for each pair.
Get a list of paths between two tokens for this pool graph.
Notes:
The token the path starts from
The token the path ends in
Options for finding a path
A list of path between the two tokens. If no path are found, it will be an empty array.
Get a map of paths from a list of token pairs for this pool graph.
Notes:
A list of token pairs to find paths for. The first token in the pair is the start token, and the second token is the end token.
Options for finding a path
An array of search result entires in the same order as the searchTokenPairs.
A map of token mint addresses against token decimals.
A config object for the PriceModule functions.
A config object for the PriceModule functions to define thresholds for price calculations. Whirlpools that do not fit the criteria set by the parameters below will be excluded in the price calculation.
A map of whirlpool addresses against WhirlpoolData accounts
A set of fetched accounts that are used for price calculations in PriceModule functions.
A map of token mint addresses against price values. If a price is not available, the value will be null.
A map of tick-array addresses against TickArrayData accounts
The default GetPricesConfig config for Orca's mainnet deployment.
The default GetPricesThresholdConfig config for Orca's mainnet deployment.
The default quote tokens used for Orca's mainnet deployment. Supply your own if you are using a different deployment.
An array of reward amounts that is collectible on a position.
Parameters needed to generate a quote on collectible rewards on a position.
Return object from decrease liquidity quote functions.
A collection of estimated values from quoting a swap that collects a developer-fee.
Return object from increase liquidity quote functions.
A collection of estimated values from quoting a swap. Object can be directly used in a swap transaction.
A collection of estimated values from quoting a two-hop-swap.
A collection of estimated values from quoting a swap.
A collection of estimated values from quoting a swap.
A collection of estimated values from quoting a swap.
Get a quote on the outstanding fees owed to a position.
A collection of fetched Whirlpool accounts to faciliate the quote.
A quote object containing the fees owed for each token in the pool.
Get a quote on the outstanding rewards owed to a position.
A collection of fetched Whirlpool accounts to faciliate the quote.
A quote object containing the rewards owed for each reward in the pool.
Get an estimated quote on the minimum tokens receivable based on the desired withdraw liquidity value.
The desired liquidity to withdraw from the Whirlpool
The maximum slippage allowed when calculating the minimum tokens received.
A Position helper class to help interact with the Position account.
A Whirlpool helper class to help interact with the Whirlpool account.
An DecreaseLiquidityQuote object detailing the tokenMin & liquidity values to use when calling decrease-liquidity-ix.
Get an estimated quote on the minimum tokens receivable based on the desired withdraw liquidity value.
DecreaseLiquidityQuoteParam
An DecreaseLiquidityInput object detailing the tokenMin & liquidity values to use when calling decrease-liquidity-ix.
Get an estimated quote on the maximum tokens required to deposit based on a specified input token amount.
The mint of the input token the user would like to deposit.
The amount of input tokens to deposit.
The lower index of the position that we are withdrawing from.
The upper index of the position that we are withdrawing from.
The maximum slippage allowed when calculating the minimum tokens received.
A Whirlpool helper class to help interact with the Whirlpool account.
An IncreaseLiquidityInput object detailing the required token amounts & liquidity values to use when calling increase-liquidity-ix.
Get an estimated quote on the maximum tokens required to deposit based on a specified input token amount.
IncreaseLiquidityQuoteParam
An IncreaseLiquidityInput object detailing the required token amounts & liquidity values to use when calling increase-liquidity-ix.
Get an estimated swap quote using input token amount.
Whirlpool to perform the swap on
PublicKey for the input token mint to swap with
The amount of input token to swap from
The amount of slippage to account for in this quote
PublicKey for the Whirlpool ProgramId
an WhirlpoolAccountFetchOptions object to define fetch and cache options when accessing on-chain accounts
a SwapQuote object with slippage adjusted SwapInput parameters & estimates on token amounts, fee & end whirlpool states.
Get an estimated swap quote using input token amount while collecting dev fees.
Whirlpool to perform the swap on
PublicKey for the input token mint to swap with
The amount of input token to swap from
The amount of slippage to account for in this quote
PublicKey for the Whirlpool ProgramId
The percentage amount to send to developer wallet prior to the swap. Percentage num/dem values has to match token decimal.
an WhirlpoolAccountFetchOptions object to define fetch and cache options when accessing on-chain accounts
a SwapQuote object with slippage adjusted SwapInput parameters & estimates on token amounts, fee & end whirlpool states.
Get an estimated swap quote using an output token amount.
Use this quote to get an estimated amount of input token needed to receive the defined output token amount.
Whirlpool to perform the swap on
PublicKey for the output token mint to swap into
The maximum amount of output token to receive in this swap.
The amount of slippage to account for in this quote
PublicKey for the Whirlpool ProgramId
an WhirlpoolAccountFetchOptions object to define fetch and cache options when accessing on-chain accounts
a SwapQuote object with slippage adjusted SwapInput parameters & estimates on token amounts, fee & end whirlpool states.
Perform a sync swap quote based on the basic swap instruction parameters.
SwapQuote parameters
The amount of slippage to account for when generating the final quote.
a SwapQuote object with slippage adjusted SwapInput parameters & estimates on token amounts, fee & end whirlpool states.
Convert two individual swaps into a quote estimate
A trade route that is ready to execute. Contains the TradeRoute and a possible set of {@link AddressLookupTableAccount} that is needed to successfully execute the trade.
If the lookup table accounts are undefined, then the trade can be executed with a legacy transaction.
Parameters to configure the selection of the best route.
Options to configure the router.
Represents a fragment of a trade that was splitted into multiple trades for more efficient execution.
A Trade type that represents a trade between two tokens
Represents a quote for a single hop in the path of a SubTradeRoute.
A snapshot of the whirlpool condition when a trade hop was made.
A trade route that is ready to execute. A trade can be broken into multiple sub-trades for potentially better trades.
Size of the Whirlpool account in bytes.
The Anchor coder for the Whirlpool program.
A wrapper class of a TickArray on a Whirlpool
Extended (token) Account type to host account info for a Token.
Extended Mint type to host token info.
Type to represent a reward for a reward index on a Whirlpool.
Construct a WhirlpoolClient instance to help interact with Whirlpools accounts with.
WhirlpoolContext object
a WhirlpoolClient instance to help with interacting with Whirlpools accounts.
Generated using TypeDoc
The denominator which the fee rate is divided on.