* Adding solhint, working on style fixes. * Upgraded to solhint 1.5.0. * Removed all references to Solium * Updated mocks to make the pass the new linter rules. * Reformatted the .solhint.json file a bit. * Removed Solium configuration files. * Remove Solium dependency. * Add comment explaing disabled time rule in TokenVesting. * Revert to the old (ugly?) style. * Revert SignatureBouncerMock style. * Fix ERC165InterfacesSupported interface.
31 lines
1.0 KiB
Solidity
31 lines
1.0 KiB
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "./ERC20.sol";
|
|
import "../../lifecycle/Pausable.sol";
|
|
|
|
/**
|
|
* @title Pausable token
|
|
* @dev ERC20 modified with pausable transfers.
|
|
**/
|
|
contract ERC20Pausable is ERC20, Pausable {
|
|
function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.transfer(to, value);
|
|
}
|
|
|
|
function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.transferFrom(from, to, value);
|
|
}
|
|
|
|
function approve(address spender, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.approve(spender, value);
|
|
}
|
|
|
|
function increaseAllowance(address spender, uint addedValue) public whenNotPaused returns (bool success) {
|
|
return super.increaseAllowance(spender, addedValue);
|
|
}
|
|
|
|
function decreaseAllowance(address spender, uint subtractedValue) public whenNotPaused returns (bool success) {
|
|
return super.decreaseAllowance(spender, subtractedValue);
|
|
}
|
|
}
|