Skip to content
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

Accounting oracle: tests & fixes #618

Conversation

DiRaiks
Copy link
Contributor

@DiRaiks DiRaiks commented Feb 14, 2023

  • access control
  • initialize pre-conditions
  • legacy oracle migration
  • submitReportData checks contract version
  • submitReportData checks ref. slot
  • submitReportData checks data hash
  • submitReportData checks consensus version
  • submitReportData delivers the data to Lido and StakingRouter
  • submitReportData enforces extra data format
  • submitReportData enforces zero extra data items count for the empty format
  • submitReportData enforces zero data hash for the empty format
  • submitReportData enforces non-zero extra data items count for any format apart from empty
  • submitReportData enforces module ids sorting order
  • submitReportData enforces data safety boundaries
  • submitReportData resets and populates extra data processing state
  • submitReportExtraDataList enforces the deadline
  • submitReportExtraDataList checks extra data hash
  • submitReportExtraDataList checks ref slot
  • submitReportExtraDataList reverts if extra data already processed
  • (!!!) submitReportExtraDataList reverts if extra data partially processed [not reachable with current contract]
  • submitReportExtraDataList reverts if main data for the ref. slot not yet submitted
  • submitReportExtraDataList checks items count
  • submitReportExtraDataList enforces data format
  • submitReportExtraDataList enforces data sorting order
  • submitReportExtraDataList enforces data safety boundaries
  • submitReportExtraDataList delivers the data to staking router
  • submitReportExtraDataList updates extra data processing state
  • submitReportExtraDataList handles edge cases regarding the data
  • events (as part of other tests)
  • No check for report in submitReportData #634

@TheDZhon TheDZhon mentioned this pull request Feb 16, 2023
26 tasks
@skozin skozin changed the title Tests accounting oracle Accounting oracle: tests & fixes Feb 16, 2023
@Jeday Jeday requested a review from skozin February 18, 2023 10:01
@skozin skozin force-pushed the feature/shapella-upgrade-tests-accounting-oracle branch from ef0cc67 to 3f65232 Compare February 18, 2023 18:55
@skozin skozin force-pushed the feature/shapella-upgrade-tests-accounting-oracle branch from 3f65232 to 113fb29 Compare February 18, 2023 18:59
@skozin skozin force-pushed the feature/shapella-upgrade-tests-accounting-oracle branch from 42ddff5 to fece521 Compare February 19, 2023 20:22
@TheDZhon TheDZhon changed the base branch from feature/shapella-upgrade to feature/shapella-upgrade-followups February 19, 2023 20:34
Copy link
Contributor

@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.

It's huge 👍 🚀

@TheDZhon TheDZhon merged commit 3e2803f into feature/shapella-upgrade-followups Feb 19, 2023
@TheDZhon TheDZhon deleted the feature/shapella-upgrade-tests-accounting-oracle branch February 19, 2023 20:48
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.

5 participants