* Change import path from zos-lib to upgrades in all contracts * Update readme with new naming * Update package and deps names * Change path to initializable in AST of networks.jsons * Migrate manifest version * Use new oz file locations * Rename in ERC20Migrator comments * Update SDK install instructions in README * Update gitignore to use new session file name * trigger CI * Fixes to readme and package version * Use 2.5.0 release of OpenZeppelin SDK
38 lines
1.2 KiB
Solidity
38 lines
1.2 KiB
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "@openzeppelin/upgrades/contracts/Initializable.sol";
|
|
import "./ERC20.sol";
|
|
import "../../lifecycle/Pausable.sol";
|
|
|
|
/**
|
|
* @title Pausable token
|
|
* @dev ERC20 modified with pausable transfers.
|
|
*/
|
|
contract ERC20Pausable is Initializable, ERC20, Pausable {
|
|
function initialize(address sender) public initializer {
|
|
Pausable.initialize(sender);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
uint256[50] private ______gap;
|
|
}
|