Skip to content

Commit

Permalink
auto: adjust cron contract imports (#13927)
Browse files Browse the repository at this point in the history
* auto: adjust cron contract imports

* update
  • Loading branch information
FelixFan1992 authored Aug 6, 2024
1 parent c2c31c0 commit ce90bc3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions contracts/.changeset/seven-donkeys-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

improve cron contracts imports
12 changes: 6 additions & 6 deletions contracts/src/v0.8/automation/upkeeps/CronUpkeep.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

pragma solidity 0.8.6;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/proxy/Proxy.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../../shared/access/ConfirmedOwner.sol";
import "../KeeperBase.sol";
import "../interfaces/KeeperCompatibleInterface.sol";
import {Pausable} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/security/Pausable.sol";
import {Proxy} from "../../vendor/openzeppelin-solidity/v4.7.3/contracts/proxy/Proxy.sol";
import {EnumerableSet} from "../../vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableSet.sol";
import {ConfirmedOwner} from "../../shared/access/ConfirmedOwner.sol";
import {KeeperBase as KeeperBase} from "../KeeperBase.sol";
import {KeeperCompatibleInterface as KeeperCompatibleInterface} from "../interfaces/KeeperCompatibleInterface.sol";
import {Cron as CronInternal, Spec} from "../libraries/internal/Cron.sol";
import {Cron as CronExternal} from "../libraries/external/Cron.sol";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity 0.8.6;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {EnumerableSet} from "../../vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableSet.sol";
import {Cron, Spec} from "../libraries/internal/Cron.sol";

/**
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/v0.8/automation/upkeeps/CronUpkeepFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

pragma solidity 0.8.6;

import "./CronUpkeep.sol";
import "./CronUpkeepDelegate.sol";
import "../../shared/access/ConfirmedOwner.sol";
import {CronUpkeep} from "./CronUpkeep.sol";
import {CronUpkeepDelegate} from "./CronUpkeepDelegate.sol";
import {ConfirmedOwner} from "../../shared/access/ConfirmedOwner.sol";
import {Spec, Cron as CronExternal} from "../libraries/external/Cron.sol";

/**
Expand Down

0 comments on commit ce90bc3

Please sign in to comment.