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

Celo: Epoch rewards tab on Block view #2180

Closed
Tracked by #2181
fedor-ivn opened this issue Aug 16, 2024 · 0 comments · Fixed by #2185
Closed
Tracked by #2181

Celo: Epoch rewards tab on Block view #2180

fedor-ivn opened this issue Aug 16, 2024 · 0 comments · Fixed by #2185
Assignees
Labels
enhancement New feature or request v1.34.0 Release v1.34.0

Comments

@fedor-ivn
Copy link

Implement Epoch rewards tab on the Block view page.

Distributions

The first section deals with distributions, which represent the token transfers of CELO to various Celo funds. Note that, on the API level, the same object as for token transfers is returned. You can retrieve these distributions from the following endpoint: https://celo-alfajores.blockscout.com/api/v2/blocks/25678080/epoch

Image

Election Rewards

The second section deals with election rewards happened in the epoch block. When the user opens the Election Rewards tab, the table should display aggregated reward information, which can be obtained from:

https://celo-alfajores.blockscout.com/api/v2/blocks/{block_number}/epoch/.

For more detailed, granular information, users can open the dropdown to view rewards by type. This data is available at:

https://celo-alfajores.blockscout.com/api/v2/blocks/{block_number}/election-rewards/{reward_type}

where reward_type can be one of: validator, group, voter, or delegated-payment. Please note that this endpoint is paginated, but should be displayed with infinite scroll.

Image

@fedor-ivn fedor-ivn mentioned this issue Aug 16, 2024
5 tasks
@tom2drum tom2drum added the enhancement New feature or request label Aug 21, 2024
@tom2drum tom2drum self-assigned this Aug 21, 2024
@github-actions github-actions bot added the pre-release Tasks in pre-release right now label Aug 28, 2024
@github-actions github-actions bot added v1.34.0 Release v1.34.0 and removed pre-release Tasks in pre-release right now labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1.34.0 Release v1.34.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants