UNPKG

@dnextco/tokenboost-solidity-erc223token

Version:

Solidity contracts for TokenBoost (ERC223Token)

437 lines 15.7 kB
{ "contractName": "BoolUtils", "abi": [], "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dc43014fc2ed3eaafa187a5e92a6bc97f8d9941cdc877da6ab35fc61dfb9e7c80029", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dc43014fc2ed3eaafa187a5e92a6bc97f8d9941cdc877da6ab35fc61dfb9e7c80029", "sourceMap": "26:204:27:-;;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:27:-;;;;;;;;", "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": [ 3640 ] }, "id": 3641, "nodeType": "SourceUnit", "nodes": [ { "id": 3623, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:27" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": null, "fullyImplemented": true, "id": 3640, "linearizedBaseContracts": [ 3640 ], "name": "BoolUtils", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 3638, "nodeType": "Block", "src": "118:110:27", "statements": [ { "condition": { "argumentTypes": null, "id": 3630, "name": "_self", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3625, "src": "132:5:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 3636, "nodeType": "Block", "src": "183:39:27", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 3634, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "204:7:27", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ba9154e0baa69c78e0ca563b867df81bae9d177c4ea1452c35c84386a70f0f7a", "typeString": "literal_string \"false\"" }, "value": "false" }, "functionReturnParameters": 3629, "id": 3635, "nodeType": "Return", "src": "197:14:27" } ] }, "id": 3637, "nodeType": "IfStatement", "src": "128:94:27", "trueBody": { "id": 3633, "nodeType": "Block", "src": "139:38:27", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 3631, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "160:6:27", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_6273151f959616268004b58dbb21e5c851b7b8d04498b4aabee12291d22fc034", "typeString": "literal_string \"true\"" }, "value": "true" }, "functionReturnParameters": 3629, "id": 3632, "nodeType": "Return", "src": "153:13:27" } ] } } ] }, "documentation": null, "id": 3639, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "toString", "nodeType": "FunctionDefinition", "parameters": { "id": 3626, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3625, "name": "_self", "nodeType": "VariableDeclaration", "scope": 3639, "src": "68:10:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3624, "name": "bool", "nodeType": "ElementaryTypeName", "src": "68:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "67:12:27" }, "payable": false, "returnParameters": { "id": 3629, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3628, "name": "", "nodeType": "VariableDeclaration", "scope": 3639, "src": "103:6:27", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3627, "name": "string", "nodeType": "ElementaryTypeName", "src": "103:6:27", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "102:15:27" }, "scope": 3640, "src": "50:178:27", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], "scope": 3641, "src": "26:204:27" } ], "src": "0:231:27" }, "legacyAST": { "absolutePath": "tokenboost-solidity/contracts/utils/BoolUtils.sol", "exportedSymbols": { "BoolUtils": [ 3640 ] }, "id": 3641, "nodeType": "SourceUnit", "nodes": [ { "id": 3623, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:27" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "library", "documentation": null, "fullyImplemented": true, "id": 3640, "linearizedBaseContracts": [ 3640 ], "name": "BoolUtils", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 3638, "nodeType": "Block", "src": "118:110:27", "statements": [ { "condition": { "argumentTypes": null, "id": 3630, "name": "_self", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3625, "src": "132:5:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 3636, "nodeType": "Block", "src": "183:39:27", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "66616c7365", "id": 3634, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "204:7:27", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ba9154e0baa69c78e0ca563b867df81bae9d177c4ea1452c35c84386a70f0f7a", "typeString": "literal_string \"false\"" }, "value": "false" }, "functionReturnParameters": 3629, "id": 3635, "nodeType": "Return", "src": "197:14:27" } ] }, "id": 3637, "nodeType": "IfStatement", "src": "128:94:27", "trueBody": { "id": 3633, "nodeType": "Block", "src": "139:38:27", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 3631, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "160:6:27", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_6273151f959616268004b58dbb21e5c851b7b8d04498b4aabee12291d22fc034", "typeString": "literal_string \"true\"" }, "value": "true" }, "functionReturnParameters": 3629, "id": 3632, "nodeType": "Return", "src": "153:13:27" } ] } } ] }, "documentation": null, "id": 3639, "implemented": true, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "toString", "nodeType": "FunctionDefinition", "parameters": { "id": 3626, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3625, "name": "_self", "nodeType": "VariableDeclaration", "scope": 3639, "src": "68:10:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 3624, "name": "bool", "nodeType": "ElementaryTypeName", "src": "68:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "67:12:27" }, "payable": false, "returnParameters": { "id": 3629, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3628, "name": "", "nodeType": "VariableDeclaration", "scope": 3639, "src": "103:6:27", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3627, "name": "string", "nodeType": "ElementaryTypeName", "src": "103:6:27", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "102:15:27" }, "scope": 3640, "src": "50:178:27", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], "scope": 3641, "src": "26:204:27" } ], "src": "0:231:27" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-10-24T12:40:22.237Z" }