From 495fde58c1effbc7aa2deaa57b0cc182215e6ce1 Mon Sep 17 00:00:00 2001 From: zorzal Date: Wed, 23 Oct 2024 16:18:22 -0400 Subject: [PATCH] feat: add typehash constants --- solidity/contracts/utils/Typehash.sol | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 solidity/contracts/utils/Typehash.sol diff --git a/solidity/contracts/utils/Typehash.sol b/solidity/contracts/utils/Typehash.sol new file mode 100644 index 00000000..6a68c94c --- /dev/null +++ b/solidity/contracts/utils/Typehash.sol @@ -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('');