Index
Program Derived Addresses
Other
Static
getTickArrayFromSqrtPrice
- getTickArrayFromSqrtPrice(sqrtPriceX64, tickSpacing, whirlpool, programId, tickArrayOffset?): PDA
Parameters
- sqrtPriceX64: BN
- tickSpacing: number
- whirlpool: PublicKey
- programId: PublicKey
- tickArrayOffset: number = 0
Returns PDA
Static
getTickArrayFromTickIndex
- getTickArrayFromTickIndex(tickIndex, tickSpacing, whirlpool, programId, tickArrayOffset?): PDA
Parameters
- tickIndex: number
- tickSpacing: number
- whirlpool: PublicKey
- programId: PublicKey
- tickArrayOffset: number = 0
Returns PDA
Static
getWhirlpool
- getWhirlpool(programId, whirlpoolsConfigKey, tokenMintAKey, tokenMintBKey, tickSpacing): PDA
Parameters
- programId: PublicKey
- whirlpoolsConfigKey: PublicKey
- tokenMintAKey: PublicKey
- tokenMintBKey: PublicKey
- tickSpacing: number
Returns PDA
Program Derived Addresses
Static
getBundledPosition
- getBundledPosition(programId, positionBundleMintKey, bundleIndex): PDA
Parameters
- programId: PublicKey
- positionBundleMintKey: PublicKey
- bundleIndex: number
Returns PDA
Static
getConfigExtension
- getConfigExtension(programId, whirlpoolsConfigAddress): PDA
Parameters
- programId: PublicKey
- whirlpoolsConfigAddress: PublicKey
Returns PDA
Static
getFeeTier
- getFeeTier(programId, whirlpoolsConfigAddress, tickSpacing): PDA
Parameters
- programId: PublicKey
- whirlpoolsConfigAddress: PublicKey
- tickSpacing: number
Returns PDA
Static
getOracle
- getOracle(programId, whirlpoolAddress): PDA
Parameters
- programId: PublicKey
- whirlpoolAddress: PublicKey
Returns PDA
Static
getPosition
- getPosition(programId, positionMintKey): PDA
Parameters
- programId: PublicKey
- positionMintKey: PublicKey
Returns PDA
Static
getPositionBundle
- getPositionBundle(programId, positionBundleMintKey): PDA
Parameters
- programId: PublicKey
- positionBundleMintKey: PublicKey
Returns PDA
Static
getPositionBundleMetadata
- getPositionBundleMetadata(positionBundleMintKey): PDA
Parameters
- positionBundleMintKey: PublicKey
Returns PDA
Static
getPositionMetadata
- getPositionMetadata(positionMintKey): PDA
Parameters
- positionMintKey: PublicKey
Returns PDA
Static
getTickArray
- getTickArray(programId, whirlpoolAddress, startTick): PDA
Parameters
- programId: PublicKey
- whirlpoolAddress: PublicKey
- startTick: number
Returns PDA
Static
getTokenBadge
- getTokenBadge(programId, whirlpoolsConfigAddress, tokenMintKey): PDA
Parameters
- programId: PublicKey
- whirlpoolsConfigAddress: PublicKey
- tokenMintKey: PublicKey
Returns PDA
Get the PDA of the tick array containing tickIndex. tickArrayOffset can be used to get neighboring tick arrays.