Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft and lifecycles directories cleanup #2122

Merged
merged 12 commits into from
Mar 16, 2020
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

### Breaking Changes
* `ECDSA`: when receiving an invalid signature, `recover` now reverts instead of returning the zero address. ([#2114](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2114))
* `Pausable`: moved to the `utils` directory. ([#2122](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2122))
* `Strings`: moved to the `utils` directory. ([#2122](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2122))
* `Counters`: moved to the `utils` directory. ([#2122](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2122))
* `SignedSafeMath`: moved to the `math` directory. ([#2122](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2122))
* `ERC20Snapshot`: moved to the `token/ERC20` directory. `snapshot` was changed into an `internal` function. ([#2122](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2122))

## 2.5.0 (2020-02-04)

Expand Down
24 changes: 0 additions & 24 deletions contracts/drafts/ERC1046/ERC20Metadata.sol

This file was deleted.

23 changes: 0 additions & 23 deletions contracts/drafts/README.adoc

This file was deleted.

174 changes: 0 additions & 174 deletions contracts/drafts/TokenVesting.sol

This file was deleted.

5 changes: 0 additions & 5 deletions contracts/lifecycle/README.adoc

This file was deleted.

2 changes: 2 additions & 0 deletions contracts/math/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ These are math-related utilities.

{{SafeMath}}

{{SignedSafeMath}}

{{Math}}
File renamed without changes.
2 changes: 1 addition & 1 deletion contracts/mocks/CountersImpl.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.6.0;

import "../drafts/Counters.sol";
import "../utils/Counters.sol";

contract CountersImpl {
using Counters for Counters.Counter;
Expand Down
12 changes: 0 additions & 12 deletions contracts/mocks/ERC20MetadataMock.sol

This file was deleted.

6 changes: 5 additions & 1 deletion contracts/mocks/ERC20SnapshotMock.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
pragma solidity ^0.6.0;

import "../drafts/ERC20Snapshot.sol";
import "../token/ERC20/ERC20Snapshot.sol";


contract ERC20SnapshotMock is ERC20Snapshot {
constructor(address initialAccount, uint256 initialBalance) public {
_mint(initialAccount, initialBalance);
}

function snapshot() public {
_snapshot();
}

function mint(address account, uint256 amount) public {
_mint(account, amount);
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/PausableMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.6.0;

import "../lifecycle/Pausable.sol";
import "../utils/Pausable.sol";

contract PausableMock is Pausable {
bool public drasticMeasureTaken;
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SignedSafeMathMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.6.0;

import "../drafts/SignedSafeMath.sol";
import "../math/SignedSafeMath.sol";

contract SignedSafeMathMock {
function mul(int256 a, int256 b) public pure returns (int256) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/StringsMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.6.0;

import "../drafts/Strings.sol";
import "../utils/Strings.sol";

contract StringsMock {
function fromUint256(uint256 value) public pure returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/ERC20Pausable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.6.0;

import "./ERC20.sol";
import "../../lifecycle/Pausable.sol";
import "../../utils/Pausable.sol";

/**
* @title Pausable token
Expand Down
Loading