Skip to content

Remove retired KEEP legacy surfaces#3947

Open
mswilkison wants to merge 2 commits intomainfrom
codex/remove-retired-legacy-surfaces
Open

Remove retired KEEP legacy surfaces#3947
mswilkison wants to merge 2 commits intomainfrom
codex/remove-retired-legacy-surfaces

Conversation

@mswilkison
Copy link
Copy Markdown

Summary

  • remove retired KEEP-era token-stakedrop tooling, the old rewards withdrawal helper, and the legacy token dashboard package
  • delete TokenStakingEscrow and detach v1 staking/migrations/tests from the escrow artifact
  • remove deprecated token-dashboard Kubernetes manifests and add docs/retired-components.md

Validation

  • git diff --check
  • BABEL_CACHE_PATH=/Users/maclane/Projects/claude-test/keep-core/solidity-v1/.babel-cache.json npm run compile
  • BABEL_CACHE_PATH=/Users/maclane/Projects/claude-test/keep-core/solidity-v1/.babel-cache.json ./node_modules/.bin/truffle compile
  • rg check for retired references only returns docs/retired-components.md

Notes

  • Focused mocha smoke tests were attempted but did not reach assertions in this local legacy stack: Node 25 hit an OpenZeppelin/Ganache provider error, Node 18 hit an undici File global mismatch, and local Node 22 is missing a Homebrew simdjson dylib.

Add explicit cancelled-stake guard to TopUps.instantComplete and
TopUps.initiate. Previously, TokenStakingEscrow.hasDeposit guarded
against this for grant-backed stakes; removing the escrow left a path
where cancelStake (which zeroes amount but preserves createdAt) allowed
the same owner to top-up the same operator back into an active state.

Also remove stale "for escrow" from GrantStaking NatSpec and clarify
that the committed mainnet private key in retired-components.md has
been rotated.

Regression tests added for both code paths (instantComplete and
initiate) in TestTokenStake.js.

Add .ubsignore to exclude test directories from UBS null-guard checks;
Chai assertion chains (.to.eq.BN) are intentionally unguarded in tests.
Copy link
Copy Markdown
Collaborator

@piotr-roslaniec piotr-roslaniec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and addressed findings: cancelled-operator resurrection guard restored in TopUps, stale NatSpec updated, private key note clarified. Regression tests added.

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.

2 participants