Skip to content

Commit 16afda2

Browse files
committed
🌲 Prefix SIGNER_INFO offsets
1 parent 6a78a0c commit 16afda2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

contracts/IDIDSigners.sol

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
pragma solidity ^0.8.0;
44

5+
type uint128x2 is uint256;
6+
57
struct Signature {
68
bytes32 r;
79
uint256 yParityAndS;
810
}
911

10-
uint256 constant DEPOSIT_OFFSET = 64;
12+
uint256 constant SIGNER_INFO_DEPOSIT_OFFSET = 64;
1113

12-
uint256 constant END_TS_OFFSET = 112;
14+
uint256 constant SIGNER_INFO_END_TS_OFFSET = 112;
1315

14-
uint256 constant END_TS_MASK = uint256(type(uint64).max) << 112;
16+
uint256 constant SIGNER_INFO_END_TS_MASK = uint256(type(uint64).max) << 112;
1517

16-
uint256 constant WITHDRAW_OFFSET = 176;
18+
uint256 constant SIGNER_INFO_WITHDRAW_OFFSET = 176;
1719

18-
uint256 constant WITHDRAW_MASK = uint256(type(uint48).max) << 176;
20+
uint256 constant SIGNER_INFO_WITHDRAW_MASK = uint256(type(uint48).max) << 176;
1921

2022
/**
2123
*
@@ -25,8 +27,6 @@ uint256 constant WITHDRAW_MASK = uint256(type(uint48).max) << 176;
2527
*/
2628
type SignerInfo is uint256;
2729

28-
type uint128x2 is uint256;
29-
3030
interface IDIDSigners {
3131
function authenticateExposureReportID3Sigs(
3232
bytes32 exposureReportID,

0 commit comments

Comments
 (0)