ERC20WrapperMockUpgradeable.sol 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../token/ERC20/extensions/ERC20WrapperUpgradeable.sol";
  4. import "../proxy/utils/Initializable.sol";
  5. contract ERC20WrapperMockUpgradeable is Initializable, ERC20WrapperUpgradeable {
  6. function __ERC20WrapperMock_init(
  7. IERC20Upgradeable _underlyingToken,
  8. string memory name,
  9. string memory symbol
  10. ) internal onlyInitializing {
  11. __ERC20_init_unchained(name, symbol);
  12. __ERC20Wrapper_init_unchained(_underlyingToken);
  13. }
  14. function __ERC20WrapperMock_init_unchained(
  15. IERC20Upgradeable,
  16. string memory,
  17. string memory
  18. ) internal onlyInitializing {}
  19. function recover(address account) public returns (uint256) {
  20. return _recover(account);
  21. }
  22. /**
  23. * @dev This empty reserved space is put in place to allow future versions to add new
  24. * variables without shifting down storage in the inheritance chain.
  25. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  26. */
  27. uint256[50] private __gap;
  28. }