Skip to content

Commit a0c7afb

Browse files
committed
add a contracts/standalone folder
1 parent 618d117 commit a0c7afb

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

contracts/utils/payment/PaymentSplitter.sol renamed to contracts/standalone/PaymentSplitter.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
pragma solidity ^0.8.0;
44

5-
import "../../utils/Address.sol";
6-
import "../../utils/Context.sol";
7-
import "../../utils/math/SafeMath.sol";
5+
import "../utils/Address.sol";
6+
import "../utils/Context.sol";
7+
import "../utils/math/SafeMath.sol";
88

99
/**
1010
* @title PaymentSplitter

contracts/utils/access/TimelockController.sol renamed to contracts/standalone/TimelockController.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pragma solidity ^0.8.0;
44

5-
import "./AccessControl.sol";
5+
import "../utils/access/AccessControl.sol";
66

77
/**
88
* @dev Contract module which acts as a timelocked controller. When set as the

contracts/token/ERC20/utils/TokenTimelock.sol renamed to contracts/standalone/TokenTimelock.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pragma solidity ^0.8.0;
44

5-
import "./SafeERC20.sol";
5+
import "../token/ERC20/utils/SafeERC20.sol";
66

77
/**
88
* @dev A token holder contract that will allow a beneficiary to extract the
@@ -15,13 +15,13 @@ contract TokenTimelock {
1515
using SafeERC20 for IERC20;
1616

1717
// ERC20 basic token contract being held
18-
IERC20 private _token;
18+
IERC20 private immutable _token;
1919

2020
// beneficiary of tokens after they are released
21-
address private _beneficiary;
21+
address private immutable _beneficiary;
2222

2323
// timestamp when token release is enabled
24-
uint256 private _releaseTime;
24+
uint256 private immutable _releaseTime;
2525

2626
constructor (IERC20 token_, address beneficiary_, uint256 releaseTime_) {
2727
// solhint-disable-next-line not-rely-on-time

0 commit comments

Comments
 (0)