3373 lines
137 KiB
JSON
3373 lines
137 KiB
JSON
{
|
|
"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\":\"0xf8ee7429455aaab77928e8473db10bd19711785a6882b530ca2bff0fcd827935\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://47d15b16737402cca53bc604b3ae7330378f1a8cd4be9134aa598515907286be\",\"dweb:/ipfs/QmaQu5HH7BZbwS42pnQVCXmMLrdhdcxCwtu8jYUSuqMA56\"]}},\"version\":1}",
|
|
"bytecode": "0x608060405234801561001057600080fd5b5061002d61002261004560201b60201c565b61004d60201b60201c565b62015180600181905550610708600281905550610111565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61063d806101206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780637f9d3096146100665780638da5cb5b14610082578063ad2e8c9b146100a0578063f2fde38b146100be575b600080fd5b6100646100da565b005b610080600480360381019061007b9190610380565b6100ee565b005b61008a610144565b60405161009791906103ee565b60405180910390f35b6100a861016d565b6040516100b59190610418565b60405180910390f35b6100d860048036038101906100d3919061045f565b610177565b005b6100e26101fb565b6100ec6000610279565b565b6100f66101fb565b600254811161013a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610131906104e9565b60405180910390fd5b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b61017f6101fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156101ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e69061057b565b60405180910390fd5b6101f881610279565b50565b61020361033d565b73ffffffffffffffffffffffffffffffffffffffff16610221610144565b73ffffffffffffffffffffffffffffffffffffffff1614610277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026e906105e7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61035d8161034a565b811461036857600080fd5b50565b60008135905061037a81610354565b92915050565b60006020828403121561039657610395610345565b5b60006103a48482850161036b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d8826103ad565b9050919050565b6103e8816103cd565b82525050565b600060208201905061040360008301846103df565b92915050565b6104128161034a565b82525050565b600060208201905061042d6000830184610409565b92915050565b61043c816103cd565b811461044757600080fd5b50565b60008135905061045981610433565b92915050565b60006020828403121561047557610474610345565b5b60006104838482850161044a565b91505092915050565b600082825260208201905092915050565b7f6475726174696f6e20746f6f2073686f72740000000000000000000000000000600082015250565b60006104d360128361048c565b91506104de8261049d565b602082019050919050565b60006020820190508181036000830152610502816104c6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061056560268361048c565b915061057082610509565b604082019050919050565b6000602082019050818103600083015261059481610558565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006105d160208361048c565b91506105dc8261059b565b602082019050919050565b60006020820190508181036000830152610600816105c4565b905091905056fea2646970667358221220004aac04510eb1fda6e6992224578a25450c6245c342ccbace2911041e18214464736f6c634300080a0033",
|
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780637f9d3096146100665780638da5cb5b14610082578063ad2e8c9b146100a0578063f2fde38b146100be575b600080fd5b6100646100da565b005b610080600480360381019061007b9190610380565b6100ee565b005b61008a610144565b60405161009791906103ee565b60405180910390f35b6100a861016d565b6040516100b59190610418565b60405180910390f35b6100d860048036038101906100d3919061045f565b610177565b005b6100e26101fb565b6100ec6000610279565b565b6100f66101fb565b600254811161013a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610131906104e9565b60405180910390fd5b8060018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b61017f6101fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156101ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e69061057b565b60405180910390fd5b6101f881610279565b50565b61020361033d565b73ffffffffffffffffffffffffffffffffffffffff16610221610144565b73ffffffffffffffffffffffffffffffffffffffff1614610277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026e906105e7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61035d8161034a565b811461036857600080fd5b50565b60008135905061037a81610354565b92915050565b60006020828403121561039657610395610345565b5b60006103a48482850161036b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d8826103ad565b9050919050565b6103e8816103cd565b82525050565b600060208201905061040360008301846103df565b92915050565b6104128161034a565b82525050565b600060208201905061042d6000830184610409565b92915050565b61043c816103cd565b811461044757600080fd5b50565b60008135905061045981610433565b92915050565b60006020828403121561047557610474610345565b5b60006104838482850161044a565b91505092915050565b600082825260208201905092915050565b7f6475726174696f6e20746f6f2073686f72740000000000000000000000000000600082015250565b60006104d360128361048c565b91506104de8261049d565b602082019050919050565b60006020820190508181036000830152610502816104c6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061056560268361048c565b915061057082610509565b604082019050919050565b6000602082019050818103600083015261059481610558565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006105d160208361048c565b91506105dc8261059b565b602082019050919050565b60006020820190508181036000830152610600816105c4565b905091905056fea2646970667358221220004aac04510eb1fda6e6992224578a25450c6245c342ccbace2911041e18214464736f6c634300080a0033",
|
|
"immutableReferences": {},
|
|
"generatedSources": [],
|
|
"deployedGeneratedSources": [
|
|
{
|
|
"ast": {
|
|
"nodeType": "YulBlock",
|
|
"src": "0:5727:74",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "47:35:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "57:19:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "73:2:74",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "67:5:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "67:9:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "57:6:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "allocate_unbounded",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"returnVariables": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "40:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "7:75:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "177:28:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "194:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "197:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "187:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "187:12:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "187:12:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "88:117:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "300:28:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "317:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "320:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "310:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "310:12:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "310:12:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"src": "211:117:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "379:32:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "389:16:74",
|
|
"value": {
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "400:5:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "389:7:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "361:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "371:7:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "334:77:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "460:79:74",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "517:16:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "526:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "529:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "519:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "519:12:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "519:12:74"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "483:5:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "508:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "490:17:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "490:24:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "480:2:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "480:35:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "473:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "473:43:74"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "470:63:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "453:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "417:122:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "597:87:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "607:29:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "629:6:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "616:12:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "616:20:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "607:5:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "672:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "645:26:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "645:33:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "645:33:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "575:6:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "583:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "591:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "545:139:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "756:263:74",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "802:83:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "804:77:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "804:79:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "804:79:74"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "777:7:74"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "786:9:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "773:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "773:23:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "798:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "769:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "769:32:74"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "766:119:74"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "895:117:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "910:15:74",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "924:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "914:6:74",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "939:63:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "974:9:74"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "985:6:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "970:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "970:22:74"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "994:7:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "949:20:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "949:53:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "939:6:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_uint256",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "726:9:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "737:7:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "749:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "690:329:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1070:81:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1080:65:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1095:5:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1102:42:74",
|
|
"type": "",
|
|
"value": "0xffffffffffffffffffffffffffffffffffffffff"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "and",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1091:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1091:54:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1080:7:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1052:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1062:7:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1025:126:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1202:51:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1212:35:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1241:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint160",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1223:17:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1223:24:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1212:7:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1184:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "cleaned",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1194:7:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1157:96:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1324:53:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1341:3:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1364:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1346:17:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1346:24:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1334:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1334:37:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1334:37:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1312:5:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1319:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1259:118:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1481:124:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1491:26:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1503:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1514:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1499:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1499:18:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1491:4:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1571:6:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1584:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1595:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1580:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1580:17:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_address_to_t_address_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1527:43:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1527:71:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1527:71:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1453:9:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1465:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1476:4:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1383:222:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1676:53:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1693:3:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1716:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_uint256",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1698:17:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1698:24:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1686:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1686:37:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1686:37:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1664:5:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1671:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1611:118:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "1833:124:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "1843:26:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1855:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1866:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1851:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1851:18:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1843:4:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1923:6:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1936:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "1947:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1932:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1932:17:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "1879:43:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "1879:71:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "1879:71:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1805:9:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1817:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1828:4:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1735:222:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2006:79:74",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2063:16:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2072:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2075:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "revert",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2065:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2065:12:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2065:12:74"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2029:5:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2054:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "cleanup_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2036:17:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2036:24:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "eq",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2026:2:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2026:35:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "iszero",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2019:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2019:43:74"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "2016:63:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "1999:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "1963:122:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2143:87:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "2153:29:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2175:6:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "calldataload",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2162:12:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2162:20:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2153:5:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2218:5:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "validator_revert_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2191:26:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2191:33:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2191:33:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2121:6:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2129:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2137:5:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2091:139:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2302:263:74",
|
|
"statements": [
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2348:83:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [],
|
|
"functionName": {
|
|
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2350:77:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2350:79:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2350:79:74"
|
|
}
|
|
]
|
|
},
|
|
"condition": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2323:7:74"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2332:9:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2319:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2319:23:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2344:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "slt",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2315:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2315:32:74"
|
|
},
|
|
"nodeType": "YulIf",
|
|
"src": "2312:119:74"
|
|
},
|
|
{
|
|
"nodeType": "YulBlock",
|
|
"src": "2441:117:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulVariableDeclaration",
|
|
"src": "2456:15:74",
|
|
"value": {
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2470:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2460:6:74",
|
|
"type": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "2485:63:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2520:9:74"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2531:6:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2516:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2516:22:74"
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2540:7:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_decode_t_address",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2495:20:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2495:53:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2485:6:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_decode_tuple_t_address",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2272:9:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "dataEnd",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2283:7:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "value0",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2295:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2236:329:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2667:73:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2684:3:74"
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2689:6:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2677:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2677:19:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2677:19:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "2705:29:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2724:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2729:4:74",
|
|
"type": "",
|
|
"value": "0x20"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2720:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2720:14:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2705:11:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2639:3:74",
|
|
"type": ""
|
|
},
|
|
{
|
|
"name": "length",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2644:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "updated_pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2655:11:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2571:169:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "2852:62:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2874:6:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2882:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2870:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2870:14:74"
|
|
},
|
|
{
|
|
"hexValue": "6475726174696f6e20746f6f2073686f7274",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "2886:20:74",
|
|
"type": "",
|
|
"value": "duration too short"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "2863:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "2863:44:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "2863:44:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "2844:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2746:168:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3066:220:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3076:74:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3142:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3147:2:74",
|
|
"type": "",
|
|
"value": "18"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3083:58:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3083:67:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3076:3:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3248:3:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3159:88:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3159:93:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "3159:93:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3261:19:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3272:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3277:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3268:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3268:12:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3261:3:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3054:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3062:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "2920:366:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3463:248:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3473:26:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3485:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3496:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3481:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3481:18:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3473:4:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3520:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3531:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3516:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3516:17:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3539:4:74"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3545:9:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3535:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3535:20:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3509:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3509:47:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "3509:47:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "3565:139:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3699:4:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3573:124:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3573:131:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3565:4:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_7d6fd72abe2c7ea76bb8e4d31cdb8f43544aac7d07fe68bfbb269a7355007448__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3443:9:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3458:4:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "3292:419:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "3823:119:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3845:6:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3853:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3841:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3841:14:74"
|
|
},
|
|
{
|
|
"hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3857:34:74",
|
|
"type": "",
|
|
"value": "Ownable: new owner is the zero a"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3834:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3834:58:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "3834:58:74"
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3913:6:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3921:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3909:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3909:15:74"
|
|
},
|
|
{
|
|
"hexValue": "646472657373",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "3926:8:74",
|
|
"type": "",
|
|
"value": "ddress"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "3902:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "3902:33:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "3902:33:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "3815:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "3717:225:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "4094:220:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4104:74:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4170:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4175:2:74",
|
|
"type": "",
|
|
"value": "38"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4111:58:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4111:67:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4104:3:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4276:3:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4187:88:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4187:93:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "4187:93:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4289:19:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4300:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4305:2:74",
|
|
"type": "",
|
|
"value": "64"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4296:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4296:12:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4289:3:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4082:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4090:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "3948:366:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "4491:248:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4501:26:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4513:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4524:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4509:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4509:18:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4501:4:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4548:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4559:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4544:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4544:17:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4567:4:74"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4573:9:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4563:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4563:20:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4537:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4537:47:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "4537:47:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "4593:139:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4727:4:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4601:124:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4601:131:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4593:4:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4471:9:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4486:4:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "4320:419:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "4851:76:74",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4873:6:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4881:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4869:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4869:14:74"
|
|
},
|
|
{
|
|
"hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572",
|
|
"kind": "string",
|
|
"nodeType": "YulLiteral",
|
|
"src": "4885:34:74",
|
|
"type": "",
|
|
"value": "Ownable: caller is not the owner"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "4862:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "4862:58:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "4862:58:74"
|
|
}
|
|
]
|
|
},
|
|
"name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "memPtr",
|
|
"nodeType": "YulTypedName",
|
|
"src": "4843:6:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "4745:182:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5079:220:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5089:74:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5155:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5160:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5096:58:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5096:67:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5089:3:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5261:3:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "store_literal_in_memory_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5172:88:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5172:93:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5172:93:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5274:19:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5285:3:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5290:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5281:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5281:12:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5274:3:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "pos",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5067:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "end",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5075:3:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "4933:366:74"
|
|
},
|
|
{
|
|
"body": {
|
|
"nodeType": "YulBlock",
|
|
"src": "5476:248:74",
|
|
"statements": [
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5486:26:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5498:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5509:2:74",
|
|
"type": "",
|
|
"value": "32"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5494:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5494:18:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5486:4:74"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5533:9:74"
|
|
},
|
|
{
|
|
"kind": "number",
|
|
"nodeType": "YulLiteral",
|
|
"src": "5544:1:74",
|
|
"type": "",
|
|
"value": "0"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "add",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5529:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5529:17:74"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5552:4:74"
|
|
},
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5558:9:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "sub",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5548:3:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5548:20:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "mstore",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5522:6:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5522:47:74"
|
|
},
|
|
"nodeType": "YulExpressionStatement",
|
|
"src": "5522:47:74"
|
|
},
|
|
{
|
|
"nodeType": "YulAssignment",
|
|
"src": "5578:139:74",
|
|
"value": {
|
|
"arguments": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5712:4:74"
|
|
}
|
|
],
|
|
"functionName": {
|
|
"name": "abi_encode_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe_to_t_string_memory_ptr_fromStack",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5586:124:74"
|
|
},
|
|
"nodeType": "YulFunctionCall",
|
|
"src": "5586:131:74"
|
|
},
|
|
"variableNames": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulIdentifier",
|
|
"src": "5578:4:74"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed",
|
|
"nodeType": "YulFunctionDefinition",
|
|
"parameters": [
|
|
{
|
|
"name": "headStart",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5456:9:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"returnVariables": [
|
|
{
|
|
"name": "tail",
|
|
"nodeType": "YulTypedName",
|
|
"src": "5471:4:74",
|
|
"type": ""
|
|
}
|
|
],
|
|
"src": "5305:419:74"
|
|
}
|
|
]
|
|
},
|
|
"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": 74,
|
|
"language": "Yul",
|
|
"name": "#utility.yul"
|
|
}
|
|
],
|
|
"sourceMap": "114:745:72:-:0;;;215:76;;;;;;;;;;936:32:4;955:12;:10;;;:12;;:::i;:::-;936:18;;;:32;;:::i;:::-;248:6:72;236:9;:18;;;;275:10;261:11;:24;;;;114:745;;640:96:30;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;114:745:72:-;;;;;;;",
|
|
"deployedSourceMap": "114:745:72:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1824:101:4;;;:::i;:::-;;709:147:72;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1201:85:4;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;563:93:72;;;:::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;709:147:72:-;1094:13:4;:11;:13::i;:::-;791:11:72::1;;782:6;:20;774:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;844:6;832:9;:18;;;;709:147:::0;:::o;1201:85:4:-;1247:7;1273:6;;;;;;;;;;;1266:13;;1201:85;:::o;563:93:72:-;609:16;641:9;;634:16;;563:93;:::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:30:-;693:7;719:10;712:17;;640:96;:::o;88:117:74:-;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\r\npragma solidity 0.8.10;\r\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\r\n\r\ncontract TimeChecker is Ownable {\r\n uint256 private _duration;\r\n uint256 private minDuration;\r\n\r\n constructor() {\r\n _duration = 1 days;\r\n minDuration = 30 minutes;\r\n }\r\n\r\n modifier timeValid(uint256 time) {\r\n require(\r\n time + _duration >= block.timestamp,\r\n \"expired, please send another transaction with new signature\"\r\n );\r\n _;\r\n }\r\n\r\n /**\r\n * @dev Returns the max duration for function called by user\r\n */\r\n function getDuration() external view returns (uint256 duration) {\r\n return _duration;\r\n }\r\n\r\n /**\r\n * @dev Change duration value\r\n */\r\n function updateDuation(uint256 valNew) external onlyOwner {\r\n require(valNew > minDuration, \"duration too short\");\r\n _duration = valNew;\r\n }\r\n}\r\n",
|
|
"sourcePath": "D:\\res\\CEBG\\becrypto\\contracts\\utils\\TimeChecker.sol",
|
|
"ast": {
|
|
"absolutePath": "project:/contracts/utils/TimeChecker.sol",
|
|
"exportedSymbols": {
|
|
"Context": [
|
|
6470
|
|
],
|
|
"Ownable": [
|
|
651
|
|
],
|
|
"TimeChecker": [
|
|
17510
|
|
]
|
|
},
|
|
"id": 17511,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 17445,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "33:23:72"
|
|
},
|
|
{
|
|
"absolutePath": "@openzeppelin/contracts/access/Ownable.sol",
|
|
"file": "@openzeppelin/contracts/access/Ownable.sol",
|
|
"id": 17446,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 17511,
|
|
"sourceUnit": 652,
|
|
"src": "58:52:72",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [
|
|
{
|
|
"baseName": {
|
|
"id": 17447,
|
|
"name": "Ownable",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 651,
|
|
"src": "138:7:72"
|
|
},
|
|
"id": 17448,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "138:7:72"
|
|
}
|
|
],
|
|
"canonicalName": "TimeChecker",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 17510,
|
|
"linearizedBaseContracts": [
|
|
17510,
|
|
651,
|
|
6470
|
|
],
|
|
"name": "TimeChecker",
|
|
"nameLocation": "123:11:72",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"constant": false,
|
|
"id": 17450,
|
|
"mutability": "mutable",
|
|
"name": "_duration",
|
|
"nameLocation": "167:9:72",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17510,
|
|
"src": "151:25:72",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 17449,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "151:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "private"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 17452,
|
|
"mutability": "mutable",
|
|
"name": "minDuration",
|
|
"nameLocation": "197:11:72",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17510,
|
|
"src": "181:27:72",
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 17451,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "181:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "private"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 17463,
|
|
"nodeType": "Block",
|
|
"src": "229:62:72",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 17457,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 17455,
|
|
"name": "_duration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17450,
|
|
"src": "236:9:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "31",
|
|
"id": 17456,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "248:6:72",
|
|
"subdenomination": "days",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_86400_by_1",
|
|
"typeString": "int_const 86400"
|
|
},
|
|
"value": "1"
|
|
},
|
|
"src": "236:18:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 17458,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "236:18:72"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 17461,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 17459,
|
|
"name": "minDuration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17452,
|
|
"src": "261:11:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"hexValue": "3330",
|
|
"id": 17460,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "275:10:72",
|
|
"subdenomination": "minutes",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_1800_by_1",
|
|
"typeString": "int_const 1800"
|
|
},
|
|
"value": "30"
|
|
},
|
|
"src": "261:24:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 17462,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "261:24:72"
|
|
}
|
|
]
|
|
},
|
|
"id": 17464,
|
|
"implemented": true,
|
|
"kind": "constructor",
|
|
"modifiers": [],
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 17453,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "226:2:72"
|
|
},
|
|
"returnParameters": {
|
|
"id": 17454,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "229:0:72"
|
|
},
|
|
"scope": 17510,
|
|
"src": "215:76:72",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 17479,
|
|
"nodeType": "Block",
|
|
"src": "330:149:72",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 17474,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 17471,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 17469,
|
|
"name": "time",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17466,
|
|
"src": "353:4:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": "+",
|
|
"rightExpression": {
|
|
"id": 17470,
|
|
"name": "_duration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17450,
|
|
"src": "360:9:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "353:16:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">=",
|
|
"rightExpression": {
|
|
"expression": {
|
|
"id": 17472,
|
|
"name": "block",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967292,
|
|
"src": "373:5:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_block",
|
|
"typeString": "block"
|
|
}
|
|
},
|
|
"id": 17473,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "timestamp",
|
|
"nodeType": "MemberAccess",
|
|
"src": "373:15:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "353:35:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "657870697265642c20706c656173652073656e6420616e6f74686572207472616e73616374696f6e2077697468206e6577207369676e6174757265",
|
|
"id": 17475,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "397:61:72",
|
|
"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": 17468,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "337:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 17476,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "337:128:72",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 17477,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "337:128:72"
|
|
},
|
|
{
|
|
"id": 17478,
|
|
"nodeType": "PlaceholderStatement",
|
|
"src": "472:1:72"
|
|
}
|
|
]
|
|
},
|
|
"id": 17480,
|
|
"name": "timeValid",
|
|
"nameLocation": "306:9:72",
|
|
"nodeType": "ModifierDefinition",
|
|
"parameters": {
|
|
"id": 17467,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 17466,
|
|
"mutability": "mutable",
|
|
"name": "time",
|
|
"nameLocation": "324:4:72",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17480,
|
|
"src": "316:12:72",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 17465,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "316:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "315:14:72"
|
|
},
|
|
"src": "297:182:72",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 17488,
|
|
"nodeType": "Block",
|
|
"src": "627:29:72",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"id": 17486,
|
|
"name": "_duration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17450,
|
|
"src": "641:9:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"functionReturnParameters": 17485,
|
|
"id": 17487,
|
|
"nodeType": "Return",
|
|
"src": "634:16:72"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 17481,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "485:74:72",
|
|
"text": " @dev Returns the max duration for function called by user"
|
|
},
|
|
"functionSelector": "ad2e8c9b",
|
|
"id": 17489,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getDuration",
|
|
"nameLocation": "572:11:72",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 17482,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "583:2:72"
|
|
},
|
|
"returnParameters": {
|
|
"id": 17485,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 17484,
|
|
"mutability": "mutable",
|
|
"name": "duration",
|
|
"nameLocation": "617:8:72",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17489,
|
|
"src": "609:16:72",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 17483,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "609:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "608:18:72"
|
|
},
|
|
"scope": 17510,
|
|
"src": "563:93:72",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 17508,
|
|
"nodeType": "Block",
|
|
"src": "767:89:72",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"commonType": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"id": 17500,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftExpression": {
|
|
"id": 17498,
|
|
"name": "valNew",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17492,
|
|
"src": "782:6:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "BinaryOperation",
|
|
"operator": ">",
|
|
"rightExpression": {
|
|
"id": 17499,
|
|
"name": "minDuration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17452,
|
|
"src": "791:11:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "782:20:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "6475726174696f6e20746f6f2073686f7274",
|
|
"id": 17501,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "804:20:72",
|
|
"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": 17497,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "774:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 17502,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "774:51:72",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 17503,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "774:51:72"
|
|
},
|
|
{
|
|
"expression": {
|
|
"id": 17506,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"leftHandSide": {
|
|
"id": 17504,
|
|
"name": "_duration",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17450,
|
|
"src": "832:9:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"nodeType": "Assignment",
|
|
"operator": "=",
|
|
"rightHandSide": {
|
|
"id": 17505,
|
|
"name": "valNew",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 17492,
|
|
"src": "844:6:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"src": "832:18:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 17507,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "832:18:72"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 17490,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "662:43:72",
|
|
"text": " @dev Change duration value"
|
|
},
|
|
"functionSelector": "7f9d3096",
|
|
"id": 17509,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [
|
|
{
|
|
"id": 17495,
|
|
"kind": "modifierInvocation",
|
|
"modifierName": {
|
|
"id": 17494,
|
|
"name": "onlyOwner",
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 570,
|
|
"src": "757:9:72"
|
|
},
|
|
"nodeType": "ModifierInvocation",
|
|
"src": "757:9:72"
|
|
}
|
|
],
|
|
"name": "updateDuation",
|
|
"nameLocation": "718:13:72",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 17493,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 17492,
|
|
"mutability": "mutable",
|
|
"name": "valNew",
|
|
"nameLocation": "740:6:72",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 17509,
|
|
"src": "732:14:72",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 17491,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "732:7:72",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "731:16:72"
|
|
},
|
|
"returnParameters": {
|
|
"id": 17496,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "767:0:72"
|
|
},
|
|
"scope": 17510,
|
|
"src": "709:147:72",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 17511,
|
|
"src": "114:745:72",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "33:828:72"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.10+commit.fc410830.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.14",
|
|
"updatedAt": "2023-07-12T06:52:15.870Z",
|
|
"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
|
|
}
|
|
} |