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: access control #44

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from
Draft

feat: access control #44

wants to merge 6 commits into from

Conversation

0xShaito
Copy link
Member

🤖 Linear

Closes OPO-XXX

@0xShaito 0xShaito marked this pull request as draft September 13, 2024 13:10
contract OracleTypehash {
bytes32 internal constant PROPOSE_TYPEHASH = keccak256('ProposeResponse(Request _request, Response _response)');
bytes32 internal constant DISPUTE_TYPEHASH =
keccak256('DisputeResponse(Request _request, Response _response, Dispute _dispute,)');
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
keccak256('DisputeResponse(Request _request, Response _response, Dispute _dispute,)');
keccak256('DisputeResponse(Request _request, Response _response, Dispute _dispute)');

i understand this is a WIP, but this one im pointing because it can be easy to miss

revert ERC2612ExpiredSignature(_permit.deadline);
}
// signature, params (removing the last parameter for the access control), nonce, deadline
bytes32 structHash = keccak256(abi.encode(_signature, _params, _useNonce(_user), _permit.deadline));
Copy link
Member

Choose a reason for hiding this comment

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

should we add block.chainId for cross-chain, and something like address(this) - this last one not so sure about just want to make sure that this signature is not repeatable in another access control module?

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.

2 participants