UNPKG

@gooddollar/goodcontracts

Version:
687 lines 24.2 kB
{ "contractName": "ERC677", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }, { "indexed": false, "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "Transfer", "type": "event" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "transferAndCall", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"transferAndCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677.sol\":\"ERC677\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677.sol\":{\"keccak256\":\"0x8360b9e356df8584d95990bb7e772342b30d9e22b160f7c875fbca5c0b87453c\",\"urls\":[\"bzz-raw://97cc6e5586cedcd49462cc465a2a8fc5063d7ec6cb9533f4e0099969a75bd4b2\",\"dweb:/ipfs/QmXw6y4iXfqyJHDRrHdd5ofQ6E4cuHDw4LiYupReJ1rCBc\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >0.5.4;\n\n/* @title ERC677 interface\n */\ninterface ERC677 {\n event Transfer(address indexed from, address indexed to, uint256 value, bytes data);\n\n function transferAndCall(\n address,\n uint256,\n bytes calldata\n ) external returns (bool);\n}\n", "sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677.sol", "ast": { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677.sol", "exportedSymbols": { "ERC677": [ 7061 ] }, "id": 7062, "nodeType": "SourceUnit", "nodes": [ { "id": 7039, "literals": [ "solidity", ">", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:40" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 7061, "linearizedBaseContracts": [ 7061 ], "name": "ERC677", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 7049, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 7048, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7041, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 7049, "src": "94:20:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7040, "name": "address", "nodeType": "ElementaryTypeName", "src": "94:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7043, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 7049, "src": "116:18:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7042, "name": "address", "nodeType": "ElementaryTypeName", "src": "116:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7045, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 7049, "src": "136:13:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7044, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "136:7:40", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7047, "indexed": false, "name": "data", "nodeType": "VariableDeclaration", "scope": 7049, "src": "151:10:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7046, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "151:5:40", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "93:69:40" }, "src": "79:84:40" }, { "body": null, "documentation": null, "id": 7060, "implemented": false, "kind": "function", "modifiers": [], "name": "transferAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 7056, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7051, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "203:7:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7050, "name": "address", "nodeType": "ElementaryTypeName", "src": "203:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7053, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "220:7:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7052, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "220:7:40", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7055, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "237:14:40", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 7054, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "237:5:40", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "193:64:40" }, "returnParameters": { "id": 7059, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7058, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "276:4:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7057, "name": "bool", "nodeType": "ElementaryTypeName", "src": "276:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "275:6:40" }, "scope": 7061, "src": "169:113:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 7062, "src": "56:228:40" } ], "src": "0:285:40" }, "legacyAST": { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677.sol", "exportedSymbols": { "ERC677": [ 7061 ] }, "id": 7062, "nodeType": "SourceUnit", "nodes": [ { "id": 7039, "literals": [ "solidity", ">", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:40" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 7061, "linearizedBaseContracts": [ 7061 ], "name": "ERC677", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 7049, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 7048, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7041, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 7049, "src": "94:20:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7040, "name": "address", "nodeType": "ElementaryTypeName", "src": "94:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7043, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 7049, "src": "116:18:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7042, "name": "address", "nodeType": "ElementaryTypeName", "src": "116:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7045, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 7049, "src": "136:13:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7044, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "136:7:40", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7047, "indexed": false, "name": "data", "nodeType": "VariableDeclaration", "scope": 7049, "src": "151:10:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7046, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "151:5:40", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "93:69:40" }, "src": "79:84:40" }, { "body": null, "documentation": null, "id": 7060, "implemented": false, "kind": "function", "modifiers": [], "name": "transferAndCall", "nodeType": "FunctionDefinition", "parameters": { "id": 7056, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7051, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "203:7:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7050, "name": "address", "nodeType": "ElementaryTypeName", "src": "203:7:40", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7053, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "220:7:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7052, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "220:7:40", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7055, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "237:14:40", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 7054, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "237:5:40", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "193:64:40" }, "returnParameters": { "id": 7059, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7058, "name": "", "nodeType": "VariableDeclaration", "scope": 7060, "src": "276:4:40", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7057, "name": "bool", "nodeType": "ElementaryTypeName", "src": "276:4:40", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "275:6:40" }, "scope": 7061, "src": "169:113:40", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 7062, "src": "56:228:40" } ], "src": "0:285:40" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.2.3", "updatedAt": "2022-10-27T11:34:11.254Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }