hardlydifficult-eth
Version:
A collection of reusable contracts and Javascript helpers for Ethereum.
453 lines • 15.4 kB
JSON
{
"contractName": "Log",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_data",
"type": "address"
}
],
"name": "LogAddress",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "LogBytes",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "_data",
"type": "uint256"
}
],
"name": "LogUint",
"type": "event"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_data\",\"type\":\"address\"}],\"name\":\"LogAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"LogBytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_data\",\"type\":\"uint256\"}],\"name\":\"LogUint\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"Used for debugging and should be removed before a production deploy.\",\"methods\":{},\"title\":\"A contract with events for emiting various data types.\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/test-artifacts/Log.sol\":\"Log\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"project:/contracts/test-artifacts/Log.sol\":{\"keccak256\":\"0xf40c52e4c748960d031dcdf562b4ba97c2b8f117f1afb12ef32044a5360e1f58\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d7cc4668b675848a180298acd5d82c4bbd1fb6d84c96fc77e27485a10a6995c2\",\"dweb:/ipfs/QmNNacVqVM7MNqumeQt6Hs7P3A5C1dmCFApY4LAEs7dJrr\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220df8f55757fe06d4d6abbd56aa6a96b74828444a3197fefc4f7d48e6b79d6134464736f6c634300060a0033",
"deployedBytecode": "0x6080604052600080fdfea2646970667358221220df8f55757fe06d4d6abbd56aa6a96b74828444a3197fefc4f7d48e6b79d6134464736f6c634300060a0033",
"immutableReferences": {},
"sourceMap": "208:111:26:-:0;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "208:111:26:-:0;;;;;",
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.6.0;\n\n\n/**\n * @title A contract with events for emiting various data types.\n * @dev Used for debugging and should be removed before a production deploy.\n */\ncontract Log\n{\n event LogAddress(address _data);\n event LogUint(uint _data);\n event LogBytes(bytes _data);\n}\n",
"sourcePath": "/home/circleci/repo/contracts/test-artifacts/Log.sol",
"ast": {
"absolutePath": "project:/contracts/test-artifacts/Log.sol",
"exportedSymbols": {
"Log": [
4049
]
},
"id": 4050,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4035,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:26"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 4036,
"nodeType": "StructuredDocumentation",
"src": "58:149:26",
"text": " @title A contract with events for emiting various data types.\n @dev Used for debugging and should be removed before a production deploy."
},
"fullyImplemented": true,
"id": 4049,
"linearizedBaseContracts": [
4049
],
"name": "Log",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 4040,
"name": "LogAddress",
"nodeType": "EventDefinition",
"parameters": {
"id": 4039,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4038,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4040,
"src": "242:13:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4037,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "242:7:26",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "241:15:26"
},
"src": "225:32:26"
},
{
"anonymous": false,
"documentation": null,
"id": 4044,
"name": "LogUint",
"nodeType": "EventDefinition",
"parameters": {
"id": 4043,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4042,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4044,
"src": "274:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4041,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "274:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "273:12:26"
},
"src": "260:26:26"
},
{
"anonymous": false,
"documentation": null,
"id": 4048,
"name": "LogBytes",
"nodeType": "EventDefinition",
"parameters": {
"id": 4047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4046,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4048,
"src": "304:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 4045,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "304:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "303:13:26"
},
"src": "289:28:26"
}
],
"scope": 4050,
"src": "208:111:26"
}
],
"src": "32:288:26"
},
"legacyAST": {
"attributes": {
"absolutePath": "project:/contracts/test-artifacts/Log.sol",
"exportedSymbols": {
"Log": [
4049
]
},
"license": "MIT"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"^",
"0.6",
".0"
]
},
"id": 4035,
"name": "PragmaDirective",
"src": "32:23:26"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts": [
4049
],
"name": "Log",
"scope": 4050
},
"children": [
{
"attributes": {
"text": " @title A contract with events for emiting various data types.\n @dev Used for debugging and should be removed before a production deploy."
},
"id": 4036,
"name": "StructuredDocumentation",
"src": "58:149:26"
},
{
"attributes": {
"anonymous": false,
"documentation": null,
"name": "LogAddress"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"overrides": null,
"scope": 4040,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 4037,
"name": "ElementaryTypeName",
"src": "242:7:26"
}
],
"id": 4038,
"name": "VariableDeclaration",
"src": "242:13:26"
}
],
"id": 4039,
"name": "ParameterList",
"src": "241:15:26"
}
],
"id": 4040,
"name": "EventDefinition",
"src": "225:32:26"
},
{
"attributes": {
"anonymous": false,
"documentation": null,
"name": "LogUint"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"overrides": null,
"scope": 4044,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 4041,
"name": "ElementaryTypeName",
"src": "274:4:26"
}
],
"id": 4042,
"name": "VariableDeclaration",
"src": "274:10:26"
}
],
"id": 4043,
"name": "ParameterList",
"src": "273:12:26"
}
],
"id": 4044,
"name": "EventDefinition",
"src": "260:26:26"
},
{
"attributes": {
"anonymous": false,
"documentation": null,
"name": "LogBytes"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": false,
"mutability": "mutable",
"name": "_data",
"overrides": null,
"scope": 4048,
"stateVariable": false,
"storageLocation": "default",
"type": "bytes",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bytes",
"type": "bytes"
},
"id": 4045,
"name": "ElementaryTypeName",
"src": "304:5:26"
}
],
"id": 4046,
"name": "VariableDeclaration",
"src": "304:11:26"
}
],
"id": 4047,
"name": "ParameterList",
"src": "303:13:26"
}
],
"id": 4048,
"name": "EventDefinition",
"src": "289:28:26"
}
],
"id": 4049,
"name": "ContractDefinition",
"src": "208:111:26"
}
],
"id": 4050,
"name": "SourceUnit",
"src": "32:288:26"
},
"compiler": {
"name": "solc",
"version": "0.6.10+commit.00c0fcaf.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2021-07-08T17:04:13.884Z",
"devdoc": {
"details": "Used for debugging and should be removed before a production deploy.",
"methods": {},
"title": "A contract with events for emiting various data types."
},
"userdoc": {
"methods": {}
}
}