hardlydifficult-ethereum-contracts
Version:
A collection of reusable contracts and Javascript helpers for Ethereum.
290 lines • 10.1 kB
JSON
{
"contractName": "TestReturnValue",
"abi": [
{
"constant": true,
"inputs": [],
"name": "return42",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"return42\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/circleci/repo/contracts/test-artifacts/TestReturnValue.sol\":\"TestReturnValue\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"/home/circleci/repo/contracts/test-artifacts/TestReturnValue.sol\":{\"keccak256\":\"0xf262d51063786ac64177666c6ca94aedb62e1418f5e89a5a0973a1580bcf5e0e\",\"urls\":[\"bzz-raw://50fd214cc20070fd3153726a3eac0f399e2440bed76103364eb2c14f8189343d\",\"dweb:/ipfs/QmSP3TTU5RabFSNb5wMigy96mcEt3pL3sdNeuKmRpTxAec\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b50607f8061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80639227667914602d575b600080fd5b60336045565b60408051918252519081900360200190f35b602a9056fea265627a7a72315820316612f0588223dd1d9e46519cc0cb3124e887b6f1b1ed371b49ca84c3f4748a64736f6c63430005110032",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c80639227667914602d575b600080fd5b60336045565b60408051918252519081900360200190f35b602a9056fea265627a7a72315820316612f0588223dd1d9e46519cc0cb3124e887b6f1b1ed371b49ca84c3f4748a64736f6c63430005110032",
"sourceMap": "25:108:19:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:108:19;;;;;;;",
"deployedSourceMap": "25:108:19:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:108:19;;;;;;;;;;;;;;;;;;;54:77;;;:::i;:::-;;;;;;;;;;;;;;;;;124:2;54:77;:::o",
"source": "pragma solidity ^0.5.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": "/home/circleci/repo/contracts/test-artifacts/TestReturnValue.sol",
"exportedSymbols": {
"TestReturnValue": [
1708
]
},
"id": 1709,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1699,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:19"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1708,
"linearizedBaseContracts": [
1708
],
"name": "TestReturnValue",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1706,
"nodeType": "Block",
"src": "111:20:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "3432",
"id": 1704,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "124:2:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_42_by_1",
"typeString": "int_const 42"
},
"value": "42"
},
"functionReturnParameters": 1703,
"id": 1705,
"nodeType": "Return",
"src": "117:9:19"
}
]
},
"documentation": null,
"id": 1707,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "return42",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1700,
"nodeType": "ParameterList",
"parameters": [],
"src": "71:2:19"
},
"returnParameters": {
"id": 1703,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1702,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1707,
"src": "103:4:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1701,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "103:4:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "102:6:19"
},
"scope": 1708,
"src": "54:77:19",
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1709,
"src": "25:108:19"
}
],
"src": "0:134:19"
},
"legacyAST": {
"absolutePath": "/home/circleci/repo/contracts/test-artifacts/TestReturnValue.sol",
"exportedSymbols": {
"TestReturnValue": [
1708
]
},
"id": 1709,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1699,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:19"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1708,
"linearizedBaseContracts": [
1708
],
"name": "TestReturnValue",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1706,
"nodeType": "Block",
"src": "111:20:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "3432",
"id": 1704,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "124:2:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_42_by_1",
"typeString": "int_const 42"
},
"value": "42"
},
"functionReturnParameters": 1703,
"id": 1705,
"nodeType": "Return",
"src": "117:9:19"
}
]
},
"documentation": null,
"id": 1707,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "return42",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1700,
"nodeType": "ParameterList",
"parameters": [],
"src": "71:2:19"
},
"returnParameters": {
"id": 1703,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1702,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1707,
"src": "103:4:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1701,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "103:4:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "102:6:19"
},
"scope": 1708,
"src": "54:77:19",
"stateMutability": "pure",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1709,
"src": "25:108:19"
}
],
"src": "0:134:19"
},
"compiler": {
"name": "solc",
"version": "0.5.17+commit.d19bba13.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.23",
"updatedAt": "2020-04-07T20:17:34.958Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}