becrypto/build/contracts/Pausable.json
2022-01-27 19:13:37 +08:00

2067 lines
78 KiB
JSON

{
"contractName": "Pausable",
"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.8.10+commit.fc410830\"},\"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\":{\"constructor\":{\"details\":\"Initializes the contract in unpaused state.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/security/Pausable.sol\":\"Pausable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/security/Pausable.sol\":{\"keccak256\":\"0xe68ed7fb8766ed1e888291f881e36b616037f852b37d96877045319ad298ba87\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d491a2ca79dbf44bc02e876e21a5847a2cbcc011188532ad8662cdc1c134a4e\",\"dweb:/ipfs/QmUQXhSV8ZvHLzfdG89ZNSh1nLrAYyjnNBLznJGwGcwVk8\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.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 */\nabstract contract Pausable is Context {\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 constructor() {\n _paused = false;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual 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 * Requirements:\n *\n * - The contract must not be 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 * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n require(paused(), \"Pausable: not paused\");\n _;\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\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 * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n}\n",
"sourcePath": "@openzeppelin/contracts/security/Pausable.sol",
"ast": {
"absolutePath": "@openzeppelin/contracts/security/Pausable.sol",
"exportedSymbols": {
"Context": [
3590
],
"Pausable": [
802
]
},
"id": 803,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 712,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "90:23:6"
},
{
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
"file": "../utils/Context.sol",
"id": 713,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 803,
"sourceUnit": 3591,
"src": "115:30:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 715,
"name": "Context",
"nodeType": "IdentifierPath",
"referencedDeclaration": 3590,
"src": "617:7:6"
},
"id": 716,
"nodeType": "InheritanceSpecifier",
"src": "617:7:6"
}
],
"canonicalName": "Pausable",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 714,
"nodeType": "StructuredDocumentation",
"src": "147:439:6",
"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": 802,
"linearizedBaseContracts": [
802,
3590
],
"name": "Pausable",
"nameLocation": "605:8:6",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 717,
"nodeType": "StructuredDocumentation",
"src": "631:73:6",
"text": " @dev Emitted when the pause is triggered by `account`."
},
"id": 721,
"name": "Paused",
"nameLocation": "715:6:6",
"nodeType": "EventDefinition",
"parameters": {
"id": 720,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 719,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nameLocation": "730:7:6",
"nodeType": "VariableDeclaration",
"scope": 721,
"src": "722:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 718,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "722:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "721:17:6"
},
"src": "709:30:6"
},
{
"anonymous": false,
"documentation": {
"id": 722,
"nodeType": "StructuredDocumentation",
"src": "745:70:6",
"text": " @dev Emitted when the pause is lifted by `account`."
},
"id": 726,
"name": "Unpaused",
"nameLocation": "826:8:6",
"nodeType": "EventDefinition",
"parameters": {
"id": 725,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 724,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nameLocation": "843:7:6",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "835:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 723,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "835:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "834:17:6"
},
"src": "820:32:6"
},
{
"constant": false,
"id": 728,
"mutability": "mutable",
"name": "_paused",
"nameLocation": "871:7:6",
"nodeType": "VariableDeclaration",
"scope": 802,
"src": "858:20:6",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 727,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "private"
},
{
"body": {
"id": 736,
"nodeType": "Block",
"src": "971:32:6",
"statements": [
{
"expression": {
"id": 734,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 732,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "981:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "66616c7365",
"id": 733,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "991:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "981:15:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 735,
"nodeType": "ExpressionStatement",
"src": "981:15:6"
}
]
},
"documentation": {
"id": 729,
"nodeType": "StructuredDocumentation",
"src": "885:67:6",
"text": " @dev Initializes the contract in unpaused state."
},
"id": 737,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 730,
"nodeType": "ParameterList",
"parameters": [],
"src": "968:2:6"
},
"returnParameters": {
"id": 731,
"nodeType": "ParameterList",
"parameters": [],
"src": "971:0:6"
},
"scope": 802,
"src": "957:46:6",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 745,
"nodeType": "Block",
"src": "1151:31:6",
"statements": [
{
"expression": {
"id": 743,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "1168:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 742,
"id": 744,
"nodeType": "Return",
"src": "1161:14:6"
}
]
},
"documentation": {
"id": 738,
"nodeType": "StructuredDocumentation",
"src": "1009:84:6",
"text": " @dev Returns true if the contract is paused, and false otherwise."
},
"functionSelector": "5c975abb",
"id": 746,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "paused",
"nameLocation": "1107:6:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 739,
"nodeType": "ParameterList",
"parameters": [],
"src": "1113:2:6"
},
"returnParameters": {
"id": 742,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 741,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 746,
"src": "1145:4:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 740,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1145:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1144:6:6"
},
"scope": 802,
"src": "1098:84:6",
"stateMutability": "view",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 757,
"nodeType": "Block",
"src": "1393:66:6",
"statements": [
{
"expression": {
"arguments": [
{
"id": 752,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "1411:9:6",
"subExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 750,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 746,
"src": "1412:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 751,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1412:8:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "5061757361626c653a20706175736564",
"id": 753,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1422:18:6",
"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": 749,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1403:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 754,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1403:38:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 755,
"nodeType": "ExpressionStatement",
"src": "1403:38:6"
},
{
"id": 756,
"nodeType": "PlaceholderStatement",
"src": "1451:1:6"
}
]
},
"documentation": {
"id": 747,
"nodeType": "StructuredDocumentation",
"src": "1188:175:6",
"text": " @dev Modifier to make a function callable only when the contract is not paused.\n Requirements:\n - The contract must not be paused."
},
"id": 758,
"name": "whenNotPaused",
"nameLocation": "1377:13:6",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 748,
"nodeType": "ParameterList",
"parameters": [],
"src": "1390:2:6"
},
"src": "1368:91:6",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 768,
"nodeType": "Block",
"src": "1659:69:6",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 762,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 746,
"src": "1677:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 763,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1677:8:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "5061757361626c653a206e6f7420706175736564",
"id": 764,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1687:22:6",
"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": 761,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1669:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 765,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1669:41:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 766,
"nodeType": "ExpressionStatement",
"src": "1669:41:6"
},
{
"id": 767,
"nodeType": "PlaceholderStatement",
"src": "1720:1:6"
}
]
},
"documentation": {
"id": 759,
"nodeType": "StructuredDocumentation",
"src": "1465:167:6",
"text": " @dev Modifier to make a function callable only when the contract is paused.\n Requirements:\n - The contract must be paused."
},
"id": 769,
"name": "whenPaused",
"nameLocation": "1646:10:6",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 760,
"nodeType": "ParameterList",
"parameters": [],
"src": "1656:2:6"
},
"src": "1637:91:6",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 784,
"nodeType": "Block",
"src": "1912:66:6",
"statements": [
{
"expression": {
"id": 777,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 775,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "1922:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "74727565",
"id": 776,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1932:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1922:14:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 778,
"nodeType": "ExpressionStatement",
"src": "1922:14:6"
},
{
"eventCall": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 780,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3580,
"src": "1958:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 781,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1958:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 779,
"name": "Paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 721,
"src": "1951:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 782,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1951:20:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 783,
"nodeType": "EmitStatement",
"src": "1946:25:6"
}
]
},
"documentation": {
"id": 770,
"nodeType": "StructuredDocumentation",
"src": "1734:124:6",
"text": " @dev Triggers stopped state.\n Requirements:\n - The contract must not be paused."
},
"id": 785,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 773,
"kind": "modifierInvocation",
"modifierName": {
"id": 772,
"name": "whenNotPaused",
"nodeType": "IdentifierPath",
"referencedDeclaration": 758,
"src": "1898:13:6"
},
"nodeType": "ModifierInvocation",
"src": "1898:13:6"
}
],
"name": "_pause",
"nameLocation": "1872:6:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 771,
"nodeType": "ParameterList",
"parameters": [],
"src": "1878:2:6"
},
"returnParameters": {
"id": 774,
"nodeType": "ParameterList",
"parameters": [],
"src": "1912:0:6"
},
"scope": 802,
"src": "1863:115:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 800,
"nodeType": "Block",
"src": "2158:69:6",
"statements": [
{
"expression": {
"id": 793,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 791,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "2168:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "66616c7365",
"id": 792,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2178:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2168:15:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 794,
"nodeType": "ExpressionStatement",
"src": "2168:15:6"
},
{
"eventCall": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 796,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3580,
"src": "2207:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 797,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2207:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 795,
"name": "Unpaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 726,
"src": "2198:8:6",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 798,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2198:22:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 799,
"nodeType": "EmitStatement",
"src": "2193:27:6"
}
]
},
"documentation": {
"id": 786,
"nodeType": "StructuredDocumentation",
"src": "1984:121:6",
"text": " @dev Returns to normal state.\n Requirements:\n - The contract must be paused."
},
"id": 801,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 789,
"kind": "modifierInvocation",
"modifierName": {
"id": 788,
"name": "whenPaused",
"nodeType": "IdentifierPath",
"referencedDeclaration": 769,
"src": "2147:10:6"
},
"nodeType": "ModifierInvocation",
"src": "2147:10:6"
}
],
"name": "_unpause",
"nameLocation": "2119:8:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 787,
"nodeType": "ParameterList",
"parameters": [],
"src": "2127:2:6"
},
"returnParameters": {
"id": 790,
"nodeType": "ParameterList",
"parameters": [],
"src": "2158:0:6"
},
"scope": 802,
"src": "2110:117:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
}
],
"scope": 803,
"src": "587:1642:6",
"usedErrors": []
}
],
"src": "90:2140:6"
},
"legacyAST": {
"absolutePath": "@openzeppelin/contracts/security/Pausable.sol",
"exportedSymbols": {
"Context": [
3590
],
"Pausable": [
802
]
},
"id": 803,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 712,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "90:23:6"
},
{
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
"file": "../utils/Context.sol",
"id": 713,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 803,
"sourceUnit": 3591,
"src": "115:30:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 715,
"name": "Context",
"nodeType": "IdentifierPath",
"referencedDeclaration": 3590,
"src": "617:7:6"
},
"id": 716,
"nodeType": "InheritanceSpecifier",
"src": "617:7:6"
}
],
"canonicalName": "Pausable",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 714,
"nodeType": "StructuredDocumentation",
"src": "147:439:6",
"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": 802,
"linearizedBaseContracts": [
802,
3590
],
"name": "Pausable",
"nameLocation": "605:8:6",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 717,
"nodeType": "StructuredDocumentation",
"src": "631:73:6",
"text": " @dev Emitted when the pause is triggered by `account`."
},
"id": 721,
"name": "Paused",
"nameLocation": "715:6:6",
"nodeType": "EventDefinition",
"parameters": {
"id": 720,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 719,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nameLocation": "730:7:6",
"nodeType": "VariableDeclaration",
"scope": 721,
"src": "722:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 718,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "722:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "721:17:6"
},
"src": "709:30:6"
},
{
"anonymous": false,
"documentation": {
"id": 722,
"nodeType": "StructuredDocumentation",
"src": "745:70:6",
"text": " @dev Emitted when the pause is lifted by `account`."
},
"id": 726,
"name": "Unpaused",
"nameLocation": "826:8:6",
"nodeType": "EventDefinition",
"parameters": {
"id": 725,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 724,
"indexed": false,
"mutability": "mutable",
"name": "account",
"nameLocation": "843:7:6",
"nodeType": "VariableDeclaration",
"scope": 726,
"src": "835:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 723,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "835:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "834:17:6"
},
"src": "820:32:6"
},
{
"constant": false,
"id": 728,
"mutability": "mutable",
"name": "_paused",
"nameLocation": "871:7:6",
"nodeType": "VariableDeclaration",
"scope": 802,
"src": "858:20:6",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 727,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "858:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "private"
},
{
"body": {
"id": 736,
"nodeType": "Block",
"src": "971:32:6",
"statements": [
{
"expression": {
"id": 734,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 732,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "981:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "66616c7365",
"id": 733,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "991:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "981:15:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 735,
"nodeType": "ExpressionStatement",
"src": "981:15:6"
}
]
},
"documentation": {
"id": 729,
"nodeType": "StructuredDocumentation",
"src": "885:67:6",
"text": " @dev Initializes the contract in unpaused state."
},
"id": 737,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 730,
"nodeType": "ParameterList",
"parameters": [],
"src": "968:2:6"
},
"returnParameters": {
"id": 731,
"nodeType": "ParameterList",
"parameters": [],
"src": "971:0:6"
},
"scope": 802,
"src": "957:46:6",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 745,
"nodeType": "Block",
"src": "1151:31:6",
"statements": [
{
"expression": {
"id": 743,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "1168:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 742,
"id": 744,
"nodeType": "Return",
"src": "1161:14:6"
}
]
},
"documentation": {
"id": 738,
"nodeType": "StructuredDocumentation",
"src": "1009:84:6",
"text": " @dev Returns true if the contract is paused, and false otherwise."
},
"functionSelector": "5c975abb",
"id": 746,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "paused",
"nameLocation": "1107:6:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 739,
"nodeType": "ParameterList",
"parameters": [],
"src": "1113:2:6"
},
"returnParameters": {
"id": 742,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 741,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 746,
"src": "1145:4:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 740,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1145:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1144:6:6"
},
"scope": 802,
"src": "1098:84:6",
"stateMutability": "view",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 757,
"nodeType": "Block",
"src": "1393:66:6",
"statements": [
{
"expression": {
"arguments": [
{
"id": 752,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "1411:9:6",
"subExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 750,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 746,
"src": "1412:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 751,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1412:8:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "5061757361626c653a20706175736564",
"id": 753,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1422:18:6",
"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": 749,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1403:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 754,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1403:38:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 755,
"nodeType": "ExpressionStatement",
"src": "1403:38:6"
},
{
"id": 756,
"nodeType": "PlaceholderStatement",
"src": "1451:1:6"
}
]
},
"documentation": {
"id": 747,
"nodeType": "StructuredDocumentation",
"src": "1188:175:6",
"text": " @dev Modifier to make a function callable only when the contract is not paused.\n Requirements:\n - The contract must not be paused."
},
"id": 758,
"name": "whenNotPaused",
"nameLocation": "1377:13:6",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 748,
"nodeType": "ParameterList",
"parameters": [],
"src": "1390:2:6"
},
"src": "1368:91:6",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 768,
"nodeType": "Block",
"src": "1659:69:6",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 762,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 746,
"src": "1677:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
"typeString": "function () view returns (bool)"
}
},
"id": 763,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1677:8:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "5061757361626c653a206e6f7420706175736564",
"id": 764,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1687:22:6",
"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": 761,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "1669:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 765,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1669:41:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 766,
"nodeType": "ExpressionStatement",
"src": "1669:41:6"
},
{
"id": 767,
"nodeType": "PlaceholderStatement",
"src": "1720:1:6"
}
]
},
"documentation": {
"id": 759,
"nodeType": "StructuredDocumentation",
"src": "1465:167:6",
"text": " @dev Modifier to make a function callable only when the contract is paused.\n Requirements:\n - The contract must be paused."
},
"id": 769,
"name": "whenPaused",
"nameLocation": "1646:10:6",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 760,
"nodeType": "ParameterList",
"parameters": [],
"src": "1656:2:6"
},
"src": "1637:91:6",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 784,
"nodeType": "Block",
"src": "1912:66:6",
"statements": [
{
"expression": {
"id": 777,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 775,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "1922:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "74727565",
"id": 776,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1932:4:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1922:14:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 778,
"nodeType": "ExpressionStatement",
"src": "1922:14:6"
},
{
"eventCall": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 780,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3580,
"src": "1958:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 781,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1958:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 779,
"name": "Paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 721,
"src": "1951:6:6",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 782,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1951:20:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 783,
"nodeType": "EmitStatement",
"src": "1946:25:6"
}
]
},
"documentation": {
"id": 770,
"nodeType": "StructuredDocumentation",
"src": "1734:124:6",
"text": " @dev Triggers stopped state.\n Requirements:\n - The contract must not be paused."
},
"id": 785,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 773,
"kind": "modifierInvocation",
"modifierName": {
"id": 772,
"name": "whenNotPaused",
"nodeType": "IdentifierPath",
"referencedDeclaration": 758,
"src": "1898:13:6"
},
"nodeType": "ModifierInvocation",
"src": "1898:13:6"
}
],
"name": "_pause",
"nameLocation": "1872:6:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 771,
"nodeType": "ParameterList",
"parameters": [],
"src": "1878:2:6"
},
"returnParameters": {
"id": 774,
"nodeType": "ParameterList",
"parameters": [],
"src": "1912:0:6"
},
"scope": 802,
"src": "1863:115:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 800,
"nodeType": "Block",
"src": "2158:69:6",
"statements": [
{
"expression": {
"id": 793,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 791,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 728,
"src": "2168:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "66616c7365",
"id": 792,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2178:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2168:15:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 794,
"nodeType": "ExpressionStatement",
"src": "2168:15:6"
},
{
"eventCall": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 796,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3580,
"src": "2207:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 797,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2207:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 795,
"name": "Unpaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 726,
"src": "2198:8:6",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 798,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2198:22:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 799,
"nodeType": "EmitStatement",
"src": "2193:27:6"
}
]
},
"documentation": {
"id": 786,
"nodeType": "StructuredDocumentation",
"src": "1984:121:6",
"text": " @dev Returns to normal state.\n Requirements:\n - The contract must be paused."
},
"id": 801,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 789,
"kind": "modifierInvocation",
"modifierName": {
"id": 788,
"name": "whenPaused",
"nodeType": "IdentifierPath",
"referencedDeclaration": 769,
"src": "2147:10:6"
},
"nodeType": "ModifierInvocation",
"src": "2147:10:6"
}
],
"name": "_unpause",
"nameLocation": "2119:8:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 787,
"nodeType": "ParameterList",
"parameters": [],
"src": "2127:2:6"
},
"returnParameters": {
"id": 790,
"nodeType": "ParameterList",
"parameters": [],
"src": "2158:0:6"
},
"scope": 802,
"src": "2110:117:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "internal"
}
],
"scope": 803,
"src": "587:1642:6",
"usedErrors": []
}
],
"src": "90:2140:6"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2022-01-27T10:56:46.913Z",
"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": {
"constructor": {
"details": "Initializes the contract in unpaused state."
},
"paused()": {
"details": "Returns true if the contract is paused, and false otherwise."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}