{ "abi": [ { "inputs": [], "name": "increment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "number", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "newNumber", "type": "uint256" } ], "name": "setNumber", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": { "object": "0x608060405234801561001057600080fd5b50610125806100206000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c80633fb5c1cb1460415780638381f58a146052578063d09de08a14606c575b600080fd5b6050604c3660046095565b6072565b005b605a60005481565b60405190815260200160405180910390f35b60506081565b607b81607b60c3565b60005550565b600080549080608e8360d9565b9190505550565b60006020828403121560a657600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111560d35760d360ad565b92915050565b60006001820160e85760e860ad565b506001019056fea2646970667358221220981d705d73c405a1cadf6bcd0ff9f1d0fcbbc1599040e504e71517ff0d8aa53264736f6c63430008100033", "sourceMap": "65:198:7:-:0;;;;;;;;;;;;;;;;;;;", "linkReferences": {} }, "deployedBytecode": { "object": "0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c80633fb5c1cb1460415780638381f58a146052578063d09de08a14606c575b600080fd5b6050604c3660046095565b6072565b005b605a60005481565b60405190815260200160405180910390f35b60506081565b607b81607b60c3565b60005550565b600080549080608e8360d9565b9190505550565b60006020828403121560a657600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111560d35760d360ad565b92915050565b60006001820160e85760e860ad565b506001019056fea2646970667358221220981d705d73c405a1cadf6bcd0ff9f1d0fcbbc1599040e504e71517ff0d8aa53264736f6c63430008100033", "sourceMap": "65:198:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116:86;;;;;;:::i;:::-;;:::i;:::-;;88:21;;;;;;;;;345:25:9;;;333:2;318:18;88:21:7;;;;;;;208:53;;;:::i;116:86::-;180:15;:9;192:3;180:15;:::i;:::-;171:6;:24;-1:-1:-1;116:86:7:o;208:53::-;246:6;:8;;;:6;:8;;;:::i;:::-;;;;;;208:53::o;14:180:9:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:9;;14:180;-1:-1:-1;14:180:9:o;381:127::-;442:10;437:3;433:20;430:1;423:31;473:4;470:1;463:15;497:4;494:1;487:15;513:125;578:9;;;599:10;;;596:36;;;612:18;;:::i;:::-;513:125;;;;:::o;643:135::-;682:3;703:17;;;700:43;;723:18;;:::i;:::-;-1:-1:-1;770:1:9;759:13;;643:135::o", "linkReferences": {} }, "methodIdentifiers": { "increment()": "d09de08a", "number()": "8381f58a", "setNumber(uint256)": "3fb5c1cb" }, "ast": { "absolutePath": "src/Counter.sol", "id": 21628, "exportedSymbols": { "Counter": [ 21605 ], "CounterYann": [ 21627 ] }, "nodeType": "SourceUnit", "src": "39:427:7", "nodes": [ { "id": 21583, "nodeType": "PragmaDirective", "src": "39:24:7", "literals": [ "solidity", "^", "0.8", ".13" ] }, { "id": 21605, "nodeType": "ContractDefinition", "src": "65:198:7", "nodes": [ { "id": 21585, "nodeType": "VariableDeclaration", "src": "88:21:7", "constant": false, "functionSelector": "8381f58a", "mutability": "mutable", "name": "number", "nameLocation": "103:6:7", "scope": 21605, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21584, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "88:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "public" }, { "id": 21597, "nodeType": "FunctionDefinition", "src": "116:86:7", "body": { "id": 21596, "nodeType": "Block", "src": "161:41:7", "statements": [ { "expression": { "id": 21594, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21590, "name": "number", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21585, "src": "171:6:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21593, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21591, "name": "newNumber", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21587, "src": "180:9:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "hexValue": "313233", "id": 21592, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "192:3:7", "typeDescriptions": { "typeIdentifier": "t_rational_123_by_1", "typeString": "int_const 123" }, "value": "123" }, "src": "180:15:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "171:24:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21595, "nodeType": "ExpressionStatement", "src": "171:24:7" } ] }, "functionSelector": "3fb5c1cb", "implemented": true, "kind": "function", "modifiers": [], "name": "setNumber", "nameLocation": "125:9:7", "parameters": { "id": 21588, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21587, "mutability": "mutable", "name": "newNumber", "nameLocation": "143:9:7", "nodeType": "VariableDeclaration", "scope": 21597, "src": "135:17:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21586, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "135:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "134:19:7" }, "returnParameters": { "id": 21589, "nodeType": "ParameterList", "parameters": [], "src": "161:0:7" }, "scope": 21605, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "id": 21604, "nodeType": "FunctionDefinition", "src": "208:53:7", "body": { "id": 21603, "nodeType": "Block", "src": "236:25:7", "statements": [ { "expression": { "id": 21601, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "246:8:7", "subExpression": { "id": 21600, "name": "number", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21585, "src": "246:6:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21602, "nodeType": "ExpressionStatement", "src": "246:8:7" } ] }, "functionSelector": "d09de08a", "implemented": true, "kind": "function", "modifiers": [], "name": "increment", "nameLocation": "217:9:7", "parameters": { "id": 21598, "nodeType": "ParameterList", "parameters": [], "src": "226:2:7" }, "returnParameters": { "id": 21599, "nodeType": "ParameterList", "parameters": [], "src": "236:0:7" }, "scope": 21605, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" } ], "abstract": false, "baseContracts": [], "canonicalName": "Counter", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ 21605 ], "name": "Counter", "nameLocation": "74:7:7", "scope": 21628, "usedErrors": [] }, { "id": 21627, "nodeType": "ContractDefinition", "src": "265:200:7", "nodes": [ { "id": 21607, "nodeType": "VariableDeclaration", "src": "292:21:7", "constant": false, "functionSelector": "8381f58a", "mutability": "mutable", "name": "number", "nameLocation": "307:6:7", "scope": 21627, "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21606, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "292:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "public" }, { "id": 21619, "nodeType": "FunctionDefinition", "src": "320:84:7", "body": { "id": 21618, "nodeType": "Block", "src": "365:39:7", "statements": [ { "expression": { "id": 21616, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 21612, "name": "number", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21607, "src": "375:6:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 21615, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 21613, "name": "newNumber", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21609, "src": "384:9:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "hexValue": "39", "id": 21614, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "396:1:7", "typeDescriptions": { "typeIdentifier": "t_rational_9_by_1", "typeString": "int_const 9" }, "value": "9" }, "src": "384:13:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "375:22:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21617, "nodeType": "ExpressionStatement", "src": "375:22:7" } ] }, "functionSelector": "3fb5c1cb", "implemented": true, "kind": "function", "modifiers": [], "name": "setNumber", "nameLocation": "329:9:7", "parameters": { "id": 21610, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 21609, "mutability": "mutable", "name": "newNumber", "nameLocation": "347:9:7", "nodeType": "VariableDeclaration", "scope": 21619, "src": "339:17:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 21608, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "339:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "338:19:7" }, "returnParameters": { "id": 21611, "nodeType": "ParameterList", "parameters": [], "src": "365:0:7" }, "scope": 21627, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "id": 21626, "nodeType": "FunctionDefinition", "src": "410:53:7", "body": { "id": 21625, "nodeType": "Block", "src": "438:25:7", "statements": [ { "expression": { "id": 21623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "448:8:7", "subExpression": { "id": 21622, "name": "number", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 21607, "src": "448:6:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 21624, "nodeType": "ExpressionStatement", "src": "448:8:7" } ] }, "functionSelector": "d09de08a", "implemented": true, "kind": "function", "modifiers": [], "name": "increment", "nameLocation": "419:9:7", "parameters": { "id": 21620, "nodeType": "ParameterList", "parameters": [], "src": "428:2:7" }, "returnParameters": { "id": 21621, "nodeType": "ParameterList", "parameters": [], "src": "438:0:7" }, "scope": 21627, "stateMutability": "nonpayable", "virtual": false, "visibility": "public" } ], "abstract": false, "baseContracts": [], "canonicalName": "CounterYann", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ 21627 ], "name": "CounterYann", "nameLocation": "274:11:7", "scope": 21628, "usedErrors": [] } ], "license": "UNLICENSED" }, "id": 7 }