UNPKG

hardlydifficult-ethereum-contracts

Version:
290 lines 11.2 kB
{ "contractName": "HelloWorld", "abi": [ { "constant": true, "inputs": [], "name": "helloWorld", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"helloWorld\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/circleci/repo/contracts/test-artifacts/HelloWorld.sol\":\"HelloWorld\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"/home/circleci/repo/contracts/test-artifacts/HelloWorld.sol\":{\"keccak256\":\"0x19618decf72ee62486bdfbbbfa055ec71869a3f6f1f37a93d4090bcd985ee933\",\"urls\":[\"bzz-raw://7c5ecfb41d574d16bec042b5860bcbdd9ef16eb72b36126f8d3c87910c615ee8\",\"dweb:/ipfs/QmUyYHXhMXJ2qbjRFsdCyU4fRgXySw4eyQ4h7KqL2rCLnw\"]}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063c605f76c14602d575b600080fd5b603360a5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015606b5781810151838201526020016055565b50505050905090810190601f16801560975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051808201909152600e81527f48656c6c6f20576f726c64206f2f00000000000000000000000000000000000060208201529056fea265627a7a72315820669227459e11db09926f331f52cf47e66d86a31156a9e2e54b42a22f873044e164736f6c63430005110032", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063c605f76c14602d575b600080fd5b603360a5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015606b5781810151838201526020016055565b50505050905090810190601f16801560975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051808201909152600e81527f48656c6c6f20576f726c64206f2f00000000000000000000000000000000000060208201529056fea265627a7a72315820669227459e11db09926f331f52cf47e66d86a31156a9e2e54b42a22f873044e164736f6c63430005110032", "sourceMap": "25:128:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:128:15;;;;;;;", "deployedSourceMap": "25:128:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:128:15;;;;;;;;;;;;;;;;;;;49:102;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;49:102:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123:23;;;;;;;;;;;;;;;;;49:102;:::o", "source": "pragma solidity ^0.5.0;\n\ncontract HelloWorld\n{\n function helloWorld()\n public pure\n returns (string memory)\n {\n return 'Hello World o/';\n }\n}\n", "sourcePath": "/home/circleci/repo/contracts/test-artifacts/HelloWorld.sol", "ast": { "absolutePath": "/home/circleci/repo/contracts/test-artifacts/HelloWorld.sol", "exportedSymbols": { "HelloWorld": [ 1626 ] }, "id": 1627, "nodeType": "SourceUnit", "nodes": [ { "id": 1617, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:15" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 1626, "linearizedBaseContracts": [ 1626 ], "name": "HelloWorld", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1624, "nodeType": "Block", "src": "117:34:15", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "48656c6c6f20576f726c64206f2f", "id": 1622, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "130:16:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4b084f86f7e9772b1cb761eb2bf81de5a04d3de393ddfd88fb8fe02dbd06aca3", "typeString": "literal_string \"Hello World o/\"" }, "value": "Hello World o/" }, "functionReturnParameters": 1621, "id": 1623, "nodeType": "Return", "src": "123:23:15" } ] }, "documentation": null, "id": 1625, "implemented": true, "kind": "function", "modifiers": [], "name": "helloWorld", "nodeType": "FunctionDefinition", "parameters": { "id": 1618, "nodeType": "ParameterList", "parameters": [], "src": "68:2:15" }, "returnParameters": { "id": 1621, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1620, "name": "", "nodeType": "VariableDeclaration", "scope": 1625, "src": "100:13:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1619, "name": "string", "nodeType": "ElementaryTypeName", "src": "100:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "99:15:15" }, "scope": 1626, "src": "49:102:15", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 1627, "src": "25:128:15" } ], "src": "0:154:15" }, "legacyAST": { "absolutePath": "/home/circleci/repo/contracts/test-artifacts/HelloWorld.sol", "exportedSymbols": { "HelloWorld": [ 1626 ] }, "id": 1627, "nodeType": "SourceUnit", "nodes": [ { "id": 1617, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:15" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 1626, "linearizedBaseContracts": [ 1626 ], "name": "HelloWorld", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1624, "nodeType": "Block", "src": "117:34:15", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "48656c6c6f20576f726c64206f2f", "id": 1622, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "130:16:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4b084f86f7e9772b1cb761eb2bf81de5a04d3de393ddfd88fb8fe02dbd06aca3", "typeString": "literal_string \"Hello World o/\"" }, "value": "Hello World o/" }, "functionReturnParameters": 1621, "id": 1623, "nodeType": "Return", "src": "123:23:15" } ] }, "documentation": null, "id": 1625, "implemented": true, "kind": "function", "modifiers": [], "name": "helloWorld", "nodeType": "FunctionDefinition", "parameters": { "id": 1618, "nodeType": "ParameterList", "parameters": [], "src": "68:2:15" }, "returnParameters": { "id": 1621, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1620, "name": "", "nodeType": "VariableDeclaration", "scope": 1625, "src": "100:13:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1619, "name": "string", "nodeType": "ElementaryTypeName", "src": "100:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "99:15:15" }, "scope": 1626, "src": "49:102:15", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], "scope": 1627, "src": "25:128:15" } ], "src": "0:154:15" }, "compiler": { "name": "solc", "version": "0.5.17+commit.d19bba13.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.23", "updatedAt": "2020-04-07T20:17:34.953Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }