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

Staking interface updates #302

Open
wants to merge 6 commits into
base: tokens-threshold-lib
Choose a base branch
from

Commits on Nov 9, 2022

  1. Move fetching owner stakes to redux

    We want to fetch the owner stakes only once so the best place for
    fetching this data is one-shot listener effect.
    r-czajkowski committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    42a0675 View commit details
    Browse the repository at this point in the history
  2. Refactor registering listeners

    We should register listener in different file than the one in which it
    is defined otherwise we may run into an issue with webpack import
    orddering. Here we create a common function that should register all
    listeners and we call this fn after creating a store and after resetting
    the store.
    r-czajkowski committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    fced6c3 View commit details
    Browse the repository at this point in the history
  3. Clean up the StakeData type

    Use the `Stake` type from the threshold ts lib- this removes the
    `preConfig` filed from the `StakeData` type. The PRE is a staking app so
    should be stored in a dedicated slice(rewards). We are going to add the
    PRE app to the rewards slice in a follow-up work.
    r-czajkowski committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    17d6e1b View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Move fetching the PRE app data to ts-lib and redux

    The PRE is a seprate app so should be stored in the `staking-apps` slice
    not as a part of the stake data.
    r-czajkowski committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    527d535 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    106d739 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e17f7c View commit details
    Browse the repository at this point in the history