@marketprotocol/marketprotocol
Version:
Decentralized Derivatives Trading Protocol For The Ethereum Blockchain
412 lines • 13.4 kB
JSON
{
"contractName": "MarketContractRegistryInterface",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "contractAddress",
"type": "address"
}
],
"name": "addAddressToWhiteList",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "contractAddress",
"type": "address"
}
],
"name": "isAddressWhiteListed",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"metadata": "",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "/*\n Copyright 2017-2019 Phillip A. Elsasser\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n\npragma solidity 0.5.2;\n\n\ncontract MarketContractRegistryInterface {\n function addAddressToWhiteList(address contractAddress) external;\n function isAddressWhiteListed(address contractAddress) external view returns (bool);\n}\n",
"sourcePath": "/home/travis/build/MARKETProtocol/MARKETProtocol/contracts/MarketContractRegistryInterface.sol",
"ast": {
"absolutePath": "/home/travis/build/MARKETProtocol/MARKETProtocol/contracts/MarketContractRegistryInterface.sol",
"exportedSymbols": {
"MarketContractRegistryInterface": [
1161
]
},
"id": 1162,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1148,
"literals": [
"solidity",
"0.5",
".2"
],
"nodeType": "PragmaDirective",
"src": "608:22:3"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1161,
"linearizedBaseContracts": [
1161
],
"name": "MarketContractRegistryInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1153,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "addAddressToWhiteList",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1151,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1150,
"name": "contractAddress",
"nodeType": "VariableDeclaration",
"scope": 1153,
"src": "711:23:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1149,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "711:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "710:25:3"
},
"returnParameters": {
"id": 1152,
"nodeType": "ParameterList",
"parameters": [],
"src": "744:0:3"
},
"scope": 1161,
"src": "680:65:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1160,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isAddressWhiteListed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1156,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1155,
"name": "contractAddress",
"nodeType": "VariableDeclaration",
"scope": 1160,
"src": "780:23:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1154,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "780:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "779:25:3"
},
"returnParameters": {
"id": 1159,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1158,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1160,
"src": "828:4:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1157,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "828:4:3",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "827:6:3"
},
"scope": 1161,
"src": "750:84:3",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1162,
"src": "633:203:3"
}
],
"src": "608:229:3"
},
"legacyAST": {
"absolutePath": "/home/travis/build/MARKETProtocol/MARKETProtocol/contracts/MarketContractRegistryInterface.sol",
"exportedSymbols": {
"MarketContractRegistryInterface": [
1161
]
},
"id": 1162,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1148,
"literals": [
"solidity",
"0.5",
".2"
],
"nodeType": "PragmaDirective",
"src": "608:22:3"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1161,
"linearizedBaseContracts": [
1161
],
"name": "MarketContractRegistryInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1153,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "addAddressToWhiteList",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1151,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1150,
"name": "contractAddress",
"nodeType": "VariableDeclaration",
"scope": 1153,
"src": "711:23:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1149,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "711:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "710:25:3"
},
"returnParameters": {
"id": 1152,
"nodeType": "ParameterList",
"parameters": [],
"src": "744:0:3"
},
"scope": 1161,
"src": "680:65:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1160,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isAddressWhiteListed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1156,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1155,
"name": "contractAddress",
"nodeType": "VariableDeclaration",
"scope": 1160,
"src": "780:23:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1154,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "780:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "779:25:3"
},
"returnParameters": {
"id": 1159,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1158,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1160,
"src": "828:4:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1157,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "828:4:3",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "827:6:3"
},
"scope": 1161,
"src": "750:84:3",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1162,
"src": "633:203:3"
}
],
"src": "608:229:3"
},
"compiler": {
"name": "solc",
"version": "0.5.2+commit.1df8f40c.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.9",
"updatedAt": "2019-05-28T23:53:01.585Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}