@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
21 lines • 808 B
JavaScript
export const GRILL_REACT_QUERY_NAMESPACE = "solana";
/**
* Create a query key for the account query
* @param address - The address of the account
* @returns The query key
*/
export const createAccountQueryKey = (address) => [GRILL_REACT_QUERY_NAMESPACE, "account", address];
/**
* Create a query key for token info query
* @param mint - The mint address
* @returns The query key
*/
export const createTokenInfoQueryKey = (mint) => [GRILL_REACT_QUERY_NAMESPACE, "tokenInfo", mint];
/**
* Create a query key for PDA queries
* @param queryKeyPrefix - The PDA type prefix
* @param args - The arguments for the PDA
* @returns The query key
*/
export const createPdaQueryKey = (queryKeyPrefix, args) => [GRILL_REACT_QUERY_NAMESPACE, "pda", queryKeyPrefix, args];
//# sourceMappingURL=query-keys.js.map