oursky / likedao

Apache License 2.0
1 stars 4 forks source link

[Portfolio] Your stakes #112

Closed mitchellchou closed 2 years ago

mitchellchou commented 2 years ago

As a likecoin owner, I want to see a list of which validators I have delegated so that I can arrange my coin or participate in governance.

Acceptance criteria

Positive

Negative

General

Content

Design

Figma image.png

Reference

mitchellchou commented 2 years ago

@Rico-Wong @chihimng @ivanng-oursky Confirmed with client, it's rare for people to stake a lot of validators (Let's say more than 5?), we can just handle it in the easiest way. e.g.

  1. pagination, without sorting
  2. pagination, frontend sorting
  3. fixed height, scrollable, with or without sorting
ivanng-oursky commented 2 years ago

@Rico-Wong @chihimng @ivanng-oursky Confirmed with client, it's rare for people to stake a lot of validators (Let's say more than 5?), we can just handle it in the easiest way. e.g.

  1. pagination, without sorting
  2. pagination, frontend sorting
  3. fixed height, scrollable, with or without sorting

IMO 3 would be easily implemented, since all stake rows are fetched and unpaginated when obtaining the total staked amount (used in your portfolio panel), that code can be reused.

1 and 2 involves reimplementing pagination with a page size of 4, since the cosmjs sdk doesn't allow specifying pagination page size, so additional work is needed.

ivanng-oursky commented 2 years ago

Since component requires data from both RPC server and bdjuno db, it is better fetch and combine both from the graphql server. Which will be handled in oursky/likedao#103.

Only UI will be implemented in this story.