Repository navigation
feat(frontend): Attestor Staking, Dispute Resolution & Slashing Management Interface (#296) - #336
Closed
huangji6693-max wants to merge 1 commit into
Closed
huangji6693-max wants to merge 1 commit into
huangji6693-max wants to merge 1 commit into
Conversation
… management interface (LynxXProtocol#296)
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
5 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #296
Summary
Implements the Attestor Staking, 14-Day Unbonding, M-of-N Dispute Resolution & Slashing Management Interface wired to
contracts/registry/src/staking.rsandcontracts/registry/src/voting.rs:frontend/src/lib/soroban.ts,frontend-dashboard-remote/src/lib/soroban.ts,frontend-wizard-remote/src/lib/soroban.ts):UNBONDING_PERIOD_SECONDS = 1_209_600(14 days),ATTESTOR_VOTE_TIMEOUT_SECONDS = 604_800(7 days), andSLASH_PERCENT = 10.fetchAttestorStakeInfo,submitStakeAttestor,submitRequestUnstake,submitFinalizeUnstake,submitCastDisputeVote,submitCheckDisputeTimeout,formatUnbondingCountdown, andcalculateSlashedBalance.CreateCommitmentParamsandsubmitCreateCommitmentto encode M-of-Nattestors(Vec<Address>) andvote_threshold(u32) when an attestor panel is selected, while preserving the single-resolver default ([],0).frontend/src/components/AttestorStakingModal.tsx,frontend-dashboard-remote/src/components/AttestorStakingModal.tsx):Fulfilled,Late,Breached) with slashing alerts.frontend-dashboard-remote/src/ReputationDashboard.tsx,frontend-wizard-remote/src/CreateCommitmentWizard.tsx):Attestor Staking & Disputestrigger and modal inReputationDashboard.Single ArbitratorvsM-of-N Attestor Staking Panelselector, staked attestor picker, and quorum threshold (MofN) configuration inCreateCommitmentWizard.Verification
npx vitest run src/components/AttestorStakingModal.test.tsx(5/5 tests passing)npm run lint(0 errors)npm run buildacrossfrontend,frontend-dashboard-remote, andfrontend-wizard-remote(all exit 0)