UNPKG

@aragon/apps-payroll

Version:

_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)

261 lines 8.31 kB
{ "contractName": "EtherTokenConstant", "abi": [], "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a7230582011b1d255a87dcd1871f0509fa8ccb53297ee5370a4a3bf755a85ab811592c42e0029", "deployedBytecode": "0x6080604052600080fd00a165627a7a7230582011b1d255a87dcd1871f0509fa8ccb53297ee5370a4a3bf755a85ab811592c42e0029", "sourceMap": "195:79:29:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;195:79:29;;;;;;;", "deployedSourceMap": "195:79:29:-;;;;;", "source": "/*\n * SPDX-License-Identitifer: MIT\n */\n\npragma solidity ^0.4.24;\n\n\n// aragonOS and aragon-apps rely on address(0) to denote native ETH, in\n// contracts where both tokens and ETH are accepted\ncontract EtherTokenConstant {\n address internal constant ETH = address(0);\n}\n", "sourcePath": "@aragon/os/contracts/common/EtherTokenConstant.sol", "ast": { "absolutePath": "@aragon/os/contracts/common/EtherTokenConstant.sol", "exportedSymbols": { "EtherTokenConstant": [ 10662 ] }, "id": 10663, "nodeType": "SourceUnit", "nodes": [ { "id": 10656, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "44:24:29" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 10662, "linearizedBaseContracts": [ 10662 ], "name": "EtherTokenConstant", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 10661, "name": "ETH", "nodeType": "VariableDeclaration", "scope": 10662, "src": "229:42:29", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10657, "name": "address", "nodeType": "ElementaryTypeName", "src": "229:7:29", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 10659, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "269:1:29", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 10658, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "261:7:29", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 10660, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "261:10:29", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "scope": 10663, "src": "195:79:29" } ], "src": "44:231:29" }, "legacyAST": { "absolutePath": "@aragon/os/contracts/common/EtherTokenConstant.sol", "exportedSymbols": { "EtherTokenConstant": [ 10662 ] }, "id": 10663, "nodeType": "SourceUnit", "nodes": [ { "id": 10656, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "44:24:29" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 10662, "linearizedBaseContracts": [ 10662 ], "name": "EtherTokenConstant", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 10661, "name": "ETH", "nodeType": "VariableDeclaration", "scope": 10662, "src": "229:42:29", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 10657, "name": "address", "nodeType": "ElementaryTypeName", "src": "229:7:29", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 10659, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "269:1:29", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 10658, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "261:7:29", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 10660, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "261:10:29", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "scope": 10663, "src": "195:79:29" } ], "src": "44:231:29" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2019-09-04T11:02:55.761Z" }