-
Notifications
You must be signed in to change notification settings - Fork 9
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
Its possible to nominate a slashed or deregistered op #838
Its possible to nominate a slashed or deregistered op #838
Conversation
✅ Deploy Preview for dev-astral ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
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.
lgtm
User description
Its possible to nominate a slashed or deregistered op
Following some change in status the logic was broken, I improved the logic
PR Type
enhancement, bug fix
Description
NominationsTable
andOperatorsList
components by using enums for operator status and pending actions.pending_action
field to theoperator
type in GraphQL queries to improve data handling.constants/staking.ts
to standardize operator and nominator statuses and actions.constants/tables.ts
to use the newOperatorStatus
enum.Changes walkthrough 📝
staking.ts
Add pending_action field to operator type
explorer/gql/types/staking.ts
pending_action
field to theoperator
type inNominationsListQuery
.NominationsTable.tsx
Update action exclusion logic using enums
explorer/src/components/Staking/NominationsTable.tsx
actions.
OperatorStatus
andOperatorPendingAction
enums.
OperatorsList.tsx
Enhance operator action logic with enums
explorer/src/components/Staking/OperatorsList.tsx
actions.
OperatorStatus
andOperatorPendingAction
enums.
staking.query.ts
Include pending_action in operator GraphQL query
explorer/src/components/Staking/staking.query.ts
pending_action
field to theoperator
type in GraphQL query.staking.ts
Define enums for staking statuses and actions
explorer/src/constants/staking.ts
actions.
tables.ts
Use OperatorStatus enum for filter options
explorer/src/constants/tables.ts
OperatorStatus
enum.tables.ts
Update storage version for table states
explorer/src/states/tables.ts