-
Notifications
You must be signed in to change notification settings - Fork 2
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: epoch #5
feat: epoch #5
Conversation
GRT-66 EBORequestCreator validate epoch number against the epoch manager
Validate that the epoch number is not in the future. In the constructor, get the current epoch number and only allow the creation of requests for epochs equal or more that that one https://arbiscan.io/address/0x5A843145c43d328B9bB7a4401d94918f131bB281 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good! Some minor comments
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.26; | ||
|
||
interface IEpochManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't out there a package with The Graph's interfaces? 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe yes but we need just 1 function, thats why I create the interface
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.26; | ||
|
||
address constant _EPOCH_MANAGER = 0x5A843145c43d328B9bB7a4401d94918f131bB281; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the linter complain when no initial underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDK to be honest, I assume that for constants should start with underscore
🤖 Linear
Closes GRT-66