Skip to content

Conversation

@TheDZhon
Copy link
Contributor

@TheDZhon TheDZhon commented Jan 16, 2026

Summary

Comprehensive Lido V3 and stVaults documentation update:

  • New contract docs: VaultHub, StakingVault, Dashboard, LazyOracle, PredepositGuarantee, OperatorGrid, VaultFactory, Accounting
  • Enhanced guides: Rewrote protocol-levers.md and steth-superuser-functions.md with concrete addresses and role holders
  • Added struct definitions and fixed accuracy issues (Burner address, implementation vs proxy labels)

Test cases

  • npm run build
  • Verify Etherscan links and internal doc links
  • Confirm struct definitions match source code

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive contract reference documentation for the stVaults system and integrates these references into existing documentation. The changes provide detailed API documentation for 9 stVaults contracts with method signatures, descriptions, and cross-references.

Changes:

  • Added 9 new contract documentation files covering VaultHub, StakingVault, PredepositGuarantee, OperatorGrid, LazyOracle, Dashboard, factories, beacon, and consolidation helper contracts
  • Updated sidebar navigation to include all new contract pages in the contracts section
  • Added cross-reference links from stVaults technical docs and whitepaper to the new contract reference pages

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
sidebars.js Adds 9 new contract reference pages to the contracts section navigation
docs/contracts/vault-hub.md Main VaultHub contract reference with comprehensive API documentation
docs/contracts/staking-vault.md StakingVault primitive contract reference with full method listings
docs/contracts/predeposit-guarantee.md PredepositGuarantee (PDG) contract reference including deposit flow diagrams
docs/contracts/operator-grid.md OperatorGrid registry contract reference with tier and group management APIs
docs/contracts/lazy-oracle.md LazyOracle adapter contract reference with reporting and quarantine mechanisms
docs/contracts/dashboard.md Dashboard management contract reference with role-based operations
docs/contracts/staking-vault-factory.md VaultFactory deployment contract reference
docs/contracts/staking-vault-beacon.md UpgradeableBeacon proxy pattern reference
docs/contracts/validator-consolidation-requests.md Consolidation helper contract reference for EIP-7251 support
run-on-lido/stvaults/tech-documentation/tech-design.md Adds link to contract reference from technical design doc
run-on-lido/stvaults/tech-documentation/integration-overview.md Adds link to contract reference and formatting fix for bullet list
run-on-lido/stvaults/index.md Adds contract reference link to stVaults documentation center
docs/lido-v3-whitepaper.mdx Adds contract reference link to whitepaper related documentation section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheDZhon TheDZhon requested a review from a team as a code owner January 16, 2026 16:06
Copy link
Contributor Author

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

👀

TheDZhon and others added 11 commits January 16, 2026 19:43
- Add new Accounting contract documentation with structs and methods
- Add roles/permissions and PDGPolicy enum docs to Dashboard
- Add VaultConnection, VaultRecord, Report structs to VaultHub
- Add staged balance explanation and Deposit struct to StakingVault
- Fix requestValidatorExit method signature in VaultHub

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add report freshness documentation to LazyOracle
- Add key concepts (groups, tiers, default tier, jailing) to OperatorGrid
- Add BLS verification context and structs to PredepositGuarantee
- Add factory chaining and connect deposit docs to VaultFactory
- Clarify EIP-7002 for ejectValidators in StakingVault
- Add node operator fee accounting to Dashboard
- Add ownership and ossification context to StakingVaultBeacon

Co-Authored-By: Claude Opus 4.5 <[email protected]>
These contracts are implementation addresses, not singleton proxies.
Individual instances are deployed by VaultFactory as proxies/beacon proxies.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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