@macalinao/react-quarry
Version:
React hooks for Quarry
23 lines • 801 B
TypeScript
import type { PdaHook } from "@macalinao/grill";
import type { MintWrapperSeeds } from "@macalinao/quarry";
import type { Address } from "@solana/kit";
/**
* Hook to derive the PDA address for a MintWrapper.
* Computes the deterministic address for a MintWrapper account
* based on the base and mint addresses.
*
* @param seeds - The seeds for deriving the MintWrapper PDA
* @param seeds.base - The base address for the mint wrapper
* @param seeds.mint - The mint address to be wrapped
* @returns The computed MintWrapper PDA address
*
* @example
* ```tsx
* const mintWrapperPda = useMintWrapperPda({
* base: baseAddress,
* mint: tokenMintAddress
* });
* ```
*/
export declare const useMintWrapperPda: PdaHook<MintWrapperSeeds, Address>;
//# sourceMappingURL=mint-wrapper.d.ts.map