UNPKG

tokenboost-solidity-erc20token

Version:
437 lines 15.7 kB
{ "contractName": "BoolUtils", "abi": [], "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dc43014fc2ed3eaafa187a5e92a6bc97f8d9941cdc877da6ab35fc61dfb9e7c80029", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dc43014fc2ed3eaafa187a5e92a6bc97f8d9941cdc877da6ab35fc61dfb9e7c80029", "sourceMap": "26:204:12:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", "deployedSourceMap": "26:204:12:-;;;;;;;;", "source": "pragma solidity ^0.4.24;\n\nlibrary BoolUtils {\n function toString(bool _self) internal pure returns (string memory) {\n if (_self) {\n return \"true\";\n } else {\n return \"false\";\n }\n }\n}\n", "sourcePath": "tokenboost-solidity/contracts/utils/BoolUtils.sol", "ast": { "absolutePath": "tokenboost-solidity/contracts/utils/BoolUtils.sol", "exportedSymbols": { "BoolUtils": [ 1526 ] }, "id": 1527, "nodeType": "SourceUnit", "nodes": [ { "id": 1509, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:12" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": null, "fullyImplemented": true, "id": 1526, "linearizedBaseContracts": [ 1526 ], "name": "BoolUtils", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1524, "nodeType": "Block", "src": "118:110:12", "statements": [ { "condition": { "argumentTypes": null, "id": 1516, "name": "_self", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1511, "src": "132:5:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 1522, "nodeType": "Block", "src": "183:39:12", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 1520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "204:7:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ba9154e0baa69c78e0ca563b867df81bae9d177c4ea1452c35c84386a70f0f7a", "typeString": "literal_string \"false\"" }, "value": "false" }, "functionReturnParameters": 1515, "id": 1521, "nodeType": "Return", "src": "197:14:12" } ] }, "id": 1523, "nodeType": "IfStatement", "src": "128:94:12", "trueBody": { "id": 1519, "nodeType": "Block", "src": "139:38:12", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 1517, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "160:6:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_6273151f959616268004b58dbb21e5c851b7b8d04498b4aabee12291d22fc034", "typeString": "literal_string \"true\"" }, "value": "true" }, "functionReturnParameters": 1515, "id": 1518, "nodeType": "Return", "src": "153:13:12" } ] } } ] }, "documentation": null, "id": 1525, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "toString", "nodeType": "FunctionDefinition", "parameters": { "id": 1512, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1511, "name": "_self", "nodeType": "VariableDeclaration", "scope": 1525, "src": "68:10:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1510, "name": "bool", "nodeType": "ElementaryTypeName", "src": "68:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "67:12:12" }, "payable": false, "returnParameters": { "id": 1515, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1514, "name": "", "nodeType": "VariableDeclaration", "scope": 1525, "src": "103:6:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1513, "name": "string", "nodeType": "ElementaryTypeName", "src": "103:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "102:15:12" }, "scope": 1526, "src": "50:178:12", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], "scope": 1527, "src": "26:204:12" } ], "src": "0:231:12" }, "legacyAST": { "absolutePath": "tokenboost-solidity/contracts/utils/BoolUtils.sol", "exportedSymbols": { "BoolUtils": [ 1526 ] }, "id": 1527, "nodeType": "SourceUnit", "nodes": [ { "id": 1509, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:12" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": null, "fullyImplemented": true, "id": 1526, "linearizedBaseContracts": [ 1526 ], "name": "BoolUtils", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 1524, "nodeType": "Block", "src": "118:110:12", "statements": [ { "condition": { "argumentTypes": null, "id": 1516, "name": "_self", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1511, "src": "132:5:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 1522, "nodeType": "Block", "src": "183:39:12", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 1520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "204:7:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ba9154e0baa69c78e0ca563b867df81bae9d177c4ea1452c35c84386a70f0f7a", "typeString": "literal_string \"false\"" }, "value": "false" }, "functionReturnParameters": 1515, "id": 1521, "nodeType": "Return", "src": "197:14:12" } ] }, "id": 1523, "nodeType": "IfStatement", "src": "128:94:12", "trueBody": { "id": 1519, "nodeType": "Block", "src": "139:38:12", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 1517, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "160:6:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_6273151f959616268004b58dbb21e5c851b7b8d04498b4aabee12291d22fc034", "typeString": "literal_string \"true\"" }, "value": "true" }, "functionReturnParameters": 1515, "id": 1518, "nodeType": "Return", "src": "153:13:12" } ] } } ] }, "documentation": null, "id": 1525, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "toString", "nodeType": "FunctionDefinition", "parameters": { "id": 1512, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1511, "name": "_self", "nodeType": "VariableDeclaration", "scope": 1525, "src": "68:10:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1510, "name": "bool", "nodeType": "ElementaryTypeName", "src": "68:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "67:12:12" }, "payable": false, "returnParameters": { "id": 1515, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1514, "name": "", "nodeType": "VariableDeclaration", "scope": 1525, "src": "103:6:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1513, "name": "string", "nodeType": "ElementaryTypeName", "src": "103:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "102:15:12" }, "scope": 1526, "src": "50:178:12", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], "scope": 1527, "src": "26:204:12" } ], "src": "0:231:12" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-07T15:52:36.190Z" }