@macalinao/react-quarry
Version:
React hooks for Quarry
28 lines • 856 B
TypeScript
import type { UseDecodedAccountHook, UseDecodedAccountsHook } from "@macalinao/grill";
import type { Minter } from "@macalinao/quarry";
/**
* Hook to fetch and decode a Minter account.
* A Minter controls the minting of reward tokens for Quarry rewards,
* managing mint rate and allowances for the rewards distribution.
*
* @example
* ```tsx
* const { data: minter } = useMinter({
* address: minterAddress
* });
* ```
*/
export declare const useMinter: UseDecodedAccountHook<Minter>;
/**
* Hook to fetch and decode multiple Minter accounts in batch.
* Uses DataLoader for efficient batching of multiple account fetches.
*
* @example
* ```tsx
* const { data: minters } = useMinters({
* addresses: [minter1, minter2]
* });
* ```
*/
export declare const useMinters: UseDecodedAccountsHook<Minter>;
//# sourceMappingURL=minter.d.ts.map