cc-zos-vouching
Version:
Vouching logic for the EVM packages of the ZeppelinOS smart contract platform
411 lines • 13.7 kB
JSON
{
"contractName": "TPLRestrictedReceiverTokenInterface",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "receiver",
"type": "address"
}
],
"name": "canReceive",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getRegistry",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title TPL Restricted Receiver Token interface. EIP-165 ID: 0xca62cde9\n */\ninterface TPLRestrictedReceiverTokenInterface {\n /**\n * @notice Check if an account is approved to receive token transfers at\n * account `receiver`.\n * @param receiver address The account of the recipient.\n * @return True if the receiver is valid, false otherwise.\n */\n function canReceive(address receiver) external view returns (bool);\n\n /**\n * @notice Get the account of the utilized attribute registry.\n * @return The account of the registry.\n */\n function getRegistry() external view returns (address);\n}",
"sourcePath": "tpl-contracts-eth/contracts/token/TPLRestrictedReceiverTokenInterface.sol",
"ast": {
"absolutePath": "tpl-contracts-eth/contracts/token/TPLRestrictedReceiverTokenInterface.sol",
"exportedSymbols": {
"TPLRestrictedReceiverTokenInterface": [
1862
]
},
"id": 1863,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1849,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:15"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "@title TPL Restricted Receiver Token interface. EIP-165 ID: 0xca62cde9",
"fullyImplemented": false,
"id": 1862,
"linearizedBaseContracts": [
1862
],
"name": "TPLRestrictedReceiverTokenInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Check if an account is approved to receive token transfers at\naccount `receiver`.\n@param receiver address The account of the recipient.\n@return True if the receiver is valid, false otherwise.",
"id": 1856,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "canReceive",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1852,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1851,
"name": "receiver",
"nodeType": "VariableDeclaration",
"scope": 1856,
"src": "411:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1850,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "411:7:15",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "410:18:15"
},
"payable": false,
"returnParameters": {
"id": 1855,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1854,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1856,
"src": "452:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1853,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "452:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "451:6:15"
},
"scope": 1862,
"src": "391:67:15",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Get the account of the utilized attribute registry.\n@return The account of the registry.",
"id": 1861,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getRegistry",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1857,
"nodeType": "ParameterList",
"parameters": [],
"src": "601:2:15"
},
"payable": false,
"returnParameters": {
"id": 1860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1859,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1861,
"src": "627:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1858,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "627:7:15",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "626:9:15"
},
"scope": 1862,
"src": "581:55:15",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1863,
"src": "109:529:15"
}
],
"src": "0:638:15"
},
"legacyAST": {
"absolutePath": "tpl-contracts-eth/contracts/token/TPLRestrictedReceiverTokenInterface.sol",
"exportedSymbols": {
"TPLRestrictedReceiverTokenInterface": [
1862
]
},
"id": 1863,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1849,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:15"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "@title TPL Restricted Receiver Token interface. EIP-165 ID: 0xca62cde9",
"fullyImplemented": false,
"id": 1862,
"linearizedBaseContracts": [
1862
],
"name": "TPLRestrictedReceiverTokenInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@notice Check if an account is approved to receive token transfers at\naccount `receiver`.\n@param receiver address The account of the recipient.\n@return True if the receiver is valid, false otherwise.",
"id": 1856,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "canReceive",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1852,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1851,
"name": "receiver",
"nodeType": "VariableDeclaration",
"scope": 1856,
"src": "411:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1850,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "411:7:15",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "410:18:15"
},
"payable": false,
"returnParameters": {
"id": 1855,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1854,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1856,
"src": "452:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1853,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "452:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "451:6:15"
},
"scope": 1862,
"src": "391:67:15",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": "@notice Get the account of the utilized attribute registry.\n@return The account of the registry.",
"id": 1861,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getRegistry",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1857,
"nodeType": "ParameterList",
"parameters": [],
"src": "601:2:15"
},
"payable": false,
"returnParameters": {
"id": 1860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1859,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1861,
"src": "627:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1858,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "627:7:15",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "626:9:15"
},
"scope": 1862,
"src": "581:55:15",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1863,
"src": "109:529:15"
}
],
"src": "0:638:15"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-12-15T05:05:31.556Z"
}