forked from Cylo-Traders/Agrocylo-PIP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueryKeys.ts
More file actions
13 lines (13 loc) · 775 Bytes
/
Copy pathqueryKeys.ts
File metadata and controls
13 lines (13 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
/** Central query key factory so read hooks and mutation invalidations stay in sync. */
export const contractQueryKeys = {
campaign: (campaignId: string) => ['campaign', campaignId] as const,
dispute: (campaignId: string) => ['dispute', campaignId] as const,
contribution: (campaignId: string, address: string) =>
['contribution', campaignId, address] as const,
tranches: (campaignId: string) => ['tranches', campaignId] as const,
harvestRecord: (campaignId: string) => ['harvestRecord', campaignId] as const,
farmer: (address: string) => ['farmer', address] as const,
activity: (campaignId: string) => ['activity', campaignId] as const,
escrowAdmin: () => ['escrowAdmin'] as const,
adminCampaignsOverview: () => ['adminCampaignsOverview'] as const,
};