cic-internal-integration/apps/cic-eth/tests/testdata/bancor/IConverter.json

4484 lines
159 KiB
JSON
Raw Normal View History

2021-02-01 18:12:51 +01:00
{
"contractName": "IConverter",
"abi": [
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
},
{
"inputs": [],
"name": "converterType",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "anchor",
"outputs": [
{
"internalType": "contract IConverterAnchor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isActive",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_sourceToken",
"type": "address"
},
{
"internalType": "contract IERC20Token",
"name": "_targetToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "targetAmountAndFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_sourceToken",
"type": "address"
},
{
"internalType": "contract IERC20Token",
"name": "_targetToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_trader",
"type": "address"
},
{
"internalType": "address payable",
"name": "_beneficiary",
"type": "address"
}
],
"name": "convert",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "conversionWhitelist",
"outputs": [
{
"internalType": "contract IWhitelist",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "conversionFee",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxConversionFee",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_reserveToken",
"type": "address"
}
],
"name": "reserveBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferAnchorOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "acceptAnchorOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "_conversionFee",
"type": "uint32"
}
],
"name": "setConversionFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IWhitelist",
"name": "_whitelist",
"type": "address"
}
],
"name": "setConversionWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_token",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "withdrawTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_to",
"type": "address"
}
],
"name": "withdrawETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_token",
"type": "address"
},
{
"internalType": "uint32",
"name": "_ratio",
"type": "uint32"
}
],
"name": "addReserve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "token",
"outputs": [
{
"internalType": "contract IConverterAnchor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferTokenOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "acceptTokenOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_address",
"type": "address"
}
],
"name": "connectors",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "",
"type": "uint32"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Token",
"name": "_connectorToken",
"type": "address"
}
],
"name": "getConnectorBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "connectorTokens",
"outputs": [
{
"internalType": "contract IERC20Token",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "connectorTokenCount",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"acceptAnchorOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptTokenOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_ratio\",\"type\":\"uint32\"}],\"name\":\"addReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"anchor\",\"outputs\":[{\"internalType\":\"contract IConverterAnchor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"connectorTokenCount\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"connectorTokens\",\"outputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"connectors\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"conversionFee\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"conversionWhitelist\",\"outputs\":[{\"internalType\":\"contract IWhitelist\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_sourceToken\",\"type\":\"address\"},{\"internalType\":\"contract IERC20Token\",\"name\":\"_targetToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_trader\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"convert\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"converterType\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_connectorToken\",\"type\":\"address\"}],\"name\":\"getConnectorBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxConversionFee\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Token\",\"name\":\"_reserveToken\",\"type\":\"address\"}],\"name\":\"reserveBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_conversio
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: SEE LICENSE IN LICENSE\npragma solidity 0.6.12;\nimport \"./IConverterAnchor.sol\";\nimport \"../../token/interfaces/IERC20Token.sol\";\nimport \"../../utility/interfaces/IOwned.sol\";\nimport \"../../utility/interfaces/IWhitelist.sol\";\n\n/*\n Converter interface\n*/\ninterface IConverter is IOwned {\n function converterType() external pure returns (uint16);\n function anchor() external view returns (IConverterAnchor);\n function isActive() external view returns (bool);\n\n function targetAmountAndFee(IERC20Token _sourceToken, IERC20Token _targetToken, uint256 _amount) external view returns (uint256, uint256);\n function convert(IERC20Token _sourceToken,\n IERC20Token _targetToken,\n uint256 _amount,\n address _trader,\n address payable _beneficiary) external payable returns (uint256);\n\n function conversionWhitelist() external view returns (IWhitelist);\n function conversionFee() external view returns (uint32);\n function maxConversionFee() external view returns (uint32);\n function reserveBalance(IERC20Token _reserveToken) external view returns (uint256);\n receive() external payable;\n\n function transferAnchorOwnership(address _newOwner) external;\n function acceptAnchorOwnership() external;\n function setConversionFee(uint32 _conversionFee) external;\n function setConversionWhitelist(IWhitelist _whitelist) external;\n function withdrawTokens(IERC20Token _token, address _to, uint256 _amount) external;\n function withdrawETH(address payable _to) external;\n function addReserve(IERC20Token _token, uint32 _ratio) external;\n\n // deprecated, backward compatibility\n function token() external view returns (IConverterAnchor);\n function transferTokenOwnership(address _newOwner) external;\n function acceptTokenOwnership() external;\n function connectors(IERC20Token _address) external view returns (uint256, uint32, bool, bool, bool);\n function getConnectorBalance(IERC20Token _connectorToken) external view returns (uint256);\n function connectorTokens(uint256 _index) external view returns (IERC20Token);\n function connectorTokenCount() external view returns (uint16);\n}\n",
"sourcePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverter.sol",
"ast": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverter.sol",
"exportedSymbols": {
"IConverter": [
13340
]
},
"id": 13341,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13179,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:15"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverterAnchor.sol",
"file": "./IConverterAnchor.sol",
"id": 13180,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 13350,
"src": "75:32:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol",
"file": "../../token/interfaces/IERC20Token.sol",
"id": 13181,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 21128,
"src": "108:48:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IOwned.sol",
"file": "../../utility/interfaces/IOwned.sol",
"id": 13182,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 22848,
"src": "157:45:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IWhitelist.sol",
"file": "../../utility/interfaces/IWhitelist.sol",
"id": 13183,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 22918,
"src": "203:49:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 13184,
"name": "IOwned",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22847,
"src": "308:6:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOwned_$22847",
"typeString": "contract IOwned"
}
},
"id": 13185,
"nodeType": "InheritanceSpecifier",
"src": "308:6:15"
}
],
"contractDependencies": [
22847
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 13340,
"linearizedBaseContracts": [
13340,
22847
],
"name": "IConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "3e8ff43f",
"id": 13190,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "converterType",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13186,
"nodeType": "ParameterList",
"parameters": [],
"src": "343:2:15"
},
"returnParameters": {
"id": 13189,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13188,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13190,
"src": "369:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13187,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "369:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:8:15"
},
"scope": 13340,
"src": "321:56:15",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "d3fb73b4",
"id": 13195,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "anchor",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13191,
"nodeType": "ParameterList",
"parameters": [],
"src": "397:2:15"
},
"returnParameters": {
"id": 13194,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13193,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13195,
"src": "423:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
},
"typeName": {
"contractScope": null,
"id": 13192,
"name": "IConverterAnchor",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13349,
"src": "423:16:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "422:18:15"
},
"scope": 13340,
"src": "382:59:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "22f3e2d4",
"id": 13200,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isActive",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13196,
"nodeType": "ParameterList",
"parameters": [],
"src": "463:2:15"
},
"returnParameters": {
"id": 13199,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13198,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13200,
"src": "489:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13197,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "489:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "488:6:15"
},
"scope": 13340,
"src": "446:49:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "af94b8d8",
"id": 13213,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "targetAmountAndFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13207,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13202,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "529:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13201,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "529:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13204,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "555:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13203,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "555:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13206,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "581:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13205,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "581:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "528:69:15"
},
"returnParameters": {
"id": 13212,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13209,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "621:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13208,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "621:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13211,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "630:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13210,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "630:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "620:18:15"
},
"scope": 13340,
"src": "501:138:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "e8dc12ff",
"id": 13228,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "convert",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13224,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13215,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "661:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13214,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "661:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13217,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "708:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13216,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "708:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13219,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "755:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13218,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "755:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13221,
"mutability": "mutable",
"name": "_trader",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "793:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13220,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "793:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13223,
"mutability": "mutable",
"name": "_beneficiary",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "831:28:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 13222,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "831:15:15",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "660:200:15"
},
"returnParameters": {
"id": 13227,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13226,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "887:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13225,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "887:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "886:9:15"
},
"scope": 13340,
"src": "644:252:15",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c45d3d92",
"id": 13233,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "conversionWhitelist",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13229,
"nodeType": "ParameterList",
"parameters": [],
"src": "930:2:15"
},
"returnParameters": {
"id": 13232,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13231,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13233,
"src": "956:10:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
},
"typeName": {
"contractScope": null,
"id": 13230,
"name": "IWhitelist",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22917,
"src": "956:10:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "955:12:15"
},
"scope": 13340,
"src": "902:66:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "579cd3ca",
"id": 13238,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "conversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13234,
"nodeType": "ParameterList",
"parameters": [],
"src": "995:2:15"
},
"returnParameters": {
"id": 13237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13236,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13238,
"src": "1021:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13235,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1021:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1020:8:15"
},
"scope": 13340,
"src": "973:56:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "94c275ad",
"id": 13243,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "maxConversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13239,
"nodeType": "ParameterList",
"parameters": [],
"src": "1059:2:15"
},
"returnParameters": {
"id": 13242,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13241,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13243,
"src": "1085:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13240,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1085:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1084:8:15"
},
"scope": 13340,
"src": "1034:59:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "dc8de379",
"id": 13250,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "reserveBalance",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13246,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13245,
"mutability": "mutable",
"name": "_reserveToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13250,
"src": "1122:25:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13244,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1122:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1121:27:15"
},
"returnParameters": {
"id": 13249,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13248,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13250,
"src": "1172:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13247,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1172:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1171:9:15"
},
"scope": 13340,
"src": "1098:83:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 13253,
"implemented": false,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13251,
"nodeType": "ParameterList",
"parameters": [],
"src": "1193:2:15"
},
"returnParameters": {
"id": 13252,
"nodeType": "ParameterList",
"parameters": [],
"src": "1212:0:15"
},
"scope": 13340,
"src": "1186:27:15",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "67b6d57c",
"id": 13258,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferAnchorOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13256,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13255,
"mutability": "mutable",
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13258,
"src": "1252:17:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13254,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1252:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1251:19:15"
},
"returnParameters": {
"id": 13257,
"nodeType": "ParameterList",
"parameters": [],
"src": "1279:0:15"
},
"scope": 13340,
"src": "1219:61:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "cdc91c69",
"id": 13261,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "acceptAnchorOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13259,
"nodeType": "ParameterList",
"parameters": [],
"src": "1315:2:15"
},
"returnParameters": {
"id": 13260,
"nodeType": "ParameterList",
"parameters": [],
"src": "1326:0:15"
},
"scope": 13340,
"src": "1285:42:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ecbca55d",
"id": 13266,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setConversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13264,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13263,
"mutability": "mutable",
"name": "_conversionFee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13266,
"src": "1358:21:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13262,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1358:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1357:23:15"
},
"returnParameters": {
"id": 13265,
"nodeType": "ParameterList",
"parameters": [],
"src": "1389:0:15"
},
"scope": 13340,
"src": "1332:58:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "4af80f0e",
"id": 13271,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setConversionWhitelist",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13269,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13268,
"mutability": "mutable",
"name": "_whitelist",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13271,
"src": "1427:21:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
},
"typeName": {
"contractScope": null,
"id": 13267,
"name": "IWhitelist",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22917,
"src": "1427:10:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1426:23:15"
},
"returnParameters": {
"id": 13270,
"nodeType": "ParameterList",
"parameters": [],
"src": "1458:0:15"
},
"scope": 13340,
"src": "1395:64:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "5e35359e",
"id": 13280,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdrawTokens",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13278,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13273,
"mutability": "mutable",
"name": "_token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1488:18:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13272,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1488:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13275,
"mutability": "mutable",
"name": "_to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1508:11:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13274,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1508:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13277,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1521:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13276,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1521:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1487:50:15"
},
"returnParameters": {
"id": 13279,
"nodeType": "ParameterList",
"parameters": [],
"src": "1546:0:15"
},
"scope": 13340,
"src": "1464:83:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "690d8320",
"id": 13285,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdrawETH",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13283,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13282,
"mutability": "mutable",
"name": "_to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13285,
"src": "1573:19:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 13281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1573:15:15",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1572:21:15"
},
"returnParameters": {
"id": 13284,
"nodeType": "ParameterList",
"parameters": [],
"src": "1602:0:15"
},
"scope": 13340,
"src": "1552:51:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "6a49d2c4",
"id": 13292,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "addReserve",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13290,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13287,
"mutability": "mutable",
"name": "_token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13292,
"src": "1628:18:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13286,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1628:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13289,
"mutability": "mutable",
"name": "_ratio",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13292,
"src": "1648:13:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13288,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1648:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1627:35:15"
},
"returnParameters": {
"id": 13291,
"nodeType": "ParameterList",
"parameters": [],
"src": "1671:0:15"
},
"scope": 13340,
"src": "1608:64:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "fc0c546a",
"id": 13297,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "token",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13293,
"nodeType": "ParameterList",
"parameters": [],
"src": "1734:2:15"
},
"returnParameters": {
"id": 13296,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13295,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13297,
"src": "1760:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
},
"typeName": {
"contractScope": null,
"id": 13294,
"name": "IConverterAnchor",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13349,
"src": "1760:16:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1759:18:15"
},
"scope": 13340,
"src": "1720:58:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "21e6b53d",
"id": 13302,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferTokenOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13300,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13299,
"mutability": "mutable",
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13302,
"src": "1815:17:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13298,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1815:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1814:19:15"
},
"returnParameters": {
"id": 13301,
"nodeType": "ParameterList",
"parameters": [],
"src": "1842:0:15"
},
"scope": 13340,
"src": "1783:60:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "38a5e016",
"id": 13305,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "acceptTokenOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13303,
"nodeType": "ParameterList",
"parameters": [],
"src": "1877:2:15"
},
"returnParameters": {
"id": 13304,
"nodeType": "ParameterList",
"parameters": [],
"src": "1888:0:15"
},
"scope": 13340,
"src": "1848:41:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "0e53aae9",
"id": 13320,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectors",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13308,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13307,
"mutability": "mutable",
"name": "_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1914:20:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13306,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1914:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1913:22:15"
},
"returnParameters": {
"id": 13319,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13310,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1959:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13309,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1959:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13312,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1968:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13311,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1968:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13314,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1976:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13313,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1976:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13316,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1982:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13315,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1982:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13318,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1988:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13317,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1988:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1958:35:15"
},
"scope": 13340,
"src": "1894:100:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "d8959512",
"id": 13327,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getConnectorBalance",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13323,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13322,
"mutability": "mutable",
"name": "_connectorToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13327,
"src": "2028:27:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13321,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "2028:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2027:29:15"
},
"returnParameters": {
"id": 13326,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13325,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13327,
"src": "2080:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13324,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2080:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2079:9:15"
},
"scope": 13340,
"src": "1999:90:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "19b64015",
"id": 13334,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectorTokens",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13330,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13329,
"mutability": "mutable",
"name": "_index",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13334,
"src": "2119:14:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13328,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2119:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2118:16:15"
},
"returnParameters": {
"id": 13333,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13332,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13334,
"src": "2158:11:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13331,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "2158:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2157:13:15"
},
"scope": 13340,
"src": "2094:77:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "71f52bf3",
"id": 13339,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectorTokenCount",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13335,
"nodeType": "ParameterList",
"parameters": [],
"src": "2204:2:15"
},
"returnParameters": {
"id": 13338,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13337,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13339,
"src": "2230:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13336,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2230:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2229:8:15"
},
"scope": 13340,
"src": "2176:62:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 13341,
"src": "284:1956:15"
}
],
"src": "51:2190:15"
},
"legacyAST": {
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverter.sol",
"exportedSymbols": {
"IConverter": [
13340
]
},
"id": 13341,
"license": "SEE LICENSE IN LICENSE",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13179,
"literals": [
"solidity",
"0.6",
".12"
],
"nodeType": "PragmaDirective",
"src": "51:23:15"
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/converter/interfaces/IConverterAnchor.sol",
"file": "./IConverterAnchor.sol",
"id": 13180,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 13350,
"src": "75:32:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/token/interfaces/IERC20Token.sol",
"file": "../../token/interfaces/IERC20Token.sol",
"id": 13181,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 21128,
"src": "108:48:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IOwned.sol",
"file": "../../utility/interfaces/IOwned.sol",
"id": 13182,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 22848,
"src": "157:45:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/lash/src/ext/cic/grassrootseconomics/bancor-contracts/solidity/contracts/utility/interfaces/IWhitelist.sol",
"file": "../../utility/interfaces/IWhitelist.sol",
"id": 13183,
"nodeType": "ImportDirective",
"scope": 13341,
"sourceUnit": 22918,
"src": "203:49:15",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 13184,
"name": "IOwned",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22847,
"src": "308:6:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOwned_$22847",
"typeString": "contract IOwned"
}
},
"id": 13185,
"nodeType": "InheritanceSpecifier",
"src": "308:6:15"
}
],
"contractDependencies": [
22847
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 13340,
"linearizedBaseContracts": [
13340,
22847
],
"name": "IConverter",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "3e8ff43f",
"id": 13190,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "converterType",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13186,
"nodeType": "ParameterList",
"parameters": [],
"src": "343:2:15"
},
"returnParameters": {
"id": 13189,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13188,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13190,
"src": "369:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13187,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "369:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:8:15"
},
"scope": 13340,
"src": "321:56:15",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "d3fb73b4",
"id": 13195,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "anchor",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13191,
"nodeType": "ParameterList",
"parameters": [],
"src": "397:2:15"
},
"returnParameters": {
"id": 13194,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13193,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13195,
"src": "423:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
},
"typeName": {
"contractScope": null,
"id": 13192,
"name": "IConverterAnchor",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13349,
"src": "423:16:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "422:18:15"
},
"scope": 13340,
"src": "382:59:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "22f3e2d4",
"id": 13200,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isActive",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13196,
"nodeType": "ParameterList",
"parameters": [],
"src": "463:2:15"
},
"returnParameters": {
"id": 13199,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13198,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13200,
"src": "489:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13197,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "489:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "488:6:15"
},
"scope": 13340,
"src": "446:49:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "af94b8d8",
"id": 13213,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "targetAmountAndFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13207,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13202,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "529:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13201,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "529:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13204,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "555:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13203,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "555:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13206,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "581:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13205,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "581:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "528:69:15"
},
"returnParameters": {
"id": 13212,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13209,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "621:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13208,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "621:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13211,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13213,
"src": "630:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13210,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "630:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "620:18:15"
},
"scope": 13340,
"src": "501:138:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "e8dc12ff",
"id": 13228,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "convert",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13224,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13215,
"mutability": "mutable",
"name": "_sourceToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "661:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13214,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "661:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13217,
"mutability": "mutable",
"name": "_targetToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "708:24:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13216,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "708:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13219,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "755:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13218,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "755:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13221,
"mutability": "mutable",
"name": "_trader",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "793:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13220,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "793:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13223,
"mutability": "mutable",
"name": "_beneficiary",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "831:28:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 13222,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "831:15:15",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "660:200:15"
},
"returnParameters": {
"id": 13227,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13226,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13228,
"src": "887:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13225,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "887:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "886:9:15"
},
"scope": 13340,
"src": "644:252:15",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c45d3d92",
"id": 13233,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "conversionWhitelist",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13229,
"nodeType": "ParameterList",
"parameters": [],
"src": "930:2:15"
},
"returnParameters": {
"id": 13232,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13231,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13233,
"src": "956:10:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
},
"typeName": {
"contractScope": null,
"id": 13230,
"name": "IWhitelist",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22917,
"src": "956:10:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "955:12:15"
},
"scope": 13340,
"src": "902:66:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "579cd3ca",
"id": 13238,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "conversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13234,
"nodeType": "ParameterList",
"parameters": [],
"src": "995:2:15"
},
"returnParameters": {
"id": 13237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13236,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13238,
"src": "1021:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13235,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1021:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1020:8:15"
},
"scope": 13340,
"src": "973:56:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "94c275ad",
"id": 13243,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "maxConversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13239,
"nodeType": "ParameterList",
"parameters": [],
"src": "1059:2:15"
},
"returnParameters": {
"id": 13242,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13241,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13243,
"src": "1085:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13240,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1085:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1084:8:15"
},
"scope": 13340,
"src": "1034:59:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "dc8de379",
"id": 13250,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "reserveBalance",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13246,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13245,
"mutability": "mutable",
"name": "_reserveToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13250,
"src": "1122:25:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13244,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1122:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1121:27:15"
},
"returnParameters": {
"id": 13249,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13248,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13250,
"src": "1172:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13247,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1172:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1171:9:15"
},
"scope": 13340,
"src": "1098:83:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 13253,
"implemented": false,
"kind": "receive",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13251,
"nodeType": "ParameterList",
"parameters": [],
"src": "1193:2:15"
},
"returnParameters": {
"id": 13252,
"nodeType": "ParameterList",
"parameters": [],
"src": "1212:0:15"
},
"scope": 13340,
"src": "1186:27:15",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "67b6d57c",
"id": 13258,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferAnchorOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13256,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13255,
"mutability": "mutable",
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13258,
"src": "1252:17:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13254,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1252:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1251:19:15"
},
"returnParameters": {
"id": 13257,
"nodeType": "ParameterList",
"parameters": [],
"src": "1279:0:15"
},
"scope": 13340,
"src": "1219:61:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "cdc91c69",
"id": 13261,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "acceptAnchorOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13259,
"nodeType": "ParameterList",
"parameters": [],
"src": "1315:2:15"
},
"returnParameters": {
"id": 13260,
"nodeType": "ParameterList",
"parameters": [],
"src": "1326:0:15"
},
"scope": 13340,
"src": "1285:42:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "ecbca55d",
"id": 13266,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setConversionFee",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13264,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13263,
"mutability": "mutable",
"name": "_conversionFee",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13266,
"src": "1358:21:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13262,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1358:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1357:23:15"
},
"returnParameters": {
"id": 13265,
"nodeType": "ParameterList",
"parameters": [],
"src": "1389:0:15"
},
"scope": 13340,
"src": "1332:58:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "4af80f0e",
"id": 13271,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setConversionWhitelist",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13269,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13268,
"mutability": "mutable",
"name": "_whitelist",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13271,
"src": "1427:21:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
},
"typeName": {
"contractScope": null,
"id": 13267,
"name": "IWhitelist",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 22917,
"src": "1427:10:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IWhitelist_$22917",
"typeString": "contract IWhitelist"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1426:23:15"
},
"returnParameters": {
"id": 13270,
"nodeType": "ParameterList",
"parameters": [],
"src": "1458:0:15"
},
"scope": 13340,
"src": "1395:64:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "5e35359e",
"id": 13280,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdrawTokens",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13278,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13273,
"mutability": "mutable",
"name": "_token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1488:18:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13272,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1488:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13275,
"mutability": "mutable",
"name": "_to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1508:11:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13274,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1508:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13277,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13280,
"src": "1521:15:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13276,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1521:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1487:50:15"
},
"returnParameters": {
"id": 13279,
"nodeType": "ParameterList",
"parameters": [],
"src": "1546:0:15"
},
"scope": 13340,
"src": "1464:83:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "690d8320",
"id": 13285,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdrawETH",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13283,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13282,
"mutability": "mutable",
"name": "_to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13285,
"src": "1573:19:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 13281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1573:15:15",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1572:21:15"
},
"returnParameters": {
"id": 13284,
"nodeType": "ParameterList",
"parameters": [],
"src": "1602:0:15"
},
"scope": 13340,
"src": "1552:51:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "6a49d2c4",
"id": 13292,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "addReserve",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13290,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13287,
"mutability": "mutable",
"name": "_token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13292,
"src": "1628:18:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13286,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1628:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13289,
"mutability": "mutable",
"name": "_ratio",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13292,
"src": "1648:13:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13288,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1648:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1627:35:15"
},
"returnParameters": {
"id": 13291,
"nodeType": "ParameterList",
"parameters": [],
"src": "1671:0:15"
},
"scope": 13340,
"src": "1608:64:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "fc0c546a",
"id": 13297,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "token",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13293,
"nodeType": "ParameterList",
"parameters": [],
"src": "1734:2:15"
},
"returnParameters": {
"id": 13296,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13295,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13297,
"src": "1760:16:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
},
"typeName": {
"contractScope": null,
"id": 13294,
"name": "IConverterAnchor",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 13349,
"src": "1760:16:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IConverterAnchor_$13349",
"typeString": "contract IConverterAnchor"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1759:18:15"
},
"scope": 13340,
"src": "1720:58:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "21e6b53d",
"id": 13302,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferTokenOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13300,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13299,
"mutability": "mutable",
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13302,
"src": "1815:17:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13298,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1815:7:15",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1814:19:15"
},
"returnParameters": {
"id": 13301,
"nodeType": "ParameterList",
"parameters": [],
"src": "1842:0:15"
},
"scope": 13340,
"src": "1783:60:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "38a5e016",
"id": 13305,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "acceptTokenOwnership",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13303,
"nodeType": "ParameterList",
"parameters": [],
"src": "1877:2:15"
},
"returnParameters": {
"id": 13304,
"nodeType": "ParameterList",
"parameters": [],
"src": "1888:0:15"
},
"scope": 13340,
"src": "1848:41:15",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "0e53aae9",
"id": 13320,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectors",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13308,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13307,
"mutability": "mutable",
"name": "_address",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1914:20:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13306,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "1914:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1913:22:15"
},
"returnParameters": {
"id": 13319,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13310,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1959:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13309,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1959:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13312,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1968:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 13311,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1968:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13314,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1976:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13313,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1976:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13316,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1982:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13315,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1982:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 13318,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13320,
"src": "1988:4:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13317,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1988:4:15",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1958:35:15"
},
"scope": 13340,
"src": "1894:100:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "d8959512",
"id": 13327,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getConnectorBalance",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13323,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13322,
"mutability": "mutable",
"name": "_connectorToken",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13327,
"src": "2028:27:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13321,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "2028:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2027:29:15"
},
"returnParameters": {
"id": 13326,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13325,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13327,
"src": "2080:7:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13324,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2080:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2079:9:15"
},
"scope": 13340,
"src": "1999:90:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "19b64015",
"id": 13334,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectorTokens",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13330,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13329,
"mutability": "mutable",
"name": "_index",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13334,
"src": "2119:14:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13328,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2119:7:15",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2118:16:15"
},
"returnParameters": {
"id": 13333,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13332,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13334,
"src": "2158:11:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
},
"typeName": {
"contractScope": null,
"id": 13331,
"name": "IERC20Token",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21127,
"src": "2158:11:15",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20Token_$21127",
"typeString": "contract IERC20Token"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2157:13:15"
},
"scope": 13340,
"src": "2094:77:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "71f52bf3",
"id": 13339,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "connectorTokenCount",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 13335,
"nodeType": "ParameterList",
"parameters": [],
"src": "2204:2:15"
},
"returnParameters": {
"id": 13338,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13337,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 13339,
"src": "2230:6:15",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13336,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2230:6:15",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2229:8:15"
},
"scope": 13340,
"src": "2176:62:15",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 13341,
"src": "284:1956:15"
}
],
"src": "51:2190:15"
},
"compiler": {
"name": "solc",
"version": "0.6.12+commit.27d51765.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.3",
"updatedAt": "2020-10-20T08:24:47.743Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}