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

Feature/staking #140

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
Draft

Feature/staking #140

wants to merge 10 commits into from

Conversation

aidan-starke
Copy link
Contributor

Description

  • This is going to be the working branch for staking - I will make PR's into it for a simpler review process

@vercel
Copy link

vercel bot commented Mar 30, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/cennznet/app-hub/459DJhguTiKBYiZKSqcc14Vkm4wF
✅ Preview: https://app-hub-git-feature-staking-cennznet.vercel.app

@vercel vercel bot temporarily deployed to Preview March 31, 2022 00:39 Inactive
* add staking types

* add `StakeElectedInfo`

* fetch election info

* display elected info

* only display stash if different from main account

* improve if statement, `validator prefs` -> `commission`

* improve typing

* nominate validators WIP

* setup staking overview panel, fetch validators/nextElectedIn/nextReward

* ElectedOption -> ElectedCandidate

* add cube svg

* add poolRegistry

* edit stake info colour

* style stake overview (summary & elected)

* fix validator count

* fix parseStakingInfo

* refactor, display elected status

* display elected accountId on identicon hover

* update nextElectionIn every 5s

* format numbers to display with commas

* update styling, display waiting & nominators

* update export

* switch between elected & nominate tables

* upgrade api to 2.1.0-rc4

* remove label

* improve parsing of elected info

* fix `parseElectionBalance`

* update `useSectionUri` imports

* add `exposure.total` to `ElectedCandidate` interface

* display StakeElected table, set overview panel width to `fit-content`

* parse elected/waiting info in provider

* styling changes, update `waiting` number

* display elected & waiting validators, add `commission` & `nominate` columns

* `StakeElected` -> `StakeValidatorTable`

* add `extrinsic`, `setExtrinsic` to provider

* add `stakeStashInput`

* edit label

* sign and send extrinsic on submit

* allow user to enter stash address for new stake

* set nominate extrinsic
@vercel vercel bot temporarily deployed to Preview April 5, 2022 22:53 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2022 23:03 Inactive
@vercel vercel bot temporarily deployed to Preview April 5, 2022 23:13 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2022 20:07 Inactive
* add EraIndex, Nominations, Option, StorageKey, NominatedBy, Result

* define extractNominators function

* display oversubscribed status, TODO: display onlineCount status

* cursor: help for tooltips

* update imports

* fix fetchRecentlyOnline

* fix build error
@vercel vercel bot temporarily deployed to Preview April 6, 2022 23:20 Inactive
@ken-futureverse ken-futureverse changed the base branch from main to develop July 25, 2022 07:36
@vercel
Copy link

vercel bot commented Jan 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
app-hub ✅ Ready (Inspect) Visit Preview Jan 10, 2023 at 2:23AM (UTC)

* set up stake actions

* fetch account ledger / staking balance / unbonded balance and display to user

* add 'view stake' StakeAction and display user's current stake info

* Trigger build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant