Skip to content

Releases: vittominacori/eth-token-recover

v6.5.0

09 Jan 16:01
Compare
Choose a tag to compare

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

18 Oct 09:01
Compare
Choose a tag to compare

What's Changed

  • updated OpenZeppelin to v5.1
  • updated solc to v0.8.28

Full Changelog: v6.3.0...v6.4.0

v6.3.0

27 Mar 17:00
Compare
Choose a tag to compare

Update dependencies and solc.

Full Changelog: v6.2.0...v6.3.0

v6.2.0

01 Mar 15:40
Compare
Choose a tag to compare

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

18 Jan 14:15
Compare
Choose a tag to compare

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

08 Dec 18:57
Compare
Choose a tag to compare

Update dependencies

Full Changelog: v6.1.1...v6.1.2

v6.1.1

14 Nov 14:09
Compare
Choose a tag to compare
  • Update solidity to 0.8.23
  • Update dependencies

Full Changelog: v6.1.0...v6.1.1

v6.1.0

27 Oct 12:49
Compare
Choose a tag to compare

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 of TokenRecover 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

26 Oct 10:17
53fd6d6
Compare
Choose a tag to compare

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

09 Oct 10:14
7af4332
Compare
Choose a tag to compare

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