UNPKG

@macalinao/react-quarry

Version:

React hooks for Quarry

23 lines 744 B
import type { PdaHook } from "@macalinao/grill"; import type { MinerSeeds } from "@macalinao/quarry"; import type { Address } from "@solana/kit"; /** * Hook to derive the PDA address for a Miner. * Computes the deterministic address for a Miner account * based on the quarry and authority. * * @param seeds - The seeds for deriving the Miner PDA * @param seeds.quarry - The address of the quarry * @param seeds.authority - The authority (owner) of the miner * @returns The computed Miner PDA address * * @example * ```tsx * const minerPda = useMinerPda({ * quarry: quarryAddress, * authority: walletPublicKey * }); * ``` */ export declare const useMinerPda: PdaHook<MinerSeeds, Address>; //# sourceMappingURL=miner.d.ts.map