You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
714 B
34 lines
714 B
3 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
pragma solidity ^0.8.0;
|
||
|
|
||
|
import "../token/ERC20/extensions/ERC20Pausable.sol";
|
||
|
|
||
|
// mock class using ERC20Pausable
|
||
|
contract ERC20PausableMock is ERC20Pausable {
|
||
|
constructor(
|
||
|
string memory name,
|
||
|
string memory symbol,
|
||
|
address initialAccount,
|
||
|
uint256 initialBalance
|
||
|
) ERC20(name, symbol) {
|
||
|
_mint(initialAccount, initialBalance);
|
||
|
}
|
||
|
|
||
|
function pause() external {
|
||
|
_pause();
|
||
|
}
|
||
|
|
||
|
function unpause() external {
|
||
|
_unpause();
|
||
|
}
|
||
|
|
||
|
function mint(address to, uint256 amount) public {
|
||
|
_mint(to, amount);
|
||
|
}
|
||
|
|
||
|
function burn(address from, uint256 amount) public {
|
||
|
_burn(from, amount);
|
||
|
}
|
||
|
}
|