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

WIP ValidatorsExitBus Oracle tests #638

Conversation

DiRaiks
Copy link
Contributor

@DiRaiks DiRaiks commented Feb 20, 2023

  • clean up/add helpers/etc at existing tests
  • deploy tests
    • initialise
      • paused at initilazed
    • interacting contracts are set
  • pause/resume(can be part of other tests)
    • report submitting is not available at pause
  • _handleConsensusReport callback(invoked at the end of baseOracle.submitConsensusReport by HashConsensus contract)
    • happy path
    • emits warning on incomplete processing
    • not accessible with current report types
  • submitReportData
    • surface tests that baseOracle internal checks are invoked
    • security(can be part of other/older tests)
      • custom AC (_checkMsgSenderIsAllowedToSubmitData)
      • hash match with report is enforced
      • data safety is enforced
    • _handleConsensusReportData
      • enforces data format
      • enforces length
      • enforces increasing validator indices within one node operator
      • sanity check invoke
      • _processExitRequestsList
        • assembly
      • processing state is updated
  • At Init/After/Between report view function reflect correct oracle state
    • getTotalRequestsProcessed
    • getLastRequestedValidatorIndices
    • getProcessingState

@DiRaiks DiRaiks marked this pull request as draft February 20, 2023 09:22
@TheDZhon TheDZhon mentioned this pull request Feb 20, 2023
26 tasks
@TheDZhon TheDZhon marked this pull request as ready for review February 20, 2023 13:16
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.

LGTM

@TheDZhon TheDZhon merged commit 694c669 into feature/shapella-upgrade-followups Feb 20, 2023
@TheDZhon TheDZhon deleted the feature/shapella-upgrade-tests-validators-exit-bus-oracle branch February 20, 2023 13:40
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.

4 participants