Files
assetxContracts/out/PausableUpgradeable.sol/PausableUpgradeable.json
2025-12-23 14:05:41 +08:00

1 line
38 KiB
JSON

{"abi":[{"type":"function","name":"paused","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"Initialized","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"ExpectedPause","inputs":[]},{"type":"error","name":"InvalidInitialization","inputs":[]},{"type":"error","name":"NotInitializing","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"paused()":"5c975abb"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"EnforcedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExpectedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"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.\",\"errors\":{\"EnforcedPause()\":[{\"details\":\"The operation failed because the contract is paused.\"}],\"ExpectedPause()\":[{\"details\":\"The operation failed because the contract is not paused.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"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\":{\"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\":\"PausableUpgradeable\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/=node_modules/@ensdomains/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":forge-std/=lib/forge-std/src/\",\":hardhat/=node_modules/hardhat/\"],\"viaIR\":true},\"sources\":{\"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08\",\"dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q\"]},\"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9\",\"dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV\"]},\"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\":{\"keccak256\":\"0xa6bf6b7efe0e6625a9dcd30c5ddf52c4c24fe8372f37c7de9dbf5034746768d5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c353ee3705bbf6fadb84c0fb10ef1b736e8ca3ca1867814349d1487ed207beb\",\"dweb:/ipfs/QmcugaPssrzGGE8q4YZKm2ZhnD3kCijjcgdWWg76nWt3FY\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"EnforcedPause"},{"inputs":[],"type":"error","name":"ExpectedPause"},{"inputs":[],"type":"error","name":"InvalidInitialization"},{"inputs":[],"type":"error","name":"NotInitializing"},{"inputs":[{"internalType":"uint64","name":"version","type":"uint64","indexed":false}],"type":"event","name":"Initialized","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":false}],"type":"event","name":"Paused","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":false}],"type":"event","name":"Unpaused","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{"paused()":{"details":"Returns true if the contract is paused, and false otherwise."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@ensdomains/=node_modules/@ensdomains/","@openzeppelin/=node_modules/@openzeppelin/","forge-std/=lib/forge-std/src/","hardhat/=node_modules/hardhat/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol":"PausableUpgradeable"},"evmVersion":"prague","libraries":{},"viaIR":true},"sources":{"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"keccak256":"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05","urls":["bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08","dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol":{"keccak256":"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397","urls":["bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9","dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol":{"keccak256":"0xa6bf6b7efe0e6625a9dcd30c5ddf52c4c24fe8372f37c7de9dbf5034746768d5","urls":["bzz-raw://8c353ee3705bbf6fadb84c0fb10ef1b736e8ca3ca1867814349d1487ed207beb","dweb:/ipfs/QmcugaPssrzGGE8q4YZKm2ZhnD3kCijjcgdWWg76nWt3FY"],"license":"MIT"}},"version":1},"ast":{"absolutePath":"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol","id":11658,"exportedSymbols":{"ContextUpgradeable":[11497],"Initializable":[10652],"PausableUpgradeable":[11657]},"nodeType":"SourceUnit","src":"102:3557:29","nodes":[{"id":11499,"nodeType":"PragmaDirective","src":"102:24:29","nodes":[],"literals":["solidity","^","0.8",".20"]},{"id":11501,"nodeType":"ImportDirective","src":"128:67:29","nodes":[],"absolutePath":"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","file":"../utils/ContextUpgradeable.sol","nameLocation":"-1:-1:-1","scope":11658,"sourceUnit":11498,"symbolAliases":[{"foreign":{"id":11500,"name":"ContextUpgradeable","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11497,"src":"136:18:29","typeDescriptions":{}},"nameLocation":"-1:-1:-1"}],"unitAlias":""},{"id":11503,"nodeType":"ImportDirective","src":"196:63:29","nodes":[],"absolutePath":"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","file":"../proxy/utils/Initializable.sol","nameLocation":"-1:-1:-1","scope":11658,"sourceUnit":10653,"symbolAliases":[{"foreign":{"id":11502,"name":"Initializable","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":10652,"src":"204:13:29","typeDescriptions":{}},"nameLocation":"-1:-1:-1"}],"unitAlias":""},{"id":11657,"nodeType":"ContractDefinition","src":"701:2957:29","nodes":[{"id":11512,"nodeType":"StructDefinition","src":"853:52:29","nodes":[],"canonicalName":"PausableUpgradeable.PausableStorage","documentation":{"id":11509,"nodeType":"StructuredDocumentation","src":"782:66:29","text":"@custom:storage-location erc7201:openzeppelin.storage.Pausable"},"members":[{"constant":false,"id":11511,"mutability":"mutable","name":"_paused","nameLocation":"891:7:29","nodeType":"VariableDeclaration","scope":11512,"src":"886:12:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":11510,"name":"bool","nodeType":"ElementaryTypeName","src":"886:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"name":"PausableStorage","nameLocation":"860:15:29","scope":11657,"visibility":"public"},{"id":11515,"nodeType":"VariableDeclaration","src":"1023:117:29","nodes":[],"constant":true,"mutability":"constant","name":"PausableStorageLocation","nameLocation":"1048:23:29","scope":11657,"stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":11513,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1023:7:29","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"hexValue":"307863643565643135633665313837653737653961656538383138346332316634663231383261623538323763623362376530376662656463643633663033333030","id":11514,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1074:66:29","typeDescriptions":{"typeIdentifier":"t_rational_92891662540554778686986514950364265630913525426840345632122912437671245656832_by_1","typeString":"int_const 9289...(69 digits omitted)...6832"},"value":"0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300"},"visibility":"private"},{"id":11523,"nodeType":"FunctionDefinition","src":"1147:162:29","nodes":[],"body":{"id":11522,"nodeType":"Block","src":"1227:82:29","nodes":[],"statements":[{"AST":{"nativeSrc":"1246:57:29","nodeType":"YulBlock","src":"1246:57:29","statements":[{"nativeSrc":"1260:33:29","nodeType":"YulAssignment","src":"1260:33:29","value":{"name":"PausableStorageLocation","nativeSrc":"1270:23:29","nodeType":"YulIdentifier","src":"1270:23:29"},"variableNames":[{"name":"$.slot","nativeSrc":"1260:6:29","nodeType":"YulIdentifier","src":"1260:6:29"}]}]},"evmVersion":"prague","externalReferences":[{"declaration":11519,"isOffset":false,"isSlot":true,"src":"1260:6:29","suffix":"slot","valueSize":1},{"declaration":11515,"isOffset":false,"isSlot":false,"src":"1270:23:29","valueSize":1}],"id":11521,"nodeType":"InlineAssembly","src":"1237:66:29"}]},"implemented":true,"kind":"function","modifiers":[],"name":"_getPausableStorage","nameLocation":"1156:19:29","parameters":{"id":11516,"nodeType":"ParameterList","parameters":[],"src":"1175:2:29"},"returnParameters":{"id":11520,"nodeType":"ParameterList","parameters":[{"constant":false,"id":11519,"mutability":"mutable","name":"$","nameLocation":"1224:1:29","nodeType":"VariableDeclaration","scope":11523,"src":"1200:25:29","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"},"typeName":{"id":11518,"nodeType":"UserDefinedTypeName","pathNode":{"id":11517,"name":"PausableStorage","nameLocations":["1200:15:29"],"nodeType":"IdentifierPath","referencedDeclaration":11512,"src":"1200:15:29"},"referencedDeclaration":11512,"src":"1200:15:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"}},"visibility":"internal"}],"src":"1199:27:29"},"scope":11657,"stateMutability":"pure","virtual":false,"visibility":"private"},{"id":11528,"nodeType":"EventDefinition","src":"1393:30:29","nodes":[],"anonymous":false,"documentation":{"id":11524,"nodeType":"StructuredDocumentation","src":"1315:73:29","text":" @dev Emitted when the pause is triggered by `account`."},"eventSelector":"62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258","name":"Paused","nameLocation":"1399:6:29","parameters":{"id":11527,"nodeType":"ParameterList","parameters":[{"constant":false,"id":11526,"indexed":false,"mutability":"mutable","name":"account","nameLocation":"1414:7:29","nodeType":"VariableDeclaration","scope":11528,"src":"1406:15:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":11525,"name":"address","nodeType":"ElementaryTypeName","src":"1406:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1405:17:29"}},{"id":11533,"nodeType":"EventDefinition","src":"1504:32:29","nodes":[],"anonymous":false,"documentation":{"id":11529,"nodeType":"StructuredDocumentation","src":"1429:70:29","text":" @dev Emitted when the pause is lifted by `account`."},"eventSelector":"5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa","name":"Unpaused","nameLocation":"1510:8:29","parameters":{"id":11532,"nodeType":"ParameterList","parameters":[{"constant":false,"id":11531,"indexed":false,"mutability":"mutable","name":"account","nameLocation":"1527:7:29","nodeType":"VariableDeclaration","scope":11533,"src":"1519:15:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":11530,"name":"address","nodeType":"ElementaryTypeName","src":"1519:7:29","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1518:17:29"}},{"id":11536,"nodeType":"ErrorDefinition","src":"1623:22:29","nodes":[],"documentation":{"id":11534,"nodeType":"StructuredDocumentation","src":"1542:76:29","text":" @dev The operation failed because the contract is paused."},"errorSelector":"d93c0665","name":"EnforcedPause","nameLocation":"1629:13:29","parameters":{"id":11535,"nodeType":"ParameterList","parameters":[],"src":"1642:2:29"}},{"id":11539,"nodeType":"ErrorDefinition","src":"1736:22:29","nodes":[],"documentation":{"id":11537,"nodeType":"StructuredDocumentation","src":"1651:80:29","text":" @dev The operation failed because the contract is not paused."},"errorSelector":"8dfc202b","name":"ExpectedPause","nameLocation":"1742:13:29","parameters":{"id":11538,"nodeType":"ParameterList","parameters":[],"src":"1755:2:29"}},{"id":11547,"nodeType":"ModifierDefinition","src":"1944:72:29","nodes":[],"body":{"id":11546,"nodeType":"Block","src":"1969:47:29","nodes":[],"statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":11542,"name":"_requireNotPaused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11595,"src":"1979:17:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":11543,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1979:19:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":11544,"nodeType":"ExpressionStatement","src":"1979:19:29"},{"id":11545,"nodeType":"PlaceholderStatement","src":"2008:1:29"}]},"documentation":{"id":11540,"nodeType":"StructuredDocumentation","src":"1764:175:29","text":" @dev Modifier to make a function callable only when the contract is not paused.\n Requirements:\n - The contract must not be paused."},"name":"whenNotPaused","nameLocation":"1953:13:29","parameters":{"id":11541,"nodeType":"ParameterList","parameters":[],"src":"1966:2:29"},"virtual":false,"visibility":"internal"},{"id":11555,"nodeType":"ModifierDefinition","src":"2194:66:29","nodes":[],"body":{"id":11554,"nodeType":"Block","src":"2216:44:29","nodes":[],"statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":11550,"name":"_requirePaused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11608,"src":"2226:14:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":11551,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2226:16:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":11552,"nodeType":"ExpressionStatement","src":"2226:16:29"},{"id":11553,"nodeType":"PlaceholderStatement","src":"2252:1:29"}]},"documentation":{"id":11548,"nodeType":"StructuredDocumentation","src":"2022:167:29","text":" @dev Modifier to make a function callable only when the contract is paused.\n Requirements:\n - The contract must be paused."},"name":"whenPaused","nameLocation":"2203:10:29","parameters":{"id":11549,"nodeType":"ParameterList","parameters":[],"src":"2213:2:29"},"virtual":false,"visibility":"internal"},{"id":11561,"nodeType":"FunctionDefinition","src":"2266:60:29","nodes":[],"body":{"id":11560,"nodeType":"Block","src":"2319:7:29","nodes":[],"statements":[]},"implemented":true,"kind":"function","modifiers":[{"id":11558,"kind":"modifierInvocation","modifierName":{"id":11557,"name":"onlyInitializing","nameLocations":["2302:16:29"],"nodeType":"IdentifierPath","referencedDeclaration":10547,"src":"2302:16:29"},"nodeType":"ModifierInvocation","src":"2302:16:29"}],"name":"__Pausable_init","nameLocation":"2275:15:29","parameters":{"id":11556,"nodeType":"ParameterList","parameters":[],"src":"2290:2:29"},"returnParameters":{"id":11559,"nodeType":"ParameterList","parameters":[],"src":"2319:0:29"},"scope":11657,"stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"id":11567,"nodeType":"FunctionDefinition","src":"2332:70:29","nodes":[],"body":{"id":11566,"nodeType":"Block","src":"2395:7:29","nodes":[],"statements":[]},"implemented":true,"kind":"function","modifiers":[{"id":11564,"kind":"modifierInvocation","modifierName":{"id":11563,"name":"onlyInitializing","nameLocations":["2378:16:29"],"nodeType":"IdentifierPath","referencedDeclaration":10547,"src":"2378:16:29"},"nodeType":"ModifierInvocation","src":"2378:16:29"}],"name":"__Pausable_init_unchained","nameLocation":"2341:25:29","parameters":{"id":11562,"nodeType":"ParameterList","parameters":[],"src":"2366:2:29"},"returnParameters":{"id":11565,"nodeType":"ParameterList","parameters":[],"src":"2395:0:29"},"scope":11657,"stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"id":11583,"nodeType":"FunctionDefinition","src":"2496:145:29","nodes":[],"body":{"id":11582,"nodeType":"Block","src":"2549:92:29","nodes":[],"statements":[{"assignments":[11575],"declarations":[{"constant":false,"id":11575,"mutability":"mutable","name":"$","nameLocation":"2583:1:29","nodeType":"VariableDeclaration","scope":11582,"src":"2559:25:29","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"},"typeName":{"id":11574,"nodeType":"UserDefinedTypeName","pathNode":{"id":11573,"name":"PausableStorage","nameLocations":["2559:15:29"],"nodeType":"IdentifierPath","referencedDeclaration":11512,"src":"2559:15:29"},"referencedDeclaration":11512,"src":"2559:15:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"}},"visibility":"internal"}],"id":11578,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":11576,"name":"_getPausableStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11523,"src":"2587:19:29","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_PausableStorage_$11512_storage_ptr_$","typeString":"function () pure returns (struct PausableUpgradeable.PausableStorage storage pointer)"}},"id":11577,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2587:21:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"nodeType":"VariableDeclarationStatement","src":"2559:49:29"},{"expression":{"expression":{"id":11579,"name":"$","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11575,"src":"2625:1:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"id":11580,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2627:7:29","memberName":"_paused","nodeType":"MemberAccess","referencedDeclaration":11511,"src":"2625:9:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":11572,"id":11581,"nodeType":"Return","src":"2618:16:29"}]},"documentation":{"id":11568,"nodeType":"StructuredDocumentation","src":"2407:84:29","text":" @dev Returns true if the contract is paused, and false otherwise."},"functionSelector":"5c975abb","implemented":true,"kind":"function","modifiers":[],"name":"paused","nameLocation":"2505:6:29","parameters":{"id":11569,"nodeType":"ParameterList","parameters":[],"src":"2511:2:29"},"returnParameters":{"id":11572,"nodeType":"ParameterList","parameters":[{"constant":false,"id":11571,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":11583,"src":"2543:4:29","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":11570,"name":"bool","nodeType":"ElementaryTypeName","src":"2543:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"2542:6:29"},"scope":11657,"stateMutability":"view","virtual":true,"visibility":"public"},{"id":11595,"nodeType":"FunctionDefinition","src":"2709:128:29","nodes":[],"body":{"id":11594,"nodeType":"Block","src":"2760:77:29","nodes":[],"statements":[{"condition":{"arguments":[],"expression":{"argumentTypes":[],"id":11587,"name":"paused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11583,"src":"2774:6:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_bool_$","typeString":"function () view returns (bool)"}},"id":11588,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2774:8:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":11593,"nodeType":"IfStatement","src":"2770:61:29","trueBody":{"id":11592,"nodeType":"Block","src":"2784:47:29","statements":[{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":11589,"name":"EnforcedPause","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11536,"src":"2805:13:29","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$_t_error_$","typeString":"function () pure returns (error)"}},"id":11590,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2805:15:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_error","typeString":"error"}},"id":11591,"nodeType":"RevertStatement","src":"2798:22:29"}]}}]},"documentation":{"id":11584,"nodeType":"StructuredDocumentation","src":"2647:57:29","text":" @dev Throws if the contract is paused."},"implemented":true,"kind":"function","modifiers":[],"name":"_requireNotPaused","nameLocation":"2718:17:29","parameters":{"id":11585,"nodeType":"ParameterList","parameters":[],"src":"2735:2:29"},"returnParameters":{"id":11586,"nodeType":"ParameterList","parameters":[],"src":"2760:0:29"},"scope":11657,"stateMutability":"view","virtual":true,"visibility":"internal"},{"id":11608,"nodeType":"FunctionDefinition","src":"2909:126:29","nodes":[],"body":{"id":11607,"nodeType":"Block","src":"2957:78:29","nodes":[],"statements":[{"condition":{"id":11601,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"2971:9:29","subExpression":{"arguments":[],"expression":{"argumentTypes":[],"id":11599,"name":"paused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11583,"src":"2972:6:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_bool_$","typeString":"function () view returns (bool)"}},"id":11600,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2972:8:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":11606,"nodeType":"IfStatement","src":"2967:62:29","trueBody":{"id":11605,"nodeType":"Block","src":"2982:47:29","statements":[{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":11602,"name":"ExpectedPause","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11539,"src":"3003:13:29","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$_t_error_$","typeString":"function () pure returns (error)"}},"id":11603,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3003:15:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_error","typeString":"error"}},"id":11604,"nodeType":"RevertStatement","src":"2996:22:29"}]}}]},"documentation":{"id":11596,"nodeType":"StructuredDocumentation","src":"2843:61:29","text":" @dev Throws if the contract is not paused."},"implemented":true,"kind":"function","modifiers":[],"name":"_requirePaused","nameLocation":"2918:14:29","parameters":{"id":11597,"nodeType":"ParameterList","parameters":[],"src":"2932:2:29"},"returnParameters":{"id":11598,"nodeType":"ParameterList","parameters":[],"src":"2957:0:29"},"scope":11657,"stateMutability":"view","virtual":true,"visibility":"internal"},{"id":11632,"nodeType":"FunctionDefinition","src":"3170:176:29","nodes":[],"body":{"id":11631,"nodeType":"Block","src":"3219:127:29","nodes":[],"statements":[{"assignments":[11616],"declarations":[{"constant":false,"id":11616,"mutability":"mutable","name":"$","nameLocation":"3253:1:29","nodeType":"VariableDeclaration","scope":11631,"src":"3229:25:29","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"},"typeName":{"id":11615,"nodeType":"UserDefinedTypeName","pathNode":{"id":11614,"name":"PausableStorage","nameLocations":["3229:15:29"],"nodeType":"IdentifierPath","referencedDeclaration":11512,"src":"3229:15:29"},"referencedDeclaration":11512,"src":"3229:15:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"}},"visibility":"internal"}],"id":11619,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":11617,"name":"_getPausableStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11523,"src":"3257:19:29","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_PausableStorage_$11512_storage_ptr_$","typeString":"function () pure returns (struct PausableUpgradeable.PausableStorage storage pointer)"}},"id":11618,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3257:21:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"nodeType":"VariableDeclarationStatement","src":"3229:49:29"},{"expression":{"id":11624,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":11620,"name":"$","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11616,"src":"3288:1:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"id":11622,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"3290:7:29","memberName":"_paused","nodeType":"MemberAccess","referencedDeclaration":11511,"src":"3288:9:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":11623,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3300:4:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"3288:16:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":11625,"nodeType":"ExpressionStatement","src":"3288:16:29"},{"eventCall":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":11627,"name":"_msgSender","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11479,"src":"3326:10:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":11628,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3326:12:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":11626,"name":"Paused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11528,"src":"3319:6:29","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":11629,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3319:20:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":11630,"nodeType":"EmitStatement","src":"3314:25:29"}]},"documentation":{"id":11609,"nodeType":"StructuredDocumentation","src":"3041:124:29","text":" @dev Triggers stopped state.\n Requirements:\n - The contract must not be paused."},"implemented":true,"kind":"function","modifiers":[{"id":11612,"kind":"modifierInvocation","modifierName":{"id":11611,"name":"whenNotPaused","nameLocations":["3205:13:29"],"nodeType":"IdentifierPath","referencedDeclaration":11547,"src":"3205:13:29"},"nodeType":"ModifierInvocation","src":"3205:13:29"}],"name":"_pause","nameLocation":"3179:6:29","parameters":{"id":11610,"nodeType":"ParameterList","parameters":[],"src":"3185:2:29"},"returnParameters":{"id":11613,"nodeType":"ParameterList","parameters":[],"src":"3219:0:29"},"scope":11657,"stateMutability":"nonpayable","virtual":true,"visibility":"internal"},{"id":11656,"nodeType":"FunctionDefinition","src":"3478:178:29","nodes":[],"body":{"id":11655,"nodeType":"Block","src":"3526:130:29","nodes":[],"statements":[{"assignments":[11640],"declarations":[{"constant":false,"id":11640,"mutability":"mutable","name":"$","nameLocation":"3560:1:29","nodeType":"VariableDeclaration","scope":11655,"src":"3536:25:29","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"},"typeName":{"id":11639,"nodeType":"UserDefinedTypeName","pathNode":{"id":11638,"name":"PausableStorage","nameLocations":["3536:15:29"],"nodeType":"IdentifierPath","referencedDeclaration":11512,"src":"3536:15:29"},"referencedDeclaration":11512,"src":"3536:15:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage"}},"visibility":"internal"}],"id":11643,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":11641,"name":"_getPausableStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11523,"src":"3564:19:29","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_PausableStorage_$11512_storage_ptr_$","typeString":"function () pure returns (struct PausableUpgradeable.PausableStorage storage pointer)"}},"id":11642,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3564:21:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"nodeType":"VariableDeclarationStatement","src":"3536:49:29"},{"expression":{"id":11648,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"id":11644,"name":"$","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11640,"src":"3595:1:29","typeDescriptions":{"typeIdentifier":"t_struct$_PausableStorage_$11512_storage_ptr","typeString":"struct PausableUpgradeable.PausableStorage storage pointer"}},"id":11646,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"3597:7:29","memberName":"_paused","nodeType":"MemberAccess","referencedDeclaration":11511,"src":"3595:9:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":11647,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3607:5:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"3595:17:29","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":11649,"nodeType":"ExpressionStatement","src":"3595:17:29"},{"eventCall":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":11651,"name":"_msgSender","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11479,"src":"3636:10:29","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":11652,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3636:12:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":11650,"name":"Unpaused","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":11533,"src":"3627:8:29","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":11653,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3627:22:29","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":11654,"nodeType":"EmitStatement","src":"3622:27:29"}]},"documentation":{"id":11633,"nodeType":"StructuredDocumentation","src":"3352:121:29","text":" @dev Returns to normal state.\n Requirements:\n - The contract must be paused."},"implemented":true,"kind":"function","modifiers":[{"id":11636,"kind":"modifierInvocation","modifierName":{"id":11635,"name":"whenPaused","nameLocations":["3515:10:29"],"nodeType":"IdentifierPath","referencedDeclaration":11555,"src":"3515:10:29"},"nodeType":"ModifierInvocation","src":"3515:10:29"}],"name":"_unpause","nameLocation":"3487:8:29","parameters":{"id":11634,"nodeType":"ParameterList","parameters":[],"src":"3495:2:29"},"returnParameters":{"id":11637,"nodeType":"ParameterList","parameters":[],"src":"3526:0:29"},"scope":11657,"stateMutability":"nonpayable","virtual":true,"visibility":"internal"}],"abstract":true,"baseContracts":[{"baseName":{"id":11505,"name":"Initializable","nameLocations":["742:13:29"],"nodeType":"IdentifierPath","referencedDeclaration":10652,"src":"742:13:29"},"id":11506,"nodeType":"InheritanceSpecifier","src":"742:13:29"},{"baseName":{"id":11507,"name":"ContextUpgradeable","nameLocations":["757:18:29"],"nodeType":"IdentifierPath","referencedDeclaration":11497,"src":"757:18:29"},"id":11508,"nodeType":"InheritanceSpecifier","src":"757:18:29"}],"canonicalName":"PausableUpgradeable","contractDependencies":[],"contractKind":"contract","documentation":{"id":11504,"nodeType":"StructuredDocumentation","src":"261:439:29","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,"linearizedBaseContracts":[11657,11497,10652],"name":"PausableUpgradeable","nameLocation":"719:19:29","scope":11658,"usedErrors":[10401,10404,11536,11539],"usedEvents":[10409,11528,11533]}],"license":"MIT"},"id":29}