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

feat: add pausable functionality to Core and Prover #84

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

mariocao
Copy link
Member

Motivation

Add support for pausing the SedaCoreV1 and Secp256k1Prover contracts.

Explanation of Changes

  • Use of OpenZeppelin PausableUpgradeable contract
  • Add initializer and whenNotPaused modifiers

Testing

  • Check paused functions in both contracts

contracts/core/SedaCoreV1.sol Outdated Show resolved Hide resolved
contracts/core/abstract/ResultHandlerBase.sol Outdated Show resolved Hide resolved
bytes32[] calldata merkleProof
) external view override returns (bool, address) {
// Only return true if we have a stored batch at this height
BatchData memory batch = _batches[batchHeight];
Copy link

Choose a reason for hiding this comment

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

Is batchHeight the height the batch was posted or the batchNumber? Paranoid thought we can't ever have multiple batches per a height right?

Copy link

Choose a reason for hiding this comment

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

Or did I forget and those are the same thing :x

@mariocao mariocao merged commit 4a84692 into feat/incentives Jan 14, 2025
1 check passed
@mariocao mariocao deleted the feat/pausable branch January 14, 2025 15: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.

3 participants