{ "contractName": "TimeChecker", "abi": [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getDuration", "outputs": [ { "internalType": "uint256", "name": "duration", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "valNew", "type": "uint256" } ], "name": "updateDuation", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"valNew\",\"type\":\"uint256\"}],\"name\":\"updateDuation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getDuration()\":{\"details\":\"Returns the max duration for function called by user\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"updateDuation(uint256)\":{\"details\":\"Change duration value\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/utils/TimeChecker.sol\":\"TimeChecker\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fc980984badf3984b6303b377711220e067722bbd6a135b24669ff5069ef9f32\",\"dweb:/ipfs/QmPHXMSXj99XjSVM21YsY6aNtLLjLVXDbyN76J5HQYvvrz\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]},\"project:/contracts/utils/TimeChecker.sol\":{\"keccak256\":\"0x1f73a457228fbce3dc365f0c5199f00b2b004c217af932b691a9f823af266804\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0659f8f79b89ac12e5c58bb1560ad26b70a5bf9f1f860a2dbbf7f00088e99d62\",\"dweb:/ipfs/QmPqqPTteQHPQejcnNbpiQkwe9iQ9nPBZe1SCfFabnUeii\"]}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b5061002d61002261004560201b60201c565b61004d60201b60201c565b62015180600181905550610708600281905550610111565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61063d806101206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780637f9d3096146100665780638da5cb5b14610082578063ad2e8c9b146100a0578063f2fde38b146100be575b600080fd5b6100646100da565b005b610080600480360381019061007b9190610380565b6100ee565b005b61008a610144565b60405161009791906103ee565b60405180910390f35b6100a861016d565b6040516100b59190610418565b60405180910390f35b6100d860048036038101906100d3919061045f565b610177565b005b6100e26101fb565b6100ec6000610279565b565b6100f66101fb565b600254811161013a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610131906104e9565b60405180910390fd5b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b61017f6101fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156101ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e69061057b565b60405180910390fd5b6101f881610279565b50565b61020361033d565b73ffffffffffffffffffffffffffffffffffffffff16610221610144565b73ffffffffffffffffffffffffffffffffffffffff1614610277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026e906105e7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61035d8161034a565b811461036857600080fd5b50565b60008135905061037a81610354565b92915050565b60006020828403121561039657610395610345565b5b60006103a48482850161036b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d8826103ad565b9050919050565b6103e8816103cd565b82525050565b600060208201905061040360008301846103df565b92915050565b6104128161034a565b82525050565b600060208201905061042d6000830184610409565b92915050565b61043c816103cd565b811461044757600080fd5b50565b60008135905061045981610433565b92915050565b60006020828403121561047557610474610345565b5b60006104838482850161044a565b91505092915050565b600082825260208201905092915050565b7f6475726174696f6e20746f6f2073686f72740000000000000000000000000000600082015250565b60006104d360128361048c565b91506104de8261049d565b602082019050919050565b60006020820190508181036000830152610502816104c6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061056560268361048c565b915061057082610509565b604082019050919050565b6000602082019050818103600083015261059481610558565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006105d160208361048c565b91506105dc8261059b565b602082019050919050565b60006020820190508181036000830152610600816105c4565b905091905056fea2646970667358221220075c23b0e37492fda3ad0b9c939b82c0442f9828e7543fe6cfa63c2c0d177c7e64736f6c634300080a0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780637f9d3096146100665780638da5cb5b14610082578063ad2e8c9b146100a0578063f2fde38b146100be575b600080fd5b6100646100da565b005b610080600480360381019061007b9190610380565b6100ee565b005b61008a610144565b60405161009791906103ee565b60405180910390f35b6100a861016d565b6040516100b59190610418565b60405180910390f35b6100d860048036038101906100d3919061045f565b610177565b005b6100e26101fb565b6100ec6000610279565b565b6100f66101fb565b600254811161013a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610131906104e9565b60405180910390fd5b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b61017f6101fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156101ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e69061057b565b60405180910390fd5b6101f881610279565b50565b61020361033d565b73ffffffffffffffffffffffffffffffffffffffff16610221610144565b73ffffffffffffffffffffffffffffffffffffffff1614610277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026e906105e7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61035d8161034a565b811461036857600080fd5b50565b60008135905061037a81610354565b92915050565b60006020828403121561039657610395610345565b5b60006103a48482850161036b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d8826103ad565b9050919050565b6103e8816103cd565b82525050565b600060208201905061040360008301846103df565b92915050565b6104128161034a565b82525050565b600060208201905061042d6000830184610409565b92915050565b61043c816103cd565b811461044757600080fd5b50565b60008135905061045981610433565b92915050565b60006020828403121561047557610474610345565b5b60006104838482850161044a565b91505092915050565b600082825260208201905092915050565b7f6475726174696f6e20746f6f2073686f72740000000000000000000000000000600082015250565b60006104d360128361048c565b91506104de8261049d565b602082019050919050565b60006020820190508181036000830152610502816104c6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061056560268361048c565b915061057082610509565b604082019050919050565b6000602082019050818103600083015261059481610558565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006105d160208361048c565b91506105dc8261059b565b602082019050919050565b60006020820190508181036000830152610600816105c4565b905091905056fea2646970667358221220075c23b0e37492fda3ad0b9c939b82c0442f9828e7543fe6cfa63c2c0d177c7e64736f6c634300080a0033", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [ { "ast": { "nodeType": "YulBlock", "src": "0:5727:84", "statements": [ { "body": { "nodeType": "YulBlock", "src": "47:35:84", "statements": [ { "nodeType": "YulAssignment", "src": "57:19:84", "value": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "73:2:84", "type": "", "value": "64" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "67:5:84" }, "nodeType": "YulFunctionCall", "src": "67:9:84" }, "variableNames": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "57:6:84" } ] } ] }, "name": "allocate_unbounded", "nodeType": "YulFunctionDefinition", "returnVariables": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "40:6:84", "type": "" } ], "src": "7:75:84" }, { "body": { "nodeType": "YulBlock", "src": "177:28:84", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "194:1:84", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "197:1:84", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "187:6:84" }, "nodeType": "YulFunctionCall", "src": "187:12:84" }, "nodeType": "YulExpressionStatement", "src": "187:12:84" } ] }, "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulFunctionDefinition", "src": "88:117:84" }, { "body": { "nodeType": "YulBlock", "src": "300:28:84", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "317:1:84", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "320:1:84", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "310:6:84" }, "nodeType": "YulFunctionCall", "src": "310:12:84" }, "nodeType": "YulExpressionStatement", "src": "310:12:84" } ] }, "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", "nodeType": "YulFunctionDefinition", "src": "211:117:84" }, { "body": { "nodeType": "YulBlock", "src": "379:32:84", "statements": [ { "nodeType": "YulAssignment", "src": "389:16:84", "value": { "name": "value", "nodeType": "YulIdentifier", "src": "400:5:84" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "389:7:84" } ] } ] }, "name": "cleanup_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "361:5:84", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "371:7:84", "type": "" } ], "src": "334:77:84" }, { "body": { "nodeType": "YulBlock", "src": "460:79:84", "statements": [ { "body": { "nodeType": "YulBlock", "src": "517:16:84", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "526:1:84", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "529:1:84", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "519:6:84" }, "nodeType": "YulFunctionCall", "src": "519:12:84" }, "nodeType": "YulExpressionStatement", "src": "519:12:84" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "483:5:84" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "508:5:84" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "490:17:84" }, "nodeType": "YulFunctionCall", "src": "490:24:84" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "480:2:84" }, "nodeType": "YulFunctionCall", "src": "480:35:84" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "473:6:84" }, "nodeType": "YulFunctionCall", "src": "473:43:84" }, "nodeType": "YulIf", "src": "470:63:84" } ] }, "name": "validator_revert_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "453:5:84", "type": "" } ], "src": "417:122:84" }, { "body": { "nodeType": "YulBlock", "src": "597:87:84", "statements": [ { "nodeType": "YulAssignment", "src": "607:29:84", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "629:6:84" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "616:12:84" }, "nodeType": "YulFunctionCall", "src": "616:20:84" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "607:5:84" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "672:5:84" } ], "functionName": { "name": "validator_revert_t_uint256", "nodeType": "YulIdentifier", "src": "645:26:84" }, "nodeType": "YulFunctionCall", "src": "645:33:84" }, "nodeType": "YulExpressionStatement", "src": "645:33:84" } ] }, "name": "abi_decode_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "575:6:84", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "583:3:84", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "591:5:84", "type": "" } ], "src": "545:139:84" }, { "body": { "nodeType": "YulBlock", "src": "756:263:84", "statements": [ { "body": { "nodeType": "YulBlock", "src": "802:83:84", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "804:77:84" }, "nodeType": "YulFunctionCall", "src": "804:79:84" }, "nodeType": "YulExpressionStatement", "src": "804:79:84" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "777:7:84" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "786:9:84" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "773:3:84" }, "nodeType": "YulFunctionCall", "src": "773:23:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "798:2:84", "type": "", "value": "32" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "769:3:84" }, "nodeType": "YulFunctionCall", "src": "769:32:84" }, "nodeType": "YulIf", "src": "766:119:84" }, { "nodeType": "YulBlock", "src": "895:117:84", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "910:15:84", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "924:1:84", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "914:6:84", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "939:63:84", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "974:9:84" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "985:6:84" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "970:3:84" }, "nodeType": "YulFunctionCall", "src": "970:22:84" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "994:7:84" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "949:20:84" }, "nodeType": "YulFunctionCall", "src": "949:53:84" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "939:6:84" } ] } ] } ] }, "name": "abi_decode_tuple_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "726:9:84", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "737:7:84", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "749:6:84", "type": "" } ], "src": "690:329:84" }, { "body": { "nodeType": "YulBlock", "src": "1070:81:84", "statements": [ { "nodeType": "YulAssignment", "src": "1080:65:84", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "1095:5:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1102:42:84", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffff" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "1091:3:84" }, "nodeType": "YulFunctionCall", "src": "1091:54:84" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "1080:7:84" } ] } ] }, "name": "cleanup_t_uint160", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1052:5:84", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "1062:7:84", "type": "" } ], "src": "1025:126:84" }, { "body": { "nodeType": "YulBlock", "src": "1202:51:84", "statements": [ { "nodeType": "YulAssignment", "src": "1212:35:84", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "1241:5:84" } ], "functionName": { "name": "cleanup_t_uint160", "nodeType": "YulIdentifier", "src": "1223:17:84" }, "nodeType": "YulFunctionCall", "src": "1223:24:84" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "1212:7:84" } ] } ] }, "name": "cleanup_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1184:5:84", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "1194:7:84", "type": "" } ], "src": "1157:96:84" }, { "body": { "nodeType": "YulBlock", "src": "1324:53:84", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "1341:3:84" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "1364:5:84" } ], "functionName": { "name": "cleanup_t_address", "nodeType": "YulIdentifier", "src": "1346:17:84" }, "nodeType": "YulFunctionCall", "src": "1346:24:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "1334:6:84" }, "nodeType": "YulFunctionCall", "src": "1334:37:84" }, "nodeType": "YulExpressionStatement", "src": "1334:37:84" } ] }, "name": "abi_encode_t_address_to_t_address_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1312:5:84", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "1319:3:84", "type": "" } ], "src": "1259:118:84" }, { "body": { "nodeType": "YulBlock", "src": "1481:124:84", "statements": [ { "nodeType": "YulAssignment", "src": "1491:26:84", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1503:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1514:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1499:3:84" }, "nodeType": "YulFunctionCall", "src": "1499:18:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "1491:4:84" } ] }, { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "1571:6:84" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1584:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1595:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1580:3:84" }, "nodeType": "YulFunctionCall", "src": "1580:17:84" } ], "functionName": { "name": "abi_encode_t_address_to_t_address_fromStack", "nodeType": "YulIdentifier", "src": "1527:43:84" }, "nodeType": "YulFunctionCall", "src": "1527:71:84" }, "nodeType": "YulExpressionStatement", "src": "1527:71:84" } ] }, "name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "1453:9:84", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "1465:6:84", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "1476:4:84", "type": "" } ], "src": "1383:222:84" }, { "body": { "nodeType": "YulBlock", "src": "1676:53:84", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "1693:3:84" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "1716:5:84" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "1698:17:84" }, "nodeType": "YulFunctionCall", "src": "1698:24:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "1686:6:84" }, "nodeType": "YulFunctionCall", "src": "1686:37:84" }, "nodeType": "YulExpressionStatement", "src": "1686:37:84" } ] }, "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1664:5:84", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "1671:3:84", "type": "" } ], "src": "1611:118:84" }, { "body": { "nodeType": "YulBlock", "src": "1833:124:84", "statements": [ { "nodeType": "YulAssignment", "src": "1843:26:84", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1855:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1866:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1851:3:84" }, "nodeType": "YulFunctionCall", "src": "1851:18:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "1843:4:84" } ] }, { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "1923:6:84" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1936:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1947:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1932:3:84" }, "nodeType": "YulFunctionCall", "src": "1932:17:84" } ], "functionName": { "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulIdentifier", "src": "1879:43:84" }, "nodeType": "YulFunctionCall", "src": "1879:71:84" }, "nodeType": "YulExpressionStatement", "src": "1879:71:84" } ] }, "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "1805:9:84", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "1817:6:84", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "1828:4:84", "type": "" } ], "src": "1735:222:84" }, { "body": { "nodeType": "YulBlock", "src": "2006:79:84", "statements": [ { "body": { "nodeType": "YulBlock", "src": "2063:16:84", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "2072:1:84", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2075:1:84", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "2065:6:84" }, "nodeType": "YulFunctionCall", "src": "2065:12:84" }, "nodeType": "YulExpressionStatement", "src": "2065:12:84" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2029:5:84" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2054:5:84" } ], "functionName": { "name": "cleanup_t_address", "nodeType": "YulIdentifier", "src": "2036:17:84" }, "nodeType": "YulFunctionCall", "src": "2036:24:84" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "2026:2:84" }, "nodeType": "YulFunctionCall", "src": "2026:35:84" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "2019:6:84" }, "nodeType": "YulFunctionCall", "src": "2019:43:84" }, "nodeType": "YulIf", "src": "2016:63:84" } ] }, "name": "validator_revert_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1999:5:84", "type": "" } ], "src": "1963:122:84" }, { "body": { "nodeType": "YulBlock", "src": "2143:87:84", "statements": [ { "nodeType": "YulAssignment", "src": "2153:29:84", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "2175:6:84" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "2162:12:84" }, "nodeType": "YulFunctionCall", "src": "2162:20:84" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2153:5:84" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2218:5:84" } ], "functionName": { "name": "validator_revert_t_address", "nodeType": "YulIdentifier", "src": "2191:26:84" }, "nodeType": "YulFunctionCall", "src": "2191:33:84" }, "nodeType": "YulExpressionStatement", "src": "2191:33:84" } ] }, "name": "abi_decode_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "2121:6:84", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "2129:3:84", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "2137:5:84", "type": "" } ], "src": "2091:139:84" }, { "body": { "nodeType": "YulBlock", "src": "2302:263:84", "statements": [ { "body": { "nodeType": "YulBlock", "src": "2348:83:84", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "2350:77:84" }, "nodeType": "YulFunctionCall", "src": "2350:79:84" }, "nodeType": "YulExpressionStatement", "src": "2350:79:84" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "2323:7:84" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "2332:9:84" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "2319:3:84" }, "nodeType": "YulFunctionCall", "src": "2319:23:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2344:2:84", "type": "", "value": "32" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "2315:3:84" }, "nodeType": "YulFunctionCall", "src": "2315:32:84" }, "nodeType": "YulIf", "src": "2312:119:84" }, { "nodeType": "YulBlock", "src": "2441:117:84", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "2456:15:84", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "2470:1:84", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "2460:6:84", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "2485:63:84", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "2520:9:84" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "2531:6:84" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2516:3:84" }, "nodeType": "YulFunctionCall", "src": "2516:22:84" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "2540:7:84" } ], "functionName": { "name": "abi_decode_t_address", "nodeType": "YulIdentifier", "src": "2495:20:84" }, "nodeType": "YulFunctionCall", "src": "2495:53:84" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "2485:6:84" } ] } ] } ] }, "name": "abi_decode_tuple_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "2272:9:84", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "2283:7:84", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "2295:6:84", "type": "" } ], "src": "2236:329:84" }, { "body": { "nodeType": "YulBlock", "src": "2667:73:84", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2684:3:84" }, { "name": "length", "nodeType": "YulIdentifier", "src": "2689:6:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "2677:6:84" }, "nodeType": "YulFunctionCall", "src": "2677:19:84" }, "nodeType": "YulExpressionStatement", "src": "2677:19:84" }, { "nodeType": "YulAssignment", "src": "2705:29:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2724:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2729:4:84", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2720:3:84" }, "nodeType": "YulFunctionCall", "src": "2720:14:84" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "2705:11:84" } ] } ] }, "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "2639:3:84", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "2644:6:84", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "2655:11:84", "type": "" } ], "src": "2571:169:84" }, { "body": { "nodeType": "YulBlock", "src": "2852:62:84", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "2874:6:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2882:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2870:3:84" }, "nodeType": "YulFunctionCall", "src": "2870:14:84" }, { "hexValue": "6475726174696f6e20746f6f2073686f7274", "kind": "string", "nodeType": "YulLiteral", "src": "2886:20:84", "type": "", "value": "duration too short" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "2863:6:84" }, "nodeType": "YulFunctionCall", "src": "2863:44:84" }, "nodeType": "YulExpressionStatement", "src": "2863:44:84" } ] }, "name": "store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "2844:6:84", "type": "" } ], "src": "2746:168:84" }, { "body": { "nodeType": "YulBlock", "src": "3066:220:84", "statements": [ { "nodeType": "YulAssignment", "src": "3076:74:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3142:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3147:2:84", "type": "", "value": "18" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "3083:58:84" }, "nodeType": "YulFunctionCall", "src": "3083:67:84" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3076:3:84" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3248:3:84" } ], "functionName": { "name": "store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "nodeType": "YulIdentifier", "src": "3159:88:84" }, "nodeType": "YulFunctionCall", "src": "3159:93:84" }, "nodeType": "YulExpressionStatement", "src": "3159:93:84" }, { "nodeType": "YulAssignment", "src": "3261:19:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3272:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3277:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3268:3:84" }, "nodeType": "YulFunctionCall", "src": "3268:12:84" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "3261:3:84" } ] } ] }, "name": "abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "3054:3:84", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "3062:3:84", "type": "" } ], "src": "2920:366:84" }, { "body": { "nodeType": "YulBlock", "src": "3463:248:84", "statements": [ { "nodeType": "YulAssignment", "src": "3473:26:84", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "3485:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3496:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3481:3:84" }, "nodeType": "YulFunctionCall", "src": "3481:18:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3473:4:84" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "3520:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3531:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3516:3:84" }, "nodeType": "YulFunctionCall", "src": "3516:17:84" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3539:4:84" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "3545:9:84" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "3535:3:84" }, "nodeType": "YulFunctionCall", "src": "3535:20:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "3509:6:84" }, "nodeType": "YulFunctionCall", "src": "3509:47:84" }, "nodeType": "YulExpressionStatement", "src": "3509:47:84" }, { "nodeType": "YulAssignment", "src": "3565:139:84", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3699:4:84" } ], "functionName": { "name": "abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "3573:124:84" }, "nodeType": "YulFunctionCall", "src": "3573:131:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3565:4:84" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "3443:9:84", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "3458:4:84", "type": "" } ], "src": "3292:419:84" }, { "body": { "nodeType": "YulBlock", "src": "3823:119:84", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "3845:6:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3853:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3841:3:84" }, "nodeType": "YulFunctionCall", "src": "3841:14:84" }, { "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061", "kind": "string", "nodeType": "YulLiteral", "src": "3857:34:84", "type": "", "value": "Ownable: new owner is the zero a" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "3834:6:84" }, "nodeType": "YulFunctionCall", "src": "3834:58:84" }, "nodeType": "YulExpressionStatement", "src": "3834:58:84" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "3913:6:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3921:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3909:3:84" }, "nodeType": "YulFunctionCall", "src": "3909:15:84" }, { "hexValue": "646472657373", "kind": "string", "nodeType": "YulLiteral", "src": "3926:8:84", "type": "", "value": "ddress" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "3902:6:84" }, "nodeType": "YulFunctionCall", "src": "3902:33:84" }, "nodeType": "YulExpressionStatement", "src": "3902:33:84" } ] }, "name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "3815:6:84", "type": "" } ], "src": "3717:225:84" }, { "body": { "nodeType": "YulBlock", "src": "4094:220:84", "statements": [ { "nodeType": "YulAssignment", "src": "4104:74:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4170:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4175:2:84", "type": "", "value": "38" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "4111:58:84" }, "nodeType": "YulFunctionCall", "src": "4111:67:84" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4104:3:84" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4276:3:84" } ], "functionName": { "name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe", "nodeType": "YulIdentifier", "src": "4187:88:84" }, "nodeType": "YulFunctionCall", "src": "4187:93:84" }, "nodeType": "YulExpressionStatement", "src": "4187:93:84" }, { "nodeType": "YulAssignment", "src": "4289:19:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4300:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4305:2:84", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4296:3:84" }, "nodeType": "YulFunctionCall", "src": "4296:12:84" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "4289:3:84" } ] } ] }, "name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "4082:3:84", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "4090:3:84", "type": "" } ], "src": "3948:366:84" }, { "body": { "nodeType": "YulBlock", "src": "4491:248:84", "statements": [ { "nodeType": "YulAssignment", "src": "4501:26:84", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "4513:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4524:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4509:3:84" }, "nodeType": "YulFunctionCall", "src": "4509:18:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "4501:4:84" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "4548:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4559:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4544:3:84" }, "nodeType": "YulFunctionCall", "src": "4544:17:84" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "4567:4:84" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "4573:9:84" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "4563:3:84" }, "nodeType": "YulFunctionCall", "src": "4563:20:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "4537:6:84" }, "nodeType": "YulFunctionCall", "src": "4537:47:84" }, "nodeType": "YulExpressionStatement", "src": "4537:47:84" }, { "nodeType": "YulAssignment", "src": "4593:139:84", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "4727:4:84" } ], "functionName": { "name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "4601:124:84" }, "nodeType": "YulFunctionCall", "src": "4601:131:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "4593:4:84" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "4471:9:84", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "4486:4:84", "type": "" } ], "src": "4320:419:84" }, { "body": { "nodeType": "YulBlock", "src": "4851:76:84", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "4873:6:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4881:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4869:3:84" }, "nodeType": "YulFunctionCall", "src": "4869:14:84" }, { "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", "kind": "string", "nodeType": "YulLiteral", "src": "4885:34:84", "type": "", "value": "Ownable: caller is not the owner" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "4862:6:84" }, "nodeType": "YulFunctionCall", "src": "4862:58:84" }, "nodeType": "YulExpressionStatement", "src": "4862:58:84" } ] }, "name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "4843:6:84", "type": "" } ], "src": "4745:182:84" }, { "body": { "nodeType": "YulBlock", "src": "5079:220:84", "statements": [ { "nodeType": "YulAssignment", "src": "5089:74:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5155:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5160:2:84", "type": "", "value": "32" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "5096:58:84" }, "nodeType": "YulFunctionCall", "src": "5096:67:84" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5089:3:84" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5261:3:84" } ], "functionName": { "name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe", "nodeType": "YulIdentifier", "src": "5172:88:84" }, "nodeType": "YulFunctionCall", "src": "5172:93:84" }, "nodeType": "YulExpressionStatement", "src": "5172:93:84" }, { "nodeType": "YulAssignment", "src": "5274:19:84", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5285:3:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5290:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "5281:3:84" }, "nodeType": "YulFunctionCall", "src": "5281:12:84" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "5274:3:84" } ] } ] }, "name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "5067:3:84", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "5075:3:84", "type": "" } ], "src": "4933:366:84" }, { "body": { "nodeType": "YulBlock", "src": "5476:248:84", "statements": [ { "nodeType": "YulAssignment", "src": "5486:26:84", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "5498:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5509:2:84", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "5494:3:84" }, "nodeType": "YulFunctionCall", "src": "5494:18:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "5486:4:84" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "5533:9:84" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5544:1:84", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "5529:3:84" }, "nodeType": "YulFunctionCall", "src": "5529:17:84" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "5552:4:84" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "5558:9:84" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "5548:3:84" }, "nodeType": "YulFunctionCall", "src": "5548:20:84" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "5522:6:84" }, "nodeType": "YulFunctionCall", "src": "5522:47:84" }, "nodeType": "YulExpressionStatement", "src": "5522:47:84" }, { "nodeType": "YulAssignment", "src": "5578:139:84", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "5712:4:84" } ], "functionName": { "name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "5586:124:84" }, "nodeType": "YulFunctionCall", "src": "5586:131:84" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "5578:4:84" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "5456:9:84", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "5471:4:84", "type": "" } ], "src": "5305:419:84" } ] }, "contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448(memPtr) {\n\n mstore(add(memPtr, 0), \"duration too short\")\n\n }\n\n function abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 18)\n store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe(memPtr) {\n\n mstore(add(memPtr, 0), \"Ownable: new owner is the zero a\")\n\n mstore(add(memPtr, 32), \"ddress\")\n\n }\n\n function abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 38)\n store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe(memPtr) {\n\n mstore(add(memPtr, 0), \"Ownable: caller is not the owner\")\n\n }\n\n function abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 32)\n store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n}\n", "id": 84, "language": "Yul", "name": "#utility.yul" } ], "sourceMap": "110:714:82:-:0;;;207:73;;;;;;;;;;936:32:4;955:12;:10;;;:12;;:::i;:::-;936:18;;;:32;;:::i;:::-;239:6:82;227:9;:18;;;;265:10;251:11;:24;;;;110:714;;640:96:32;693:7;719:10;712:17;;640:96;:::o;2426:187:4:-;2499:16;2518:6;;;;;;;;;;;2499:25;;2543:8;2534:6;;:17;;;;;;;;;;;;;;;;;;2597:8;2566:40;;2587:8;2566:40;;;;;;;;;;;;2489:124;2426:187;:::o;110:714:82:-;;;;;;;", "deployedSourceMap": "110:714:82:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1824:101:4;;;:::i;:::-;;678:144:82;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1201:85:4;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;539:91:82;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2074:198:4;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1824:101;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;678:144:82:-;1094:13:4;:11;:13::i;:::-;759:11:82::1;;750:6;:20;742:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;811:6;799:9;:18;;;;678:144:::0;:::o;1201:85:4:-;1247:7;1273:6;;;;;;;;;;;1266:13;;1201:85;:::o;539:91:82:-;585:16;616:9;;609:16;;539:91;:::o;2074:198:4:-;1094:13;:11;:13::i;:::-;2182:1:::1;2162:22;;:8;:22;;;;2154:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;1359:130::-;1433:12;:10;:12::i;:::-;1422:23;;:7;:5;:7::i;:::-;:23;;;1414:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;1359:130::o;2426:187::-;2499:16;2518:6;;;;;;;;;;;2499:25;;2543:8;2534:6;;:17;;;;;;;;;;;;;;;;;;2597:8;2566:40;;2587:8;2566:40;;;;;;;;;;;;2489:124;2426:187;:::o;640:96:32:-;693:7;719:10;712:17;;640:96;:::o;88:117:84:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:126::-;1062:7;1102:42;1095:5;1091:54;1080:65;;1025:126;;;:::o;1157:96::-;1194:7;1223:24;1241:5;1223:24;:::i;:::-;1212:35;;1157:96;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:118::-;1698:24;1716:5;1698:24;:::i;:::-;1693:3;1686:37;1611:118;;:::o;1735:222::-;1828:4;1866:2;1855:9;1851:18;1843:26;;1879:71;1947:1;1936:9;1932:17;1923:6;1879:71;:::i;:::-;1735:222;;;;:::o;1963:122::-;2036:24;2054:5;2036:24;:::i;:::-;2029:5;2026:35;2016:63;;2075:1;2072;2065:12;2016:63;1963:122;:::o;2091:139::-;2137:5;2175:6;2162:20;2153:29;;2191:33;2218:5;2191:33;:::i;:::-;2091:139;;;;:::o;2236:329::-;2295:6;2344:2;2332:9;2323:7;2319:23;2315:32;2312:119;;;2350:79;;:::i;:::-;2312:119;2470:1;2495:53;2540:7;2531:6;2520:9;2516:22;2495:53;:::i;:::-;2485:63;;2441:117;2236:329;;;;:::o;2571:169::-;2655:11;2689:6;2684:3;2677:19;2729:4;2724:3;2720:14;2705:29;;2571:169;;;;:::o;2746:168::-;2886:20;2882:1;2874:6;2870:14;2863:44;2746:168;:::o;2920:366::-;3062:3;3083:67;3147:2;3142:3;3083:67;:::i;:::-;3076:74;;3159:93;3248:3;3159:93;:::i;:::-;3277:2;3272:3;3268:12;3261:19;;2920:366;;;:::o;3292:419::-;3458:4;3496:2;3485:9;3481:18;3473:26;;3545:9;3539:4;3535:20;3531:1;3520:9;3516:17;3509:47;3573:131;3699:4;3573:131;:::i;:::-;3565:139;;3292:419;;;:::o;3717:225::-;3857:34;3853:1;3845:6;3841:14;3834:58;3926:8;3921:2;3913:6;3909:15;3902:33;3717:225;:::o;3948:366::-;4090:3;4111:67;4175:2;4170:3;4111:67;:::i;:::-;4104:74;;4187:93;4276:3;4187:93;:::i;:::-;4305:2;4300:3;4296:12;4289:19;;3948:366;;;:::o;4320:419::-;4486:4;4524:2;4513:9;4509:18;4501:26;;4573:9;4567:4;4563:20;4559:1;4548:9;4544:17;4537:47;4601:131;4727:4;4601:131;:::i;:::-;4593:139;;4320:419;;;:::o;4745:182::-;4885:34;4881:1;4873:6;4869:14;4862:58;4745:182;:::o;4933:366::-;5075:3;5096:67;5160:2;5155:3;5096:67;:::i;:::-;5089:74;;5172:93;5261:3;5172:93;:::i;:::-;5290:2;5285:3;5281:12;5274:19;;4933:366;;;:::o;5305:419::-;5471:4;5509:2;5498:9;5494:18;5486:26;;5558:9;5552:4;5548:20;5544:1;5533:9;5529:17;5522:47;5586:131;5712:4;5586:131;:::i;:::-;5578:139;;5305:419;;;:::o", "source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\ncontract TimeChecker is Ownable {\n uint256 private _duration;\n uint256 private minDuration;\n\n constructor() {\n _duration = 1 days;\n minDuration = 30 minutes;\n }\n\n modifier timeValid(uint256 time) {\n require(\n time + _duration >= block.timestamp,\n \"expired, please send another transaction with new signature\"\n );\n _;\n }\n\n /**\n * @dev Returns the max duration for function called by user\n */\n function getDuration() external view returns (uint256 duration) {\n return _duration;\n }\n\n /**\n * @dev Change duration value\n */\n function updateDuation(uint256 valNew) external onlyOwner {\n require(valNew > minDuration, \"duration too short\");\n _duration = valNew;\n }\n}\n", "sourcePath": "/Users/zhl/Documents/workspace/crypto/becrypto/contracts/utils/TimeChecker.sol", "ast": { "absolutePath": "project:/contracts/utils/TimeChecker.sol", "exportedSymbols": { "Context": [ 6696 ], "Ownable": [ 651 ], "TimeChecker": [ 21232 ] }, "id": 21233, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 21167, "literals": [ "solidity", "0.8", ".10" ], "nodeType": "PragmaDirective", "src": "32:23:82" }, { "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", "file": "@openzeppelin/contracts/access/Ownable.sol", "id": 21168, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 21233, "sourceUnit": 652, "src": "56:52:82", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 21169, "name": "Ownable", "nodeType": "IdentifierPath", "referencedDeclaration": 651, "src": "134:7:82" }, "id": 21170, "nodeType": "InheritanceSpecifier", "src": "134:7:82" } ], "canonicalName": "TimeChecker", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 21232, "linearizedBaseContracts": [ 21232, 651, 6696 ], "name": "TimeChecker", "nameLocation": "119:11:82", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 21172, "mutability": "mutable", "name": "_duration", "nameLocation": "162:9:82", "nodeType": "VariableDeclaration", "scope": 21232, "src": "146:25:82", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21171, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "146:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "constant": false, "id": 21174, "mutability": "mutable", "name": "minDuration", "nameLocation": "191:11:82", "nodeType": "VariableDeclaration", "scope": 21232, "src": "175:27:82", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21173, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "175:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "body": { "id": 21185, "nodeType": "Block", "src": "221:59:82", "statements": [ { "expression": { "id": 21179, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21177, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "227:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "31", "id": 21178, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "239:6:82", "subdenomination": "days", "typeDescriptions": { "typeIdentifier": "t_rational_86400_by_1", "typeString": "int_const 86400" }, "value": "1" }, "src": "227:18:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21180, "nodeType": "ExpressionStatement", "src": "227:18:82" }, { "expression": { "id": 21183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21181, "name": "minDuration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21174, "src": "251:11:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "3330", "id": 21182, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "265:10:82", "subdenomination": "minutes", "typeDescriptions": { "typeIdentifier": "t_rational_1800_by_1", "typeString": "int_const 1800" }, "value": "30" }, "src": "251:24:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21184, "nodeType": "ExpressionStatement", "src": "251:24:82" } ] }, "id": 21186, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 21175, "nodeType": "ParameterList", "parameters": [], "src": "218:2:82" }, "returnParameters": { "id": 21176, "nodeType": "ParameterList", "parameters": [], "src": "221:0:82" }, "scope": 21232, "src": "207:73:82", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 21201, "nodeType": "Block", "src": "317:143:82", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21196, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21193, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21191, "name": "time", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21188, "src": "338:4:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "id": 21192, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "345:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "338:16:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 21194, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "358:5:82", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 21195, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "358:15:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "338:35:82", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "657870697265642c20706c656173652073656e6420616e6f74686572207472616e73616374696f6e2077697468206e6577207369676e6174757265", "id": 21197, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "381:61:82", "typeDescriptions": { "typeIdentifier": "t_stringliteral_70221d5dd3ea1c4d6c0ad66f9d3976510f4a29aa9bafcc3f20a9b6877fe4b13b", "typeString": "literal_string \"expired, please send another transaction with new signature\"" }, "value": "expired, please send another transaction with new signature" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_70221d5dd3ea1c4d6c0ad66f9d3976510f4a29aa9bafcc3f20a9b6877fe4b13b", "typeString": "literal_string \"expired, please send another transaction with new signature\"" } ], "id": 21190, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "323:7:82", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 21198, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "323:125:82", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 21199, "nodeType": "ExpressionStatement", "src": "323:125:82" }, { "id": 21200, "nodeType": "PlaceholderStatement", "src": "454:1:82" } ] }, "id": 21202, "name": "timeValid", "nameLocation": "293:9:82", "nodeType": "ModifierDefinition", "parameters": { "id": 21189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21188, "mutability": "mutable", "name": "time", "nameLocation": "311:4:82", "nodeType": "VariableDeclaration", "scope": 21202, "src": "303:12:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21187, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "303:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "302:14:82" }, "src": "284:176:82", "virtual": false, "visibility": "internal" }, { "body": { "id": 21210, "nodeType": "Block", "src": "603:27:82", "statements": [ { "expression": { "id": 21208, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "616:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 21207, "id": 21209, "nodeType": "Return", "src": "609:16:82" } ] }, "documentation": { "id": 21203, "nodeType": "StructuredDocumentation", "src": "464:72:82", "text": " @dev Returns the max duration for function called by user" }, "functionSelector": "ad2e8c9b", "id": 21211, "implemented": true, "kind": "function", "modifiers": [], "name": "getDuration", "nameLocation": "548:11:82", "nodeType": "FunctionDefinition", "parameters": { "id": 21204, "nodeType": "ParameterList", "parameters": [], "src": "559:2:82" }, "returnParameters": { "id": 21207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21206, "mutability": "mutable", "name": "duration", "nameLocation": "593:8:82", "nodeType": "VariableDeclaration", "scope": 21211, "src": "585:16:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21205, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "585:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "584:18:82" }, "scope": 21232, "src": "539:91:82", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 21230, "nodeType": "Block", "src": "736:86:82", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21222, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21220, "name": "valNew", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21214, "src": "750:6:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 21221, "name": "minDuration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21174, "src": "759:11:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "750:20:82", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "6475726174696f6e20746f6f2073686f7274", "id": 21223, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "772:20:82", "typeDescriptions": { "typeIdentifier": "t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "typeString": "literal_string \"duration too short\"" }, "value": "duration too short" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "typeString": "literal_string \"duration too short\"" } ], "id": 21219, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "742:7:82", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 21224, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "742:51:82", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 21225, "nodeType": "ExpressionStatement", "src": "742:51:82" }, { "expression": { "id": 21228, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21226, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "799:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 21227, "name": "valNew", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21214, "src": "811:6:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "799:18:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21229, "nodeType": "ExpressionStatement", "src": "799:18:82" } ] }, "documentation": { "id": 21212, "nodeType": "StructuredDocumentation", "src": "634:41:82", "text": " @dev Change duration value" }, "functionSelector": "7f9d3096", "id": 21231, "implemented": true, "kind": "function", "modifiers": [ { "id": 21217, "kind": "modifierInvocation", "modifierName": { "id": 21216, "name": "onlyOwner", "nodeType": "IdentifierPath", "referencedDeclaration": 570, "src": "726:9:82" }, "nodeType": "ModifierInvocation", "src": "726:9:82" } ], "name": "updateDuation", "nameLocation": "687:13:82", "nodeType": "FunctionDefinition", "parameters": { "id": 21215, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21214, "mutability": "mutable", "name": "valNew", "nameLocation": "709:6:82", "nodeType": "VariableDeclaration", "scope": 21231, "src": "701:14:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21213, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "701:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "700:16:82" }, "returnParameters": { "id": 21218, "nodeType": "ParameterList", "parameters": [], "src": "736:0:82" }, "scope": 21232, "src": "678:144:82", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 21233, "src": "110:714:82", "usedErrors": [] } ], "src": "32:793:82" }, "legacyAST": { "absolutePath": "project:/contracts/utils/TimeChecker.sol", "exportedSymbols": { "Context": [ 6696 ], "Ownable": [ 651 ], "TimeChecker": [ 21232 ] }, "id": 21233, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 21167, "literals": [ "solidity", "0.8", ".10" ], "nodeType": "PragmaDirective", "src": "32:23:82" }, { "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", "file": "@openzeppelin/contracts/access/Ownable.sol", "id": 21168, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 21233, "sourceUnit": 652, "src": "56:52:82", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 21169, "name": "Ownable", "nodeType": "IdentifierPath", "referencedDeclaration": 651, "src": "134:7:82" }, "id": 21170, "nodeType": "InheritanceSpecifier", "src": "134:7:82" } ], "canonicalName": "TimeChecker", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 21232, "linearizedBaseContracts": [ 21232, 651, 6696 ], "name": "TimeChecker", "nameLocation": "119:11:82", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 21172, "mutability": "mutable", "name": "_duration", "nameLocation": "162:9:82", "nodeType": "VariableDeclaration", "scope": 21232, "src": "146:25:82", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21171, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "146:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "constant": false, "id": 21174, "mutability": "mutable", "name": "minDuration", "nameLocation": "191:11:82", "nodeType": "VariableDeclaration", "scope": 21232, "src": "175:27:82", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21173, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "175:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "body": { "id": 21185, "nodeType": "Block", "src": "221:59:82", "statements": [ { "expression": { "id": 21179, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21177, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "227:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "31", "id": 21178, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "239:6:82", "subdenomination": "days", "typeDescriptions": { "typeIdentifier": "t_rational_86400_by_1", "typeString": "int_const 86400" }, "value": "1" }, "src": "227:18:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21180, "nodeType": "ExpressionStatement", "src": "227:18:82" }, { "expression": { "id": 21183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21181, "name": "minDuration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21174, "src": "251:11:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "3330", "id": 21182, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "265:10:82", "subdenomination": "minutes", "typeDescriptions": { "typeIdentifier": "t_rational_1800_by_1", "typeString": "int_const 1800" }, "value": "30" }, "src": "251:24:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21184, "nodeType": "ExpressionStatement", "src": "251:24:82" } ] }, "id": 21186, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 21175, "nodeType": "ParameterList", "parameters": [], "src": "218:2:82" }, "returnParameters": { "id": 21176, "nodeType": "ParameterList", "parameters": [], "src": "221:0:82" }, "scope": 21232, "src": "207:73:82", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 21201, "nodeType": "Block", "src": "317:143:82", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21196, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21193, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21191, "name": "time", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21188, "src": "338:4:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "id": 21192, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "345:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "338:16:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 21194, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "358:5:82", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 21195, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "358:15:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "338:35:82", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "657870697265642c20706c656173652073656e6420616e6f74686572207472616e73616374696f6e2077697468206e6577207369676e6174757265", "id": 21197, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "381:61:82", "typeDescriptions": { "typeIdentifier": "t_stringliteral_70221d5dd3ea1c4d6c0ad66f9d3976510f4a29aa9bafcc3f20a9b6877fe4b13b", "typeString": "literal_string \"expired, please send another transaction with new signature\"" }, "value": "expired, please send another transaction with new signature" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_70221d5dd3ea1c4d6c0ad66f9d3976510f4a29aa9bafcc3f20a9b6877fe4b13b", "typeString": "literal_string \"expired, please send another transaction with new signature\"" } ], "id": 21190, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "323:7:82", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 21198, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "323:125:82", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 21199, "nodeType": "ExpressionStatement", "src": "323:125:82" }, { "id": 21200, "nodeType": "PlaceholderStatement", "src": "454:1:82" } ] }, "id": 21202, "name": "timeValid", "nameLocation": "293:9:82", "nodeType": "ModifierDefinition", "parameters": { "id": 21189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21188, "mutability": "mutable", "name": "time", "nameLocation": "311:4:82", "nodeType": "VariableDeclaration", "scope": 21202, "src": "303:12:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21187, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "303:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "302:14:82" }, "src": "284:176:82", "virtual": false, "visibility": "internal" }, { "body": { "id": 21210, "nodeType": "Block", "src": "603:27:82", "statements": [ { "expression": { "id": 21208, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "616:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 21207, "id": 21209, "nodeType": "Return", "src": "609:16:82" } ] }, "documentation": { "id": 21203, "nodeType": "StructuredDocumentation", "src": "464:72:82", "text": " @dev Returns the max duration for function called by user" }, "functionSelector": "ad2e8c9b", "id": 21211, "implemented": true, "kind": "function", "modifiers": [], "name": "getDuration", "nameLocation": "548:11:82", "nodeType": "FunctionDefinition", "parameters": { "id": 21204, "nodeType": "ParameterList", "parameters": [], "src": "559:2:82" }, "returnParameters": { "id": 21207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21206, "mutability": "mutable", "name": "duration", "nameLocation": "593:8:82", "nodeType": "VariableDeclaration", "scope": 21211, "src": "585:16:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21205, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "585:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "584:18:82" }, "scope": 21232, "src": "539:91:82", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 21230, "nodeType": "Block", "src": "736:86:82", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21222, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21220, "name": "valNew", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21214, "src": "750:6:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 21221, "name": "minDuration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21174, "src": "759:11:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "750:20:82", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "6475726174696f6e20746f6f2073686f7274", "id": 21223, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "772:20:82", "typeDescriptions": { "typeIdentifier": "t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "typeString": "literal_string \"duration too short\"" }, "value": "duration too short" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448", "typeString": "literal_string \"duration too short\"" } ], "id": 21219, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "742:7:82", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 21224, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "742:51:82", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 21225, "nodeType": "ExpressionStatement", "src": "742:51:82" }, { "expression": { "id": 21228, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21226, "name": "_duration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21172, "src": "799:9:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 21227, "name": "valNew", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21214, "src": "811:6:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "799:18:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21229, "nodeType": "ExpressionStatement", "src": "799:18:82" } ] }, "documentation": { "id": 21212, "nodeType": "StructuredDocumentation", "src": "634:41:82", "text": " @dev Change duration value" }, "functionSelector": "7f9d3096", "id": 21231, "implemented": true, "kind": "function", "modifiers": [ { "id": 21217, "kind": "modifierInvocation", "modifierName": { "id": 21216, "name": "onlyOwner", "nodeType": "IdentifierPath", "referencedDeclaration": 570, "src": "726:9:82" }, "nodeType": "ModifierInvocation", "src": "726:9:82" } ], "name": "updateDuation", "nameLocation": "687:13:82", "nodeType": "FunctionDefinition", "parameters": { "id": 21215, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21214, "mutability": "mutable", "name": "valNew", "nameLocation": "709:6:82", "nodeType": "VariableDeclaration", "scope": 21231, "src": "701:14:82", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21213, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "701:7:82", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "700:16:82" }, "returnParameters": { "id": 21218, "nodeType": "ParameterList", "parameters": [], "src": "736:0:82" }, "scope": 21232, "src": "678:144:82", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 21233, "src": "110:714:82", "usedErrors": [] } ], "src": "32:793:82" }, "compiler": { "name": "solc", "version": "0.8.10+commit.fc410830.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.4", "updatedAt": "2023-12-01T09:03:16.839Z", "devdoc": { "kind": "dev", "methods": { "getDuration()": { "details": "Returns the max duration for function called by user" }, "owner()": { "details": "Returns the address of the current owner." }, "renounceOwnership()": { "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." }, "transferOwnership(address)": { "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." }, "updateDuation(uint256)": { "details": "Change duration value" } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }