hardlydifficult-eth
Version:
A collection of reusable contracts and Javascript helpers for Ethereum.
326 lines • 11.9 kB
JSON
{
"contractName": "HelloWorld",
"abi": [
{
"inputs": [],
"name": "helloWorld",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"helloWorld\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/test-artifacts/HelloWorld.sol\":\"HelloWorld\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"project:/contracts/test-artifacts/HelloWorld.sol\":{\"keccak256\":\"0x57796f105fd919c02d4c5d911b0e29e40c0d6ae2aadfd1e0a07c299af16f3d1c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2035e4ae282131489cf29aa22c7ae44bb47788393c85c9033126d691d541b977\",\"dweb:/ipfs/QmURopugdZ3pFwsJVUvdG4H8FvNZSrjYxaEhMY1guBZe3W\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50610112806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063c605f76c14602d575b600080fd5b603360a5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015606b5781810151838201526020016055565b50505050905090810190601f16801560975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051808201909152600e81527f48656c6c6f20576f726c64206f2f00000000000000000000000000000000000060208201529056fea2646970667358221220980b87da1467a86fc31f07538b5cf1313d2c48237b9356b2c38bc684c8076ed964736f6c634300060a0033",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063c605f76c14602d575b600080fd5b603360a5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015606b5781810151838201526020016055565b50505050905090810190601f16801560975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051808201909152600e81527f48656c6c6f20576f726c64206f2f00000000000000000000000000000000000060208201529056fea2646970667358221220980b87da1467a86fc31f07538b5cf1313d2c48237b9356b2c38bc684c8076ed964736f6c634300060a0033",
"immutableReferences": {},
"sourceMap": "57:128:25:-:0;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "57:128:25:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81:102;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;155:23;;;;;;;;;;;;;;;;;81:102;:::o",
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.6.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": "project:/contracts/test-artifacts/HelloWorld.sol",
"exportedSymbols": {
"HelloWorld": [
4033
]
},
"id": 4034,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4024,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:25"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4033,
"linearizedBaseContracts": [
4033
],
"name": "HelloWorld",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 4031,
"nodeType": "Block",
"src": "149:34:25",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "48656c6c6f20576f726c64206f2f",
"id": 4029,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "162:16:25",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_4b084f86f7e9772b1cb761eb2bf81de5a04d3de393ddfd88fb8fe02dbd06aca3",
"typeString": "literal_string \"Hello World o/\""
},
"value": "Hello World o/"
},
"functionReturnParameters": 4028,
"id": 4030,
"nodeType": "Return",
"src": "155:23:25"
}
]
},
"documentation": null,
"functionSelector": "c605f76c",
"id": 4032,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "helloWorld",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 4025,
"nodeType": "ParameterList",
"parameters": [],
"src": "100:2:25"
},
"returnParameters": {
"id": 4028,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4027,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4032,
"src": "132:13:25",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 4026,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "132:6:25",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "131:15:25"
},
"scope": 4033,
"src": "81:102:25",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
}
],
"scope": 4034,
"src": "57:128:25"
}
],
"src": "32:154:25"
},
"legacyAST": {
"attributes": {
"absolutePath": "project:/contracts/test-artifacts/HelloWorld.sol",
"exportedSymbols": {
"HelloWorld": [
4033
]
},
"license": "MIT"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"^",
"0.6",
".0"
]
},
"id": 4024,
"name": "PragmaDirective",
"src": "32:23:25"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts": [
4033
],
"name": "HelloWorld",
"scope": 4034
},
"children": [
{
"attributes": {
"documentation": null,
"functionSelector": "c605f76c",
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "helloWorld",
"overrides": null,
"scope": 4033,
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 4025,
"name": "ParameterList",
"src": "100:2:25"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 4032,
"stateVariable": false,
"storageLocation": "memory",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 4026,
"name": "ElementaryTypeName",
"src": "132:6:25"
}
],
"id": 4027,
"name": "VariableDeclaration",
"src": "132:13:25"
}
],
"id": 4028,
"name": "ParameterList",
"src": "131:15:25"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 4028
},
"children": [
{
"attributes": {
"argumentTypes": null,
"hexvalue": "48656c6c6f20576f726c64206f2f",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "string",
"type": "literal_string \"Hello World o/\"",
"value": "Hello World o/"
},
"id": 4029,
"name": "Literal",
"src": "162:16:25"
}
],
"id": 4030,
"name": "Return",
"src": "155:23:25"
}
],
"id": 4031,
"name": "Block",
"src": "149:34:25"
}
],
"id": 4032,
"name": "FunctionDefinition",
"src": "81:102:25"
}
],
"id": 4033,
"name": "ContractDefinition",
"src": "57:128:25"
}
],
"id": 4034,
"name": "SourceUnit",
"src": "32:154:25"
},
"compiler": {
"name": "solc",
"version": "0.6.10+commit.00c0fcaf.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2021-07-08T17:04:13.881Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}