@gooddollar/goodcontracts
Version:
GoodDollar Contracts
406 lines • 14.1 kB
JSON
{
"contractName": "ERC677Receiver",
"abi": [
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "onTokenTransfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onTokenTransfer\",\"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/ERC677Receiver.sol\":\"ERC677Receiver\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677Receiver.sol\":{\"keccak256\":\"0xc5683b28527097379ed090b28bb46e17a50a2c57ddcb3c7e028fcd04ddc64aef\",\"urls\":[\"bzz-raw://639f6b6cf65382faea738e6326d6aeb289b8b030cf02f40c54bc45ec098eda6d\",\"dweb:/ipfs/QmQi7dFcKiwUxSbzhus4CxFTdNJvUsfiqY6i3bD4RdMQrn\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >0.5.4;\n\n/* @title ERC677Receiver interface\n */\ninterface ERC677Receiver {\n function onTokenTransfer(\n address _from,\n uint256 _value,\n bytes calldata _data\n ) external returns (bool);\n}\n",
"sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677Receiver.sol",
"ast": {
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677Receiver.sol",
"exportedSymbols": {
"ERC677Receiver": [
3209
]
},
"id": 3210,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3197,
"literals": [
"solidity",
">",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 3209,
"linearizedBaseContracts": [
3209
],
"name": "ERC677Receiver",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 3208,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "onTokenTransfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3204,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3199,
"name": "_from",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "129:13:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3198,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "129:7:16",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3201,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "152:14:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3200,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "152:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3203,
"name": "_data",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "176:20:16",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 3202,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "176:5:16",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "119:83:16"
},
"returnParameters": {
"id": 3207,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3206,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "221:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3205,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "221:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "220:6:16"
},
"scope": 3209,
"src": "95:132:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 3210,
"src": "64:165:16"
}
],
"src": "0:230:16"
},
"legacyAST": {
"absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/token/ERC677/ERC677Receiver.sol",
"exportedSymbols": {
"ERC677Receiver": [
3209
]
},
"id": 3210,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3197,
"literals": [
"solidity",
">",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 3209,
"linearizedBaseContracts": [
3209
],
"name": "ERC677Receiver",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 3208,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "onTokenTransfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3204,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3199,
"name": "_from",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "129:13:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3198,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "129:7:16",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3201,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "152:14:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3200,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "152:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3203,
"name": "_data",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "176:20:16",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 3202,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "176:5:16",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "119:83:16"
},
"returnParameters": {
"id": 3207,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3206,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3208,
"src": "221:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3205,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "221:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "220:6:16"
},
"scope": 3209,
"src": "95:132:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 3210,
"src": "64:165:16"
}
],
"src": "0:230:16"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.2",
"updatedAt": "2021-08-23T07:33:52.207Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}