-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Staking Next Page #11483
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
Open
ap211unitech
wants to merge
38
commits into
master
Choose a base branch
from
feat/staking-next-page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Staking Next Page #11483
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6217628
feat: initialized staking-next page
ap211unitech a2d53d9
feat: enhance staking-next page with dynamic tabs and translation sup…
ap211unitech d31da2b
feat: enabled payouts page for staking-next
ap211unitech 739064b
feat: enabled pools page for staking-next
ap211unitech 57d61ae
feat: enabled bags page for staking-next
ap211unitech 5df46e4
fix: build errors
ap211unitech a18b2b8
chore: added translation files
ap211unitech cea2d33
refactor: relay and system staking page
ap211unitech fdce3a4
feat: enabled overview page for staking-next
ap211unitech 723e46d
feat: enabled actions page for staking-next
ap211unitech 294ad9b
feat: enabled targets page for staking-next
ap211unitech 21ef80b
feat: enabled query page for staking-next
ap211unitech 78cb444
feat: add Command Center component and integrate with Relay Staking Page
ap211unitech 20aa25c
feat: limit event display to a maximum of 5 and adjust styling in Com…
ap211unitech 728e73b
feat: display more info for relay command center
ap211unitech f0615b0
chore: added translations
ap211unitech d4e9e31
refactor: relay section for command center
ap211unitech 11e1691
feat: storage fetch for ah api
ap211unitech ad9ad08
feat: integrate Command Center into StakingApp routing
ap211unitech 149fd3b
feat: add AssetHubSection component and update RelaySection styling
ap211unitech 103ca72
chore: added translation
ap211unitech 477159d
feat: implement API check for staking-next route
ap211unitech 5ad5cfa
feat: enhance AssetHubSection with detailed multiblock and staking su…
ap211unitech 822f7cd
chore: added translations
ap211unitech 4a8ca8c
chore: delete folder
ap211unitech d4e01f4
chore: added folders
ap211unitech 18146d7
feat: update layout and styling in CommandCenter components
ap211unitech 49abc2d
feat: improve layout of relay chain and events summary in AssetHubSec…
ap211unitech 6eb4020
feat: add Slashes component to StakingApp and update TypeScript paths
ap211unitech 58c2152
feat: enhance CommandCenter with relay and para endpoints integration
ap211unitech 30707a9
feat: refactor CommandCenter to integrate relay and para endpoints wi…
ap211unitech 9263093
feat: enhance AssetHubSection and RelaySection with API connection in…
ap211unitech 1505d35
feat: enhance CommandCenter and RelaySection with children prop and d…
ap211unitech 9f3214e
feat: improve API disconnection handling and reset state in CommandCe…
ap211unitech 4028536
feat: improve command center API handling and enhance relay section s…
ap211unitech 19a75a2
feat: add translations for Active Validators and All Validators in lo…
ap211unitech a7e6758
feat: update route path for targets to all-validators in StakingApp
ap211unitech 204baad
feat: update README with details on Asset Hub migration and staking w…
ap211unitech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2017-2025 @polkadot/apps-routing authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import type { ApiPromise } from '@polkadot/api'; | ||
import type { Route, TFunction } from './types.js'; | ||
|
||
import Component from '@polkadot/app-staking-next'; | ||
|
||
function needsApiCheck (api: ApiPromise): boolean { | ||
try { | ||
return !!((api.tx.stakingNextAhClient) || (api.tx.staking && api.tx.stakingNextRcClient)); | ||
} catch { | ||
return false; | ||
} | ||
} | ||
|
||
export default function create (t: TFunction): Route { | ||
return { | ||
Component, | ||
display: { | ||
needsApi: [], | ||
needsApiCheck | ||
}, | ||
group: 'network', | ||
icon: 'certificate', | ||
name: 'staking-next', | ||
text: t('nav.staking-next', 'Staking Next', { ns: 'apps-routing' }) | ||
}; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Accounts": "Accounts", | ||
"Active Validators": "Active Validators", | ||
"All Validators": "All Validators", | ||
"Asset Hub chain": "Asset Hub chain", | ||
"Asset Hub client pallet (AhClient) is blocked currently, useful for migration signal from the fellowship.": "Asset Hub client pallet (AhClient) is blocked currently, useful for migration signal from the fellowship.", | ||
"Bags": "Bags", | ||
"Command Center": "Command Center", | ||
"No events available": "No events available", | ||
"Payouts": "Payouts", | ||
"Pools": "Pools", | ||
"Relay chain": "Relay chain", | ||
"Slashes": "Slashes", | ||
"There is a validator set queued in ah-client.": "There is a validator set queued in ah-client.", | ||
"Validator stats": "Validator stats", | ||
"active era": "active era", | ||
"current era": "current era", | ||
"era session index": "era session index", | ||
"events": "events", | ||
"historical range": "historical range", | ||
"id": "id", | ||
"multiblock phase": "multiblock phase", | ||
"multiblock queued score": "multiblock queued score", | ||
"number of validators": "number of validators", | ||
"session": "session", | ||
"signed submissions": "signed submissions", | ||
"snapshot range": "snapshot range" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"Accounts": "", | ||
"Accounts injected from any of these extensions will appear in this application and be available for use. The above list is updated as more extensions with external signing capability become available.": "", | ||
"Active": "", | ||
"Active Validators": "", | ||
"Active nominations ({{count}})": "", | ||
"Add": "", | ||
"Add Bounty": "", | ||
|
@@ -69,6 +70,7 @@ | |
"Addresses": "", | ||
"Advanced creation options": "", | ||
"After delay": "", | ||
"All Validators": "", | ||
"All active/available cores": "", | ||
"All active/available tracks": "", | ||
"All available slices": "", | ||
|
@@ -102,6 +104,8 @@ | |
"Approving of all or none of the options is equivalent and will not affect the outcome of the poll.": "", | ||
"As a council member, you can suggest an initial value for the tip, each other council member can suggest their own.": "", | ||
"As such it is recommended that you setup a proxy to control operations via the stash.": "", | ||
"Asset Hub chain": "", | ||
"Asset Hub client pallet (AhClient) is blocked currently, useful for migration signal from the fellowship.": "", | ||
"At block": "", | ||
"Auctions": "", | ||
"Auctions will be deprecated in favor of Coretime. When Coretime is active in Polkadot, this page will be removed.": "", | ||
|
@@ -175,6 +179,7 @@ | |
"Close deadline": "", | ||
"Close proposal": "", | ||
"Color": "", | ||
"Command Center": "", | ||
"Committee prime member, default voting": "", | ||
"Completed": "", | ||
"Confirm ABI removal": "", | ||
|
@@ -953,6 +958,7 @@ | |
"There are no pending proposals": "", | ||
"There are no registered parachains": "", | ||
"There are no unapplied/pending slashes": "", | ||
"There is a validator set queued in ah-client.": "", | ||
"There is an existing reference count on the sender account. As such the account cannot be reaped from the state.": "", | ||
"There is currently an ongoing election for new validator candidates. As such staking operations are not permitted.": "", | ||
"There is no on-chain attestation statement associated with the Ethereum account {{ethereumAddress}}": "", | ||
|
@@ -1162,6 +1168,7 @@ | |
"activate": "", | ||
"active": "", | ||
"active / nominators": "", | ||
"active era": "", | ||
"active issuance": "", | ||
"active raised / cap": "", | ||
"active total": "", | ||
|
@@ -1329,6 +1336,7 @@ | |
"current approval (failing)": "", | ||
"current approval (passing)": "", | ||
"current curator": "", | ||
"current era": "", | ||
"current lease": "", | ||
"current price": "", | ||
"current range winning bid": "", | ||
|
@@ -1409,6 +1417,7 @@ | |
"epoch": "", | ||
"era": "", | ||
"era points": "", | ||
"era session index": "", | ||
"era {{era}}": "", | ||
"era {{era}}, {{count}} slashes": "", | ||
"era {{era}}/unapplied": "", | ||
|
@@ -1473,6 +1482,7 @@ | |
"hex-encoded call": "", | ||
"hex-encoded storage key": "", | ||
"historic results": "", | ||
"historical range": "", | ||
"holders": "", | ||
"https://example.com": "", | ||
"id": "", | ||
|
@@ -1573,6 +1583,8 @@ | |
"mnemonic seed": "", | ||
"mortal, valid from #{{startAt}} to #{{endsAt}}": "", | ||
"motions": "", | ||
"multiblock phase": "", | ||
"multiblock queued score": "", | ||
"multisig": "", | ||
"multisig call data": "", | ||
"multisig name": "", | ||
|
@@ -1603,6 +1615,7 @@ | |
"nominators": "", | ||
"nominators to be removed": "", | ||
"none": "", | ||
"number of validators": "", | ||
"of {{locked}} vested": "", | ||
"on-chain bonding duration": "", | ||
"on-chain multisig accounts": "", | ||
|
@@ -1769,7 +1782,9 @@ | |
"signature crypto type": "", | ||
"signature of supplied data": "", | ||
"signature {{type}}": "", | ||
"signed submissions": "", | ||
"skeptic": "", | ||
"snapshot range": "", | ||
"society head": "", | ||
"sold/offered": "", | ||
"[email protected]": "", | ||
|
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @polkadot/app-staking-next | ||
ap211unitech marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
With Asset Hub migration, the workflow of the staking system will change. The "user interactions" (nominate, bond, etc) are by and large the same, yet some details outlined below will change: | ||
|
||
On the relay chain, the session pallet will rotate session (aka. epochs) at a fixed rate as it did before. It will send these to AH in the form of a SessionReport message. Possibly, it will also send messages about offences to AH so that they can be applied and actually slash staker balances in AH. | ||
|
||
`pallet-session` on the relay chain will only interact with `pallet-staking-next-ah-client`. `ah-client` could at any point, if it has one, return a validator set to session to be used for the next session. | ||
|
||
In any session change in pallet-session where a new validator set is activated, that SessionReport will contain two pieces of information: | ||
|
||
More Info can be found here - https://hackmd.io/7PiBrGxxRG2ib-WRZYJZhQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"bugs": "https://github.com/polkadot-js/apps/issues", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"homepage": "https://github.com/polkadot-js/apps/tree/master/packages/page-staking-next#readme", | ||
"license": "Apache-2.0", | ||
"name": "@polkadot/app-staking-next", | ||
"private": true, | ||
"repository": { | ||
"directory": "packages/page-staking-next", | ||
"type": "git", | ||
"url": "https://github.com/polkadot-js/apps.git" | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"version": "0.152.2-11-x", | ||
"peerDependencies": { | ||
"react": "*", | ||
"react-dom": "*", | ||
"react-is": "*" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming the Section Staking Next might be confusing for anyone outside of the context of this task, can be rename it to something more descriptive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do here 🤔, this is basically route name & "Staking Next" is the term we are using now.