@rsksmart/rif-marketplace-storage
Version:
Contracts for incentivized pinning
1,229 lines • 97.6 kB
JSON
{
"contractName": "PausableUpgradeSafe",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.\",\"events\":{\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"}},\"kind\":\"dev\",\"methods\":{\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol\":\"PausableUpgradeSafe\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol\":{\"keccak256\":\"0xe81686511d62f18b2d9c693c2c94c0a789c690de63aa90e15451ebf65c5bfd3e\",\"urls\":[\"bzz-raw://1332ee1d2b096456bf2e5795b5871d0fed47be6a31c9a2f2cef9206a299565ea\",\"dweb:/ipfs/Qmdu1847Y4UL3gTjbLUManMGfxYEoyGPSodM3Br89SKzwx\"]},\"@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol\":{\"keccak256\":\"0x9bfec92e36234ecc99b5d37230acb6cd1f99560233753162204104a4897e8721\",\"urls\":[\"bzz-raw://5cf7c208583d4d046d75bd99f5507412ab01cce9dd9f802ce9768a416d93ea2f\",\"dweb:/ipfs/QmcQS1BBMPpVEkXP3qzwSjxHNrqDek8YeR7xbVWDC9ApC7\"]},\"@openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol\":{\"keccak256\":\"0x2ad5473fe88d9ab30c6cd495ab8895daae8c4a48cf8231282a2d339387b35006\",\"urls\":[\"bzz-raw://a737c60474c063efc28e5922b6a1d073588c010eb67f883273d3ec29d8e52d6b\",\"dweb:/ipfs/QmWCeqeZhR45S1mcjPRYEMy1DCHMy9sXDfwYLPycFRh2Nk\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b5060868061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80635c975abb14602d575b600080fd5b60336047565b604080519115158252519081900360200190f35b60655460ff169056fea2646970667358221220de94bc685d5990d0e8f34f1357177d2e204a49798ff48a5ee3b0f6ecab1e943564736f6c634300060c0033",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c80635c975abb14602d575b600080fd5b60336047565b604080519115158252519081900360200190f35b60655460ff169056fea2646970667358221220de94bc685d5990d0e8f34f1357177d2e204a49798ff48a5ee3b0f6ecab1e943564736f6c634300060c0033",
"immutableReferences": {},
"sourceMap": "526:1575:9:-:0;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "526:1575:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1248:76;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1310:7;;;;1248:76;:::o",
"source": "pragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\ncontract PausableUpgradeSafe is Initializable, ContextUpgradeSafe {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n\n function __Pausable_init() internal initializer {\n __Context_init_unchained();\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal initializer {\n\n\n _paused = false;\n\n }\n\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view returns (bool) {\n return _paused;\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, \"Pausable: 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, \"Pausable: not paused\");\n _;\n }\n\n /**\n * @dev Triggers stopped state.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n uint256[49] private __gap;\n}\n",
"sourcePath": "@openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol",
"ast": {
"absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol",
"exportedSymbols": {
"PausableUpgradeSafe": [
2424
]
},
"id": 2425,
"license": null,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2315,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:9"
},
{
"absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol",
"file": "../GSN/Context.sol",
"id": 2316,
"nodeType": "ImportDirective",
"scope": 2425,
"sourceUnit": 2109,
"src": "25:28:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol",
"file": "../Initializable.sol",
"id": 2317,
"nodeType": "ImportDirective",
"scope": 2425,
"sourceUnit": 2184,
"src": "54:30:9",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 2319,
"name": "Initializable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 2183,
"src": "558:13:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Initializable_$2183",
"typeString": "contract Initializable"
}
},
"id": 2320,
"nodeType": "InheritanceSpecifier",
"src": "558:13:9"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 2321,
"name": "ContextUpgradeSafe",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 2108,
"src": "573:18:9",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ContextUpgradeSafe_$2108",
"typeString": "contract ContextUpgradeSafe"
}
},
"id": 2322,
"nodeType": "InheritanceSpecifier",
"src": "573:18:9"
}
],
"contractDependencies": [
2108,
2183
],
"contractKind": "contract",
"documentation": {
"id": 2318,
"nodeType": "StructuredDocumentation",
"src": "86:439:9",
"text": " @dev Contract module which allows children to implement an emergency stop\n mechanism that can be triggered by an authorized account.\n This module is used through inheritance. It will make available the\n modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n the functions of your contract. Note that they will not be pausable by\n simply including this module, only once the modifiers are put in place."
},
"fullyImplemented": true,
"id": 2424,
"linearizedBaseContracts": [
2424,
2108,
2183
],
"name": "PausableUpgradeSafe",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 2323,
"nodeType": "StructuredDocumentation",
"src": "598:73:9",
"text": " @dev Emitted when the pause is triggered by `account`."
},
"id": 2327,
"name": "Paused",
"nodeType": "EventDefinition",
"parameters": {
"id": 2326,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2325,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2327,
"src": "689:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2324,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "689:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "688:17:9"
},
"src": "676:30:9"
},
{
"anonymous": false,
"documentation": {
"id": 2328,
"nodeType": "StructuredDocumentation",
"src": "712:70:9",
"text": " @dev Emitted when the pause is lifted by `account`."
},
"id": 2332,
"name": "Unpaused",
"nodeType": "EventDefinition",
"parameters": {
"id": 2331,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2330,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2332,
"src": "802:15:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2329,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "802:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "801:17:9"
},
"src": "787:32:9"
},
{
"constant": false,
"id": 2334,
"mutability": "mutable",
"name": "_paused",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2424,
"src": "825:20:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2333,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "825:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 2346,
"nodeType": "Block",
"src": "973:80:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 2340,
"name": "__Context_init_unchained",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2083,
"src": "983:24:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 2341,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "983:26:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2342,
"nodeType": "ExpressionStatement",
"src": "983:26:9"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 2343,
"name": "__Pausable_init_unchained",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2357,
"src": "1019:25:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 2344,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1019:27:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2345,
"nodeType": "ExpressionStatement",
"src": "1019:27:9"
}
]
},
"documentation": {
"id": 2335,
"nodeType": "StructuredDocumentation",
"src": "852:67:9",
"text": " @dev Initializes the contract in unpaused state."
},
"id": 2347,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 2338,
"modifierName": {
"argumentTypes": null,
"id": 2337,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2156,
"src": "961:11:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "961:11:9"
}
],
"name": "__Pausable_init",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2336,
"nodeType": "ParameterList",
"parameters": [],
"src": "949:2:9"
},
"returnParameters": {
"id": 2339,
"nodeType": "ParameterList",
"parameters": [],
"src": "973:0:9"
},
"scope": 2424,
"src": "925:128:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2356,
"nodeType": "Block",
"src": "1117:35:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2354,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2352,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "1129:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 2353,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1139:5:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1129:15:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 2355,
"nodeType": "ExpressionStatement",
"src": "1129:15:9"
}
]
},
"documentation": null,
"id": 2357,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 2350,
"modifierName": {
"argumentTypes": null,
"id": 2349,
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2156,
"src": "1105:11:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1105:11:9"
}
],
"name": "__Pausable_init_unchained",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2348,
"nodeType": "ParameterList",
"parameters": [],
"src": "1093:2:9"
},
"returnParameters": {
"id": 2351,
"nodeType": "ParameterList",
"parameters": [],
"src": "1117:0:9"
},
"scope": 2424,
"src": "1059:93:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2365,
"nodeType": "Block",
"src": "1293:31:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2363,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "1310:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 2362,
"id": 2364,
"nodeType": "Return",
"src": "1303:14:9"
}
]
},
"documentation": {
"id": 2358,
"nodeType": "StructuredDocumentation",
"src": "1159:84:9",
"text": " @dev Returns true if the contract is paused, and false otherwise."
},
"functionSelector": "5c975abb",
"id": 2366,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "paused",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2359,
"nodeType": "ParameterList",
"parameters": [],
"src": "1263:2:9"
},
"returnParameters": {
"id": 2362,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2361,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2366,
"src": "1287:4:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2360,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1287:4:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1286:6:9"
},
"scope": 2424,
"src": "1248:76:9",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
},
{
"body": {
"id": 2376,
"nodeType": "Block",
"src": "1458:65:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2371,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "1476:8:9",
"subExpression": {
"argumentTypes": null,
"id": 2370,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "1477:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5061757361626c653a20706175736564",
"id": 2372,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1486:18:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a",
"typeString": "literal_string \"Pausable: paused\""
},
"value": "Pausable: paused"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a",
"typeString": "literal_string \"Pausable: paused\""
}
],
"id": 2369,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1468:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 2373,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1468:37:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2374,
"nodeType": "ExpressionStatement",
"src": "1468:37:9"
},
{
"id": 2375,
"nodeType": "PlaceholderStatement",
"src": "1515:1:9"
}
]
},
"documentation": {
"id": 2367,
"nodeType": "StructuredDocumentation",
"src": "1330:98:9",
"text": " @dev Modifier to make a function callable only when the contract is not paused."
},
"id": 2377,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"overrides": null,
"parameters": {
"id": 2368,
"nodeType": "ParameterList",
"parameters": [],
"src": "1455:2:9"
},
"src": "1433:90:9",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2386,
"nodeType": "Block",
"src": "1650:68:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2381,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "1668:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5061757361626c653a206e6f7420706175736564",
"id": 2382,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1677:22:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_0d1d997348c4b502650619e51f7d09f80514d98b6993be5051d07f703984619a",
"typeString": "literal_string \"Pausable: not paused\""
},
"value": "Pausable: not paused"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_0d1d997348c4b502650619e51f7d09f80514d98b6993be5051d07f703984619a",
"typeString": "literal_string \"Pausable: not paused\""
}
],
"id": 2380,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1660:7:9",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 2383,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1660:40:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2384,
"nodeType": "ExpressionStatement",
"src": "1660:40:9"
},
{
"id": 2385,
"nodeType": "PlaceholderStatement",
"src": "1710:1:9"
}
]
},
"documentation": {
"id": 2378,
"nodeType": "StructuredDocumentation",
"src": "1529:94:9",
"text": " @dev Modifier to make a function callable only when the contract is paused."
},
"id": 2387,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"overrides": null,
"parameters": {
"id": 2379,
"nodeType": "ParameterList",
"parameters": [],
"src": "1647:2:9"
},
"src": "1628:90:9",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 2402,
"nodeType": "Block",
"src": "1825:66:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2395,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2393,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "1835:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 2394,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1845:4:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1835:14:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 2396,
"nodeType": "ExpressionStatement",
"src": "1835:14:9"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 2398,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2092,
"src": "1871:10:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$",
"typeString": "function () view returns (address payable)"
}
},
"id": 2399,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1871:12:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 2397,
"name": "Paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2327,
"src": "1864:6:9",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 2400,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1864:20:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2401,
"nodeType": "EmitStatement",
"src": "1859:25:9"
}
]
},
"documentation": {
"id": 2388,
"nodeType": "StructuredDocumentation",
"src": "1724:47:9",
"text": " @dev Triggers stopped state."
},
"id": 2403,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 2391,
"modifierName": {
"argumentTypes": null,
"id": 2390,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2377,
"src": "1811:13:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1811:13:9"
}
],
"name": "_pause",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2389,
"nodeType": "ParameterList",
"parameters": [],
"src": "1791:2:9"
},
"returnParameters": {
"id": 2392,
"nodeType": "ParameterList",
"parameters": [],
"src": "1825:0:9"
},
"scope": 2424,
"src": "1776:115:9",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 2418,
"nodeType": "Block",
"src": "1998:69:9",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2411,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2409,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "2008:7:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 2410,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2018:5:9",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2008:15:9",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 2412,
"nodeType": "ExpressionStatement",
"src": "2008:15:9"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 2414,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2092,
"src": "2047:10:9",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$",
"typeString": "function () view returns (address payable)"
}
},
"id": 2415,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2047:12:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 2413,
"name": "Unpaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2332,
"src": "2038:8:9",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 2416,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2038:22:9",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2417,
"nodeType": "EmitStatement",
"src": "2033:27:9"
}
]
},
"documentation": {
"id": 2404,
"nodeType": "StructuredDocumentation",
"src": "1897:48:9",
"text": " @dev Returns to normal state."
},
"id": 2419,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 2407,
"modifierName": {
"argumentTypes": null,
"id": 2406,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2387,
"src": "1987:10:9",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1987:10:9"
}
],
"name": "_unpause",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2405,
"nodeType": "ParameterList",
"parameters": [],
"src": "1967:2:9"
},
"returnParameters": {
"id": 2408,
"nodeType": "ParameterList",
"parameters": [],
"src": "1998:0:9"
},
"scope": 2424,
"src": "1950:117:9",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
},
{
"constant": false,
"id": 2423,
"mutability": "mutable",
"name": "__gap",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2424,
"src": "2073:25:9",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_ar