UNPKG

hardlydifficult-eth

Version:

A collection of reusable contracts and Javascript helpers for Ethereum.

326 lines 11.1 kB
{ "contractName": "TestReturnValue", "abi": [ { "inputs": [], "name": "return42", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"return42\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/test-artifacts/TestReturnValue.sol\":\"TestReturnValue\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"project:/contracts/test-artifacts/TestReturnValue.sol\":{\"keccak256\":\"0xa33af77649c364e6a3325ad9e9a18b777b76beeba65fa5efe4c4356222cf4880\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971c14be464503f082e2d0c1239996f7aefe5abc531f96d425eb2f9bee05cda4\",\"dweb:/ipfs/QmWwCwfQ94hPYsFMnVxv3MkMMA3Q1JcWz4mCoo34avi4pq\"]}},\"version\":1}", "bytecode": "0x6080604052348015600f57600080fd5b5060808061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80639227667914602d575b600080fd5b60336045565b60408051918252519081900360200190f35b602a9056fea264697066735822122060344222d3994f77d1b7395f4b04ce77c50f939e574a9844c81ed580f74296b364736f6c634300060a0033", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c80639227667914602d575b600080fd5b60336045565b60408051918252519081900360200190f35b602a9056fea264697066735822122060344222d3994f77d1b7395f4b04ce77c50f939e574a9844c81ed580f74296b364736f6c634300060a0033", "immutableReferences": {}, "sourceMap": "57:108:28:-:0;;;;;;;;;;;;;;;;;;;", "deployedSourceMap": "57:108:28:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86:77;;;:::i;:::-;;;;;;;;;;;;;;;;;156:2;86:77;:::o", "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.6.0;\n\ncontract TestReturnValue\n{\n function return42()\n public pure\n returns (uint)\n {\n return 42;\n }\n}\n", "sourcePath": "/home/circleci/repo/contracts/test-artifacts/TestReturnValue.sol", "ast": { "absolutePath": "project:/contracts/test-artifacts/TestReturnValue.sol", "exportedSymbols": { "TestReturnValue": [ 4078 ] }, "id": 4079, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 4069, "literals": [ "solidity", "^", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "32:23:28" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 4078, "linearizedBaseContracts": [ 4078 ], "name": "TestReturnValue", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 4076, "nodeType": "Block", "src": "143:20:28", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "3432", "id": 4074, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "156:2:28", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_42_by_1", "typeString": "int_const 42" }, "value": "42" }, "functionReturnParameters": 4073, "id": 4075, "nodeType": "Return", "src": "149:9:28" } ] }, "documentation": null, "functionSelector": "92276679", "id": 4077, "implemented": true, "kind": "function", "modifiers": [], "name": "return42", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 4070, "nodeType": "ParameterList", "parameters": [], "src": "103:2:28" }, "returnParameters": { "id": 4073, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4072, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 4077, "src": "135:4:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4071, "name": "uint", "nodeType": "ElementaryTypeName", "src": "135:4:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "134:6:28" }, "scope": 4078, "src": "86:77:28", "stateMutability": "pure", "virtual": false, "visibility": "public" } ], "scope": 4079, "src": "57:108:28" } ], "src": "32:134:28" }, "legacyAST": { "attributes": { "absolutePath": "project:/contracts/test-artifacts/TestReturnValue.sol", "exportedSymbols": { "TestReturnValue": [ 4078 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", "^", "0.6", ".0" ] }, "id": 4069, "name": "PragmaDirective", "src": "32:23:28" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 4078 ], "name": "TestReturnValue", "scope": 4079 }, "children": [ { "attributes": { "documentation": null, "functionSelector": "92276679", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "return42", "overrides": null, "scope": 4078, "stateMutability": "pure", "virtual": false, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 4070, "name": "ParameterList", "src": "103:2:28" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "overrides": null, "scope": 4077, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 4071, "name": "ElementaryTypeName", "src": "135:4:28" } ], "id": 4072, "name": "VariableDeclaration", "src": "135:4:28" } ], "id": 4073, "name": "ParameterList", "src": "134:6:28" }, { "children": [ { "attributes": { "functionReturnParameters": 4073 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "3432", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 42", "value": "42" }, "id": 4074, "name": "Literal", "src": "156:2:28" } ], "id": 4075, "name": "Return", "src": "149:9:28" } ], "id": 4076, "name": "Block", "src": "143:20:28" } ], "id": 4077, "name": "FunctionDefinition", "src": "86:77:28" } ], "id": 4078, "name": "ContractDefinition", "src": "57:108:28" } ], "id": 4079, "name": "SourceUnit", "src": "32:134:28" }, "compiler": { "name": "solc", "version": "0.6.10+commit.00c0fcaf.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2021-07-08T17:04:13.918Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }