@macalinao/react-quarry
Version:
React hooks for Quarry
21 lines • 721 B
TypeScript
import type { PdaHook } from "@macalinao/grill";
import type { MergePoolSeeds } from "@macalinao/quarry";
import type { Address } from "@solana/kit";
/**
* Hook to derive the PDA address for a MergePool.
* Computes the deterministic address for a MergePool account
* based on the primary mint address.
*
* @param seeds - The seeds for deriving the MergePool PDA
* @param seeds.primaryMint - The mint address of the primary staked token
* @returns The computed MergePool PDA address
*
* @example
* ```tsx
* const mergePoolPda = useMergePoolPda({
* primaryMint: tokenMintAddress
* });
* ```
*/
export declare const useMergePoolPda: PdaHook<MergePoolSeeds, Address>;
//# sourceMappingURL=merge-pool.d.ts.map