Skip to content

Commit

Permalink
[WIP] Feature/killswitch (#159)
Browse files Browse the repository at this point in the history
* make requestFactory pausable

* add test

* fix test

* fix package-lock
  • Loading branch information
lsaether committed Aug 16, 2018
1 parent 51b4161 commit aa05494
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 337 deletions.
5 changes: 4 additions & 1 deletion contracts/RequestFactory.sol
Expand Up @@ -7,11 +7,13 @@ import "contracts/IterTools.sol";
import "contracts/CloneFactory.sol";
import "contracts/Library/RequestScheduleLib.sol";

import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol";

/**
* @title RequestFactory
* @dev Contract which will produce new TransactionRequests.
*/
contract RequestFactory is RequestFactoryInterface, CloneFactory {
contract RequestFactory is RequestFactoryInterface, CloneFactory, Pausable {
using IterTools for bool[6];

TransactionRequestCore public transactionRequestCore;
Expand Down Expand Up @@ -54,6 +56,7 @@ contract RequestFactory is RequestFactoryInterface, CloneFactory {
uint[12] _uintArgs,
bytes _callData
)
whenNotPaused
public payable returns (address)
{
// Create a new transaction request clone from transactionRequestCore.
Expand Down
2 changes: 1 addition & 1 deletion migrations/2_deploy_contracts.js
Expand Up @@ -75,7 +75,7 @@ NOW DEPLOYING THE ETHEREUM ALARM CLOCK CONTRACTS...\n`)
deployer.link(PaymentLib, RequestFactory)
deployer.link(RequestLib, RequestFactory)
deployer.link(SafeMath, RequestFactory)
return deployer.deploy(RequestFactory, TransactionRequestCore.address, { gas: 1500000 })
return deployer.deploy(RequestFactory, TransactionRequestCore.address, { gas: 1900000 })
})
.then(() => {
deployer.link(RequestScheduleLib, BaseScheduler)
Expand Down

0 comments on commit aa05494

Please sign in to comment.