Skip to content

Add delegation support and populate balance.resource_stake #6

@poplexity

Description

@poplexity
  • Maintain a table of delegation that can be searched by both the delegator and delegatee.
  • The initial scan needs to iterate the scope for eosio delband table, and then for each scope look up the rows, inserting/updating into the delegations table one row for each to/from combination (primary key would be composite (to, from)
  • The polling logic should look for any delegate/undelgate bandwith actions to determine which accounts have changed, and then update the related delegation and resource_stake rows (Implement incremental polling via hyperion for delegation #23)
  • Add routes as needed so we can search both "who has delegated to me" and "who have I delgated to"
  • Update set balance.resource_stake = <total cpu + net staked across all accounts by the current one> where account = account

Metadata

Metadata

Assignees

Labels

✨ EnhancementImprovements on existing features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions