Collect all fees and rewards from a list of positions.
true to always request newest data from chain with this request
A set of transaction-builders to resolve ATA for affliated tokens, collect fee & rewards for all positions. The first transaction should always be processed as it contains all the resolve ATA instructions to receive tokens.
Create a Whirlpool account for a group of token A, token B and tick spacing
the address of the token A
the address of the token B
the space between two ticks in the tick array
the initial tick that the pool is set to (derived from initial price)
the account to debit SOL from to fund the creation of the account(s)
poolKey
: The public key of the newly created whirlpool account. tx
: The transaction containing instructions for the on-chain operations.
Get this client's WhirlpoolContext object
a WhirlpoolContext object
Get an AccountFetcher to fetch Whirlpool accounts
an AccountFetcher instance
Get a Whirlpool object to interact with the Whirlpool account at the given address.
the address of the Whirlpool account
true to always request newest data from chain with this request
a Whirlpool object to interact with
Get a list of Whirlpool objects matching the provided list of addresses.
the addresses of the Whirlpool accounts
true to always request newest data from chain with this request
a list of Whirlpool objects to interact with
Get a Position object to interact with the Position account at the given address.
the address of the Position account
true to always request newest data from chain with this request
a Position object to interact with.
Get a list of Position objects to interact with the Position account at the given addresses.
true to always request newest data from chain with this request
a Record object between account address and Position. If an address is not a Position account, it will be null.
Generated using TypeDoc
Helper class to help interact with Whirlpool Accounts with a simpler interface.