Refactor StateController and Bounty Question to support:
takeaways:
Controllers can "index questions" by their needs- so stateController will index by state and voteController can index by votes.
usually a mapping to the QuestionID[]
Then, the BountyQuestion can provide functionality to loop through an array of questionIDs[] and return a Question[]. Can add offset/limit parameters, and ss long as this is a view function we should be good to go.
Refactor StateController and Bounty Question to support:
takeaways:
Controllers can "index questions" by their needs- so stateController will index by state and voteController can index by votes.
usually a
mappingto theQuestionID[]Then, the
BountyQuestioncan provide functionality to loop through an array of questionIDs[] and return a Question[]. Can add offset/limit parameters, and ss long as this is a view function we should be good to go.