Files
openzeppelin-contracts/build/contracts/Pausable.json
2018-08-23 11:45:35 -03:00

1873 lines
80 KiB
JSON

{
"contractName": "Pausable",
"abi": [
{
"constant": true,
"inputs": [],
"name": "paused",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "contractName",
"type": "string"
},
{
"name": "migrationId",
"type": "string"
}
],
"name": "isMigrated",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [],
"name": "Pause",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "Unpause",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "contractName",
"type": "string"
},
{
"indexed": false,
"name": "migrationId",
"type": "string"
}
],
"name": "Migrated",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_sender",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "pause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "unpause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x60806040526000600160146101000a81548160ff02191690831515021790555034801561002b57600080fd5b50610bf58061003b6000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633f4ba83a146100885780635c975abb1461009f5780638456cb59146100ce5780638da5cb5b146100e5578063c0bac1a81461013c578063c4d66de814610203578063f2fde38b14610246575b600080fd5b34801561009457600080fd5b5061009d610289565b005b3480156100ab57600080fd5b506100b4610349565b604051808215151515815260200191505060405180910390f35b3480156100da57600080fd5b506100e361035c565b005b3480156100f157600080fd5b506100fa61041c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014857600080fd5b506101e9600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610442565b604051808215151515815260200191505060405180910390f35b34801561020f57600080fd5b50610244600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061052d565b005b34801561025257600080fd5b50610287600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107b3565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102e557600080fd5b600160149054906101000a900460ff16151561030057600080fd5b6000600160146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103b857600080fd5b600160149054906101000a900460ff161515156103d457600080fd5b60018060146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080836040518082805190602001908083835b60208310151561047b5780518252602082019150602081019050602083039250610456565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b6020831015156104e457805182526020820191506020810190506020830392506104bf565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16905092915050565b6040805190810160405280600881526020017f5061757361626c650000000000000000000000000000000000000000000000008152506040805190810160405280600581526020017f312e392e300000000000000000000000000000000000000000000000000000008152506105a38282610442565b1515156105af57600080fd5b6105b88361090b565b7fdd117a11c22118c9dee4b5a67ce578bc44529dce21ee0ccc439588fbb9fb4ea38282604051808060200180602001838103835285818151815260200191508051906020019080838360005b8381101561061f578082015181840152602081019050610604565b50505050905090810190601f16801561064c5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b8381101561068557808201518184015260208101905061066a565b50505050905090810190601f1680156106b25780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160016000836040518082805190602001908083835b6020831015156106fb57805182526020820191506020810190506020830392506106d6565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b602083101515610764578051825260208201915060208101905060208303925061073f565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff021916908315150217905550505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561080f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561084b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040805190810160405280600781526020017f4f776e61626c65000000000000000000000000000000000000000000000000008152506040805190810160405280600581526020017f312e392e300000000000000000000000000000000000000000000000000000008152506109818282610442565b15151561098d57600080fd5b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdd117a11c22118c9dee4b5a67ce578bc44529dce21ee0ccc439588fbb9fb4ea38282604051808060200180602001838103835285818151815260200191508051906020019080838360005b83811015610a35578082015181840152602081019050610a1a565b50505050905090810190601f168015610a625780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610a9b578082015181840152602081019050610a80565b50505050905090810190601f168015610ac85780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160016000836040518082805190602001908083835b602083101515610b115780518252602082019150602081019050602083039250610aec565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b602083101515610b7a5780518252602082019150602081019050602083039250610b55565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505600a165627a7a723058202a1129852e6165d8a5113085adbe47d69b77fc42e726db663264a3a86c6139180029",
"deployedBytecode": "0x608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633f4ba83a146100885780635c975abb1461009f5780638456cb59146100ce5780638da5cb5b146100e5578063c0bac1a81461013c578063c4d66de814610203578063f2fde38b14610246575b600080fd5b34801561009457600080fd5b5061009d610289565b005b3480156100ab57600080fd5b506100b4610349565b604051808215151515815260200191505060405180910390f35b3480156100da57600080fd5b506100e361035c565b005b3480156100f157600080fd5b506100fa61041c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014857600080fd5b506101e9600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610442565b604051808215151515815260200191505060405180910390f35b34801561020f57600080fd5b50610244600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061052d565b005b34801561025257600080fd5b50610287600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107b3565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102e557600080fd5b600160149054906101000a900460ff16151561030057600080fd5b6000600160146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600160149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103b857600080fd5b600160149054906101000a900460ff161515156103d457600080fd5b60018060146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080836040518082805190602001908083835b60208310151561047b5780518252602082019150602081019050602083039250610456565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b6020831015156104e457805182526020820191506020810190506020830392506104bf565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16905092915050565b6040805190810160405280600881526020017f5061757361626c650000000000000000000000000000000000000000000000008152506040805190810160405280600581526020017f312e392e300000000000000000000000000000000000000000000000000000008152506105a38282610442565b1515156105af57600080fd5b6105b88361090b565b7fdd117a11c22118c9dee4b5a67ce578bc44529dce21ee0ccc439588fbb9fb4ea38282604051808060200180602001838103835285818151815260200191508051906020019080838360005b8381101561061f578082015181840152602081019050610604565b50505050905090810190601f16801561064c5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b8381101561068557808201518184015260208101905061066a565b50505050905090810190601f1680156106b25780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160016000836040518082805190602001908083835b6020831015156106fb57805182526020820191506020810190506020830392506106d6565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b602083101515610764578051825260208201915060208101905060208303925061073f565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff021916908315150217905550505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561080f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561084b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040805190810160405280600781526020017f4f776e61626c65000000000000000000000000000000000000000000000000008152506040805190810160405280600581526020017f312e392e300000000000000000000000000000000000000000000000000000008152506109818282610442565b15151561098d57600080fd5b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdd117a11c22118c9dee4b5a67ce578bc44529dce21ee0ccc439588fbb9fb4ea38282604051808060200180602001838103835285818151815260200191508051906020019080838360005b83811015610a35578082015181840152602081019050610a1a565b50505050905090810190601f168015610a625780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610a9b578082015181840152602081019050610a80565b50505050905090810190601f168015610ac85780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a160016000836040518082805190602001908083835b602083101515610b115780518252602082019150602081019050602083039250610aec565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020826040518082805190602001908083835b602083101515610b7a5780518252602082019150602081019050602083039250610b55565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505600a165627a7a723058202a1129852e6165d8a5113085adbe47d69b77fc42e726db663264a3a86c6139180029",
"sourceMap": "177:889:4:-;;;280:5;259:26;;;;;;;;;;;;;;;;;;;;177:889;8:9:-1;5:2;;;30:1;27;20:12;5:2;177:889:4;;;;;;;",
"deployedSourceMap": "177:889:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;972:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;972:92:4;;;;;;259:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;259:26:4;;;;;;;;;;;;;;;;;;;;;;;;;;;800:90;;8:9:-1;5:2;;;30:1;27;20:12;5:2;800:90:4;;;;;;307:20:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;307:20:25;;;;;;;;;;;;;;;;;;;;;;;;;;;1950:140:52;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1950:140:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;291:118:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;291:118:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;949:174:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;949:174:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;972:92:4;770:5:25;;;;;;;;;;;756:19;;:10;:19;;;748:28;;;;;;;;702:6:4;;;;;;;;;;;694:15;;;;;;;;1034:5;1025:6;;:14;;;;;;;;;;;;;;;;;;1050:9;;;;;;;;;;972:92::o;259:26::-;;;;;;;;;;;;;:::o;800:90::-;770:5:25;;;;;;;;;;;756:19;;:10;:19;;;748:28;;;;;;;;550:6:4;;;;;;;;;;;549:7;541:16;;;;;;;;863:4;854:6;;:13;;;;;;;;;;;;;;;;;;878:7;;;;;;;;;;800:90::o;307:20:25:-;;;;;;;;;;;;;:::o;1950:140:52:-;2031:4;2050:8;2059:12;2050:22;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2050:22:52;;;;;;;;;;;;;;;;;;;;;2073:11;2050:35;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2050:35:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2043:42;;1950:140;;;;:::o;291:118:4:-;1004:223:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1083:37;1094:12;1108:11;1083:10;:37::i;:::-;1082:38;1074:47;;;;;;;;377:27:4;396:7;377:18;:27::i;:::-;1139:35:52;1148:12;1162:11;1139:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1139:35:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1139:35:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1218:4;1180:8;1189:12;1180:22;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1180:22:52;;;;;;;;;;;;;;;;;;;;;1203:11;1180:35;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1180:35:52;;;;;;;;;;;;;;;;;;;;;;:42;;;;;;;;;;;;;;;;;;291:118:4;;;:::o;949:174:25:-;770:5;;;;;;;;;;;756:19;;:10;:19;;;748:28;;;;;;;;1045:1;1025:22;;:8;:22;;;;1017:31;;;;;;;;1087:8;1059:37;;1080:5;;;;;;;;;;;1059:37;;;;;;;;;;;;1110:8;1102:5;;:16;;;;;;;;;;;;;;;;;;949:174;:::o;537:104::-;1004:223:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1083:37;1094:12;1108:11;1083:10;:37::i;:::-;1082:38;1074:47;;;;;;;;629:7:25;621:5;;:15;;;;;;;;;;;;;;;;;;1139:35:52;1148:12;1162:11;1139:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1139:35:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1139:35:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1218:4;1180:8;1189:12;1180:22;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1180:22:52;;;;;;;;;;;;;;;;;;;;;1203:11;1180:35;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1180:35:52;;;;;;;;;;;;;;;;;;;;;;:42;;;;;;;;;;;;;;;;;;537:104:25;;;:::o",
"source": "pragma solidity ^0.4.21;\n\n\nimport \"../ownership/Ownable.sol\";\n\n\n/**\n * @title Pausable\n * @dev Base contract which allows children to implement an emergency stop mechanism.\n */\ncontract Pausable is Migratable, Ownable {\n event Pause();\n event Unpause();\n\n bool public paused = false;\n\n\n function initialize(address _sender) isInitializer(\"Pausable\", \"1.9.0\") public {\n Ownable.initialize(_sender);\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n */\n modifier whenNotPaused() {\n require(!paused);\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n */\n modifier whenPaused() {\n require(paused);\n _;\n }\n\n /**\n * @dev called by the owner to pause, triggers stopped state\n */\n function pause() onlyOwner whenNotPaused public {\n paused = true;\n emit Pause();\n }\n\n /**\n * @dev called by the owner to unpause, returns to normal state\n */\n function unpause() onlyOwner whenPaused public {\n paused = false;\n emit Unpause();\n }\n}\n",
"sourcePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/lifecycle/Pausable.sol",
"ast": {
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
371
]
},
"id": 372,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 295,
"literals": [
"solidity",
"^",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:24:4"
},
{
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 296,
"nodeType": "ImportDirective",
"scope": 372,
"sourceUnit": 1581,
"src": "27:34:4",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 297,
"name": "Migratable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4769,
"src": "198:10:4",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migratable_$4769",
"typeString": "contract Migratable"
}
},
"id": 298,
"nodeType": "InheritanceSpecifier",
"src": "198:10:4"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 299,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1580,
"src": "210:7:4",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$1580",
"typeString": "contract Ownable"
}
},
"id": 300,
"nodeType": "InheritanceSpecifier",
"src": "210:7:4"
}
],
"contractDependencies": [
1580,
4769
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 371,
"linearizedBaseContracts": [
371,
1580,
4769
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 302,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 301,
"nodeType": "ParameterList",
"parameters": [],
"src": "233:2:4"
},
"src": "222:14:4"
},
{
"anonymous": false,
"documentation": null,
"id": 304,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 303,
"nodeType": "ParameterList",
"parameters": [],
"src": "252:2:4"
},
"src": "239:16:4"
},
{
"constant": false,
"id": 307,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 371,
"src": "259:26:4",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 305,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "259:4:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 306,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "280:5:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 322,
"nodeType": "Block",
"src": "371:38:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 319,
"name": "_sender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 309,
"src": "396:7:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"id": 316,
"name": "Ownable",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1580,
"src": "377:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Ownable_$1580_$",
"typeString": "type(contract Ownable)"
}
},
"id": 318,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "initialize",
"nodeType": "MemberAccess",
"referencedDeclaration": 1543,
"src": "377:18:4",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 320,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "377:27:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 321,
"nodeType": "ExpressionStatement",
"src": "377:27:4"
}
]
},
"documentation": null,
"id": 323,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"hexValue": "5061757361626c65",
"id": 312,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "342:10:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_74101298aa9992e60b5338ca3e643cfb631bd0a3c134c95f3277e9720e038e93",
"typeString": "literal_string \"Pausable\""
},
"value": "Pausable"
},
{
"argumentTypes": null,
"hexValue": "312e392e30",
"id": 313,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "354:7:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_48b337767c221abef259fe87e655d8fa1026fb5e60ec68ad68fa7e00bb7f050c",
"typeString": "literal_string \"1.9.0\""
},
"value": "1.9.0"
}
],
"id": 314,
"modifierName": {
"argumentTypes": null,
"id": 311,
"name": "isInitializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4716,
"src": "328:13:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$_t_string_memory_ptr_$_t_string_memory_ptr_$",
"typeString": "modifier (string memory,string memory)"
}
},
"nodeType": "ModifierInvocation",
"src": "328:34:4"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 310,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 309,
"name": "_sender",
"nodeType": "VariableDeclaration",
"scope": 323,
"src": "311:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 308,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "311:7:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "310:17:4"
},
"payable": false,
"returnParameters": {
"id": 315,
"nodeType": "ParameterList",
"parameters": [],
"src": "371:0:4"
},
"scope": 371,
"src": "291:118:4",
"stateMutability": "nonpayable",
"superFunction": 1543,
"visibility": "public"
},
{
"body": {
"id": 331,
"nodeType": "Block",
"src": "535:34:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 327,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "549:7:4",
"subExpression": {
"argumentTypes": null,
"id": 326,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "550:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 325,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4787,
4788
],
"referencedDeclaration": 4787,
"src": "541:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 328,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "541:16:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 329,
"nodeType": "ExpressionStatement",
"src": "541:16:4"
},
{
"id": 330,
"nodeType": "PlaceholderStatement",
"src": "563:1:4"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 332,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 324,
"nodeType": "ParameterList",
"parameters": [],
"src": "532:2:4"
},
"src": "510:59:4",
"visibility": "internal"
},
{
"body": {
"id": 339,
"nodeType": "Block",
"src": "688:33:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 335,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "702:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 334,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4787,
4788
],
"referencedDeclaration": 4787,
"src": "694:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 336,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "694:15:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 337,
"nodeType": "ExpressionStatement",
"src": "694:15:4"
},
{
"id": 338,
"nodeType": "PlaceholderStatement",
"src": "715:1:4"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 340,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 333,
"nodeType": "ParameterList",
"parameters": [],
"src": "685:2:4"
},
"src": "666:55:4",
"visibility": "internal"
},
{
"body": {
"id": 354,
"nodeType": "Block",
"src": "848:42:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 349,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 347,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "854:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 348,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "863:4:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "854:13:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 350,
"nodeType": "ExpressionStatement",
"src": "854:13:4"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 351,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 302,
"src": "878:5:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 352,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "878:7:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 353,
"nodeType": "EmitStatement",
"src": "873:12:4"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 355,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 343,
"modifierName": {
"argumentTypes": null,
"id": 342,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1554,
"src": "817:9:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "817:9:4"
},
{
"arguments": null,
"id": 345,
"modifierName": {
"argumentTypes": null,
"id": 344,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 332,
"src": "827:13:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "827:13:4"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 341,
"nodeType": "ParameterList",
"parameters": [],
"src": "814:2:4"
},
"payable": false,
"returnParameters": {
"id": 346,
"nodeType": "ParameterList",
"parameters": [],
"src": "848:0:4"
},
"scope": 371,
"src": "800:90:4",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 369,
"nodeType": "Block",
"src": "1019:45:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 364,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 362,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "1025:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 363,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1034:5:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1025:14:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 365,
"nodeType": "ExpressionStatement",
"src": "1025:14:4"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 366,
"name": "Unpause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "1050:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 367,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1050:9:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 368,
"nodeType": "EmitStatement",
"src": "1045:14:4"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 370,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 358,
"modifierName": {
"argumentTypes": null,
"id": 357,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1554,
"src": "991:9:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "991:9:4"
},
{
"arguments": null,
"id": 360,
"modifierName": {
"argumentTypes": null,
"id": 359,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 340,
"src": "1001:10:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1001:10:4"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 356,
"nodeType": "ParameterList",
"parameters": [],
"src": "988:2:4"
},
"payable": false,
"returnParameters": {
"id": 361,
"nodeType": "ParameterList",
"parameters": [],
"src": "1019:0:4"
},
"scope": 371,
"src": "972:92:4",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 372,
"src": "177:889:4"
}
],
"src": "0:1067:4"
},
"legacyAST": {
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
371
]
},
"id": 372,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 295,
"literals": [
"solidity",
"^",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:24:4"
},
{
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 296,
"nodeType": "ImportDirective",
"scope": 372,
"sourceUnit": 1581,
"src": "27:34:4",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 297,
"name": "Migratable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4769,
"src": "198:10:4",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migratable_$4769",
"typeString": "contract Migratable"
}
},
"id": 298,
"nodeType": "InheritanceSpecifier",
"src": "198:10:4"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 299,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1580,
"src": "210:7:4",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$1580",
"typeString": "contract Ownable"
}
},
"id": 300,
"nodeType": "InheritanceSpecifier",
"src": "210:7:4"
}
],
"contractDependencies": [
1580,
4769
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 371,
"linearizedBaseContracts": [
371,
1580,
4769
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 302,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 301,
"nodeType": "ParameterList",
"parameters": [],
"src": "233:2:4"
},
"src": "222:14:4"
},
{
"anonymous": false,
"documentation": null,
"id": 304,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 303,
"nodeType": "ParameterList",
"parameters": [],
"src": "252:2:4"
},
"src": "239:16:4"
},
{
"constant": false,
"id": 307,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 371,
"src": "259:26:4",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 305,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "259:4:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 306,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "280:5:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 322,
"nodeType": "Block",
"src": "371:38:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 319,
"name": "_sender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 309,
"src": "396:7:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"expression": {
"argumentTypes": null,
"id": 316,
"name": "Ownable",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1580,
"src": "377:7:4",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Ownable_$1580_$",
"typeString": "type(contract Ownable)"
}
},
"id": 318,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "initialize",
"nodeType": "MemberAccess",
"referencedDeclaration": 1543,
"src": "377:18:4",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 320,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "377:27:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 321,
"nodeType": "ExpressionStatement",
"src": "377:27:4"
}
]
},
"documentation": null,
"id": 323,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"hexValue": "5061757361626c65",
"id": 312,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "342:10:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_74101298aa9992e60b5338ca3e643cfb631bd0a3c134c95f3277e9720e038e93",
"typeString": "literal_string \"Pausable\""
},
"value": "Pausable"
},
{
"argumentTypes": null,
"hexValue": "312e392e30",
"id": 313,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "354:7:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_48b337767c221abef259fe87e655d8fa1026fb5e60ec68ad68fa7e00bb7f050c",
"typeString": "literal_string \"1.9.0\""
},
"value": "1.9.0"
}
],
"id": 314,
"modifierName": {
"argumentTypes": null,
"id": 311,
"name": "isInitializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4716,
"src": "328:13:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$_t_string_memory_ptr_$_t_string_memory_ptr_$",
"typeString": "modifier (string memory,string memory)"
}
},
"nodeType": "ModifierInvocation",
"src": "328:34:4"
}
],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 310,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 309,
"name": "_sender",
"nodeType": "VariableDeclaration",
"scope": 323,
"src": "311:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 308,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "311:7:4",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "310:17:4"
},
"payable": false,
"returnParameters": {
"id": 315,
"nodeType": "ParameterList",
"parameters": [],
"src": "371:0:4"
},
"scope": 371,
"src": "291:118:4",
"stateMutability": "nonpayable",
"superFunction": 1543,
"visibility": "public"
},
{
"body": {
"id": 331,
"nodeType": "Block",
"src": "535:34:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 327,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "549:7:4",
"subExpression": {
"argumentTypes": null,
"id": 326,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "550:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 325,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4787,
4788
],
"referencedDeclaration": 4787,
"src": "541:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 328,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "541:16:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 329,
"nodeType": "ExpressionStatement",
"src": "541:16:4"
},
{
"id": 330,
"nodeType": "PlaceholderStatement",
"src": "563:1:4"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 332,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 324,
"nodeType": "ParameterList",
"parameters": [],
"src": "532:2:4"
},
"src": "510:59:4",
"visibility": "internal"
},
{
"body": {
"id": 339,
"nodeType": "Block",
"src": "688:33:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 335,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "702:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 334,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4787,
4788
],
"referencedDeclaration": 4787,
"src": "694:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 336,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "694:15:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 337,
"nodeType": "ExpressionStatement",
"src": "694:15:4"
},
{
"id": 338,
"nodeType": "PlaceholderStatement",
"src": "715:1:4"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 340,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 333,
"nodeType": "ParameterList",
"parameters": [],
"src": "685:2:4"
},
"src": "666:55:4",
"visibility": "internal"
},
{
"body": {
"id": 354,
"nodeType": "Block",
"src": "848:42:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 349,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 347,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "854:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 348,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "863:4:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "854:13:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 350,
"nodeType": "ExpressionStatement",
"src": "854:13:4"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 351,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 302,
"src": "878:5:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 352,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "878:7:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 353,
"nodeType": "EmitStatement",
"src": "873:12:4"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 355,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 343,
"modifierName": {
"argumentTypes": null,
"id": 342,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1554,
"src": "817:9:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "817:9:4"
},
{
"arguments": null,
"id": 345,
"modifierName": {
"argumentTypes": null,
"id": 344,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 332,
"src": "827:13:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "827:13:4"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 341,
"nodeType": "ParameterList",
"parameters": [],
"src": "814:2:4"
},
"payable": false,
"returnParameters": {
"id": 346,
"nodeType": "ParameterList",
"parameters": [],
"src": "848:0:4"
},
"scope": 371,
"src": "800:90:4",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 369,
"nodeType": "Block",
"src": "1019:45:4",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 364,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 362,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 307,
"src": "1025:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 363,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1034:5:4",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1025:14:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 365,
"nodeType": "ExpressionStatement",
"src": "1025:14:4"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 366,
"name": "Unpause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 304,
"src": "1050:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 367,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1050:9:4",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 368,
"nodeType": "EmitStatement",
"src": "1045:14:4"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 370,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 358,
"modifierName": {
"argumentTypes": null,
"id": 357,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1554,
"src": "991:9:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "991:9:4"
},
{
"arguments": null,
"id": 360,
"modifierName": {
"argumentTypes": null,
"id": 359,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 340,
"src": "1001:10:4",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1001:10:4"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 356,
"nodeType": "ParameterList",
"parameters": [],
"src": "988:2:4"
},
"payable": false,
"returnParameters": {
"id": 361,
"nodeType": "ParameterList",
"parameters": [],
"src": "1019:0:4"
},
"scope": 371,
"src": "972:92:4",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 372,
"src": "177:889:4"
}
],
"src": "0:1067:4"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-08-23T14:35:50.613Z"
}