Skip to content

Commit

Permalink
n04 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmolasses authored Jul 1, 2024
1 parent 1bd4d23 commit d3edd01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/IERC5805Modified.sol

This file was deleted.

4 changes: 3 additions & 1 deletion src/IVotesPartialDelegation.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC6372} from "@openzeppelin/contracts/interfaces/IERC6372.sol";

struct PartialDelegation {
address _delegatee;
uint96 _numerator;
Expand All @@ -14,7 +16,7 @@ struct DelegationAdjustment {
/**
* @dev Common interface for {ERC20VotesPartialDelegation} and other {VotesPartialDelegation}-enabled contracts.
*/
interface IVotesPartialDelegation {
interface IVotesPartialDelegation is IERC6372 {
/**
* @dev The signature used has expired.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/VotesPartialDelegationUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC5805Modified} from "src/IERC5805Modified.sol";
import {ContextUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import {NoncesUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/NoncesUpgradeable.sol";
import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
Expand All @@ -10,8 +9,9 @@ import {SafeCast} from "@openzeppelin/contracts/utils/math/SafeCast.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {Time} from "@openzeppelin/contracts/utils/types/Time.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {PartialDelegation, DelegationAdjustment} from "src/IVotesPartialDelegation.sol";
import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import {PartialDelegation, DelegationAdjustment} from "src/IVotesPartialDelegation.sol";
import {IVotesPartialDelegation} from "src/IVotesPartialDelegation.sol";

/**
* @dev This is a base abstract contract that tracks voting units, which are a measure of voting power that can be
Expand All @@ -36,7 +36,7 @@ abstract contract VotesPartialDelegationUpgradeable is
ContextUpgradeable,
EIP712Upgradeable,
NoncesUpgradeable,
IERC5805Modified
IVotesPartialDelegation
{
using Checkpoints for Checkpoints.Trace208;

Expand Down

0 comments on commit d3edd01

Please sign in to comment.