Skip to content

feat: Portal governance  #1585

@NamelsKing

Description

@NamelsKing

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions