Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useProposalWithOffchainVoteStatus: Allow Array of proposals to be passed #386

Open
jtrein opened this issue Jun 23, 2021 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@jtrein
Copy link
Contributor

jtrein commented Jun 23, 2021

If we allow the useProposalWithOffchainVoteStatus hook to accept more than a single proposal, we can get status information about many proposals and also use the built-in polling. An example of where we could use this effectively is inside useProposals, or other proposal-listing components.

When using Multicall we can make a single call using and then get the results of each proposal's 3 separate chain calls by grouping using every 3rd array index.

[
  // Proposal 1
  call1,
  call2,
  call3,

  // Proposal 2
  call1,
  call2,
  call3,
]
@jtrein jtrein added the enhancement New feature or request label Jun 23, 2021
@jtrein jtrein self-assigned this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant