Cipher-Zero/contracts/infrastructure/storage/artifacts/build-info/5c171f5c4c760cf067231ad3786ca4d8.json
2024-09-01 23:29:11 +03:00

1180 lines
36 KiB
JSON

{
"id": "5c171f5c4c760cf067231ad3786ca4d8",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/infrastructure/storage/Counters.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides counters that can be incremented or decremented.\n * This can be used for tracking ids, minting, or other use cases.\n */\nlibrary Counters {\n struct Counter {\n uint256 _value;\n }\n\n /**\n * @dev Returns the current value of the counter.\n */\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n /**\n * @dev Increments the counter by one.\n */\n function increment(Counter storage counter) internal {\n counter._value += 1;\n }\n\n /**\n * @dev Decrements the counter by one.\n */\n function decrement(Counter storage counter) internal {\n require(counter._value > 0, \"Counter: decrement overflow\");\n counter._value -= 1;\n }\n\n /**\n * @dev Resets the counter to zero.\n */\n function reset(Counter storage counter) internal {\n counter._value = 0;\n }\n}\n"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/infrastructure/storage/Counters.sol": {
"Counters": {
"abi": [],
"devdoc": {
"details": "Provides counters that can be incremented or decremented. This can be used for tracking ids, minting, or other use cases.",
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": " /* \"contracts/infrastructure/storage/Counters.sol\":198:979 library Counters {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/infrastructure/storage/Counters.sol\":198:979 library Counters {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa264697066735822122085bce7c58d299a3f0562f04b08a019f7aea988eb9237c354457cf62e54d8451e64736f6c634300081a0033\n}\n",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea264697066735822122085bce7c58d299a3f0562f04b08a019f7aea988eb9237c354457cf62e54d8451e64736f6c634300081a0033",
"opcodes": "PUSH1 0x55 PUSH1 0x4B PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH0 BYTE PUSH1 0x73 EQ PUSH1 0x3F JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST ADDRESS PUSH0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 0xBC 0xE7 0xC5 DUP14 0x29 SWAP11 EXTCODEHASH SDIV PUSH3 0xF04B08 LOG0 NOT 0xF7 0xAE 0xA9 DUP9 0xEB SWAP3 CALLDATACOPY 0xC3 SLOAD GASLIMIT PUSH29 0xF62E54D8451E64736F6C634300081A0033000000000000000000000000 ",
"sourceMap": "198:781:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040525f80fdfea264697066735822122085bce7c58d299a3f0562f04b08a019f7aea988eb9237c354457cf62e54d8451e64736f6c634300081a0033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 0xBC 0xE7 0xC5 DUP14 0x29 SWAP11 EXTCODEHASH SDIV PUSH3 0xF04B08 LOG0 NOT 0xF7 0xAE 0xA9 DUP9 0xEB SWAP3 CALLDATACOPY 0xC3 SLOAD GASLIMIT PUSH29 0xF62E54D8451E64736F6C634300081A0033000000000000000000000000 ",
"sourceMap": "198:781:0:-:0;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "17000",
"executionCost": "92",
"totalCost": "17092"
},
"internal": {
"current(struct Counters.Counter storage pointer)": "infinite",
"decrement(struct Counters.Counter storage pointer)": "infinite",
"increment(struct Counters.Counter storage pointer)": "infinite",
"reset(struct Counters.Counter storage pointer)": "infinite"
}
},
"legacyAssembly": {
".code": [
{
"begin": 198,
"end": 979,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 198,
"end": 979,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "B"
},
{
"begin": 198,
"end": 979,
"name": "DUP3",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "DUP3",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "DUP3",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "CODECOPY",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "DUP1",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "MLOAD",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "BYTE",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 198,
"end": 979,
"name": "EQ",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{
"begin": 198,
"end": 979,
"name": "JUMPI",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "4E487B7100000000000000000000000000000000000000000000000000000000"
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "MSTORE",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "4"
},
{
"begin": 198,
"end": 979,
"name": "MSTORE",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "24"
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "REVERT",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "tag",
"source": 0,
"value": "1"
},
{
"begin": 198,
"end": 979,
"name": "JUMPDEST",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "ADDRESS",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "MSTORE",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "73"
},
{
"begin": 198,
"end": 979,
"name": "DUP2",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "MSTORE8",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "DUP3",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "DUP2",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "RETURN",
"source": 0
}
],
".data": {
"0": {
".auxdata": "a264697066735822122085bce7c58d299a3f0562f04b08a019f7aea988eb9237c354457cf62e54d8451e64736f6c634300081a0033",
".code": [
{
"begin": 198,
"end": 979,
"name": "PUSHDEPLOYADDRESS",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "ADDRESS",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "EQ",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "40"
},
{
"begin": 198,
"end": 979,
"name": "MSTORE",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 198,
"end": 979,
"name": "DUP1",
"source": 0
},
{
"begin": 198,
"end": 979,
"name": "REVERT",
"source": 0
}
]
}
},
"sourceList": [
"contracts/infrastructure/storage/Counters.sol",
"#utility.yul"
]
},
"methodIdentifiers": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Provides counters that can be incremented or decremented. This can be used for tracking ids, minting, or other use cases.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/infrastructure/storage/Counters.sol\":\"Counters\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/infrastructure/storage/Counters.sol\":{\"keccak256\":\"0xa890b9e4d2416f5d25afb556b179358d64cb1023da660a2813a18b2a21e87025\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3aa90aa1caa0112e22e77181daab2c43a665f142e1b0936b60700a0a76cc7c8a\",\"dweb:/ipfs/QmXPWvW8dJGe1Vj8uPHMxPKXmWUVzP9W4i41SQcfLe7icY\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/infrastructure/storage/Counters.sol": {
"ast": {
"absolutePath": "contracts/infrastructure/storage/Counters.sol",
"exportedSymbols": {
"Counters": [
69
]
},
"id": 70,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "Counters",
"contractDependencies": [],
"contractKind": "library",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "57:140:0",
"text": " @dev Provides counters that can be incremented or decremented.\n This can be used for tracking ids, minting, or other use cases."
},
"fullyImplemented": true,
"id": 69,
"linearizedBaseContracts": [
69
],
"name": "Counters",
"nameLocation": "206:8:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "Counters.Counter",
"id": 5,
"members": [
{
"constant": false,
"id": 4,
"mutability": "mutable",
"name": "_value",
"nameLocation": "254:6:0",
"nodeType": "VariableDeclaration",
"scope": 5,
"src": "246:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "246:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "Counter",
"nameLocation": "228:7:0",
"nodeType": "StructDefinition",
"scope": 69,
"src": "221:46:0",
"visibility": "public"
},
{
"body": {
"id": 17,
"nodeType": "Block",
"src": "417:38:0",
"statements": [
{
"expression": {
"expression": {
"id": 14,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9,
"src": "434:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter storage pointer"
}
},
"id": 15,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "442:6:0",
"memberName": "_value",
"nodeType": "MemberAccess",
"referencedDeclaration": 4,
"src": "434:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"functionReturnParameters": 13,
"id": 16,
"nodeType": "Return",
"src": "427:21:0"
}
]
},
"documentation": {
"id": 6,
"nodeType": "StructuredDocumentation",
"src": "273:65:0",
"text": " @dev Returns the current value of the counter."
},
"id": 18,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "current",
"nameLocation": "352:7:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 10,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9,
"mutability": "mutable",
"name": "counter",
"nameLocation": "376:7:0",
"nodeType": "VariableDeclaration",
"scope": 18,
"src": "360:23:0",
"stateVariable": false,
"storageLocation": "storage",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
},
"typeName": {
"id": 8,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 7,
"name": "Counter",
"nameLocations": [
"360:7:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 5,
"src": "360:7:0"
},
"referencedDeclaration": 5,
"src": "360:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
}
},
"visibility": "internal"
}
],
"src": "359:25:0"
},
"returnParameters": {
"id": 13,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 18,
"src": "408:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "408:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "407:9:0"
},
"scope": 69,
"src": "343:112:0",
"stateMutability": "view",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 31,
"nodeType": "Block",
"src": "573:36:0",
"statements": [
{
"expression": {
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"expression": {
"id": 25,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22,
"src": "583:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter storage pointer"
}
},
"id": 27,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberLocation": "591:6:0",
"memberName": "_value",
"nodeType": "MemberAccess",
"referencedDeclaration": 4,
"src": "583:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"hexValue": "31",
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "601:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "583:19:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 30,
"nodeType": "ExpressionStatement",
"src": "583:19:0"
}
]
},
"documentation": {
"id": 19,
"nodeType": "StructuredDocumentation",
"src": "461:54:0",
"text": " @dev Increments the counter by one."
},
"id": 32,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "increment",
"nameLocation": "529:9:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22,
"mutability": "mutable",
"name": "counter",
"nameLocation": "555:7:0",
"nodeType": "VariableDeclaration",
"scope": 32,
"src": "539:23:0",
"stateVariable": false,
"storageLocation": "storage",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
},
"typeName": {
"id": 21,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20,
"name": "Counter",
"nameLocations": [
"539:7:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 5,
"src": "539:7:0"
},
"referencedDeclaration": 5,
"src": "539:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
}
},
"visibility": "internal"
}
],
"src": "538:25:0"
},
"returnParameters": {
"id": 24,
"nodeType": "ParameterList",
"parameters": [],
"src": "573:0:0"
},
"scope": 69,
"src": "520:89:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 53,
"nodeType": "Block",
"src": "727:104:0",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 43,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"expression": {
"id": 40,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "745:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter storage pointer"
}
},
"id": 41,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberLocation": "753:6:0",
"memberName": "_value",
"nodeType": "MemberAccess",
"referencedDeclaration": 4,
"src": "745:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"hexValue": "30",
"id": 42,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "762:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "745:18:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "436f756e7465723a2064656372656d656e74206f766572666c6f77",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "765:29:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_1dfd0d5389474d871b8e8929aab9d4def041f55f90f625754fb5f9a9ba08af6f",
"typeString": "literal_string \"Counter: decrement overflow\""
},
"value": "Counter: decrement overflow"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_1dfd0d5389474d871b8e8929aab9d4def041f55f90f625754fb5f9a9ba08af6f",
"typeString": "literal_string \"Counter: decrement overflow\""
}
],
"id": 39,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "737:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 45,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "737:58:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 46,
"nodeType": "ExpressionStatement",
"src": "737:58:0"
},
{
"expression": {
"id": 51,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"expression": {
"id": 47,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 36,
"src": "805:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter storage pointer"
}
},
"id": 49,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberLocation": "813:6:0",
"memberName": "_value",
"nodeType": "MemberAccess",
"referencedDeclaration": 4,
"src": "805:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "-=",
"rightHandSide": {
"hexValue": "31",
"id": 50,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "823:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "805:19:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 52,
"nodeType": "ExpressionStatement",
"src": "805:19:0"
}
]
},
"documentation": {
"id": 33,
"nodeType": "StructuredDocumentation",
"src": "615:54:0",
"text": " @dev Decrements the counter by one."
},
"id": 54,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "decrement",
"nameLocation": "683:9:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 37,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 36,
"mutability": "mutable",
"name": "counter",
"nameLocation": "709:7:0",
"nodeType": "VariableDeclaration",
"scope": 54,
"src": "693:23:0",
"stateVariable": false,
"storageLocation": "storage",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
},
"typeName": {
"id": 35,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 34,
"name": "Counter",
"nameLocations": [
"693:7:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 5,
"src": "693:7:0"
},
"referencedDeclaration": 5,
"src": "693:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
}
},
"visibility": "internal"
}
],
"src": "692:25:0"
},
"returnParameters": {
"id": 38,
"nodeType": "ParameterList",
"parameters": [],
"src": "727:0:0"
},
"scope": 69,
"src": "674:157:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 67,
"nodeType": "Block",
"src": "942:35:0",
"statements": [
{
"expression": {
"id": 65,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"expression": {
"id": 61,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 58,
"src": "952:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter storage pointer"
}
},
"id": 63,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberLocation": "960:6:0",
"memberName": "_value",
"nodeType": "MemberAccess",
"referencedDeclaration": 4,
"src": "952:14:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "30",
"id": 64,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "969:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "952:18:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 66,
"nodeType": "ExpressionStatement",
"src": "952:18:0"
}
]
},
"documentation": {
"id": 55,
"nodeType": "StructuredDocumentation",
"src": "837:51:0",
"text": " @dev Resets the counter to zero."
},
"id": 68,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "reset",
"nameLocation": "902:5:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 59,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 58,
"mutability": "mutable",
"name": "counter",
"nameLocation": "924:7:0",
"nodeType": "VariableDeclaration",
"scope": 68,
"src": "908:23:0",
"stateVariable": false,
"storageLocation": "storage",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
},
"typeName": {
"id": 57,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 56,
"name": "Counter",
"nameLocations": [
"908:7:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 5,
"src": "908:7:0"
},
"referencedDeclaration": 5,
"src": "908:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Counter_$5_storage_ptr",
"typeString": "struct Counters.Counter"
}
},
"visibility": "internal"
}
],
"src": "907:25:0"
},
"returnParameters": {
"id": 60,
"nodeType": "ParameterList",
"parameters": [],
"src": "942:0:0"
},
"scope": 69,
"src": "893:84:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
}
],
"scope": 70,
"src": "198:781:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "32:948:0"
},
"id": 0
}
}
}
}