Skip to content

feat: Portal governance #1585

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

Open
7 of 9 tasks
NamelsKing opened this issue Oct 31, 2022 · 0 comments
Open
7 of 9 tasks

feat: Portal governance #1585

NamelsKing opened this issue Oct 31, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@NamelsKing
Copy link
Contributor

NamelsKing commented Oct 31, 2022

Background

Start after Badger-Finance/badger-sdk#283 is complete to 2nd step.

Tasks

  • Create indexer for governance items and persist them in ddb
  • Cover indexer with tests
  • New governance controller:
    1. getProposals - provide summary of proposals in a paginated state including info such as
    - proposal id
    - proposal state
    - time proposed
    2. getProposalData - provide break down of proposal information
    - proposer
    - num approved / rejected
    - proposal state
    - time proposed
    - proposal state history
  • Provide tests coverage for controller
  • Create indexer(schedule) task, that will decode CallData from CallScheduled event
    • fetch abi from scan resource
    • find method depending on its hash
    • decode data and save to ddb, as a new field

In case, if indexer will fail on init with timeouts, coz of massive scan ranges (over 10kk)

  • Metadata table (with blocks number and action name) for indexing events for the long range and first launches
@NamelsKing NamelsKing added the enhancement New feature or request label Oct 31, 2022
@NamelsKing NamelsKing assigned okjintao and NamelsKing and unassigned okjintao Oct 31, 2022
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

2 participants