@macalinao/react-quarry
Version:
React hooks for Quarry
28 lines • 898 B
TypeScript
import type { UseDecodedAccountHook, UseDecodedAccountsHook } from "@macalinao/grill";
import type { MergePool } from "@macalinao/quarry";
/**
* Hook to fetch and decode a MergePool account.
* A MergePool manages merge mining operations across multiple Quarries,
* coordinating primary and replica rewards for staked tokens.
*
* @example
* ```tsx
* const { data: mergePool } = useMergePool({
* address: mergePoolAddress
* });
* ```
*/
export declare const useMergePool: UseDecodedAccountHook<MergePool>;
/**
* Hook to fetch and decode multiple MergePool accounts in batch.
* Uses DataLoader for efficient batching of multiple account fetches.
*
* @example
* ```tsx
* const { data: mergePools } = useMergePools({
* addresses: [pool1, pool2, pool3]
* });
* ```
*/
export declare const useMergePools: UseDecodedAccountsHook<MergePool>;
//# sourceMappingURL=merge-pool.d.ts.map