Skip to content

Commit

Permalink
Remove IDecentVersion interface and all implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Nov 5, 2024
1 parent e44a6c4 commit 35fee49
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
4 changes: 0 additions & 4 deletions contracts/autonomous-admin/DecentAutonomousAdminV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ contract DecentAutonomousAdminV1 is
// //////////////////////////////////////////////////////////////
// Public Functions
// //////////////////////////////////////////////////////////////
function version() external pure override returns (uint32) {
return 1;
}

function triggerStartNextTerm(TriggerStartArgs calldata args) public {
IHatsElectionsEligibility hatsElectionModule = IHatsElectionsEligibility(
args.hatsProtocol.getHatEligibilityModule(args.hatId)
Expand Down
6 changes: 0 additions & 6 deletions contracts/interfaces/IDecentVersion.sol

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import {IDecentVersion} from "../IDecentVersion.sol";
import {IHats} from "../hats/IHats.sol";

interface IDecentAutonomousAdminV1 is IDecentVersion {
interface IDecentAutonomousAdminV1 {
error NotCurrentWearer();

struct TriggerStartArgs {
Expand Down
6 changes: 0 additions & 6 deletions test/autonomous-admin/DecentAutonomousAdminV1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ describe('DecentAutonomousAdminHatV1', function () {
await hatsElectionModule.elect(nextTermEnd, [await secondWearer.getAddress()]);
});

describe('version', function () {
it('should return the correct version', async () => {
expect(await decentAutonomousAdminInstance.version()).to.equal(1);
});
});

describe('triggerStartNextTerm', function () {
describe('before the first term is over', function () {
it('should have correct wearers', async () => {
Expand Down

0 comments on commit 35fee49

Please sign in to comment.