@macalinao/react-quarry
Version:
React hooks for Quarry
28 lines • 946 B
TypeScript
import type { UseDecodedAccountHook, UseDecodedAccountsHook } from "@macalinao/grill";
import type { MintWrapper } from "@macalinao/quarry";
/**
* Hook to fetch and decode a MintWrapper account.
* A MintWrapper wraps a token mint with additional permissions and controls,
* allowing the Quarry protocol to manage minting permissions for reward tokens.
*
* @example
* ```tsx
* const { data: mintWrapper } = useMintWrapper({
* address: mintWrapperAddress
* });
* ```
*/
export declare const useMintWrapper: UseDecodedAccountHook<MintWrapper>;
/**
* Hook to fetch and decode multiple MintWrapper accounts in batch.
* Uses DataLoader for efficient batching of multiple account fetches.
*
* @example
* ```tsx
* const { data: mintWrappers } = useMintWrappers({
* addresses: [wrapper1, wrapper2]
* });
* ```
*/
export declare const useMintWrappers: UseDecodedAccountsHook<MintWrapper>;
//# sourceMappingURL=mint-wrapper.d.ts.map