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: epoch #5

Merged
merged 25 commits into from
Aug 15, 2024
Merged

feat: epoch #5

merged 25 commits into from
Aug 15, 2024

Conversation

ashitakah
Copy link
Contributor

🤖 Linear

Closes GRT-66

Copy link

linear bot commented Aug 9, 2024

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

https://thegraph.com/docs/en/network/contracts/

@0xShaito 0xShaito changed the base branch from dev to feat/request-creator August 9, 2024 20:41
Copy link
Member

@0xShaito 0xShaito left a 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

foundry.toml Outdated Show resolved Hide resolved
src/contracts/EBORequestCreator.sol Outdated Show resolved Hide resolved
src/contracts/EBORequestCreator.sol Outdated Show resolved Hide resolved
src/interfaces/IEBORequestCreator.sol Outdated Show resolved Hide resolved
Comment on lines +1 to +4
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.26;

interface IEpochManager {
Copy link
Member

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? 😕

Copy link
Contributor Author

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

Comment on lines +1 to +4
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

address constant _EPOCH_MANAGER = 0x5A843145c43d328B9bB7a4401d94918f131bB281;
Copy link
Member

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?

Copy link
Contributor Author

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

test/unit/EBORequestCreator.t.sol Outdated Show resolved Hide resolved
0xShaito
0xShaito previously approved these changes Aug 14, 2024
foundry.toml Show resolved Hide resolved
Base automatically changed from feat/request-creator to dev August 15, 2024 11:43
@0xShaito 0xShaito dismissed their stale review August 15, 2024 11:43

The base branch was changed.

0xShaito
0xShaito previously approved these changes Aug 15, 2024
@0xJabberwock 0xJabberwock merged commit 8661d27 into dev Aug 15, 2024
7 checks passed
@0xJabberwock 0xJabberwock deleted the feat/epoch branch August 15, 2024 18:29
@0xShaito 0xShaito restored the feat/epoch branch August 16, 2024 17:48
@0xShaito 0xShaito mentioned this pull request Aug 16, 2024
@0xShaito 0xShaito deleted the feat/epoch branch August 16, 2024 17:54
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