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 WhirlpoolsConfig PublicKey.
Program ID hosting Orca's Whirlpool program.
The denominator which the protocol fee rate is divided on.
The number of initialized ticks that a tick-array account can hold.
Filter params for Whirlpools when invoking getProgramAccounts.
Tuple containing Whirlpool address and parsed account data.
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 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 rewards for 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 to swap on a Whirlpool
Parameters and accounts to swap on a Whirlpool
Parameters to update fees and reward values for 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.
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
AccountFetcher object to fetch solana accounts
If true, fetcher would default to fetching the latest 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
AccountFetcher object to fetch solana accounts
The percentage amount to send to developer wallet prior to the swap. Percentage num/dem values has to match token decimal.
If true, fetcher would default to fetching the latest 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
AccountFetcher object to fetch solana accounts
If true, fetcher would default to fetching the latest 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.
Size of the Whirlpool account in bytes.
The Anchor coder for the Whirlpool program.
A wrapper class of a TickArray on a Whirlpool
Extended AccountInfo type to host account info for a Token.
Extended MintInfo 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.