Releases: vittominacori/eth-token-recover
v6.5.0
What's Changed
- update open-zeppelin to 5.2.0
- update node and dependencies
Full Changelog: v6.4.0...v6.5.0
v6.4.0
v6.3.0
Update dependencies and solc.
Full Changelog: v6.2.0...v6.3.0
v6.2.0
What's Changed
- update node to v20 and solc to v0.8.24
- chore: update solidity-coverage
- chore(deps-dev): bump undici from 5.28.2 to 5.28.3 by @dependabot in #24
- chore(deps-dev): bump ip from 1.1.8 to 1.1.9 by @dependabot in #25
- chore(deps): bump @openzeppelin/contracts from 5.0.1 to 5.0.2 by @dependabot in #26
Full Changelog: v6.1.3...v6.2.0
v6.1.3
Update dependencies and linter config.
What's Changed
- chore(deps-dev): bump follow-redirects from 1.15.3 to 1.15.4 by @dependabot in #23
Full Changelog: v6.1.2...v6.1.3
v6.1.2
Update dependencies
Full Changelog: v6.1.1...v6.1.2
v6.1.1
- Update solidity to 0.8.23
- Update dependencies
Full Changelog: v6.1.0...v6.1.1
v6.1.0
Adds a backward compatible (legacy) version is available in the legacy
folder.
TokenRecoverLegacy
contract will:
- implicitly set the deployer as contract owner
- send recovered tokens to owner instead of providing an explicit receiver
To use TokenRecoverLegacy
, a contract inheriting from TokenRecover
needs to be updated in the following way
pragma solidity ^0.8.20;
-import {TokenRecover} from "eth-token-recover/contracts/TokenRecover.sol";
+import {TokenRecoverLegacy} from "eth-token-recover/contracts/legacy/TokenRecoverLegacy.sol";
-contract MyContract is TokenRecover {
+contract MyContract is TokenRecoverLegacy {
// your stuff
}
DISCLAIMER
TokenRecoverLegacy
is a legacy version ofTokenRecover
that works as v4.x and earlier and MAY be removed in future releases.We highly recommend to keep the code updated to use newer versions of the recover.
v6.0.0
This release adds support for ERC721
tokens to be recovered.
The low level recover RecoverERC20
and RecoverERC721
contracts have been moved into the contracts/recover
folder.
They define internal methods that can be used in derived contracts.
The high level ERC20Recover
, ERC721Recover
and TokenRecover
contracts are into the contracts
folder.
They define high level code that can be inherited as is or extended to cover desired behaviors.
These contracts are Ownable
and restrict access to recover methods to owner only.
Note that the old TokenRecover::recoverERC20
method has been updated to accept the tokenReceiver
address, the address that will receive the recovered token.
-function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner
+function recoverERC20(address tokenAddress, address tokenReceiver, uint256 tokenAmount) public virtual onlyOwner
v5.0.0
Added an initialOwner
parameter to the constructor, making the ownership initialization explicit.
- Update OpenZeppelin reference to 5.0.0
- Bumb minimum compiler version to 0.8.20
- Add examples
- Improve documentation
- Improve tests
- Add slither and codespell