Filtering all grants down to the whitelisted grants should be done in the data store (utilizing the filterGrantsByID method from utils mentioned below)
Data store would pull all grants and populate allGrants in local data store
Data store would pull the global whitelist array from IPFS, filter allGrants based on the whitelist resulting in whitelistGrants stored in local data
Filtering (filterGrantsByID) (based on whitelistGrants, or allGrants) would be in a function in utils
Function arguments should be filterGrantsByID(initialGrantList []grant, filterByList []int)
This function should return []grant
Filtering by other parameters (filterGrants(initialGrantList []grant, filterByList []grant)) would be in a function in utils
To filter by one or more parameters you would only set those params on each of the grants in the filterByList
We would need to determine a way to filter with ranges, wild cards, and comparison operators
This function should return []grant
Filtering of grants for a GrantRounds grant list should be done in the view passing the resulting list into the component
Naming Changes and Additions
allGrants - Locally stored list of all grants on the GrantRegistry
whitelistedGrants - Locally stored list of grants on the whitelist that exist in allGrants
Filtering all grants down to the whitelisted grants should be done in the data store (utilizing the filterGrantsByID method from utils mentioned below)
Filtering (filterGrantsByID) (based on whitelistGrants, or allGrants) would be in a function in utils
Filtering by other parameters (filterGrants(initialGrantList []grant, filterByList []grant)) would be in a function in utils
Filtering of grants for a GrantRounds grant list should be done in the view passing the resulting list into the component
Naming Changes and Additions