XLabs / wormscan-ui

6 stars 3 forks source link

[Dev-Tools] Governor Section #568

Open SamantaCasal opened 8 months ago

SamantaCasal commented 8 months ago

Description

In this section, we will display the current governance settings that will serve as a tool for developers to understand when a transaction is considered as "Big tx", what the daily limit per chain is, and how much remains before reaching that daily limit.

For this new section, the requirements are as follows:

Create a table with the followings columns :

  1. Chain Name and Logo
  2. Big Transaction
  3. Daily Limit
  4. Daily Limit remaining

    Acceptance criteria:

    1. The section should follow the same style as seen on https://wormholescan.io/#/txs , that is, it should adhere to the current color palette, typography, link styling, background, etc.
    2. The transaction list should display up to 50 transactions per page, followed by pagination options.
    3. The new section should be within DEV TOOLS tabs on the header

Resource

  1. Endpoints:

https://api.staging.wormscan.io/api/v1/governor/limit

  1. Figma: See Alternative colors and size... version HERE
SamantaCasal commented 7 months ago

FYI: @giulianoconti

    1. The title in the header should be changed to "Governor."
  1. The data within the column should be centered.
SamantaCasal commented 7 months ago

OK!

https://github.com/XLabs/wormscan-ui/assets/69044575/0c0e3c4c-73bc-41cc-9578-27e640d4eb46

Image