Skip to content

Commit

Permalink
feat: add typehash constants
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Oct 23, 2024
1 parent 88eaddf commit 495fde5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions solidity/contracts/utils/Typehash.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

bytes32 constant _PLEDGE_FOR_DISPUTE_TYPEHASH = keccak256(
'pledgeForDispute(IOracle.Request _request, IOracle.Dispute _dispute,IAccessController.AccessControl _accessControl)'
);

bytes32 constant _PLEDGE_AGAINST_DISPUTE_TYPEHASH = keccak256(
'pledgeAgainstDispute(IOracle.Request _request, IOracle.Dispute _dispute,IAccessController.AccessControl _accessControl)'
);

bytes32 constant _CLAIM_VOTE_TYPEHASH = keccak256('');
bytes32 constant _CLAIM_PLEDGE_TYPEHASH = keccak256('');

bytes32 constant _RELEASE_UNUTILIZED_RESPONSE_TYPEHASH = keccak256('');
bytes32 constant _CAST_VOTE_TYPEHASH = keccak256('');
bytes32 constant _COMMIT_VOTE_TYPEHASH = keccak256('');
bytes32 constant _REVEAL_VOTE_TYPEHASH = keccak256('');

0 comments on commit 495fde5

Please sign in to comment.